diff --git a/index.9ac7cd29.css b/index.9ac7cd29.css
new file mode 100644
index 0000000000..4a00b98b27
--- /dev/null
+++ b/index.9ac7cd29.css
@@ -0,0 +1,2 @@
+:root{--primary-color:#00acdc}body{background-color:#e0e0e0;margin:0;font-family:Roboto,sans-serif;font-style:normal;font-weight:500}.header{background-color:#fff;justify-content:space-between;align-items:center;height:60px;padding:0 50px;display:flex}.logo{display:flex}.logo__img{width:40px;height:40px;text-decoration:none}.nav{align-items:center;display:flex}.nav__list{margin:0;padding:0;list-style:none;display:flex}.nav_item{margin-left:20px;position:relative}.nav_item:first-child{margin-left:0}.nav__link{white-space:nowrap;color:#000;text-transform:uppercase;align-items:center;height:60px;font-size:12px;text-decoration:none;display:flex;position:relative}.nav__link.is-active:after{content:"";background-color:var(--primary-color);border-radius:8px;width:100%;height:4px;margin:0;position:absolute;bottom:0}.nav__link:hover,.nav__link.is-active{color:var(--primary-color)}
+/*# sourceMappingURL=index.9ac7cd29.css.map */
diff --git a/index.9ac7cd29.css.map b/index.9ac7cd29.css.map
new file mode 100644
index 0000000000..c468728da7
--- /dev/null
+++ b/index.9ac7cd29.css.map
@@ -0,0 +1 @@
+{"mappings":"ACAA,8BAIA,uGAQA,uHASA,mBAIA,uDAMA,qCAKA,2DAOA,6CAKA,oCAIA,oKAaA,wJAYA","sources":["index.9ac7cd29.css","src/style.css"],"sourcesContent":[":root {\n --primary-color: #00acdc;\n}\n\nbody {\n background-color: #e0e0e0;\n margin: 0;\n font-family: Roboto, sans-serif;\n font-style: normal;\n font-weight: 500;\n}\n\n.header {\n background-color: #fff;\n justify-content: space-between;\n align-items: center;\n height: 60px;\n padding: 0 50px;\n display: flex;\n}\n\n.logo {\n display: flex;\n}\n\n.logo__img {\n width: 40px;\n height: 40px;\n text-decoration: none;\n}\n\n.nav {\n align-items: center;\n display: flex;\n}\n\n.nav__list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n}\n\n.nav_item {\n margin-left: 20px;\n position: relative;\n}\n\n.nav_item:first-child {\n margin-left: 0;\n}\n\n.nav__link {\n white-space: nowrap;\n color: #000;\n text-transform: uppercase;\n align-items: center;\n height: 60px;\n font-size: 12px;\n text-decoration: none;\n display: flex;\n position: relative;\n}\n\n.nav__link.is-active:after {\n content: \"\";\n background-color: var(--primary-color);\n border-radius: 8px;\n width: 100%;\n height: 4px;\n margin: 0;\n position: absolute;\n bottom: 0;\n}\n\n.nav__link:hover, .nav__link.is-active {\n color: var(--primary-color);\n}\n/*# sourceMappingURL=index.9ac7cd29.css.map */\n",":root {\n --primary-color: #00acdc;\n}\n\nbody {\n background-color: #e0e0e0;\n margin: 0;\n font-family: Roboto, sans-serif;\n font-weight: 500;\n font-style: normal;\n}\n\n.header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 50px;\n height: 60px;\n background-color: #fff;\n}\n\n.logo {\n display: flex;\n}\n\n.logo__img {\n width: 40px;\n height: 40px;\n text-decoration: none;\n}\n\n.nav {\n display: flex;\n align-items: center;\n}\n\n.nav__list {\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.nav_item {\n position: relative;\n margin-left: 20px;\n}\n\n.nav_item:first-child {\n margin-left: 0;\n}\n\n.nav__link {\n align-items: center;\n height: 60px;\n white-space: nowrap;\n color: #000;\n text-decoration: none;\n display: flex;\n position: relative;\n text-transform: uppercase;\n font-size: 12px;\n}\n\n/* Стилі для лінії під Apple */\n.nav__link.is-active::after {\n content: '';\n margin: 0;\n position: absolute;\n bottom: 0;\n height: 4px;\n width: 100%;\n background-color: var(--primary-color);\n border-radius: 8px;\n}\n\n/* Стилі при наведенні */\n.nav__link:hover,\n.nav__link.is-active {\n color: var(--primary-color);\n}\n"],"names":[],"version":3,"file":"index.9ac7cd29.css.map"}
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000000..de97227813
--- /dev/null
+++ b/index.html
@@ -0,0 +1 @@
+
Moyo header
\ No newline at end of file
diff --git a/logo.eddae0ff.png b/logo.eddae0ff.png
new file mode 100644
index 0000000000..ce1498e05a
Binary files /dev/null and b/logo.eddae0ff.png differ
diff --git a/report/bitmaps_reference/Header_tag_1024px.png b/report/bitmaps_reference/Header_tag_1024px.png
new file mode 100644
index 0000000000..69773c635b
Binary files /dev/null and b/report/bitmaps_reference/Header_tag_1024px.png differ
diff --git a/report/bitmaps_reference/Header_tag_1200px.png b/report/bitmaps_reference/Header_tag_1200px.png
new file mode 100644
index 0000000000..e7748ff6be
Binary files /dev/null and b/report/bitmaps_reference/Header_tag_1200px.png differ
diff --git a/report/bitmaps_reference/Link_with_class_is-active_1024px.png b/report/bitmaps_reference/Link_with_class_is-active_1024px.png
new file mode 100644
index 0000000000..b3f865505b
Binary files /dev/null and b/report/bitmaps_reference/Link_with_class_is-active_1024px.png differ
diff --git a/report/bitmaps_reference/Link_with_class_is-active_1200px.png b/report/bitmaps_reference/Link_with_class_is-active_1200px.png
new file mode 100644
index 0000000000..b3f865505b
Binary files /dev/null and b/report/bitmaps_reference/Link_with_class_is-active_1200px.png differ
diff --git a/report/bitmaps_reference/Link_with_data-qa_hover_1024px.png b/report/bitmaps_reference/Link_with_data-qa_hover_1024px.png
new file mode 100644
index 0000000000..595f1920df
Binary files /dev/null and b/report/bitmaps_reference/Link_with_data-qa_hover_1024px.png differ
diff --git a/report/bitmaps_reference/Link_with_data-qa_hover_1200px.png b/report/bitmaps_reference/Link_with_data-qa_hover_1200px.png
new file mode 100644
index 0000000000..595f1920df
Binary files /dev/null and b/report/bitmaps_reference/Link_with_data-qa_hover_1200px.png differ
diff --git a/report/bitmaps_reference/Nav_tag_1024px.png b/report/bitmaps_reference/Nav_tag_1024px.png
new file mode 100644
index 0000000000..cb0a63886f
Binary files /dev/null and b/report/bitmaps_reference/Nav_tag_1024px.png differ
diff --git a/report/bitmaps_reference/Nav_tag_1200px.png b/report/bitmaps_reference/Nav_tag_1200px.png
new file mode 100644
index 0000000000..cb0a63886f
Binary files /dev/null and b/report/bitmaps_reference/Nav_tag_1200px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Header_tag_1024px.png b/report/bitmaps_test/20240802-160009/Header_tag_1024px.png
new file mode 100644
index 0000000000..69773c635b
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Header_tag_1024px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Header_tag_1200px.png b/report/bitmaps_test/20240802-160009/Header_tag_1200px.png
new file mode 100644
index 0000000000..e7748ff6be
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Header_tag_1200px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1024px.png b/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1024px.png
new file mode 100644
index 0000000000..b3f865505b
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1024px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1200px.png b/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1200px.png
new file mode 100644
index 0000000000..b3f865505b
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Link_with_class_is-active_1200px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1024px.png b/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1024px.png
new file mode 100644
index 0000000000..595f1920df
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1024px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1200px.png b/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1200px.png
new file mode 100644
index 0000000000..595f1920df
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Link_with_data-qa_hover_1200px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Nav_tag_1024px.png b/report/bitmaps_test/20240802-160009/Nav_tag_1024px.png
new file mode 100644
index 0000000000..cb0a63886f
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Nav_tag_1024px.png differ
diff --git a/report/bitmaps_test/20240802-160009/Nav_tag_1200px.png b/report/bitmaps_test/20240802-160009/Nav_tag_1200px.png
new file mode 100644
index 0000000000..cb0a63886f
Binary files /dev/null and b/report/bitmaps_test/20240802-160009/Nav_tag_1200px.png differ
diff --git a/report/bitmaps_test/20240802-160009/report.json b/report/bitmaps_test/20240802-160009/report.json
new file mode 100644
index 0000000000..bed8419927
--- /dev/null
+++ b/report/bitmaps_test/20240802-160009/report.json
@@ -0,0 +1,197 @@
+{
+ "testSuite": "BackstopJS",
+ "tests": [
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Header_tag_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Header_tag_1024px.png",
+ "selector": "header",
+ "fileName": "Header_tag_1024px.png",
+ "label": "Header tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Header_tag_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Header_tag_1200px.png",
+ "selector": "header",
+ "fileName": "Header_tag_1200px.png",
+ "label": "Header tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Nav_tag_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Nav_tag_1024px.png",
+ "selector": "nav",
+ "fileName": "Nav_tag_1024px.png",
+ "label": "Nav tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Nav_tag_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Nav_tag_1200px.png",
+ "selector": "nav",
+ "fileName": "Nav_tag_1200px.png",
+ "label": "Nav tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_data-qa_hover_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_data-qa_hover_1024px.png",
+ "selector": "[data-qa=\"hover\"]",
+ "fileName": "Link_with_data-qa_hover_1024px.png",
+ "label": "Link with data-qa_hover",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_data-qa_hover_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_data-qa_hover_1200px.png",
+ "selector": "[data-qa=\"hover\"]",
+ "fileName": "Link_with_data-qa_hover_1200px.png",
+ "label": "Link with data-qa_hover",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_class_is-active_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_class_is-active_1024px.png",
+ "selector": "a.is-active",
+ "fileName": "Link_with_class_is-active_1024px.png",
+ "label": "Link with class_is-active",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_class_is-active_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_class_is-active_1200px.png",
+ "selector": "a.is-active",
+ "fileName": "Link_with_class_is-active_1200px.png",
+ "label": "Link with class_is-active",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/report/engine_scripts/cookies.json b/report/engine_scripts/cookies.json
new file mode 100644
index 0000000000..b59400d7e6
--- /dev/null
+++ b/report/engine_scripts/cookies.json
@@ -0,0 +1,14 @@
+[
+ {
+ "domain": ".www.yourdomain.com",
+ "path": "/",
+ "name": "yourCookieName",
+ "value": "yourCookieValue",
+ "expirationDate": 1798790400,
+ "hostOnly": false,
+ "httpOnly": false,
+ "secure": false,
+ "session": false,
+ "sameSite": "no_restriction"
+ }
+]
diff --git a/report/engine_scripts/imageStub.jpg b/report/engine_scripts/imageStub.jpg
new file mode 100644
index 0000000000..3e526b4bbb
Binary files /dev/null and b/report/engine_scripts/imageStub.jpg differ
diff --git a/report/engine_scripts/puppet/clickAndHoverHelper.js b/report/engine_scripts/puppet/clickAndHoverHelper.js
new file mode 100644
index 0000000000..6c1e1b8841
--- /dev/null
+++ b/report/engine_scripts/puppet/clickAndHoverHelper.js
@@ -0,0 +1,39 @@
+module.exports = async (page, scenario) => {
+ var hoverSelector = scenario.hoverSelectors || scenario.hoverSelector;
+ var clickSelector = scenario.clickSelectors || scenario.clickSelector;
+ var keyPressSelector = scenario.keyPressSelectors || scenario.keyPressSelector;
+ var scrollToSelector = scenario.scrollToSelector;
+ var postInteractionWait = scenario.postInteractionWait; // selector [str] | ms [int]
+
+ if (keyPressSelector) {
+ for (const keyPressSelectorItem of [].concat(keyPressSelector)) {
+ await page.waitForSelector(keyPressSelectorItem.selector);
+ await page.type(keyPressSelectorItem.selector, keyPressSelectorItem.keyPress);
+ }
+ }
+
+ if (hoverSelector) {
+ for (const hoverSelectorIndex of [].concat(hoverSelector)) {
+ await page.waitForSelector(hoverSelectorIndex);
+ await page.hover(hoverSelectorIndex);
+ }
+ }
+
+ if (clickSelector) {
+ for (const clickSelectorIndex of [].concat(clickSelector)) {
+ await page.waitForSelector(clickSelectorIndex);
+ await page.click(clickSelectorIndex);
+ }
+ }
+
+ if (postInteractionWait) {
+ await new Promise(resolve => setTimeout(resolve, postInteractionWait));
+ }
+
+ if (scrollToSelector) {
+ await page.waitForSelector(scrollToSelector);
+ await page.evaluate(scrollToSelector => {
+ document.querySelector(scrollToSelector).scrollIntoView();
+ }, scrollToSelector);
+ }
+};
diff --git a/report/engine_scripts/puppet/loadCookies.js b/report/engine_scripts/puppet/loadCookies.js
new file mode 100644
index 0000000000..db848a7cc7
--- /dev/null
+++ b/report/engine_scripts/puppet/loadCookies.js
@@ -0,0 +1,29 @@
+var fs = require('fs');
+
+module.exports = async (page, scenario) => {
+ var cookies = [];
+ var cookiePath = scenario.cookiePath;
+
+ // READ COOKIES FROM FILE IF EXISTS
+ if (fs.existsSync(cookiePath)) {
+ cookies = JSON.parse(fs.readFileSync(cookiePath));
+ }
+
+ // MUNGE COOKIE DOMAIN
+ cookies = cookies.map(cookie => {
+ cookie.url = 'https://' + cookie.domain;
+ delete cookie.domain;
+ return cookie;
+ });
+
+ // SET COOKIES
+ const setCookies = async () => {
+ return Promise.all(
+ cookies.map(async (cookie) => {
+ await page.setCookie(cookie);
+ })
+ );
+ };
+ await setCookies();
+ console.log('Cookie state restored with:', JSON.stringify(cookies, null, 2));
+};
diff --git a/report/engine_scripts/puppet/onBefore.js b/report/engine_scripts/puppet/onBefore.js
new file mode 100644
index 0000000000..a1c374c371
--- /dev/null
+++ b/report/engine_scripts/puppet/onBefore.js
@@ -0,0 +1,3 @@
+module.exports = async (page, scenario, vp) => {
+ await require('./loadCookies')(page, scenario);
+};
diff --git a/report/engine_scripts/puppet/onReady.js b/report/engine_scripts/puppet/onReady.js
new file mode 100644
index 0000000000..517c0e41b6
--- /dev/null
+++ b/report/engine_scripts/puppet/onReady.js
@@ -0,0 +1,6 @@
+module.exports = async (page, scenario, vp) => {
+ console.log('SCENARIO > ' + scenario.label);
+ await require('./clickAndHoverHelper')(page, scenario);
+
+ // add more ready handlers here...
+};
diff --git a/report/html_report/a96f14595379b7c348d66e115ec65a93.png b/report/html_report/a96f14595379b7c348d66e115ec65a93.png
new file mode 100644
index 0000000000..3c5adc37b2
Binary files /dev/null and b/report/html_report/a96f14595379b7c348d66e115ec65a93.png differ
diff --git a/report/html_report/assets/fonts/Lato-Bold.ttf b/report/html_report/assets/fonts/Lato-Bold.ttf
new file mode 100644
index 0000000000..74343694e2
Binary files /dev/null and b/report/html_report/assets/fonts/Lato-Bold.ttf differ
diff --git a/report/html_report/assets/fonts/Lato-Regular.ttf b/report/html_report/assets/fonts/Lato-Regular.ttf
new file mode 100644
index 0000000000..04ea8efb13
Binary files /dev/null and b/report/html_report/assets/fonts/Lato-Regular.ttf differ
diff --git a/report/html_report/assets/fonts/lato-bold-webfont.woff b/report/html_report/assets/fonts/lato-bold-webfont.woff
new file mode 100644
index 0000000000..d02221df5b
Binary files /dev/null and b/report/html_report/assets/fonts/lato-bold-webfont.woff differ
diff --git a/report/html_report/assets/fonts/lato-bold-webfont.woff2 b/report/html_report/assets/fonts/lato-bold-webfont.woff2
new file mode 100644
index 0000000000..d330650bc3
Binary files /dev/null and b/report/html_report/assets/fonts/lato-bold-webfont.woff2 differ
diff --git a/report/html_report/assets/fonts/lato-regular-webfont.woff b/report/html_report/assets/fonts/lato-regular-webfont.woff
new file mode 100644
index 0000000000..af2064a175
Binary files /dev/null and b/report/html_report/assets/fonts/lato-regular-webfont.woff differ
diff --git a/report/html_report/assets/fonts/lato-regular-webfont.woff2 b/report/html_report/assets/fonts/lato-regular-webfont.woff2
new file mode 100644
index 0000000000..0e58138a07
Binary files /dev/null and b/report/html_report/assets/fonts/lato-regular-webfont.woff2 differ
diff --git a/report/html_report/b815e28b1e230cff6e9d7b749edcd562.png b/report/html_report/b815e28b1e230cff6e9d7b749edcd562.png
new file mode 100644
index 0000000000..3c5adc37b2
Binary files /dev/null and b/report/html_report/b815e28b1e230cff6e9d7b749edcd562.png differ
diff --git a/report/html_report/config.js b/report/html_report/config.js
new file mode 100644
index 0000000000..5988948d71
--- /dev/null
+++ b/report/html_report/config.js
@@ -0,0 +1,197 @@
+report({
+ "testSuite": "BackstopJS",
+ "tests": [
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Header_tag_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Header_tag_1024px.png",
+ "selector": "header",
+ "fileName": "Header_tag_1024px.png",
+ "label": "Header tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Header_tag_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Header_tag_1200px.png",
+ "selector": "header",
+ "fileName": "Header_tag_1200px.png",
+ "label": "Header tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Nav_tag_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Nav_tag_1024px.png",
+ "selector": "nav",
+ "fileName": "Nav_tag_1024px.png",
+ "label": "Nav tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Nav_tag_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Nav_tag_1200px.png",
+ "selector": "nav",
+ "fileName": "Nav_tag_1200px.png",
+ "label": "Nav tag",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_data-qa_hover_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_data-qa_hover_1024px.png",
+ "selector": "[data-qa=\"hover\"]",
+ "fileName": "Link_with_data-qa_hover_1024px.png",
+ "label": "Link with data-qa_hover",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_data-qa_hover_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_data-qa_hover_1200px.png",
+ "selector": "[data-qa=\"hover\"]",
+ "fileName": "Link_with_data-qa_hover_1200px.png",
+ "label": "Link with data-qa_hover",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_class_is-active_1024px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_class_is-active_1024px.png",
+ "selector": "a.is-active",
+ "fileName": "Link_with_class_is-active_1024px.png",
+ "label": "Link with class_is-active",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1024px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ },
+ {
+ "pair": {
+ "reference": "..\\bitmaps_reference\\Link_with_class_is-active_1200px.png",
+ "test": "..\\bitmaps_test\\20240802-160009\\Link_with_class_is-active_1200px.png",
+ "selector": "a.is-active",
+ "fileName": "Link_with_class_is-active_1200px.png",
+ "label": "Link with class_is-active",
+ "requireSameDimensions": false,
+ "misMatchThreshold": 1,
+ "url": "http://localhost:3001/index.html",
+ "referenceUrl": "https://mate-academy.github.io/layout_solutions/moyo-header/",
+ "expect": 0,
+ "viewportLabel": "1200px",
+ "diff": {
+ "isSameDimensions": true,
+ "dimensionDifference": {
+ "width": 0,
+ "height": 0
+ },
+ "misMatchPercentage": "0.00"
+ }
+ },
+ "status": "pass"
+ }
+ ]
+});
\ No newline at end of file
diff --git a/report/html_report/diff.js b/report/html_report/diff.js
new file mode 100644
index 0000000000..0b824f1237
--- /dev/null
+++ b/report/html_report/diff.js
@@ -0,0 +1,1843 @@
+/*!
+
+ diff v3.5.0
+
+Software License Agreement (BSD License)
+
+Copyright (c) 2009-2015, Kevin Decker
+
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+* Neither the name of Kevin Decker nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+@license
+*/
+(function webpackUniversalModuleDefinition(root, factory) {
+ if(typeof exports === 'object' && typeof module === 'object')
+ module.exports = factory();
+ else if(typeof define === 'function' && define.amd)
+ define([], factory);
+ else if(typeof exports === 'object')
+ exports["JsDiff"] = factory();
+ else
+ root["JsDiff"] = factory();
+})(this, function() {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+
+
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.canonicalize = exports.convertChangesToXML = exports.convertChangesToDMP = exports.merge = exports.parsePatch = exports.applyPatches = exports.applyPatch = exports.createPatch = exports.createTwoFilesPatch = exports.structuredPatch = exports.diffArrays = exports.diffJson = exports.diffCss = exports.diffSentences = exports.diffTrimmedLines = exports.diffLines = exports.diffWordsWithSpace = exports.diffWords = exports.diffChars = exports.Diff = undefined;
+
+ /*istanbul ignore end*/var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ /*istanbul ignore end*/var /*istanbul ignore start*/_character = __webpack_require__(2) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_word = __webpack_require__(3) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_sentence = __webpack_require__(6) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_css = __webpack_require__(7) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_json = __webpack_require__(8) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_array = __webpack_require__(9) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_apply = __webpack_require__(10) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_merge = __webpack_require__(13) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_dmp = __webpack_require__(16) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_xml = __webpack_require__(17) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /* See LICENSE file for terms of use */
+
+ /*
+ * Text diff implementation.
+ *
+ * This library supports the following APIS:
+ * JsDiff.diffChars: Character by character diff
+ * JsDiff.diffWords: Word (as defined by \b regex) diff which ignores whitespace
+ * JsDiff.diffLines: Line based diff
+ *
+ * JsDiff.diffCss: Diff targeted at CSS content
+ *
+ * These methods are based on the implementation proposed in
+ * "An O(ND) Difference Algorithm and its Variations" (Myers, 1986).
+ * http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927
+ */
+ exports. /*istanbul ignore end*/Diff = _base2['default'];
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffChars = _character.diffChars;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWords = _word.diffWords;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = _word.diffWordsWithSpace;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffLines = _line.diffLines;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = _line.diffTrimmedLines;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffSentences = _sentence.diffSentences;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffCss = _css.diffCss;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffJson = _json.diffJson;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffArrays = _array.diffArrays;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/structuredPatch = _create.structuredPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = _create.createTwoFilesPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = _create.createPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatch = _apply.applyPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = _apply.applyPatches;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/parsePatch = _parse.parsePatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = _merge.merge;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToDMP = _dmp.convertChangesToDMP;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/convertChangesToXML = _xml.convertChangesToXML;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = _json.canonicalize;
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJEaWZmIiwiZGlmZkNoYXJzIiwiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImRpZmZTZW50ZW5jZXMiLCJkaWZmQ3NzIiwiZGlmZkpzb24iLCJkaWZmQXJyYXlzIiwic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwiYXBwbHlQYXRjaCIsImFwcGx5UGF0Y2hlcyIsInBhcnNlUGF0Y2giLCJtZXJnZSIsImNvbnZlcnRDaGFuZ2VzVG9ETVAiLCJjb252ZXJ0Q2hhbmdlc1RvWE1MIiwiY2Fub25pY2Fsa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xuaW1wb3J0IHtjb252ZXJ0Q2hhbmdlc1RvWE1MfSBmcm9tICcuL2NvbnZlcnQveG1sJztcblxuZXhwb3J0IHtcbiAgRGlmZixcblxuICBkaWZmQ2hhcnMsXG4gIGRpZmZXb3JkcyxcbiAgZGlmZldvcmRzV2l0aFNwYWNlLFxuICBkaWZmTGluZXMsXG4gIGRpZmZUcmltbWVkTGluZXMsXG4gIGRpZmZTZW50ZW5jZXMsXG5cbiAgZGlmZkNzcyxcbiAgZGlmZkpzb24sXG5cbiAgZGlmZkFycmF5cyxcblxuICBzdHJ1Y3R1cmVkUGF0Y2gsXG4gIGNyZWF0ZVR3b0ZpbGVzUGF0Y2gsXG4gIGNyZWF0ZVBhdGNoLFxuICBhcHBseVBhdGNoLFxuICBhcHBseVBhdGNoZXMsXG4gIHBhcnNlUGF0Y2gsXG4gIG1lcmdlLFxuICBjb252ZXJ0Q2hhbmdlc1RvRE1QLFxuICBjb252ZXJ0Q2hhbmdlc1RvWE1MLFxuICBjYW5vbmljYWxpemVcbn07XG4iXX0=
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports['default'] = /*istanbul ignore end*/Diff;
+ function Diff() {}
+
+ Diff.prototype = {
+ /*istanbul ignore start*/ /*istanbul ignore end*/diff: function diff(oldString, newString) {
+ /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+
+ var callback = options.callback;
+ if (typeof options === 'function') {
+ callback = options;
+ options = {};
+ }
+ this.options = options;
+
+ var self = this;
+
+ function done(value) {
+ if (callback) {
+ setTimeout(function () {
+ callback(undefined, value);
+ }, 0);
+ return true;
+ } else {
+ return value;
+ }
+ }
+
+ // Allow subclasses to massage the input prior to running
+ oldString = this.castInput(oldString);
+ newString = this.castInput(newString);
+
+ oldString = this.removeEmpty(this.tokenize(oldString));
+ newString = this.removeEmpty(this.tokenize(newString));
+
+ var newLen = newString.length,
+ oldLen = oldString.length;
+ var editLength = 1;
+ var maxEditLength = newLen + oldLen;
+ var bestPath = [{ newPos: -1, components: [] }];
+
+ // Seed editLength = 0, i.e. the content starts with the same values
+ var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);
+ if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {
+ // Identity per the equality and tokenizer
+ return done([{ value: this.join(newString), count: newString.length }]);
+ }
+
+ // Main worker method. checks all permutations of a given edit length for acceptance.
+ function execEditLength() {
+ for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {
+ var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+ var addPath = bestPath[diagonalPath - 1],
+ removePath = bestPath[diagonalPath + 1],
+ _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;
+ if (addPath) {
+ // No one else is going to attempt to use this value, clear it
+ bestPath[diagonalPath - 1] = undefined;
+ }
+
+ var canAdd = addPath && addPath.newPos + 1 < newLen,
+ canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;
+ if (!canAdd && !canRemove) {
+ // If this path is a terminal then prune
+ bestPath[diagonalPath] = undefined;
+ continue;
+ }
+
+ // Select the diagonal that we want to branch from. We select the prior
+ // path whose position in the new string is the farthest from the origin
+ // and does not pass the bounds of the diff graph
+ if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {
+ basePath = clonePath(removePath);
+ self.pushComponent(basePath.components, undefined, true);
+ } else {
+ basePath = addPath; // No need to clone, we've pulled it from the list
+ basePath.newPos++;
+ self.pushComponent(basePath.components, true, undefined);
+ }
+
+ _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);
+
+ // If we have hit the end of both strings, then we are done
+ if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {
+ return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));
+ } else {
+ // Otherwise track this path as a potential candidate and continue.
+ bestPath[diagonalPath] = basePath;
+ }
+ }
+
+ editLength++;
+ }
+
+ // Performs the length of edit iteration. Is a bit fugly as this has to support the
+ // sync and async mode which is never fun. Loops over execEditLength until a value
+ // is produced.
+ if (callback) {
+ (function exec() {
+ setTimeout(function () {
+ // This should not happen, but we want to be safe.
+ /* istanbul ignore next */
+ if (editLength > maxEditLength) {
+ return callback();
+ }
+
+ if (!execEditLength()) {
+ exec();
+ }
+ }, 0);
+ })();
+ } else {
+ while (editLength <= maxEditLength) {
+ var ret = execEditLength();
+ if (ret) {
+ return ret;
+ }
+ }
+ }
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/pushComponent: function pushComponent(components, added, removed) {
+ var last = components[components.length - 1];
+ if (last && last.added === added && last.removed === removed) {
+ // We need to clone here as the component clone operation is just
+ // as shallow array clone
+ components[components.length - 1] = { count: last.count + 1, added: added, removed: removed };
+ } else {
+ components.push({ count: 1, added: added, removed: removed });
+ }
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {
+ var newLen = newString.length,
+ oldLen = oldString.length,
+ newPos = basePath.newPos,
+ oldPos = newPos - diagonalPath,
+ commonCount = 0;
+ while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) {
+ newPos++;
+ oldPos++;
+ commonCount++;
+ }
+
+ if (commonCount) {
+ basePath.components.push({ count: commonCount });
+ }
+
+ basePath.newPos = newPos;
+ return oldPos;
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/equals: function equals(left, right) {
+ if (this.options.comparator) {
+ return this.options.comparator(left, right);
+ } else {
+ return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase();
+ }
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/removeEmpty: function removeEmpty(array) {
+ var ret = [];
+ for (var i = 0; i < array.length; i++) {
+ if (array[i]) {
+ ret.push(array[i]);
+ }
+ }
+ return ret;
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/castInput: function castInput(value) {
+ return value;
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/tokenize: function tokenize(value) {
+ return value.split('');
+ },
+ /*istanbul ignore start*/ /*istanbul ignore end*/join: function join(chars) {
+ return chars.join('');
+ }
+ };
+
+ function buildValues(diff, components, newString, oldString, useLongestToken) {
+ var componentPos = 0,
+ componentLen = components.length,
+ newPos = 0,
+ oldPos = 0;
+
+ for (; componentPos < componentLen; componentPos++) {
+ var component = components[componentPos];
+ if (!component.removed) {
+ if (!component.added && useLongestToken) {
+ var value = newString.slice(newPos, newPos + component.count);
+ value = value.map(function (value, i) {
+ var oldValue = oldString[oldPos + i];
+ return oldValue.length > value.length ? oldValue : value;
+ });
+
+ component.value = diff.join(value);
+ } else {
+ component.value = diff.join(newString.slice(newPos, newPos + component.count));
+ }
+ newPos += component.count;
+
+ // Common case
+ if (!component.added) {
+ oldPos += component.count;
+ }
+ } else {
+ component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));
+ oldPos += component.count;
+
+ // Reverse add and remove so removes are output first to match common convention
+ // The diffing algorithm is tied to add then remove output and this is the simplest
+ // route to get the desired output with minimal overhead.
+ if (componentPos && components[componentPos - 1].added) {
+ var tmp = components[componentPos - 1];
+ components[componentPos - 1] = components[componentPos];
+ components[componentPos] = tmp;
+ }
+ }
+ }
+
+ // Special case handle for when one terminal is ignored (i.e. whitespace).
+ // For this case we merge the terminal into the prior string and drop the change.
+ // This is only available for string mode.
+ var lastComponent = components[componentLen - 1];
+ if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) {
+ components[componentLen - 2].value += lastComponent.value;
+ components.pop();
+ }
+
+ return components;
+ }
+
+ function clonePath(path) {
+ return { newPos: path.newPos, components: path.components.slice(0) };
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXM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VuKSB7XG4gIGxldCBjb21wb25lbnRQb3MgPSAwLFxuICAgICAgY29tcG9uZW50TGVuID0gY29tcG9uZW50cy5sZW5ndGgsXG4gICAgICBuZXdQb3MgPSAwLFxuICAgICAgb2xkUG9zID0gMDtcblxuICBmb3IgKDsgY29tcG9uZW50UG9zIDwgY29tcG9uZW50TGVuOyBjb21wb25lbnRQb3MrKykge1xuICAgIGxldCBjb21wb25lbnQgPSBjb21wb25lbnRzW2NvbXBvbmVudFBvc107XG4gICAgaWYgKCFjb21wb25lbnQucmVtb3ZlZCkge1xuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQgJiYgdXNlTG9uZ2VzdFRva2VuKSB7XG4gICAgICAgIGxldCB2YWx1ZSA9IG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCk7XG4gICAgICAgIHZhbHVlID0gdmFsdWUubWFwKGZ1bmN0aW9uKHZhbHVlLCBpKSB7XG4gICAgICAgICAgbGV0IG9sZFZhbHVlID0gb2xkU3RyaW5nW29sZFBvcyArIGldO1xuICAgICAgICAgIHJldHVybiBvbGRWYWx1ZS5sZW5ndGggPiB2YWx1ZS5sZW5ndGggPyBvbGRWYWx1ZSA6IHZhbHVlO1xuICAgICAgICB9KTtcblxuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4odmFsdWUpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG5ld1N0cmluZy5zbGljZShuZXdQb3MsIG5ld1BvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgfVxuICAgICAgbmV3UG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gQ29tbW9uIGNhc2VcbiAgICAgIGlmICghY29tcG9uZW50LmFkZGVkKSB7XG4gICAgICAgIG9sZFBvcyArPSBjb21wb25lbnQuY291bnQ7XG4gICAgICB9XG4gICAgfSBlbHN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5nIG1vZGUuXG4gIGxldCBsYXN0Q29tcG9uZW50ID0gY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAxXTtcbiAgaWYgKGNvbXBvbmVudExlbiA+IDFcbiAgICAgICYmIHR5cGVvZiBsYXN0Q29tcG9uZW50LnZhbHVlID09PSAnc3RyaW5nJ1xuICAgICAgJiYgKGxhc3RDb21wb25lbnQuYWRkZWQgfHwgbGFzdENvbXBvbmVudC5yZW1vdmVkKVxuICAgICAgJiYgZGlmZi5lcXVhbHMoJycsIGxhc3RDb21wb25lbnQudmFsdWUpKSB7XG4gICAgY29tcG9uZW50c1tjb21wb25lbnRMZW4gLSAyXS52YWx1ZSArPSBsYXN0Q29tcG9uZW50LnZhbHVlO1xuICAgIGNvbXBvbmVudHMucG9wKCk7XG4gIH1cblxuICByZXR1cm4gY29tcG9uZW50cztcbn1cblxuZnVuY3Rpb24gY2xvbmVQYXRoKHBhdGgpIHtcbiAgcmV0dXJuIHsgbmV3UG9zOiBwYXRoLm5ld1BvcywgY29tcG9uZW50czogcGF0aC5jb21wb25lbnRzLnNsaWNlKDApIH07XG59XG4iXX0=
+
+
+/***/ }),
+/* 2 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.characterDiff = undefined;
+ exports. /*istanbul ignore end*/diffChars = diffChars;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var characterDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/characterDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ function diffChars(oldStr, newStr, options) {
+ return characterDiff.diff(oldStr, newStr, options);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJkaWZmQ2hhcnMiLCJjaGFyYWN0ZXJEaWZmIiwib2xkU3RyIiwibmV3U3RyIiwib3B0aW9ucyIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBR2dCQSxTLEdBQUFBLFM7O0FBSGhCOzs7Ozs7dUJBRU8sSUFBTUMseUZBQWdCLHdFQUF0QjtBQUNBLFNBQVNELFNBQVQsQ0FBbUJFLE1BQW5CLEVBQTJCQyxNQUEzQixFQUFtQ0MsT0FBbkMsRUFBNEM7QUFBRSxTQUFPSCxjQUFjSSxJQUFkLENBQW1CSCxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLENBQVA7QUFBcUQiLCJmaWxlIjoiY2hhcmFjdGVyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNoYXJhY3RlckRpZmYgPSBuZXcgRGlmZigpO1xuZXhwb3J0IGZ1bmN0aW9uIGRpZmZDaGFycyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykgeyByZXR1cm4gY2hhcmFjdGVyRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTsgfVxuIl19
+
+
+/***/ }),
+/* 3 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.wordDiff = undefined;
+ exports. /*istanbul ignore end*/diffWords = diffWords;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffWordsWithSpace = diffWordsWithSpace;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/ // Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode
+ //
+ // Ranges and exceptions:
+ // Latin-1 Supplement, 0080–00FF
+ // - U+00D7 × Multiplication sign
+ // - U+00F7 ÷ Division sign
+ // Latin Extended-A, 0100–017F
+ // Latin Extended-B, 0180–024F
+ // IPA Extensions, 0250–02AF
+ // Spacing Modifier Letters, 02B0–02FF
+ // - U+02C7 ˇ ˇ Caron
+ // - U+02D8 ˘ ˘ Breve
+ // - U+02D9 ˙ ˙ Dot Above
+ // - U+02DA ˚ ˚ Ring Above
+ // - U+02DB ˛ ˛ Ogonek
+ // - U+02DC ˜ ˜ Small Tilde
+ // - U+02DD ˝ ˝ Double Acute Accent
+ // Latin Extended Additional, 1E00–1EFF
+ var extendedWordChars = /^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/;
+
+ var reWhitespace = /\S/;
+
+ var wordDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/wordDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ wordDiff.equals = function (left, right) {
+ if (this.options.ignoreCase) {
+ left = left.toLowerCase();
+ right = right.toLowerCase();
+ }
+ return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right);
+ };
+ wordDiff.tokenize = function (value) {
+ var tokens = value.split(/(\s+|\b)/);
+
+ // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set.
+ for (var i = 0; i < tokens.length - 1; i++) {
+ // If we have an empty string in the next field and we have only word chars before and after, merge
+ if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) {
+ tokens[i] += tokens[i + 2];
+ tokens.splice(i + 1, 2);
+ i--;
+ }
+ }
+
+ return tokens;
+ };
+
+ function diffWords(oldStr, newStr, options) {
+ options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(options, { ignoreWhitespace: true });
+ return wordDiff.diff(oldStr, newStr, options);
+ }
+
+ function diffWordsWithSpace(oldStr, newStr, options) {
+ return wordDiff.diff(oldStr, newStr, options);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3dvcmQuanMiXSwibmFtZXMiOlsiZGlmZldvcmRzIiwiZGlmZldvcmRzV2l0aFNwYWNlIiwiZXh0ZW5kZWRXb3JkQ2hhcnMiLCJyZVdoaXRlc3BhY2UiLCJ3b3JkRGlmZiIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsIm9wdGlvbnMiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJpZ25vcmVXaGl0ZXNwYWNlIiwidGVzdCIsInRva2VuaXplIiwidmFsdWUiLCJ0b2tlbnMiLCJzcGxpdCIsImkiLCJsZW5ndGgiLCJzcGxpY2UiLCJvbGRTdHIiLCJuZXdTdHIiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7O2dDQW1EZ0JBLFMsR0FBQUEsUzt5REFLQUMsa0IsR0FBQUEsa0I7O0FBeERoQjs7Ozt1QkFDQTs7Ozt3QkFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxJQUFNQyxvQkFBb0IsK0RBQTFCOztBQUVBLElBQU1DLGVBQWUsSUFBckI7O0FBRU8sSUFBTUMsK0VBQVcsd0VBQWpCO0FBQ1BBLFNBQVNDLE1BQVQsR0FBa0IsVUFBU0MsSUFBVCxFQUFlQyxLQUFmLEVBQXNCO0FBQ3RDLE1BQUksS0FBS0MsT0FBTCxDQUFhQyxVQUFqQixFQUE2QjtBQUMzQkg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* 4 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/generateOptions = generateOptions;
+ function generateOptions(options, defaults) {
+ if (typeof options === 'function') {
+ defaults.callback = options;
+ } else if (options) {
+ for (var name in options) {
+ /* istanbul ignore else */
+ if (options.hasOwnProperty(name)) {
+ defaults[name] = options[name];
+ }
+ }
+ }
+ return defaults;
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7O2dDQUFnQkEsZSxHQUFBQSxlO0FBQVQsU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsYUFBU0MsUUFBVCxHQUFvQkYsT0FBcEI7QUFDRCxHQUZELE1BRU8sSUFBSUEsT0FBSixFQUFhO0FBQ2xCLFNBQUssSUFBSUcsSUFBVCxJQUFpQkgsT0FBakIsRUFBMEI7QUFDeEI7QUFDQSxVQUFJQSxRQUFRSSxjQUFSLENBQXVCRCxJQUF2QixDQUFKLEVBQWtDO0FBQ2hDRixpQkFBU0UsSUFBVCxJQUFpQkgsUUFBUUcsSUFBUixDQUFqQjtBQUNEO0FBQ0Y7QUFDRjtBQUNELFNBQU9GLFFBQVA7QUFDRCIsImZpbGUiOiJwYXJhbXMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0=
+
+
+/***/ }),
+/* 5 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.lineDiff = undefined;
+ exports. /*istanbul ignore end*/diffLines = diffLines;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/diffTrimmedLines = diffTrimmedLines;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ /*istanbul ignore end*/var /*istanbul ignore start*/_params = __webpack_require__(4) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var lineDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/lineDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ lineDiff.tokenize = function (value) {
+ var retLines = [],
+ linesAndNewlines = value.split(/(\n|\r\n)/);
+
+ // Ignore the final empty token that occurs if the string ends with a new line
+ if (!linesAndNewlines[linesAndNewlines.length - 1]) {
+ linesAndNewlines.pop();
+ }
+
+ // Merge the content and line separators into single tokens
+ for (var i = 0; i < linesAndNewlines.length; i++) {
+ var line = linesAndNewlines[i];
+
+ if (i % 2 && !this.options.newlineIsToken) {
+ retLines[retLines.length - 1] += line;
+ } else {
+ if (this.options.ignoreWhitespace) {
+ line = line.trim();
+ }
+ retLines.push(line);
+ }
+ }
+
+ return retLines;
+ };
+
+ function diffLines(oldStr, newStr, callback) {
+ return lineDiff.diff(oldStr, newStr, callback);
+ }
+ function diffTrimmedLines(oldStr, newStr, callback) {
+ var options = /*istanbul ignore start*/(0, _params.generateOptions) /*istanbul ignore end*/(callback, { ignoreWhitespace: true });
+ return lineDiff.diff(oldStr, newStr, options);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2xpbmUuanMiXSwibmFtZXMiOlsiZGlmZkxpbmVzIiwiZGlmZlRyaW1tZWRMaW5lcyIsImxpbmVEaWZmIiwidG9rZW5pemUiLCJ2YWx1ZSIsInJldExpbmVzIiwibGluZXNBbmROZXdsaW5lcyIsInNwbGl0IiwibGVuZ3RoIiwicG9wIiwiaSIsImxpbmUiLCJvcHRpb25zIiwibmV3bGluZUlzVG9rZW4iLCJpZ25vcmVXaGl0ZXNwYWNlIiwidHJpbSIsInB1c2giLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBOEJnQkEsUyxHQUFBQSxTO3lEQUNBQyxnQixHQUFBQSxnQjs7QUEvQmhCOzs7O3VCQUNBOzs7O3VCQUVPLElBQU1DLCtFQUFXLHdFQUFqQjtBQUNQQSxTQUFTQyxRQUFULEdBQW9CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDbEMsTUFBSUMsV0FBVyxFQUFmO0FBQUEsTUFDSUMsbUJBQW1CRixNQUFNRyxLQUFOLENBQVksV0FBWixDQUR2Qjs7QUFHQTtBQUNBLE1BQUksQ0FBQ0QsaUJBQWlCQSxpQkFBaUJFLE1BQWpCLEdBQTBCLENBQTNDL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leHBvcnQgZnVuY3Rpb24gZGlmZkxpbmVzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykgeyByZXR1cm4gbGluZURpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG5leHBvcnQgZnVuY3Rpb24gZGlmZlRyaW1tZWRMaW5lcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHtcbiAgbGV0IG9wdGlvbnMgPSBnZW5lcmF0ZU9wdGlvbnMoY2FsbGJhY2ssIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiBsaW5lRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cbiJdfQ==
+
+
+/***/ }),
+/* 6 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.sentenceDiff = undefined;
+ exports. /*istanbul ignore end*/diffSentences = diffSentences;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var sentenceDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/sentenceDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ sentenceDiff.tokenize = function (value) {
+ return value.split(/(\S.+?[.!?])(?=\s+|$)/);
+ };
+
+ function diffSentences(oldStr, newStr, callback) {
+ return sentenceDiff.diff(oldStr, newStr, callback);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3NlbnRlbmNlLmpzIl0sIm5hbWVzIjpbImRpZmZTZW50ZW5jZXMiLCJzZW50ZW5jZURpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic3BsaXQiLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Z0NBUWdCQSxhLEdBQUFBLGE7O0FBUmhCOzs7Ozs7dUJBR08sSUFBTUMsdUZBQWUsd0VBQXJCO0FBQ1BBLGFBQWFDLFFBQWIsR0FBd0IsVUFBU0MsS0FBVCxFQUFnQjtBQUN0QyxTQUFPQSxNQUFNQyxLQUFOLENBQVksdUJBQVosQ0FBUDtBQUNELENBRkQ7O0FBSU8sU0FBU0osYUFBVCxDQUF1QkssTUFBdkIsRUFBK0JDLE1BQS9CLEVBQXVDQyxRQUF2QyxFQUFpRDtBQUFFLFNBQU9OLGFBQWFPLElBQWIsQ0FBa0JILE1BQWxCLEVBQTBCQyxNQUExQixFQUFrQ0MsUUFBbEMsQ0FBUDtBQUFxRCIsImZpbGUiOiJzZW50ZW5jZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cblxuZXhwb3J0IGNvbnN0IHNlbnRlbmNlRGlmZiA9IG5ldyBEaWZmKCk7XG5zZW50ZW5jZURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhcXFMuKz9bLiE/XSkoPz1cXHMrfCQpLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZlNlbnRlbmNlcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIHNlbnRlbmNlRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ==
+
+
+/***/ }),
+/* 7 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.cssDiff = undefined;
+ exports. /*istanbul ignore end*/diffCss = diffCss;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var cssDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/cssDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ cssDiff.tokenize = function (value) {
+ return value.split(/([{}:;,]|\s+)/);
+ };
+
+ function diffCss(oldStr, newStr, callback) {
+ return cssDiff.diff(oldStr, newStr, callback);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Nzcy5qcyJdLCJuYW1lcyI6WyJkaWZmQ3NzIiwiY3NzRGlmZiIsInRva2VuaXplIiwidmFsdWUiLCJzcGxpdCIsIm9sZFN0ciIsIm5ld1N0ciIsImNhbGxiYWNrIiwiZGlmZiJdLCJtYXBwaW5ncyI6Ijs7OztnQ0FPZ0JBLE8sR0FBQUEsTzs7QUFQaEI7Ozs7Ozt1QkFFTyxJQUFNQyw2RUFBVSx3RUFBaEI7QUFDUEEsUUFBUUMsUUFBUixHQUFtQixVQUFTQyxLQUFULEVBQWdCO0FBQ2pDLFNBQU9BLE1BQU1DLEtBQU4sQ0FBWSxlQUFaLENBQVA7QUFDRCxDQUZEOztBQUlPLFNBQVNKLE9BQVQsQ0FBaUJLLE1BQWpCLEVBQXlCQyxNQUF6QixFQUFpQ0MsUUFBakMsRUFBMkM7QUFBRSxTQUFPTixRQUFRTyxJQUFSLENBQWFILE1BQWIsRUFBcUJDLE1BQXJCLEVBQTZCQyxRQUE3QixDQUFQO0FBQWdEIiwiZmlsZSI6ImNzcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBEaWZmIGZyb20gJy4vYmFzZSc7XG5cbmV4cG9ydCBjb25zdCBjc3NEaWZmID0gbmV3IERpZmYoKTtcbmNzc0RpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc3BsaXQoLyhbe306OyxdfFxccyspLyk7XG59O1xuXG5leHBvcnQgZnVuY3Rpb24gZGlmZkNzcyhvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spIHsgcmV0dXJuIGNzc0RpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgY2FsbGJhY2spOyB9XG4iXX0=
+
+
+/***/ }),
+/* 8 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.jsonDiff = undefined;
+
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+ exports. /*istanbul ignore end*/diffJson = diffJson;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/canonicalize = canonicalize;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ /*istanbul ignore end*/var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var objectPrototypeToString = Object.prototype.toString;
+
+ var jsonDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/jsonDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a
+ // dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output:
+ jsonDiff.useLongestToken = true;
+
+ jsonDiff.tokenize = /*istanbul ignore start*/_line.lineDiff /*istanbul ignore end*/.tokenize;
+ jsonDiff.castInput = function (value) {
+ /*istanbul ignore start*/var _options = /*istanbul ignore end*/this.options,
+ undefinedReplacement = _options.undefinedReplacement,
+ _options$stringifyRep = _options.stringifyReplacer,
+ stringifyReplacer = _options$stringifyRep === undefined ? function (k, v) /*istanbul ignore start*/{
+ return (/*istanbul ignore end*/typeof v === 'undefined' ? undefinedReplacement : v
+ );
+ } : _options$stringifyRep;
+
+
+ return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');
+ };
+ jsonDiff.equals = function (left, right) {
+ return (/*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/.prototype.equals.call(jsonDiff, left.replace(/,([\r\n])/g, '$1'), right.replace(/,([\r\n])/g, '$1'))
+ );
+ };
+
+ function diffJson(oldObj, newObj, options) {
+ return jsonDiff.diff(oldObj, newObj, options);
+ }
+
+ // This function handles the presence of circular references by bailing out when encountering an
+ // object that is already on the "stack" of items being processed. Accepts an optional replacer
+ function canonicalize(obj, stack, replacementStack, replacer, key) {
+ stack = stack || [];
+ replacementStack = replacementStack || [];
+
+ if (replacer) {
+ obj = replacer(key, obj);
+ }
+
+ var i = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+
+ for (i = 0; i < stack.length; i += 1) {
+ if (stack[i] === obj) {
+ return replacementStack[i];
+ }
+ }
+
+ var canonicalizedObj = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+
+ if ('[object Array]' === objectPrototypeToString.call(obj)) {
+ stack.push(obj);
+ canonicalizedObj = new Array(obj.length);
+ replacementStack.push(canonicalizedObj);
+ for (i = 0; i < obj.length; i += 1) {
+ canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key);
+ }
+ stack.pop();
+ replacementStack.pop();
+ return canonicalizedObj;
+ }
+
+ if (obj && obj.toJSON) {
+ obj = obj.toJSON();
+ }
+
+ if ( /*istanbul ignore start*/(typeof /*istanbul ignore end*/obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj !== null) {
+ stack.push(obj);
+ canonicalizedObj = {};
+ replacementStack.push(canonicalizedObj);
+ var sortedKeys = [],
+ _key = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+ for (_key in obj) {
+ /* istanbul ignore else */
+ if (obj.hasOwnProperty(_key)) {
+ sortedKeys.push(_key);
+ }
+ }
+ sortedKeys.sort();
+ for (i = 0; i < sortedKeys.length; i += 1) {
+ _key = sortedKeys[i];
+ canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key);
+ }
+ stack.pop();
+ replacementStack.pop();
+ } else {
+ canonicalizedObj = obj;
+ }
+ return canonicalizedObj;
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2pzb24uanMiXSwibmFtZXMiOlsiZGlmZkpzb24iLCJjYW5vbmljYWxpemUiLCJvYmplY3RQcm90b3R5cGVUb1N0cmluZyIsIk9iamVjdCIsInByb3RvdHlwZSIsInRvU3RyaW5nIiwianNvbkRpZmYiLCJ1c2VMb25nZXN0VG9rZW4iLCJ0b2tlbml6ZSIsImNhc3RJbnB1dCIsInZhbHVlIiwib3B0aW9ucyIsInVuZGVmaW5lZFJlcGxhY2VtZW50Iiwic3RyaW5naWZ5UmVwbGFjZXIiLCJrIiwidiIsIkpTT04iLCJzdHJpbmdpZnkiLCJlcXVhbHMiLCJsZWZ0IiwicmlnaHQiLCJjYWxsIiwicmVwbGFjZSIsIm9sZE9iaiIsIm5ld09iaiIsImRpZmYiLCJvYmoiLCJzdGFjayIsInJlcGxhY2VtZW50U3RhY2siLCJyZXBsYWNlciIsImtleSIsImkiLCJsZW5ndGgiLCJjYW5vbmljYWxpemVkT2JqIiwicHVzaCIsIkFycmF5IiwicG9wIiwidG9KU09OIiwic29ydGVkS2V5cyIsImhhc093blByb3BlcnR5Iiwic29ydCJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztnQ0FxQmdCQSxRLEdBQUFBLFE7eURBSUFDLFksR0FBQUEsWTs7QUF6Qm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eShrZXkpKSB7XG4gICAgICAgIHNvcnRlZEtleXMucHVzaChrZXkpO1xuICAgICAgfVxuICAgIH1cbiAgICBzb3J0ZWRLZXlzLnNvcnQoKTtcbiAgICBmb3IgKGkgPSAwOyBpIDwgc29ydGVkS2V5cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAga2V5ID0gc29ydGVkS2V5c1tpXTtcbiAgICAgIGNhbm9uaWNhbGl6ZWRPYmpba2V5XSA9IGNhbm9uaWNhbGl6ZShvYmpba2V5XSwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpO1xuICAgIH1cbiAgICBzdGFjay5wb3AoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnBvcCgpO1xuICB9IGVsc2Uge1xuICAgIGNhbm9uaWNhbGl6ZWRPYmogPSBvYmo7XG4gIH1cbiAgcmV0dXJuIGNhbm9uaWNhbGl6ZWRPYmo7XG59XG4iXX0=
+
+
+/***/ }),
+/* 9 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports.arrayDiff = undefined;
+ exports. /*istanbul ignore end*/diffArrays = diffArrays;
+
+ var /*istanbul ignore start*/_base = __webpack_require__(1) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _base2 = _interopRequireDefault(_base);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/var arrayDiff = /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayDiff = new /*istanbul ignore start*/_base2['default'] /*istanbul ignore end*/();
+ arrayDiff.tokenize = function (value) {
+ return value.slice();
+ };
+ arrayDiff.join = arrayDiff.removeEmpty = function (value) {
+ return value;
+ };
+
+ function diffArrays(oldArr, newArr, callback) {
+ return arrayDiff.diff(oldArr, newArr, callback);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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FycmF5cyhvbGRBcnIsIG5ld0FyciwgY2FsbGJhY2spIHsgcmV0dXJuIGFycmF5RGlmZi5kaWZmKG9sZEFyciwgbmV3QXJyLCBjYWxsYmFjayk7IH1cbiJdfQ==
+
+
+/***/ }),
+/* 10 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/applyPatch = applyPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/applyPatches = applyPatches;
+
+ var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_distanceIterator = __webpack_require__(12) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/var _distanceIterator2 = _interopRequireDefault(_distanceIterator);
+
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
+
+ /*istanbul ignore end*/function applyPatch(source, uniDiff) {
+ /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
+
+ if (typeof uniDiff === 'string') {
+ uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff);
+ }
+
+ if (Array.isArray(uniDiff)) {
+ if (uniDiff.length > 1) {
+ throw new Error('applyPatch only works with a single input.');
+ }
+
+ uniDiff = uniDiff[0];
+ }
+
+ // Apply the diff to the input
+ var lines = source.split(/\r\n|[\n\v\f\r\x85]/),
+ delimiters = source.match(/\r\n|[\n\v\f\r\x85]/g) || [],
+ hunks = uniDiff.hunks,
+ compareLine = options.compareLine || function (lineNumber, line, operation, patchContent) /*istanbul ignore start*/{
+ return (/*istanbul ignore end*/line === patchContent
+ );
+ },
+ errorCount = 0,
+ fuzzFactor = options.fuzzFactor || 0,
+ minLine = 0,
+ offset = 0,
+ removeEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/,
+ addEOFNL = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+
+ /**
+ * Checks if the hunk exactly fits on the provided location
+ */
+ function hunkFits(hunk, toPos) {
+ for (var j = 0; j < hunk.lines.length; j++) {
+ var line = hunk.lines[j],
+ operation = line.length > 0 ? line[0] : ' ',
+ content = line.length > 0 ? line.substr(1) : line;
+
+ if (operation === ' ' || operation === '-') {
+ // Context sanity check
+ if (!compareLine(toPos + 1, lines[toPos], operation, content)) {
+ errorCount++;
+
+ if (errorCount > fuzzFactor) {
+ return false;
+ }
+ }
+ toPos++;
+ }
+ }
+
+ return true;
+ }
+
+ // Search best fit offsets for each hunk based on the previous ones
+ for (var i = 0; i < hunks.length; i++) {
+ var hunk = hunks[i],
+ maxLine = lines.length - hunk.oldLines,
+ localOffset = 0,
+ toPos = offset + hunk.oldStart - 1;
+
+ var iterator = /*istanbul ignore start*/(0, _distanceIterator2['default']) /*istanbul ignore end*/(toPos, minLine, maxLine);
+
+ for (; localOffset !== undefined; localOffset = iterator()) {
+ if (hunkFits(hunk, toPos + localOffset)) {
+ hunk.offset = offset += localOffset;
+ break;
+ }
+ }
+
+ if (localOffset === undefined) {
+ return false;
+ }
+
+ // Set lower text limit to end of the current hunk, so next ones don't try
+ // to fit over already patched text
+ minLine = hunk.offset + hunk.oldStart + hunk.oldLines;
+ }
+
+ // Apply patch hunks
+ var diffOffset = 0;
+ for (var _i = 0; _i < hunks.length; _i++) {
+ var _hunk = hunks[_i],
+ _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1;
+ diffOffset += _hunk.newLines - _hunk.oldLines;
+
+ if (_toPos < 0) {
+ // Creating a new file
+ _toPos = 0;
+ }
+
+ for (var j = 0; j < _hunk.lines.length; j++) {
+ var line = _hunk.lines[j],
+ operation = line.length > 0 ? line[0] : ' ',
+ content = line.length > 0 ? line.substr(1) : line,
+ delimiter = _hunk.linedelimiters[j];
+
+ if (operation === ' ') {
+ _toPos++;
+ } else if (operation === '-') {
+ lines.splice(_toPos, 1);
+ delimiters.splice(_toPos, 1);
+ /* istanbul ignore else */
+ } else if (operation === '+') {
+ lines.splice(_toPos, 0, content);
+ delimiters.splice(_toPos, 0, delimiter);
+ _toPos++;
+ } else if (operation === '\\') {
+ var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null;
+ if (previousOperation === '+') {
+ removeEOFNL = true;
+ } else if (previousOperation === '-') {
+ addEOFNL = true;
+ }
+ }
+ }
+ }
+
+ // Handle EOFNL insertion/removal
+ if (removeEOFNL) {
+ while (!lines[lines.length - 1]) {
+ lines.pop();
+ delimiters.pop();
+ }
+ } else if (addEOFNL) {
+ lines.push('');
+ delimiters.push('\n');
+ }
+ for (var _k = 0; _k < lines.length - 1; _k++) {
+ lines[_k] = lines[_k] + delimiters[_k];
+ }
+ return lines.join('');
+ }
+
+ // Wrapper that supports multiple file patches via callbacks.
+ function applyPatches(uniDiff, options) {
+ if (typeof uniDiff === 'string') {
+ uniDiff = /*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(uniDiff);
+ }
+
+ var currentIndex = 0;
+ function processIndex() {
+ var index = uniDiff[currentIndex++];
+ if (!index) {
+ return options.complete();
+ }
+
+ options.loadFile(index, function (err, data) {
+ if (err) {
+ return options.complete(err);
+ }
+
+ var updatedContent = applyPatch(data, index, options);
+ options.patched(index, updatedContent, function (err) {
+ if (err) {
+ return options.complete(err);
+ }
+
+ processIndex();
+ });
+ });
+ }
+ processIndex();
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9hcHBseS5qcyJdLCJuYW1lcyI6WyJhcHBseVBhdGNoIiwiYXBwbHlQYXRjaGVzIiwic291cmNlIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJBcnJheSIsImlzQXJyYXkiLCJsZW5ndGgiLCJFcnJvciIsImxpbmVzIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJodW5rcyIsImNvbXBhcmVMaW5lIiwib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wLFxuICAgICAgbWluTGluZSA9IDAsXG4gICAgICBvZmZzZXQgPSAwLFxuXG4gICAgICByZW1vdmVFT0ZOTCxcbiAgICAgIGFkZEVPRk5MO1xuXG4gIC8qKlxuICAgKiBDaGVja3MgaWYgdGhlIGh1bmsgZXhhY3RseSBmaXRzIG9uIHRoZSBwcm92aWRlZCBsb2NhdGlvblxuICAgKi9cbiAgZnVuY3Rpb24gaHVua0ZpdHMoaHVuaywgdG9Qb3MpIHtcbiAgICBmb3IgKGxldCBqID0gMDsgaiA8IGh1bmsubGluZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgIGxldCBsaW5lID0gaHVuay5saW5lc1tqXSxcbiAgICAgICAgICBvcGVyYXRpb24gPSAobGluZS5sZW5ndGggPiAwID8gbGluZVswXSA6ICcgJyksXG4gICAgICAgICAgY29udGVudCA9IChsaW5lLmxlbmd0aCA+IDAgPyBsaW5lLnN1YnN0cigxKSA6IGxpbmUpO1xuXG4gICAgICBpZiAob3BlcmF0aW9uID09PSAnICcgfHwgb3BlcmF0aW9uID09PSAnLScpIHtcbiAgICAgICAgLy8gQ29udGV4dCBzYW5pdHkgY2hlY2tcbiAgICAgICAgaWYgKCFjb21wYXJlTGluZSh0b1BvcyArIDEsIGxpbmVzW3RvUG9zXSwgb3BlcmF0aW9uLCBjb250ZW50KSkge1xuICAgICAgICAgIGVycm9yQ291bnQrKztcblxuICAgICAgICAgIGlmIChlcnJvckNvdW50ID4gZnV6ekZhY3Rvcikge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICB0b1BvcysrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiB0cnVlO1xuICB9XG5cbiAgLy8gU2VhcmNoIGJlc3QgZml0IG9mZnNldHMgZm9yIGVhY2ggaHVuayBiYXNlZCBvbiB0aGUgcHJldmlvdXMgb25lc1xuICBmb3IgKGxldCBpID0gMDsgaSA8IGh1bmtzLmxlbmd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xuICBmdW5jdGlvbiBwcm9jZXNzSW5kZXgoKSB7XG4gICAgbGV0IGluZGV4ID0gdW5pRGlmZltjdXJyZW50SW5kZXgrK107XG4gICAgaWYgKCFpbmRleCkge1xuICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoKTtcbiAgICB9XG5cbiAgICBvcHRpb25zLmxvYWRGaWxlKGluZGV4LCBmdW5jdGlvbihlcnIsIGRhdGEpIHtcbiAgICAgIGlmIChlcnIpIHtcbiAgICAgICAgcmV0dXJuIG9wdGlvbnMuY29tcGxldGUoZXJyKTtcbiAgICAgIH1cblxuICAgICAgbGV0IHVwZGF0ZWRDb250ZW50ID0gYXBwbHlQYXRjaChkYXRhLCBpbmRleCwgb3B0aW9ucyk7XG4gICAgICBvcHRpb25zLnBhdGNoZWQoaW5kZXgsIHVwZGF0ZWRDb250ZW50LCBmdW5jdGlvbihlcnIpIHtcbiAgICAgICAgaWYgKGVycikge1xuICAgICAgICAgIHJldHVybiBvcHRpb25zLmNvbXBsZXRlKGVycik7XG4gICAgICAgIH1cblxuICAgICAgICBwcm9jZXNzSW5kZXgoKTtcbiAgICAgIH0pO1xuICAgIH0pO1xuICB9XG4gIHByb2Nlc3NJbmRleCgpO1xufVxuIl19
+
+
+/***/ }),
+/* 11 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/parsePatch = parsePatch;
+ function parsePatch(uniDiff) {
+ /*istanbul ignore start*/var /*istanbul ignore end*/options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+ var diffstr = uniDiff.split(/\r\n|[\n\v\f\r\x85]/),
+ delimiters = uniDiff.match(/\r\n|[\n\v\f\r\x85]/g) || [],
+ list = [],
+ i = 0;
+
+ function parseIndex() {
+ var index = {};
+ list.push(index);
+
+ // Parse diff metadata
+ while (i < diffstr.length) {
+ var line = diffstr[i];
+
+ // File header found, end parsing diff metadata
+ if (/^(\-\-\-|\+\+\+|@@)\s/.test(line)) {
+ break;
+ }
+
+ // Diff index
+ var header = /^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(line);
+ if (header) {
+ index.index = header[1];
+ }
+
+ i++;
+ }
+
+ // Parse file headers if they are defined. Unified diff requires them, but
+ // there's no technical issues to have an isolated hunk without file header
+ parseFileHeader(index);
+ parseFileHeader(index);
+
+ // Parse hunks
+ index.hunks = [];
+
+ while (i < diffstr.length) {
+ var _line = diffstr[i];
+
+ if (/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(_line)) {
+ break;
+ } else if (/^@@/.test(_line)) {
+ index.hunks.push(parseHunk());
+ } else if (_line && options.strict) {
+ // Ignore unexpected content unless in strict mode
+ throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line));
+ } else {
+ i++;
+ }
+ }
+ }
+
+ // Parses the --- and +++ headers, if none are found, no lines
+ // are consumed.
+ function parseFileHeader(index) {
+ var fileHeader = /^(---|\+\+\+)\s+(.*)$/.exec(diffstr[i]);
+ if (fileHeader) {
+ var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new';
+ var data = fileHeader[2].split('\t', 2);
+ var fileName = data[0].replace(/\\\\/g, '\\');
+ if (/^".*"$/.test(fileName)) {
+ fileName = fileName.substr(1, fileName.length - 2);
+ }
+ index[keyPrefix + 'FileName'] = fileName;
+ index[keyPrefix + 'Header'] = (data[1] || '').trim();
+
+ i++;
+ }
+ }
+
+ // Parses a hunk
+ // This assumes that we are at the start of a hunk.
+ function parseHunk() {
+ var chunkHeaderIndex = i,
+ chunkHeaderLine = diffstr[i++],
+ chunkHeader = chunkHeaderLine.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);
+
+ var hunk = {
+ oldStart: +chunkHeader[1],
+ oldLines: +chunkHeader[2] || 1,
+ newStart: +chunkHeader[3],
+ newLines: +chunkHeader[4] || 1,
+ lines: [],
+ linedelimiters: []
+ };
+
+ var addCount = 0,
+ removeCount = 0;
+ for (; i < diffstr.length; i++) {
+ // Lines starting with '---' could be mistaken for the "remove line" operation
+ // But they could be the header for the next file. Therefore prune such cases out.
+ if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) {
+ break;
+ }
+ var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0];
+
+ if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\') {
+ hunk.lines.push(diffstr[i]);
+ hunk.linedelimiters.push(delimiters[i] || '\n');
+
+ if (operation === '+') {
+ addCount++;
+ } else if (operation === '-') {
+ removeCount++;
+ } else if (operation === ' ') {
+ addCount++;
+ removeCount++;
+ }
+ } else {
+ break;
+ }
+ }
+
+ // Handle the empty block count case
+ if (!addCount && hunk.newLines === 1) {
+ hunk.newLines = 0;
+ }
+ if (!removeCount && hunk.oldLines === 1) {
+ hunk.oldLines = 0;
+ }
+
+ // Perform optional sanity checking
+ if (options.strict) {
+ if (addCount !== hunk.newLines) {
+ throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1));
+ }
+ if (removeCount !== hunk.oldLines) {
+ throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1));
+ }
+ }
+
+ return hunk;
+ }
+
+ while (i < diffstr.length) {
+ parseIndex();
+ }
+
+ return list;
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6WyJwYXJzZVBhdGNoIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJkaWZmc3RyIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJsaXN0IiwiaSIsInBhcnNlSW5kZXgiLCJpbmRleCIsInB1c2giLCJsZW5ndGgiLCJsaW5lIiwidGVzdCIsImhlYWRlciIsImV4ZWMiLCJw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biAgICAgICAgICBhZGRDb3VudCsrO1xuICAgICAgICAgIHJlbW92ZUNvdW50Kys7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEhhbmRsZSB0aGUgZW1wdHkgYmxvY2sgY291bnQgY2FzZVxuICAgIGlmICghYWRkQ291bnQgJiYgaHVuay5uZXdMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5uZXdMaW5lcyA9IDA7XG4gICAgfVxuICAgIGlmICghcmVtb3ZlQ291bnQgJiYgaHVuay5vbGRMaW5lcyA9PT0gMSkge1xuICAgICAgaHVuay5vbGRMaW5lcyA9IDA7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybSBvcHRpb25hbCBzYW5pdHkgY2hlY2tpbmdcbiAgICBpZiAob3B0aW9ucy5zdHJpY3QpIHtcbiAgICAgIGlmIChhZGRDb3VudCAhPT0gaHVuay5uZXdMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0FkZGVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZW1vdmVDb3VudCAhPT0gaHVuay5vbGRMaW5lcykge1xuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ1JlbW92ZWQgbGluZSBjb3VudCBkaWQgbm90IG1hdGNoIGZvciBodW5rIGF0IGxpbmUgJyArIChjaHVua0hlYWRlckluZGV4ICsgMSkpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBodW5rO1xuICB9XG5cbiAgd2hpbGUgKGkgPCBkaWZmc3RyLmxlbmd0aCkge1xuICAgIHBhcnNlSW5kZXgoKTtcbiAgfVxuXG4gIHJldHVybiBsaXN0O1xufVxuIl19
+
+
+/***/ }),
+/* 12 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/"use strict";
+
+ exports.__esModule = true;
+
+ exports["default"] = /*istanbul ignore end*/function (start, minLine, maxLine) {
+ var wantForward = true,
+ backwardExhausted = false,
+ forwardExhausted = false,
+ localOffset = 1;
+
+ return function iterator() {
+ if (wantForward && !forwardExhausted) {
+ if (backwardExhausted) {
+ localOffset++;
+ } else {
+ wantForward = false;
+ }
+
+ // Check if trying to fit beyond text length, and if not, check it fits
+ // after offset location (or desired location on first iteration)
+ if (start + localOffset <= maxLine) {
+ return localOffset;
+ }
+
+ forwardExhausted = true;
+ }
+
+ if (!backwardExhausted) {
+ if (!forwardExhausted) {
+ wantForward = true;
+ }
+
+ // Check if trying to fit before text beginning, and if not, check it fits
+ // before offset location
+ if (minLine <= start - localOffset) {
+ return -localOffset++;
+ }
+
+ backwardExhausted = true;
+ return iterator();
+ }
+
+ // We tried to fit hunk before text beginning and beyond text length, then
+ // hunk can't fit on the text. Return undefined
+ };
+ };
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yLmpzIl0sIm5hbWVzIjpbInN0YXJ0IiwibWluTGluZSIsIm1heExpbmUiLCJ3YW50Rm9yd2FyZCIsImJhY2t3YXJkRXhoYXVzdGVkIiwiZm9yd2FyZEV4aGF1c3RlZCIsImxvY2FsT2Zmc2V0IiwiaXRlcmF0b3IiXSwibWFwcGluZ3MiOiI7Ozs7NENBR2UsVUFBU0EsS0FBVCxFQUFnQkMsT0FBaEIsRUFBeUJDLE9BQXpCLEVBQWtDO0FBQy9DLE1BQUlDLGNBQWMsSUFBbEI7QUFBQSxNQUNJQyxvQkFBb0IsS0FEeEI7QUFBQSxNQUVJQyxtQkFBbUIsS0FGdkI7QUFBQSxNQUdJQyxjQUFjLENBSGxCOztBQUtBLFNBQU8sU0FBU0MsUUFBVCxHQUFvQjtBQUN6QixRQUFJSixlQUFlLENB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EV4aGF1c3RlZCA9IHRydWU7XG4gICAgICByZXR1cm4gaXRlcmF0b3IoKTtcbiAgICB9XG5cbiAgICAvLyBXZSB0cmllZCB0byBmaXQgaHVuayBiZWZvcmUgdGV4dCBiZWdpbm5pbmcgYW5kIGJleW9uZCB0ZXh0IGxlbmd0aCwgdGhlblxuICAgIC8vIGh1bmsgY2FuJ3QgZml0IG9uIHRoZSB0ZXh0LiBSZXR1cm4gdW5kZWZpbmVkXG4gIH07XG59XG4iXX0=
+
+
+/***/ }),
+/* 13 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/calcLineCount = calcLineCount;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/merge = merge;
+
+ var /*istanbul ignore start*/_create = __webpack_require__(14) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_parse = __webpack_require__(11) /*istanbul ignore end*/;
+
+ var /*istanbul ignore start*/_array = __webpack_require__(15) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+ /*istanbul ignore end*/function calcLineCount(hunk) {
+ /*istanbul ignore start*/var _calcOldNewLineCount = /*istanbul ignore end*/calcOldNewLineCount(hunk.lines),
+ oldLines = _calcOldNewLineCount.oldLines,
+ newLines = _calcOldNewLineCount.newLines;
+
+ if (oldLines !== undefined) {
+ hunk.oldLines = oldLines;
+ } else {
+ delete hunk.oldLines;
+ }
+
+ if (newLines !== undefined) {
+ hunk.newLines = newLines;
+ } else {
+ delete hunk.newLines;
+ }
+ }
+
+ function merge(mine, theirs, base) {
+ mine = loadPatch(mine, base);
+ theirs = loadPatch(theirs, base);
+
+ var ret = {};
+
+ // For index we just let it pass through as it doesn't have any necessary meaning.
+ // Leaving sanity checks on this to the API consumer that may know more about the
+ // meaning in their own context.
+ if (mine.index || theirs.index) {
+ ret.index = mine.index || theirs.index;
+ }
+
+ if (mine.newFileName || theirs.newFileName) {
+ if (!fileNameChanged(mine)) {
+ // No header or no change in ours, use theirs (and ours if theirs does not exist)
+ ret.oldFileName = theirs.oldFileName || mine.oldFileName;
+ ret.newFileName = theirs.newFileName || mine.newFileName;
+ ret.oldHeader = theirs.oldHeader || mine.oldHeader;
+ ret.newHeader = theirs.newHeader || mine.newHeader;
+ } else if (!fileNameChanged(theirs)) {
+ // No header or no change in theirs, use ours
+ ret.oldFileName = mine.oldFileName;
+ ret.newFileName = mine.newFileName;
+ ret.oldHeader = mine.oldHeader;
+ ret.newHeader = mine.newHeader;
+ } else {
+ // Both changed... figure it out
+ ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName);
+ ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName);
+ ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader);
+ ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader);
+ }
+ }
+
+ ret.hunks = [];
+
+ var mineIndex = 0,
+ theirsIndex = 0,
+ mineOffset = 0,
+ theirsOffset = 0;
+
+ while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) {
+ var mineCurrent = mine.hunks[mineIndex] || { oldStart: Infinity },
+ theirsCurrent = theirs.hunks[theirsIndex] || { oldStart: Infinity };
+
+ if (hunkBefore(mineCurrent, theirsCurrent)) {
+ // This patch does not overlap with any of the others, yay.
+ ret.hunks.push(cloneHunk(mineCurrent, mineOffset));
+ mineIndex++;
+ theirsOffset += mineCurrent.newLines - mineCurrent.oldLines;
+ } else if (hunkBefore(theirsCurrent, mineCurrent)) {
+ // This patch does not overlap with any of the others, yay.
+ ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset));
+ theirsIndex++;
+ mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines;
+ } else {
+ // Overlap, merge as best we can
+ var mergedHunk = {
+ oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart),
+ oldLines: 0,
+ newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset),
+ newLines: 0,
+ lines: []
+ };
+ mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);
+ theirsIndex++;
+ mineIndex++;
+
+ ret.hunks.push(mergedHunk);
+ }
+ }
+
+ return ret;
+ }
+
+ function loadPatch(param, base) {
+ if (typeof param === 'string') {
+ if (/^@@/m.test(param) || /^Index:/m.test(param)) {
+ return (/*istanbul ignore start*/(0, _parse.parsePatch) /*istanbul ignore end*/(param)[0]
+ );
+ }
+
+ if (!base) {
+ throw new Error('Must provide a base reference or pass in a patch');
+ }
+ return (/*istanbul ignore start*/(0, _create.structuredPatch) /*istanbul ignore end*/(undefined, undefined, base, param)
+ );
+ }
+
+ return param;
+ }
+
+ function fileNameChanged(patch) {
+ return patch.newFileName && patch.newFileName !== patch.oldFileName;
+ }
+
+ function selectField(index, mine, theirs) {
+ if (mine === theirs) {
+ return mine;
+ } else {
+ index.conflict = true;
+ return { mine: mine, theirs: theirs };
+ }
+ }
+
+ function hunkBefore(test, check) {
+ return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart;
+ }
+
+ function cloneHunk(hunk, offset) {
+ return {
+ oldStart: hunk.oldStart, oldLines: hunk.oldLines,
+ newStart: hunk.newStart + offset, newLines: hunk.newLines,
+ lines: hunk.lines
+ };
+ }
+
+ function mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) {
+ // This will generally result in a conflicted hunk, but there are cases where the context
+ // is the only overlap where we can successfully merge the content here.
+ var mine = { offset: mineOffset, lines: mineLines, index: 0 },
+ their = { offset: theirOffset, lines: theirLines, index: 0 };
+
+ // Handle any leading content
+ insertLeading(hunk, mine, their);
+ insertLeading(hunk, their, mine);
+
+ // Now in the overlap content. Scan through and select the best changes from each.
+ while (mine.index < mine.lines.length && their.index < their.lines.length) {
+ var mineCurrent = mine.lines[mine.index],
+ theirCurrent = their.lines[their.index];
+
+ if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) {
+ // Both modified ...
+ mutualChange(hunk, mine, their);
+ } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') {
+ /*istanbul ignore start*/var _hunk$lines;
+
+ /*istanbul ignore end*/ // Mine inserted
+ /*istanbul ignore start*/(_hunk$lines = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(mine)));
+ } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') {
+ /*istanbul ignore start*/var _hunk$lines2;
+
+ /*istanbul ignore end*/ // Theirs inserted
+ /*istanbul ignore start*/(_hunk$lines2 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/collectChange(their)));
+ } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') {
+ // Mine removed or edited
+ removal(hunk, mine, their);
+ } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') {
+ // Their removed or edited
+ removal(hunk, their, mine, true);
+ } else if (mineCurrent === theirCurrent) {
+ // Context identity
+ hunk.lines.push(mineCurrent);
+ mine.index++;
+ their.index++;
+ } else {
+ // Context mismatch
+ conflict(hunk, collectChange(mine), collectChange(their));
+ }
+ }
+
+ // Now push anything that may be remaining
+ insertTrailing(hunk, mine);
+ insertTrailing(hunk, their);
+
+ calcLineCount(hunk);
+ }
+
+ function mutualChange(hunk, mine, their) {
+ var myChanges = collectChange(mine),
+ theirChanges = collectChange(their);
+
+ if (allRemoves(myChanges) && allRemoves(theirChanges)) {
+ // Special case for remove changes that are supersets of one another
+ if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) {
+ /*istanbul ignore start*/var _hunk$lines3;
+
+ /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines3 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges));
+ return;
+ } else if ( /*istanbul ignore start*/(0, _array.arrayStartsWith) /*istanbul ignore end*/(theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) {
+ /*istanbul ignore start*/var _hunk$lines4;
+
+ /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines4 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines4 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges));
+ return;
+ }
+ } else if ( /*istanbul ignore start*/(0, _array.arrayEqual) /*istanbul ignore end*/(myChanges, theirChanges)) {
+ /*istanbul ignore start*/var _hunk$lines5;
+
+ /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines5 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines5 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/myChanges));
+ return;
+ }
+
+ conflict(hunk, myChanges, theirChanges);
+ }
+
+ function removal(hunk, mine, their, swap) {
+ var myChanges = collectChange(mine),
+ theirChanges = collectContext(their, myChanges);
+ if (theirChanges.merged) {
+ /*istanbul ignore start*/var _hunk$lines6;
+
+ /*istanbul ignore end*/ /*istanbul ignore start*/(_hunk$lines6 = /*istanbul ignore end*/hunk.lines).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_hunk$lines6 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/theirChanges.merged));
+ } else {
+ conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges);
+ }
+ }
+
+ function conflict(hunk, mine, their) {
+ hunk.conflict = true;
+ hunk.lines.push({
+ conflict: true,
+ mine: mine,
+ theirs: their
+ });
+ }
+
+ function insertLeading(hunk, insert, their) {
+ while (insert.offset < their.offset && insert.index < insert.lines.length) {
+ var line = insert.lines[insert.index++];
+ hunk.lines.push(line);
+ insert.offset++;
+ }
+ }
+ function insertTrailing(hunk, insert) {
+ while (insert.index < insert.lines.length) {
+ var line = insert.lines[insert.index++];
+ hunk.lines.push(line);
+ }
+ }
+
+ function collectChange(state) {
+ var ret = [],
+ operation = state.lines[state.index][0];
+ while (state.index < state.lines.length) {
+ var line = state.lines[state.index];
+
+ // Group additions that are immediately after subtractions and treat them as one "atomic" modify change.
+ if (operation === '-' && line[0] === '+') {
+ operation = '+';
+ }
+
+ if (operation === line[0]) {
+ ret.push(line);
+ state.index++;
+ } else {
+ break;
+ }
+ }
+
+ return ret;
+ }
+ function collectContext(state, matchChanges) {
+ var changes = [],
+ merged = [],
+ matchIndex = 0,
+ contextChanges = false,
+ conflicted = false;
+ while (matchIndex < matchChanges.length && state.index < state.lines.length) {
+ var change = state.lines[state.index],
+ match = matchChanges[matchIndex];
+
+ // Once we've hit our add, then we are done
+ if (match[0] === '+') {
+ break;
+ }
+
+ contextChanges = contextChanges || change[0] !== ' ';
+
+ merged.push(match);
+ matchIndex++;
+
+ // Consume any additions in the other block as a conflict to attempt
+ // to pull in the remaining context after this
+ if (change[0] === '+') {
+ conflicted = true;
+
+ while (change[0] === '+') {
+ changes.push(change);
+ change = state.lines[++state.index];
+ }
+ }
+
+ if (match.substr(1) === change.substr(1)) {
+ changes.push(change);
+ state.index++;
+ } else {
+ conflicted = true;
+ }
+ }
+
+ if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) {
+ conflicted = true;
+ }
+
+ if (conflicted) {
+ return changes;
+ }
+
+ while (matchIndex < matchChanges.length) {
+ merged.push(matchChanges[matchIndex++]);
+ }
+
+ return {
+ merged: merged,
+ changes: changes
+ };
+ }
+
+ function allRemoves(changes) {
+ return changes.reduce(function (prev, change) {
+ return prev && change[0] === '-';
+ }, true);
+ }
+ function skipRemoveSuperset(state, removeChanges, delta) {
+ for (var i = 0; i < delta; i++) {
+ var changeContent = removeChanges[removeChanges.length - delta + i].substr(1);
+ if (state.lines[state.index + i] !== ' ' + changeContent) {
+ return false;
+ }
+ }
+
+ state.index += delta;
+ return true;
+ }
+
+ function calcOldNewLineCount(lines) {
+ var oldLines = 0;
+ var newLines = 0;
+
+ lines.forEach(function (line) {
+ if (typeof line !== 'string') {
+ var myCount = calcOldNewLineCount(line.mine);
+ var theirCount = calcOldNewLineCount(line.theirs);
+
+ if (oldLines !== undefined) {
+ if (myCount.oldLines === theirCount.oldLines) {
+ oldLines += myCount.oldLines;
+ } else {
+ oldLines = undefined;
+ }
+ }
+
+ if (newLines !== undefined) {
+ if (myCount.newLines === theirCount.newLines) {
+ newLines += myCount.newLines;
+ } else {
+ newLines = undefined;
+ }
+ }
+ } else {
+ if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) {
+ newLines++;
+ }
+ if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) {
+ oldLines++;
+ }
+ }
+ });
+
+ return { oldLines: oldLines, newLines: newLines };
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9tZXJnZS5qcyJdLCJuYW1lcyI6WyJjYWxjTGluZUNvdW50IiwibWVyZ2UiLCJodW5rIiwiY2FsY09sZE5ld0xpbmVDb3VudCIsImxpbmVzIiwib2xkTGluZXMiLCJuZXdMaW5lcyIsInVuZGVmaW5lZCIsIm1pbm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XBlb2YgbGluZSAhPT0gJ3N0cmluZycpIHtcbiAgICAgIGxldCBteUNvdW50ID0gY2FsY09sZE5ld0xpbmVDb3VudChsaW5lLm1pbmUpO1xuICAgICAgbGV0IHRoZWlyQ291bnQgPSBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmUudGhlaXJzKTtcblxuICAgICAgaWYgKG9sZExpbmVzICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKG15Q291bnQub2xkTGluZXMgPT09IHRoZWlyQ291bnQub2xkTGluZXMpIHtcbiAgICAgICAgICBvbGRMaW5lcyArPSBteUNvdW50Lm9sZExpbmVzO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG9sZExpbmVzID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGlmIChteUNvdW50Lm5ld0xpbmVzID09PSB0aGVpckNvdW50Lm5ld0xpbmVzKSB7XG4gICAgICAgICAgbmV3TGluZXMgKz0gbXlDb3VudC5uZXdMaW5lcztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBuZXdMaW5lcyA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAobmV3TGluZXMgIT09IHVuZGVmaW5lZCAmJiAobGluZVswXSA9PT0gJysnIHx8IGxpbmVbMF0gPT09ICcgJykpIHtcbiAgICAgICAgbmV3TGluZXMrKztcbiAgICAgIH1cbiAgICAgIGlmIChvbGRMaW5lcyAhPT0gdW5kZWZpbmVkICYmIChsaW5lWzBdID09PSAnLScgfHwgbGluZVswXSA9PT0gJyAnKSkge1xuICAgICAgICBvbGRMaW5lcysrO1xuICAgICAgfVxuICAgIH1cbiAgfSk7XG5cbiAgcmV0dXJuIHtvbGRMaW5lcywgbmV3TGluZXN9O1xufVxuIl19
+
+
+/***/ }),
+/* 14 */
+/***/ (function(module, exports, __webpack_require__) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/structuredPatch = structuredPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/createTwoFilesPatch = createTwoFilesPatch;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/createPatch = createPatch;
+
+ var /*istanbul ignore start*/_line = __webpack_require__(5) /*istanbul ignore end*/;
+
+ /*istanbul ignore start*/function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
+
+ /*istanbul ignore end*/function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
+ if (!options) {
+ options = {};
+ }
+ if (typeof options.context === 'undefined') {
+ options.context = 4;
+ }
+
+ var diff = /*istanbul ignore start*/(0, _line.diffLines) /*istanbul ignore end*/(oldStr, newStr, options);
+ diff.push({ value: '', lines: [] }); // Append an empty value to make cleanup easier
+
+ function contextLines(lines) {
+ return lines.map(function (entry) {
+ return ' ' + entry;
+ });
+ }
+
+ var hunks = [];
+ var oldRangeStart = 0,
+ newRangeStart = 0,
+ curRange = [],
+ oldLine = 1,
+ newLine = 1;
+
+ /*istanbul ignore start*/var _loop = function _loop( /*istanbul ignore end*/i) {
+ var current = diff[i],
+ lines = current.lines || current.value.replace(/\n$/, '').split('\n');
+ current.lines = lines;
+
+ if (current.added || current.removed) {
+ /*istanbul ignore start*/var _curRange;
+
+ /*istanbul ignore end*/ // If we have previous context, start with that
+ if (!oldRangeStart) {
+ var prev = diff[i - 1];
+ oldRangeStart = oldLine;
+ newRangeStart = newLine;
+
+ if (prev) {
+ curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];
+ oldRangeStart -= curRange.length;
+ newRangeStart -= curRange.length;
+ }
+ }
+
+ // Output our changes
+ /*istanbul ignore start*/(_curRange = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/lines.map(function (entry) {
+ return (current.added ? '+' : '-') + entry;
+ })));
+
+ // Track the updated file position
+ if (current.added) {
+ newLine += lines.length;
+ } else {
+ oldLine += lines.length;
+ }
+ } else {
+ // Identical context lines. Track line changes
+ if (oldRangeStart) {
+ // Close out any changes that have been output (or join overlapping)
+ if (lines.length <= options.context * 2 && i < diff.length - 2) {
+ /*istanbul ignore start*/var _curRange2;
+
+ /*istanbul ignore end*/ // Overlapping
+ /*istanbul ignore start*/(_curRange2 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange2 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines)));
+ } else {
+ /*istanbul ignore start*/var _curRange3;
+
+ /*istanbul ignore end*/ // end the range and output
+ var contextSize = Math.min(lines.length, options.context);
+ /*istanbul ignore start*/(_curRange3 = /*istanbul ignore end*/curRange).push. /*istanbul ignore start*/apply /*istanbul ignore end*/( /*istanbul ignore start*/_curRange3 /*istanbul ignore end*/, /*istanbul ignore start*/_toConsumableArray( /*istanbul ignore end*/contextLines(lines.slice(0, contextSize))));
+
+ var hunk = {
+ oldStart: oldRangeStart,
+ oldLines: oldLine - oldRangeStart + contextSize,
+ newStart: newRangeStart,
+ newLines: newLine - newRangeStart + contextSize,
+ lines: curRange
+ };
+ if (i >= diff.length - 2 && lines.length <= options.context) {
+ // EOF is inside this hunk
+ var oldEOFNewline = /\n$/.test(oldStr);
+ var newEOFNewline = /\n$/.test(newStr);
+ if (lines.length == 0 && !oldEOFNewline) {
+ // special case: old has no eol and no trailing context; no-nl can end up before adds
+ curRange.splice(hunk.oldLines, 0, '\\ No newline at end of file');
+ } else if (!oldEOFNewline || !newEOFNewline) {
+ curRange.push('\\ No newline at end of file');
+ }
+ }
+ hunks.push(hunk);
+
+ oldRangeStart = 0;
+ newRangeStart = 0;
+ curRange = [];
+ }
+ }
+ oldLine += lines.length;
+ newLine += lines.length;
+ }
+ };
+
+ for (var i = 0; i < diff.length; i++) {
+ /*istanbul ignore start*/_loop( /*istanbul ignore end*/i);
+ }
+
+ return {
+ oldFileName: oldFileName, newFileName: newFileName,
+ oldHeader: oldHeader, newHeader: newHeader,
+ hunks: hunks
+ };
+ }
+
+ function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
+ var diff = structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options);
+
+ var ret = [];
+ if (oldFileName == newFileName) {
+ ret.push('Index: ' + oldFileName);
+ }
+ ret.push('===================================================================');
+ ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\t' + diff.oldHeader));
+ ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\t' + diff.newHeader));
+
+ for (var i = 0; i < diff.hunks.length; i++) {
+ var hunk = diff.hunks[i];
+ ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@');
+ ret.push.apply(ret, hunk.lines);
+ }
+
+ return ret.join('\n') + '\n';
+ }
+
+ function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {
+ return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9jcmVhdGUuanMiXSwibmFtZXMiOlsic3RydWN0dXJlZFBhdGNoIiwiY3JlYXRlVHdvRmlsZXNQYXRjaCIsImNyZWF0ZVBhdGNoIiwib2xkRmlsZU5hbWUiLCJuZXdGaWxlTmFtZSIsIm9sZFN0ciIsIm5ld1N0ciIsIm9sZEhlYWRlciIsIm5ld0hlYW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WF0ZVBhdGNoKGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgcmV0dXJuIGNyZWF0ZVR3b0ZpbGVzUGF0Y2goZmlsZU5hbWUsIGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpO1xufVxuIl19
+
+
+/***/ }),
+/* 15 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/"use strict";
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/arrayEqual = arrayEqual;
+ /*istanbul ignore start*/exports. /*istanbul ignore end*/arrayStartsWith = arrayStartsWith;
+ function arrayEqual(a, b) {
+ if (a.length !== b.length) {
+ return false;
+ }
+
+ return arrayStartsWith(a, b);
+ }
+
+ function arrayStartsWith(array, start) {
+ if (start.length > array.length) {
+ return false;
+ }
+
+ for (var i = 0; i < start.length; i++) {
+ if (start[i] !== array[i]) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RXF1YWwiLCJhcnJheVN0YXJ0c1dpdGgiLCJhIiwiYiIsImxlbmd0aCIsImFycmF5Iiwic3RhcnQiLCJpIl0sIm1hcHBpbmdzIjoiOzs7Z0NBQWdCQSxVLEdBQUFBLFU7eURBUUFDLGUsR0FBQUEsZTtBQVJULFNBQVNELFVBQVQsQ0FBb0JFLENBQXBCLEVBQXVCQyxDQUF2QixFQUEwQjtBQUMvQixNQUFJRCxFQUFFRSxNQUFGLEtBQWFELEVBQUVDLE1BQW5CLEVBQTJCO0FBQ3pCLFdBQU8sS0FBUDtBQUNEOztBQUVELFNBQU9ILGdCQUFnQkMsQ0FBaEIsRUFBbUJDLENBQW5CLENBQVA7QUFDRDs7QUFFTSxTQUFTRixlQUFULENBQXlCSSxLQUF6QixFQUFnQ0MsS0FBaEMsRUFBdUM7QUFDNUMsTUFBSUEsTUFBTUYsTUFBTixHQUFlQyxNQUFNRCxNQUF6QixFQUFpQztBQUMvQixXQUFPLEtBQVA7QUFDRDs7QUFFRCxPQUFLLElBQUlHLElBQUksQ0FBYixFQUFnQkEsSUFBSUQsTUFBTUYsTUFBMUIsRUFBa0NHLEdBQWxDLEVBQXVDO0FBQ3JDLFFBQUlELE1BQU1DLENBQU4sTUFBYUYsTUFBTUUsQ0FBTixDQUFqQixFQUEyQjtBQUN6QixhQUFPLEtBQVA7QUFDRDtBQUNGOztBQUVELFNBQU8sSUFBUDtBQUNEIiwiZmlsZSI6ImFycmF5LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGFycmF5RXF1YWwoYSwgYikge1xuICBpZiAoYS5sZW5ndGggIT09IGIubGVuZ3RoKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG5cbiAgcmV0dXJuIGFycmF5U3RhcnRzV2l0aChhLCBiKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGFycmF5U3RhcnRzV2l0aChhcnJheSwgc3RhcnQpIHtcbiAgaWYgKHN0YXJ0Lmxlbmd0aCA+IGFycmF5Lmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgc3RhcnQubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc3RhcnRbaV0gIT09IGFycmF5W2ldKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIHRydWU7XG59XG4iXX0=
+
+
+/***/ }),
+/* 16 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/"use strict";
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/convertChangesToDMP = convertChangesToDMP;
+ // See: http://code.google.com/p/google-diff-match-patch/wiki/API
+ function convertChangesToDMP(changes) {
+ var ret = [],
+ change = /*istanbul ignore start*/void 0 /*istanbul ignore end*/,
+ operation = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;
+ for (var i = 0; i < changes.length; i++) {
+ change = changes[i];
+ if (change.added) {
+ operation = 1;
+ } else if (change.removed) {
+ operation = -1;
+ } else {
+ operation = 0;
+ }
+
+ ret.push([operation, change.value]);
+ }
+ return ret;
+ }
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L2RtcC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvRE1QIiwiY2hhbmdlcyIsInJldCIsImNoYW5nZSIsIm9wZXJhdGlvbiIsImkiLCJsZW5ndGgiLCJhZGRlZCIsInJlbW92ZWQiLCJwdXNoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7OztnQ0FDZ0JBLG1CLEdBQUFBLG1CO0FBRGhCO0FBQ08sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLE1BQU0sRUFBVjtBQUFBLE1BQ0lDLHdDQURKO0FBQUEsTUFFSUMsMkNBRko7QUFHQSxPQUFLLElBQUlDLElBQUksQ0FBYixFQUFnQkEsSUFBSUosUUFBUUssTUFBNUIsRUFBb0NELEdBQXBDLEVBQXlDO0FBQ3ZDRixhQUFTRixRQUFRSSxDQUFSLENBQVQ7QUFDQSxRQUFJRixPQUFPSSxLQUFYLEVBQWtCO0FBQ2hCSCxrQkFBWSxDQUFaO0FBQ0QsS0FGRCxNQUVPLElBQUlELE9BQU9LLE9BQVgsRUFBb0I7QUFDekJKLGtCQUFZLENBQUMsQ0FBYjtBQUNELEtBRk0sTUFFQTtBQUNMQSxrQkFBWSxDQUFaO0FBQ0Q7O0FBRURGLFFBQUlPLElBQUosQ0FBUyxDQUFDTCxTQUFELEVBQVlELE9BQU9PLEtBQW5CLENBQVQ7QUFDRDtBQUNELFNBQU9SLEdBQVA7QUFDRCIsImZpbGUiOiJkbXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTZWU6IGh0dHA6Ly9jb2RlLmdvb2dsZS5jb20vcC9nb29nbGUtZGlmZi1tYXRjaC1wYXRjaC93aWtpL0FQSVxuZXhwb3J0IGZ1bmN0aW9uIGNvbnZlcnRDaGFuZ2VzVG9ETVAoY2hhbmdlcykge1xuICBsZXQgcmV0ID0gW10sXG4gICAgICBjaGFuZ2UsXG4gICAgICBvcGVyYXRpb247XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgY2hhbmdlcy5sZW5ndGg7IGkrKykge1xuICAgIGNoYW5nZSA9IGNoYW5nZXNbaV07XG4gICAgaWYgKGNoYW5nZS5hZGRlZCkge1xuICAgICAgb3BlcmF0aW9uID0gMTtcbiAgICB9IGVsc2UgaWYgKGNoYW5nZS5yZW1vdmVkKSB7XG4gICAgICBvcGVyYXRpb24gPSAtMTtcbiAgICB9IGVsc2Uge1xuICAgICAgb3BlcmF0aW9uID0gMDtcbiAgICB9XG5cbiAgICByZXQucHVzaChbb3BlcmF0aW9uLCBjaGFuZ2UudmFsdWVdKTtcbiAgfVxuICByZXR1cm4gcmV0O1xufVxuIl19
+
+
+/***/ }),
+/* 17 */
+/***/ (function(module, exports) {
+
+ /*istanbul ignore start*/'use strict';
+
+ exports.__esModule = true;
+ exports. /*istanbul ignore end*/convertChangesToXML = convertChangesToXML;
+ function convertChangesToXML(changes) {
+ var ret = [];
+ for (var i = 0; i < changes.length; i++) {
+ var change = changes[i];
+ if (change.added) {
+ ret.push('');
+ } else if (change.removed) {
+ ret.push('');
+ }
+
+ ret.push(escapeHTML(change.value));
+
+ if (change.added) {
+ ret.push('');
+ } else if (change.removed) {
+ ret.push('');
+ }
+ }
+ return ret.join('');
+ }
+
+ function escapeHTML(s) {
+ var n = s;
+ n = n.replace(/&/g, '&');
+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cGVIVE1MKHMpIHtcbiAgbGV0IG4gPSBzO1xuICBuID0gbi5yZXBsYWNlKC8mL2csICcmYW1wOycpO1xuICBuID0gbi5yZXBsYWNlKC88L2csICcmbHQ7Jyk7XG4gIG4gPSBuLnJlcGxhY2UoLz4vZywgJyZndDsnKTtcbiAgbiA9IG4ucmVwbGFjZSgvXCIvZywgJyZxdW90OycpO1xuXG4gIHJldHVybiBuO1xufVxuIl19
+
+
+/***/ })
+/******/ ])
+});
+;
\ No newline at end of file
diff --git a/report/html_report/diverged.js b/report/html_report/diverged.js
new file mode 100644
index 0000000000..b96620eb8e
--- /dev/null
+++ b/report/html_report/diverged.js
@@ -0,0 +1,340 @@
+'use strict';
+const noop = function (){};
+let LCS_DIFF_ARRAY_METHOD = undefined;
+// debugger
+if (typeof require !== 'undefined') {
+ LCS_DIFF_ARRAY_METHOD = require('diff').diffArrays;
+} else {
+ try {
+ LCS_DIFF_ARRAY_METHOD = JsDiff.diffArrays;
+ } catch(err) {
+ console.error(err);
+ }
+}
+
+const rowSpread = 1;
+
+const spread = 50; // range of adjacent pixels to aggregate when calculating diff
+const IS_ADDED_WORD = '0_255_0_255';
+const IS_REMOVED_WORD = '255_0_0_255';
+const IS_ADDED_AND_REMOVED_WORD = '0_255_255_255';
+const IS_SAME_WORD = '';
+const OPACITY = '40'; // 0-255 range
+
+/**
+ * Applies Longest-Common-Subsequence-Diff algorithm to imageData formatted arrays
+ *
+ * @param {Uint8ClampedArray} [reference] baseline image
+ * @param {Uint8ClampedArray} [test] test image
+ *
+ * @returns {Uint8ClampedArray} diff image
+ *
+ */
+if (typeof module !== 'undefined') {
+ module.exports = diverged;
+}
+
+function diverged(reference, test, h, w) {
+ console.time("diverged_total_time");
+
+ const spread = Math.floor(h / 80); //override
+
+ console.log('spread:', spread);
+
+ console.time("imgDataToWords");
+ const img1wordArr = imgDataToWords(reference);
+ const img2wordArr = imgDataToWords(test);
+ console.timeEnd("imgDataToWords");
+
+ console.time("imgDataWordArrToColsAndRows");
+ let cols_rows_ref = imgDataWordArrToColsAndRows(img1wordArr, h, w);
+ let cols_rows_test = imgDataWordArrToColsAndRows(img2wordArr, h, w);
+ console.timeEnd("imgDataWordArrToColsAndRows");
+
+ console.time("groupAdjacent");
+ const columnRef = groupAdjacent(cols_rows_ref.columns, spread, h, w);
+ const columnTest = groupAdjacent(cols_rows_test.columns, spread, h, w);
+ console.timeEnd("groupAdjacent");
+
+ console.time("columnDiffRaw");
+ const columnDiffRaw = diffArr(columnRef, columnTest, h, w);
+ console.timeEnd("columnDiffRaw");
+
+ console.time("reduceColumnDiffRaw");
+ const reducedColumnDiff = reduceColumnDiffRaw(columnDiffRaw, h, w);
+ console.timeEnd("reduceColumnDiffRaw");
+ // console.log("reducedColumnDiff>>>", reducedColumnDiff);
+
+ console.time("unGroupAdjacent");
+ const expandedColumns = ungroupAdjacent(reducedColumnDiff, spread, cols_rows_test.columns, h, w);
+ console.timeEnd("unGroupAdjacent");
+
+ console.time("columnWordDataToImgDataFormatAsWords");
+ const convertedColumnDiffImgData = columnWordDataToImgDataFormatAsWords(expandedColumns, h, w);
+ console.timeEnd("columnWordDataToImgDataFormatAsWords");
+ // console.log("convertedColumnDiffImgData>>>", convertedColumnDiffImgData);
+
+ console.time("imgDataWordsToClampedImgData");
+ const imgDataArr = convertImgDataWordsToClampedImgData(convertedColumnDiffImgData);
+ console.timeEnd("imgDataWordsToClampedImgData");
+ // console.log("imgDataArr>>>", imgDataArr);
+
+ console.timeEnd("diverged_total_time");
+ return imgDataArr;
+}
+
+/**
+ * ========= HELPERS ========
+ */
+
+function columnWordDataToImgDataFormatAsWords(columns, h, w) {
+ const imgDataWordsLength = w * h;
+
+ let convertedArr = new Array(imgDataWordsLength);
+ for (var i = 0; i < imgDataWordsLength; i++) {
+ const {column, depth} = serialToColumnMap(i, h, w);
+ convertedArr[i] = columns[column][depth];
+ }
+ return convertedArr;
+}
+
+function convertImgDataWordsToClampedImgData(wordsArr) {
+ let convertedArr = new Uint8ClampedArray(wordsArr.length * 4);
+ for (var i = 0; i < wordsArr.length; i++) {
+ const convertedOffset = i * 4;
+ const segments = wordsArr[i].split('_');
+ convertedArr[convertedOffset] = segments[0];
+ convertedArr[convertedOffset+1] = segments[1];
+ convertedArr[convertedOffset+2] = segments[2];
+ convertedArr[convertedOffset+3] = segments[3];
+ }
+ return convertedArr;
+}
+
+function reduceColumnDiffRaw(columnDiffs, h, w) {
+ let reducedColumns = new Array(columnDiffs.length);
+ for (let columnIndex = 0; columnIndex < columnDiffs.length; columnIndex++) {
+ const columnDiff = columnDiffs[columnIndex];
+ let resultColumn = new Array();
+ let removedCounter = 0;
+ let resultClass = '';
+ let segment = [];
+ let debug = false;
+
+ for (let depthIndex = 0; depthIndex < columnDiff.length; depthIndex++) {
+ let segmentLength = 0;
+
+ // Categorize the current segment
+ if (columnDiff[depthIndex].removed) {
+ segmentLength = columnDiff[depthIndex].count;
+ removedCounter += segmentLength;
+ resultClass = IS_REMOVED_WORD;
+ } else {
+ if (columnDiff[depthIndex].added) {
+ if (removedCounter) {
+ resultClass = IS_ADDED_AND_REMOVED_WORD;
+ } else {
+ resultClass = IS_ADDED_WORD;
+ }
+ } else {
+ resultClass = IS_SAME_WORD;
+ }
+
+ segmentLength = columnDiff[depthIndex].count;
+
+ if (removedCounter > 0) {
+ if (segmentLength > removedCounter) {
+ segmentLength -= removedCounter;
+ removedCounter = 0;
+ } else {
+ removedCounter -= segmentLength;
+ segmentLength = 0;
+ }
+ }
+ }
+
+ // Limit segmentLength to total length of column
+ if (!segmentLength) {
+ continue;
+ } else {
+ segmentLength = Math.min(segmentLength, h - resultColumn.length);
+ }
+
+ const printSampleMap = false;
+ if (!printSampleMap || resultClass !== IS_SAME_WORD){
+ segment = new Array(segmentLength).fill(resultClass);
+ } else {
+ // reduced resolution image
+ segment = columnDiff[depthIndex].value.slice(0,segmentLength).map((value, i) => {
+ if (/|/.test(value)) {
+ return value.split('|')[0];
+ }
+ return value;
+ });
+ }
+
+
+ resultColumn = resultColumn.concat(segment);
+
+ if (resultColumn.length > h) {
+ console.log('WARNING -- this value is out of bounds!')
+ }
+ }
+
+ reducedColumns[columnIndex] = resultColumn;
+ }
+
+ return reducedColumns;
+}
+
+function diffArr(refArr, testArr, h, w) {
+ let rawResultArr = [];
+ for (let i = 0; i < refArr.length; i++) {
+ rawResultArr.push(LCS_DIFF_ARRAY_METHOD(refArr[i], testArr[i]));
+ }
+ return rawResultArr;
+}
+
+function groupAdjacent(columns, spread, h, w) {
+ if (!spread) {
+ return columns;
+ }
+
+ /**
+ * [getAdjacentArrayBounds retuns existing adjacent lower and upper column bounds]
+ * @param {[int]} pointer [current index]
+ * @param {[int]} spread [distance from index]
+ * @param {[int]} length [total length]
+ * @return {[array]} [0] lower bound, [1] upper bound
+ */
+ function getAdjacentArrayBounds(pointer, spread, length) {
+ return [
+ // Math.max(0, pointer - spread),
+ Math.max(0, pointer),
+ Math.min(length - 1, pointer + spread)
+ ]
+ }
+
+ function getInterpolatedSequence(beginning, end) {
+ const interpolated = [];
+ for (let step = beginning; step <= end; step++) {
+ interpolated.push(step);
+ }
+ return interpolated;
+ }
+
+ function getCompositeColumnDepthValues(columns, sequence, depth) {
+ return sequence.reduce((acc, column) => {
+ return acc.concat(columns[column][depth]);
+ }, [])
+ }
+
+ function getCompositeRowIndexValues(groupedColumns, sequence, column) {
+ return sequence.reduce((acc, depth) => {
+ return acc.concat(groupedColumns[column][depth]);
+ }, [])
+ }
+
+ const groupedColumns = new Array();
+ let columnPointer = 0;
+ while (columnPointer < w) {
+ const adjacentColumnBounds = getAdjacentArrayBounds(columnPointer, spread, w);
+ const interpolatedColumns = getInterpolatedSequence(...adjacentColumnBounds);
+
+ const columnComposite = new Array();
+ for (var depth = 0; depth < h; depth++) {
+ columnComposite[depth] = getCompositeColumnDepthValues(columns, interpolatedColumns, depth).join('|');
+ }
+ groupedColumns.push(columnComposite);
+ columnPointer += spread;
+ }
+
+ const groupedRows = new Array();
+ if (rowSpread > 1) {
+ for (var index = 0; index < groupedColumns.length; index++) {
+ const rowComposite = new Array();
+ let depthPointer = 0;
+ while (depthPointer < h) {
+ const adjacentRowBounds = getAdjacentArrayBounds(depthPointer, rowSpread, h);
+ const interpolatedRows = getInterpolatedSequence(...adjacentRowBounds);
+ rowComposite.push(getCompositeRowIndexValues(groupedColumns, interpolatedRows, index).join(','));
+ depthPointer += rowSpread;
+ }
+ groupedRows[index] = rowComposite;
+ }
+ }
+ return groupedRows.length ? groupedRows : groupedColumns ;
+}
+
+function ungroupAdjacent(grouped, spread, columnUnderlay, h, w) {
+ if (!spread) {
+ return grouped;
+ }
+
+ function mapUngroupedColumnIndexToGroupedIndex(index, spread) {
+ return Math.floor(index / spread);
+ }
+
+ // expand columns
+ const ungrouped = new Array(w);
+ for (let index = 0; index < w; index++) {
+ if (!ungrouped[index]) {
+ ungrouped[index] = new Array(h);
+ }
+
+ const groupedIndexMap = mapUngroupedColumnIndexToGroupedIndex(index, spread);
+ for (let depth = 0; depth < h; depth++) {
+ const groupedDepthMap = rowSpread > 1 ? mapUngroupedColumnIndexToGroupedIndex(depth, rowSpread) : depth;
+ const value = grouped[groupedIndexMap][groupedDepthMap].split('|')[0];
+ ungrouped[index][depth] = value ? value : columnUnderlay[index][depth].replace(/\d+$/, OPACITY);
+ }
+ }
+
+ return ungrouped
+}
+
+
+
+function imgDataWordArrToColsAndRows(arr, h, w) {
+ let columns = new Array(w);
+ let rows = new Array(h);
+
+ for (var i = 0; i < arr.length; i++) {
+ const word = arr[i];
+
+ var {column, depth} = serialToColumnMap(i, h, w);
+ if (!columns[column]) {
+ columns[column] = new Array(h);
+ }
+ columns[column][depth] = word;
+
+ var {row, index} = serialToRowMap(i, h, w);
+ if (!rows[row]) {
+ rows[row] = new Array(w);
+ }
+ rows[row][index] = word;
+ }
+ return {columns, rows}
+}
+
+function serialToColumnMap(index, h, w) {
+ return {
+ column: index % w,
+ depth: Math.floor(index / w)
+ }
+}
+
+function serialToRowMap(index, h, w) {
+ return {
+ row: Math.floor(index / w),
+ index: index % w
+ }
+}
+
+function imgDataToWords(arr) {
+ let result = [];
+ for (let i = 0; i < arr.length-1; i += 4) {
+ result.push(`${arr[i]}_${arr[i+1]}_${arr[i+2]}_${arr[i+3]}`)
+ }
+ return result;
+}
diff --git a/report/html_report/divergedWorker.js b/report/html_report/divergedWorker.js
new file mode 100644
index 0000000000..c41d85e54b
--- /dev/null
+++ b/report/html_report/divergedWorker.js
@@ -0,0 +1,6 @@
+importScripts('diff.js');
+importScripts('diverged.js');
+self.addEventListener('message', function(e) {
+ self.postMessage(diverged(...e.data.divergedInput));
+ self.close();
+}, false);
diff --git a/report/html_report/index.html b/report/html_report/index.html
new file mode 100644
index 0000000000..89badbd4d8
--- /dev/null
+++ b/report/html_report/index.html
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+ BackstopJS Report
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/report/html_report/index_bundle.js b/report/html_report/index_bundle.js
new file mode 100644
index 0000000000..1066c772cf
--- /dev/null
+++ b/report/html_report/index_bundle.js
@@ -0,0 +1,2 @@
+/*! For license information please see index_bundle.js.LICENSE.txt */
+(()=>{var e={8864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.approveTest=function(e){return{type:"APPROVE_TEST",id:e}},t.filterTests=function(e){return{type:"FILTER_TESTS",status:e}},t.findTests=function(e){return{type:"SEARCH_TESTS",value:e}},t.updateSettings=function(e){return{type:"UPDATE_SETTINGS",id:e}},t.toggleAllImages=function(e){return{type:"TOGGLE_ALL_IMAGES",value:e}},t.openModal=function(e){return{type:"OPEN_SCRUBBER_MODAL",value:e}},t.closeModal=function(e){return{type:"CLOSE_SCRUBBER_MODAL",value:e}},t.showScrubberTestImage=function(e){return{type:"SHOW_SCRUBBER_TEST_IMAGE",value:e}},t.showScrubberRefImage=function(e){return{type:"SHOW_SCRUBBER_REF_IMAGE",value:e}},t.showScrubberDiffImage=function(e){return{type:"SHOW_SCRUBBER_DIFF_IMAGE",value:e}},t.showScrubberDivergedImage=function(e){return{type:"SHOW_SCRUBBER_DIVERGED_IMAGE",value:e}},t.showScrubber=function(e){return{type:"SHOW_SCRUBBER",value:e}},t.openLogModal=function(e){return{type:"OPEN_LOG_MODAL",value:e}},t.closeLogModal=function(e){return{type:"CLOSE_LOG_MODAL",value:e}}},8622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0,x=this,O=this.state.isRefImageMissing||!C,E=!C&&"SHOW_SCRUBBER_REF_IMAGE"===t,k=!C&&"SHOW_SCRUBBER_TEST_IMAGE"===t;return u.default.createElement("div",null,u.default.createElement(y,null,C&&u.default.createElement("div",null,u.default.createElement(h,{selected:"SHOW_SCRUBBER_REF_IMAGE"===t,onClick:p},"REFERENCE"),u.default.createElement(h,{selected:"SHOW_SCRUBBER_TEST_IMAGE"===t,onClick:l},"TEST"),u.default.createElement(h,{selected:"SHOW_SCRUBBER_DIFF_IMAGE"===t,onClick:f},"DIFF"),u.default.createElement(h,{selected:"SCRUB"===t,onClick:g},"SCRUBBER"),u.default.createElement(h,{selected:"SHOW_SCRUBBER_DIVERGED_IMAGE"===t,onClick:function(){if(x.state.isLoading)console.error("Diverged process is already running. Please hang on.");else if(s)d(s);else{d(""),x.loadingDiverge(!0);var e=document.images.isolatedRefImage,t=document.images.isolatedTestImage,n=e.height,r=e.width,o=new Worker("divergedWorker.js");o.addEventListener("message",(function(e){for(var t=e.data,o=function(e,t){return w(null,e,t).createImageData(t,e)}(n,r),a=t.length-1;a>=0;a--)o.data[a]=t[a];var i=w(null,n,r);i.putImageData(o,0,0);var s=i.canvas.toDataURL("image/png");d(s),x.loadingDiverge(!1)}),!1),o.addEventListener("error",(function(e){d(""),x.loadingDiverge(!1),console.error(e)})),o.postMessage({divergedInput:[b(w(e)),b(w(t)),n,r]})}},className:this.state.isLoading?"loadingDiverged":"",style:{display:/remote/.test(location.search)?"":"none"}},this.state.isLoading?"DIVERGING!":"DIVERGED"))),u.default.createElement(m,null,u.default.createElement("img",{id:"isolatedRefImage",src:o,style:{margin:"auto",display:E?"block":"none"}}),u.default.createElement("img",{id:"isolatedTestImage",className:"testImage",src:a,style:{margin:"auto",display:k?"block":"none"}}),u.default.createElement("img",{className:"diffImage",src:i,style:{margin:"auto",display:O?"block":"none"}}),u.default.createElement("div",{style:{display:O?"none":"block"}},u.default.createElement(c.default,{verticalAlign:"top",minDistanceToBeginInteraction:0,maxAngleToBeginInteraction:1/0,initialPosition:r,newPosition:r},u.default.createElement("img",{id:"scrubberRefImage",className:"refImage",src:o,onError:this.handleRefImageLoadingError}),u.default.createElement("img",{id:"scrubberTestImage",className:"testImage",src:_}),u.default.createElement(v,{className:"slider"})))))}}]),t}(u.default.Component);function b(e){return e.getImageData(0,0,e.canvas.width,e.canvas.height).data}function w(e,t,n){var r=e;e||(r={height:t,width:n});var o=document.createElement("canvas");o.width=r.width,o.height=r.height;var a=o.getContext("2d");return e&&a.drawImage(r,0,0),a}t.default=g},8845:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogDetails=void 0;var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n0?this.props.findTest(t):this.props.filterTests(this.props.tests.filterStatus)}},{key:"render",value:function(){return s.default.createElement(m,null,s.default.createElement(p.default,{onChange:this.onChange.bind(this)}))}}]),t}(s.default.Component),v=(0,u.connect)((function(e){return{tests:e.tests}}),(function(e){return{findTest:function(t){e((0,c.findTests)(t))},filterTests:function(t){e((0,c.filterTests)(t))}}}))(y);t.default=v},3101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1438),o=l(n(5556)),a=l(n(4937)),i=l(n(7311)),s=l(n(4817)),u=l(n(7245));function l(e){return e&&e.__esModule?e:{default:e}}var c=(0,r.combineReducers)({suiteInfo:a.default,tests:o.default,scrubber:s.default,logs:u.default,layoutSettings:i.default});t.default=c},7311:(e,t)=>{"use strict";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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"UPDATE_SETTINGS":return Object.assign({},e,n({},t.id,!e[t.id]));case"TOGGLE_ALL_IMAGES":return Object.assign({},e,{refImage:t.value,testImage:t.value,diffImage:t.value});default:return e}}},7245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"OPEN_LOG_MODAL":return Object.assign({},e,{visible:!0,logs:t.value});case"CLOSE_LOG_MODAL":return Object.assign({},e,{visible:!1});default:return e}}},4817:(e,t)=>{"use strict";function n(e){switch(e){case"refImage":return 100;case"testImage":case"diffImage":return 0;default:return 50}}function r(e){switch(e){case"refImage":return"SHOW_SCRUBBER_REF_IMAGE";case"testImage":return"SHOW_SCRUBBER_TEST_IMAGE";case"diffImage":return"SHOW_SCRUBBER_DIFF_IMAGE";default:return"SCRUB"}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],o="";switch(t.type){case"OPEN_SCRUBBER_MODAL":try{o=t.value.targetImg.id}catch(e){}return Object.assign({},e,{position:n(o),visible:!0,test:t.value,testImageType:o,scrubberModalMode:r(o)});case"CLOSE_SCRUBBER_MODAL":return Object.assign({},e,{visible:!1,test:{}});case"SHOW_SCRUBBER_TEST_IMAGE":return Object.assign({},e,{position:n("testImage"),scrubberModalMode:t.type,testImageType:"testImage"});case"SHOW_SCRUBBER_REF_IMAGE":return Object.assign({},e,{position:n("refImage"),scrubberModalMode:t.type});case"SHOW_SCRUBBER_DIFF_IMAGE":return Object.assign({},e,{position:n("diffImage"),scrubberModalMode:t.type,testImageType:"diffImage"});case"SHOW_SCRUBBER_DIVERGED_IMAGE":return Object.assign({},e,{position:n("diffImage"),scrubberModalMode:t.type,testImageType:"divergedImage",test:Object.assign({},e.test,{divergedImage:t.value})});case"SHOW_SCRUBBER":return Object.assign({},e,{position:n(),scrubberModalMode:"SCRUB",testImageType:"testImage"});default:return e}}},4937:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return"SET_VISIBILITY_FILTER"===t.type?t.filter:e}},5556:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case"APPROVE_TEST":return Object.assign({},e,{all:e.all.map((function(e){return e.pair&&e.pair.fileName===t.id?Object.assign({},e,{status:"pass"}):e}))});case"FILTER_TESTS":return"all"!==t.status?Object.assign({},e,{filtered:e.all.filter((function(e){return e.status===t.status})),filterStatus:t.status}):Object.assign({},e,{filtered:e.all,filterStatus:t.status});case"SEARCH_TESTS":return t.value.length>0?Object.assign({},e,{filtered:e.all.filter((function(n){var r=n.pair.fileName.toLowerCase(),o=n.pair.label.toLowerCase();if("all"!==e.filterStatus){if(n.status===e.filterStatus&&(-1!==o.indexOf(t.value.toLowerCase())||-1!==r.indexOf(t.value.toLowerCase())))return!0}else if(-1!==o.indexOf(t.value.toLowerCase())||-1!==r.indexOf(t.value.toLowerCase()))return!0;return!1}))}):e;default:return e}}},8147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1438),a=(r=n(8051))&&r.__esModule?r:{default:r},i={suiteInfo:{testSuiteName:window.tests.testSuite,idConfig:window.tests.id},tests:{all:window.tests.tests,filtered:window.tests.tests,filterStatus:"all"},scrubber:{visible:!1,mode:"scrub",test:{}},layoutSettings:{textInfo:!1,refImage:!0,testImage:!0,diffImage:!0}},s=(0,o.createStore)(a.default,i,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__());t.default=s},6316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colors={primaryText:"#4A4A4A",bodyColor:"#E2E7EA",secondaryText:"#787878",borderGray:"#D1D9DD",green:"#8BC34A",red:"#F44336",white:"#FFFFFF",cardWhite:"#FAFAFA",lightGray:"#EEEEEE",medGray:"#999999"},t.fonts={latoRegular:"latoregular",latoBold:"latobold",arial:"Arial"},t.shadows={shadow01:"0 3px 6px 0 rgba(0,0,0,0.16)",shadow02:"0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3)"}},184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n=l)&&Math.abs(d)>u)return void this.endDrag();if(!t)return}var h=this.refs.component.getBoundingClientRect(),m=100*(o-h.left)/h.width;m=Math.max(Math.min(m,100),0),this.setState({position:m,isDragging:t})}}},{key:"beginDrag",value:function(e){if(e&&e.preventDefault(),this.props.isDraggingEnabled){var t="touches"in e?e.touches[0]:e,n=t.pageX,r=t.pageY;this.setState({startX:n,startY:r}),document.addEventListener("mousemove",this.onDragMove),document.addEventListener("mouseup",this.endDrag),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("touchend",this.endDrag)}}},{key:"endDrag",value:function(){document.removeEventListener("mousemove",this.onDragMove),document.removeEventListener("mouseup",this.endDrag),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("touchend",this.endDrag),this.setState({isDragging:!1,startY:NaN,endY:NaN})}},{key:"render",value:function(){var e=this.state.position,t=this.props,n=t.children,r=t.verticalAlign,o=t.leftHorizontalAlign,a=t.rightHorizontalAlign;return 2!==n.length&&3!==n.length?(console.warn("Expected exactly two or three children"),null):i.default.createElement("div",{ref:"component",style:{position:"relative",overflow:"hidden",whiteSpace:"nowrap"},onMouseDown:this.beginDrag,onTouchStart:this.beginDrag},i.default.createElement("div",{style:{position:"absolute",left:e+"%",height:"100%",width:0,zIndex:1}},n[2]),i.default.createElement("div",{style:{display:"inline-block",width:"100%",position:"relative",verticalAlign:r,left:e-100+"%",overflow:"hidden"}},i.default.createElement("div",{style:{position:"relative",right:e-100+"%",textAlign:o}},n[0])),i.default.createElement("div",{style:{display:"inline-block",width:"100%",position:"relative",verticalAlign:r,left:e-100+"%",overflow:"hidden"}},i.default.createElement("div",{style:{position:"relative",right:e+"%",textAlign:a}},n[1])))}}]),t}(a.Component);t.default=u,u.propTypes={children:a.PropTypes.array,verticalAlign:a.PropTypes.string,leftHorizontalAlign:a.PropTypes.string,rightHorizontalAlign:a.PropTypes.string,minDistanceToBeginInteraction:a.PropTypes.number,maxAngleToBeginInteraction:a.PropTypes.number,initialPosition:a.PropTypes.number,isDraggingEnabled:a.PropTypes.bool},u.defaultProps={verticalAlign:"middle",leftHorizontalAlign:"center",rightHorizontalAlign:"center",minDistanceToBeginInteraction:15,maxAngleToBeginInteraction:30,initialPosition:50,isDraggingEnabled:!0}},6511:(e,t,n)=>{"use strict";var r=n(7418),o={};function a(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)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,o,a,i,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}var i="mixins";e.exports=function(e,t,n){var s=[],u={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n{"use strict";var r=n(7588),o=n(6511);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 a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},8875:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},8628:(e,t,n)=>{"use strict";var r=n(139),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},6508:e=>{"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},2297:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},250:(e,t,n)=>{"use strict";var r=n(2297),o=/^-ms-/;e.exports=function(e){return r(e.replace(o,"ms-"))}},7476:(e,t,n)=>{"use strict";var r=n(2334);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},9825:(e,t,n)=>{"use strict";var r=n(3759);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o{"use strict";var r=n(6508),o=n(9825),a=n(980),i=n(3759),s=r.canUseDOM?document.createElement("div"):null,u=/^\s*<(\w+)/;e.exports=function(e,t){var n=s;s||i(!1);var r=function(e){var t=e.match(u);return t&&t[1].toLowerCase()}(e),l=r&&a(r);if(l){n.innerHTML=l[1]+e+l[2];for(var c=l[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t||i(!1),o(p).forEach(t));for(var f=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}},139:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},3677:e=>{"use strict";e.exports={}},8387:e=>{"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},1003:e=>{"use strict";e.exports=function(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}}},980:(e,t,n)=>{"use strict";var r=n(6508),o=n(3759),a=r.canUseDOM?document.createElement("div"):null,i={},s=[1,'"],u=[1,""],l=[3,""],c=[1,'"],p={"*":[1,"?","
"],area:[1,""],col:[2,""],legend:[1,""],param:[1,""],tr:[2,""],optgroup:s,option:s,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach((function(e){p[e]=c,i[e]=!0})),e.exports=function(e){return a||o(!1),p.hasOwnProperty(e)||(e="*"),i.hasOwnProperty(e)||(a.innerHTML="*"===e?"":"<"+e+">"+e+">",i[e]=!a.firstChild),i[e]?p[e]:null}},787:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},9349:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},7100:(e,t,n)=>{"use strict";var r=n(9349),o=/^ms-/;e.exports=function(e){return r(e).replace(o,"-ms-")}},3759:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)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,o,a,i,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},901:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},2334:(e,t,n)=>{"use strict";var r=n(901);e.exports=function(e){return r(e)&&3==e.nodeType}},1767:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},9303:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var i=0;i{"use strict";var r=n(139);e.exports=r},8679:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,u=s&&s(Object);e.exports=function e(l,c,p){if("string"!=typeof c){if(u){var f=s(c);f&&f!==u&&e(l,f,p)}var d=o(c);a&&(d=d.concat(a(c)));for(var h=0;h{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var u;if(void 0===t)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,o,a,i,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},5299:(e,t,n)=>{"use strict";var r=n(7798);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},7798:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},5478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},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};const a=function(){var e=void 0,t=void 0,n=void 0,a=void 0,i=void 0,s=void 0,u=void 0,l=void 0,c=void 0,p=void 0,f=void 0,d=void 0;function h(){return window.scrollY||window.pageYOffset}function m(e){return e.getBoundingClientRect().top+t}function y(n){c||(c=n),f=i(p=n-c,t,u,l),window.scrollTo(0,f),p1&&void 0!==arguments[1]?arguments[1]:{};switch(l=p.duration||1e3,a=p.offset||0,d=p.callback,i=p.easing||r,s=p.a11y||!1,t=h(),void 0===c?"undefined":o(c)){case"number":e=void 0,s=!1,n=t+c;break;case"object":n=m(e=c);break;case"string":e=document.querySelector(c),n=m(e)}switch(u=n-t+a,o(p.duration)){case"number":l=p.duration;break;case"function":l=p.duration(u)}window.requestAnimationFrame(y)}}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,s,u=o(e),l=1;l{"use strict";function t(e,t,n,r,o){}t.resetWarningCache=function(){},e.exports=t},7425:(e,t,n)=>{"use strict";var r=n(1805);e.exports=function(e){return r(e,!1)}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==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:a,resetWarningCache:o};return n.PropTypes=n,n}},1805:(e,t,n)=>{"use strict";var r=n(9864),o=n(7418),a=n(414),i=n(1040),s=Function.call.bind(Object.prototype.hasOwnProperty);function u(){return null}e.exports=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,l="<>",c={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:f(u),arrayOf:function(e){return f((function(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new p("Invalid "+o+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4087:(e,t,n)=>{for(var r=n(75),o="undefined"==typeof window?n.g:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],u=o["cancel"+i]||o["cancelRequest"+i],l=0;!s&&l{"use strict";e.exports=n(277)},3847:e=>{"use strict";e.exports={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}}},684:(e,t,n)=>{"use strict";var r=n(8300),o=n(8387),a={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=a},5129:(e,t,n)=>{"use strict";var r=n(7033),o=n(6508),a=n(4900),i=n(4230),s=n(1825),u=[9,13,27,32],l=o.canUseDOM&&"CompositionEvent"in window,c=null;o.canUseDOM&&"documentMode"in document&&(c=document.documentMode);var p,f=o.canUseDOM&&"TextEvent"in window&&!c&&!("object"==typeof(p=window.opera)&&"function"==typeof p.version&&parseInt(p.version(),10)<=12),d=o.canUseDOM&&(!l||c&&c>8&&c<=11),h=String.fromCharCode(32),m={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},y=!1;function v(e,t){switch(e){case"topKeyUp":return-1!==u.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function g(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}var b=null;function w(e,t,n,o){var s,u;if(l?s=function(e){switch(e){case"topCompositionStart":return m.compositionStart;case"topCompositionEnd":return m.compositionEnd;case"topCompositionUpdate":return m.compositionUpdate}}(e):b?v(e,n)&&(s=m.compositionEnd):function(e,t){return"topKeyDown"===e&&229===t.keyCode}(e,n)&&(s=m.compositionStart),!s)return null;d&&(b||s!==m.compositionStart?s===m.compositionEnd&&b&&(u=b.getData()):b=a.getPooled(o));var c=i.getPooled(s,t,n,o);if(u)c.data=u;else{var p=g(n);null!==p&&(c.data=p)}return r.accumulateTwoPhaseDispatches(c),c}function _(e,t,n,o){var i;if(i=f?function(e,t){switch(e){case"topCompositionEnd":return g(t);case"topKeyPress":return 32!==t.which?null:(y=!0,h);case"topTextInput":var n=t.data;return n===h&&y?null:n;default:return null}}(e,n):function(e,t){if(b){if("topCompositionEnd"===e||!l&&v(e,t)){var n=b.getData();return a.release(b),b=null,n}return null}switch(e){default:return null;case"topKeyPress":return t.which&&!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return d?null:t.data}}(e,n),!i)return null;var u=s.getPooled(m.beforeInput,t,n,o);return u.data=i,r.accumulateTwoPhaseDispatches(u),u}var C={eventTypes:m,extractEvents:function(e,t,n,r){return[w(e,t,n,r),_(e,t,n,r)]}};e.exports=C},6993:e=>{"use strict";var t={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];Object.keys(t).forEach((function(e){n.forEach((function(n){t[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,e)]=t[e]}))}));var r={isUnitlessNumber:t,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}};e.exports=r},7185:(e,t,n)=>{"use strict";var r=n(6993),o=n(6508),a=(n(1645),n(250),n(6109)),i=n(7100),s=n(1767),u=(n(3620),s((function(e){return i(e)}))),l=!1,c="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var f={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=0===r.indexOf("--"),i=e[r];null!=i&&(n+=u(r)+":",n+=a(r,i,t,o)+";")}return n||null},setValueForStyles:function(e,t,n){var o=e.style;for(var i in t)if(t.hasOwnProperty(i)){var s=0===i.indexOf("--"),u=a(i,t[i],n,s);if("float"!==i&&"cssFloat"!==i||(i=c),s)o.setProperty(i,u);else if(u)o[i]=u;else{var p=l&&r.shorthandPropertyExpansions[i];if(p)for(var f in p)o[f]="";else o[i]=""}}}};e.exports=f},1008:(e,t,n)=>{"use strict";var r=n(7043),o=n(483),a=(n(3759),function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&r("24"),this._callbacks=null,this._contexts=null;for(var o=0;o{"use strict";var r=n(6076),o=n(7033),a=n(6508),i=n(8300),s=n(8264),u=n(2223),l=n(6868),c=n(6979),p=n(8964),f=n(2128),d={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}};function h(e,t,n){var r=u.getPooled(d.change,e,t,n);return r.type="change",o.accumulateTwoPhaseDispatches(r),r}var m=null,y=null,v=!1;function g(e){var t=h(y,e,c(e));s.batchedUpdates(b,t)}function b(e){r.enqueueEvents(e),r.processEventQueue(!1)}function w(){m&&(m.detachEvent("onchange",g),m=null,y=null)}function _(e,t){var n=l.updateValueIfChanged(e),r=!0===t.simulated&&I._allowSimulatedPassThrough;if(n||r)return e}function C(e,t){if("topChange"===e)return t}function x(e,t,n){"topFocus"===e?(w(),function(e,t){y=t,(m=e).attachEvent("onchange",g)}(t,n)):"topBlur"===e&&w()}a.canUseDOM&&(v=p("change")&&(!document.documentMode||document.documentMode>8));var O=!1;function E(){m&&(m.detachEvent("onpropertychange",k),m=null,y=null)}function k(e){"value"===e.propertyName&&_(y,e)&&g(e)}function T(e,t,n){"topFocus"===e?(E(),function(e,t){y=t,(m=e).attachEvent("onpropertychange",k)}(t,n)):"topBlur"===e&&E()}function S(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return _(y,n)}function P(e,t,n){if("topClick"===e)return _(t,n)}function A(e,t,n){if("topInput"===e||"topChange"===e)return _(t,n)}a.canUseDOM&&(O=p("input")&&(!document.documentMode||document.documentMode>9));var I={eventTypes:d,_allowSimulatedPassThrough:!0,_isInputEventSupported:O,extractEvents:function(e,t,n,r){var o,a,s,u,l=t?i.getNodeFromInstance(t):window;if("select"===(u=(s=l).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type?v?o=C:a=x:f(l)?O?o=A:(o=S,a=T):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(l)&&(o=P),o){var c=o(e,t,n);if(c)return h(c,n,r)}a&&a(e,l,t),"topBlur"===e&&function(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}(t,l)}};e.exports=I},5211:(e,t,n)=>{"use strict";var r=n(725),o=n(1343),a=(n(8300),n(1645),n(7842)),i=n(492),s=n(1323);function u(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}var l=a((function(e,t,n){e.insertBefore(t,n)}));function c(e,t,n){r.insertTreeBefore(e,t,n)}function p(e,t,n){Array.isArray(t)?function(e,t,n,r){for(var o=t;;){var a=o.nextSibling;if(l(e,o,r),o===n)break;o=a}}(e,t[0],t[1],n):l(e,t,n)}function f(e,t){if(Array.isArray(t)){var n=t[1];d(e,t=t[0],n),e.removeChild(n)}e.removeChild(t)}function d(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}var h={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:function(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&l(r,document.createTextNode(n),o):n?(s(o,n),d(r,o,t)):d(r,e,t)},processUpdates:function(e,t){for(var n=0;n{"use strict";var r=n(8066),o=n(492),a=n(7842),i=n(1323),s="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent);function u(e){if(s){var t=e.node,n=e.children;if(n.length)for(var r=0;r{"use strict";e.exports={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}},9679:(e,t,n)=>{"use strict";var r=n(7043);function o(e,t){return(e&t)===t}n(3759);var a={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};for(var p in e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute),n){s.properties.hasOwnProperty(p)&&r("48",p);var f=p.toLowerCase(),d=n[p],h={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:o(d,t.MUST_USE_PROPERTY),hasBooleanValue:o(d,t.HAS_BOOLEAN_VALUE),hasNumericValue:o(d,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(d,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(d,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1||r("50",p),u.hasOwnProperty(p)){var m=u[p];h.attributeName=m}i.hasOwnProperty(p)&&(h.attributeNamespace=i[p]),l.hasOwnProperty(p)&&(h.propertyName=l[p]),c.hasOwnProperty(p)&&(h.mutationMethod=c[p]),s.properties[p]=h}}},i=":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",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:i,ATTRIBUTE_NAME_CHAR:i+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t{"use strict";var r=n(9679),o=(n(8300),n(1645),n(1509)),a=(n(3620),new RegExp("^["+r.ATTRIBUTE_NAME_START_CHAR+"]["+r.ATTRIBUTE_NAME_CHAR+"]*$")),i={},s={};function u(e){return!!s.hasOwnProperty(e)||!i.hasOwnProperty(e)&&(a.test(e)?(s[e]=!0,!0):(i[e]=!0,!1))}function l(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&!1===t}var c={createMarkupForID:function(e){return r.ID_ATTRIBUTE_NAME+"="+o(e)},setAttributeForID:function(e,t){e.setAttribute(r.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return r.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(r.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=r.properties.hasOwnProperty(e)?r.properties[e]:null;if(n){if(l(n,t))return"";var a=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===t?a+'=""':a+"="+o(t)}return r.isCustomAttribute(e)?null==t?"":e+"="+o(t):null},createMarkupForCustomAttribute:function(e,t){return u(e)&&null!=t?e+"="+o(t):""},setValueForProperty:function(e,t,n){var o=r.properties.hasOwnProperty(t)?r.properties[t]:null;if(o){var a=o.mutationMethod;if(a)a(e,n);else{if(l(o,n))return void this.deleteValueForProperty(e,t);if(o.mustUseProperty)e[o.propertyName]=n;else{var i=o.attributeName,s=o.attributeNamespace;s?e.setAttributeNS(s,i,""+n):o.hasBooleanValue||o.hasOverloadedBooleanValue&&!0===n?e.setAttribute(i,""):e.setAttribute(i,""+n)}}}else if(r.isCustomAttribute(t))return void c.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){u(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=r.properties.hasOwnProperty(t)?r.properties[t]:null;if(n){var o=n.mutationMethod;if(o)o(e,void 0);else if(n.mustUseProperty){var a=n.propertyName;n.hasBooleanValue?e[a]=!1:e[a]=""}else e.removeAttribute(n.attributeName)}else r.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=c},1343:(e,t,n)=>{"use strict";var r=n(7043),o=n(725),a=n(6508),i=n(188),s=n(139),u=(n(3759),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(a.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=i(t,s)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=u},9436:e=>{"use strict";e.exports=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"]},3672:(e,t,n)=>{"use strict";var r=n(7033),o=n(8300),a=n(5091),i={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:i,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u,l,c;if(s.window===s)u=s;else{var p=s.ownerDocument;u=p?p.defaultView||p.parentWindow:window}if("topMouseOut"===e){l=t;var f=n.relatedTarget||n.toElement;c=f?o.getClosestInstanceFromNode(f):null}else l=null,c=t;if(l===c)return null;var d=null==l?u:o.getNodeFromInstance(l),h=null==c?u:o.getNodeFromInstance(c),m=a.getPooled(i.mouseLeave,l,n,s);m.type="mouseleave",m.target=d,m.relatedTarget=h;var y=a.getPooled(i.mouseEnter,c,n,s);return y.type="mouseenter",y.target=h,y.relatedTarget=d,r.accumulateEnterLeaveDispatches(m,y,l,c),[m,y]}};e.exports=s},6076:(e,t,n)=>{"use strict";var r=n(7043),o=n(9354),a=n(6162),i=n(1554),s=n(7015),u=n(1902),l=(n(3759),{}),c=null,p=function(e,t){e&&(a.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},f=function(e){return p(e,!0)},d=function(e){return p(e,!1)},h=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&r("94",t,typeof n);var a=h(e);(l[t]||(l[t]={}))[a]=n;var i=o.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t];if(function(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e._currentElement.type,e._currentElement.props))return null;var r=h(e);return n&&n[r]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=l[t];r&&delete r[h(e)]},deleteAllListeners:function(e){var t=h(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var r=o.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,r){for(var a,i=o.plugins,u=0;u{"use strict";var r=n(7043),o=(n(3759),null),a={};function i(){if(o)for(var e in a){var t=a[e],n=o.indexOf(e);if(n>-1||r("96",e),!l.plugins[n]){t.extractEvents||r("97",e),l.plugins[n]=t;var i=t.eventTypes;for(var u in i)s(i[u],t,u)||r("98",u,e)}}}function s(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)&&r("99",n),l.eventNameDispatchConfigs[n]=e;var o=e.phasedRegistrationNames;if(o){for(var a in o)o.hasOwnProperty(a)&&u(o[a],t,n);return!0}return!!e.registrationName&&(u(e.registrationName,t,n),!0)}function u(e,t,n){l.registrationNameModules[e]&&r("100",e),l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){o&&r("101"),o=Array.prototype.slice.call(e),i()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];a.hasOwnProperty(n)&&a[n]===o||(a[n]&&r("102",n),a[n]=o,t=!0)}t&&i()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){for(var e in o=null,a)a.hasOwnProperty(e)&&delete a[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};e.exports=l},6162:(e,t,n)=>{"use strict";var r,o,a=n(7043),i=n(1554);function s(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=u.getNodeFromInstance(r),t?i.invokeGuardedCallbackWithCatch(o,n,e):i.invokeGuardedCallback(o,n,e),e.currentTarget=null}n(3759),n(3620);var u={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)&&a("103"),e.currentTarget=t?u.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o{"use strict";var r=n(6076),o=n(6162),a=n(7015),i=n(1902),s=(n(3620),r.getListener);function u(e,t,n){var r=function(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return s(e,r)}(e,n,t);r&&(n._dispatchListeners=a(n._dispatchListeners,r),n._dispatchInstances=a(n._dispatchInstances,e))}function l(e){e&&e.dispatchConfig.phasedRegistrationNames&&o.traverseTwoPhase(e._targetInst,u,e)}function c(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?o.getParentInstance(t):null;o.traverseTwoPhase(n,u,e)}}function p(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=s(e,r);o&&(n._dispatchListeners=a(n._dispatchListeners,o),n._dispatchInstances=a(n._dispatchInstances,e))}}function f(e){e&&e.dispatchConfig.registrationName&&p(e._targetInst,0,e)}var d={accumulateTwoPhaseDispatches:function(e){i(e,l)},accumulateTwoPhaseDispatchesSkipTarget:function(e){i(e,c)},accumulateDirectDispatches:function(e){i(e,f)},accumulateEnterLeaveDispatches:function(e,t,n,r){o.traverseEnterLeave(n,r,p,e,t)}};e.exports=d},4900:(e,t,n)=>{"use strict";var r=n(7418),o=n(483),a=n(8519);function i(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}r(i.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),a=o.length;for(e=0;e1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(i),e.exports=i},9431:(e,t,n)=>{"use strict";var r=n(9679),o=r.injection.MUST_USE_PROPERTY,a=r.injection.HAS_BOOLEAN_VALUE,i=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:a,allowTransparency:0,alt:0,as:0,async:a,autoComplete:0,autoPlay:a,capture:a,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|a,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:a,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:a,defer:a,dir:0,disabled:a,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:a,formTarget:0,frameBorder:0,headers:0,height:0,hidden:a,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:a,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|a,muted:o|a,name:0,nonce:0,noValidate:a,open:a,optimum:0,pattern:0,placeholder:0,playsInline:a,poster:0,preload:0,profile:0,radioGroup:0,readOnly:a,referrerPolicy:0,rel:0,required:a,reversed:a,role:0,rows:s,rowSpan:i,sandbox:0,scope:0,scoped:a,scrolling:0,seamless:a,selected:o|a,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:i,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:a,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");("number"!==e.type||!1===e.hasAttribute("value")||e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e)&&e.setAttribute("value",""+t)}}};e.exports=l},7143:e=>{"use strict";e.exports={escape:function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))},unescape:function(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,(function(e){return t[e]}))}}},4378:(e,t,n)=>{"use strict";var r=n(7043),o=n(3390),a=n(7425)(n(8954).isValidElement),i=(n(3759),n(3620),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0});function s(e){null!=e.checkedLink&&null!=e.valueLink&&r("87")}function u(e){s(e),(null!=e.value||null!=e.onChange)&&r("88")}function l(e){s(e),(null!=e.checked||null!=e.onChange)&&r("89")}var c={value:function(e,t,n){return!e[t]||i[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:a.func},p={};function f(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var d={checkPropTypes:function(e,t,n){for(var r in c){if(c.hasOwnProperty(r))var a=c[r](t,r,e,"prop",null,o);a instanceof Error&&!(a.message in p)&&(p[a.message]=!0,f(n))}},getValue:function(e){return e.valueLink?(u(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(l(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(u(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(l(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=d},483:(e,t,n)=>{"use strict";var r=n(7043),o=(n(3759),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),a=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length{"use strict";var r,o=n(7418),a=n(9354),i=n(3611),s=n(1594),u=n(4),l=n(8964),c={},p=!1,f=0,d={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},h="_reactListenersID"+String(Math.random()).slice(2),m=o({},i,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,r=function(e){return Object.prototype.hasOwnProperty.call(e,h)||(e[h]=f++,c[e[h]]={}),c[e[h]]}(n),o=a.registrationNameDependencies[e],i=0;i{"use strict";var r=n(2312),o=n(2109),a=(n(7143),n(2154)),i=n(5505);function s(e,t,n,r){var a=void 0===e[n];null!=t&&a&&(e[n]=o(t,!0))}n(3620),"undefined"!=typeof process&&process.env;var u={instantiateChildren:function(e,t,n,r){if(null==e)return null;var o={};return i(e,s,o),o},updateChildren:function(e,t,n,i,s,u,l,c,p){if(t||e){var f,d;for(f in t)if(t.hasOwnProperty(f)){var h=(d=e&&e[f])&&d._currentElement,m=t[f];if(null!=d&&a(h,m))r.receiveComponent(d,m,s,c),t[f]=d;else{d&&(i[f]=r.getHostNode(d),r.unmountComponent(d,!1));var y=o(m,!0);t[f]=y;var v=r.mountComponent(y,s,u,l,c,p);n.push(v)}}for(f in e)!e.hasOwnProperty(f)||t&&t.hasOwnProperty(f)||(d=e[f],i[f]=r.getHostNode(d),r.unmountComponent(d,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];r.unmountComponent(o,t)}}};e.exports=u},1145:(e,t,n)=>{"use strict";var r=n(5211),o={processChildrenUpdates:n(465).dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=o},2766:(e,t,n)=>{"use strict";var r=n(7043),o=(n(3759),!1),a={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o&&r("104"),a.replaceNodeWithMarkup=e.replaceNodeWithMarkup,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=a},2384:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(8954),i=n(2766),s=n(4066),u=n(1554),l=n(1806),c=(n(1645),n(6432)),p=n(2312),f=n(3677),d=(n(3759),n(9303)),h=n(2154),m=(n(3620),0);function y(e){}y.prototype.render=function(){var e=l.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return t};var v=1,g={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,o){this._context=o,this._mountOrder=v++,this._hostParent=t,this._hostContainerInfo=n;var i,s=this._currentElement.props,u=this._processContext(o),c=this._currentElement.type,p=e.getUpdateQueue(),d=function(e){return!(!e.prototype||!e.prototype.isReactComponent)}(c),h=this._constructComponent(d,s,u,p);d||null!=h&&null!=h.render?function(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}(c)?this._compositeType=1:this._compositeType=m:(i=h,null===h||!1===h||a.isValidElement(h)||r("105",c.displayName||c.name||"Component"),h=new y(c),this._compositeType=2),h.props=s,h.context=u,h.refs=f,h.updater=p,this._instance=h,l.set(h,this);var g,b=h.state;return void 0===b&&(h.state=b=null),("object"!=typeof b||Array.isArray(b))&&r("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,g=h.unstable_handleError?this.performInitialMountWithErrorHandling(i,t,n,e,o):this.performInitialMount(i,t,n,e,o),h.componentDidMount&&e.getReactMountReady().enqueue(h.componentDidMount,h),g},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var a,i=r.checkpoint();try{a=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(i),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),i=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(i),a=this.performInitialMount(e,t,n,r,o)}return a},performInitialMount:function(e,t,n,r,o){var a=this._instance;a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),void 0===e&&(e=this._renderValidatedComponent());var i=c.getType(e);this._renderedNodeType=i;var s=this._instantiateReactComponent(e,i!==c.EMPTY);return this._renderedComponent=s,p.mountComponent(s,r,t,n,this._processChildContext(o),0)},getHostNode:function(){return p.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";u.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(p.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,l.remove(t)}},_maskContext:function(e){var t=this._currentElement.type.contextTypes;if(!t)return f;var n={};for(var r in t)n[r]=e[r];return n},_processContext:function(e){return this._maskContext(e)},_processChildContext:function(e){var t,n=this._currentElement.type,a=this._instance;if(a.getChildContext&&(t=a.getChildContext()),t){for(var i in"object"!=typeof n.childContextTypes&&r("107",this.getName()||"ReactCompositeComponent"),t)i in n.childContextTypes||r("108",this.getName()||"ReactCompositeComponent",i);return o({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?p.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,o,a){var i=this._instance;null==i&&r("136",this.getName()||"ReactCompositeComponent");var s,u=!1;this._context===a?s=i.context:(s=this._processContext(a),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,s);var p=this._processPendingState(c,s),f=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?f=i.shouldComponentUpdate(c,p,s):1===this._compositeType&&(f=!d(l,c)||!d(i.state,p))),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,p,s,e,a)):(this._currentElement=n,this._context=a,i.props=c,i.state=p,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,a=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(a&&1===r.length)return r[0];for(var i=o({},a?r[0]:n.state),s=a?1:0;s{"use strict";var r=n(8300),o=n(9550),a=n(6413),i=n(2312),s=n(8264),u=n(8393),l=n(7441),c=n(3450),p=n(4406);n(3620),o.inject();var f={findDOMNode:l,render:a.render,unmountComponentAtNode:a.unmountComponentAtNode,version:u,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=c(e)),e?r.getNodeFromInstance(e):null}},Mount:a,Reconciler:i}),e.exports=f},3539:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(684),i=n(7185),s=n(725),u=n(8066),l=n(9679),c=n(7354),p=n(6076),f=n(9354),d=n(9764),h=n(2143),m=n(8300),y=n(544),v=n(5192),g=n(8038),b=n(7281),w=(n(1645),n(4419)),_=n(9642),C=(n(139),n(1467)),x=(n(3759),n(8964),n(9303),n(6868)),O=(n(6663),n(3620),h),E=p.deleteListener,k=m.getNodeFromInstance,T=d.listenTo,S=f.registrationNameModules,P={string:!0,number:!0},A="style",I={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null};function j(e,t){t&&(z[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!=typeof t.style&&r("62",function(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}(e)))}function M(e,t,n,r){if(!(r instanceof _)){var o=e._hostContainerInfo,a=o._node&&11===o._node.nodeType?o._node:o._ownerDocument;T(t,a),r.getReactMountReady().enqueue(R,{inst:e,registrationName:t,listener:n})}}function R(){var e=this;p.putListener(e.inst,e.registrationName,e.listener)}function N(){y.postMountWrapper(this)}function D(){b.postMountWrapper(this)}function L(){v.postMountWrapper(this)}var U={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"};function F(){x.track(this)}function B(){var e=this;e._rootNodeID||r("63");var t=k(e);switch(t||r("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[d.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":for(var n in e._wrapperState.listeners=[],U)U.hasOwnProperty(n)&&e._wrapperState.listeners.push(d.trapBubbledEvent(n,U[n],t));break;case"source":e._wrapperState.listeners=[d.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[d.trapBubbledEvent("topError","error",t),d.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[d.trapBubbledEvent("topReset","reset",t),d.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[d.trapBubbledEvent("topInvalid","invalid",t)]}}function W(){g.postUpdateWrapper(this)}var V={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},H={listing:!0,pre:!0,textarea:!0},z=o({menuitem:!0},V),q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,G={},Y={}.hasOwnProperty;function K(e,t){return e.indexOf("-")>=0||null!=t.is}var X=1;function Q(e){var t=e.type;!function(e){Y.call(G,e)||(q.test(e)||r("65",e),G[e]=!0)}(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}Q.displayName="ReactDOMComponent",Q.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=X++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o,i,l,p=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(B,this);break;case"input":y.mountWrapper(this,p,t),p=y.getHostProps(this,p),e.getReactMountReady().enqueue(F,this),e.getReactMountReady().enqueue(B,this);break;case"option":v.mountWrapper(this,p,t),p=v.getHostProps(this,p);break;case"select":g.mountWrapper(this,p,t),p=g.getHostProps(this,p),e.getReactMountReady().enqueue(B,this);break;case"textarea":b.mountWrapper(this,p,t),p=b.getHostProps(this,p),e.getReactMountReady().enqueue(F,this),e.getReactMountReady().enqueue(B,this)}if(j(this,p),null!=t?(o=t._namespaceURI,i=t._tag):n._tag&&(o=n._namespaceURI,i=n._tag),(null==o||o===u.svg&&"foreignobject"===i)&&(o=u.html),o===u.html&&("svg"===this._tag?o=u.svg:"math"===this._tag&&(o=u.mathml)),this._namespaceURI=o,e.useCreateElement){var f,d=n._ownerDocument;if(o===u.html)if("script"===this._tag){var h=d.createElement("div"),w=this._currentElement.type;h.innerHTML="<"+w+">"+w+">",f=h.removeChild(h.firstChild)}else f=p.is?d.createElement(this._currentElement.type,p.is):d.createElement(this._currentElement.type);else f=d.createElementNS(o,this._currentElement.type);m.precacheNode(this,f),this._flags|=O.hasCachedChildNodes,this._hostParent||c.setAttributeForRoot(f),this._updateDOMProperties(null,p,e);var _=s(f);this._createInitialChildren(e,p,r,_),l=_}else{var C=this._createOpenTagMarkupAndPutListeners(e,p),x=this._createContentMarkup(e,p,r);l=!x&&V[this._tag]?C+"/>":C+">"+x+""+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(N,this),p.autoFocus&&e.getReactMountReady().enqueue(a.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(D,this),p.autoFocus&&e.getReactMountReady().enqueue(a.focusDOMComponent,this);break;case"select":case"button":p.autoFocus&&e.getReactMountReady().enqueue(a.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(L,this)}return l},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(null!=a)if(S.hasOwnProperty(r))a&&M(this,r,a,e);else{r===A&&(a&&(a=this._previousStyleCopy=o({},t.style)),a=i.createMarkupForStyles(a,this));var s=null;null!=this._tag&&K(this._tag,t)?I.hasOwnProperty(r)||(s=c.createMarkupForCustomAttribute(r,a)):s=c.createMarkupForProperty(r,a),s&&(n+=" "+s)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+c.createMarkupForRoot()),n+=" "+c.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var a=P[typeof t.children]?t.children:null,i=null!=a?null:t.children;null!=a?r=C(a):null!=i&&(r=this.mountChildren(i,e,n).join(""))}return H[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&s.queueHTML(r,o.__html);else{var a=P[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)""!==a&&s.queueText(r,a);else if(null!=i)for(var u=this.mountChildren(i,e,n),l=0;l{"use strict";e.exports={hasCachedChildNodes:1}},8300:(e,t,n)=>{"use strict";var r=n(7043),o=n(9679),a=n(2143),i=(n(3759),o.ID_ATTRIBUTE_NAME),s=a,u="__reactInternalInstance$"+Math.random().toString(36).slice(2);function l(e,t){return 1===e.nodeType&&e.getAttribute(i)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function c(e){for(var t;t=e._renderedComponent;)e=t;return e}function p(e,t){var n=c(e);n._hostNode=t,t[u]=n}function f(e,t){if(!(e._flags&s.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var a in n)if(n.hasOwnProperty(a)){var i=n[a],u=c(i)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(l(o,u)){p(i,o);continue e}r("32",u)}}e._flags|=s.hasCachedChildNodes}}function d(e){if(e[u])return e[u];for(var t,n,r=[];!e[u];){if(r.push(e),!e.parentNode)return null;e=e.parentNode}for(;e&&(n=e[u]);e=r.pop())t=n,r.length&&f(n,e);return t}var h={getClosestInstanceFromNode:d,getInstanceFromNode:function(e){var t=d(e);return null!=t&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(void 0===e._hostNode&&r("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||r("34"),e=e._hostParent;for(;t.length;e=t.pop())f(e,e._hostNode);return e._hostNode},precacheChildNodes:f,precacheNode:p,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[u],e._hostNode=null)}};e.exports=h},2730:(e,t,n)=>{"use strict";n(6663),e.exports=function(e,t){return{_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?9===t.nodeType?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null}}},5754:(e,t,n)=>{"use strict";var r=n(7418),o=n(725),a=n(8300),i=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(i.prototype,{mountComponent:function(e,t,n,r){var i=n._idCounter++;this._domID=i,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var u=n._ownerDocument.createComment(s);return a.precacheNode(this,u),o(u)}return e.renderToStaticMarkup?"":"\x3c!--"+s+"--\x3e"},receiveComponent:function(){},getHostNode:function(){return a.getNodeFromInstance(this)},unmountComponent:function(){a.uncacheNode(this)}}),e.exports=i},2456:e=>{"use strict";e.exports={useCreateElement:!0,useFiber:!1}},465:(e,t,n)=>{"use strict";var r=n(5211),o=n(8300),a={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=a},544:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(7354),i=n(4378),s=n(8300),u=n(8264);function l(){this._rootNodeID&&p.updateWrapper(this)}function c(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}n(3759),n(3620);var p={getHostProps:function(e,t){var n=i.getValue(t),r=i.getChecked(t);return o({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,listeners:null,onChange:f.bind(e),controlled:c(t)}},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&a.setValueForProperty(s.getNodeFromInstance(e),"checked",n||!1);var r=s.getNodeFromInstance(e),o=i.getValue(t);if(null!=o)if(0===o&&""===r.value)r.value="0";else if("number"===t.type){var u=parseFloat(r.value,10)||0;(o!=u||o==u&&r.value!=o)&&(r.value=""+o)}else r.value!==""+o&&(r.value=""+o);else null==t.value&&null!=t.defaultValue&&r.defaultValue!==""+t.defaultValue&&(r.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(r.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}};function f(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);u.asap(l,this);var o=t.name;if("radio"===t.type&&null!=o){for(var a=s.getNodeFromInstance(this),c=a;c.parentNode;)c=c.parentNode;for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),f=0;f{"use strict";var r=n(7418),o=n(8954),a=n(8300),i=n(8038),s=(n(3620),!1);function u(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:s||(s=!0))})),t}var l={mountWrapper:function(e,t,n){var r=null;if(null!=n){var o=n;"optgroup"===o._tag&&(o=o._hostParent),null!=o&&"select"===o._tag&&(r=i.getSelectValueContext(o))}var a,s=null;if(null!=r)if(a=null!=t.value?t.value+"":u(t.children),s=!1,Array.isArray(r)){for(var l=0;l{"use strict";var r=n(7418),o=n(4378),a=n(8300),i=n(8264),s=(n(3620),!1);function u(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=o.getValue(e);null!=t&&l(this,Boolean(e.multiple),t)}}function l(e,t,n){var r,o,i=a.getNodeFromInstance(e).options;if(t){for(r={},o=0;o{"use strict";var r=n(6508),o=n(4786),a=n(8519);function i(e,t,n,r){return e===n&&t===r}var s=r.canUseDOM&&"selection"in document&&!("getSelection"in window),u={getOffsets:s?function(e){var t=document.selection.createRange(),n=t.text.length,r=t.duplicate();r.moveToElementText(e),r.setEndPoint("EndToStart",t);var o=r.text.length;return{start:o,end:o+n}}:function(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=i(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var c=i(l.startContainer,l.startOffset,l.endContainer,l.endOffset)?0:l.toString().length,p=c+u,f=document.createRange();f.setStart(n,r),f.setEnd(o,a);var d=f.collapsed;return{start:d?p:c,end:d?c:p}},setOffsets:s?function(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?r=n=t.start:t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}:function(e,t){if(window.getSelection){var n=window.getSelection(),r=e[a()].length,i=Math.min(t.start,r),s=void 0===t.end?i:Math.min(t.end,r);if(!n.extend&&i>s){var u=s;s=i,i=u}var l=o(e,i),c=o(e,s);if(l&&c){var p=document.createRange();p.setStart(l.node,l.offset),n.removeAllRanges(),i>s?(n.addRange(p),n.extend(c.node,c.offset)):(p.setEnd(c.node,c.offset),n.addRange(p))}}}};e.exports=u},9306:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(5211),i=n(725),s=n(8300),u=n(1467),l=(n(3759),n(6663),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,a=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var l=n._ownerDocument,c=l.createComment(a),p=l.createComment(" /react-text "),f=i(l.createDocumentFragment());return i.queueChild(f,i(c)),this._stringText&&i.queueChild(f,i(l.createTextNode(this._stringText))),i.queueChild(f,i(p)),s.precacheNode(this,c),this._closingComment=p,f}var d=u(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+a+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();a.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this).nextSibling;;){if(null==t&&r("67",this._domID),8===t.nodeType&&" /react-text "===t.nodeValue){this._closingComment=t;break}t=t.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},7281:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(4378),i=n(8300),s=n(8264);function u(){this._rootNodeID&&l.updateWrapper(this)}n(3759),n(3620);var l={getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){var n=a.getValue(t),o=n;if(null==n){var i=t.defaultValue,s=t.children;null!=s&&(null!=i&&r("92"),Array.isArray(s)&&(s.length<=1||r("93"),s=s[0]),i=""+s),null==i&&(i=""),o=i}e._wrapperState={initialValue:""+o,listeners:null,onChange:c.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getNodeFromInstance(e),r=a.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=i.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}};function c(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return s.asap(u,this),n}e.exports=l},1042:(e,t,n)=>{"use strict";var r=n(7043);function o(e,t){"_hostNode"in e||r("33"),"_hostNode"in t||r("33");for(var n=0,o=e;o;o=o._hostParent)n++;for(var a=0,i=t;i;i=i._hostParent)a++;for(;n-a>0;)e=e._hostParent,n--;for(;a-n>0;)t=t._hostParent,a--;for(var s=n;s--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}n(3759),e.exports={isAncestor:function(e,t){"_hostNode"in e||r("35"),"_hostNode"in t||r("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1},getLowestCommonAncestor:o,getParentInstance:function(e){return"_hostNode"in e||r("36"),e._hostParent},traverseTwoPhase:function(e,t,n){for(var r,o=[];e;)o.push(e),e=e._hostParent;for(r=o.length;r-- >0;)t(o[r],"captured",n);for(r=0;r0;)n(l[u],"captured",a)}}},9540:(e,t,n)=>{"use strict";var r=n(7418),o=n(8264),a=n(1628),i=n(139),s={initialize:i,close:function(){p.isBatchingUpdates=!1}},u=[{initialize:i,close:o.flushBatchedUpdates.bind(o)},s];function l(){this.reinitializeTransaction()}r(l.prototype,a,{getTransactionWrappers:function(){return u}});var c=new l,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,a){var i=p.isBatchingUpdates;return p.isBatchingUpdates=!0,i?e(t,n,r,o,a):c.perform(e,null,t,n,r,o,a)}};e.exports=p},9550:(e,t,n)=>{"use strict";var r=n(3847),o=n(5129),a=n(9148),i=n(9436),s=n(3672),u=n(9431),l=n(1145),c=n(3539),p=n(8300),f=n(5754),d=n(1042),h=n(9306),m=n(9540),y=n(5880),v=n(1082),g=n(1564),b=n(1936),w=n(3315),_=n(2274),C=!1;e.exports={inject:function(){C||(C=!0,v.EventEmitter.injectReactEventListener(y),v.EventPluginHub.injectEventPluginOrder(i),v.EventPluginUtils.injectComponentTree(p),v.EventPluginUtils.injectTreeTraversal(d),v.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:_,EnterLeaveEventPlugin:s,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:o}),v.HostComponent.injectGenericComponentClass(c),v.HostComponent.injectTextComponentClass(h),v.DOMProperty.injectDOMPropertyConfig(r),v.DOMProperty.injectDOMPropertyConfig(u),v.DOMProperty.injectDOMPropertyConfig(b),v.EmptyComponent.injectEmptyComponentFactory((function(e){return new f(e)})),v.Updates.injectReconcileTransaction(g),v.Updates.injectBatchingStrategy(m),v.Component.injectEnvironment(l))}}},9657:e=>{"use strict";var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=t},2587:e=>{"use strict";var t,n={injectEmptyComponentFactory:function(e){t=e}},r={create:function(e){return t(e)}};r.injection=n,e.exports=r},1554:e=>{"use strict";var t=null;function n(e,n,r){try{n(r)}catch(e){null===t&&(t=e)}}var r={invokeGuardedCallback:n,invokeGuardedCallbackWithCatch:n,rethrowCaughtError:function(){if(t){var e=t;throw t=null,e}}};e.exports=r},3611:(e,t,n)=>{"use strict";var r=n(6076),o={handleTopLevel:function(e,t,n,o){var a;a=r.extractEvents(e,t,n,o),r.enqueueEvents(a),r.processEventQueue(!1)}};e.exports=o},5880:(e,t,n)=>{"use strict";var r=n(7418),o=n(8628),a=n(6508),i=n(483),s=n(8300),u=n(8264),l=n(6979),c=n(787);function p(e){for(;e._hostParent;)e=e._hostParent;var t=s.getNodeFromInstance(e).parentNode;return s.getClosestInstanceFromNode(t)}function f(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function d(e){var t=l(e.nativeEvent),n=s.getClosestInstanceFromNode(t),r=n;do{e.ancestors.push(r),r=r&&p(r)}while(r);for(var o=0;o{"use strict";e.exports={logTopLevelRenders:!1}},4986:(e,t,n)=>{"use strict";var r=n(7043),o=(n(3759),null),a=null,i={createInternalComponent:function(e){return o||r("111",e.type),new o(e)},createInstanceForText:function(e){return new a(e)},isTextComponent:function(e){return e instanceof a},injection:{injectGenericComponentClass:function(e){o=e},injectTextComponentClass:function(e){a=e}}};e.exports=i},1082:(e,t,n)=>{"use strict";var r=n(9679),o=n(6076),a=n(6162),i=n(2766),s=n(2587),u=n(9764),l=n(4986),c=n(8264),p={Component:i.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventPluginUtils:a.injection,EventEmitter:u.injection,HostComponent:l.injection,Updates:c.injection};e.exports=p},2326:(e,t,n)=>{"use strict";var r=n(1934),o=n(7476),a=n(8387),i=n(1003),s={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=i();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t,n=i(),r=e.focusedElem,u=e.selectionRange;n!==r&&(t=r,o(document.documentElement,t))&&(s.hasSelectionCapabilities(r)&&s.setSelection(r,u),a(r))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=r.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,o=t.end;if(void 0===o&&(o=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(o,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",o-n),a.select()}else r.setOffsets(e,t)}};e.exports=s},1806:e=>{"use strict";e.exports={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}}},1645:e=>{"use strict";e.exports={debugTool:null}},6145:(e,t,n)=>{"use strict";var r=n(6672),o=/\/?>/,a=/^<\!\-\-/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return a.test(e)?e:e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=i},6413:(e,t,n)=>{"use strict";var r=n(7043),o=n(725),a=n(9679),i=n(8954),s=n(9764),u=(n(4066),n(8300)),l=n(2730),c=n(2456),p=n(3383),f=n(1806),d=(n(1645),n(6145)),h=n(2312),m=n(2229),y=n(8264),v=n(3677),g=n(2109),b=(n(3759),n(492)),w=n(2154),_=(n(3620),a.ID_ATTRIBUTE_NAME),C=a.ROOT_ATTRIBUTE_NAME,x={};function O(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function E(e,t,n,r,o){var a;if(p.logTopLevelRenders){var i=e._currentElement.props.child.type;a="React mount: "+("string"==typeof i?i:i.displayName||i.name),console.time(a)}var s=h.mountComponent(e,n,null,l(e,t),o,0);a&&console.timeEnd(a),e._renderedComponent._topLevelWrapper=e,M._mountImageIntoNode(s,t,e,r,n)}function k(e,t,n,r){var o=y.ReactReconcileTransaction.getPooled(!n&&c.useCreateElement);o.perform(E,null,e,t,o,n,r),y.ReactReconcileTransaction.release(o)}function T(e,t,n){for(h.unmountComponent(e,n),9===t.nodeType&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function S(e){var t=O(e);if(t){var n=u.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function P(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function A(e){var t=function(e){var t=O(e),n=t&&u.getInstanceFromNode(t);return n&&!n._hostParent?n:null}(e);return t?t._hostContainerInfo._topLevelWrapper:null}var I=1,j=function(){this.rootID=I++};j.prototype.isReactComponent={},j.prototype.render=function(){return this.props.child},j.isReactTopLevelWrapper=!0;var M={TopLevelWrapper:j,_instancesByReactRootID:x,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return M.scrollMonitor(r,(function(){m.enqueueElementInternal(e,t,n),o&&m.enqueueCallbackInternal(e,o)})),e},_renderNewRootComponent:function(e,t,n,o){P(t)||r("37"),s.ensureScrollValueMonitoring();var a=g(e,!1);y.batchedUpdates(k,a,t,n,o);var i=a._instance.rootID;return x[i]=a,a},renderSubtreeIntoContainer:function(e,t,n,o){return null!=e&&f.has(e)||r("38"),M._renderSubtreeIntoContainer(e,t,n,o)},_renderSubtreeIntoContainer:function(e,t,n,o){m.validateCallback(o,"ReactDOM.render"),i.isValidElement(t)||r("39","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or .":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=i.createElement(j,{child:t});if(e){var u=f.get(e);a=u._processChildContext(u._context)}else a=v;var l=A(n);if(l){var c=l._currentElement.props.child;if(w(c,t)){var p=l._renderedComponent.getPublicInstance(),d=o&&function(){o.call(p)};return M._updateRootComponent(l,s,a,n,d),p}M.unmountComponentAtNode(n)}var h,y=O(n),g=y&&!(!(h=y).getAttribute||!h.getAttribute(_)),b=S(n),C=g&&!l&&!b,x=M._renderNewRootComponent(s,n,C,a)._renderedComponent.getPublicInstance();return o&&o.call(x),x},render:function(e,t,n){return M._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){P(e)||r("40");var t=A(e);return t?(delete x[t._instance.rootID],y.batchedUpdates(T,t,e,!1),!0):(S(e),1===e.nodeType&&e.hasAttribute(C),!1)},_mountImageIntoNode:function(e,t,n,a,i){if(P(t)||r("41"),a){var s=O(t);if(d.canReuseMarkup(e,s))return void u.precacheNode(n,s);var l=s.getAttribute(d.CHECKSUM_ATTR_NAME);s.removeAttribute(d.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(d.CHECKSUM_ATTR_NAME,l);var p=e,f=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r{"use strict";var r=n(7043),o=n(2766),a=(n(1806),n(1645),n(4066),n(2312)),i=n(8941),s=(n(139),n(2295));function u(e,t){return t&&(e=e||[]).push(t),e}function l(e,t){o.processChildrenUpdates(e,t)}n(3759);var c={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return i.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,a){var u;return u=s(t,0),i.updateChildren(e,u,n,r,o,this,this._hostContainerInfo,a,0),u},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var s in r)if(r.hasOwnProperty(s)){var u=r[s],l=a.mountComponent(u,t,this,this._hostContainerInfo,n,0);u._mountIndex=i++,o.push(l)}return o},updateTextContent:function(e){var t,n=this._renderedChildren;for(var o in i.unmountChildren(n,!1),n)n.hasOwnProperty(o)&&r("118");l(this,[(t=e,{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null})])},updateMarkup:function(e){var t,n=this._renderedChildren;for(var o in i.unmountChildren(n,!1),n)n.hasOwnProperty(o)&&r("118");l(this,[(t=e,{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null})])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],s=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(s||r){var c,p=null,f=0,d=0,h=0,m=null;for(c in s)if(s.hasOwnProperty(c)){var y=r&&r[c],v=s[c];y===v?(p=u(p,this.moveChild(y,m,f,d)),d=Math.max(y._mountIndex,d),y._mountIndex=f):(y&&(d=Math.max(y._mountIndex,d)),p=u(p,this._mountChildAtIndex(v,i[h],m,f,t,n)),h++),f++,m=a.getHostNode(v)}for(c in o)o.hasOwnProperty(c)&&(p=u(p,this._unmountChild(r[c],o[c])));p&&l(this,p),this._renderedChildren=s}},unmountChildren:function(e){var t=this._renderedChildren;i.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex{"use strict";var r=n(7043),o=n(8954),a=(n(3759),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?a.EMPTY:o.isValidElement(e)?"function"==typeof e.type?a.COMPOSITE:a.HOST:void r("26",e)}});e.exports=a},555:(e,t,n)=>{"use strict";var r=n(7043);function o(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}n(3759);var a={addComponentAsRefTo:function(e,t,n){o(n)||r("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o(n)||r("120");var a=n.getPublicInstance();a&&a.refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=a},3390:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1564:(e,t,n)=>{"use strict";var r=n(7418),o=n(1008),a=n(483),i=n(9764),s=n(2326),u=(n(1645),n(1628)),l=n(2229),c=[{initialize:s.getSelectionInformation,close:s.restoreSelection},{initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},{initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}}];function p(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=e}var f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return l},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};r(p.prototype,u,f),a.addPoolingTo(p),e.exports=p},2312:(e,t,n)=>{"use strict";var r=n(2794);function o(){r.attachRefs(this,this._currentElement)}n(1645),n(3620);var a={mountComponent:function(e,t,n,r,a,i){var s=e.mountComponent(t,n,r,a,i);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(o,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){r.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=r.shouldUpdateRefs(i,t);s&&r.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(o,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}};e.exports=a},2794:(e,t,n)=>{"use strict";var r=n(555),o={attachRefs:function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&function(e,t,n){"function"==typeof e?e(t.getPublicInstance()):r.addComponentAsRefTo(t,e,n)}(n,e,t._owner)}},shouldUpdateRefs:function(e,t){var n=null,r=null;null!==e&&"object"==typeof e&&(n=e.ref,r=e._owner);var o=null,a=null;return null!==t&&"object"==typeof t&&(o=t.ref,a=t._owner),n!==o||"string"==typeof o&&a!==r},detachRefs:function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&function(e,t,n){"function"==typeof e?e(null):r.removeComponentAsRefFrom(t,e,n)}(n,e,t._owner)}}};e.exports=o},9642:(e,t,n)=>{"use strict";var r=n(7418),o=n(483),a=n(1628),i=(n(1645),n(2855)),s=[],u={enqueue:function(){}};function l(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new i(this)}var c={getTransactionWrappers:function(){return s},getReactMountReady:function(){return u},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};r(l.prototype,a,c),o.addPoolingTo(l),e.exports=l},2855:(e,t,n)=>{"use strict";var r=n(2229);n(3620);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&r.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()&&r.enqueueForceUpdate(e)},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()&&r.enqueueReplaceState(e,t)},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()&&r.enqueueSetState(e,t)},e}();e.exports=o},2229:(e,t,n)=>{"use strict";var r=n(7043),o=(n(4066),n(1806)),a=(n(1645),n(8264));function i(e){a.enqueueUpdate(e)}function s(e,t){return o.get(e)||null}n(3759),n(3620);var u={isMounted:function(e){var t=o.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){u.validateCallback(t,n);var r=s(e);if(!r)return null;r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],i(r)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],i(e)},enqueueForceUpdate:function(e){var t=s(e);t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(e,t,n){var r=s(e);r&&(r._pendingStateQueue=[t],r._pendingReplaceState=!0,null!=n&&(u.validateCallback(n,"replaceState"),r._pendingCallbacks?r._pendingCallbacks.push(n):r._pendingCallbacks=[n]),i(r))},enqueueSetState:function(e,t){var n=s(e);n&&((n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),i(n))},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,i(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&r("122",t,function(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}(e))}};e.exports=u},8264:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(1008),i=n(483),s=n(3383),u=n(2312),l=n(1628),c=n(3759),p=[],f=0,d=a.getPooled(),h=!1,m=null;function y(){C.ReactReconcileTransaction&&m||r("123")}var v=[{initialize:function(){this.dirtyComponentsLength=p.length},close:function(){this.dirtyComponentsLength!==p.length?(p.splice(0,this.dirtyComponentsLength),_()):p.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];function g(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=a.getPooled(),this.reconcileTransaction=C.ReactReconcileTransaction.getPooled(!0)}function b(e,t){return e._mountOrder-t._mountOrder}function w(e){var t=e.dirtyComponentsLength;t!==p.length&&r("124",t,p.length),p.sort(b),f++;for(var n=0;n{"use strict";e.exports="15.6.2"},1936:e=>{"use strict";var t="http://www.w3.org/1999/xlink",n="http://www.w3.org/XML/1998/namespace",r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:t,xlinkArcrole:t,xlinkHref:t,xlinkRole:t,xlinkShow:t,xlinkTitle:t,xlinkType:t,xmlBase:n,xmlLang:n,xmlSpace:n},DOMAttributeNames:{}};Object.keys(r).forEach((function(e){o.Properties[e]=0,r[e]&&(o.DOMAttributeNames[e]=r[e])})),e.exports=o},3315:(e,t,n)=>{"use strict";var r=n(7033),o=n(6508),a=n(8300),i=n(2326),s=n(2223),u=n(1003),l=n(2128),c=n(9303),p=o.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},d=null,h=null,m=null,y=!1,v=!1;function g(e,t){if(y||null==d||d!==u())return null;var n=function(e){if("selectionStart"in e&&i.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}(d);if(!m||!c(m,n)){m=n;var o=s.getPooled(f.select,h,e,t);return o.type="select",o.target=d,r.accumulateTwoPhaseDispatches(o),o}return null}var b={eventTypes:f,extractEvents:function(e,t,n,r){if(!v)return null;var o=t?a.getNodeFromInstance(t):window;switch(e){case"topFocus":(l(o)||"true"===o.contentEditable)&&(d=o,h=t,m=null);break;case"topBlur":d=null,h=null,m=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,g(n,r);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return g(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(v=!0)}};e.exports=b},2274:(e,t,n)=>{"use strict";var r=n(7043),o=n(8628),a=n(7033),i=n(8300),s=n(7882),u=n(4502),l=n(2223),c=n(2800),p=n(6639),f=n(5091),d=n(8794),h=n(6117),m=n(3586),y=n(7950),v=n(8026),g=n(139),b=n(930),w=(n(3759),{}),_={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach((function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};w[e]=o,_[r]=o}));var C={};function x(e){return"."+e._rootNodeID}function O(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var E={eventTypes:w,extractEvents:function(e,t,n,o){var i,g=_[e];if(!g)return null;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":i=l;break;case"topKeyPress":if(0===b(n))return null;case"topKeyDown":case"topKeyUp":i=p;break;case"topBlur":case"topFocus":i=c;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=f;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=d;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=h;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=s;break;case"topTransitionEnd":i=m;break;case"topScroll":i=y;break;case"topWheel":i=v;break;case"topCopy":case"topCut":case"topPaste":i=u}i||r("86",e);var w=i.getPooled(g,t,n,o);return a.accumulateTwoPhaseDispatches(w),w},didPutListener:function(e,t,n){if("onClick"===t&&!O(e._tag)){var r=x(e),a=i.getNodeFromInstance(e);C[r]||(C[r]=o.listen(a,"click",g))}},willDeleteListener:function(e,t){if("onClick"===t&&!O(e._tag)){var n=x(e);C[n].remove(),delete C[n]}}};e.exports=E},7882:(e,t,n)=>{"use strict";var r=n(2223);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{animationName:null,elapsedTime:null,pseudoElement:null}),e.exports=o},4502:(e,t,n)=>{"use strict";var r=n(2223),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};function a(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(a,o),e.exports=a},4230:(e,t,n)=>{"use strict";var r=n(2223);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{data:null}),e.exports=o},8794:(e,t,n)=>{"use strict";var r=n(5091);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{dataTransfer:null}),e.exports=o},2223:(e,t,n)=>{"use strict";var r=n(7418),o=n(483),a=n(139),i=(n(3620),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),s={type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function u(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=u?a.thatReturnsTrue:a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse,this}r(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n{"use strict";var r=n(7950);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{relatedTarget:null}),e.exports=o},1825:(e,t,n)=>{"use strict";var r=n(2223);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{data:null}),e.exports=o},6639:(e,t,n)=>{"use strict";var r=n(7950),o=n(930),a={key:n(482),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:n(6768),charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};function i(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(i,a),e.exports=i},5091:(e,t,n)=>{"use strict";var r=n(7950),o=n(1594),a={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:n(6768),button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};function i(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(i,a),e.exports=i},6117:(e,t,n)=>{"use strict";var r=n(7950),o={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:n(6768)};function a(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(a,o),e.exports=a},3586:(e,t,n)=>{"use strict";var r=n(2223);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{propertyName:null,elapsedTime:null,pseudoElement:null}),e.exports=o},7950:(e,t,n)=>{"use strict";var r=n(2223),o=n(6979),a={view:function(e){if(e.view)return e.view;var t=o(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};function i(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(i,a),e.exports=i},8026:(e,t,n)=>{"use strict";var r=n(5091);function o(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(o,{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}),e.exports=o},1628:(e,t,n)=>{"use strict";var r=n(7043),o=(n(3759),{}),a={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,a,i,s,u){var l,c;this.isInTransaction()&&r("27");try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,o,a,i,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n{"use strict";var t={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){t.currentScrollLeft=e.x,t.currentScrollTop=e.y}};e.exports=t},7015:(e,t,n)=>{"use strict";var r=n(7043);n(3759),e.exports=function(e,t){return null==t&&r("30"),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]}},6672:e=>{"use strict";var t=65521;e.exports=function(e){for(var n=1,r=0,o=0,a=e.length,i=-4&a;o{"use strict";e.exports=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,o)}))}:e}},6109:(e,t,n)=>{"use strict";var r=n(6993),o=(n(3620),r.isUnitlessNumber);e.exports=function(e,t,n,r){if(null==t||"boolean"==typeof t||""===t)return"";var a=isNaN(t);return r||a||0===t||o.hasOwnProperty(e)&&o[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}},1467:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){return"boolean"==typeof e||"number"==typeof e?""+e:function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var a="",i=0,s=0;for(i=o.index;i{"use strict";var r=n(7043),o=(n(4066),n(8300)),a=n(1806),i=n(3450);n(3759),n(3620),e.exports=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=a.get(e);if(t)return(t=i(t))?o.getNodeFromInstance(t):null;"function"==typeof e.render?r("44"):r("45",Object.keys(e))}},2295:(e,t,n)=>{"use strict";n(7143);var r=n(5505);function o(e,t,n,r){if(e&&"object"==typeof e){var o=e;void 0===o[n]&&null!=t&&(o[n]=t)}}n(3620),"undefined"!=typeof process&&process.env,e.exports=function(e,t){if(null==e)return e;var n={};return r(e,o,n),n}},1902:e=>{"use strict";e.exports=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}},930:e=>{"use strict";e.exports=function(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}},482:(e,t,n)=>{"use strict";var r=n(930),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={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"};e.exports=function(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=r(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}},6768:e=>{"use strict";var t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n(e){var n=this.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=t[e];return!!r&&!!n[r]}e.exports=function(e){return n}},6979:e=>{"use strict";e.exports=function(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}},3450:(e,t,n)=>{"use strict";var r=n(6432);e.exports=function(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}},6128:e=>{"use strict";var t="function"==typeof Symbol&&Symbol.iterator;e.exports=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}},4786:e=>{"use strict";function t(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function n(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}e.exports=function(e,r){for(var o=t(e),a=0,i=0;o;){if(3===o.nodeType){if(i=a+o.textContent.length,a<=r&&i>=r)return{node:o,offset:r-a};a=i}o=t(n(o))}}},8519:(e,t,n)=>{"use strict";var r=n(6508),o=null;e.exports=function(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}},4:(e,t,n)=>{"use strict";var r=n(6508);function o(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("Transition","TransitionEnd")},i={},s={};r.canUseDOM&&(s=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=function(e){if(i[e])return i[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in s)return i[e]=t[n];return""}},6868:(e,t,n)=>{"use strict";var r=n(8300);function o(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function a(e){return e._wrapperState.valueTracker}var i={_getTrackerFromNode:function(e){return a(r.getInstanceFromNode(e))},track:function(e){if(!a(e)){var t=r.getNodeFromInstance(e),n=o(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),s=""+t[n];t.hasOwnProperty(n)||"function"!=typeof i.get||"function"!=typeof i.set||(Object.defineProperty(t,n,{enumerable:i.enumerable,configurable:!0,get:function(){return i.get.call(this)},set:function(e){s=""+e,i.set.call(this,e)}}),function(e,t){e._wrapperState.valueTracker=t}(e,{getValue:function(){return s},setValue:function(e){s=""+e},stopTracking:function(){!function(e){e._wrapperState.valueTracker=null}(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=a(e);if(!t)return i.track(e),!0;var n,s,u=t.getValue(),l=((n=r.getNodeFromInstance(e))&&(s=o(n)?""+n.checked:n.value),s);return l!==u&&(t.setValue(l),!0)},stopTracking:function(e){var t=a(e);t&&t.stopTracking()}};e.exports=i},2109:(e,t,n)=>{"use strict";var r=n(7043),o=n(7418),a=n(2384),i=n(2587),s=n(4986),u=(n(1741),n(3759),n(3620),function(e){this.construct(e)});function l(e,t){var n;if(null===e||!1===e)n=i.create(l);else if("object"==typeof e){var o=e,a=o.type;if("function"!=typeof a&&"string"!=typeof a){var c="";c+=function(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}(o._owner),r("130",null==a?a:typeof a,c)}"string"==typeof o.type?n=s.createInternalComponent(o):function(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}(o.type)?(n=new o.type(o)).getHostNode||(n.getHostNode=n.getNativeNode):n=new u(o)}else"string"==typeof e||"number"==typeof e?n=s.createInstanceForText(e):r("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}o(u.prototype,a,{_instantiateReactComponent:l}),e.exports=l},8964:(e,t,n)=>{"use strict";var r,o=n(6508);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var i=document.createElement("div");i.setAttribute(n,"return;"),a="function"==typeof i[n]}return!a&&r&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},2128:e=>{"use strict";var t={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};e.exports=function(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!t[e.type]:"textarea"===n}},1509:(e,t,n)=>{"use strict";var r=n(1467);e.exports=function(e){return'"'+r(e)+'"'}},7043:e=>{"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r{"use strict";var r=n(6413);e.exports=r.renderSubtreeIntoContainer},492:(e,t,n)=>{"use strict";var r,o=n(6508),a=n(8066),i=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(7842)((function(e,t){if(e.namespaceURI!==a.svg||"innerHTML"in e)e.innerHTML=t;else{(r=r||document.createElement("div")).innerHTML="";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}}));if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},1323:(e,t,n)=>{"use strict";var r=n(6508),o=n(1467),a=n(492),i=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){3!==e.nodeType?a(e,o(t)):e.nodeValue=t})),e.exports=i},2154:e=>{"use strict";e.exports=function(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}},5505:(e,t,n)=>{"use strict";var r=n(7043),o=(n(4066),n(9657)),a=n(6128),i=(n(3759),n(7143));function s(e,t){return e&&"object"==typeof e&&null!=e.key?i.escape(e.key):t.toString(36)}function u(e,t,n,l){var c,p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===o)return n(l,e,""===t?"."+s(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h{"use strict";n(7418);var r=n(139),o=(n(3620),r);e.exports=o},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case a:case s:case i:case d:return e;default:switch(e=e&&e.$$typeof){case l:case f:case y:case m:case u:return e;default:return t}}case o:return t}}}function C(e){return _(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return C(e)||_(e)===c},t.isConcurrentMode=C,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===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},9983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null,n.moveFromContentToOverlay=null},n.handleOverlayOnMouseUp=function(){null===n.moveFromContentToOverlay&&(n.shouldClose=!1),n.props.shouldCloseOnOverlayClick&&(n.shouldClose=!0)},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault(),n.moveFromContentToOverlay=!1},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1,n.moveFromContentToOverlay=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.ariaAttributes=function(e){return Object.keys(e).reduce((function(t,n){return t["aria-"+n]=e[n],t}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=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),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())}},{key:"componentWillReceiveProps",value:function(e){!this.props.isOpen&&e.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!e.isOpen&&this.close()}},{key:"componentDidUpdate",value:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))}},{key:"componentWillUnmount",value:function(){this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.bodyOpenClassName;d.add(r),n&&p.hide(t)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.overlayClassName,o=e.defaultStyles,a=t?{}:o.content,i=n?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:r({},i,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown,onMouseUp:this.handleOverlayOnMouseUp,"aria-modal":"true"},s.default.createElement("div",r({ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",t),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.ariaAttributes(this.props.aria||{})),this.props.children))}}]),t}(i.Component);g.defaultProps={style:{overlay:{},content:{}}},g.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(h.default),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool},t.default=g,e.exports=t.default},7149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=i,t.setElement=function(e){var t=e;if("string"==typeof t){var n=document.querySelectorAll(t);i(n,t),t="length"in n?n[0]:n}return a=t||a},t.validateElement=s,t.hide=function(e){s(e)&&(e||a).setAttribute("aria-hidden","true")},t.show=function(e){s(e)&&(e||a).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){a=null},t.resetForTesting=function(){a=null};var r,o=(r=n(670))&&r.__esModule?r:{default:r},a=null;function i(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){return!(!e&&!a&&((0,o.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))}},8486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e){e.split(" ").map(r.add).forEach((function(e){return document.body.classList.add(e)}))},t.remove=function(e){var t=r.get();e.split(" ").map(r.remove).filter((function(e){return 0===t[e]})).forEach((function(e){return document.body.classList.remove(e)}))};var r=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(989))},9685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=u,t.handleFocus=l,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=null;try{return void(0!==a.length&&(e=a.pop()).focus())}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",l,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",l))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",l)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",l))};var r,o=(r=n(7845))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function u(){s=!0}function l(){if(s){if(s=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},989:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.get=function(){return n},t.add=function(e){return n[e]||(n[e]=0),n[e]+=1,e},t.remove=function(e){return n[e]&&(n[e]-=1),e},t.totalCount=function(){return Object.keys(n).reduce((function(e,t){return e+n[t]}),0)};var n={}},1112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,o=((r=n(8875))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM,t.default=a},8338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r,a=t.shiftKey,i=n[0],s=n[n.length-1];if(e!==document.activeElement){if(s!==document.activeElement||a||(r=i),i===document.activeElement&&a&&(r=s),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var l=n.indexOf(document.activeElement);l>-1&&(l+=a?-1:1),t.preventDefault(),n[l].focus()}}}else t.preventDefault()};var r,o=(r=n(7845))&&r.__esModule?r:{default:r};e.exports=t.default},7845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(o)};var n=/input|select|textarea|button|object/;function r(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"):"none"==n.getPropertyValue("display")}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&function(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(r(t))return!1;t=t.parentNode}return!0}(e)}(e,!o)}e.exports=t.default},3253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(9983))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},7974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>f,connect:()=>X,connectAdvanced:()=>P,createProvider:()=>p});var r=n(7588),o=n(5697),a=n.n(o),i=a().shape({trySubscribe:a().func.isRequired,tryUnsubscribe:a().func.isRequired,notifyNestedSubs:a().func.isRequired,isSubscribed:a().func.isRequired}),s=a().shape({subscribe:a().func.isRequired,dispatch:a().func.isRequired,getState:a().func.isRequired});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 c(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 p(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],o=n||t+"Subscription",p=function(e){function n(r,o){u(this,n);var a=l(this,e.call(this,r,o));return a[t]=r.store,a}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[o]=null,e},n.prototype.render=function(){return r.Children.only(this.props.children)},n}(r.Component);return p.propTypes={store:s.isRequired,children:a().element.isRequired},p.childContextTypes=((e={})[t]=s.isRequired,e[o]=i,e),p}const f=p();var d=n(8679),h=n.n(d),m=n(1143),y=n.n(m),v=null,g={notify:function(){}},b=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=g}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=v,e=v},notify:function(){for(var n=e=t,r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var E=0,k={};function T(){}function S(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function P(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=o.methodName,c=void 0===l?"connectAdvanced":l,p=o.renderCountProp,f=void 0===p?void 0:p,d=o.shouldHandleStateChanges,m=void 0===d||d,v=o.storeKey,g=void 0===v?"store":v,P=o.withRef,A=void 0!==P&&P,I=O(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),j=g+"Subscription",M=E++,R=((t={})[g]=s,t[j]=i,t),N=((n={})[j]=i,n);return function(t){y()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=u(n),a=w({},I,{getDisplayName:u,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:g,withRef:A,displayName:o,wrappedComponentName:n,WrappedComponent:t}),i=function(n){function i(e,t){_(this,i);var r=C(this,n.call(this,e,t));return r.version=M,r.state={},r.renderCount=0,r.store=e[g]||t[g],r.propsMode=Boolean(e[g]),r.setWrappedInstance=r.setWrappedInstance.bind(r),y()(r.store,'Could not find "'+g+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+g+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return x(i,n),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[j]=t||this.context[j],e},i.prototype.componentDidMount=function(){m&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=T,this.store=null,this.selector.run=T,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return y()(A,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=S(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(m){var e=(this.propsMode?this.props:this.context)[j];this.subscription=new b(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(k)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(A||f||this.propsMode&&this.subscription))return e;var t=w({},e);return A&&(t.ref=this.setWrappedInstance),f&&(t[f]=this.renderCount++),this.propsMode&&this.subscription&&(t[j]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,r.createElement)(t,this.addExtraProps(e.props))},i}(r.Component);return i.WrappedComponent=t,i.displayName=o,i.childContextTypes=N,i.contextTypes=R,i.propTypes=R,h()(i,t)}}var A=Object.prototype.hasOwnProperty;function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function j(e,t){if(I(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(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=n(e,a),s=r(e,a),u=o(e,a);return(a.pure?H:V)(i,s,u,e,a)}var q=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function Y(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function K(e,t){return e===t}const X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?P:t,r=e.mapStateToPropsFactories,o=void 0===r?U:r,a=e.mapDispatchToPropsFactories,i=void 0===a?L:a,s=e.mergePropsFactories,u=void 0===s?W:s,l=e.selectorFactory,c=void 0===l?z:l;return function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=a.pure,l=void 0===s||s,p=a.areStatesEqual,f=void 0===p?K:p,d=a.areOwnPropsEqual,h=void 0===d?j:d,m=a.areStatePropsEqual,y=void 0===m?j:m,v=a.areMergedPropsEqual,g=void 0===v?j:v,b=G(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=Y(e,o,"mapStateToProps"),_=Y(t,i,"mapDispatchToProps"),C=Y(r,u,"mergeProps");return n(c,q({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:_,initMergeProps:C,pure:l,areStatesEqual:f,areOwnPropsEqual:h,areStatePropsEqual:y,areMergedPropsEqual:g},b))}}()},8474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-r.props.bottomOffset;n=(r.props.relative?a.scrollHeight-a.scrollTop:n)-u;var f=p?{position:"fixed",top:l>0?r.props.relative?a.offsetTop-a.offsetParent.scrollTop:0:l,left:s.left,width:s.width}:{};r.props.disableHardwareAcceleration||(f.transform="translateZ(0)"),r.setState({isSticky:p,wasSticky:c,distanceFromTop:t,distanceFromBottom:n,calculatedHeight:u,style:f})},c(r,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:"componentWillMount",value:function(){if(!this.context.subscribe)throw new TypeError("Expected Sticky to be mounted within StickyContainer");this.context.subscribe(this.handleContainerEvent)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.handleContainerEvent)}},{key:"componentDidUpdate",value:function(){this.placeholder.style.paddingBottom=this.props.disableCompensation?0:(this.state.isSticky?this.state.calculatedHeight:0)+"px"}},{key:"render",value:function(){var e=this,t=a.default.cloneElement(this.props.children({isSticky:this.state.isSticky,wasSticky:this.state.wasSticky,distanceFromTop:this.state.distanceFromTop,distanceFromBottom:this.state.distanceFromBottom,calculatedHeight:this.state.calculatedHeight,style:this.state.style}),{ref:function(t){e.content=i.default.findDOMNode(t)}});return a.default.createElement("div",null,a.default.createElement("div",{ref:function(t){return e.placeholder=t}}),t)}}]),t}(o.Component);p.propTypes={topOffset:s.default.number,bottomOffset:s.default.number,relative:s.default.bool,children:s.default.func.isRequired},p.defaultProps={relative:!1,topOffset:0,bottomOffset:0,disableCompensation:!1,disableHardwareAcceleration:!1},p.contextTypes={subscribe:s.default.func,unsubscribe:s.default.func,getParent:s.default.func},t.default=p},8439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StickyContainer=t.Sticky=void 0;var r=a(n(8579)),o=a(n(8474));function a(e){return e&&e.__esModule?e:{default:e}}t.Sticky=r.default,t.StickyContainer=o.default,t.default=r.default},5635:function(e,t,n){var r;e.exports=(r=n(7588),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(12)},function(e,t,n){e.exports=n(17)()},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-o)/1e6},r=t.hrtime,n=function(){var e;return 1e9*(e=r())[0]+e[1]},o=n()):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(t,n(9))},function(e,t,n){(function(t){for(var r=n(19),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",s=o["request"+i],u=o["cancel"+i]||o["cancelRequest"+i],l=0;!s&&l1)for(var n=1;n10*h&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();var a=(r.accumulatedTime-Math.floor(r.accumulatedTime/h)*h)/h,i=Math.floor(r.accumulatedTime/h),s={},c={},f={},d={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var y=t[m];if("number"==typeof y)f[m]=y,d[m]=0,s[m]=y,c[m]=0;else{for(var v=r.state.lastIdealStyle[m],g=r.state.lastIdealVelocity[m],b=0;b10*m&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var i=(r.accumulatedTime-Math.floor(r.accumulatedTime/m)*m)/m,s=Math.floor(r.accumulatedTime/m),u=[],p=[],f=[],d=[],h=0;h10*g&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var l=(r.accumulatedTime-Math.floor(r.accumulatedTime/g)*g)/g,c=Math.floor(r.accumulatedTime/g),f=i(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,n,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),h=f[0],m=f[1],y=f[2],v=f[3],b=f[4],w=0;wr[c])return-1;if(o>a[c]&&ur[c])return 1;if(i>a[c]&&s{e.exports=function(e,t,n){var r=e.direction,o=e.value;switch(r){case"top":return n.top+ot.bottom&&n.leftt.right;case"left":return n.left+ot.bottom&&n.topt.right;case"bottom":return n.bottom-o>t.bottom&&n.leftt.right&&n.topt.right&&n.leftt.bottom}}},1529:(e,t,n)=>{"use strict";var r=n(7588),o=n(3935),a=n(5697),i=n(2555),s=n(4457),u=a.any;"undefined"!=typeof window&&(u=a.instanceOf(window.Element)),e.exports=i({displayName:"VisibilitySensor",propTypes:{onChange:a.func,active:a.bool,partialVisibility:a.oneOfType([a.bool,a.oneOf(["top","right","bottom","left"])]),delayedCall:a.bool,offset:a.oneOfType([a.shape({top:a.number,left:a.number,bottom:a.number,right:a.number}),a.shape({direction:a.oneOf(["top","right","bottom","left"]),value:a.number})]),scrollCheck:a.bool,scrollDelay:a.number,scrollThrottle:a.number,resizeCheck:a.bool,resizeDelay:a.number,resizeThrottle:a.number,intervalCheck:a.bool,intervalDelay:a.number,containment:u,children:a.oneOfType([a.element,a.func]),minTopValue:a.number},getDefaultProps:function(){return{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.createElement("span")}},getInitialState:function(){return{isVisible:null,visibilityRect:{}}},componentDidMount:function(){this.node=o.findDOMNode(this),this.props.active&&this.startWatching()},componentWillUnmount:function(){this.stopWatching()},componentWillReceiveProps:function(e){e.active&&!this.props.active?(this.setState(this.getInitialState()),this.startWatching()):e.active||this.stopWatching()},getContainer:function(){return this.props.containment||window},addEventListener:function(e,t,n,r){var o;this.debounceCheck||(this.debounceCheck={});var a=function(){o=null,this.check()}.bind(this),i={target:e,fn:r>-1?function(){o||(o=setTimeout(a,r||0))}:function(){clearTimeout(o),o=setTimeout(a,n||0)},getLastTimeout:function(){return o}};e.addEventListener(t,i.fn),this.debounceCheck[t]=i},startWatching:function(){this.debounceCheck||this.interval||(this.props.intervalCheck&&(this.interval=setInterval(this.check,this.props.intervalDelay)),this.props.scrollCheck&&this.addEventListener(this.getContainer(),"scroll",this.props.scrollDelay,this.props.scrollThrottle),this.props.resizeCheck&&this.addEventListener(window,"resize",this.props.resizeDelay,this.props.resizeThrottle),!this.props.delayedCall&&this.check())},stopWatching:function(){if(this.debounceCheck)for(var e in this.debounceCheck)if(this.debounceCheck.hasOwnProperty(e)){var t=this.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),this.debounceCheck[e]=null}this.debounceCheck=null,this.interval&&(this.interval=clearInterval(this.interval))},check:function(){var e,t,n=this.node;if(!n)return this.state;if(e=n.getBoundingClientRect(),this.props.containment){var r=this.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var o=this.props.offset||{};"object"==typeof o&&(t.top+=o.top||0,t.left+=o.left||0,t.bottom-=o.bottom||0,t.right-=o.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},i=a.top&&a.left&&a.bottom&&a.right;if(this.props.partialVisibility){var u=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof this.props.partialVisibility&&(u=a[this.props.partialVisibility]),i=this.props.minTopValue?u&&e.top<=t.bottom-this.props.minTopValue:u}"string"==typeof o.direction&&"number"==typeof o.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",o.direction,o.value),i=s(o,e,t));var l=this.state;return this.state.isVisible!==i&&(l={isVisible:i,visibilityRect:a},this.setState(l),this.props.onChange&&this.props.onChange(i,a)),l},render:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.Children.only(this.props.children)}})},6037:e=>{"use strict";e.exports={escape:function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))},unescape:function(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,(function(e){return t[e]}))}}},3303:(e,t,n)=>{"use strict";var r=n(2317),o=(n(3759),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),a=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length{"use strict";var r=n(7418),o=n(7596),a=n(7196),i=n(8861),s=n(1506),u=n(5339),l=n(7268),c=n(7021),p=n(661),f=s.createElement,d=s.createFactory,h=s.cloneElement,m=r,y={Children:{map:a.map,forEach:a.forEach,count:a.count,toArray:a.toArray,only:p},Component:o.Component,PureComponent:o.PureComponent,createElement:f,cloneElement:h,isValidElement:s.isValidElement,PropTypes:u,createClass:c,createFactory:d,createMixin:function(e){return e},DOM:i,version:l,__spread:m};e.exports=y},7596:(e,t,n)=>{"use strict";var r=n(2317),o=n(7418),a=n(3662),i=(n(3545),n(3677));function s(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||a}function u(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||a}function l(){}n(3759),n(6365),s.prototype.isReactComponent={},s.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},l.prototype=s.prototype,u.prototype=new l,u.prototype.constructor=u,o(u.prototype,s.prototype),u.prototype.isPureReactComponent=!0,e.exports={Component:s,PureComponent:u}},7196:(e,t,n)=>{"use strict";var r=n(3303),o=n(1506),a=n(139),i=n(9898),s=r.twoArgumentPooler,u=r.fourArgumentPooler,l=/\/+/g;function c(e){return(""+e).replace(l,"$&/")}function p(e,t){this.func=e,this.context=t,this.count=0}function f(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function d(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function h(e,t,n){var r=e.result,i=e.keyPrefix,s=e.func,u=e.context,l=s.call(u,t,e.count++);Array.isArray(l)?m(l,r,n,a.thatReturnsArgument):null!=l&&(o.isValidElement(l)&&(l=o.cloneAndReplaceKey(l,i+(!l.key||t&&t.key===l.key?"":c(l.key)+"/")+n)),r.push(l))}function m(e,t,n,r,o){var a="";null!=n&&(a=c(n)+"/");var s=d.getPooled(t,a,r,o);i(e,h,s),d.release(s)}function y(e,t,n){return null}p.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},r.addPoolingTo(p,s),d.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},r.addPoolingTo(d,u);var v={forEach:function(e,t,n){if(null==e)return e;var r=p.getPooled(t,n);i(e,f,r),p.release(r)},map:function(e,t,n){if(null==e)return e;var r=[];return m(e,r,null,t,n),r},mapIntoWithKeyPrefixInternal:m,count:function(e,t){return i(e,y,null)},toArray:function(e){var t=[];return m(e,t,null,a.thatReturnsArgument),t}};e.exports=v},4066:e=>{"use strict";e.exports={current:null}},8861:(e,t,n)=>{"use strict";var r=n(1506).createFactory,o={a:r("a"),abbr:r("abbr"),address:r("address"),area:r("area"),article:r("article"),aside:r("aside"),audio:r("audio"),b:r("b"),base:r("base"),bdi:r("bdi"),bdo:r("bdo"),big:r("big"),blockquote:r("blockquote"),body:r("body"),br:r("br"),button:r("button"),canvas:r("canvas"),caption:r("caption"),cite:r("cite"),code:r("code"),col:r("col"),colgroup:r("colgroup"),data:r("data"),datalist:r("datalist"),dd:r("dd"),del:r("del"),details:r("details"),dfn:r("dfn"),dialog:r("dialog"),div:r("div"),dl:r("dl"),dt:r("dt"),em:r("em"),embed:r("embed"),fieldset:r("fieldset"),figcaption:r("figcaption"),figure:r("figure"),footer:r("footer"),form:r("form"),h1:r("h1"),h2:r("h2"),h3:r("h3"),h4:r("h4"),h5:r("h5"),h6:r("h6"),head:r("head"),header:r("header"),hgroup:r("hgroup"),hr:r("hr"),html:r("html"),i:r("i"),iframe:r("iframe"),img:r("img"),input:r("input"),ins:r("ins"),kbd:r("kbd"),keygen:r("keygen"),label:r("label"),legend:r("legend"),li:r("li"),link:r("link"),main:r("main"),map:r("map"),mark:r("mark"),menu:r("menu"),menuitem:r("menuitem"),meta:r("meta"),meter:r("meter"),nav:r("nav"),noscript:r("noscript"),object:r("object"),ol:r("ol"),optgroup:r("optgroup"),option:r("option"),output:r("output"),p:r("p"),param:r("param"),picture:r("picture"),pre:r("pre"),progress:r("progress"),q:r("q"),rp:r("rp"),rt:r("rt"),ruby:r("ruby"),s:r("s"),samp:r("samp"),script:r("script"),section:r("section"),select:r("select"),small:r("small"),source:r("source"),span:r("span"),strong:r("strong"),style:r("style"),sub:r("sub"),summary:r("summary"),sup:r("sup"),table:r("table"),tbody:r("tbody"),td:r("td"),textarea:r("textarea"),tfoot:r("tfoot"),th:r("th"),thead:r("thead"),time:r("time"),title:r("title"),tr:r("tr"),track:r("track"),u:r("u"),ul:r("ul"),var:r("var"),video:r("video"),wbr:r("wbr"),circle:r("circle"),clipPath:r("clipPath"),defs:r("defs"),ellipse:r("ellipse"),g:r("g"),image:r("image"),line:r("line"),linearGradient:r("linearGradient"),mask:r("mask"),path:r("path"),pattern:r("pattern"),polygon:r("polygon"),polyline:r("polyline"),radialGradient:r("radialGradient"),rect:r("rect"),stop:r("stop"),svg:r("svg"),text:r("text"),tspan:r("tspan")};e.exports=o},1506:(e,t,n)=>{"use strict";var r=n(7418),o=n(4066),a=(n(3620),n(3545),Object.prototype.hasOwnProperty),i=n(3936),s={key:!0,ref:!0,__self:!0,__source:!0};function u(e){return void 0!==e.ref}function l(e){return void 0!==e.key}var c=function(e,t,n,r,o,a,s){return{$$typeof:i,type:e,key:t,ref:n,props:s,_owner:a}};c.createElement=function(e,t,n){var r,i={},p=null,f=null;if(null!=t)for(r in u(t)&&(f=t.ref),l(t)&&(p=""+t.key),void 0===t.__self||t.__self,void 0===t.__source||t.__source,t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var h=Array(d),m=0;m1){for(var v=Array(y),g=0;g{"use strict";var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=t},3662:(e,t,n)=>{"use strict";n(3620);e.exports={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}}},5339:(e,t,n)=>{"use strict";var r=n(1506).isValidElement,o=n(7425);e.exports=o(r)},7268:e=>{"use strict";e.exports="15.7.0"},3545:e=>{"use strict";e.exports=!1},7021:(e,t,n)=>{"use strict";var r=n(7596).Component,o=n(1506).isValidElement,a=n(3662),i=n(6511);e.exports=i(r,o,a)},2183:e=>{"use strict";var t="function"==typeof Symbol&&Symbol.iterator;e.exports=function(e){var n=e&&(t&&e[t]||e["@@iterator"]);if("function"==typeof n)return n}},1741:e=>{"use strict";var t=1;e.exports=function(){return t++}},6365:e=>{"use strict";e.exports=function(){}},661:(e,t,n)=>{"use strict";var r=n(2317),o=n(1506);n(3759),e.exports=function(e){return o.isValidElement(e)||r("143"),e}},2317:e=>{"use strict";e.exports=function(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r{"use strict";var r=n(2317),o=(n(4066),n(3936)),a=n(2183),i=(n(3759),n(6037));function s(e,t){return e&&"object"==typeof e&&null!=e.key?i.escape(e.key):t.toString(36)}function u(e,t,n,l){var c,p=typeof e;if("undefined"!==p&&"boolean"!==p||(e=null),null===e||"string"===p||"number"===p||"object"===p&&e.$$typeof===o)return n(l,e,""===t?"."+s(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var h=0;h{"use strict";e.exports=n(8954)},1438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyMiddleware:()=>A,bindActionCreators:()=>T,combineReducers:()=>E,compose:()=>S,createStore:()=>x});const r="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const a=(r||o||Function("return this")()).Symbol;var i=Object.prototype,s=i.hasOwnProperty,u=i.toString,l=a?a.toStringTag:void 0;var c=Object.prototype.toString;var p=a?a.toStringTag:void 0;const f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?function(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=u.call(e);return r&&(t?e[l]=n:delete e[l]),o}(e):function(e){return c.call(e)}(e)},d=(h=Object.getPrototypeOf,m=Object,function(e){return h(m(e))});var h,m;var y=Function.prototype,v=Object.prototype,g=y.toString,b=v.hasOwnProperty,w=g.call(Object);var _=n(7527),C="@@redux/INIT";function x(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(x)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,i=[],s=i,u=!1;function l(){s===i&&(s=i.slice())}function c(){return a}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return l(),s.push(e),function(){if(t){t=!1,l();var n=s.indexOf(e);s.splice(n,1)}}}function h(e){if(!function(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!=f(e))return!1;var t=d(e);if(null===t)return!0;var n=b.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&g.call(n)==w}(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.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,a=o(a,e)}finally{u=!1}for(var t=i=s,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(i)throw i;for(var r=!1,o={},s=0;s{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},4404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{css:()=>E,keyframes:()=>we,injectGlobal:()=>_e,ThemeProvider:()=>ie,withTheme:()=>ye,ServerStyleSheet:()=>q,StyleSheetManager:()=>H,default:()=>xe});var r=n(5299),o=n.n(r),a=n(673),i=n.n(a),s=n(7588),u=n.n(s),l=n(5697),c=n.n(l),p=n(3222),f=n.n(p);e=n.hmd(e);var d,h=/([A-Z])/g,m=/^ms-/,y=function(e){return function(e){return e.replace(h,"-$1").toLowerCase()}(e).replace(m,"-ms-")},v=function e(t,n){var r=Object.keys(t).filter((function(e){var n=t[e];return null!=n&&!1!==n&&""!==n})).map((function(n){return o()(t[n])?e(t[n],n):y(n)+": "+t[n]+";"})).join(" ");return n?n+" {\n "+r+"\n}":r},g=function e(t,n){return t.reduce((function(t,r){return null==r||!1===r||""===r?t:Array.isArray(r)?[].concat(t,e(r,n)):r.hasOwnProperty("styledComponentId")?[].concat(t,["."+r.styledComponentId]):"function"==typeof r?n?t.concat.apply(t,e([r(n)],n)):t.concat(r):t.concat(o()(r)?v(r):r.toString())}),[])},b=new(i())({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),w=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,"");return b(n||!t?"":t,t&&n?n+" "+t+" { "+r+" }":r)},_="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),C=_.length,x=function(e){var t="",n=void 0;for(n=e;n>C;n=Math.floor(n/C))t=_[n%C]+t;return _[n%C]+t},O=function(e,t){return t.reduce((function(t,n,r){return t.concat(n,e[r+1])}),[e[0]])},E=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},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},N=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";P(this,e),this.el=t,this.isLocal=n,this.ready=!1;var o=T(r);this.size=o.length,this.components=o.reduce((function(e,t){return e[t.componentId]=t,e}),{})}return e.prototype.isFull=function(){return this.size>=40},e.prototype.addComponent=function(e){this.ready||this.replaceElement();var t={componentId:e,textNode:document.createTextNode("")};this.el.appendChild(t.textNode),this.size+=1,this.components[e]=t},e.prototype.inject=function(e,t,n){this.ready||this.replaceElement();var r=this.components[e];if(""===r.textNode.data&&r.textNode.appendData("\n/* sc-component-id: "+e+" */\n"),r.textNode.appendData(t),n){var o=this.el.getAttribute(L);this.el.setAttribute(L,o?o+" "+n:n)}var a=S();a&&this.el.setAttribute("nonce",a)},e.prototype.toHTML=function(){return this.el.outerHTML},e.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},e.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},e.prototype.replaceElement=function(){var e=this;if(this.ready=!0,0!==this.size){var t=this.el.cloneNode();if(t.appendChild(document.createTextNode("\n")),Object.keys(this.components).forEach((function(n){var r=e.components[n];r.textNode=document.createTextNode(r.cssFromDOM),t.appendChild(r.textNode)})),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(t,this.el),this.el=t}},e}(),D={create:function(){for(var e=[],t={},n=document.querySelectorAll("["+L+"]"),r=n.length,o=0;o");return document.head.appendChild(t),new N(t,e)}),e,t)}},L="data-styled-components",U="data-styled-components-is-local",F="__styled-components-stylesheet__",B=null,W=[],V=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};P(this,e),this.hashes={},this.deferredInjections={},this.stylesCacheable="undefined"!=typeof document,this.tagConstructor=t,this.tags=n,this.names=r,this.constructComponentTagMap()}return e.prototype.constructComponentTagMap=function(){var e=this;this.componentTags={},this.tags.forEach((function(t){Object.keys(t.components).forEach((function(n){e.componentTags[n]=t}))}))},e.prototype.getName=function(e){return this.hashes[e.toString()]},e.prototype.alreadyInjected=function(e,t){return!!this.names[t]&&(this.hashes[e.toString()]=t,!0)},e.prototype.hasInjectedComponent=function(e){return!!this.componentTags[e]},e.prototype.deferredInject=function(e,t,n){this===B&&W.forEach((function(r){r.deferredInject(e,t,n)})),this.getOrCreateTag(e,t),this.deferredInjections[e]=n},e.prototype.inject=function(e,t,n,r,o){this===B&&W.forEach((function(r){r.inject(e,t,n)}));var a=this.getOrCreateTag(e,t),i=this.deferredInjections[e];i&&(a.inject(e,i),delete this.deferredInjections[e]),a.inject(e,n,o),r&&o&&(this.hashes[r.toString()]=o)},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){return this.tags.map((function(e,t){return e.toReactElement("sc-"+t)}))},e.prototype.getOrCreateTag=function(e,t){var n=this.componentTags[e];if(n)return n;var r=this.tags[this.tags.length-1],o=!r||r.isFull()||r.isLocal!==t?this.createNewTag(t):r;return this.componentTags[e]=o,o.addComponent(e),o},e.prototype.createNewTag=function(e){var t=this.tagConstructor(e);return this.tags.push(t),t},e.reset=function(t){B=e.create(t)},e.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof document;return(e?q:D).create()},e.clone=function(t){var n=new e(t.tagConstructor,t.tags.map((function(e){return e.clone()})),I({},t.names));return n.hashes=I({},t.hashes),n.deferredInjections=I({},t.deferredInjections),W.push(n),n},A(e,null,[{key:"instance",get:function(){return B||(B=e.create())}}]),e}(),H=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.getChildContext=function(){var e;return(e={})[F]=this.props.sheet,e},t.prototype.render=function(){return u().Children.only(this.props.children)},t}(s.Component);H.childContextTypes=((d={})[F]=c().oneOfType([c().instanceOf(V),c().instanceOf(q)]).isRequired,d),H.propTypes={sheet:c().oneOfType([c().instanceOf(V),c().instanceOf(q)]).isRequired};var z=function(){function e(t){P(this,e),this.isLocal=t,this.components={},this.size=0,this.names=[]}return e.prototype.isFull=function(){return!1},e.prototype.addComponent=function(e){this.components[e]={componentId:e,css:""},this.size+=1},e.prototype.concatenateCSS=function(){var e=this;return Object.keys(this.components).reduce((function(t,n){return t+e.components[n].css}),"")},e.prototype.inject=function(e,t,n){var r=this.components[e];""===r.css&&(r.css="/* sc-component-id: "+e+" */\n"),r.css+=t.replace(/\n*$/,"\n"),n&&this.names.push(n)},e.prototype.toHTML=function(){var e=['type="text/css"',L+'="'+this.names.join(" ")+'"',U+'="'+(this.isLocal?"true":"false")+'"'],t=S();return t&&e.push('nonce="'+t+'"'),""},e.prototype.toReactElement=function(e){var t,n=((t={})[L]=this.names.join(" "),t[U]=this.isLocal.toString(),t),r=S();return r&&(n.nonce=r),u().createElement("style",I({key:e,type:"text/css"},n,{dangerouslySetInnerHTML:{__html:this.concatenateCSS()}}))},e.prototype.clone=function(){var t=this,n=new e(this.isLocal);return n.names=[].concat(this.names),n.size=this.size,n.components=Object.keys(this.components).reduce((function(e,n){return e[n]=I({},t.components[n]),e}),{}),n},e}(),q=function(){function e(){P(this,e),this.instance=V.clone(V.instance)}return e.prototype.collectStyles=function(e){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return u().createElement(H,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.closed||(W.splice(W.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.closed||(W.splice(W.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},e.create=function(){return new V((function(e){return new z(e)}))},e}(),G=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|(?:attribute|glyph)Nam|playsInlin|(?:formE|e)ncTyp|(?:writing|input|edge)Mod|(?:xlinkTy|itemSco|keyTy|slo)p|(?:amplitu|mo)d|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ntrol|ord)s|o(?:lor(?:Interpolation)?|ntent)|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|o(?:ntextMenu|ls)|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|(?:rossOrigi|olSpa)n|apHeight|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|formActio|zoomAndPa|onFocusI|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:gradientT|patternT|t)ransform|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|a(?:utoCorrec|bou)|markerStar|onFocusOu|in(?:tercep|lis)|restar|forma|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|m(?:arkerMi|etho)|preloa|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:allowFullScre|hidd)en|strokeDasharray|systemLanguage|(?:strokeLineca|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|unicodeRange|(?:(?:allowReord|placehold|frameBord|paintOrd|post|ord)e|repeatDu|d(?:efe|u))r|mathematical|(?:vI|i)deographic|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|vAlphabetic|mediaGroup|spellCheck|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|(?:xmlnsXl|valueL)ink|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|(?:text|m(?:in|ax))Length|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|r(?:e(?:quired|sult|f))?|o(?:verflow|pen)|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|f(?:o(?:ntSize|rm)|il(?:ter|l))|autoPlay|unicode|p(?:attern|oints)|t(?:arget[XY]|o)|i(?:temRef|n2|s)|divisor|d(?:efault|ata|ir)?|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|(?:stri|la)ng|prefix|itemID|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|s)|t(?:arget|ype)|typeof|width|value|x(?:mlns)?|label|m(?:edia|a(?:sk|x)|in)|size|href|k(?:ey)?|end|low|x[12]|i[dn]|y[12]|g[12]|by|f[xy]|[yz])$/,Y=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));function K(e){return"string"==typeof e}function X(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}function Q(e){return e.displayName||e.name||"Component"}var J=function(e,t,n){var r=n&&e.theme===n.theme;return e.theme&&!r?e.theme:t},Z=/[[\].#*$><+~=|^:(),"'`-]+/g,$=/(^-|-$)/g;function ee(e){return e.replace(Z,"-").replace($,"")}var te,ne,re="__styled-components__",oe=re+"next__",ae=c().shape({getTheme:c().func,subscribe:c().func,unsubscribe:c().func}),ie=function(e){function t(){P(this,t);var n=R(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return j(t,e),t.prototype.componentWillMount=function(){var e,t,n,r,o=this,a=this.context[oe];void 0!==a&&(this.unsubscribeToOuterId=a.subscribe((function(e){o.outerTheme=e}))),this.broadcast=(e=this.getTheme(),t={},n=0,r=e,{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}})},t.prototype.getChildContext=function(){var e,t=this;return I({},this.context,((e={})[oe]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[re]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[oe].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if("function"==typeof t)return t(this.outerTheme);if(!o()(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return I({},this.outerTheme,t)},t.prototype.render=function(){return this.props.children?u().Children.only(this.props.children):null},t}(s.Component);ie.childContextTypes=((te={})[re]=c().func,te[oe]=ae,te),ie.contextTypes=((ne={})[oe]=ae,ne);var se={};function ue(e,t){for(var n=1540483477,r=t^e.length,o=e.length,a=0;o>=4;){var i=le(e,a);i=pe(i,n),i=pe(i^=i>>>24,n),r=pe(r,n),r^=i,a+=4,o-=4}switch(o){case 3:r^=ce(e,a),r=pe(r^=e.charCodeAt(a+2)<<16,n);break;case 2:r=pe(r^=ce(e,a),n);break;case 1:r=pe(r^=e.charCodeAt(a),n)}return r=pe(r^=r>>>13,n),(r^=r>>>15)>>>0}function le(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function ce(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function pe(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}var fe=function e(t,n){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s1?o-1:0),i=1;i1?r-1:0),a=1;a{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,o,a){if("string"!=typeof o){var i=Object.getOwnPropertyNames(o);r&&(i=i.concat(Object.getOwnPropertySymbols(o)));for(var s=0;s{e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,a=/zoo|gra/,i=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,c=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,g=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,_=/([^\(])(:+) */g,C=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,E=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,P="-webkit-",A="-moz-",I="-ms-",j=59,M=125,R=123,N=40,D=41,L=10,U=13,F=64,B=32,W=45,V=42,H=44,z=58,q=47,G=62,Y=43,K=126,X=107,Q=1,J=1,Z=0,$=1,ee=1,te=1,ne=0,re=0,oe=0,ae=[],ie=[],se=0,ue=null,le=0,ce=1,pe="",fe="",de="";function he(e,t,o,a,i){for(var s,u,c=0,p=0,f=0,d=0,v=0,g=0,b=0,w=0,C=0,O=0,E=0,k=0,T=0,S=0,A=0,I=0,F=0,ne=0,ie=0,ue=o.length,ye=ue-1,Ce="",xe="",Oe="",Ee="",ke="",Te="";A0&&(xe=xe.replace(r,"")),xe.trim().length>0)){switch(b){case B:case 9:case j:case U:case L:break;default:xe+=o.charAt(A)}b=j}if(1===F)switch(b){case R:case M:case j:case 34:case 39:case N:case D:case H:F=0;case 9:case U:case L:case B:break;default:for(F=0,ie=A,v=b,A--,b=j;ie0&&(++A,b=v);case R:ie=ue}}switch(b){case R:for(v=(xe=xe.trim()).charCodeAt(0),E=1,ie=++A;A0&&(xe=xe.replace(r,"")),g=xe.charCodeAt(1)){case 100:case 109:case 115:case W:s=t;break;default:s=ae}if(ie=(Oe=he(t,s,Oe,g,i+1)).length,oe>0&&0===ie&&(ie=xe.length),se>0&&(u=we(3,Oe,s=me(ae,xe,ne),t,J,Q,ie,g,i,a),xe=s.join(""),void 0!==u&&0===(ie=(Oe=u.trim()).length)&&(g=0,Oe="")),ie>0)switch(g){case 115:xe=xe.replace(x,be);case 100:case 109:case W:Oe=xe+"{"+Oe+"}";break;case X:Oe=(xe=xe.replace(h,"$1 $2"+(ce>0?pe:"")))+"{"+Oe+"}",Oe=1===ee||2===ee&&ge("@"+Oe,3)?"@"+P+Oe+"@"+Oe:"@"+Oe;break;default:Oe=xe+Oe,112===a&&(Ee+=Oe,Oe="")}else Oe=""}else Oe=he(t,me(t,xe,ne),Oe,a,i+1);ke+=Oe,k=0,F=0,S=0,I=0,ne=0,T=0,xe="",Oe="",b=o.charCodeAt(++A);break;case M:case j:if((ie=(xe=(I>0?xe.replace(r,""):xe).trim()).length)>1)switch(0===S&&((v=xe.charCodeAt(0))===W||v>96&&v<123)&&(ie=(xe=xe.replace(" ",":")).length),se>0&&void 0!==(u=we(1,xe,t,e,J,Q,Ee.length,a,i,a))&&0===(ie=(xe=u.trim()).length)&&(xe="\0\0"),v=xe.charCodeAt(0),g=xe.charCodeAt(1),v){case 0:break;case 64:if(105===g||99===g){Te+=xe+o.charAt(A);break}default:if(xe.charCodeAt(ie-1)===z)break;Ee+=ve(xe,v,g,xe.charCodeAt(2))}k=0,F=0,S=0,I=0,ne=0,xe="",b=o.charCodeAt(++A)}}switch(b){case U:case L:if(p+d+f+c+re===0)switch(O){case D:case 39:case 34:case 64:case K:case 62:case V:case 43:case q:case W:case z:case H:case j:case R:case M:break;default:S>0&&(F=1)}p===q?p=0:$+k===0&&a!==X&&xe.length>0&&(I=1,xe+="\0"),se*le>0&&we(0,xe,t,e,J,Q,Ee.length,a,i,a),Q=1,J++;break;case j:case M:if(p+d+f+c===0){Q++;break}default:switch(Q++,Ce=o.charAt(A),b){case 9:case B:if(d+c+p===0)switch(w){case H:case z:case 9:case B:Ce="";break;default:b!==B&&(Ce=" ")}break;case 0:Ce="\\0";break;case 12:Ce="\\f";break;case 11:Ce="\\v";break;case 38:d+p+c===0&&$>0&&(ne=1,I=1,Ce="\f"+Ce);break;case 108:if(d+p+c+Z===0&&S>0)switch(A-S){case 2:112===w&&o.charCodeAt(A-3)===z&&(Z=w);case 8:111===C&&(Z=C)}break;case z:d+p+c===0&&(S=A);break;case H:p+f+d+c===0&&(I=1,Ce+="\r");break;case 34:case 39:0===p&&(d=d===b?0:0===d?b:d);break;case 91:d+p+f===0&&c++;break;case 93:d+p+f===0&&c--;break;case D:d+p+c===0&&f--;break;case N:d+p+c===0&&(0===k&&(2*w+3*C==533||(E=0,k=1)),f++);break;case 64:p+f+d+c+S+T===0&&(T=1);break;case V:case q:if(d+c+f>0)break;switch(p){case 0:switch(2*b+3*o.charCodeAt(A+1)){case 235:p=q;break;case 220:ie=A,p=V}break;case V:b===q&&w===V&&ie+2!==A&&(33===o.charCodeAt(ie+2)&&(Ee+=o.substring(ie,A+1)),Ce="",p=0)}}if(0===p){if($+d+c+T===0&&a!==X&&b!==j)switch(b){case H:case K:case 62:case 43:case D:case N:if(0===k){switch(w){case 9:case B:case L:case U:Ce+="\0";break;default:Ce="\0"+Ce+(b===H?"":"\0")}I=1}else switch(b){case N:S+7===A&&108===w&&(S=0),k=++E;break;case D:0==(k=--E)&&(I=1,Ce+="\0")}break;case 9:case B:switch(w){case 0:case R:case M:case j:case H:case 12:case 9:case B:case L:case U:break;default:0===k&&(I=1,Ce+="\0")}}xe+=Ce,b!==B&&9!==b&&(O=b)}}C=w,w=b,A++}if(ie=Ee.length,oe>0&&0===ie&&0===ke.length&&0===t[0].length==0&&(109!==a||1===t.length&&($>0?fe:de)===t[0])&&(ie=t.join(",").length+2),ie>0){if(s=0===$&&a!==X?function(e){for(var t,n,o=0,a=e.length,i=Array(a);o1)){if(f=u.charCodeAt(u.length-1),d=n.charCodeAt(0),t="",0!==c)switch(f){case V:case K:case G:case Y:case B:case N:break;default:t=" "}switch(d){case 38:n=t+fe;case K:case G:case Y:case B:case D:case N:break;case 91:n=t+n+fe;break;case z:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(te>0){n=t+n.substring(8,p-1);break}default:(c<1||s[c-1].length<1)&&(n=t+fe+n)}break;case H:t="";default:n=p>1&&n.indexOf(":")>0?t+n.replace(_,"$1"+fe+"$2"):t+n+fe}u+=n}i[o]=u.replace(r,"").trim()}return i}(t):t,se>0&&void 0!==(u=we(2,Ee,s,e,J,Q,ie,a,i,a))&&0===(Ee=u).length)return Te+Ee+ke;if(Ee=s.join(",")+"{"+Ee+"}",ee*Z!=0){switch(2!==ee||ge(Ee,2)||(Z=0),Z){case 111:Ee=Ee.replace(y,":-moz-$1")+Ee;break;case 112:Ee=Ee.replace(m,"::-webkit-input-$1")+Ee.replace(m,"::-moz-$1")+Ee.replace(m,":-ms-input-$1")+Ee}Z=0}}return Te+Ee+ke}function me(e,t,n){var r=t.trim().split(c),o=r,a=r.length,i=e.length;switch(i){case 0:case 1:for(var s=0,u=0===i?"":e[0]+" ";s0&&$>0)return o.replace(f,"$1").replace(p,"$1"+de);default:if(n*$>0&&o.indexOf("\f")>0)return o.replace(p,(e.charCodeAt(0)===z?"":"$1")+e.trim())}return e+o}function ve(e,t,n,r){var l,c=0,p=e+";",f=2*t+3*n+4*r;if(944===f)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*ce){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var a=o.split((o="",s)),i=0;for(n=0,t=a.length;iF&&p<90||p>96&&p<123||95===p||p===W&&l.charCodeAt(1)!==W)&&isNaN(parseFloat(l))+(-1!==l.indexOf("("))===1)switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=pe}c[n++]=l}o+=(0===i?"":",")+c.join(" ")}}return o=r+o+";",1===ee||2===ee&&ge(o,1)?P+o+o:o}(p);if(0===ee||2===ee&&!ge(p,1))return p;switch(f){case 1015:return 97===p.charCodeAt(10)?P+p+p:p;case 951:return 116===p.charCodeAt(3)?P+p+p:p;case 963:return 110===p.charCodeAt(5)?P+p+p:p;case 1009:if(100!==p.charCodeAt(4))break;case 969:case 942:return P+p+p;case 978:return P+p+A+p+p;case 1019:case 983:return P+p+A+p+I+p+p;case 883:return p.charCodeAt(8)===W?P+p+p:p.indexOf("image-set(",11)>0?p.replace(S,"$1-webkit-$2")+p:p;case 932:if(p.charCodeAt(4)===W)switch(p.charCodeAt(5)){case 103:return P+"box-"+p.replace("-grow","")+P+p+I+p.replace("grow","positive")+p;case 115:return P+p+I+p.replace("shrink","negative")+p;case 98:return P+p+I+p.replace("basis","preferred-size")+p}return P+p+I+p+p;case 964:return P+p+I+"flex-"+p+p;case 1023:if(99!==p.charCodeAt(8))break;return l=p.substring(p.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),P+"box-pack"+l+P+p+I+"flex-pack"+l+p;case 1005:return a.test(p)?p.replace(o,":"+P)+p.replace(o,":"+A)+p:p;case 1e3:switch(c=(l=p.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(c)){case 226:l=p.replace(C,"tb");break;case 232:l=p.replace(C,"tb-rl");break;case 220:l=p.replace(C,"lr");break;default:return p}return P+p+I+l+p;case 1017:if(-1===p.indexOf("sticky",9))return p;case 975:switch(c=(p=e).length-10,f=(l=(33===p.charCodeAt(c)?p.substring(0,c):p).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:p=p.replace(l,P+l)+";"+p;break;case 207:case 102:p=p.replace(l,P+(f>102?"inline-":"")+"box")+";"+p.replace(l,P+l)+";"+p.replace(l,I+l+"box")+";"+p}return p+";";case 938:if(p.charCodeAt(5)===W)switch(p.charCodeAt(6)){case 105:return l=p.replace("-items",""),P+p+P+"box-"+l+I+"flex-"+l+p;case 115:return P+p+I+"flex-item-"+p.replace(E,"")+p;default:return P+p+I+"flex-line-pack"+p.replace("align-content","").replace(E,"")+p}break;case 973:case 989:if(p.charCodeAt(3)!==W||122===p.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ve(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):p.replace(l,P+l)+p.replace(l,A+l.replace("fill-",""))+p;break;case 962:if(p=P+p+(102===p.charCodeAt(5)?I+p:"")+p,n+r===211&&105===p.charCodeAt(13)&&p.indexOf("transform",10)>0)return p.substring(0,p.indexOf(";",27)+1).replace(i,"$1-webkit-$2")+p}return p}function ge(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return ue(2!==t?r:r.replace(k,"$1"),o,t)}function be(e,t){var n=ve(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function we(e,t,n,r,o,a,i,s,u,l){for(var c,p=0,f=t;p0&&(pe=o.replace(d,91===a?"":"-")),a=1,1===$?de=o:fe=o;var i,s=[de];se>0&&void 0!==(i=we(-1,n,s,s,J,Q,0,0,0,0))&&"string"==typeof i&&(n=i);var u=he(ae,s,n,0,0);return se>0&&void 0!==(i=we(-2,u,s,s,J,Q,u.length,0,0,0))&&"string"!=typeof(u=i)&&(a=0),pe="",de="",fe="",Z=0,J=1,Q=1,ne*a==0?u:function(e){return e.replace(r,"").replace(v,"").replace(g,"$1").replace(b,"$1").replace(w," ")}(u)}return xe.use=function e(t){switch(t){case void 0:case null:se=ie.length=0;break;default:if("function"==typeof t)ie[se++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAzZJREFUeAHlm89q20AQhyv5lBAo+FJCn6GF3nostm+GkIv7kPEll1yMMbnm2pBHKL0ZAkkKubjzE96yUSxpZ2dm9ccLQmtpd2e+T5JtVmz2gcpisTjZbrc/qXq22+2uN5vNbxwfWplMJp+zLLskrqfxeHy1XC7/Znv4OwL/AmBq8IhG6/X6Fp+HUmaz2Q9cXNo+gokYf5GE7zmuvIPHCTSg7QYd8HkIZQ9/4+DBRPWvYM+pflaGpJOnQ5HgwZ+WOcGeE+g1bvvyySFIqIMHM9hzfOHhmaftZUgSGuBfwFywO+iADvO+fDFyWDInAHtOR79fl+pchjcC+i6BCw/edwL6KiEGvlJA3yTEwtcK6IsECXyjgK5LkMIHCeiqBA34YAFdk6AFzxLQFQma8GwBbUvQho8S0JYEC/hoAaklWMGLBKSSYAkvFmAtwRpeRYCVhBTwagK0JaSCVxWgJSElvLoAqYTU8CYCYiW0AW8mgCuhLXhTAaES0A7vIDANj7pfMFNNm+lk7MEpMT8Jab3p6mL8tuAR21wAgtRJwPlySXHlXcwkAhAsVEJKeOSVTECIhNTwyAkvR4+6JLsDjvoRCIV3t2LKR8H8EaiD34M+O3C3x88i/hugrztmtTd9BALg5wADbFv/BcwEhMC71+2cttp3gomAGKCYPhoy1AVIQCR9Y2WoCtAA0BiDI0NNgGbimmM1yVARYJGwxZiHZIgFWCZqObaTIRKQIkHrGNECrBNzVwh7y1hRAiwT8sH9ulVMtgCrRHzYqrpFbJYAiwSqYKuOa+cQLEA7cBVgyHHNXIIEaAYMAQxpo5VTowCtQCFQ3DYaudUK0AjAheK2l+ZYKUA6MBdE0l6S60EBkgElIJK+sTm/ExA7kCR5rb4xub8REDOAVvJa43AZ/gvgdtRK2GIcDkshgNPBImGLMZuYRqPRZLVa3WX75aQPNC1drKj0k0n5gsKPq1VvkPCH4nzLCfJyiPCQiGl34pvjQpalEvM5Hb/Am6Gn8kl0QEc3b18+36fPDRJec6yiJth7B0V1LJ4eBLxjggQ888SF274oVMfi6aviS/BYls9Pp9NPBH5Bt/8r4LF8/h8bZl9WdQoucwAAAABJRU5ErkJggg=="},8531:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAYAAADwdn+XAAAABGdBTUEAALGPC/xhBQAAAPdJREFUKBVjZMABEhISOB4/frwcJC0rKxu5YMGCH9iUMmIT9PPz4/369eum////P2NkZPwPVCPNzc3tt2nTps/o6pnQBXx9fUWAmvcBxa/t3bs3Zs+ePbEgNkgMJIeuHsUAJycn6W/fvh0C2roTqDkbZDsIQ9k7QXIgNciGMMM47u7uKkAn7wfyZwI1tMLEYfS9e/f2KSkpcQD5M9TU1LbevXv3HUgObICzs7Pev3//9gD5TUDNU0ES2MD9+/ePAw35AlS7CEjvAfJfMgI1WwIVrwfiHKDmNdg0oosB9YQAxaYAcSAoDKYxMTHFEasZZBhILUgPSC8A/Zdrp6hdBGQAAAAASUVORK5CYII="},5238:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAsCAYAAAAacYo8AAAABGdBTUEAALGPC/xhBQAABf5JREFUWAnVmVlMXFUYx52hgFJZ22ihiAaiVYyJqcaWBzBlp2QolWBilcCb0WhsE2ONdUHTaGLsi74YTJTE5UGaWkDKjiTIA2lMTVVqSzSxGGrbyCJb2Wb8f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0hiZlz+t35LDLTm/mj/QGYNkxgxEboy4JwbB6Rm1mGpDUgVAboykGujt4AxQRqksMRAQLvT7LJJ/cezMpmWlsh1htYtjUBbj2TPEKMi1FZRXk8mYksGtLW+1ldbsfY0wMSJrdiow3eaUhsT0F8DUyVWbzBrmN6Sgd+0bmjFtdYKuQaANAJonymXhIGj9sPUisvroxXZ/rFzVGJgXnXgV7UVGzFxYitmHZbaqJ1Sfw2wyhkTbD/DJQa+Yq1PGOtJ/BpD3bUAAAAASUVORK5CYII="},8782:(e,t,n)=>{e.exports=n.p+"a96f14595379b7c348d66e115ec65a93.png"},670:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e=i(n(7588)),t=i(n(3935)),r=n(7974),o=i(n(8147)),a=i(n(8622));function i(e){return e&&e.__esModule?e:{default:e}}t.default.render(e.default.createElement(r.Provider,{store:o.default},e.default.createElement(a.default,null)),document.getElementById("root"))})()})();
\ No newline at end of file