/******/ (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] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = 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;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 144);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

if (process.env.NODE_ENV === 'production') {
  module.exports = __webpack_require__(145);
} else {
  module.exports = __webpack_require__(146);
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;

var _flattenNames = __webpack_require__(181);

var _flattenNames2 = _interopRequireDefault(_flattenNames);

var _mergeClasses = __webpack_require__(257);

var _mergeClasses2 = _interopRequireDefault(_mergeClasses);

var _autoprefix = __webpack_require__(283);

var _autoprefix2 = _interopRequireDefault(_autoprefix);

var _hover2 = __webpack_require__(284);

var _hover3 = _interopRequireDefault(_hover2);

var _active = __webpack_require__(285);

var _active2 = _interopRequireDefault(_active);

var _loop2 = __webpack_require__(286);

var _loop3 = _interopRequireDefault(_loop2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.hover = _hover3.default;
exports.handleHover = _hover3.default;
exports.handleActive = _active2.default;
exports.loop = _loop3.default;
var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
  for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    activations[_key - 1] = arguments[_key];
  }

  var activeNames = (0, _flattenNames2.default)(activations);
  var merged = (0, _mergeClasses2.default)(classes, activeNames);
  return (0, _autoprefix2.default)(merged);
};

exports.default = ReactCSS;

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(155);

/***/ }),
/* 3 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alpha__ = __webpack_require__(287);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alpha__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Checkboard__ = __webpack_require__(65);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Checkboard__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EditableInput__ = __webpack_require__(290);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__EditableInput__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Hue__ = __webpack_require__(291);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__Hue__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Raised__ = __webpack_require__(293);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__Raised__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Saturation__ = __webpack_require__(359);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__Saturation__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ColorWrap__ = __webpack_require__(131);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_6__ColorWrap__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Swatch__ = __webpack_require__(375);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__Swatch__["a"]; });









/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Togglebutton = function Togglebutton(props) {

    var toggleBtnValue = function toggleBtnValue(val) {
        props.setBtnValue(val);
    };

    return wp.element.createElement(
        'label',
        { className: 'pac_da_toggle_btn ' + (props.btnValue === true ? 'enabled' : 'disabled') },
        wp.element.createElement('input', {
            type: 'checkbox',
            checked: props.btnValue == "true" || props.btnValue == true ? true : false,
            onChange: function onChange() {
                return toggleBtnValue(!props.btnValue);
            }
        }),
        wp.element.createElement(
            'span',
            { className: 'btn_enabled' },
            'ENABLED'
        ),
        wp.element.createElement(
            'span',
            { className: 'btn_disabled' },
            'DISABLED'
        )
    );
};
exports.default = Togglebutton;

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

var _ColorOption = __webpack_require__(25);

var _ColorOption2 = _interopRequireDefault(_ColorOption);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var SettingCard = function SettingCard(props) {
    var handleFieldValue = function handleFieldValue(e) {
        if (props.inputField == true) {
            var removeLast = false;
            if (e.target.value === props.fieldValue.slice(0, -1)) {
                removeLast = true;
            }
            e.target.value = parseFloat(e.target.value.replace(/[^0-9]/g, '') === '' ? '0' : e.target.value.replace(/[^0-9]/g, ''));
            if (removeLast === true) {
                e.target.value = e.target.value.slice(0, -1);
            }
            if (props.title === 'Limit Maximum Media Upload Size') {
                e.target.value = e.target.value + 'kb';
            } else {
                e.target.value = e.target.value + 'px';
            }
        }
        props.setFieldValue(e.target.value);
    };

    var handleSvgUploadValue = function handleSvgUploadValue(val) {
        props.setMediaCards(Object.assign({}, props.mediaCards, { svgUploadsValue: val }));
    };

    return wp.element.createElement(
        'div',
        { className: props.settingImg === 'no' ? 'pac_da_settings_card only_details' : 'pac_da_settings_card' },
        props.settingImg !== undefined && props.settingImg !== 'no' ? wp.element.createElement('img', { className: 'img', src: props.settingImg, alt: 'Setting Image' }) : props.settingImg === 'no' ? '' : wp.element.createElement(
            'svg',
            { width: '261', height: '163', viewBox: '0 0 261 163', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('rect', { width: '260.8', height: '163', rx: '3', fill: '#D9D9D9' })
        ),
        wp.element.createElement(
            'div',
            { className: 'details' },
            wp.element.createElement(
                'span',
                null,
                props.title
            ),
            props.description === null ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'p',
                    null,
                    props.description1
                ),
                wp.element.createElement(
                    'p',
                    null,
                    props.description2
                )
            ) : wp.element.createElement(
                'p',
                null,
                props.description
            ),
            props.inputField == true ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        props.fieldTitle
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: props.placeholder, value: props.fieldValue, autoComplete: 'off', onChange: function onChange(e) {
                            return handleFieldValue(e);
                        } })
                ) : ''
            ) : props.inputField == 'btn' ? wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }) : props.inputField == 'temSvg' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'span',
                        { className: 'subheading' },
                        'Permissions'
                    ),
                    wp.element.createElement(
                        'select',
                        { className: 'pac_da_select fullWidth', onChange: function onChange(e) {
                                return handleSvgUploadValue(e.target.value);
                            }, value: props.mediaCards.svgUploadsValue },
                        wp.element.createElement(
                            'option',
                            { className: 'option', key: 'default', value: 'default' },
                            'Enable By Default And Always Allow Without Confirmation'
                        ),
                        wp.element.createElement(
                            'option',
                            { className: 'option', key: 'temporarily', value: 'temporarily' },
                            'Require Confirmation Button When Uploading To Temporarily Allow'
                        )
                    )
                ) : ''
            ) : props.inputField == 'altTitleFilename' ? wp.element.createElement(
                'select',
                { className: 'pac_da_select fullWidth', onChange: function onChange(e) {
                        return props.setBtnValue(e.target.value);
                    }, value: props.btnValue },
                wp.element.createElement(
                    'option',
                    { className: 'option', key: 'Disable', value: 'disable' },
                    'Disable'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'option', key: 'Filename', value: 'filename' },
                    'Use Image Filename As Alt Text'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'option', key: 'Title', value: 'title' },
                    'Use Image Title As Alt Text'
                )
            ) : props.inputField == 'skiptoContent' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'span',
                        null,
                        'Hide Link For Non-Screen Readers'
                    ),
                    wp.element.createElement(
                        'p',
                        null,
                        'Enabling this setting will hide the skip navigation link for non-screen readers.'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValueHide, setBtnValue: props.setBtnValueHide })
                ) : ''
            ) : props.inputField == 'adminbar' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Hide Admin Bar Everywhere'
                ),
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.adminbarEverywhere, setBtnValue: props.setAdminbarEverywhere }),
                props.adminbarEverywhere !== true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Only Hide Admin Bar In Divi Visual Builder'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.adminbarFrontend, setBtnValue: props.setAdminbarFrontend })
                ) : '',
                props.adminbarEverywhere === true || props.adminbarFrontend === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Show Admin Bar On Hover'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.adminbarHover, setBtnValue: props.setAdminbarHover })
                ) : ''
            ) : props.inputField == 'color' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Highlight Background Color'
                    ),
                    wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.bgColor, setColor: props.setBgColor }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Highlight Text Color'
                    ),
                    wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.textColor, setColor: props.setTextColor })
                ) : ''
            ) : props.inputField == 'singleColor' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Keyboard Navigation Outline Color'
                    ),
                    wp.element.createElement(
                        'p',
                        { className: 'description' },
                        'Choose a color for the keyboard navigation focus outline.'
                    ),
                    wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.color, setColor: props.setColor })
                ) : ''
            ) : props.inputField == 'underlinks' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Exclude Underlines In Heading'
                    ),
                    wp.element.createElement(
                        'p',
                        { className: 'description' },
                        'Enabling this setting will ignore adding underlines to links within heading text.'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValueHeading, setBtnValue: props.setBtnValueHeading }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Exclude Underlines In Buttons'
                    ),
                    wp.element.createElement(
                        'p',
                        { className: 'description' },
                        'Enabling this setting will ignore adding underlines to Divi Button modules.'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValueBtns, setBtnValue: props.setBtnValueBtns }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Exclude Underlines In Menus'
                    ),
                    wp.element.createElement(
                        'p',
                        { className: 'description' },
                        'Enabling this setting will ignore adding underlines to Divi Menu modules.'
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValueMenu, setBtnValue: props.setBtnValueMenu })
                ) : ''
            ) : props.inputField == 'posttypes' ? Object.keys(props.enableVbAllPosttype).map(function (key, index) {
                return wp.element.createElement(
                    _react2.default.Fragment,
                    { key: index },
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        props.enableVbAllPosttypeName[key]
                    ),
                    wp.element.createElement(_Togglebutton2.default, { btnValue: props.enableVbAllPosttype[key], setBtnValue: function setBtnValue(val) {
                            return props.handleEnableVbAllPosttype(key, val);
                        } })
                );
            }) : props.inputField == 'autoClearCache' ? wp.element.createElement(
                'select',
                { style: { marginTop: "10px", marginBottom: "0px" }, className: 'pac_da_styles_select', value: props.btnValue, onChange: props.setBtnValue },
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'disable' },
                    'Disable'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'hourly' },
                    'Every Hour'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'twicedaily' },
                    'Every 12 Hours'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'daily' },
                    'Every Day'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'weekly' },
                    'Every Week'
                ),
                wp.element.createElement(
                    'option',
                    { className: 'pac_da_styles_options', value: 'monthly' },
                    'Every Month'
                )
            ) : props.inputField == 'clearCacheOnAction' ? wp.element.createElement(
                'div',
                { className: 'pac_da_admin_settings_CB' },
                wp.element.createElement(
                    'div',
                    { className: 'innerCB', key: 'vb' },
                    wp.element.createElement('input', { type: 'checkbox', value: props.maintenanceCards.clearOnExitsVB, checked: props.maintenanceCards.clearOnExitsVB === true ? true : false, onChange: function onChange() {
                            return props.toggleValue(['clearOnExitsVB'], !props.maintenanceCards.clearOnExitsVB);
                        } }),
                    wp.element.createElement(
                        'span',
                        null,
                        'Every time user exits the visual builder'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'innerCB', key: 'plugin' },
                    wp.element.createElement('input', { type: 'checkbox', value: props.maintenanceCards.clearOnUpdatePlugin, checked: props.maintenanceCards.clearOnUpdatePlugin === true ? true : false, onChange: function onChange() {
                            return props.toggleValue(['clearOnUpdatePlugin'], !props.maintenanceCards.clearOnUpdatePlugin);
                        } }),
                    wp.element.createElement(
                        'span',
                        null,
                        'every time a plugin is updated'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'innerCB', key: 'Theme' },
                    wp.element.createElement('input', { type: 'checkbox', value: props.maintenanceCards.clearOnUpdateTheme, checked: props.maintenanceCards.clearOnUpdateTheme === true ? true : false, onChange: function onChange() {
                            return props.toggleValue(['clearOnUpdateTheme'], !props.maintenanceCards.clearOnUpdateTheme);
                        } }),
                    wp.element.createElement(
                        'span',
                        null,
                        'every time a Theme is updated'
                    )
                )
            ) : props.inputField == 'rename' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(_Togglebutton2.default, { btnValue: props.btnValue, setBtnValue: props.setBtnValue }),
                props.btnValue === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Plural Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Projects', value: props.pluralName, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setPluralName(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Singular Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Project', value: props.singularName, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSingularName(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Slug'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'projects', value: props.slug, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSlug(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Category Plural Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Project Categories', value: props.pluralCategory, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setPluralCategory(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Category Singular Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Project Category', value: props.singularCategory, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSingularCategory(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Category Slug'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'project_category', value: props.slugCategory, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSlugCategory(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Tag Plural Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Project Tags', value: props.pluralTag, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setPluralTag(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Tag Singular Name'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Project Tag', value: props.singularTag, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSingularTag(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Tag Slug'
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'project_tag', value: props.slugTag, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setSlugTag(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'title' },
                        'Menu Icon',
                        wp.element.createElement(
                            'a',
                            { className: 'dashicons', href: 'https://developer.wordpress.org/resource/dashicons/#admin-post', target: '_blank', title: 'Find Icon Slug' },
                            wp.element.createElement(
                                'svg',
                                { width: '14', height: '19', viewBox: '0 0 14 13' },
                                wp.element.createElement('circle', { cx: '7', cy: '12', r: '1' }),
                                wp.element.createElement('path', { d: 'M6 9a3.17 3.17 0 0 1 1.59-2.68C8.33 5.86 9 5.52 9 4.5 9 4 8.55 3 7 3c-1.73 0-2 .95-2 1-.12.6-.33 1-1 1s-1.12-.4-1-1a3.89 3.89 0 0 1 4-3 3.68 3.68 0 0 1 4 3.5A3.72 3.72 0 0 1 8.77 8 1.53 1.53 0 0 0 8 9a.93.93 0 0 1-1 1 .93.93 0 0 1-1-1z' })
                            )
                        )
                    ),
                    wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'dashicons-admin-post', value: props.menuIcon, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setMenuIcon(e.target.value);
                        } })
                ) : ''
            ) : ""
        )
    );
};

exports.default = SettingCard;

/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(process) {/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

if (process.env.NODE_ENV !== 'production') {
  var ReactIs = __webpack_require__(117);

  // By explicitly using `prop-types` you are opting into new development behavior.
  // http://fb.me/prop-types-in-prod
  var throwOnDirectAccess = true;
  module.exports = __webpack_require__(296)(ReactIs.isElement, throwOnDirectAccess);
} else {
  // By explicitly using `prop-types` you are opting into new production behavior.
  // http://fb.me/prop-types-in-prod
  module.exports = __webpack_require__(299)();
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 7 */
/***/ (function(module, exports) {

// shim for using process in browser
var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things.  But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals.  It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

function defaultSetTimout() {
    throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
    throw new Error('clearTimeout has not been defined');
}
(function () {
    try {
        if (typeof setTimeout === 'function') {
            cachedSetTimeout = setTimeout;
        } else {
            cachedSetTimeout = defaultSetTimout;
        }
    } catch (e) {
        cachedSetTimeout = defaultSetTimout;
    }
    try {
        if (typeof clearTimeout === 'function') {
            cachedClearTimeout = clearTimeout;
        } else {
            cachedClearTimeout = defaultClearTimeout;
        }
    } catch (e) {
        cachedClearTimeout = defaultClearTimeout;
    }
} ())
function runTimeout(fun) {
    if (cachedSetTimeout === setTimeout) {
        //normal enviroments in sane situations
        return setTimeout(fun, 0);
    }
    // if setTimeout wasn't available but was latter defined
    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
        cachedSetTimeout = setTimeout;
        return setTimeout(fun, 0);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedSetTimeout(fun, 0);
    } catch(e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
            return cachedSetTimeout.call(null, fun, 0);
        } catch(e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
            return cachedSetTimeout.call(this, fun, 0);
        }
    }


}
function runClearTimeout(marker) {
    if (cachedClearTimeout === clearTimeout) {
        //normal enviroments in sane situations
        return clearTimeout(marker);
    }
    // if clearTimeout wasn't available but was latter defined
    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
        cachedClearTimeout = clearTimeout;
        return clearTimeout(marker);
    }
    try {
        // when when somebody has screwed with setTimeout but no I.E. maddness
        return cachedClearTimeout(marker);
    } catch (e){
        try {
            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
            return cachedClearTimeout.call(null, marker);
        } catch (e){
            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
            // Some versions of I.E. have different rules for clearTimeout vs setTimeout
            return cachedClearTimeout.call(this, marker);
        }
    }



}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
    if (!draining || !currentQueue) {
        return;
    }
    draining = false;
    if (currentQueue.length) {
        queue = currentQueue.concat(queue);
    } else {
        queueIndex = -1;
    }
    if (queue.length) {
        drainQueue();
    }
}

function drainQueue() {
    if (draining) {
        return;
    }
    var timeout = runTimeout(cleanUpNextTick);
    draining = true;

    var len = queue.length;
    while(len) {
        currentQueue = queue;
        queue = [];
        while (++queueIndex < len) {
            if (currentQueue) {
                currentQueue[queueIndex].run();
            }
        }
        queueIndex = -1;
        len = queue.length;
    }
    currentQueue = null;
    draining = false;
    runClearTimeout(timeout);
}

process.nextTick = function (fun) {
    var args = new Array(arguments.length - 1);
    if (arguments.length > 1) {
        for (var i = 1; i < arguments.length; i++) {
            args[i - 1] = arguments[i];
        }
    }
    queue.push(new Item(fun, args));
    if (queue.length === 1 && !draining) {
        runTimeout(drainQueue);
    }
};

// v8 likes predictible objects
function Item(fun, array) {
    this.fun = fun;
    this.array = array;
}
Item.prototype.run = function () {
    this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};

function noop() {}

process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;

process.listeners = function (name) { return [] }

process.binding = function (name) {
    throw new Error('process.binding is not supported');
};

process.cwd = function () { return '/' };
process.chdir = function (dir) {
    throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };


/***/ }),
/* 8 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMerge_js__ = __webpack_require__(300);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(350);



/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */
var merge = Object(__WEBPACK_IMPORTED_MODULE_1__createAssigner_js__["a" /* default */])(function(object, source, srcIndex) {
  Object(__WEBPACK_IMPORTED_MODULE_0__baseMerge_js__["a" /* default */])(object, source, srcIndex);
});

/* harmony default export */ __webpack_exports__["a"] = (merge);


/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var bind = __webpack_require__(83);

// utils is a library of generic helper functions non-specific to axios

var toString = Object.prototype.toString;

/**
 * Determine if a value is an Array
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Array, otherwise false
 */
function isArray(val) {
  return toString.call(val) === '[object Array]';
}

/**
 * Determine if a value is undefined
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if the value is undefined, otherwise false
 */
function isUndefined(val) {
  return typeof val === 'undefined';
}

/**
 * Determine if a value is a Buffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Buffer, otherwise false
 */
function isBuffer(val) {
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
    && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
}

/**
 * Determine if a value is an ArrayBuffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
 */
function isArrayBuffer(val) {
  return toString.call(val) === '[object ArrayBuffer]';
}

/**
 * Determine if a value is a FormData
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an FormData, otherwise false
 */
function isFormData(val) {
  return (typeof FormData !== 'undefined') && (val instanceof FormData);
}

/**
 * Determine if a value is a view on an ArrayBuffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
 */
function isArrayBufferView(val) {
  var result;
  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
    result = ArrayBuffer.isView(val);
  } else {
    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  }
  return result;
}

/**
 * Determine if a value is a String
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a String, otherwise false
 */
function isString(val) {
  return typeof val === 'string';
}

/**
 * Determine if a value is a Number
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Number, otherwise false
 */
function isNumber(val) {
  return typeof val === 'number';
}

/**
 * Determine if a value is an Object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Object, otherwise false
 */
function isObject(val) {
  return val !== null && typeof val === 'object';
}

/**
 * Determine if a value is a plain Object
 *
 * @param {Object} val The value to test
 * @return {boolean} True if value is a plain Object, otherwise false
 */
function isPlainObject(val) {
  if (toString.call(val) !== '[object Object]') {
    return false;
  }

  var prototype = Object.getPrototypeOf(val);
  return prototype === null || prototype === Object.prototype;
}

/**
 * Determine if a value is a Date
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Date, otherwise false
 */
function isDate(val) {
  return toString.call(val) === '[object Date]';
}

/**
 * Determine if a value is a File
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a File, otherwise false
 */
function isFile(val) {
  return toString.call(val) === '[object File]';
}

/**
 * Determine if a value is a Blob
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Blob, otherwise false
 */
function isBlob(val) {
  return toString.call(val) === '[object Blob]';
}

/**
 * Determine if a value is a Function
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Function, otherwise false
 */
function isFunction(val) {
  return toString.call(val) === '[object Function]';
}

/**
 * Determine if a value is a Stream
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Stream, otherwise false
 */
function isStream(val) {
  return isObject(val) && isFunction(val.pipe);
}

/**
 * Determine if a value is a URLSearchParams object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
 */
function isURLSearchParams(val) {
  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
}

/**
 * Trim excess whitespace off the beginning and end of a string
 *
 * @param {String} str The String to trim
 * @returns {String} The String freed of excess whitespace
 */
function trim(str) {
  return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
}

/**
 * Determine if we're running in a standard browser environment
 *
 * This allows axios to run in a web worker, and react-native.
 * Both environments support XMLHttpRequest, but not fully standard globals.
 *
 * web workers:
 *  typeof window -> undefined
 *  typeof document -> undefined
 *
 * react-native:
 *  navigator.product -> 'ReactNative'
 * nativescript
 *  navigator.product -> 'NativeScript' or 'NS'
 */
function isStandardBrowserEnv() {
  if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
                                           navigator.product === 'NativeScript' ||
                                           navigator.product === 'NS')) {
    return false;
  }
  return (
    typeof window !== 'undefined' &&
    typeof document !== 'undefined'
  );
}

/**
 * Iterate over an Array or an Object invoking a function for each item.
 *
 * If `obj` is an Array callback will be called passing
 * the value, index, and complete array for each item.
 *
 * If 'obj' is an Object callback will be called passing
 * the value, key, and complete object for each property.
 *
 * @param {Object|Array} obj The object to iterate
 * @param {Function} fn The callback to invoke for each item
 */
function forEach(obj, fn) {
  // Don't bother if no value provided
  if (obj === null || typeof obj === 'undefined') {
    return;
  }

  // Force an array if not already something iterable
  if (typeof obj !== 'object') {
    /*eslint no-param-reassign:0*/
    obj = [obj];
  }

  if (isArray(obj)) {
    // Iterate over array values
    for (var i = 0, l = obj.length; i < l; i++) {
      fn.call(null, obj[i], i, obj);
    }
  } else {
    // Iterate over object keys
    for (var key in obj) {
      if (Object.prototype.hasOwnProperty.call(obj, key)) {
        fn.call(null, obj[key], key, obj);
      }
    }
  }
}

/**
 * Accepts varargs expecting each argument to be an object, then
 * immutably merges the properties of each object and returns result.
 *
 * When multiple objects contain the same key the later object in
 * the arguments list will take precedence.
 *
 * Example:
 *
 * ```js
 * var result = merge({foo: 123}, {foo: 456});
 * console.log(result.foo); // outputs 456
 * ```
 *
 * @param {Object} obj1 Object to merge
 * @returns {Object} Result of all merge properties
 */
function merge(/* obj1, obj2, obj3, ... */) {
  var result = {};
  function assignValue(val, key) {
    if (isPlainObject(result[key]) && isPlainObject(val)) {
      result[key] = merge(result[key], val);
    } else if (isPlainObject(val)) {
      result[key] = merge({}, val);
    } else if (isArray(val)) {
      result[key] = val.slice();
    } else {
      result[key] = val;
    }
  }

  for (var i = 0, l = arguments.length; i < l; i++) {
    forEach(arguments[i], assignValue);
  }
  return result;
}

/**
 * Extends object a by mutably adding to it the properties of object b.
 *
 * @param {Object} a The object to be extended
 * @param {Object} b The object to copy properties from
 * @param {Object} thisArg The object to bind function to
 * @return {Object} The resulting value of object a
 */
function extend(a, b, thisArg) {
  forEach(b, function assignValue(val, key) {
    if (thisArg && typeof val === 'function') {
      a[key] = bind(val, thisArg);
    } else {
      a[key] = val;
    }
  });
  return a;
}

/**
 * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
 *
 * @param {string} content with BOM
 * @return {string} content value without BOM
 */
function stripBOM(content) {
  if (content.charCodeAt(0) === 0xFEFF) {
    content = content.slice(1);
  }
  return content;
}

module.exports = {
  isArray: isArray,
  isArrayBuffer: isArrayBuffer,
  isBuffer: isBuffer,
  isFormData: isFormData,
  isArrayBufferView: isArrayBufferView,
  isString: isString,
  isNumber: isNumber,
  isObject: isObject,
  isPlainObject: isPlainObject,
  isUndefined: isUndefined,
  isDate: isDate,
  isFile: isFile,
  isBlob: isBlob,
  isFunction: isFunction,
  isStream: isStream,
  isURLSearchParams: isURLSearchParams,
  isStandardBrowserEnv: isStandardBrowserEnv,
  forEach: forEach,
  merge: merge,
  extend: extend,
  trim: trim,
  stripBOM: stripBOM
};


/***/ }),
/* 10 */
/***/ (function(module, exports) {

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

module.exports = isArray;


/***/ }),
/* 11 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(119);


/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();

/* harmony default export */ __webpack_exports__["a"] = (root);


/***/ }),
/* 12 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

/* harmony default export */ __webpack_exports__["a"] = (isObject);


/***/ }),
/* 13 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

/* harmony default export */ __webpack_exports__["a"] = (isArray);


/***/ }),
/* 14 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
/* unused harmony export red */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(366);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(374);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);



var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
  var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
  var checked = 0;
  var passed = 0;
  Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
    if (data[letter]) {
      checked += 1;
      if (!isNaN(data[letter])) {
        passed += 1;
      }
      if (letter === 's' || letter === 'l') {
        var percentPatt = /^\d+%$/;
        if (percentPatt.test(data[letter])) {
          passed += 1;
        }
      }
    }
  });
  return checked === passed ? data : false;
};

var toState = function toState(data, oldHue) {
  var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
  var hsl = color.toHsl();
  var hsv = color.toHsv();
  var rgb = color.toRgb();
  var hex = color.toHex();
  if (hsl.s === 0) {
    hsl.h = oldHue || 0;
    hsv.h = oldHue || 0;
  }
  var transparent = hex === '000000' && rgb.a === 0;

  return {
    hsl: hsl,
    hex: transparent ? 'transparent' : '#' + hex,
    rgb: rgb,
    hsv: hsv,
    oldHue: data.h || oldHue || hsl.h,
    source: data.source
  };
};

var isValidHex = function isValidHex(hex) {
  if (hex === 'transparent') {
    return true;
  }
  // disable hex4 and hex8
  var lh = String(hex).charAt(0) === '#' ? 1 : 0;
  return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
};

var getContrastingColor = function getContrastingColor(data) {
  if (!data) {
    return '#fff';
  }
  var col = toState(data);
  if (col.hex === 'transparent') {
    return 'rgba(0,0,0,0.4)';
  }
  var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
  return yiq >= 128 ? '#000' : '#fff';
};

var red = {
  hsl: { a: 1, h: 0, l: 0.5, s: 1 },
  hex: '#ff0000',
  rgb: { r: 255, g: 0, b: 0, a: 1 },
  hsv: { h: 0, s: 1, v: 1, a: 1 }
};

var isvalidColorString = function isvalidColorString(string, type) {
  var stringWithoutDegree = string.replace('°', '');
  return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
};

/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

var freeGlobal = __webpack_require__(92);

/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();

module.exports = root;


/***/ }),
/* 16 */
/***/ (function(module, exports) {

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

module.exports = isObjectLike;


/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(26),
    getRawTag = __webpack_require__(183),
    objectToString = __webpack_require__(184);

/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? getRawTag(value)
    : objectToString(value);
}

module.exports = baseGetTag;


/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsNative = __webpack_require__(209),
    getValue = __webpack_require__(212);

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = getValue(object, key);
  return baseIsNative(value) ? value : undefined;
}

module.exports = getNative;


/***/ }),
/* 19 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__ = __webpack_require__(311);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getValue_js__ = __webpack_require__(316);



/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = Object(__WEBPACK_IMPORTED_MODULE_1__getValue_js__["a" /* default */])(object, key);
  return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__["a" /* default */])(value) ? value : undefined;
}

/* harmony default export */ __webpack_exports__["a"] = (getNative);


/***/ }),
/* 20 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}

/* harmony default export */ __webpack_exports__["a"] = (isObjectLike);


/***/ }),
/* 21 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__ = __webpack_require__(133);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__ = __webpack_require__(380);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseMap_js__ = __webpack_require__(418);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(13);





/**
 * Creates an array of values by running each element in `collection` thru
 * `iteratee`. The iteratee is invoked with three arguments:
 * (value, index|key, collection).
 *
 * Many lodash methods are guarded to work as iteratees for methods like
 * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
 *
 * The guarded methods are:
 * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
 * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
 * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * _.map([4, 8], square);
 * // => [16, 64]
 *
 * _.map({ 'a': 4, 'b': 8 }, square);
 * // => [16, 64] (iteration order is not guaranteed)
 *
 * var users = [
 *   { 'user': 'barney' },
 *   { 'user': 'fred' }
 * ];
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, 'user');
 * // => ['barney', 'fred']
 */
function map(collection, iteratee) {
  var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_2__baseMap_js__["a" /* default */];
  return func(collection, Object(__WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__["a" /* default */])(iteratee, 3));
}

/* harmony default export */ __webpack_exports__["a"] = (map);


/***/ }),
/* 22 */
/***/ (function(module, exports) {

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}

module.exports = isObject;


/***/ }),
/* 23 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(42);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(312);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(313);




/** `Object#toString` result references. */
var nullTag = '[object Null]',
    undefinedTag = '[object Undefined]';

/** Built-in value references. */
var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return (symToStringTag && symToStringTag in Object(value))
    ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value)
    : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (baseGetTag);


/***/ }),
/* 24 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(75);



/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (isArrayLike);


/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

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; };

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _reactColor = __webpack_require__(91);

var _CircleColorPicker = __webpack_require__(456);

var _CircleColorPicker2 = _interopRequireDefault(_CircleColorPicker);

var _GlobalColorPicker = __webpack_require__(457);

var _GlobalColorPicker2 = _interopRequireDefault(_GlobalColorPicker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ColorOption = function ColorOption(props) {
    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        colorPicker = _useState2[0],
        setColorPicker = _useState2[1];

    var _useState3 = (0, _react.useState)(false),
        _useState4 = _slicedToArray(_useState3, 2),
        colorSelecor = _useState4[0],
        setColorSelecor = _useState4[1];

    var toggleColorPicker = function toggleColorPicker(e) {
        if (typeof props.color === 'string' && !props.color.includes('gcid')) {
            setColorPicker(!colorPicker);
        } else {
            setColorPicker(!colorPicker);
        }
    };

    var updateColor = function updateColor(e) {
        if (typeof props.color === 'string' && !props.color.includes('gcid')) {
            props.setColor(e.rgb.a !== 1 ? 'rgba(' + e.rgb.r + ',' + e.rgb.g + ',' + e.rgb.b + ',' + e.rgb.a + ')' : e.hex);
        } else {
            props.setColor(e.rgb.a !== 1 ? 'rgba(' + e.rgb.r + ',' + e.rgb.g + ',' + e.rgb.b + ',' + e.rgb.a + ')' : e.hex);
        }
    };

    var updateColorCircle = function updateColorCircle(bgColor) {
        props.setColor(bgColor);
    };

    (0, _react.useEffect)(function () {
        var clickListener = function clickListener(event) {
            if (!(event.target.classList.contains('chrome-picker') || event.target.closest('div.chrome-picker'))) {
                document.removeEventListener('click', clickListener);
                setColorPicker(false);
            }
        };
        if (colorPicker) {
            setTimeout(function () {
                document.addEventListener('click', clickListener);
            }, 1000);
        }
    }, [colorPicker]);

    return wp.element.createElement(
        'div',
        { className: 'pac_da_color_picker' },
        wp.element.createElement(
            'div',
            { className: 'pac_da_color_picker_inner' },
            wp.element.createElement(
                'div',
                { className: 'custom_color' },
                wp.element.createElement(
                    'div',
                    { className: typeof props.color === 'string' && props.color.includes('gcid') && props.diviGlobalColor !== null ? 'btn global' : 'btn' },
                    wp.element.createElement(
                        'div',
                        { style: { backgroundColor: typeof props.color === 'string' && props.color.includes('gcid') && props.diviGlobalColor !== null ? props.diviGlobalColor[props.color] !== undefined && props.diviGlobalColor[props.color] !== null ? props.diviGlobalColor[props.color].color : '' : _typeof(props.color) === 'object' ? 'rgba(' + props.color.r + ',' + props.color.g + ',' + props.color.b + ',' + props.color.a + ')' : props.color }, onClick: toggleColorPicker },
                        wp.element.createElement(
                            'svg',
                            { fill: props.color === '#ffffff' | props.color === 'rgb(255, 255, 255)' ? "#2B87DA" : _typeof(props.color) === 'object' ? props.color.a === 0 ? '#2B87DA' : "#ffffff" : "#ffffff", width: '29', height: '28', viewBox: '0 0 29 28', xmlns: 'http://www.w3.org/2000/svg' },
                            wp.element.createElement('path', { d: 'M21.3677 6.69638C21.147 6.4756 20.8849 6.30047 20.5965 6.18098C20.3081 6.0615 19.9989 6 19.6867 6C19.3745 6 19.0654 6.0615 18.777 6.18098C18.4885 6.30047 18.2265 6.4756 18.0057 6.69638L16.3243 8.37699L15.7641 7.816C15.6905 7.74243 15.6031 7.68408 15.5069 7.64429C15.4108 7.60449 15.3077 7.58403 15.2036 7.58407C15.0995 7.5841 14.9965 7.60464 14.9004 7.6445C14.8042 7.68437 14.7169 7.74277 14.6433 7.81639C14.5697 7.89001 14.5114 7.9774 14.4716 8.07357C14.4318 8.16974 14.4113 8.2728 14.4114 8.37688C14.4114 8.48095 14.4319 8.584 14.4718 8.68014C14.5117 8.77628 14.5701 8.86363 14.6437 8.9372L19.1261 13.4188C19.2761 13.5597 19.4751 13.6367 19.6808 13.6335C19.8866 13.6303 20.0831 13.5472 20.2286 13.4017C20.3742 13.2562 20.4575 13.0599 20.4608 12.8541C20.4641 12.6483 20.3873 12.4493 20.2465 12.2992L19.6863 11.739L21.3677 10.0576C21.8134 9.61183 22.0637 9.00732 22.0637 8.37699C22.0637 7.74667 21.8134 7.14215 21.3677 6.69638Z' }),
                            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M14.6684 10.0339L8.50535 16.1977C8.15756 16.5453 7.92609 16.9922 7.84279 17.4768C7.75949 17.9614 7.82847 18.4599 8.04023 18.9036L6.80017 20.1437L7.92058 21.2649L9.16064 20.0241C9.60433 20.2359 10.1028 20.305 10.5874 20.2219C11.072 20.1387 11.5189 19.9074 11.8666 19.5597L18.0296 13.3967L14.6684 10.0331V10.0339ZM15.7888 13.3959L14.6684 12.2755L9.62576 17.3181C9.48142 17.4676 9.40155 17.6677 9.40336 17.8755C9.40516 18.0832 9.4885 18.282 9.63541 18.4289C9.78232 18.5758 9.98106 18.6591 10.1888 18.6609C10.3966 18.6627 10.5967 18.5829 10.7462 18.4385L15.7888 13.3959Z' })
                        )
                    )
                ),
                colorPicker === true ? wp.element.createElement(_reactColor.ChromePicker, { name: 'colorPicker', color: props.color, onChange: updateColor }) : ''
            ),
            colorSelecor === false ? wp.element.createElement(_CircleColorPicker2.default, { colors: props.colorPalette, onChange: updateColorCircle }) : wp.element.createElement(_GlobalColorPicker2.default, { diviGlobalColor: props.diviGlobalColor, onChange: updateColorCircle })
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_global_defined_selector' },
            wp.element.createElement(
                'span',
                { className: colorSelecor === false ? 'active' : '', onClick: function onClick() {
                        return setColorSelecor(false);
                    } },
                'Saved'
            ),
            wp.element.createElement(
                'span',
                { className: colorSelecor === true ? 'active' : '', onClick: function onClick() {
                        return setColorSelecor(true);
                    } },
                'Global'
            )
        )
    );
};
exports.default = ColorOption;

/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(15);

/** Built-in value references. */
var Symbol = root.Symbol;

module.exports = Symbol;


/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(94),
    baseKeys = __webpack_require__(191),
    isArrayLike = __webpack_require__(32);

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}

module.exports = keys;


/***/ }),
/* 28 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

/* harmony default export */ __webpack_exports__["a"] = (eq);


/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _ColorOption = __webpack_require__(25);

var _ColorOption2 = _interopRequireDefault(_ColorOption);

var _SelectList = __webpack_require__(498);

var _SelectList2 = _interopRequireDefault(_SelectList);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var StyleSettings = function StyleSettings(props) {
    var _useState = (0, _react.useState)(null),
        _useState2 = _slicedToArray(_useState, 2),
        timeoutId = _useState2[0],
        setTimeoutId = _useState2[1];

    var checkUnit = function checkUnit(value) {
        var pattern = /(min|max|clamp|calc)\(([^)]*)\)/;
        var isMatch = pattern.test(value);
        var containsImportant = value.includes('!important');
        if (isMatch || containsImportant) {
            return value;
        } else {
            var hasUnit = /^-?\d+(\.\d+)?(vh|px|em|rem|vw|%)$/.test(value) && value !== '';
            hasUnit = hasUnit === false ? hasUnit : value.replace(/[^0-9]/g, '') === value ? false : hasUnit;
            var valueWithPx = hasUnit ? value : (value.replace(/[^0-9]/g, '') === '' ? '0' : value.replace(/[^0-9]/g, '')) + 'px';
            return valueWithPx;
        }
    };

    var updateFontFamily = function updateFontFamily(e) {
        props.setFontFamily(e.target.value);
        if (props.fontFamilyList[e.target.value].styles[props.fontWeight] === undefined) {
            props.setFontWeight(Object.entries(props.fontFamilyList[e.target.value].styles)[0][0]);
        }
    };
    var updateFontWeight = function updateFontWeight(e) {
        props.setFontWeight(e.target.value);
    };
    var updateListStyle = function updateListStyle(e) {
        props.setListT(e.target.value);
    };
    var updateListPosition = function updateListPosition(e) {
        props.setListP(e.target.value);
    };
    var updateListIndent = function updateListIndent(e) {
        var value = e.target.value;
        props.setListI(value);
        if (timeoutId) {
            clearTimeout(timeoutId);
        }
        var newTimeoutId = setTimeout(function () {
            var newValue = checkUnit(value);
            if (newValue !== value) {
                props.setListI(newValue);
            }
        }, 2000);
        setTimeoutId(newTimeoutId);
    };
    var updateUnderlineStyle = function updateUnderlineStyle(e) {
        props.setUnderlineStyle(e.target.value);
    };
    var updateFontStyle = function updateFontStyle(val) {
        val === 'italic' ? props.setFontStyle({ italic: !props.fontStyle.italic, uppercase: props.fontStyle.uppercase, capitalize: props.fontStyle.capitalize, underline: props.fontStyle.underline, line_through: props.fontStyle.line_through }) : '';
        val === 'uppercase' ? props.setFontStyle({ italic: props.fontStyle.italic, uppercase: !props.fontStyle.uppercase, capitalize: props.fontStyle.capitalize & props.fontStyle.uppercase, underline: props.fontStyle.underline, line_through: props.fontStyle.line_through }) : '';
        val === 'capitalize' ? props.setFontStyle({ italic: props.fontStyle.italic, uppercase: props.fontStyle.uppercase & props.fontStyle.capitalize, capitalize: !props.fontStyle.capitalize, underline: props.fontStyle.underline, line_through: props.fontStyle.line_through }) : '';
        val === 'underline' ? props.setFontStyle({ italic: props.fontStyle.italic, uppercase: props.fontStyle.uppercase, capitalize: props.fontStyle.capitalize, underline: !props.fontStyle.underline, line_through: props.fontStyle.line_through & props.fontStyle.underline }) : '';
        val === 'line_through' ? props.setFontStyle({ italic: props.fontStyle.italic, uppercase: props.fontStyle.uppercase, capitalize: props.fontStyle.capitalize, underline: props.fontStyle.underline & props.fontStyle.line_through, line_through: !props.fontStyle.line_through }) : '';
    };

    var handleTextSize = function handleTextSize(e) {
        var value = e.target.value;
        props.setTextSize(value);
        if (timeoutId) {
            clearTimeout(timeoutId);
        }
        var newTimeoutId = setTimeout(function () {
            var newValue = checkUnit(value);
            if (newValue !== value) {
                props.setTextSize(newValue);
            }
        }, 2000);
        setTimeoutId(newTimeoutId);
    };
    var handleLetterSpacing = function handleLetterSpacing(e) {
        var value = e.target.value;
        props.setTextLetterSpacing(value);
        if (timeoutId) {
            clearTimeout(timeoutId);
        }
        var newTimeoutId = setTimeout(function () {
            var newValue = checkUnit(value);
            if (newValue !== value) {
                props.setTextLetterSpacing(newValue);
            }
        }, 2000);
        setTimeoutId(newTimeoutId);
    };
    var handleLineHeight = function handleLineHeight(e) {
        var value = e.target.value;
        props.setTextLineHeight(value);
        if (timeoutId) {
            clearTimeout(timeoutId);
        }
        var newTimeoutId = setTimeout(function () {
            var newValue = checkUnit(value);
            if (newValue !== value) {
                props.setTextLineHeight(newValue);
            }
        }, 1000);
        setTimeoutId(newTimeoutId);
    };

    (0, _react.useEffect)(function () {
        return function () {
            if (timeoutId) {
                clearTimeout(timeoutId);
            }
        };
    }, [timeoutId]);

    return wp.element.createElement(
        'div',
        { className: 'pac_da_font_setting_card' },
        wp.element.createElement(
            'div',
            { className: 'pac_da_device' },
            props.device == 'Desktop' ? wp.element.createElement(
                'svg',
                { width: '23', height: '22', viewBox: '0 0 23 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M15.881 4.71429H6.45246C6.02032 4.71429 5.66675 5.06787 5.66675 5.50001V13.3572C5.66675 13.7893 6.02032 14.1429 6.45246 14.1429H10.381V14.9286H9.59532C9.20246 14.9286 8.80961 15.3214 8.80961 15.7143C8.80961 16.1072 9.20246 16.5 9.59532 16.5H12.7382C13.131 16.5 13.5239 16.1072 13.5239 15.7143C13.5239 15.3214 13.131 14.9286 12.7382 14.9286H11.9525V14.1429H15.881C16.3132 14.1429 16.6667 13.7893 16.6667 13.3572V5.50001C16.6667 5.06787 16.3132 4.71429 15.881 4.71429ZM11.9525 13.3572H10.381V12.5714H11.9525V13.3572ZM15.0953 11.7857H7.23818V6.28572H15.0953V11.7857Z', fill: '#2B87DA' })
            ) : props.device == 'Tablet' ? wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M14.9285 5.5H7.07136C6.63922 5.5 6.28564 5.85357 6.28564 6.28571V15.7143C6.28564 16.1464 6.63922 16.5 7.07136 16.5H14.9285C15.3606 16.5 15.7142 16.1464 15.7142 15.7143V6.28571C15.7142 5.85357 15.3606 5.5 14.9285 5.5ZM11.7856 15.7143H10.2142V14.9286H11.7856V15.7143ZM14.1428 14.1429H7.85707V7.07143H14.1428V14.1429Z', fill: '#2B87DA' })
            ) : props.device == 'Phone' ? wp.element.createElement(
                'svg',
                { width: '23', height: '22', viewBox: '0 0 23 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M14.1899 5.5H9.47566C9.04351 5.5 8.68994 5.85357 8.68994 6.28571V15.7143C8.68994 16.1464 9.04351 16.5 9.47566 16.5H14.1899C14.6221 16.5 14.9757 16.1464 14.9757 15.7143V6.28571C14.9757 5.85357 14.6221 5.5 14.1899 5.5ZM12.6185 15.7143H11.0471V14.9286H12.6185V15.7143ZM13.4042 14.1429H10.2614V7.07143H13.4042V14.1429Z', fill: '#2B87DA' })
            ) : '',
            wp.element.createElement(
                'span',
                null,
                props.device
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_font_settings' },
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Font'
            ),
            wp.element.createElement(_SelectList2.default, { search: true, selectedOption: props.fontFamilyList[props.fontFamily] ? props.fontFamily : 'Initial', setSelectedOption: function setSelectedOption(val) {
                    return props.setFontFamily(val);
                }, options: props.fontFamilyList }),
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Font Weight'
            ),
            wp.element.createElement(
                'select',
                { className: 'pac_da_styles_select', value: props.fontFamilyList[props.fontFamily] ? props.fontWeight : '400', onChange: updateFontWeight },
                props.fontFamilyList[props.fontFamily] ? Object.keys(props.fontFamilyList[props.fontFamily].styles).map(function (key) {
                    return wp.element.createElement(
                        'option',
                        { key: key, className: 'pac_da_styles_options', value: key },
                        props.fontFamilyList[props.fontFamily].styles[key]
                    );
                }) : Object.keys(props.fontFamilyList.Initial.styles).map(function (key) {
                    return wp.element.createElement(
                        'option',
                        { key: key, className: 'pac_da_styles_options', value: key },
                        props.fontFamilyList.Initial.styles[key]
                    );
                })
            ),
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Font Style'
            ),
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_font' },
                wp.element.createElement(
                    'button',
                    { className: props.fontStyle.italic === true ? 'active' : '', onClick: function onClick() {
                            return updateFontStyle('italic');
                        } },
                    wp.element.createElement(
                        'svg',
                        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#bec9d6', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17 8H12C11.4 8 11 8.4 11 9C11 9.6 11.4 10 12 10H13.3L11.2 18H10C9.4 18 9 18.4 9 19C9 19.6 9.4 20 10 20H15C15.6 20 16 19.6 16 19C16 18.4 15.6 18 15 18H13.3L15.4 10H17C17.6 10 18 9.6 18 9C18 8.4 17.6 8 17 8Z' })
                    )
                ),
                wp.element.createElement(
                    'button',
                    { className: props.fontStyle.uppercase === true ? 'active' : '', onClick: function onClick() {
                            return updateFontStyle('uppercase');
                        } },
                    wp.element.createElement(
                        'svg',
                        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#bec9d6', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M10 10H12C12.6 10 13 9.6 13 9C13 8.4 12.6 8 12 8H6C5.4 8 5 8.4 5 9C5 9.6 5.4 10 6 10H8V19C8 19.6 8.4 20 9 20C9.6 20 10 19.6 10 19V10ZM20 10V19C20 19.6 19.6 20 19 20C18.4 20 18 19.6 18 19V10H16C15.4 10 15 9.6 15 9C15 8.4 15.4 8 16 8H22C22.6 8 23 8.4 23 9C23 9.6 22.6 10 22 10H20Z' })
                    )
                ),
                wp.element.createElement(
                    'button',
                    { className: props.fontStyle.capitalize === true ? 'active' : '', onClick: function onClick() {
                            return updateFontStyle('capitalize');
                        } },
                    wp.element.createElement(
                        'svg',
                        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#bec9d6', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M11 10H13C13.6 10 14 9.6 14 9C14 8.4 13.6 8 13 8H7C6.4 8 6 8.4 6 9C6 9.6 6.4 10 7 10H9V19C9 19.6 9.4 20 10 20C10.6 20 11 19.6 11 19V10ZM19 14V19C19 19.6 18.6 20 18 20C17.4 20 17 19.6 17 19V14H15C14.4 14 14 13.6 14 13C14 12.4 14.4 12 15 12H21C21.6 12 22 12.4 22 13C22 13.6 21.6 14 21 14H19Z' })
                    )
                ),
                wp.element.createElement(
                    'button',
                    { className: props.fontStyle.underline === true ? 'active' : '', onClick: function onClick() {
                            return updateFontStyle('underline');
                        } },
                    wp.element.createElement(
                        'svg',
                        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#bec9d6', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M8 21H20C20.6 21 21 21.4 21 22C21 22.6 20.6 23 20 23H8C7.4 23 7 22.6 7 22C7 21.4 7.4 21 8 21ZM10 8C10.6 8 11 8.4 11 9V15C11 16.7 12.3 18 14 18C15.7 18 17 16.7 17 15V9C17 8.4 17.4 8 18 8C18.6 8 19 8.4 19 9V15C19 17.8 16.8 20 14 20C11.2 20 9 17.8 9 15V9C9 8.4 9.4 8 10 8Z' })
                    )
                ),
                wp.element.createElement(
                    'button',
                    { className: props.fontStyle.line_through === true ? 'active' : '', onClick: function onClick() {
                            return updateFontStyle('line_through');
                        } },
                    wp.element.createElement(
                        'svg',
                        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#bec9d6', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M14.8 13C14.7 13 14.6 12.9 14.5 12.9C11.6 11.7 11 10 12.1 9C13 8.1 15.5 8.6 15.8 9.5C16 10 16.5 10.3 17.1 10.1C17.6 9.9 17.9 9.4 17.7 8.8C16.9 6.4 12.6 5.5 10.7 7.5C9.1 9.1 9.3 11.3 11 13H7C6.4 13 6 13.4 6 14C6 14.6 6.4 15 7 15H14.3C16.6 16.1 17 17.5 16 18.7C14.9 20 12.6 19.9 11.3 17.9C11 17.4 10.4 17.3 9.9 17.6C9.4 17.9 9.3 18.5 9.6 19C11.6 22.2 15.5 22.3 17.5 20C18.8 18.5 18.8 16.6 17.5 15H21C21.6 15 22 14.6 22 14C22 13.4 21.6 13 21 13H14.8Z' })
                    )
                )
            ),
            props.fontStyle.underline === true | props.fontStyle.line_through === true ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.stgPrefix + ' Text' + (props.fontStyle.underline === true ? ' Underline ' : '') + (props.fontStyle.line_through === true ? ' Strikethrough ' : '') + 'Color'
                ),
                wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.underlineColor, setColor: props.setUnderlineColor }),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.stgPrefix + ' Text' + (props.fontStyle.underline === true ? ' Underline ' : '') + (props.fontStyle.line_through === true ? ' Strikethrough ' : '') + 'Style'
                ),
                wp.element.createElement(
                    'select',
                    { className: 'pac_da_styles_select', value: props.underlineStyle, onChange: updateUnderlineStyle },
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'solid' },
                        'Solid'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'double' },
                        'Double'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'dotted' },
                        'Dotted'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'dashed' },
                        'Dashed'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'wavy' },
                        'Wavy'
                    )
                )
            ) : '',
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Text Color'
            ),
            wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.textColor, setColor: props.setTextColor }),
            props.stgPrefix === 'Link' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.stgPrefix + ' Text Hover Color'
                ),
                wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.textHColor === undefined ? '#2ea3f2' : props.textHColor, setColor: props.setTextHColor })
            ) : '',
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Text Size'
            ),
            wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: '14px', value: props.textSize, autoComplete: 'off', onChange: function onChange(e) {
                    return handleTextSize(e);
                } }),
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Letter Spacing'
            ),
            wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: '0px', value: props.textLetterSpacing, autoComplete: 'off', onChange: function onChange(e) {
                    return handleLetterSpacing(e);
                } }),
            wp.element.createElement(
                'div',
                { className: 'pac_da_styles_heading' },
                props.stgPrefix + ' Line height'
            ),
            wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: '1em', value: props.textLineHeight, autoComplete: 'off', onChange: function onChange(e) {
                    return handleLineHeight(e);
                } }),
            props.listType === 'Unordered' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Type'
                ),
                wp.element.createElement(
                    'select',
                    { className: 'pac_da_styles_select', value: props.listT, onChange: updateListStyle },
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'disc' },
                        'Disc'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'circle' },
                        'Circle'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'square' },
                        'Square'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'none' },
                        'None'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Position'
                ),
                wp.element.createElement(
                    'select',
                    { className: 'pac_da_styles_select', value: props.listP, onChange: updateListPosition },
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'inside' },
                        'Inside'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'outside' },
                        'Outside'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Position'
                ),
                wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: '0px', value: props.listI, autoComplete: 'off', onChange: updateListIndent })
            ) : props.listType === 'Ordered' ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Type'
                ),
                wp.element.createElement(
                    'select',
                    { className: 'pac_da_styles_select', value: props.listT, onChange: updateListStyle },
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'decimal' },
                        'Decimal'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'armenian' },
                        'Armenian'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'cjk-ideographic' },
                        'Cjk Ideographic'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'decimal-leading-zero' },
                        'Decimal Leading Zero'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'georgian' },
                        'Georgian'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'hebrew' },
                        'Hebrew'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'hiragana' },
                        'Hiragana'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'hiragana-iroha' },
                        'Hiragana Iroha'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'katakana' },
                        'Katakana'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'katakana-iroha' },
                        'Katakana Iroha'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'lower-alpha' },
                        'Lower Alpha'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'lower-greek' },
                        'Lower Greek'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'lower-latin' },
                        'Lower Latin'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'lower-roman' },
                        'Lower Roman'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'upper-alpha' },
                        'Upper Alpha'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'upper-greek' },
                        'Upper Greek'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'upper-latin' },
                        'Upper Latin'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'upper-roman' },
                        'Upper Roman'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'none' },
                        'None'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Position'
                ),
                wp.element.createElement(
                    'select',
                    { className: 'pac_da_styles_select', value: props.listP, onChange: updateListPosition },
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'inside' },
                        'Inside'
                    ),
                    wp.element.createElement(
                        'option',
                        { className: 'pac_da_styles_options', value: 'outside' },
                        'Outside'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_styles_heading' },
                    props.listType + ' List Style Position'
                ),
                wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: '0px', value: props.listI, autoComplete: 'off', onChange: updateListIndent })
            ) : ''
        )
    );
};
exports.default = StyleSettings;

/***/ }),
/* 30 */
/***/ (function(module, exports) {

module.exports = function(module) {
	if(!module.webpackPolyfill) {
		module.deprecate = function() {};
		module.paths = [];
		// module.parent = undefined by default
		if(!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),
/* 31 */
/***/ (function(module, exports) {

var g;

// This works in non-strict mode
g = (function() {
	return this;
})();

try {
	// This works if eval is allowed (see CSP)
	g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
	// This works if the window reference is available
	if(typeof window === "object")
		g = window;
}

// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}

module.exports = g;


/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(99),
    isLength = __webpack_require__(51);

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && isLength(value.length) && !isFunction(value);
}

module.exports = isArrayLike;


/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {

var listCacheClear = __webpack_require__(199),
    listCacheDelete = __webpack_require__(200),
    listCacheGet = __webpack_require__(201),
    listCacheHas = __webpack_require__(202),
    listCacheSet = __webpack_require__(203);

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;

module.exports = ListCache;


/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {

var eq = __webpack_require__(57);

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

module.exports = assocIndexOf;


/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18);

/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');

module.exports = nativeCreate;


/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {

var isKeyable = __webpack_require__(221);

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return isKeyable(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

module.exports = getMapData;


/***/ }),
/* 37 */
/***/ (function(module, exports, __webpack_require__) {

var DataView = __webpack_require__(236),
    Map = __webpack_require__(58),
    Promise = __webpack_require__(237),
    Set = __webpack_require__(238),
    WeakMap = __webpack_require__(239),
    baseGetTag = __webpack_require__(17),
    toSource = __webpack_require__(102);

/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
    mapCtorString = toSource(Map),
    promiseCtorString = toSource(Promise),
    setCtorString = toSource(Set),
    weakMapCtorString = toSource(WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = baseGetTag;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
    (Map && getTag(new Map) != mapTag) ||
    (Promise && getTag(Promise.resolve()) != promiseTag) ||
    (Set && getTag(new Set) != setTag) ||
    (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  getTag = function(value) {
    var result = baseGetTag(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? toSource(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

module.exports = getTag;


/***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) {

var isSymbol = __webpack_require__(62);

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || isSymbol(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = toKey;


/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {

var assignValue = __webpack_require__(114),
    baseAssignValue = __webpack_require__(115);

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      baseAssignValue(object, key, newValue);
    } else {
      assignValue(object, key, newValue);
    }
  }
  return object;
}

module.exports = copyObject;


/***/ }),
/* 40 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__ = __webpack_require__(301);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__ = __webpack_require__(302);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__ = __webpack_require__(303);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__ = __webpack_require__(304);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__ = __webpack_require__(305);






/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__["a" /* default */];
ListCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__["a" /* default */];
ListCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__["a" /* default */];
ListCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__["a" /* default */];
ListCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (ListCache);


/***/ }),
/* 41 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(28);


/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}

/* harmony default export */ __webpack_exports__["a"] = (assocIndexOf);


/***/ }),
/* 42 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);


/** Built-in value references. */
var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol;

/* harmony default export */ __webpack_exports__["a"] = (Symbol);


/***/ }),
/* 43 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);


/* Built-in method references that are verified to be native. */
var nativeCreate = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'create');

/* harmony default export */ __webpack_exports__["a"] = (nativeCreate);


/***/ }),
/* 44 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isKeyable_js__ = __webpack_require__(325);


/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return Object(__WEBPACK_IMPORTED_MODULE_0__isKeyable_js__["a" /* default */])(key)
    ? data[typeof key == 'string' ? 'string' : 'hash']
    : data.map;
}

/* harmony default export */ __webpack_exports__["a"] = (getMapData);


/***/ }),
/* 45 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

/* harmony default export */ __webpack_exports__["a"] = (identity);


/***/ }),
/* 46 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(20);



/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == symbolTag);
}

/* harmony default export */ __webpack_exports__["a"] = (isSymbol);


/***/ }),
/* 47 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isSymbol_js__ = __webpack_require__(46);


/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || Object(__WEBPACK_IMPORTED_MODULE_0__isSymbol_js__["a" /* default */])(value)) {
    return value;
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

/* harmony default export */ __webpack_exports__["a"] = (toKey);


/***/ }),
/* 48 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

var utils = __webpack_require__(9);
var normalizeHeaderName = __webpack_require__(160);
var enhanceError = __webpack_require__(85);

var DEFAULT_CONTENT_TYPE = {
  'Content-Type': 'application/x-www-form-urlencoded'
};

function setContentTypeIfUnset(headers, value) {
  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
    headers['Content-Type'] = value;
  }
}

function getDefaultAdapter() {
  var adapter;
  if (typeof XMLHttpRequest !== 'undefined') {
    // For browsers use XHR adapter
    adapter = __webpack_require__(86);
  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
    // For node use HTTP adapter
    adapter = __webpack_require__(86);
  }
  return adapter;
}

function stringifySafely(rawValue, parser, encoder) {
  if (utils.isString(rawValue)) {
    try {
      (parser || JSON.parse)(rawValue);
      return utils.trim(rawValue);
    } catch (e) {
      if (e.name !== 'SyntaxError') {
        throw e;
      }
    }
  }

  return (encoder || JSON.stringify)(rawValue);
}

var defaults = {

  transitional: {
    silentJSONParsing: true,
    forcedJSONParsing: true,
    clarifyTimeoutError: false
  },

  adapter: getDefaultAdapter(),

  transformRequest: [function transformRequest(data, headers) {
    normalizeHeaderName(headers, 'Accept');
    normalizeHeaderName(headers, 'Content-Type');

    if (utils.isFormData(data) ||
      utils.isArrayBuffer(data) ||
      utils.isBuffer(data) ||
      utils.isStream(data) ||
      utils.isFile(data) ||
      utils.isBlob(data)
    ) {
      return data;
    }
    if (utils.isArrayBufferView(data)) {
      return data.buffer;
    }
    if (utils.isURLSearchParams(data)) {
      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
      return data.toString();
    }
    if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
      setContentTypeIfUnset(headers, 'application/json');
      return stringifySafely(data);
    }
    return data;
  }],

  transformResponse: [function transformResponse(data) {
    var transitional = this.transitional;
    var silentJSONParsing = transitional && transitional.silentJSONParsing;
    var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
    var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';

    if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
      try {
        return JSON.parse(data);
      } catch (e) {
        if (strictJSONParsing) {
          if (e.name === 'SyntaxError') {
            throw enhanceError(e, this, 'E_JSON_PARSE');
          }
          throw e;
        }
      }
    }

    return data;
  }],

  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,

  xsrfCookieName: 'XSRF-TOKEN',
  xsrfHeaderName: 'X-XSRF-TOKEN',

  maxContentLength: -1,
  maxBodyLength: -1,

  validateStatus: function validateStatus(status) {
    return status >= 200 && status < 300;
  }
};

defaults.headers = {
  common: {
    'Accept': 'application/json, text/plain, */*'
  }
};

utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  defaults.headers[method] = {};
});

utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
});

module.exports = defaults;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 49 */
/***/ (function(module, exports, __webpack_require__) {

var baseForOwn = __webpack_require__(93),
    castFunction = __webpack_require__(193);

/**
 * Iterates over own enumerable string keyed properties of an object and
 * invokes `iteratee` for each property. The iteratee is invoked with three
 * arguments: (value, key, object). Iteratee functions may exit iteration
 * early by explicitly returning `false`.
 *
 * @static
 * @memberOf _
 * @since 0.3.0
 * @category Object
 * @param {Object} object The object to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Object} Returns `object`.
 * @see _.forOwnRight
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.forOwn(new Foo, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
 */
function forOwn(object, iteratee) {
  return object && baseForOwn(object, castFunction(iteratee));
}

module.exports = forOwn;


/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(15),
    stubFalse = __webpack_require__(189);

/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || stubFalse;

module.exports = isBuffer;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)(module)))

/***/ }),
/* 51 */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

module.exports = isLength;


/***/ }),
/* 52 */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

module.exports = baseUnary;


/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(92);

/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

module.exports = nodeUtil;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)(module)))

/***/ }),
/* 54 */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

module.exports = isPrototype;


/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(98);

/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);

module.exports = getPrototype;


/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(33),
    stackClear = __webpack_require__(204),
    stackDelete = __webpack_require__(205),
    stackGet = __webpack_require__(206),
    stackHas = __webpack_require__(207),
    stackSet = __webpack_require__(208);

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new ListCache(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;

module.exports = Stack;


/***/ }),
/* 57 */
/***/ (function(module, exports) {

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || (value !== value && other !== other);
}

module.exports = eq;


/***/ }),
/* 58 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18),
    root = __webpack_require__(15);

/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');

module.exports = Map;


/***/ }),
/* 59 */
/***/ (function(module, exports, __webpack_require__) {

var mapCacheClear = __webpack_require__(213),
    mapCacheDelete = __webpack_require__(220),
    mapCacheGet = __webpack_require__(222),
    mapCacheHas = __webpack_require__(223),
    mapCacheSet = __webpack_require__(224);

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;

module.exports = MapCache;


/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {

var arrayFilter = __webpack_require__(235),
    stubArray = __webpack_require__(109);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return arrayFilter(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

module.exports = getSymbols;


/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(10),
    isSymbol = __webpack_require__(62);

/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

module.exports = isKey;


/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' ||
    (isObjectLike(value) && baseGetTag(value) == symbolTag);
}

module.exports = isSymbol;


/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {

var arrayLikeKeys = __webpack_require__(94),
    baseKeysIn = __webpack_require__(264),
    isArrayLike = __webpack_require__(32);

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}

module.exports = keysIn;


/***/ }),
/* 64 */
/***/ (function(module, exports, __webpack_require__) {

var Uint8Array = __webpack_require__(105);

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  return result;
}

module.exports = cloneArrayBuffer;


/***/ }),
/* 65 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Checkboard */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__ = __webpack_require__(289);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };





var Checkboard = function Checkboard(_ref) {
  var white = _ref.white,
      grey = _ref.grey,
      size = _ref.size,
      renderers = _ref.renderers,
      borderRadius = _ref.borderRadius,
      boxShadow = _ref.boxShadow,
      children = _ref.children;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      grid: {
        borderRadius: borderRadius,
        boxShadow: boxShadow,
        absolute: '0px 0px 0px 0px',
        background: 'url(' + __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__["a" /* get */](white, grey, size, renderers.canvas) + ') center left'
      }
    }
  });
  return Object(__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"])(children) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.grid });
};

Checkboard.defaultProps = {
  size: 8,
  white: 'transparent',
  grey: 'rgba(0,0,0,.08)',
  renderers: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Checkboard);

/***/ }),
/* 66 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

module.exports = ReactPropTypesSecret;


/***/ }),
/* 67 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stackClear_js__ = __webpack_require__(306);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__ = __webpack_require__(307);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stackGet_js__ = __webpack_require__(308);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stackHas_js__ = __webpack_require__(309);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stackSet_js__ = __webpack_require__(310);







/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */](entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = __WEBPACK_IMPORTED_MODULE_1__stackClear_js__["a" /* default */];
Stack.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__["a" /* default */];
Stack.prototype.get = __WEBPACK_IMPORTED_MODULE_3__stackGet_js__["a" /* default */];
Stack.prototype.has = __WEBPACK_IMPORTED_MODULE_4__stackHas_js__["a" /* default */];
Stack.prototype.set = __WEBPACK_IMPORTED_MODULE_5__stackSet_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (Stack);


/***/ }),
/* 68 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(11);



/* Built-in method references that are verified to be native. */
var Map = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Map');

/* harmony default export */ __webpack_exports__["a"] = (Map);


/***/ }),
/* 69 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(12);



/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

/* harmony default export */ __webpack_exports__["a"] = (isFunction);


/***/ }),
/* 70 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__ = __webpack_require__(324);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__ = __webpack_require__(326);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__ = __webpack_require__(327);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__ = __webpack_require__(328);






/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__["a" /* default */];
MapCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__["a" /* default */];
MapCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__["a" /* default */];
MapCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__["a" /* default */];
MapCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (MapCache);


/***/ }),
/* 71 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__ = __webpack_require__(122);


/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */]) {
    Object(__WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */])(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

/* harmony default export */ __webpack_exports__["a"] = (baseAssignValue);


/***/ }),
/* 72 */
/***/ (function(module, exports) {

module.exports = function(originalModule) {
	if(!originalModule.webpackPolyfill) {
		var module = Object.create(originalModule);
		// module.parent = undefined by default
		if(!module.children) module.children = [];
		Object.defineProperty(module, "loaded", {
			enumerable: true,
			get: function() {
				return module.l;
			}
		});
		Object.defineProperty(module, "id", {
			enumerable: true,
			get: function() {
				return module.i;
			}
		});
		Object.defineProperty(module, "exports", {
			enumerable: true,
		});
		module.webpackPolyfill = 1;
	}
	return module;
};


/***/ }),
/* 73 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;

  return value === proto;
}

/* harmony default export */ __webpack_exports__["a"] = (isPrototype);


/***/ }),
/* 74 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__ = __webpack_require__(337);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(20);



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = Object(__WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */])(function() { return arguments; }()) ? __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */] : function(value) {
  return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

/* harmony default export */ __webpack_exports__["a"] = (isArguments);


/***/ }),
/* 75 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' &&
    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}

/* harmony default export */ __webpack_exports__["a"] = (isLength);


/***/ }),
/* 76 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__ = __webpack_require__(339);



/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (isBuffer);

/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(72)(module)))

/***/ }),
/* 77 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__ = __webpack_require__(341);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseUnary_js__ = __webpack_require__(342);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__ = __webpack_require__(343);




/* Node.js helper references. */
var nodeIsTypedArray = __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */].isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? Object(__WEBPACK_IMPORTED_MODULE_1__baseUnary_js__["a" /* default */])(nodeIsTypedArray) : __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (isTypedArray);


/***/ }),
/* 78 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

/* harmony default export */ __webpack_exports__["a"] = (isIndex);


/***/ }),
/* 79 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeys_js__ = __webpack_require__(370);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(24);




/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeys_js__["a" /* default */])(object);
}

/* harmony default export */ __webpack_exports__["a"] = (keys);


/***/ }),
/* 80 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isSymbol_js__ = __webpack_require__(46);



/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
    reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
      value == null || Object(__WEBPACK_IMPORTED_MODULE_1__isSymbol_js__["a" /* default */])(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
    (object != null && value in Object(object));
}

/* harmony default export */ __webpack_exports__["a"] = (isKey);


/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

if (process.env.NODE_ENV === 'production') {
  module.exports = __webpack_require__(150);
} else {
  module.exports = __webpack_require__(152);
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
            (typeof self !== "undefined" && self) ||
            window;
var apply = Function.prototype.apply;

// DOM APIs, for completeness

exports.setTimeout = function() {
  return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
};
exports.setInterval = function() {
  return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
};
exports.clearTimeout =
exports.clearInterval = function(timeout) {
  if (timeout) {
    timeout.close();
  }
};

function Timeout(id, clearFn) {
  this._id = id;
  this._clearFn = clearFn;
}
Timeout.prototype.unref = Timeout.prototype.ref = function() {};
Timeout.prototype.close = function() {
  this._clearFn.call(scope, this._id);
};

// Does not start the time, just sets up the members needed.
exports.enroll = function(item, msecs) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = msecs;
};

exports.unenroll = function(item) {
  clearTimeout(item._idleTimeoutId);
  item._idleTimeout = -1;
};

exports._unrefActive = exports.active = function(item) {
  clearTimeout(item._idleTimeoutId);

  var msecs = item._idleTimeout;
  if (msecs >= 0) {
    item._idleTimeoutId = setTimeout(function onTimeout() {
      if (item._onTimeout)
        item._onTimeout();
    }, msecs);
  }
};

// setimmediate attaches itself to the global object
__webpack_require__(151);
// On some exotic environments, it's not clear which object `setimmediate` was
// able to install onto.  Search each possibility in the same order as the
// `setimmediate` library.
exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
                       (typeof global !== "undefined" && global.setImmediate) ||
                       (this && this.setImmediate);
exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
                         (typeof global !== "undefined" && global.clearImmediate) ||
                         (this && this.clearImmediate);

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(31)))

/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = function bind(fn, thisArg) {
  return function wrap() {
    var args = new Array(arguments.length);
    for (var i = 0; i < args.length; i++) {
      args[i] = arguments[i];
    }
    return fn.apply(thisArg, args);
  };
};


/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

function encode(val) {
  return encodeURIComponent(val).
    replace(/%3A/gi, ':').
    replace(/%24/g, '$').
    replace(/%2C/gi, ',').
    replace(/%20/g, '+').
    replace(/%5B/gi, '[').
    replace(/%5D/gi, ']');
}

/**
 * Build a URL by appending params to the end
 *
 * @param {string} url The base of the url (e.g., http://www.google.com)
 * @param {object} [params] The params to be appended
 * @returns {string} The formatted url
 */
module.exports = function buildURL(url, params, paramsSerializer) {
  /*eslint no-param-reassign:0*/
  if (!params) {
    return url;
  }

  var serializedParams;
  if (paramsSerializer) {
    serializedParams = paramsSerializer(params);
  } else if (utils.isURLSearchParams(params)) {
    serializedParams = params.toString();
  } else {
    var parts = [];

    utils.forEach(params, function serialize(val, key) {
      if (val === null || typeof val === 'undefined') {
        return;
      }

      if (utils.isArray(val)) {
        key = key + '[]';
      } else {
        val = [val];
      }

      utils.forEach(val, function parseValue(v) {
        if (utils.isDate(v)) {
          v = v.toISOString();
        } else if (utils.isObject(v)) {
          v = JSON.stringify(v);
        }
        parts.push(encode(key) + '=' + encode(v));
      });
    });

    serializedParams = parts.join('&');
  }

  if (serializedParams) {
    var hashmarkIndex = url.indexOf('#');
    if (hashmarkIndex !== -1) {
      url = url.slice(0, hashmarkIndex);
    }

    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  }

  return url;
};


/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Update an Error with the specified config, error code, and response.
 *
 * @param {Error} error The error to update.
 * @param {Object} config The config.
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
 * @param {Object} [request] The request.
 * @param {Object} [response] The response.
 * @returns {Error} The error.
 */
module.exports = function enhanceError(error, config, code, request, response) {
  error.config = config;
  if (code) {
    error.code = code;
  }

  error.request = request;
  error.response = response;
  error.isAxiosError = true;

  error.toJSON = function toJSON() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: this.config,
      code: this.code
    };
  };
  return error;
};


/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);
var settle = __webpack_require__(161);
var cookies = __webpack_require__(162);
var buildURL = __webpack_require__(84);
var buildFullPath = __webpack_require__(163);
var parseHeaders = __webpack_require__(166);
var isURLSameOrigin = __webpack_require__(167);
var createError = __webpack_require__(87);

module.exports = function xhrAdapter(config) {
  return new Promise(function dispatchXhrRequest(resolve, reject) {
    var requestData = config.data;
    var requestHeaders = config.headers;
    var responseType = config.responseType;

    if (utils.isFormData(requestData)) {
      delete requestHeaders['Content-Type']; // Let the browser set it
    }

    var request = new XMLHttpRequest();

    // HTTP basic authentication
    if (config.auth) {
      var username = config.auth.username || '';
      var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
    }

    var fullPath = buildFullPath(config.baseURL, config.url);
    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);

    // Set the request timeout in MS
    request.timeout = config.timeout;

    function onloadend() {
      if (!request) {
        return;
      }
      // Prepare the response
      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
      var responseData = !responseType || responseType === 'text' ||  responseType === 'json' ?
        request.responseText : request.response;
      var response = {
        data: responseData,
        status: request.status,
        statusText: request.statusText,
        headers: responseHeaders,
        config: config,
        request: request
      };

      settle(resolve, reject, response);

      // Clean up request
      request = null;
    }

    if ('onloadend' in request) {
      // Use onloadend if available
      request.onloadend = onloadend;
    } else {
      // Listen for ready state to emulate onloadend
      request.onreadystatechange = function handleLoad() {
        if (!request || request.readyState !== 4) {
          return;
        }

        // The request errored out and we didn't get a response, this will be
        // handled by onerror instead
        // With one exception: request that using file: protocol, most browsers
        // will return status as 0 even though it's a successful request
        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
          return;
        }
        // readystate handler is calling before onerror or ontimeout handlers,
        // so we should call onloadend on the next 'tick'
        setTimeout(onloadend);
      };
    }

    // Handle browser request cancellation (as opposed to a manual cancellation)
    request.onabort = function handleAbort() {
      if (!request) {
        return;
      }

      reject(createError('Request aborted', config, 'ECONNABORTED', request));

      // Clean up request
      request = null;
    };

    // Handle low level network errors
    request.onerror = function handleError() {
      // Real errors are hidden from us by the browser
      // onerror should only fire if it's a network error
      reject(createError('Network Error', config, null, request));

      // Clean up request
      request = null;
    };

    // Handle timeout
    request.ontimeout = function handleTimeout() {
      var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
      if (config.timeoutErrorMessage) {
        timeoutErrorMessage = config.timeoutErrorMessage;
      }
      reject(createError(
        timeoutErrorMessage,
        config,
        config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
        request));

      // Clean up request
      request = null;
    };

    // Add xsrf header
    // This is only done if running in a standard browser environment.
    // Specifically not if we're in a web worker, or react-native.
    if (utils.isStandardBrowserEnv()) {
      // Add xsrf header
      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
        cookies.read(config.xsrfCookieName) :
        undefined;

      if (xsrfValue) {
        requestHeaders[config.xsrfHeaderName] = xsrfValue;
      }
    }

    // Add headers to the request
    if ('setRequestHeader' in request) {
      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
          // Remove Content-Type if data is undefined
          delete requestHeaders[key];
        } else {
          // Otherwise add header to the request
          request.setRequestHeader(key, val);
        }
      });
    }

    // Add withCredentials to request if needed
    if (!utils.isUndefined(config.withCredentials)) {
      request.withCredentials = !!config.withCredentials;
    }

    // Add responseType to request if needed
    if (responseType && responseType !== 'json') {
      request.responseType = config.responseType;
    }

    // Handle progress if needed
    if (typeof config.onDownloadProgress === 'function') {
      request.addEventListener('progress', config.onDownloadProgress);
    }

    // Not all browsers support upload events
    if (typeof config.onUploadProgress === 'function' && request.upload) {
      request.upload.addEventListener('progress', config.onUploadProgress);
    }

    if (config.cancelToken) {
      // Handle cancellation
      config.cancelToken.promise.then(function onCanceled(cancel) {
        if (!request) {
          return;
        }

        request.abort();
        reject(cancel);
        // Clean up request
        request = null;
      });
    }

    if (!requestData) {
      requestData = null;
    }

    // Send the request
    request.send(requestData);
  });
};


/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var enhanceError = __webpack_require__(85);

/**
 * Create an Error with the specified message, config, error code, request and response.
 *
 * @param {string} message The error message.
 * @param {Object} config The config.
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
 * @param {Object} [request] The request.
 * @param {Object} [response] The response.
 * @returns {Error} The created error.
 */
module.exports = function createError(message, config, code, request, response) {
  var error = new Error(message);
  return enhanceError(error, config, code, request, response);
};


/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = function isCancel(value) {
  return !!(value && value.__CANCEL__);
};


/***/ }),
/* 89 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

/**
 * Config-specific merge-function which creates a new config-object
 * by merging two configuration objects together.
 *
 * @param {Object} config1
 * @param {Object} config2
 * @returns {Object} New object resulting from merging config2 to config1
 */
module.exports = function mergeConfig(config1, config2) {
  // eslint-disable-next-line no-param-reassign
  config2 = config2 || {};
  var config = {};

  var valueFromConfig2Keys = ['url', 'method', 'data'];
  var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
  var defaultToConfig2Keys = [
    'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
    'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
    'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
    'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
    'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
  ];
  var directMergeKeys = ['validateStatus'];

  function getMergedValue(target, source) {
    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
      return utils.merge(target, source);
    } else if (utils.isPlainObject(source)) {
      return utils.merge({}, source);
    } else if (utils.isArray(source)) {
      return source.slice();
    }
    return source;
  }

  function mergeDeepProperties(prop) {
    if (!utils.isUndefined(config2[prop])) {
      config[prop] = getMergedValue(config1[prop], config2[prop]);
    } else if (!utils.isUndefined(config1[prop])) {
      config[prop] = getMergedValue(undefined, config1[prop]);
    }
  }

  utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
    if (!utils.isUndefined(config2[prop])) {
      config[prop] = getMergedValue(undefined, config2[prop]);
    }
  });

  utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);

  utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
    if (!utils.isUndefined(config2[prop])) {
      config[prop] = getMergedValue(undefined, config2[prop]);
    } else if (!utils.isUndefined(config1[prop])) {
      config[prop] = getMergedValue(undefined, config1[prop]);
    }
  });

  utils.forEach(directMergeKeys, function merge(prop) {
    if (prop in config2) {
      config[prop] = getMergedValue(config1[prop], config2[prop]);
    } else if (prop in config1) {
      config[prop] = getMergedValue(undefined, config1[prop]);
    }
  });

  var axiosKeys = valueFromConfig2Keys
    .concat(mergeDeepPropertiesKeys)
    .concat(defaultToConfig2Keys)
    .concat(directMergeKeys);

  var otherKeys = Object
    .keys(config1)
    .concat(Object.keys(config2))
    .filter(function filterAxiosKeys(key) {
      return axiosKeys.indexOf(key) === -1;
    });

  utils.forEach(otherKeys, mergeDeepProperties);

  return config;
};


/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * A `Cancel` is an object that is thrown when an operation is canceled.
 *
 * @class
 * @param {string=} message The message.
 */
function Cancel(message) {
  this.message = message;
}

Cancel.prototype.toString = function toString() {
  return 'Cancel' + (this.message ? ': ' + this.message : '');
};

Cancel.prototype.__CANCEL__ = true;

module.exports = Cancel;


/***/ }),
/* 91 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_alpha_Alpha__ = __webpack_require__(180);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AlphaPicker", function() { return __WEBPACK_IMPORTED_MODULE_0__components_alpha_Alpha__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_block_Block__ = __webpack_require__(378);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BlockPicker", function() { return __WEBPACK_IMPORTED_MODULE_1__components_block_Block__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_circle_Circle__ = __webpack_require__(419);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CirclePicker", function() { return __WEBPACK_IMPORTED_MODULE_2__components_circle_Circle__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_chrome_Chrome__ = __webpack_require__(141);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_3__components_chrome_Chrome__["a"]; });
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ChromePicker", function() { return __WEBPACK_IMPORTED_MODULE_3__components_chrome_Chrome__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_compact_Compact__ = __webpack_require__(426);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CompactPicker", function() { return __WEBPACK_IMPORTED_MODULE_4__components_compact_Compact__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_github_Github__ = __webpack_require__(429);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "GithubPicker", function() { return __WEBPACK_IMPORTED_MODULE_5__components_github_Github__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_hue_Hue__ = __webpack_require__(431);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HuePicker", function() { return __WEBPACK_IMPORTED_MODULE_6__components_hue_Hue__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_material_Material__ = __webpack_require__(433);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialPicker", function() { return __WEBPACK_IMPORTED_MODULE_7__components_material_Material__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_photoshop_Photoshop__ = __webpack_require__(434);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PhotoshopPicker", function() { return __WEBPACK_IMPORTED_MODULE_8__components_photoshop_Photoshop__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_sketch_Sketch__ = __webpack_require__(440);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SketchPicker", function() { return __WEBPACK_IMPORTED_MODULE_9__components_sketch_Sketch__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_slider_Slider__ = __webpack_require__(443);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SliderPicker", function() { return __WEBPACK_IMPORTED_MODULE_10__components_slider_Slider__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_swatches_Swatches__ = __webpack_require__(447);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SwatchesPicker", function() { return __WEBPACK_IMPORTED_MODULE_11__components_swatches_Swatches__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__components_twitter_Twitter__ = __webpack_require__(451);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TwitterPicker", function() { return __WEBPACK_IMPORTED_MODULE_12__components_twitter_Twitter__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__components_google_Google__ = __webpack_require__(452);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "GooglePicker", function() { return __WEBPACK_IMPORTED_MODULE_13__components_google_Google__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__components_common_ColorWrap__ = __webpack_require__(131);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CustomPicker", function() { return __WEBPACK_IMPORTED_MODULE_14__components_common_ColorWrap__["a"]; });



















/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

module.exports = freeGlobal;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(31)))

/***/ }),
/* 93 */
/***/ (function(module, exports, __webpack_require__) {

var baseFor = __webpack_require__(185),
    keys = __webpack_require__(27);

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && baseFor(object, iteratee, keys);
}

module.exports = baseForOwn;


/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {

var baseTimes = __webpack_require__(187),
    isArguments = __webpack_require__(95),
    isArray = __webpack_require__(10),
    isBuffer = __webpack_require__(50),
    isIndex = __webpack_require__(96),
    isTypedArray = __webpack_require__(97);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value),
      isArg = !isArr && isArguments(value),
      isBuff = !isArr && !isArg && isBuffer(value),
      isType = !isArr && !isArg && !isBuff && isTypedArray(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? baseTimes(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           isIndex(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = arrayLikeKeys;


/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsArguments = __webpack_require__(188),
    isObjectLike = __webpack_require__(16);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
    !propertyIsEnumerable.call(value, 'callee');
};

module.exports = isArguments;


/***/ }),
/* 96 */
/***/ (function(module, exports) {

/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;

  return !!length &&
    (type == 'number' ||
      (type != 'symbol' && reIsUint.test(value))) &&
        (value > -1 && value % 1 == 0 && value < length);
}

module.exports = isIndex;


/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsTypedArray = __webpack_require__(190),
    baseUnary = __webpack_require__(52),
    nodeUtil = __webpack_require__(53);

/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;

module.exports = isTypedArray;


/***/ }),
/* 98 */
/***/ (function(module, exports) {

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

module.exports = overArg;


/***/ }),
/* 99 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    isObject = __webpack_require__(22);

/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!isObject(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = baseGetTag(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}

module.exports = isFunction;


/***/ }),
/* 100 */
/***/ (function(module, exports) {

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}

module.exports = identity;


/***/ }),
/* 101 */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

module.exports = arrayMap;


/***/ }),
/* 102 */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

module.exports = toSource;


/***/ }),
/* 103 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqualDeep = __webpack_require__(225),
    isObjectLike = __webpack_require__(16);

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}

module.exports = baseIsEqual;


/***/ }),
/* 104 */
/***/ (function(module, exports, __webpack_require__) {

var SetCache = __webpack_require__(226),
    arraySome = __webpack_require__(229),
    cacheHas = __webpack_require__(230);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Check that cyclic values are equal.
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1,
      result = true,
      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;

  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
        othValue = other[index];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, arrValue, index, other, array, stack)
        : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!arraySome(other, function(othValue, othIndex) {
            if (!cacheHas(seen, othIndex) &&
                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
        result = false;
        break;
      }
    } else if (!(
          arrValue === othValue ||
            equalFunc(arrValue, othValue, bitmask, customizer, stack)
        )) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}

module.exports = equalArrays;


/***/ }),
/* 105 */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(15);

/** Built-in value references. */
var Uint8Array = root.Uint8Array;

module.exports = Uint8Array;


/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(107),
    getSymbols = __webpack_require__(60),
    keys = __webpack_require__(27);

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return baseGetAllKeys(object, keys, getSymbols);
}

module.exports = getAllKeys;


/***/ }),
/* 107 */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(108),
    isArray = __webpack_require__(10);

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}

module.exports = baseGetAllKeys;


/***/ }),
/* 108 */
/***/ (function(module, exports) {

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

module.exports = arrayPush;


/***/ }),
/* 109 */
/***/ (function(module, exports) {

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

module.exports = stubArray;


/***/ }),
/* 110 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(22);

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !isObject(value);
}

module.exports = isStrictComparable;


/***/ }),
/* 111 */
/***/ (function(module, exports) {

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

module.exports = matchesStrictComparable;


/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(113),
    toKey = __webpack_require__(38);

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = castPath(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

module.exports = baseGet;


/***/ }),
/* 113 */
/***/ (function(module, exports, __webpack_require__) {

var isArray = __webpack_require__(10),
    isKey = __webpack_require__(61),
    stringToPath = __webpack_require__(243),
    toString = __webpack_require__(246);

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}

module.exports = castPath;


/***/ }),
/* 114 */
/***/ (function(module, exports, __webpack_require__) {

var baseAssignValue = __webpack_require__(115),
    eq = __webpack_require__(57);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
      (value === undefined && !(key in object))) {
    baseAssignValue(object, key, value);
  }
}

module.exports = assignValue;


/***/ }),
/* 115 */
/***/ (function(module, exports, __webpack_require__) {

var defineProperty = __webpack_require__(261);

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && defineProperty) {
    defineProperty(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}

module.exports = baseAssignValue;


/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {

var arrayPush = __webpack_require__(108),
    getPrototype = __webpack_require__(55),
    getSymbols = __webpack_require__(60),
    stubArray = __webpack_require__(109);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  var result = [];
  while (object) {
    arrayPush(result, getSymbols(object));
    object = getPrototype(object);
  }
  return result;
};

module.exports = getSymbolsIn;


/***/ }),
/* 117 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

if (process.env.NODE_ENV === 'production') {
  module.exports = __webpack_require__(294);
} else {
  module.exports = __webpack_require__(295);
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 118 */
/***/ (function(module, exports) {

module.exports = Function.call.bind(Object.prototype.hasOwnProperty);


/***/ }),
/* 119 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

/* harmony default export */ __webpack_exports__["a"] = (freeGlobal);

/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(31)))

/***/ }),
/* 120 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return (func + '');
    } catch (e) {}
  }
  return '';
}

/* harmony default export */ __webpack_exports__["a"] = (toSource);


/***/ }),
/* 121 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__eq_js__ = __webpack_require__(28);



/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if ((value !== undefined && !Object(__WEBPACK_IMPORTED_MODULE_1__eq_js__["a" /* default */])(object[key], value)) ||
      (value === undefined && !(key in object))) {
    Object(__WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__["a" /* default */])(object, key, value);
  }
}

/* harmony default export */ __webpack_exports__["a"] = (assignMergeValue);


/***/ }),
/* 122 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);


var defineProperty = (function() {
  try {
    var func = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

/* harmony default export */ __webpack_exports__["a"] = (defineProperty);


/***/ }),
/* 123 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__ = __webpack_require__(329);


/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = Object(__WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__["a" /* default */])();

/* harmony default export */ __webpack_exports__["a"] = (baseFor);


/***/ }),
/* 124 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);


/** Built-in value references. */
var Uint8Array = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Uint8Array;

/* harmony default export */ __webpack_exports__["a"] = (Uint8Array);


/***/ }),
/* 125 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(126);


/** Built-in value references. */
var getPrototype = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__["a" /* default */])(Object.getPrototypeOf, Object);

/* harmony default export */ __webpack_exports__["a"] = (getPrototype);


/***/ }),
/* 126 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}

/* harmony default export */ __webpack_exports__["a"] = (overArg);


/***/ }),
/* 127 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }

  if (key == '__proto__') {
    return;
  }

  return object[key];
}

/* harmony default export */ __webpack_exports__["a"] = (safeGet);


/***/ }),
/* 128 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(129);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__ = __webpack_require__(348);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(24);




/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object, true) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__["a" /* default */])(object);
}

/* harmony default export */ __webpack_exports__["a"] = (keysIn);


/***/ }),
/* 129 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseTimes_js__ = __webpack_require__(347);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArguments_js__ = __webpack_require__(74);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isBuffer_js__ = __webpack_require__(76);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isIndex_js__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__ = __webpack_require__(77);







/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = Object(__WEBPACK_IMPORTED_MODULE_2__isArray_js__["a" /* default */])(value),
      isArg = !isArr && Object(__WEBPACK_IMPORTED_MODULE_1__isArguments_js__["a" /* default */])(value),
      isBuff = !isArr && !isArg && Object(__WEBPACK_IMPORTED_MODULE_3__isBuffer_js__["a" /* default */])(value),
      isType = !isArr && !isArg && !isBuff && Object(__WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__["a" /* default */])(value),
      skipIndexes = isArr || isArg || isBuff || isType,
      result = skipIndexes ? Object(__WEBPACK_IMPORTED_MODULE_0__baseTimes_js__["a" /* default */])(value.length, String) : [],
      length = result.length;

  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) &&
        !(skipIndexes && (
           // Safari 9 has enumerable `arguments.length` in strict mode.
           key == 'length' ||
           // Node.js 0.10 has enumerable non-index properties on buffers.
           (isBuff && (key == 'offset' || key == 'parent')) ||
           // PhantomJS 2 has enumerable non-index properties on typed arrays.
           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
           // Skip index properties.
           Object(__WEBPACK_IMPORTED_MODULE_4__isIndex_js__["a" /* default */])(key, length)
        ))) {
      result.push(key);
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (arrayLikeKeys);


/***/ }),
/* 130 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__now_js__ = __webpack_require__(361);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__toNumber_js__ = __webpack_require__(362);




/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
    nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
      lastThis,
      maxWait,
      result,
      timerId,
      lastCallTime,
      lastInvokeTime = 0,
      leading = false,
      maxing = false,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(wait) || 0;
  if (Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax(Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }

  function invokeFunc(time) {
    var args = lastArgs,
        thisArg = lastThis;

    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }

  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }

  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime,
        timeWaiting = wait - timeSinceLastCall;

    return maxing
      ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
      : timeWaiting;
  }

  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
        timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
      (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  }

  function timerExpired() {
    var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }

  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }

  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }

  function flush() {
    return timerId === undefined ? result : trailingEdge(Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])());
  }

  function debounced() {
    var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])(),
        isInvoking = shouldInvoke(time);

    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;

    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}

/* harmony default export */ __webpack_exports__["a"] = (debounce);


/***/ }),
/* 131 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export ColorWrap */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__ = __webpack_require__(130);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var ColorWrap = function ColorWrap(Picker) {
  var ColorPicker = function (_ref) {
    _inherits(ColorPicker, _ref);

    function ColorPicker(props) {
      _classCallCheck(this, ColorPicker);

      var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));

      _this.handleChange = function (data, event) {
        var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
        if (isValidColor) {
          var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
          _this.setState(colors);
          _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
          _this.props.onChange && _this.props.onChange(colors, event);
        }
      };

      _this.handleSwatchHover = function (data, event) {
        var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
        if (isValidColor) {
          var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
          _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
        }
      };

      _this.state = _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](props.color, 0));

      _this.debounce = Object(__WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__["a" /* default */])(function (fn, data, event) {
        fn(data, event);
      }, 100);
      return _this;
    }

    _createClass(ColorPicker, [{
      key: 'render',
      value: function render() {
        var optionalEvents = {};
        if (this.props.onSwatchHover) {
          optionalEvents.onSwatchHover = this.handleSwatchHover;
        }

        return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Picker, _extends({}, this.props, this.state, {
          onChange: this.handleChange
        }, optionalEvents));
      }
    }], [{
      key: 'getDerivedStateFromProps',
      value: function getDerivedStateFromProps(nextProps, state) {
        return _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](nextProps.color, state.oldHue));
      }
    }]);

    return ColorPicker;
  }(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);

  ColorPicker.propTypes = _extends({}, Picker.propTypes);

  ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
    color: {
      h: 250,
      s: 0.50,
      l: 0.20,
      a: 1
    }
  });

  return ColorPicker;
};

/* harmony default export */ __webpack_exports__["a"] = (ColorWrap);

/***/ }),
/* 132 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__ = __webpack_require__(369);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__ = __webpack_require__(372);



/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
var baseEach = Object(__WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__["a" /* default */]);

/* harmony default export */ __webpack_exports__["a"] = (baseEach);


/***/ }),
/* 133 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length,
      result = Array(length);

  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (arrayMap);


/***/ }),
/* 134 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__ = __webpack_require__(383);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(20);



/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || (!Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && !Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(other))) {
    return value !== value && other !== other;
  }
  return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__["a" /* default */])(value, other, bitmask, customizer, baseIsEqual, stack);
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsEqual);


/***/ }),
/* 135 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SetCache_js__ = __webpack_require__(384);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__arraySome_js__ = __webpack_require__(387);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cacheHas_js__ = __webpack_require__(388);




/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      arrLength = array.length,
      othLength = other.length;

  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Check that cyclic values are equal.
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1,
      result = true,
      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new __WEBPACK_IMPORTED_MODULE_0__SetCache_js__["a" /* default */] : undefined;

  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
        othValue = other[index];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, arrValue, index, other, array, stack)
        : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!Object(__WEBPACK_IMPORTED_MODULE_1__arraySome_js__["a" /* default */])(other, function(othValue, othIndex) {
            if (!Object(__WEBPACK_IMPORTED_MODULE_2__cacheHas_js__["a" /* default */])(seen, othIndex) &&
                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
              return seen.push(othIndex);
            }
          })) {
        result = false;
        break;
      }
    } else if (!(
          arrValue === othValue ||
            equalFunc(arrValue, othValue, bitmask, customizer, stack)
        )) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (equalArrays);


/***/ }),
/* 136 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(12);


/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (isStrictComparable);


/***/ }),
/* 137 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function(object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue &&
      (srcValue !== undefined || (key in Object(object)));
  };
}

/* harmony default export */ __webpack_exports__["a"] = (matchesStrictComparable);


/***/ }),
/* 138 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__castPath_js__ = __webpack_require__(139);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toKey_js__ = __webpack_require__(47);



/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = Object(__WEBPACK_IMPORTED_MODULE_0__castPath_js__["a" /* default */])(path, object);

  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = object[Object(__WEBPACK_IMPORTED_MODULE_1__toKey_js__["a" /* default */])(path[index++])];
  }
  return (index && index == length) ? object : undefined;
}

/* harmony default export */ __webpack_exports__["a"] = (baseGet);


/***/ }),
/* 139 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isKey_js__ = __webpack_require__(80);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stringToPath_js__ = __webpack_require__(407);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toString_js__ = __webpack_require__(410);





/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
    return value;
  }
  return Object(__WEBPACK_IMPORTED_MODULE_1__isKey_js__["a" /* default */])(value, object) ? [value] : Object(__WEBPACK_IMPORTED_MODULE_2__stringToPath_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__toString_js__["a" /* default */])(value));
}

/* harmony default export */ __webpack_exports__["a"] = (castPath);


/***/ }),
/* 140 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return red; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return pink; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return purple; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deepPurple; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return indigo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return blue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return lightBlue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cyan; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return teal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return green; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return lightGreen; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return lime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return yellow; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return amber; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return orange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return deepOrange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return brown; });
/* unused harmony export grey */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return blueGrey; });
/* unused harmony export darkText */
/* unused harmony export lightText */
/* unused harmony export darkIcons */
/* unused harmony export lightIcons */
/* unused harmony export white */
/* unused harmony export black */
var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"};
var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"};
var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"};
var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"};
var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"};
var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"};
var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"};
var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"};
var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"};
var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"};
var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"};
var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"};
var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"};
var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"};
var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"};
var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"};
var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"};
var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"};
var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
var white = "#ffffff";
var black = "#000000";

/* unused harmony default export */ var _unused_webpack_default_export = ({
  red: red,
  pink: pink,
  purple: purple,
  deepPurple: deepPurple,
  indigo: indigo,
  blue: blue,
  lightBlue: lightBlue,
  cyan: cyan,
  teal: teal,
  green: green,
  lightGreen: lightGreen,
  lime: lime,
  yellow: yellow,
  amber: amber,
  orange: orange,
  deepOrange: deepOrange,
  brown: brown,
  grey: grey,
  blueGrey: blueGrey,
  darkText: darkText,
  lightText: lightText,
  darkIcons: darkIcons,
  lightIcons: lightIcons,
  white: white,
  black: black
});


/***/ }),
/* 141 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Chrome */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ChromeFields__ = __webpack_require__(421);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ChromePointer__ = __webpack_require__(424);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__ = __webpack_require__(425);










var Chrome = function Chrome(_ref) {
  var width = _ref.width,
      onChange = _ref.onChange,
      disableAlpha = _ref.disableAlpha,
      rgb = _ref.rgb,
      hsl = _ref.hsl,
      hsv = _ref.hsv,
      hex = _ref.hex,
      renderers = _ref.renderers,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className,
      defaultView = _ref.defaultView;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      picker: {
        width: width,
        background: '#fff',
        borderRadius: '2px',
        boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
        boxSizing: 'initial',
        fontFamily: 'Menlo'
      },
      saturation: {
        width: '100%',
        paddingBottom: '55%',
        position: 'relative',
        borderRadius: '2px 2px 0 0',
        overflow: 'hidden'
      },
      Saturation: {
        radius: '2px 2px 0 0'
      },
      body: {
        padding: '16px 16px 12px'
      },
      controls: {
        display: 'flex'
      },
      color: {
        width: '32px'
      },
      swatch: {
        marginTop: '6px',
        width: '16px',
        height: '16px',
        borderRadius: '8px',
        position: 'relative',
        overflow: 'hidden'
      },
      active: {
        absolute: '0px 0px 0px 0px',
        borderRadius: '8px',
        boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
        background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
        zIndex: '2'
      },
      toggles: {
        flex: '1'
      },
      hue: {
        height: '10px',
        position: 'relative',
        marginBottom: '8px'
      },
      Hue: {
        radius: '2px'
      },
      alpha: {
        height: '10px',
        position: 'relative'
      },
      Alpha: {
        radius: '2px'
      }
    },
    'disableAlpha': {
      color: {
        width: '22px'
      },
      alpha: {
        display: 'none'
      },
      hue: {
        marginBottom: '0px'
      },
      swatch: {
        width: '10px',
        height: '10px',
        marginTop: '0px'
      }
    }
  }, passedStyles), { disableAlpha: disableAlpha });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'chrome-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.saturation },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
        style: styles.Saturation,
        hsl: hsl,
        hsv: hsv,
        pointer: __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__["a" /* default */],
        onChange: onChange
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.body },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.controls, className: 'flexbox-fix' },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.color },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.swatch },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.active }),
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["b" /* Checkboard */], { renderers: renderers })
          )
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.toggles },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.hue },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
              style: styles.Hue,
              hsl: hsl,
              pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
              onChange: onChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.alpha },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["a" /* Alpha */], {
              style: styles.Alpha,
              rgb: rgb,
              hsl: hsl,
              pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
              renderers: renderers,
              onChange: onChange
            })
          )
        )
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__ChromeFields__["a" /* default */], {
        rgb: rgb,
        hsl: hsl,
        hex: hex,
        view: defaultView,
        onChange: onChange,
        disableAlpha: disableAlpha
      })
    )
  );
};

Chrome.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  disableAlpha: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
  defaultView: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(["hex", "rgb", "hsl"])
};

Chrome.defaultProps = {
  width: 225,
  disableAlpha: false,
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Chrome));

/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var InstallPlugins = function InstallPlugins(props) {
    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        response = _useState2[0],
        setResponse = _useState2[1];

    var _useState3 = (0, _react.useState)(false),
        _useState4 = _slicedToArray(_useState3, 2),
        fileUploaded = _useState4[0],
        setFileUploaded = _useState4[1];

    var _useState5 = (0, _react.useState)({}),
        _useState6 = _slicedToArray(_useState5, 2),
        data = _useState6[0],
        setData = _useState6[1];

    var daPerformStartupAction = pacDaAppLocalizer.apiUrl + '/da/v1/daPerformStartupAction';
    var daUpdateStartupCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateStartupCards';

    var hideCard = function hideCard() {
        props.setStartupCards(Object.assign({}, props.startupCards, { installPlugins: true }));
        _axios2.default.post(daUpdateStartupCards, {
            card: props.card
        });
    };

    var runAction = function runAction(e) {
        var checkboxes = void 0,
            id = void 0;
        var selectedPlugins = [];
        if (e.target.id !== props.card) {
            checkboxes = e.target.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            id = e.target.parentElement.id;
        } else {
            checkboxes = e.target.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            id = e.target.id;
        }
        checkboxes.forEach(function (checkbox) {
            if (checkbox.checked) {
                selectedPlugins.push(checkbox.getAttribute('name'));
            }
        });
        if (Object.keys(selectedPlugins).length > 0) {
            document.getElementById("pac_da_loading_spinner").style.display = 'block';
            _axios2.default.post(daPerformStartupAction, {
                action: id,
                selectedPlugins: JSON.stringify(selectedPlugins)
            }).then(function (res) {
                if (res.data === true) {
                    document.getElementById("pac_da_loading_spinner").classList.add("saved");
                    setTimeout(function () {
                        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                        document.getElementById("pac_da_loading_spinner").style.display = 'none';
                        setResponse(true);
                        setData({});
                        setFileUploaded(false);
                        setTimeout(function () {
                            hideCard();
                            setResponse(false);
                        }, 2000);
                    }, 1000);
                }
            });
        } else {
            alert('Warning: Select Plugins to install');
        }
    };

    var uploadFile = function uploadFile(e) {
        var inputElement = document.createElement('input');
        inputElement.type = 'file';
        inputElement.accept = '.json';
        inputElement.addEventListener('change', function (event) {
            var file = event.target.files[0];
            if (file && file.type === 'application/json') {
                var reader = new FileReader();
                reader.onload = function (e) {
                    setData(JSON.parse(e.target.result));
                    setFileUploaded(true);
                };
                reader.readAsText(file);
            } else {
                alert('Please select a valid JSON file');
            }
        });
        inputElement.click();
    };

    var selectAllPlugin = function selectAllPlugin(e) {
        var checkboxes = e.target.parentElement.nextElementSibling.querySelectorAll('input[type="checkbox"]');
        if (e.target.checked === false) {
            checkboxes.forEach(function (checkbox) {
                checkbox.checked = false;
            });
        } else {
            var allChecked = true;
            checkboxes.forEach(function (checkbox) {
                if (!checkbox.checked) {
                    allChecked = false;
                    return;
                }
            });
            checkboxes.forEach(function (checkbox) {
                checkbox.checked = !allChecked;
            });
        }
    };

    var checkAllCheckbox = function checkAllCheckbox(e) {
        var checkboxes = e.target.parentElement.parentElement.querySelectorAll('input[type="checkbox"]');
        var allChecked = true;

        checkboxes.forEach(function (checkbox) {
            if (!checkbox.checked) {
                allChecked = false;
                return;
            }
        });
        if (allChecked === true) {
            var allCheckbox = e.target.parentElement.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            allCheckbox.forEach(function (checkbox) {
                checkbox.checked = true;
            });
        } else {
            var _allCheckbox = e.target.parentElement.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            _allCheckbox.forEach(function (checkbox) {
                if (checkbox.checked === true) {
                    checkbox.checked = false;
                }
            });
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_action_card' },
        props.showDissmissBtn === true ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('circle', { cx: '14', cy: '14', r: '14', fill: '#2B87DA' }),
            wp.element.createElement('path', { d: 'M13.65 22.25C13.2787 22.25 12.9226 22.1025 12.6601 21.84C12.3975 21.5774 12.25 21.2213 12.25 20.85V15.75H9.65002C9.27872 15.75 8.92265 15.6025 8.6601 15.34C8.39754 15.0774 8.25 14.7213 8.25 14.35V14.2001C8.25092 13.9266 8.33083 13.6592 8.48004 13.4301L13.18 6.43005C13.3082 6.23697 13.4821 6.07839 13.6862 5.96851C13.8902 5.85862 14.1183 5.80081 14.35 5.80005C14.7213 5.80005 15.0774 5.94753 15.34 6.21008C15.6025 6.47263 15.75 6.82877 15.75 7.20007V12.3H18.35C18.7213 12.3 19.0774 12.4475 19.34 12.7101C19.6025 12.9726 19.75 13.3288 19.75 13.7001V13.86C19.7503 14.1351 19.6666 14.4038 19.51 14.63L14.81 21.63C14.6835 21.8217 14.5112 21.9789 14.3087 22.0872C14.1061 22.1954 13.8797 22.2514 13.65 22.25ZM9.75 14.25H13C13.1981 14.2526 13.3874 14.3324 13.5275 14.4725C13.6676 14.6126 13.7474 14.8019 13.75 15V20.52L18.25 13.75H15C14.9011 13.7513 14.803 13.7329 14.7114 13.6957C14.6198 13.6585 14.5366 13.6032 14.4667 13.5333C14.3968 13.4634 14.3416 13.3802 14.3044 13.2886C14.2672 13.197 14.2487 13.0989 14.25 13V7.47998L9.75 14.25Z', fill: 'white' })
        ) : '',
        wp.element.createElement(
            'div',
            { className: props.showDissmissBtn === true ? 'details' : 'details fw' },
            wp.element.createElement(
                'span',
                null,
                'Install Plugins From Saved List'
            ),
            wp.element.createElement(
                'p',
                null,
                'This startup action feature allows you to import a list of plugins from the WordPress plugin repository that you have exported from another site (using Divi Assistant) which you now want to install on this website. After importing the list, you can select which plugins you want to install on this site, and click the button to automatically install all the selected plugins with one click.'
            ),
            response === true ? wp.element.createElement(
                'div',
                { className: 'notice' },
                'Selected Plugins Installed Successfully!'
            ) : wp.element.createElement(
                _react2.default.Fragment,
                null,
                fileUploaded === false ? wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: uploadFile },
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M13.1902 8.01704C13.2617 7.98736 13.3266 7.9437 13.381 7.88861C13.4392 7.83354 13.4856 7.76716 13.5174 7.69353C13.5491 7.6199 13.5654 7.54056 13.5654 7.46039C13.5654 7.38022 13.5491 7.3009 13.5174 7.22727C13.4856 7.15364 13.4392 7.08726 13.381 7.03219L11.4167 5.0679C11.3622 5.01464 11.2982 4.972 11.2281 4.94218H11.1495C11.1 4.93464 11.0497 4.93464 11.0002 4.94218C10.9218 4.94194 10.8443 4.95799 10.7724 4.98932C10.7023 5.01914 10.6383 5.06178 10.5838 5.11504L8.61954 7.07933C8.50918 7.18982 8.44718 7.33959 8.44718 7.49575C8.44718 7.65192 8.50918 7.80169 8.61954 7.91218C8.67371 7.96778 8.73845 8.01197 8.80997 8.04214C8.88149 8.07231 8.95832 8.08785 9.03594 8.08785C9.11356 8.08785 9.19039 8.07231 9.26191 8.04214C9.33343 8.01197 9.39822 7.96778 9.45239 7.91218L10.4109 6.95361V11.8172C10.4109 11.9735 10.473 12.1234 10.5835 12.2339C10.694 12.3444 10.8439 12.4065 11.0002 12.4065C11.1565 12.4065 11.3064 12.3444 11.4169 12.2339C11.5274 12.1234 11.5895 11.9735 11.5895 11.8172V6.93004L12.5481 7.88861C12.6025 7.9437 12.6674 7.98736 12.7389 8.01704C12.8104 8.04672 12.8871 8.06184 12.9645 8.06147C13.0419 8.06184 13.1187 8.04672 13.1902 8.01704ZM7.46427 15.518H14.5357C15.1088 15.518 15.6584 15.2903 16.0636 14.8851C16.4688 14.4799 16.6964 13.9303 16.6964 13.3572V10.2144C16.6944 10.0587 16.6316 9.91003 16.5216 9.79995C16.4115 9.68988 16.2628 9.62714 16.1071 9.6251C15.9508 9.6251 15.801 9.68719 15.6904 9.7977C15.5799 9.90821 15.5178 10.0581 15.5178 10.2144V13.3572C15.5178 13.6177 15.4144 13.8675 15.2302 14.0517C15.046 14.2359 14.7962 14.3394 14.5357 14.3394H7.46427C7.20379 14.3394 6.95401 14.2359 6.76982 14.0517C6.58563 13.8675 6.48213 13.6177 6.48213 13.3572V10.2144C6.48009 10.0587 6.41736 9.91003 6.30728 9.79995C6.19721 9.68988 6.0485 9.62714 5.89284 9.6251C5.73656 9.6251 5.58667 9.68719 5.47615 9.7977C5.36564 9.90821 5.30356 10.0581 5.30356 10.2144V13.3572C5.30356 13.9303 5.53122 14.4799 5.93644 14.8851C6.34165 15.2903 6.89122 15.518 7.46427 15.518Z' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Import Plugins List'
                    )
                ) : wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'div',
                        { className: 'pac_da_select_all_checkbox' },
                        wp.element.createElement('input', { type: 'checkbox', name: 'selectAll', onClick: selectAllPlugin }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Select/Deselect All'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'pac_da_checkboxs' },
                        Object.keys(data).map(function (key) {
                            return wp.element.createElement(
                                'div',
                                { key: key, className: 'checkbox rightSide' },
                                wp.element.createElement('img', { className: 'img', src: data[key].icon, alt: "Plugin Image" }),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    data[key].Title
                                ),
                                wp.element.createElement('input', { type: 'checkbox', name: key, onClick: checkAllCheckbox })
                            );
                        })
                    ),
                    wp.element.createElement(
                        'div',
                        { id: props.card, className: 'btn', onClick: runAction },
                        wp.element.createElement(
                            'svg',
                            { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17.089 9.03582V5.50011C17.089 5.34382 17.0269 5.19393 16.9164 5.08341C16.8059 4.9729 16.656 4.91082 16.4997 4.91082H12.964C12.8863 4.90976 12.8092 4.92426 12.7373 4.9535C12.6653 4.98274 12.5999 5.02613 12.545 5.08107C12.49 5.136 12.4467 5.20135 12.4174 5.27332C12.3882 5.34529 12.3737 5.42243 12.3747 5.50011C12.3747 5.65639 12.4368 5.80629 12.5473 5.9168C12.6578 6.02731 12.8077 6.08939 12.964 6.08939H15.0776L9.7976 11.3694C9.74201 11.4235 9.69781 11.4883 9.66764 11.5598C9.63747 11.6313 9.62194 11.7082 9.62194 11.7858C9.62194 11.8634 9.63747 11.9403 9.66764 12.0118C9.69781 12.0833 9.74201 12.1481 9.7976 12.2022C9.90895 12.3113 10.0581 12.3733 10.214 12.3751C10.3696 12.3717 10.5182 12.31 10.6305 12.2022L15.9104 6.92225V9.03582C15.9104 9.19211 15.9725 9.342 16.083 9.45251C16.1935 9.56302 16.3434 9.62511 16.4997 9.62511C16.6554 9.62307 16.8041 9.56033 16.9142 9.45026C17.0242 9.34018 17.087 9.19148 17.089 9.03582ZM7.07143 17.0893H13.75C14.3224 17.0873 14.8708 16.8589 15.2756 16.4542C15.6804 16.0494 15.9087 15.501 15.9107 14.9286V11.3929C15.9107 11.2366 15.8486 11.0867 15.7381 10.9762C15.6276 10.8657 15.4777 10.8036 15.3214 10.8036C15.2438 10.8026 15.1667 10.8171 15.0947 10.8463C15.0227 10.8755 14.9573 10.9189 14.9024 10.9739C14.8475 11.0288 14.8041 11.0942 14.7749 11.1661C14.7456 11.2381 14.7311 11.3152 14.7321 11.3929V14.9286C14.7301 15.1885 14.6259 15.4371 14.4422 15.6208C14.2585 15.8046 14.0099 15.9087 13.75 15.9108H7.07143C6.81159 15.9087 6.56298 15.8046 6.37924 15.6208C6.19549 15.4371 6.09135 15.1885 6.08929 14.9286V8.25005C6.08929 7.98957 6.19279 7.73974 6.37698 7.55555C6.56117 7.37136 6.81095 7.26791 7.07143 7.26791H10.6071C10.7628 7.26587 10.9115 7.20314 11.0216 7.09306C11.1317 6.98299 11.1944 6.83428 11.1964 6.67862C11.1964 6.52234 11.1344 6.37245 11.0238 6.26193C10.9133 6.15142 10.7634 6.08934 10.6071 6.08934H7.07143C6.49838 6.08934 5.94881 6.31696 5.5436 6.72217C5.13839 7.12738 4.91072 7.677 4.91072 8.25005V14.9286C4.91072 15.5017 5.13839 16.0512 5.5436 16.4565C5.94881 16.8617 6.49838 17.0893 7.07143 17.0893Z' })
                        ),
                        wp.element.createElement(
                            'span',
                            null,
                            'Install Selected Plugins'
                        )
                    )
                )
            )
        ),
        props.showDissmissBtn === true ? wp.element.createElement(
            'div',
            { className: 'dismiss', onClick: hideCard },
            wp.element.createElement(
                'span',
                { className: 'text' },
                'Dismiss'
            ),
            wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M20.0298 18.97C20.1702 19.1107 20.2491 19.3012 20.2491 19.5C20.2491 19.6988 20.1702 19.8894 20.0298 20.03C19.9605 20.1001 19.878 20.1557 19.787 20.1935C19.696 20.2313 19.5983 20.2505 19.4998 20.25C19.4012 20.2505 19.3036 20.2313 19.2126 20.1935C19.1216 20.1557 19.039 20.1001 18.9698 20.03L13.9698 15.03L8.96979 20.03C8.90054 20.1001 8.818 20.1557 8.72699 20.1935C8.63598 20.2313 8.5383 20.2505 8.43976 20.25C8.34122 20.2505 8.2436 20.2313 8.15259 20.1935C8.06158 20.1557 7.97903 20.1001 7.90979 20.03C7.76934 19.8894 7.69043 19.6988 7.69043 19.5C7.69043 19.3012 7.76934 19.1107 7.90979 18.97L12.9098 13.97L7.90979 8.97003C7.76934 8.82941 7.69043 8.63875 7.69043 8.44C7.69043 8.24125 7.76934 8.05066 7.90979 7.91003C8.05042 7.76958 8.24101 7.69067 8.43976 7.69067C8.63851 7.69067 8.82916 7.76958 8.96979 7.91003L13.9698 12.91L18.9698 7.91003C19.1104 7.76958 19.301 7.69067 19.4998 7.69067C19.6985 7.69067 19.8892 7.76958 20.0298 7.91003C20.1702 8.05066 20.2491 8.24125 20.2491 8.44C20.2491 8.63875 20.1702 8.82941 20.0298 8.97003L15.0298 13.97L20.0298 18.97Z' })
            )
        ) : ''
    );
};
exports.default = InstallPlugins;

/***/ }),
/* 143 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Selectoption = function Selectoption(props) {

    var updateOptionValue = function updateOptionValue(e) {
        props.setOptionValue(e.target.value);
    };

    return wp.element.createElement(
        'select',
        { className: 'pac_da_select', onChange: updateOptionValue, value: props.optionValue },
        wp.element.createElement(
            'option',
            { className: 'option', key: 'none', value: 'none' },
            props.firstOption
        ),
        Object.keys(props.options).map(function (option) {
            return wp.element.createElement(
                'option',
                { className: 'option', key: option, value: option },
                props.options[option]
            );
        })
    );
};
exports.default = Selectoption;

/***/ }),
/* 144 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _client = __webpack_require__(147);

var _App = __webpack_require__(154);

var _App2 = _interopRequireDefault(_App);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

document.addEventListener('DOMContentLoaded', function () {
    var pac_da_element = document.getElementById('pac-da-admin-app-inner');
    if (typeof pac_da_element !== 'undefined' && pac_da_element !== null) {
        (0, _client.createRoot)(pac_da_element).render(wp.element.createElement(_App2.default, null));
    }
});

/***/ }),
/* 145 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null}
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};
E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
function N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=E;exports.Fragment=p;
exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
exports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};
exports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
exports.useTransition=function(){return U.current.useTransition()};exports.version="18.2.0";


/***/ }),
/* 146 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process, module) {/**
 * @license React
 * react.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (process.env.NODE_ENV !== "production") {
  (function() {

          'use strict';

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
          var ReactVersion = '18.2.0';

// ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types.
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
var REACT_MEMO_TYPE = Symbol.for('react.memo');
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }

  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }

  return null;
}

/**
 * Keeps track of the current dispatcher.
 */
var ReactCurrentDispatcher = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null
};

/**
 * Keeps track of the current batch's configuration such as how long an update
 * should suspend for if it needs to.
 */
var ReactCurrentBatchConfig = {
  transition: null
};

var ReactCurrentActQueue = {
  current: null,
  // Used to reproduce behavior of `batchedUpdates` in legacy mode.
  isBatchingLegacy: false,
  didScheduleLegacyUpdate: false
};

/**
 * Keeps track of the current owner.
 *
 * The current owner is the component who should own any components that are
 * currently being constructed.
 */
var ReactCurrentOwner = {
  /**
   * @internal
   * @type {ReactComponent}
   */
  current: null
};

var ReactDebugCurrentFrame = {};
var currentExtraStackFrame = null;
function setExtraStackFrame(stack) {
  {
    currentExtraStackFrame = stack;
  }
}

{
  ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
    {
      currentExtraStackFrame = stack;
    }
  }; // Stack implementation injected by the current renderer.


  ReactDebugCurrentFrame.getCurrentStack = null;

  ReactDebugCurrentFrame.getStackAddendum = function () {
    var stack = ''; // Add an extra top frame while an element is being validated

    if (currentExtraStackFrame) {
      stack += currentExtraStackFrame;
    } // Delegate to the injected renderer-specific implementation


    var impl = ReactDebugCurrentFrame.getCurrentStack;

    if (impl) {
      stack += impl() || '';
    }

    return stack;
  };
}

// -----------------------------------------------------------------------------

var enableScopeAPI = false; // Experimental Create Event Handle API.
var enableCacheElement = false;
var enableTransitionTracing = false; // No known bugs, but needs performance testing

var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
// stuff. Intended to enable React core members to more easily debug scheduling
// issues in DEV builds.

var enableDebugTracing = false; // Track which Fiber(s) schedule render work.

var ReactSharedInternals = {
  ReactCurrentDispatcher: ReactCurrentDispatcher,
  ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  ReactCurrentOwner: ReactCurrentOwner
};

{
  ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
  ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
}

// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      printWarning('warn', format, args);
    }
  }
}
function error(format) {
  {
    {
      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
        args[_key2 - 1] = arguments[_key2];
      }

      printWarning('error', format, args);
    }
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();

    if (stack !== '') {
      format += '%s';
      args = args.concat([stack]);
    } // eslint-disable-next-line react-internal/safe-string-coercion


    var argsWithFormat = args.map(function (item) {
      return String(item);
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);
  }
}

var didWarnStateUpdateForUnmountedComponent = {};

function warnNoop(publicInstance, callerName) {
  {
    var _constructor = publicInstance.constructor;
    var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
    var warningKey = componentName + "." + callerName;

    if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
      return;
    }

    error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);

    didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  }
}
/**
 * This is the abstract API for an update queue.
 */


var ReactNoopUpdateQueue = {
  /**
   * Checks whether or not this composite component is mounted.
   * @param {ReactClass} publicInstance The instance we want to test.
   * @return {boolean} True if mounted, false otherwise.
   * @protected
   * @final
   */
  isMounted: function (publicInstance) {
    return false;
  },

  /**
   * Forces an update. This should only be invoked when it is known with
   * certainty that we are **not** in a DOM transaction.
   *
   * You may want to call this when you know that some deeper aspect of the
   * component's state has changed but `setState` was not called.
   *
   * This will not invoke `shouldComponentUpdate`, but it will invoke
   * `componentWillUpdate` and `componentDidUpdate`.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueForceUpdate: function (publicInstance, callback, callerName) {
    warnNoop(publicInstance, 'forceUpdate');
  },

  /**
   * Replaces all of the state. Always use this or `setState` to mutate state.
   * You should treat `this.state` as immutable.
   *
   * There is no guarantee that `this.state` will be immediately updated, so
   * accessing `this.state` after calling this method may return the old value.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} completeState Next state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} callerName name of the calling function in the public API.
   * @internal
   */
  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
    warnNoop(publicInstance, 'replaceState');
  },

  /**
   * Sets a subset of the state. This only exists because _pendingState is
   * internal. This provides a merging strategy that is not available to deep
   * properties which is confusing. TODO: Expose pendingState or don't use it
   * during the merge.
   *
   * @param {ReactClass} publicInstance The instance that should rerender.
   * @param {object} partialState Next partial state to be merged with state.
   * @param {?function} callback Called after component is updated.
   * @param {?string} Name of the calling function in the public API.
   * @internal
   */
  enqueueSetState: function (publicInstance, partialState, callback, callerName) {
    warnNoop(publicInstance, 'setState');
  }
};

var assign = Object.assign;

var emptyObject = {};

{
  Object.freeze(emptyObject);
}
/**
 * Base class helpers for the updating state of a component.
 */


function Component(props, context, updater) {
  this.props = props;
  this.context = context; // If a component has string refs, we will assign a different object later.

  this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
  // renderer.

  this.updater = updater || ReactNoopUpdateQueue;
}

Component.prototype.isReactComponent = {};
/**
 * Sets a subset of the state. Always use this to mutate
 * state. You should treat `this.state` as immutable.
 *
 * There is no guarantee that `this.state` will be immediately updated, so
 * accessing `this.state` after calling this method may return the old value.
 *
 * There is no guarantee that calls to `setState` will run synchronously,
 * as they may eventually be batched together.  You can provide an optional
 * callback that will be executed when the call to setState is actually
 * completed.
 *
 * When a function is provided to setState, it will be called at some point in
 * the future (not synchronously). It will be called with the up to date
 * component arguments (state, props, context). These values can be different
 * from this.* because your function may be called after receiveProps but before
 * shouldComponentUpdate, and this new state, props, and context will not yet be
 * assigned to this.
 *
 * @param {object|function} partialState Next partial state or function to
 *        produce next partial state to be merged with current state.
 * @param {?function} callback Called after state is updated.
 * @final
 * @protected
 */

Component.prototype.setState = function (partialState, callback) {
  if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
    throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
  }

  this.updater.enqueueSetState(this, partialState, callback, 'setState');
};
/**
 * Forces an update. This should only be invoked when it is known with
 * certainty that we are **not** in a DOM transaction.
 *
 * You may want to call this when you know that some deeper aspect of the
 * component's state has changed but `setState` was not called.
 *
 * This will not invoke `shouldComponentUpdate`, but it will invoke
 * `componentWillUpdate` and `componentDidUpdate`.
 *
 * @param {?function} callback Called after update is complete.
 * @final
 * @protected
 */


Component.prototype.forceUpdate = function (callback) {
  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
};
/**
 * Deprecated APIs. These APIs used to exist on classic React classes but since
 * we would like to deprecate them, we're not going to move them over to this
 * modern base class. Instead, we define a getter that warns if it's accessed.
 */


{
  var deprecatedAPIs = {
    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  };

  var defineDeprecationWarning = function (methodName, info) {
    Object.defineProperty(Component.prototype, methodName, {
      get: function () {
        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);

        return undefined;
      }
    });
  };

  for (var fnName in deprecatedAPIs) {
    if (deprecatedAPIs.hasOwnProperty(fnName)) {
      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
    }
  }
}

function ComponentDummy() {}

ComponentDummy.prototype = Component.prototype;
/**
 * Convenience component with default shallow equality check for sCU.
 */

function PureComponent(props, context, updater) {
  this.props = props;
  this.context = context; // If a component has string refs, we will assign a different object later.

  this.refs = emptyObject;
  this.updater = updater || ReactNoopUpdateQueue;
}

var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.

assign(pureComponentPrototype, Component.prototype);
pureComponentPrototype.isPureReactComponent = true;

// an immutable object with a single mutable value
function createRef() {
  var refObject = {
    current: null
  };

  {
    Object.seal(refObject);
  }

  return refObject;
}

var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare

function isArray(a) {
  return isArrayImpl(a);
}

/*
 * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
 * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
 *
 * The functions in this module will throw an easier-to-understand,
 * easier-to-debug exception with a clear errors message message explaining the
 * problem. (Instead of a confusing exception thrown inside the implementation
 * of the `value` object).
 */
// $FlowFixMe only called in DEV, so void return is not possible.
function typeName(value) {
  {
    // toStringTag is needed for namespaced types like Temporal.Instant
    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
    return type;
  }
} // $FlowFixMe only called in DEV, so void return is not possible.


function willCoercionThrow(value) {
  {
    try {
      testStringCoercion(value);
      return false;
    } catch (e) {
      return true;
    }
  }
}

function testStringCoercion(value) {
  // If you ended up here by following an exception call stack, here's what's
  // happened: you supplied an object or symbol value to React (as a prop, key,
  // DOM attribute, CSS property, string ref, etc.) and when React tried to
  // coerce it to a string using `'' + value`, an exception was thrown.
  //
  // The most common types that will cause this exception are `Symbol` instances
  // and Temporal objects like `Temporal.Instant`. But any object that has a
  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
  // exception. (Library authors do this to prevent users from using built-in
  // numeric operators like `+` or comparison operators like `>=` because custom
  // methods are needed to perform accurate arithmetic or comparison.)
  //
  // To fix the problem, coerce this object or symbol value to a string before
  // passing it to React. The most reliable way is usually `String(value)`.
  //
  // To find which value is throwing, check the browser or debugger console.
  // Before this exception was thrown, there should be `console.error` output
  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
  // problem and how that type was used: key, atrribute, input value prop, etc.
  // In most cases, this console output also shows the component and its
  // ancestor components where the exception happened.
  //
  // eslint-disable-next-line react-internal/safe-string-coercion
  return '' + value;
}
function checkKeyStringCoercion(value) {
  {
    if (willCoercionThrow(value)) {
      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}

function getWrappedName(outerType, innerType, wrapperName) {
  var displayName = outerType.displayName;

  if (displayName) {
    return displayName;
  }

  var functionName = innerType.displayName || innerType.name || '';
  return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
} // Keep in sync with react-reconciler/getComponentNameFromFiber


function getContextName(type) {
  return type.displayName || 'Context';
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.


function getComponentNameFromType(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }

  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }

  if (typeof type === 'string') {
    return type;
  }

  switch (type) {
    case REACT_FRAGMENT_TYPE:
      return 'Fragment';

    case REACT_PORTAL_TYPE:
      return 'Portal';

    case REACT_PROFILER_TYPE:
      return 'Profiler';

    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';

    case REACT_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';

  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        var context = type;
        return getContextName(context) + '.Consumer';

      case REACT_PROVIDER_TYPE:
        var provider = type;
        return getContextName(provider._context) + '.Provider';

      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        var outerName = type.displayName || null;

        if (outerName !== null) {
          return outerName;
        }

        return getComponentNameFromType(type.type) || 'Memo';

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            return getComponentNameFromType(init(payload));
          } catch (x) {
            return null;
          }
        }

      // eslint-disable-next-line no-fallthrough
    }
  }

  return null;
}

var hasOwnProperty = Object.prototype.hasOwnProperty;

var RESERVED_PROPS = {
  key: true,
  ref: true,
  __self: true,
  __source: true
};
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;

{
  didWarnAboutStringRefs = {};
}

function hasValidRef(config) {
  {
    if (hasOwnProperty.call(config, 'ref')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.ref !== undefined;
}

function hasValidKey(config) {
  {
    if (hasOwnProperty.call(config, 'key')) {
      var getter = Object.getOwnPropertyDescriptor(config, 'key').get;

      if (getter && getter.isReactWarning) {
        return false;
      }
    }
  }

  return config.key !== undefined;
}

function defineKeyPropWarningGetter(props, displayName) {
  var warnAboutAccessingKey = function () {
    {
      if (!specialPropKeyWarningShown) {
        specialPropKeyWarningShown = true;

        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
      }
    }
  };

  warnAboutAccessingKey.isReactWarning = true;
  Object.defineProperty(props, 'key', {
    get: warnAboutAccessingKey,
    configurable: true
  });
}

function defineRefPropWarningGetter(props, displayName) {
  var warnAboutAccessingRef = function () {
    {
      if (!specialPropRefWarningShown) {
        specialPropRefWarningShown = true;

        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
      }
    }
  };

  warnAboutAccessingRef.isReactWarning = true;
  Object.defineProperty(props, 'ref', {
    get: warnAboutAccessingRef,
    configurable: true
  });
}

function warnIfStringRefCannotBeAutoConverted(config) {
  {
    if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
      var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);

      if (!didWarnAboutStringRefs[componentName]) {
        error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);

        didWarnAboutStringRefs[componentName] = true;
      }
    }
  }
}
/**
 * Factory method to create a new React element. This no longer adheres to
 * the class pattern, so do not use new to call it. Also, instanceof check
 * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
 * if something is a React Element.
 *
 * @param {*} type
 * @param {*} props
 * @param {*} key
 * @param {string|object} ref
 * @param {*} owner
 * @param {*} self A *temporary* helper to detect places where `this` is
 * different from the `owner` when React.createElement is called, so that we
 * can warn. We want to get rid of owner and replace string `ref`s with arrow
 * functions, and as long as `this` and owner are the same, there will be no
 * change in behavior.
 * @param {*} source An annotation object (added by a transpiler or otherwise)
 * indicating filename, line number, and/or other information.
 * @internal
 */


var ReactElement = function (type, key, ref, self, source, owner, props) {
  var element = {
    // This tag allows us to uniquely identify this as a React Element
    $$typeof: REACT_ELEMENT_TYPE,
    // Built-in properties that belong on the element
    type: type,
    key: key,
    ref: ref,
    props: props,
    // Record the component responsible for creating this element.
    _owner: owner
  };

  {
    // The validation flag is currently mutative. We put it on
    // an external backing store so that we can freeze the whole object.
    // This can be replaced with a WeakMap once they are implemented in
    // commonly used development environments.
    element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
    // the validation flag non-enumerable (where possible, which should
    // include every environment we run tests in), so the test framework
    // ignores it.

    Object.defineProperty(element._store, 'validated', {
      configurable: false,
      enumerable: false,
      writable: true,
      value: false
    }); // self and source are DEV only properties.

    Object.defineProperty(element, '_self', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: self
    }); // Two elements created in two different places should be considered
    // equal for testing purposes and therefore we hide it from enumeration.

    Object.defineProperty(element, '_source', {
      configurable: false,
      enumerable: false,
      writable: false,
      value: source
    });

    if (Object.freeze) {
      Object.freeze(element.props);
      Object.freeze(element);
    }
  }

  return element;
};
/**
 * Create and return a new ReactElement of the given type.
 * See https://reactjs.org/docs/react-api.html#createelement
 */

function createElement(type, config, children) {
  var propName; // Reserved names are extracted

  var props = {};
  var key = null;
  var ref = null;
  var self = null;
  var source = null;

  if (config != null) {
    if (hasValidRef(config)) {
      ref = config.ref;

      {
        warnIfStringRefCannotBeAutoConverted(config);
      }
    }

    if (hasValidKey(config)) {
      {
        checkKeyStringCoercion(config.key);
      }

      key = '' + config.key;
    }

    self = config.__self === undefined ? null : config.__self;
    source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object

    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        props[propName] = config[propName];
      }
    }
  } // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.


  var childrenLength = arguments.length - 2;

  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);

    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }

    {
      if (Object.freeze) {
        Object.freeze(childArray);
      }
    }

    props.children = childArray;
  } // Resolve default props


  if (type && type.defaultProps) {
    var defaultProps = type.defaultProps;

    for (propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }
  }

  {
    if (key || ref) {
      var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;

      if (key) {
        defineKeyPropWarningGetter(props, displayName);
      }

      if (ref) {
        defineRefPropWarningGetter(props, displayName);
      }
    }
  }

  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}
function cloneAndReplaceKey(oldElement, newKey) {
  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  return newElement;
}
/**
 * Clone and return a new ReactElement using element as the starting point.
 * See https://reactjs.org/docs/react-api.html#cloneelement
 */

function cloneElement(element, config, children) {
  if (element === null || element === undefined) {
    throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
  }

  var propName; // Original props are copied

  var props = assign({}, element.props); // Reserved names are extracted

  var key = element.key;
  var ref = element.ref; // Self is preserved since the owner is preserved.

  var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
  // transpiler, and the original source is probably a better indicator of the
  // true owner.

  var source = element._source; // Owner will be preserved, unless ref is overridden

  var owner = element._owner;

  if (config != null) {
    if (hasValidRef(config)) {
      // Silently steal the ref from the parent.
      ref = config.ref;
      owner = ReactCurrentOwner.current;
    }

    if (hasValidKey(config)) {
      {
        checkKeyStringCoercion(config.key);
      }

      key = '' + config.key;
    } // Remaining properties override existing props


    var defaultProps;

    if (element.type && element.type.defaultProps) {
      defaultProps = element.type.defaultProps;
    }

    for (propName in config) {
      if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        if (config[propName] === undefined && defaultProps !== undefined) {
          // Resolve default props
          props[propName] = defaultProps[propName];
        } else {
          props[propName] = config[propName];
        }
      }
    }
  } // Children can be more than one argument, and those are transferred onto
  // the newly allocated props object.


  var childrenLength = arguments.length - 2;

  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);

    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }

    props.children = childArray;
  }

  return ReactElement(element.type, key, ref, self, source, owner, props);
}
/**
 * Verifies the object is a ReactElement.
 * See https://reactjs.org/docs/react-api.html#isvalidelement
 * @param {?object} object
 * @return {boolean} True if `object` is a ReactElement.
 * @final
 */

function isValidElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}

var SEPARATOR = '.';
var SUBSEPARATOR = ':';
/**
 * Escape and wrap key so it is safe to use as a reactid
 *
 * @param {string} key to be escaped.
 * @return {string} the escaped key.
 */

function escape(key) {
  var escapeRegex = /[=:]/g;
  var escaperLookup = {
    '=': '=0',
    ':': '=2'
  };
  var escapedString = key.replace(escapeRegex, function (match) {
    return escaperLookup[match];
  });
  return '$' + escapedString;
}
/**
 * TODO: Test that a single child and an array with one item have the same key
 * pattern.
 */


var didWarnAboutMaps = false;
var userProvidedKeyEscapeRegex = /\/+/g;

function escapeUserProvidedKey(text) {
  return text.replace(userProvidedKeyEscapeRegex, '$&/');
}
/**
 * Generate a key string that identifies a element within a set.
 *
 * @param {*} element A element that could contain a manual key.
 * @param {number} index Index that is used if a manual key is not provided.
 * @return {string}
 */


function getElementKey(element, index) {
  // Do some typechecking here since we call this blindly. We want to ensure
  // that we don't block potential future ES APIs.
  if (typeof element === 'object' && element !== null && element.key != null) {
    // Explicit key
    {
      checkKeyStringCoercion(element.key);
    }

    return escape('' + element.key);
  } // Implicit key determined by the index in the set


  return index.toString(36);
}

function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
  var type = typeof children;

  if (type === 'undefined' || type === 'boolean') {
    // All of the above are perceived as null.
    children = null;
  }

  var invokeCallback = false;

  if (children === null) {
    invokeCallback = true;
  } else {
    switch (type) {
      case 'string':
      case 'number':
        invokeCallback = true;
        break;

      case 'object':
        switch (children.$$typeof) {
          case REACT_ELEMENT_TYPE:
          case REACT_PORTAL_TYPE:
            invokeCallback = true;
        }

    }
  }

  if (invokeCallback) {
    var _child = children;
    var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
    // so that it's consistent if the number of children grows:

    var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;

    if (isArray(mappedChild)) {
      var escapedChildKey = '';

      if (childKey != null) {
        escapedChildKey = escapeUserProvidedKey(childKey) + '/';
      }

      mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
        return c;
      });
    } else if (mappedChild != null) {
      if (isValidElement(mappedChild)) {
        {
          // The `if` statement here prevents auto-disabling of the safe
          // coercion ESLint rule, so we must manually disable it below.
          // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
          if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
            checkKeyStringCoercion(mappedChild.key);
          }
        }

        mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
        // traverseAllChildren used to do for objects as children
        escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
        mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
        // eslint-disable-next-line react-internal/safe-string-coercion
        escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
      }

      array.push(mappedChild);
    }

    return 1;
  }

  var child;
  var nextName;
  var subtreeCount = 0; // Count of children found in the current subtree.

  var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;

  if (isArray(children)) {
    for (var i = 0; i < children.length; i++) {
      child = children[i];
      nextName = nextNamePrefix + getElementKey(child, i);
      subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
    }
  } else {
    var iteratorFn = getIteratorFn(children);

    if (typeof iteratorFn === 'function') {
      var iterableChildren = children;

      {
        // Warn about using Maps as children
        if (iteratorFn === iterableChildren.entries) {
          if (!didWarnAboutMaps) {
            warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
          }

          didWarnAboutMaps = true;
        }
      }

      var iterator = iteratorFn.call(iterableChildren);
      var step;
      var ii = 0;

      while (!(step = iterator.next()).done) {
        child = step.value;
        nextName = nextNamePrefix + getElementKey(child, ii++);
        subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
      }
    } else if (type === 'object') {
      // eslint-disable-next-line react-internal/safe-string-coercion
      var childrenString = String(children);
      throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
    }
  }

  return subtreeCount;
}

/**
 * Maps children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenmap
 *
 * The provided mapFunction(child, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} func The map function.
 * @param {*} context Context for mapFunction.
 * @return {object} Object containing the ordered map of results.
 */
function mapChildren(children, func, context) {
  if (children == null) {
    return children;
  }

  var result = [];
  var count = 0;
  mapIntoArray(children, result, '', '', function (child) {
    return func.call(context, child, count++);
  });
  return result;
}
/**
 * Count the number of children that are typically specified as
 * `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrencount
 *
 * @param {?*} children Children tree container.
 * @return {number} The number of children.
 */


function countChildren(children) {
  var n = 0;
  mapChildren(children, function () {
    n++; // Don't return anything
  });
  return n;
}

/**
 * Iterates through children that are typically specified as `props.children`.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
 *
 * The provided forEachFunc(child, index) will be called for each
 * leaf child.
 *
 * @param {?*} children Children tree container.
 * @param {function(*, int)} forEachFunc
 * @param {*} forEachContext Context for forEachContext.
 */
function forEachChildren(children, forEachFunc, forEachContext) {
  mapChildren(children, function () {
    forEachFunc.apply(this, arguments); // Don't return anything.
  }, forEachContext);
}
/**
 * Flatten a children object (typically specified as `props.children`) and
 * return an array with appropriately re-keyed children.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
 */


function toArray(children) {
  return mapChildren(children, function (child) {
    return child;
  }) || [];
}
/**
 * Returns the first child in a collection of children and verifies that there
 * is only one child in the collection.
 *
 * See https://reactjs.org/docs/react-api.html#reactchildrenonly
 *
 * The current implementation of this function assumes that a single child gets
 * passed without a wrapper, but the purpose of this helper function is to
 * abstract away the particular structure of children.
 *
 * @param {?object} children Child collection structure.
 * @return {ReactElement} The first and only `ReactElement` contained in the
 * structure.
 */


function onlyChild(children) {
  if (!isValidElement(children)) {
    throw new Error('React.Children.only expected to receive a single React element child.');
  }

  return children;
}

function createContext(defaultValue) {
  // TODO: Second argument used to be an optional `calculateChangedBits`
  // function. Warn to reserve for future use?
  var context = {
    $$typeof: REACT_CONTEXT_TYPE,
    // As a workaround to support multiple concurrent renderers, we categorize
    // some renderers as primary and others as secondary. We only expect
    // there to be two concurrent renderers at most: React Native (primary) and
    // Fabric (secondary); React DOM (primary) and React ART (secondary).
    // Secondary renderers store their context values on separate fields.
    _currentValue: defaultValue,
    _currentValue2: defaultValue,
    // Used to track how many concurrent renderers this context currently
    // supports within in a single renderer. Such as parallel server rendering.
    _threadCount: 0,
    // These are circular
    Provider: null,
    Consumer: null,
    // Add these to use same hidden class in VM as ServerContext
    _defaultValue: null,
    _globalName: null
  };
  context.Provider = {
    $$typeof: REACT_PROVIDER_TYPE,
    _context: context
  };
  var hasWarnedAboutUsingNestedContextConsumers = false;
  var hasWarnedAboutUsingConsumerProvider = false;
  var hasWarnedAboutDisplayNameOnConsumer = false;

  {
    // A separate object, but proxies back to the original context object for
    // backwards compatibility. It has a different $$typeof, so we can properly
    // warn for the incorrect usage of Context as a Consumer.
    var Consumer = {
      $$typeof: REACT_CONTEXT_TYPE,
      _context: context
    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here

    Object.defineProperties(Consumer, {
      Provider: {
        get: function () {
          if (!hasWarnedAboutUsingConsumerProvider) {
            hasWarnedAboutUsingConsumerProvider = true;

            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
          }

          return context.Provider;
        },
        set: function (_Provider) {
          context.Provider = _Provider;
        }
      },
      _currentValue: {
        get: function () {
          return context._currentValue;
        },
        set: function (_currentValue) {
          context._currentValue = _currentValue;
        }
      },
      _currentValue2: {
        get: function () {
          return context._currentValue2;
        },
        set: function (_currentValue2) {
          context._currentValue2 = _currentValue2;
        }
      },
      _threadCount: {
        get: function () {
          return context._threadCount;
        },
        set: function (_threadCount) {
          context._threadCount = _threadCount;
        }
      },
      Consumer: {
        get: function () {
          if (!hasWarnedAboutUsingNestedContextConsumers) {
            hasWarnedAboutUsingNestedContextConsumers = true;

            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
          }

          return context.Consumer;
        }
      },
      displayName: {
        get: function () {
          return context.displayName;
        },
        set: function (displayName) {
          if (!hasWarnedAboutDisplayNameOnConsumer) {
            warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);

            hasWarnedAboutDisplayNameOnConsumer = true;
          }
        }
      }
    }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty

    context.Consumer = Consumer;
  }

  {
    context._currentRenderer = null;
    context._currentRenderer2 = null;
  }

  return context;
}

var Uninitialized = -1;
var Pending = 0;
var Resolved = 1;
var Rejected = 2;

function lazyInitializer(payload) {
  if (payload._status === Uninitialized) {
    var ctor = payload._result;
    var thenable = ctor(); // Transition to the next state.
    // This might throw either because it's missing or throws. If so, we treat it
    // as still uninitialized and try again next time. Which is the same as what
    // happens if the ctor or any wrappers processing the ctor throws. This might
    // end up fixing it if the resolution was a concurrency bug.

    thenable.then(function (moduleObject) {
      if (payload._status === Pending || payload._status === Uninitialized) {
        // Transition to the next state.
        var resolved = payload;
        resolved._status = Resolved;
        resolved._result = moduleObject;
      }
    }, function (error) {
      if (payload._status === Pending || payload._status === Uninitialized) {
        // Transition to the next state.
        var rejected = payload;
        rejected._status = Rejected;
        rejected._result = error;
      }
    });

    if (payload._status === Uninitialized) {
      // In case, we're still uninitialized, then we're waiting for the thenable
      // to resolve. Set it as pending in the meantime.
      var pending = payload;
      pending._status = Pending;
      pending._result = thenable;
    }
  }

  if (payload._status === Resolved) {
    var moduleObject = payload._result;

    {
      if (moduleObject === undefined) {
        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + // Break up imports to avoid accidentally parsing them as dependencies.
        'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
      }
    }

    {
      if (!('default' in moduleObject)) {
        error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n  ' + // Break up imports to avoid accidentally parsing them as dependencies.
        'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
      }
    }

    return moduleObject.default;
  } else {
    throw payload._result;
  }
}

function lazy(ctor) {
  var payload = {
    // We use these fields to store the result.
    _status: Uninitialized,
    _result: ctor
  };
  var lazyType = {
    $$typeof: REACT_LAZY_TYPE,
    _payload: payload,
    _init: lazyInitializer
  };

  {
    // In production, this would just set it on the object.
    var defaultProps;
    var propTypes; // $FlowFixMe

    Object.defineProperties(lazyType, {
      defaultProps: {
        configurable: true,
        get: function () {
          return defaultProps;
        },
        set: function (newDefaultProps) {
          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          defaultProps = newDefaultProps; // Match production behavior more closely:
          // $FlowFixMe

          Object.defineProperty(lazyType, 'defaultProps', {
            enumerable: true
          });
        }
      },
      propTypes: {
        configurable: true,
        get: function () {
          return propTypes;
        },
        set: function (newPropTypes) {
          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');

          propTypes = newPropTypes; // Match production behavior more closely:
          // $FlowFixMe

          Object.defineProperty(lazyType, 'propTypes', {
            enumerable: true
          });
        }
      }
    });
  }

  return lazyType;
}

function forwardRef(render) {
  {
    if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
    } else if (typeof render !== 'function') {
      error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
    } else {
      if (render.length !== 0 && render.length !== 2) {
        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
      }
    }

    if (render != null) {
      if (render.defaultProps != null || render.propTypes != null) {
        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
      }
    }
  }

  var elementType = {
    $$typeof: REACT_FORWARD_REF_TYPE,
    render: render
  };

  {
    var ownName;
    Object.defineProperty(elementType, 'displayName', {
      enumerable: false,
      configurable: true,
      get: function () {
        return ownName;
      },
      set: function (name) {
        ownName = name; // The inner component shouldn't inherit this display name in most cases,
        // because the component may be used elsewhere.
        // But it's nice for anonymous functions to inherit the name,
        // so that our component-stack generation logic will display their frames.
        // An anonymous function generally suggests a pattern like:
        //   React.forwardRef((props, ref) => {...});
        // This kind of inner function is not used elsewhere so the side effect is okay.

        if (!render.name && !render.displayName) {
          render.displayName = name;
        }
      }
    });
  }

  return elementType;
}

var REACT_MODULE_REFERENCE;

{
  REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
}

function isValidElementType(type) {
  if (typeof type === 'string' || typeof type === 'function') {
    return true;
  } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).


  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing  || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden  || type === REACT_OFFSCREEN_TYPE || enableScopeAPI  || enableCacheElement  || enableTransitionTracing ) {
    return true;
  }

  if (typeof type === 'object' && type !== null) {
    if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
    // types supported by any Flight configuration anywhere since
    // we don't know which Flight build this will end up being used
    // with.
    type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
      return true;
    }
  }

  return false;
}

function memo(type, compare) {
  {
    if (!isValidElementType(type)) {
      error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
    }
  }

  var elementType = {
    $$typeof: REACT_MEMO_TYPE,
    type: type,
    compare: compare === undefined ? null : compare
  };

  {
    var ownName;
    Object.defineProperty(elementType, 'displayName', {
      enumerable: false,
      configurable: true,
      get: function () {
        return ownName;
      },
      set: function (name) {
        ownName = name; // The inner component shouldn't inherit this display name in most cases,
        // because the component may be used elsewhere.
        // But it's nice for anonymous functions to inherit the name,
        // so that our component-stack generation logic will display their frames.
        // An anonymous function generally suggests a pattern like:
        //   React.memo((props) => {...});
        // This kind of inner function is not used elsewhere so the side effect is okay.

        if (!type.name && !type.displayName) {
          type.displayName = name;
        }
      }
    });
  }

  return elementType;
}

function resolveDispatcher() {
  var dispatcher = ReactCurrentDispatcher.current;

  {
    if (dispatcher === null) {
      error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
    }
  } // Will result in a null access error if accessed outside render phase. We
  // intentionally don't throw our own error because this is in a hot path.
  // Also helps ensure this is inlined.


  return dispatcher;
}
function useContext(Context) {
  var dispatcher = resolveDispatcher();

  {
    // TODO: add a more generic warning for invalid values.
    if (Context._context !== undefined) {
      var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
      // and nobody should be using this in existing code.

      if (realContext.Consumer === Context) {
        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
      } else if (realContext.Provider === Context) {
        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
      }
    }
  }

  return dispatcher.useContext(Context);
}
function useState(initialState) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useState(initialState);
}
function useReducer(reducer, initialArg, init) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useReducer(reducer, initialArg, init);
}
function useRef(initialValue) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useRef(initialValue);
}
function useEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useEffect(create, deps);
}
function useInsertionEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useInsertionEffect(create, deps);
}
function useLayoutEffect(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useLayoutEffect(create, deps);
}
function useCallback(callback, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useCallback(callback, deps);
}
function useMemo(create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useMemo(create, deps);
}
function useImperativeHandle(ref, create, deps) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useImperativeHandle(ref, create, deps);
}
function useDebugValue(value, formatterFn) {
  {
    var dispatcher = resolveDispatcher();
    return dispatcher.useDebugValue(value, formatterFn);
  }
}
function useTransition() {
  var dispatcher = resolveDispatcher();
  return dispatcher.useTransition();
}
function useDeferredValue(value) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useDeferredValue(value);
}
function useId() {
  var dispatcher = resolveDispatcher();
  return dispatcher.useId();
}
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
  var dispatcher = resolveDispatcher();
  return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
}

// Helpers to patch console.logs to avoid logging during side-effect free
// replaying on render function. This currently only patches the object
// lazily which won't cover if the log function was extracted eagerly.
// We could also eagerly patch the method.
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;

function disabledLog() {}

disabledLog.__reactDisabledLog = true;
function disableLogs() {
  {
    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      prevLog = console.log;
      prevInfo = console.info;
      prevWarn = console.warn;
      prevError = console.error;
      prevGroup = console.group;
      prevGroupCollapsed = console.groupCollapsed;
      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

      var props = {
        configurable: true,
        enumerable: true,
        value: disabledLog,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        info: props,
        log: props,
        warn: props,
        error: props,
        group: props,
        groupCollapsed: props,
        groupEnd: props
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    disabledDepth++;
  }
}
function reenableLogs() {
  {
    disabledDepth--;

    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      var props = {
        configurable: true,
        enumerable: true,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        log: assign({}, props, {
          value: prevLog
        }),
        info: assign({}, props, {
          value: prevInfo
        }),
        warn: assign({}, props, {
          value: prevWarn
        }),
        error: assign({}, props, {
          value: prevError
        }),
        group: assign({}, props, {
          value: prevGroup
        }),
        groupCollapsed: assign({}, props, {
          value: prevGroupCollapsed
        }),
        groupEnd: assign({}, props, {
          value: prevGroupEnd
        })
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    if (disabledDepth < 0) {
      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
    }
  }
}

var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
  {
    if (prefix === undefined) {
      // Extract the VM specific prefix used by each line.
      try {
        throw Error();
      } catch (x) {
        var match = x.stack.trim().match(/\n( *(at )?)/);
        prefix = match && match[1] || '';
      }
    } // We use the prefix to ensure our stacks line up with native stack frames.


    return '\n' + prefix + name;
  }
}
var reentry = false;
var componentFrameCache;

{
  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  componentFrameCache = new PossiblyWeakMap();
}

function describeNativeComponentFrame(fn, construct) {
  // If something asked for a stack inside a fake render, it should get ignored.
  if ( !fn || reentry) {
    return '';
  }

  {
    var frame = componentFrameCache.get(fn);

    if (frame !== undefined) {
      return frame;
    }
  }

  var control;
  reentry = true;
  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

  Error.prepareStackTrace = undefined;
  var previousDispatcher;

  {
    previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
    // for warnings.

    ReactCurrentDispatcher$1.current = null;
    disableLogs();
  }

  try {
    // This should throw.
    if (construct) {
      // Something should be setting the props in the constructor.
      var Fake = function () {
        throw Error();
      }; // $FlowFixMe


      Object.defineProperty(Fake.prototype, 'props', {
        set: function () {
          // We use a throwing setter instead of frozen or non-writable props
          // because that won't throw in a non-strict mode function.
          throw Error();
        }
      });

      if (typeof Reflect === 'object' && Reflect.construct) {
        // We construct a different control for this case to include any extra
        // frames added by the construct call.
        try {
          Reflect.construct(Fake, []);
        } catch (x) {
          control = x;
        }

        Reflect.construct(fn, [], Fake);
      } else {
        try {
          Fake.call();
        } catch (x) {
          control = x;
        }

        fn.call(Fake.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (x) {
        control = x;
      }

      fn();
    }
  } catch (sample) {
    // This is inlined manually because closure doesn't do it for us.
    if (sample && control && typeof sample.stack === 'string') {
      // This extracts the first frame from the sample that isn't also in the control.
      // Skipping one frame that we assume is the frame that calls the two.
      var sampleLines = sample.stack.split('\n');
      var controlLines = control.stack.split('\n');
      var s = sampleLines.length - 1;
      var c = controlLines.length - 1;

      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
        // We expect at least one stack frame to be shared.
        // Typically this will be the root most one. However, stack frames may be
        // cut off due to maximum stack limits. In this case, one maybe cut off
        // earlier than the other. We assume that the sample is longer or the same
        // and there for cut off earlier. So we should find the root most frame in
        // the sample somewhere in the control.
        c--;
      }

      for (; s >= 1 && c >= 0; s--, c--) {
        // Next we find the first one that isn't the same which should be the
        // frame that called our sample function and the control.
        if (sampleLines[s] !== controlLines[c]) {
          // In V8, the first line is describing the message but other VMs don't.
          // If we're about to return the first line, and the control is also on the same
          // line, that's a pretty good indicator that our sample threw at same line as
          // the control. I.e. before we entered the sample frame. So we ignore this result.
          // This can happen if you passed a class to function component, or non-function.
          if (s !== 1 || c !== 1) {
            do {
              s--;
              c--; // We may still have similar intermediate frames from the construct call.
              // The next one that isn't the same should be our match though.

              if (c < 0 || sampleLines[s] !== controlLines[c]) {
                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
                // but we have a user-provided "displayName"
                // splice it in to make the stack more readable.


                if (fn.displayName && _frame.includes('<anonymous>')) {
                  _frame = _frame.replace('<anonymous>', fn.displayName);
                }

                {
                  if (typeof fn === 'function') {
                    componentFrameCache.set(fn, _frame);
                  }
                } // Return the line we found.


                return _frame;
              }
            } while (s >= 1 && c >= 0);
          }

          break;
        }
      }
    }
  } finally {
    reentry = false;

    {
      ReactCurrentDispatcher$1.current = previousDispatcher;
      reenableLogs();
    }

    Error.prepareStackTrace = previousPrepareStackTrace;
  } // Fallback to just using the name if we couldn't make it throw.


  var name = fn ? fn.displayName || fn.name : '';
  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

  {
    if (typeof fn === 'function') {
      componentFrameCache.set(fn, syntheticFrame);
    }
  }

  return syntheticFrame;
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
  {
    return describeNativeComponentFrame(fn, false);
  }
}

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

  if (type == null) {
    return '';
  }

  if (typeof type === 'function') {
    {
      return describeNativeComponentFrame(type, shouldConstruct(type));
    }
  }

  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }

  switch (type) {
    case REACT_SUSPENSE_TYPE:
      return describeBuiltInComponentFrame('Suspense');

    case REACT_SUSPENSE_LIST_TYPE:
      return describeBuiltInComponentFrame('SuspenseList');
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_FORWARD_REF_TYPE:
        return describeFunctionComponentFrame(type.render);

      case REACT_MEMO_TYPE:
        // Memo may contain any component type so we recursively resolve it.
        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            // Lazy may contain any component type so we recursively resolve it.
            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
          } catch (x) {}
        }
    }
  }

  return '';
}

var loggedTypeFailures = {};
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
    }
  }
}

function checkPropTypes(typeSpecs, values, location, componentName, element) {
  {
    // $FlowFixMe This is okay but Flow doesn't know it.
    var has = Function.call.bind(hasOwnProperty);

    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.

        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            // eslint-disable-next-line react-internal/prod-error-codes
            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
            err.name = 'Invariant Violation';
            throw err;
          }

          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
        } catch (ex) {
          error$1 = ex;
        }

        if (error$1 && !(error$1 instanceof Error)) {
          setCurrentlyValidatingElement(element);

          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

          setCurrentlyValidatingElement(null);
        }

        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error$1.message] = true;
          setCurrentlyValidatingElement(element);

          error('Failed %s type: %s', location, error$1.message);

          setCurrentlyValidatingElement(null);
        }
      }
    }
  }
}

function setCurrentlyValidatingElement$1(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      setExtraStackFrame(stack);
    } else {
      setExtraStackFrame(null);
    }
  }
}

var propTypesMisspellWarningShown;

{
  propTypesMisspellWarningShown = false;
}

function getDeclarationErrorAddendum() {
  if (ReactCurrentOwner.current) {
    var name = getComponentNameFromType(ReactCurrentOwner.current.type);

    if (name) {
      return '\n\nCheck the render method of `' + name + '`.';
    }
  }

  return '';
}

function getSourceInfoErrorAddendum(source) {
  if (source !== undefined) {
    var fileName = source.fileName.replace(/^.*[\\\/]/, '');
    var lineNumber = source.lineNumber;
    return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  }

  return '';
}

function getSourceInfoErrorAddendumForProps(elementProps) {
  if (elementProps !== null && elementProps !== undefined) {
    return getSourceInfoErrorAddendum(elementProps.__source);
  }

  return '';
}
/**
 * Warn if there's no key explicitly set on dynamic arrays of children or
 * object keys are not valid. This allows us to keep track of children between
 * updates.
 */


var ownerHasKeyUseWarning = {};

function getCurrentComponentErrorInfo(parentType) {
  var info = getDeclarationErrorAddendum();

  if (!info) {
    var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;

    if (parentName) {
      info = "\n\nCheck the top-level render call using <" + parentName + ">.";
    }
  }

  return info;
}
/**
 * Warn if the element doesn't have an explicit key assigned to it.
 * This element is in an array. The array could grow and shrink or be
 * reordered. All children that haven't already been validated are required to
 * have a "key" property assigned to it. Error statuses are cached so a warning
 * will only be shown once.
 *
 * @internal
 * @param {ReactElement} element Element that requires a key.
 * @param {*} parentType element's parent's type.
 */


function validateExplicitKey(element, parentType) {
  if (!element._store || element._store.validated || element.key != null) {
    return;
  }

  element._store.validated = true;
  var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);

  if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
    return;
  }

  ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
  // property, it may be the creator of the child that's responsible for
  // assigning it a key.

  var childOwner = '';

  if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
    // Give the component that originally created this child.
    childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
  }

  {
    setCurrentlyValidatingElement$1(element);

    error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);

    setCurrentlyValidatingElement$1(null);
  }
}
/**
 * Ensure that every element either is passed in a static location, in an
 * array with an explicit keys property defined, or in an object literal
 * with valid key property.
 *
 * @internal
 * @param {ReactNode} node Statically passed child of any type.
 * @param {*} parentType node's parent's type.
 */


function validateChildKeys(node, parentType) {
  if (typeof node !== 'object') {
    return;
  }

  if (isArray(node)) {
    for (var i = 0; i < node.length; i++) {
      var child = node[i];

      if (isValidElement(child)) {
        validateExplicitKey(child, parentType);
      }
    }
  } else if (isValidElement(node)) {
    // This element was passed in a valid location.
    if (node._store) {
      node._store.validated = true;
    }
  } else if (node) {
    var iteratorFn = getIteratorFn(node);

    if (typeof iteratorFn === 'function') {
      // Entry iterators used to provide implicit keys,
      // but now we print a separate warning for them later.
      if (iteratorFn !== node.entries) {
        var iterator = iteratorFn.call(node);
        var step;

        while (!(step = iterator.next()).done) {
          if (isValidElement(step.value)) {
            validateExplicitKey(step.value, parentType);
          }
        }
      }
    }
  }
}
/**
 * Given an element, validate that its props follow the propTypes definition,
 * provided by the type.
 *
 * @param {ReactElement} element
 */


function validatePropTypes(element) {
  {
    var type = element.type;

    if (type === null || type === undefined || typeof type === 'string') {
      return;
    }

    var propTypes;

    if (typeof type === 'function') {
      propTypes = type.propTypes;
    } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
    // Inner props are checked in the reconciler.
    type.$$typeof === REACT_MEMO_TYPE)) {
      propTypes = type.propTypes;
    } else {
      return;
    }

    if (propTypes) {
      // Intentionally inside to avoid triggering lazy initializers:
      var name = getComponentNameFromType(type);
      checkPropTypes(propTypes, element.props, 'prop', name, element);
    } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
      propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:

      var _name = getComponentNameFromType(type);

      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
    }

    if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
    }
  }
}
/**
 * Given a fragment, validate that it can only be provided with fragment props
 * @param {ReactElement} fragment
 */


function validateFragmentProps(fragment) {
  {
    var keys = Object.keys(fragment.props);

    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];

      if (key !== 'children' && key !== 'key') {
        setCurrentlyValidatingElement$1(fragment);

        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);

        setCurrentlyValidatingElement$1(null);
        break;
      }
    }

    if (fragment.ref !== null) {
      setCurrentlyValidatingElement$1(fragment);

      error('Invalid attribute `ref` supplied to `React.Fragment`.');

      setCurrentlyValidatingElement$1(null);
    }
  }
}
function createElementWithValidation(type, props, children) {
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
  // succeed and there will likely be errors in render.

  if (!validType) {
    var info = '';

    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
      info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
    }

    var sourceInfo = getSourceInfoErrorAddendumForProps(props);

    if (sourceInfo) {
      info += sourceInfo;
    } else {
      info += getDeclarationErrorAddendum();
    }

    var typeString;

    if (type === null) {
      typeString = 'null';
    } else if (isArray(type)) {
      typeString = 'array';
    } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
      typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
      info = ' Did you accidentally export a JSX literal instead of a component?';
    } else {
      typeString = typeof type;
    }

    {
      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
    }
  }

  var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
  // TODO: Drop this when these are no longer allowed as the type argument.

  if (element == null) {
    return element;
  } // Skip key warning if the type isn't valid since our key validation logic
  // doesn't expect a non-string/function type and can throw confusing errors.
  // We don't want exception behavior to differ between dev and prod.
  // (Rendering will throw with a helpful message and as soon as the type is
  // fixed, the key warnings will appear.)


  if (validType) {
    for (var i = 2; i < arguments.length; i++) {
      validateChildKeys(arguments[i], type);
    }
  }

  if (type === REACT_FRAGMENT_TYPE) {
    validateFragmentProps(element);
  } else {
    validatePropTypes(element);
  }

  return element;
}
var didWarnAboutDeprecatedCreateFactory = false;
function createFactoryWithValidation(type) {
  var validatedFactory = createElementWithValidation.bind(null, type);
  validatedFactory.type = type;

  {
    if (!didWarnAboutDeprecatedCreateFactory) {
      didWarnAboutDeprecatedCreateFactory = true;

      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
    } // Legacy hook: remove it


    Object.defineProperty(validatedFactory, 'type', {
      enumerable: false,
      get: function () {
        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');

        Object.defineProperty(this, 'type', {
          value: type
        });
        return type;
      }
    });
  }

  return validatedFactory;
}
function cloneElementWithValidation(element, props, children) {
  var newElement = cloneElement.apply(this, arguments);

  for (var i = 2; i < arguments.length; i++) {
    validateChildKeys(arguments[i], newElement.type);
  }

  validatePropTypes(newElement);
  return newElement;
}

function startTransition(scope, options) {
  var prevTransition = ReactCurrentBatchConfig.transition;
  ReactCurrentBatchConfig.transition = {};
  var currentTransition = ReactCurrentBatchConfig.transition;

  {
    ReactCurrentBatchConfig.transition._updatedFibers = new Set();
  }

  try {
    scope();
  } finally {
    ReactCurrentBatchConfig.transition = prevTransition;

    {
      if (prevTransition === null && currentTransition._updatedFibers) {
        var updatedFibersCount = currentTransition._updatedFibers.size;

        if (updatedFibersCount > 10) {
          warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
        }

        currentTransition._updatedFibers.clear();
      }
    }
  }
}

var didWarnAboutMessageChannel = false;
var enqueueTaskImpl = null;
function enqueueTask(task) {
  if (enqueueTaskImpl === null) {
    try {
      // read require off the module object to get around the bundlers.
      // we don't want them to detect a require and bundle a Node polyfill.
      var requireString = ('require' + Math.random()).slice(0, 7);
      var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
      // version of setImmediate, bypassing fake timers if any.

      enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
    } catch (_err) {
      // we're in a browser
      // we can't use regular timers because they may still be faked
      // so we try MessageChannel+postMessage instead
      enqueueTaskImpl = function (callback) {
        {
          if (didWarnAboutMessageChannel === false) {
            didWarnAboutMessageChannel = true;

            if (typeof MessageChannel === 'undefined') {
              error('This browser does not have a MessageChannel implementation, ' + 'so enqueuing tasks via await act(async () => ...) will fail. ' + 'Please file an issue at https://github.com/facebook/react/issues ' + 'if you encounter this warning.');
            }
          }
        }

        var channel = new MessageChannel();
        channel.port1.onmessage = callback;
        channel.port2.postMessage(undefined);
      };
    }
  }

  return enqueueTaskImpl(task);
}

var actScopeDepth = 0;
var didWarnNoAwaitAct = false;
function act(callback) {
  {
    // `act` calls can be nested, so we track the depth. This represents the
    // number of `act` scopes on the stack.
    var prevActScopeDepth = actScopeDepth;
    actScopeDepth++;

    if (ReactCurrentActQueue.current === null) {
      // This is the outermost `act` scope. Initialize the queue. The reconciler
      // will detect the queue and use it instead of Scheduler.
      ReactCurrentActQueue.current = [];
    }

    var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
    var result;

    try {
      // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
      // set to `true` while the given callback is executed, not for updates
      // triggered during an async event, because this is how the legacy
      // implementation of `act` behaved.
      ReactCurrentActQueue.isBatchingLegacy = true;
      result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
      // which flushed updates immediately after the scope function exits, even
      // if it's an async function.

      if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
        var queue = ReactCurrentActQueue.current;

        if (queue !== null) {
          ReactCurrentActQueue.didScheduleLegacyUpdate = false;
          flushActQueue(queue);
        }
      }
    } catch (error) {
      popActScope(prevActScopeDepth);
      throw error;
    } finally {
      ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
    }

    if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
      var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
      // for it to resolve before exiting the current scope.

      var wasAwaited = false;
      var thenable = {
        then: function (resolve, reject) {
          wasAwaited = true;
          thenableResult.then(function (returnValue) {
            popActScope(prevActScopeDepth);

            if (actScopeDepth === 0) {
              // We've exited the outermost act scope. Recursively flush the
              // queue until there's no remaining work.
              recursivelyFlushAsyncActWork(returnValue, resolve, reject);
            } else {
              resolve(returnValue);
            }
          }, function (error) {
            // The callback threw an error.
            popActScope(prevActScopeDepth);
            reject(error);
          });
        }
      };

      {
        if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
          // eslint-disable-next-line no-undef
          Promise.resolve().then(function () {}).then(function () {
            if (!wasAwaited) {
              didWarnNoAwaitAct = true;

              error('You called act(async () => ...) without await. ' + 'This could lead to unexpected testing behaviour, ' + 'interleaving multiple act calls and mixing their ' + 'scopes. ' + 'You should - await act(async () => ...);');
            }
          });
        }
      }

      return thenable;
    } else {
      var returnValue = result; // The callback is not an async function. Exit the current scope
      // immediately, without awaiting.

      popActScope(prevActScopeDepth);

      if (actScopeDepth === 0) {
        // Exiting the outermost act scope. Flush the queue.
        var _queue = ReactCurrentActQueue.current;

        if (_queue !== null) {
          flushActQueue(_queue);
          ReactCurrentActQueue.current = null;
        } // Return a thenable. If the user awaits it, we'll flush again in
        // case additional work was scheduled by a microtask.


        var _thenable = {
          then: function (resolve, reject) {
            // Confirm we haven't re-entered another `act` scope, in case
            // the user does something weird like await the thenable
            // multiple times.
            if (ReactCurrentActQueue.current === null) {
              // Recursively flush the queue until there's no remaining work.
              ReactCurrentActQueue.current = [];
              recursivelyFlushAsyncActWork(returnValue, resolve, reject);
            } else {
              resolve(returnValue);
            }
          }
        };
        return _thenable;
      } else {
        // Since we're inside a nested `act` scope, the returned thenable
        // immediately resolves. The outer scope will flush the queue.
        var _thenable2 = {
          then: function (resolve, reject) {
            resolve(returnValue);
          }
        };
        return _thenable2;
      }
    }
  }
}

function popActScope(prevActScopeDepth) {
  {
    if (prevActScopeDepth !== actScopeDepth - 1) {
      error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
    }

    actScopeDepth = prevActScopeDepth;
  }
}

function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
  {
    var queue = ReactCurrentActQueue.current;

    if (queue !== null) {
      try {
        flushActQueue(queue);
        enqueueTask(function () {
          if (queue.length === 0) {
            // No additional work was scheduled. Finish.
            ReactCurrentActQueue.current = null;
            resolve(returnValue);
          } else {
            // Keep flushing work until there's none left.
            recursivelyFlushAsyncActWork(returnValue, resolve, reject);
          }
        });
      } catch (error) {
        reject(error);
      }
    } else {
      resolve(returnValue);
    }
  }
}

var isFlushing = false;

function flushActQueue(queue) {
  {
    if (!isFlushing) {
      // Prevent re-entrance.
      isFlushing = true;
      var i = 0;

      try {
        for (; i < queue.length; i++) {
          var callback = queue[i];

          do {
            callback = callback(true);
          } while (callback !== null);
        }

        queue.length = 0;
      } catch (error) {
        // If something throws, leave the remaining callbacks on the queue.
        queue = queue.slice(i + 1);
        throw error;
      } finally {
        isFlushing = false;
      }
    }
  }
}

var createElement$1 =  createElementWithValidation ;
var cloneElement$1 =  cloneElementWithValidation ;
var createFactory =  createFactoryWithValidation ;
var Children = {
  map: mapChildren,
  forEach: forEachChildren,
  count: countChildren,
  toArray: toArray,
  only: onlyChild
};

exports.Children = Children;
exports.Component = Component;
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.Profiler = REACT_PROFILER_TYPE;
exports.PureComponent = PureComponent;
exports.StrictMode = REACT_STRICT_MODE_TYPE;
exports.Suspense = REACT_SUSPENSE_TYPE;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
exports.cloneElement = cloneElement$1;
exports.createContext = createContext;
exports.createElement = createElement$1;
exports.createFactory = createFactory;
exports.createRef = createRef;
exports.forwardRef = forwardRef;
exports.isValidElement = isValidElement;
exports.lazy = lazy;
exports.memo = memo;
exports.startTransition = startTransition;
exports.unstable_act = act;
exports.useCallback = useCallback;
exports.useContext = useContext;
exports.useDebugValue = useDebugValue;
exports.useDeferredValue = useDeferredValue;
exports.useEffect = useEffect;
exports.useId = useId;
exports.useImperativeHandle = useImperativeHandle;
exports.useInsertionEffect = useInsertionEffect;
exports.useLayoutEffect = useLayoutEffect;
exports.useMemo = useMemo;
exports.useReducer = useReducer;
exports.useRef = useRef;
exports.useState = useState;
exports.useSyncExternalStore = useSyncExternalStore;
exports.useTransition = useTransition;
exports.version = ReactVersion;
          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
        
  })();
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(30)(module)))

/***/ }),
/* 147 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

var m = __webpack_require__(148);
if (process.env.NODE_ENV === 'production') {
  exports.createRoot = m.createRoot;
  exports.hydrateRoot = m.hydrateRoot;
} else {
  var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  exports.createRoot = function(c, o) {
    i.usingClientEntryPoint = true;
    try {
      return m.createRoot(c, o);
    } finally {
      i.usingClientEntryPoint = false;
    }
  };
  exports.hydrateRoot = function(c, h, o) {
    i.usingClientEntryPoint = true;
    try {
      return m.hydrateRoot(c, h, o);
    } finally {
      i.usingClientEntryPoint = false;
    }
  };
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 148 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {

function checkDCE() {
  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  if (
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  ) {
    return;
  }
  if (process.env.NODE_ENV !== 'production') {
    // This branch is unreachable because this function is only called
    // in production, but the condition is true only in development.
    // Therefore if the branch is still here, dead code elimination wasn't
    // properly applied.
    // Don't change the message. React DevTools relies on it. Also make sure
    // this message doesn't occur elsewhere in this function, or it will cause
    // a false positive.
    throw new Error('^_^');
  }
  try {
    // Verify that the code above has been dead code eliminated (DCE'd).
    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  } catch (err) {
    // DevTools shouldn't crash React, no matter what.
    // We should still report in case we break this code.
    console.error(err);
  }
}

if (process.env.NODE_ENV === 'production') {
  // DCE check should happen before ReactDOM bundle executes so that
  // DevTools can report bad minification during injection.
  checkDCE();
  module.exports = __webpack_require__(149);
} else {
  module.exports = __webpack_require__(153);
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 149 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/*
 Modernizr 3.0.0pre (Custom Build) | MIT
*/
var aa=__webpack_require__(0),ca=__webpack_require__(81);function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(a,b){ha(a,b);ha(a+"Capture",b)}
function ha(a,b){ea[a]=b;for(a=0;a<b.length;a++)da.add(b[a])}
var ia=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la=
{},ma={};function oa(a){if(ja.call(ma,a))return!0;if(ja.call(la,a))return!1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return!1}function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
function qa(a,b,c,d){if(null===b||"undefined"===typeof b||pa(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});
["checked","multiple","muted","selected"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(ra,
sa);z[b]=new v(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});
z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});
function ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1])qa(b,c,e,d)&&(c=null),d||null===e?oa(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)))}
var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");
var Ia=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Ja=Symbol.iterator;function Ka(a){if(null===a||"object"!==typeof a)return null;a=Ja&&a[Ja]||a["@@iterator"];return"function"===typeof a?a:null}var A=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\n( *(at )?)/);La=b&&b[1]||""}return"\n"+La+a}var Na=!1;
function Oa(a,b){if(!a||Na)return"";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,"props",{set:function(){throw Error();}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a,[],b)}else{try{b.call()}catch(l){d=l}a.call(b.prototype)}else{try{throw Error();}catch(l){d=l}a()}}catch(l){if(l&&d&&"string"===typeof l.stack){for(var e=l.stack.split("\n"),
f=d.stack.split("\n"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h]){var k="\n"+e[g].replace(" at new "," at ");a.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:"")?Ma(a):""}
function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}}
function Qa(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||
b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||"Memo";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}
function Ra(a){var b=a.type;switch(a.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=b.render,a=a.displayName||a.name||"",b.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(b);case 8:return b===za?"StrictMode":"Mode";case 22:return"Offscreen";
case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof b)return b.displayName||b.name||null;if("string"===typeof b)return b}return null}function Sa(a){switch(typeof a){case "boolean":case "number":case "string":case "undefined":return a;case "object":return a;default:return""}}
function Ta(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
function Ua(a){var b=Ta(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=
null;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=Ta(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}
function Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,"checked",b,!1)}
function bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?cb(a,b.type,c):b.hasOwnProperty("defaultValue")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}
function db(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c)}
function cb(a,b,c){if("number"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c)}var eb=Array.isArray;
function fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=""+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}
function gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p(92));if(eb(c)){if(1<c.length)throw Error(p(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:Sa(c)}}
function ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}function kb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}
function lb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?kb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
var mb,nb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else{mb=mb||document.createElement("div");mb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});
function ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}
var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,
zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(""+b).trim():b+"px"}
function sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=rb(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});
function ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if("object"!==typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(p(62));}}
function vb(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;
function Bb(a){if(a=Cb(a)){if("function"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a])}}function Gb(a,b){return a(b)}function Hb(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{if(Ib=!1,null!==zb||null!==Ab)Hb(),Fb()}}
function Kb(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==
typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}});window.addEventListener("test",Mb,Mb);window.removeEventListener("test",Mb,Mb)}catch(a){Lb=!1}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0;Pb=a}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1;Pb=null;Nb.apply(Sb,arguments)}
function Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=l)}}function Vb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p(188));}
function Yb(a){var b=a.alternate;if(!b){b=Vb(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===
c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(p(189));}}if(c.alternate!==d)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function Zb(a){a=Yb(a);return null!==a?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling}return null}
var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&"function"===typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,128===(a.current.flags&128))}catch(b){}}
var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){a>>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;
function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;
default:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc(b),e=1<<c,d|=a[c],b&=~e;return d}
function vc(a,b){switch(a){case 1:case 2:case 4:return b+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b+5E3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}
function wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc(h,b)}else k<=b&&(a.expiredLanes|=h);f&=~h}}function xc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc(){var a=rc;rc<<=1;0===(rc&4194240)&&(rc=64);return a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}
function Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f}}
function Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e}}var C=0;function Dc(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
function Sc(a,b){switch(a){case "focusin":case "focusout":Lc=null;break;case "dragenter":case "dragleave":Mc=null;break;case "mouseover":case "mouseout":Nc=null;break;case "pointerover":case "pointerout":Oc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":Pc.delete(b.pointerId)}}
function Tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb(b),null!==b&&Fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}
function Uc(a,b,c,d,e){switch(b){case "focusin":return Lc=Tc(Lc,a,b,c,d,e),!0;case "dragenter":return Mc=Tc(Mc,a,b,c,d,e),!0;case "mouseover":return Nc=Tc(Nc,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e));return!0;case "gotpointercapture":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return!1}
function Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb(c),null!==b){a.blockedOn=b;Ic(a.priority,function(){Gc(c)});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}
function Xc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb=d;c.target.dispatchEvent(d);wb=null}else return b=Cb(c),null!==b&&Fc(b),a.blockedOn=c,!1;b.shift()}return!0}function Zc(a,b,c){Xc(a)&&c.delete(b)}function $c(){Jc=!1;null!==Lc&&Xc(Lc)&&(Lc=null);null!==Mc&&Xc(Mc)&&(Mc=null);null!==Nc&&Xc(Nc)&&(Nc=null);Oc.forEach(Zc);Pc.forEach(Zc)}
function ad(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}
function bd(a){function b(b){return ad(b,a)}if(0<Kc.length){ad(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==Lc&&ad(Lc,a);null!==Mc&&ad(Mc,a);null!==Nc&&ad(Nc,a);Oc.forEach(b);Pc.forEach(b);for(c=0;c<Qc.length;c++)d=Qc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&(c=Qc[0],null===c.blockedOn);)Vc(c),null===c.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;
function ed(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function gd(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a,b,c,d)}finally{C=e,cd.transition=f}}
function fd(a,b,c,d){if(dd){var e=Yc(a,b,c,d);if(null===e)hd(a,b,d,id,c),Sc(a,d);else if(Uc(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),b&4&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb(e);null!==f&&Ec(f);f=Yc(a,b,c,d);null===f&&hd(a,b,d,id,c);if(f===e)break;e=f}null!==e&&d.stopPropagation()}else hd(a,b,d,null,c)}}var id=null;
function Yc(a,b,c,d){id=null;a=xb(d);a=Wc(a);if(null!==a)if(b=Vb(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb(b);if(null!==a)return a;a=null}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null}else b!==a&&(a=null);id=a;return null}
function jd(a){switch(a){case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 1;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "toggle":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 4;
case "message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,b=ld,c=b.length,d,e="value"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}
function od(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd(){return!0}function qd(){return!1}
function rd(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd;this.isPropagationStopped=qd;return this}A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&
(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd});return b}
var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in
a)return a.movementX;a!==yd&&(yd&&"mousemove"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a);return wd},movementY:function(a){return"movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",
Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od[a])?!!b[a]:!1}function zd(){return Pd}
var Qd=A({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=od(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return"keypress"===a.type?od(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===
a.type?od(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},
deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;
function ge(a,b){switch(a){case "keyup":return-1!==$d.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "focusout":return!0;default:return!1}}function he(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case "compositionend":return he(b);case "keypress":if(32!==b.which)return null;fe=!0;return ee;case "textInput":return a=b.data,a===ee&&fe?null:a;default:return null}}
function ke(a,b){if(ie)return"compositionend"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "compositionend":return de&&"ko"!==b.locale?null:b.data;default:return null}}
var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!le[a.type]:"textarea"===b?!0:!1}function ne(a,b,c,d){Eb(d);b=oe(b,"onChange");0<b.length&&(c=new td("onChange","change",null,c,d),a.push({event:c,listeners:b}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){var b=ue(a);if(Wa(b))return a}
function ve(a,b){if("change"===a)return b}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;");ye="function"===typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(a){if("value"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a));Jb(re,b)}}
function Ce(a,b,c){"focusin"===a?(Ae(),pe=b,qe=c,pe.attachEvent("onpropertychange",Be)):"focusout"===a&&Ae()}function De(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return te(qe)}function Ee(a,b){if("click"===a)return te(b)}function Fe(a,b){if("input"===a||"change"===a)return te(b)}function Ge(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He="function"===typeof Object.is?Object.is:Ge;
function Ie(a,b){if(He(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!ja.call(b,e)||!He(a[e],b[e]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}
function Ke(a,b){var c=Je(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}
function Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}
function Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,
d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"===typeof c.focus&&c.focus();for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}
var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;
function Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,"selectionStart"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,"onSelect"),0<d.length&&(b=new td("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)))}
function Ve(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};
ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var b=We[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye)return Xe[a]=b[c];return a}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
function ff(a,b){df.set(a,b);fa(b,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);
ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));
fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarget=null}
function se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a;}
function D(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+"__bubble";c.has(d)||(pf(b,a,2,!1),c.add(d))}function qf(a,b,c){var d=0;b&&(d|=4);pf(c,a,d,b)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0;da.forEach(function(b){"selectionchange"!==b&&(mf.has(b)||qf(b,!1,a),qf(b,!0,a))});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf("selectionchange",!1,b))}}
function pf(a,b,c,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c=e.bind(null,b,c,a);e=void 0;!Lb||"touchstart"!==b&&"touchmove"!==b&&"wheel"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}
function hd(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return}for(;null!==h;){g=Wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb(function(){var d=f,e=xb(c),g=[];
a:{var h=df.get(a);if(void 0!==h){var k=td,n=a;switch(a){case "keypress":if(0===od(c))break a;case "keydown":case "keyup":k=Rd;break;case "focusin":n="focus";k=Fd;break;case "focusout":n="blur";k=Fd;break;case "beforeblur":case "afterblur":k=Fd;break;case "click":if(2===c.button)break a;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":k=Bd;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":k=
Dd;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=Vd;break;case $e:case af:case bf:k=Hd;break;case cf:k=Xd;break;case "scroll":k=vd;break;case "wheel":k=Zd;break;case "copy":case "cut":case "paste":k=Jd;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=Td}var t=0!==(b&4),J=!t&&"scroll"===a,x=t?null!==h?h+"Capture":null:h;t=[];for(var w=d,u;null!==
w;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb(w,x),null!=F&&t.push(tf(w,F,u))));if(J)break;w=w.return}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}))}}if(0===(b&7)){a:{h="mouseover"===a||"pointerover"===a;k="mouseout"===a||"pointerout"===a;if(h&&c!==wb&&(n=c.relatedTarget||c.fromElement)&&(Wc(n)||n[uf]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc(n):null,null!==
n&&(J=Vb(n),n!==J||5!==n.tag&&6!==n.tag))n=null}else k=null,n=d;if(k!==n){t=Bd;F="onMouseLeave";x="onMouseEnter";w="mouse";if("pointerout"===a||"pointerover"===a)t=Td,F="onPointerLeave",x="onPointerEnter",w="pointer";J=null==k?h:ue(k);u=null==n?h:ue(n);h=new t(F,w+"leave",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc(e)===d&&(t=new t(x,w+"enter",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf(u))w++;u=0;for(F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=
vf(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf(t);x=vf(x)}t=null}else t=null;null!==k&&wf(g,h,k,t,!1);null!==n&&null!==J&&wf(g,J,n,t,!0)}}}a:{h=d?ue(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if("select"===k||"input"===k&&"file"===h.type)var na=ve;else if(me(h))if(we)na=Fe;else{na=De;var xa=Ce}else(k=h.nodeName)&&"input"===k.toLowerCase()&&("checkbox"===h.type||"radio"===h.type)&&(na=Ee);if(na&&(na=na(a,d))){ne(g,na,c,e);break a}xa&&xa(a,h,d);"focusout"===a&&(xa=h._wrapperState)&&
xa.controlled&&"number"===h.type&&cb(h,"number",h.value)}xa=d?ue(d):window;switch(a){case "focusin":if(me(xa)||"true"===xa.contentEditable)Qe=xa,Re=d,Se=null;break;case "focusout":Se=Re=Qe=null;break;case "mousedown":Te=!0;break;case "contextmenu":case "mouseup":case "dragend":Te=!1;Ue(g,c,e);break;case "selectionchange":if(Pe)break;case "keydown":case "keyup":Ue(g,c,e)}var $a;if(ae)b:{switch(a){case "compositionstart":var ba="onCompositionStart";break b;case "compositionend":ba="onCompositionEnd";
break b;case "compositionupdate":ba="onCompositionUpdate";break b}ba=void 0}else ie?ge(a,c)&&(ba="onCompositionEnd"):"keydown"===a&&229===c.keyCode&&(ba="onCompositionStart");ba&&(de&&"ko"!==c.locale&&(ie||"onCompositionStart"!==ba?"onCompositionEnd"===ba&&ie&&($a=nd()):(kd=e,ld="value"in kd?kd.value:kd.textContent,ie=!0)),xa=oe(d,ba),0<xa.length&&(ba=new Ld(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he(c),null!==$a&&(ba.data=$a))));if($a=ce?je(a,c):ke(a,c))d=oe(d,"onBeforeInput"),
0<d.length&&(e=new Ld("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=$a)}se(g,b)})}function tf(a,b,c){return{instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb(a,c),null!=f&&d.unshift(tf(a,f,e)),f=Kb(a,b),null!=f&&d.push(tf(a,f,e)));a=a.return}return d}function vf(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}
function wf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb(c,f),null!=k&&g.unshift(tf(c,k,h))):e||(k=Kb(c,f),null!=k&&g.push(tf(c,k,h))));c=c.return}0!==g.length&&a.push({event:b,listeners:g})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a){return("string"===typeof a?a:""+a).replace(xf,"\n").replace(yf,"")}function Af(a,b,c){b=zf(b);if(zf(a)!==b&&c)throw Error(p(425));}function Bf(){}
var Cf=null,Df=null;function Ef(a,b){return"textarea"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}
var Ff="function"===typeof setTimeout?setTimeout:void 0,Gf="function"===typeof clearTimeout?clearTimeout:void 0,Hf="function"===typeof Promise?Promise:void 0,Jf="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof Hf?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a;})}
function Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,"/$"===c){if(0===d){a.removeChild(e);bd(b);return}d--}else"$"!==c&&"$?"!==c&&"$!"!==c||d++;c=e}while(c);bd(b)}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if("$"===b||"$!"===b||"$?"===b)break;if("/$"===b)return null}}return a}
function Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--}else"/$"===c&&b++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;
function Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a)}return b}a=c;c=a.parentNode}return null}function Cb(a){a=a[Of]||a[uf];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p(33));}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}
function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}
function Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||"Unknown",e));return A({},c,d)}
function cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}
function jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg=null;fg=!1}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e;}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,b){kg[lg++]=ng;kg[lg++]=mg;mg=a;ng=b}
function ug(a,b,c){og[pg++]=rg;og[pg++]=sg;og[pg++]=qg;qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg=1<<32-oc(b)+e|c<<e|d;sg=f+a}else rg=1<<f|c<<e|d,sg=a}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;
function Ag(a,b){var c=Bg(5,null,null,0);c.elementType="DELETED";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c)}
function Cg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg=a,yg=Lf(b.firstChild),!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg=a,yg=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg=a,yg=
null,!0):!1;default:return!1}}function Dg(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg(a){if(I){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p(418));b=Lf(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag(d,c):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p(418));a.flags=a.flags&-4097|2;I=!1;xg=a}}}function Fg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a}
function Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b="head"!==b&&"body"!==b&&!Ef(a.type,a.memoizedProps));if(b&&(b=yg)){if(Dg(a))throw Hg(),Error(p(418));for(;b;)Ag(a,b),b=Lf(b.nextSibling)}Fg(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){yg=Lf(a.nextSibling);break a}b--}else"$"!==c&&"$!"!==c&&"$?"!==c||b++}a=a.nextSibling}yg=
null}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null;I=!1}function Jg(a){null===zg?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a,b){if(a&&a.defaultProps){b=A({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(a){var b=Mg.current;E(Mg);a._currentValue=b}
function Sg(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return}}function Tg(a,b){Ng=a;Pg=Og=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(Ug=!0),a.firstContext=null)}
function Vg(a){var b=a._currentValue;if(Pg!==a)if(a={context:a,memoizedValue:b,next:null},null===Og){if(null===Ng)throw Error(p(308));Og=a;Ng.dependencies={lanes:0,firstContext:a}}else Og=Og.next=a;return b}var Wg=null;function Xg(a){null===Wg?Wg=[a]:Wg.push(a)}function Yg(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,Xg(b)):(c.next=e.next,e.next=c);b.interleaved=c;return Zg(a,d)}
function Zg(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var $g=!1;function ah(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}
function bh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ch(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}
function dh(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return Zg(a,c)}e=d.interleaved;null===e?(b.next=b,Xg(d)):(b.next=e.next,e.next=b);d.interleaved=b;return Zg(a,c)}function eh(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}
function fh(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=
b;c.lastBaseUpdate=b}
function gh(a,b,c,d){var e=a.updateQueue;$g=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,
next:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if("function"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r="function"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:$g=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;
h=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);hh|=g;a.lanes=g;a.memoizedState=q}}
function ih(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if("function"!==typeof e)throw Error(p(191,e));e.call(d)}}}var jh=(new aa.Component).refs;function kh(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c)}
var nh={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=L(),e=lh(a),f=ch(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=dh(a,f,e);null!==b&&(mh(b,a,e,d),eh(b,a,e))},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=L(),e=lh(a),f=ch(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=dh(a,f,e);null!==b&&(mh(b,a,e,d),eh(b,a,e))},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=L(),d=
lh(a),e=ch(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);b=dh(a,e,d);null!==b&&(mh(b,a,d,c),eh(b,a,d))}};function oh(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie(c,d)||!Ie(e,f):!0}
function ph(a,b,c){var d=!1,e=Vf;var f=b.contextType;"object"===typeof f&&null!==f?f=Vg(f):(e=Zf(b)?Xf:H.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Yf(a,e):Vf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=nh;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}
function qh(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&nh.enqueueReplaceState(b,b.state,null)}
function rh(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=jh;ah(a);var f=b.contextType;"object"===typeof f&&null!==f?e.context=Vg(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a,f));e.state=a.memoizedState;f=b.getDerivedStateFromProps;"function"===typeof f&&(kh(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||"function"!==typeof e.UNSAFE_componentWillMount&&"function"!==typeof e.componentWillMount||(b=e.state,
"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&nh.enqueueReplaceState(e,e.state,null),gh(a,c,e,d),e.state=a.memoizedState);"function"===typeof e.componentDidMount&&(a.flags|=4194308)}
function sh(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p(309));var d=c.stateNode}if(!d)throw Error(p(147,a));var e=d,f=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;b===jh&&(b=e.refs={});null===a?delete b[f]:b[f]=a};b._stringRef=f;return b}if("string"!==typeof a)throw Error(p(284));if(!c._owner)throw Error(p(290,a));}return a}
function th(a,b){a=Object.prototype.toString.call(b);throw Error(p(31,"[object Object]"===a?"object with keys {"+Object.keys(b).join(", ")+"}":a));}function uh(a){var b=a._init;return b(a._payload)}
function vh(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c)}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=wh(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&
null===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=xh(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||"object"===typeof f&&null!==f&&f.$$typeof===Ha&&uh(f)===b.type))return d=e(b,c.props),d.ref=sh(a,b,c),d.return=a,d;d=yh(c.type,c.key,c.props,null,a.mode,d);d.ref=sh(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||
b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=zh(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Ah(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if("string"===typeof b&&""!==b||"number"===typeof b)return b=xh(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=yh(b.type,b.key,b.props,null,a.mode,c),
c.ref=sh(a,null,b),c.return=a,c;case wa:return b=zh(b,a.mode,c),b.return=a,b;case Ha:var d=b._init;return q(a,d(b._payload),c)}if(eb(b)||Ka(b))return b=Ah(b,a.mode,c,null),b.return=a,b;th(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c&&""!==c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return e=c._init,r(a,
b,e(c._payload),d)}if(eb(c)||Ka(c))return null!==e?null:m(a,b,c,d,null);th(a,c)}return null}function y(a,b,c,d,e){if("string"===typeof d&&""!==d||"number"===typeof d)return a=a.get(c)||null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb(d)||Ka(d))return a=a.get(c)||null,m(b,a,d,e,null);th(b,d)}return null}
function n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I&&tg(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===
x.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function t(e,g,h,k){var l=Ka(h);if("function"!==typeof l)throw Error(p(150));h=l.call(h);if(null==h)throw Error(p(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,
m),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){"object"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if("object"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=
f.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||"object"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==
d;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return"string"===typeof f&&""!==f||"number"===typeof f?(f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):
(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}
function Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);
function Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];
function Oh(){for(var a=0;a<Nh.length;a++)Nh[a]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N=null,O=null,P=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q(){throw Error(p(321));}function Wh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return!1;return!0}
function Xh(a,b,c,d,e,f){Rh=f;N=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Ph.current=null===a||null===a.memoizedState?Yh:Zh;a=c(d,e);if(Th){f=0;do{Th=!1;Uh=0;if(25<=f)throw Error(p(301));f+=1;P=O=null;b.updateQueue=null;Ph.current=$h;a=c(d,e)}while(Th)}Ph.current=ai;b=null!==O&&null!==O.next;Rh=0;P=O=N=null;Sh=!1;if(b)throw Error(p(300));return a}function bi(){var a=0!==Uh;Uh=0;return a}
function ci(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function di(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(p(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P}
function ei(a,b){return"function"===typeof b?b(a):b}
function fi(a){var b=di(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Rh&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,
eagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;N.lanes|=m;hh|=m}l=l.next}while(null!==l&&l!==f);null===k?g=d:k.next=h;He(d,b.memoizedState)||(Ug=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d}a=c.interleaved;if(null!==a){e=a;do f=e.lane,N.lanes|=f,hh|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return[b.memoizedState,c.dispatch]}
function gi(a){var b=di(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(Ug=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function hi(){}
function ii(a,b){var c=N,d=di(),e=b(),f=!He(d.memoizedState,e);f&&(d.memoizedState=e,Ug=!0);d=d.queue;ji(ki.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==P&&P.memoizedState.tag&1){c.flags|=2048;li(9,mi.bind(null,c,d,e,b),void 0,null);if(null===R)throw Error(p(349));0!==(Rh&30)||ni(c,b,e)}return e}function ni(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=N.updateQueue;null===b?(b={lastEffect:null,stores:null},N.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a))}
function mi(a,b,c,d){b.value=c;b.getSnapshot=d;oi(b)&&pi(a)}function ki(a,b,c){return c(function(){oi(b)&&pi(a)})}function oi(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!He(a,c)}catch(d){return!0}}function pi(a){var b=Zg(a,1);null!==b&&mh(b,a,1,-1)}
function qi(a){var b=ci();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:a};b.queue=a;a=a.dispatch=ri.bind(null,N,a);return[b.memoizedState,a]}
function li(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null,stores:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function si(){return di().memoizedState}function ti(a,b,c,d){var e=ci();N.flags|=a;e.memoizedState=li(1|b,c,void 0,void 0===d?null:d)}
function ui(a,b,c,d){var e=di();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Wh(d,g.deps)){e.memoizedState=li(b,c,f,d);return}}N.flags|=a;e.memoizedState=li(1|b,c,f,d)}function vi(a,b){return ti(8390656,8,a,b)}function ji(a,b){return ui(2048,8,a,b)}function wi(a,b){return ui(4,2,a,b)}function xi(a,b){return ui(4,4,a,b)}
function yi(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function zi(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ui(4,4,yi.bind(null,b,a),c)}function Ai(){}function Bi(a,b){var c=di();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Wh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
function Ci(a,b){var c=di();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Wh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Di(a,b,c){if(0===(Rh&21))return a.baseState&&(a.baseState=!1,Ug=!0),a.memoizedState=c;He(c,b)||(c=yc(),N.lanes|=c,hh|=c,a.baseState=!0);return b}function Ei(a,b){var c=C;C=0!==c&&4>c?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}
function Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}
function ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}
function Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}
var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,
4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=
ci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,
f,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=":"+b+"R"+c;c=Uh++;0<c&&(b+="H"+c.toString(32));b+=":"}else c=Vh++,b=":"+b+"r"+c.toString(32)+":";return a.memoizedState=b},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},
useDebugValue:Ai,useDeferredValue:function(a){var b=di();return Di(b,O.memoizedState,a)},useTransition:function(){var a=fi(ei)[0],b=di().memoizedState;return[a,b]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var b=di();return null===
O?b.memoizedState=a:Di(b,O.memoizedState,a)},useTransition:function(){var a=gi(ei)[0],b=di().memoizedState;return[a,b]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,b){try{var c="",d=b;do c+=Pa(d),d=d.return;while(d);var e=c}catch(f){e="\nError generating stack: "+f.message+"\n"+f.stack}return{value:a,source:b,stack:e,digest:null}}function Li(a,b,c){return{value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}
function Mi(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}var Ni="function"===typeof WeakMap?WeakMap:Map;function Oi(a,b,c){c=ch(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Pi||(Pi=!0,Qi=d);Mi(a,b)};return c}
function Ri(a,b,c){c=ch(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if("function"===typeof d){var e=b.value;c.payload=function(){return d(e)};c.callback=function(){Mi(a,b)}}var f=a.stateNode;null!==f&&"function"===typeof f.componentDidCatch&&(c.callback=function(){Mi(a,b);"function"!==typeof d&&(null===Si?Si=new Set([this]):Si.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""})});return c}
function Ti(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Ni;var e=new Set;d.set(b,e)}else e=d.get(b),void 0===e&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ui.bind(null,a,b,c),b.then(a,a))}function Vi(a){do{var b;if(b=13===a.tag)b=a.memoizedState,b=null!==b?null!==b.dehydrated?!0:!1:!0;if(b)return a;a=a.return}while(null!==a);return null}
function Wi(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=ch(-1,1),b.tag=2,dh(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(a,b,c,d){b.child=null===a?Ch(b,null,c,d):Bh(b,a.child,c,d)}
function Zi(a,b,c,d,e){c=c.render;var f=b.ref;Tg(b,e);d=Xh(a,b,c,d,f,e);c=bi();if(null!==a&&!Ug)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,$i(a,b,e);I&&c&&vg(b);b.flags|=1;Yi(a,b,d,e);return b.child}
function aj(a,b,c,d,e){if(null===a){var f=c.type;if("function"===typeof f&&!bj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,cj(a,b,f,d,e);a=yh(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie;if(c(g,d)&&a.ref===b.ref)return $i(a,b,e)}b.flags|=1;a=wh(f,d);a.ref=b.ref;a.return=b;return b.child=a}
function cj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref)if(Ug=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(Ug=!0);else return b.lanes=a.lanes,$i(a,b,e)}return dj(a,b,c,d,e)}
function ej(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=c;else{if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(fj,gj),gj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G(fj,gj);gj|=d}else null!==
f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(fj,gj),gj|=d;Yi(a,b,e,c);return b.child}function hj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152}function dj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);Tg(b,e);c=Xh(a,b,c,d,f,e);d=bi();if(null!==a&&!Ug)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,$i(a,b,e);I&&d&&vg(b);b.flags|=1;Yi(a,b,c,e);return b.child}
function ij(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b)}else f=!1;Tg(b,e);if(null===b.stateNode)jj(a,b),ph(b,c,d),rh(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=Vg(l):(l=Zf(c)?Xf:H.current,l=Yf(b,l));var m=c.getDerivedStateFromProps,q="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;q||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||
(h!==d||k!==l)&&qh(b,g,d,l);$g=!1;var r=b.memoizedState;g.state=r;gh(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf.current||$g?("function"===typeof m&&(kh(b,c,m,d),k=b.memoizedState),(h=$g||oh(b,c,h,d,r,k,l))?(q||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.flags|=4194308)):
("function"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1)}else{g=b.stateNode;bh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Lg(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;"object"===typeof k&&null!==k?k=Vg(k):(k=Zf(c)?Xf:H.current,k=Yf(b,k));var y=c.getDerivedStateFromProps;(m="function"===typeof y||"function"===typeof g.getSnapshotBeforeUpdate)||
"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&qh(b,g,d,k);$g=!1;r=b.memoizedState;g.state=r;gh(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf.current||$g?("function"===typeof y&&(kh(b,c,y,d),n=b.memoizedState),(l=$g||oh(b,c,l,d,r,n,k)||!1)?(m||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),"function"===typeof g.UNSAFE_componentWillUpdate&&
g.UNSAFE_componentWillUpdate(d,n,k)),"function"===typeof g.componentDidUpdate&&(b.flags|=4),"function"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===
a.memoizedState||(b.flags|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1)}return kj(a,b,c,d,f,e)}
function kj(a,b,c,d,e,f){hj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(b,c,!1),$i(a,b,f);d=b.stateNode;Xi.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Bh(b,a.child,null,f),b.child=Bh(b,null,h,f)):Yi(a,b,h,f);b.memoizedState=d.state;e&&dg(b,c,!0);return b.child}function lj(a){var b=a.stateNode;b.pendingContext?ag(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a,b.context,!1);Ih(a,b.containerInfo)}
function mj(a,b,c,d,e){Ig();Jg(e);b.flags|=256;Yi(a,b,c,d);return b.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}
function pj(a,b,c){var d=b.pendingProps,e=M.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G(M,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:"$!"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=
g):f=qj(g,d,0,null),a=Ah(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=oj(c),b.memoizedState=nj,a):rj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return sj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:"hidden",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=wh(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=wh(h,f):(f=Ah(f,g,c,null),f.flags|=2);f.return=
b;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?oj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=nj;return d}f=a.child;a=f.sibling;d=wh(f,{mode:"visible",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}
function rj(a,b){b=qj({mode:"visible",children:b},a.mode,0,null);b.return=a;return a.child=b}function tj(a,b,c,d){null!==d&&Jg(d);Bh(b,a.child,null,c);a=rj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}
function sj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Li(Error(p(422))),tj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=qj({mode:"visible",children:d.children},e,0,null);f=Ah(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Bh(b,a.child,null,g);b.child.memoizedState=oj(g);b.memoizedState=nj;return f}if(0===(b.mode&1))return tj(a,b,g,null);if("$!"===e.data){d=e.nextSibling&&e.nextSibling.dataset;
if(d)var h=d.dgst;d=h;f=Error(p(419));d=Li(f,d,void 0);return tj(a,b,g,d)}h=0!==(g&a.childLanes);if(Ug||h){d=R;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0}e=0!==(e&(d.suspendedLanes|g))?0:e;
0!==e&&e!==f.retryLane&&(f.retryLane=e,Zg(a,e),mh(d,a,e,-1))}uj();d=Li(Error(p(421)));return tj(a,b,g,d)}if("$?"===e.data)return b.flags|=128,b.child=a.child,b=vj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf(e.nextSibling);xg=b;I=!0;zg=null;null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b);b=rj(b,d.children);b.flags|=4096;return b}function wj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);Sg(a.return,b,c)}
function xj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e)}
function yj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Yi(a,b,d.children,c);d=M.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else{if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&wj(a,c,b);else if(19===a.tag)wj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}G(M,d);if(0===(b.mode&1))b.memoizedState=
null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Mh(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);xj(b,!1,e,c,f);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Mh(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}xj(b,!0,c,null,f);break;case "together":xj(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}
function jj(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2)}function $i(a,b,c){null!==a&&(b.dependencies=a.dependencies);hh|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p(153));if(null!==b.child){a=b.child;c=wh(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=wh(a,a.pendingProps),c.return=b;c.sibling=null}return b.child}
function zj(a,b,c){switch(b.tag){case 3:lj(b);Ig();break;case 5:Kh(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:Ih(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Mg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G(M,M.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return pj(a,b,c);G(M,M.current&1);a=$i(a,b,c);return null!==a?a.sibling:null}G(M,M.current&1);break;case 19:d=0!==(c&
b.childLanes);if(0!==(a.flags&128)){if(d)return yj(a,b,c);b.flags|=128}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G(M,M.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,ej(a,b,c)}return $i(a,b,c)}var Aj,Bj,Cj,Dj;
Aj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Bj=function(){};
Cj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;Hh(Eh.current);var f=null;switch(c){case "input":e=Ya(a,e);d=Ya(a,d);f=[];break;case "select":e=A({},e,{value:void 0});d=A({},d,{value:void 0});f=[];break;case "textarea":e=gb(a,e);d=gb(a,d);f=[];break;default:"function"!==typeof e.onClick&&"function"===typeof d.onClick&&(a.onclick=Bf)}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&
(c||(c={}),c[g]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(f||(f=[]),f.push(l,
c)),c=k;else"dangerouslySetInnerHTML"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):"children"===l?"string"!==typeof k&&"number"!==typeof k||(f=f||[]).push(l,""+k):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(ea.hasOwnProperty(l)?(null!=k&&"onScroll"===l&&D("scroll",a),f||h===k||(f=[])):(f=f||[]).push(l,k))}c&&(f=f||[]).push("style",c);var l=f;if(b.updateQueue=l)b.flags|=4}};Dj=function(a,b,c,d){c!==d&&(b.flags|=4)};
function Ej(a,b){if(!I)switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}
function S(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;a.subtreeFlags|=d;a.childLanes=c;return b}
function Fj(a,b,c){var d=b.pendingProps;wg(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:return Zf(b.type)&&$f(),S(b),null;case 3:d=b.stateNode;Jh();E(Wf);E(H);Oh();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg&&(Gj(zg),zg=null));Bj(a,b);S(b);return null;case 5:Lh(b);var e=Hh(Gh.current);
c=b.type;if(null!==a&&null!=b.stateNode)Cj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(null===b.stateNode)throw Error(p(166));S(b);return null}a=Hh(Eh.current);if(Gg(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of]=b;d[Pf]=f;a=0!==(b.mode&1);switch(c){case "dialog":D("cancel",d);D("close",d);break;case "iframe":case "object":case "embed":D("load",d);break;case "video":case "audio":for(e=0;e<lf.length;e++)D(lf[e],d);break;case "source":D("error",d);break;case "img":case "image":case "link":D("error",
d);D("load",d);break;case "details":D("toggle",d);break;case "input":Za(d,f);D("invalid",d);break;case "select":d._wrapperState={wasMultiple:!!f.multiple};D("invalid",d);break;case "textarea":hb(d,f),D("invalid",d)}ub(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];"children"===g?"string"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=["children",h]):"number"===typeof h&&d.textContent!==""+h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,
h,a),e=["children",""+h]):ea.hasOwnProperty(g)&&null!=h&&"onScroll"===g&&D("scroll",d)}switch(c){case "input":Va(d);db(d,f,!0);break;case "textarea":Va(d);jb(d);break;case "select":case "option":break;default:"function"===typeof f.onClick&&(d.onclick=Bf)}d=e;b.updateQueue=d;null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument;"http://www.w3.org/1999/xhtml"===a&&(a=kb(c));"http://www.w3.org/1999/xhtml"===a?"script"===c?(a=g.createElement("div"),a.innerHTML="<script>\x3c/script>",a=a.removeChild(a.firstChild)):
"string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case "dialog":D("cancel",a);D("close",a);e=d;break;case "iframe":case "object":case "embed":D("load",a);e=d;break;case "video":case "audio":for(e=0;e<lf.length;e++)D(lf[e],a);e=d;break;case "source":D("error",a);e=d;break;case "img":case "image":case "link":D("error",
a);D("load",a);e=d;break;case "details":D("toggle",a);e=d;break;case "input":Za(a,d);e=Ya(a,d);D("invalid",a);break;case "option":e=d;break;case "select":a._wrapperState={wasMultiple:!!d.multiple};e=A({},d,{value:void 0});D("invalid",a);break;case "textarea":hb(a,d);e=gb(a,d);D("invalid",a);break;default:e=d}ub(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?sb(a,k):"dangerouslySetInnerHTML"===f?(k=k?k.__html:void 0,null!=k&&nb(a,k)):"children"===f?"string"===typeof k?("textarea"!==
c||""!==k)&&ob(a,k):"number"===typeof k&&ob(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(ea.hasOwnProperty(f)?null!=k&&"onScroll"===f&&D("scroll",a):null!=k&&ta(a,f,k,g))}switch(c){case "input":Va(a);db(a,d,!1);break;case "textarea":Va(a);jb(a);break;case "option":null!=d.value&&a.setAttribute("value",""+Sa(d.value));break;case "select":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,
!0);break;default:"function"===typeof e.onClick&&(a.onclick=Bf)}switch(c){case "button":case "input":case "select":case "textarea":d=!!d.autoFocus;break a;case "img":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}null!==b.ref&&(b.flags|=512,b.flags|=2097152)}S(b);return null;case 6:if(a&&null!=b.stateNode)Dj(a,b,a.memoizedProps,d);else{if("string"!==typeof d&&null===b.stateNode)throw Error(p(166));c=Hh(Gh.current);Hh(Eh.current);if(Gg(b)){d=b.stateNode;c=b.memoizedProps;d[Of]=b;if(f=d.nodeValue!==c)if(a=
xg,null!==a)switch(a.tag){case 3:Af(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,0!==(a.mode&1))}f&&(b.flags|=4)}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d}S(b);return null;case 13:E(M);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===
a){if(!f)throw Error(p(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p(317));f[Of]=b}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b);f=!1}else null!==zg&&(Gj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(M.current&1)?0===T&&(T=3):uj()));null!==b.updateQueue&&(b.flags|=4);S(b);return null;case 4:return Jh(),
Bj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return Rg(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:E(M);f=b.memoizedState;if(null===f)return S(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Ej(f,!1);else{if(0!==T||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Mh(a);if(null!==g){b.flags|=128;Ej(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,
g=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G(M,M.current&1|2);return b.child}a=
a.sibling}null!==f.tail&&B()>Hj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=
b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}
function Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),
null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj="function"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if("function"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;
function Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=
q.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;
case 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent="":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}
function Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}"function"===typeof b?b(a):b.current=a}}
function Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}
function Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}
function Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}
function Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}
function ak(a,b,c){if(lc&&"function"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;
Zj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,"function"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==
c.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}
function dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X=h.stateNode;Yj=!1;break a;case 3:X=h.stateNode.containerInfo;Yj=!0;break a;case 4:X=h.stateNode.containerInfo;Yj=!0;break a}h=h.return}if(null===X)throw Error(p(160));ak(f,g,e);X=null;Yj=!1;var k=e.alternate;null!==k&&(k.return=null);e.return=null}catch(l){W(e,b,l)}}if(b.subtreeFlags&12854)for(b=b.child;null!==b;)ek(b,a),b=b.sibling}
function ek(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:dk(b,a);fk(a);if(d&4){try{Qj(3,a,a.return),Rj(3,a)}catch(t){W(a,a.return,t)}try{Qj(5,a,a.return)}catch(t){W(a,a.return,t)}}break;case 1:dk(b,a);fk(a);d&512&&null!==c&&Mj(c,c.return);break;case 5:dk(b,a);fk(a);d&512&&null!==c&&Mj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob(e,"")}catch(t){W(a,a.return,t)}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;
a.updateQueue=null;if(null!==k)try{"input"===h&&"radio"===f.type&&null!=f.name&&ab(e,f);vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];"style"===m?sb(e,q):"dangerouslySetInnerHTML"===m?nb(e,q):"children"===m?ob(e,q):ta(e,m,q,l)}switch(h){case "input":bb(e,f);break;case "textarea":ib(e,f);break;case "select":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,
f.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:"",!1))}e[Pf]=f}catch(t){W(a,a.return,t)}}break;case 6:dk(b,a);fk(a);if(d&4){if(null===a.stateNode)throw Error(p(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f}catch(t){W(a,a.return,t)}}break;case 3:dk(b,a);fk(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a,a.return,t)}break;case 4:dk(b,a);fk(a);break;case 13:dk(b,a);fk(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||
null!==e.alternate&&null!==e.alternate.memoizedState||(gk=B()));d&4&&bk(a);break;case 22:m=null!==c&&null!==c.memoizedState;a.mode&1?(U=(l=U)||m,dk(b,a),U=l):dk(b,a);fk(a);if(d&8192){l=null!==a.memoizedState;if((a.stateNode.isHidden=l)&&!m&&0!==(a.mode&1))for(V=a,m=a.child;null!==m;){for(q=V=m;null!==V;){r=V;y=r.child;switch(r.tag){case 0:case 11:case 14:case 15:Qj(4,r,r.return);break;case 1:Mj(r,r.return);var n=r.stateNode;if("function"===typeof n.componentWillUnmount){d=r;c=r.return;try{b=d,n.props=
b.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c,t)}}break;case 5:Mj(r,r.return);break;case 22:if(null!==r.memoizedState){hk(q);continue}}null!==y?(y.return=r,V=y):hk(q)}m=m.sibling}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?(f=e.style,"function"===typeof f.setProperty?f.setProperty("display","none","important"):f.display="none"):(h=q.stateNode,k=q.memoizedProps.style,g=void 0!==k&&null!==k&&k.hasOwnProperty("display")?k.display:null,h.style.display=
rb("display",g))}catch(t){W(a,a.return,t)}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?"":q.memoizedProps}catch(t){W(a,a.return,t)}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q;q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null);q=q.return}m===q&&(m=null);q.sibling.return=q.return;q=q.sibling}}break;case 19:dk(b,a);fk(a);d&4&&bk(a);break;case 21:break;default:dk(b,
a),fk(a)}}function fk(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Uj(c)){var d=c;break a}c=c.return}throw Error(p(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,""),d.flags&=-33);var f=Vj(a);Xj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Vj(a);Wj(a,h,g);break;default:throw Error(p(161));}}catch(k){W(a,a.return,k)}a.flags&=-3}b&4096&&(a.flags&=-4097)}function ik(a,b,c){V=a;jk(a,b,c)}
function jk(a,b,c){for(var d=0!==(a.mode&1);null!==V;){var e=V,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Kj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U;h=Kj;var l=U;Kj=g;if((U=k)&&!l)for(V=e;null!==V;)g=V,k=g.child,22===g.tag&&null!==g.memoizedState?kk(e):null!==k?(k.return=g,V=k):kk(e);for(;null!==f;)V=f,jk(f,b,c),f=f.sibling;V=e;Kj=h;U=l}lk(a,b,c)}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V=f):lk(a,b,c)}}
function lk(a){for(;null!==V;){var b=V;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U||Rj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U)if(null===c)d.componentDidMount();else{var e=b.elementType===b.type?c.memoizedProps:Lg(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;null!==f&&ih(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=
b.child.stateNode;break;case 1:c=b.child.stateNode}ih(b,g,c)}break;case 5:var h=b.stateNode;if(null===c&&b.flags&4){c=h;var k=b.memoizedProps;switch(b.type){case "button":case "input":case "select":case "textarea":k.autoFocus&&c.focus();break;case "img":k.src&&(c.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;
default:throw Error(p(163));}U||b.flags&512&&Sj(b)}catch(r){W(b,b.return,r)}}if(b===a){V=null;break}c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}function hk(a){for(;null!==V;){var b=V;if(b===a){V=null;break}var c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}
function kk(a){for(;null!==V;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Rj(4,b)}catch(k){W(b,c,k)}break;case 1:var d=b.stateNode;if("function"===typeof d.componentDidMount){var e=b.return;try{d.componentDidMount()}catch(k){W(b,e,k)}}var f=b.return;try{Sj(b)}catch(k){W(b,f,k)}break;case 5:var g=b.return;try{Sj(b)}catch(k){W(b,g,k)}}}catch(k){W(b,b.return,k)}if(b===a){V=null;break}var h=b.sibling;if(null!==h){h.return=b.return;V=h;break}V=b.return}}
var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K=0,R=null,Y=null,Z=0,gj=0,fj=Uf(0),T=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=Infinity,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L(){return 0!==(K&6)?B():-1!==Bk?Bk:Bk=B()}
function lh(a){if(0===(a.mode&1))return 1;if(0!==(K&2)&&0!==Z)return Z&-Z;if(null!==Kg.transition)return 0===Ck&&(Ck=yc()),Ck;a=C;if(0!==a)return a;a=window.event;a=void 0===a?16:jd(a.type);return a}function mh(a,b,c,d){if(50<zk)throw zk=0,Ak=null,Error(p(185));Ac(a,c,d);if(0===(K&2)||a!==R)a===R&&(0===(K&2)&&(rk|=c),4===T&&Dk(a,Z)),Ek(a,d),1===c&&0===K&&0===(b.mode&1)&&(Hj=B()+500,fg&&jg())}
function Ek(a,b){var c=a.callbackNode;wc(a,b);var d=uc(a,a===R?Z:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc(c);if(1===b)0===a.tag?ig(Fk.bind(null,a)):hg(Fk.bind(null,a)),Jf(function(){0===(K&6)&&jg()}),c=null;else{switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:c=hc;break;case 536870912:c=jc;break;default:c=hc}c=Gk(c,Hk.bind(null,a))}a.callbackPriority=b;a.callbackNode=c}}
function Hk(a,b){Bk=-1;Ck=0;if(0!==(K&6))throw Error(p(327));var c=a.callbackNode;if(Ik()&&a.callbackNode!==c)return null;var d=uc(a,a===R?Z:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Jk(a,d);else{b=d;var e=K;K|=2;var f=Kk();if(R!==a||Z!==b)vk=null,Hj=B()+500,Lk(a,b);do try{Mk();break}catch(h){Nk(a,h)}while(1);Qg();nk.current=f;K=e;null!==Y?b=0:(R=null,Z=0,b=T)}if(0!==b){2===b&&(e=xc(a),0!==e&&(d=e,b=Ok(a,e)));if(1===b)throw c=qk,Lk(a,0),Dk(a,d),Ek(a,B()),c;if(6===b)Dk(a,d);
else{e=a.current.alternate;if(0===(d&30)&&!Pk(e)&&(b=Jk(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Ok(a,f))),1===b))throw c=qk,Lk(a,0),Dk(a,d),Ek(a,B()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p(345));case 2:Qk(a,uk,vk);break;case 3:Dk(a,d);if((d&130023424)===d&&(b=gk+500-B(),10<b)){if(0!==uc(a,0))break;e=a.suspendedLanes;if((e&d)!==d){L();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),b);break}Qk(a,uk,vk);break;case 4:Dk(a,d);if((d&4194240)===
d)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10<d){a.timeoutHandle=Ff(Qk.bind(null,a,uk,vk),d);break}Qk(a,uk,vk);break;case 5:Qk(a,uk,vk);break;default:throw Error(p(329));}}}Ek(a,B());return a.callbackNode===c?Hk.bind(null,a):null}
function Ok(a,b){var c=tk;a.current.memoizedState.isDehydrated&&(Lk(a,b).flags|=256);a=Jk(a,b);2!==a&&(b=uk,uk=c,null!==b&&Gj(b));return a}function Gj(a){null===uk?uk=a:uk.push.apply(uk,a)}
function Pk(a){for(var b=a;;){if(b.flags&16384){var c=b.updateQueue;if(null!==c&&(c=c.stores,null!==c))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch(g){return!1}}}c=b.child;if(b.subtreeFlags&16384&&null!==c)c.return=b,b=c;else{if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return!0;b=b.return}b.sibling.return=b.return;b=b.sibling}}return!0}
function Dk(a,b){b&=~sk;b&=~rk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1;b&=~d}}function Fk(a){if(0!==(K&6))throw Error(p(327));Ik();var b=uc(a,0);if(0===(b&1))return Ek(a,B()),null;var c=Jk(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Ok(a,d))}if(1===c)throw c=qk,Lk(a,0),Dk(a,b),Ek(a,B()),c;if(6===c)throw Error(p(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Qk(a,uk,vk);Ek(a,B());return null}
function Rk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Hj=B()+500,fg&&jg())}}function Sk(a){null!==xk&&0===xk.tag&&0===(K&6)&&Ik();var b=K;K|=1;var c=pk.transition,d=C;try{if(pk.transition=null,C=1,a)return a()}finally{C=d,pk.transition=c,K=b,0===(K&6)&&jg()}}function Ij(){gj=fj.current;E(fj)}
function Lk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf(c));if(null!==Y)for(c=Y.return;null!==c;){var d=c;wg(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f();break;case 3:Jh();E(Wf);E(H);Oh();break;case 5:Lh(d);break;case 4:Jh();break;case 13:E(M);break;case 19:E(M);break;case 10:Rg(d.type._context);break;case 22:case 23:Ij()}c=c.return}R=a;Y=a=wh(a.current,null);Z=gj=b;T=0;qk=null;sk=rk=hh=0;uk=tk=null;if(null!==Wg){for(b=
0;b<Wg.length;b++)if(c=Wg[b],d=c.interleaved,null!==d){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e;d.next=g}c.pending=d}Wg=null}return a}
function Nk(a,b){do{var c=Y;try{Qg();Ph.current=ai;if(Sh){for(var d=N.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next}Sh=!1}Rh=0;P=O=N=null;Th=!1;Uh=0;ok.current=null;if(null===c||null===c.return){T=1;qk=b;Y=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z;h.flags|=32768;if(null!==k&&"object"===typeof k&&"function"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,
m.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Vi(g);if(null!==y){y.flags&=-257;Wi(y,g,h,f,b);y.mode&1&&Ti(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t}else n.add(k);break a}else{if(0===(b&1)){Ti(f,l,b);uj();break a}k=Error(p(426))}}else if(I&&h.mode&1){var J=Vi(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Wi(J,g,h,f,b);Jg(Ki(k,h));break a}}f=k=Ki(k,h);4!==T&&(T=2);null===tk?tk=[f]:tk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;
b&=-b;f.lanes|=b;var x=Oi(f,k,b);fh(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&("function"===typeof w.getDerivedStateFromError||null!==u&&"function"===typeof u.componentDidCatch&&(null===Si||!Si.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Ri(f,h,b);fh(f,F);break a}}f=f.return}while(null!==f)}Tk(c)}catch(na){b=na;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}function Kk(){var a=nk.current;nk.current=ai;return null===a?ai:a}
function uj(){if(0===T||3===T||2===T)T=4;null===R||0===(hh&268435455)&&0===(rk&268435455)||Dk(R,Z)}function Jk(a,b){var c=K;K|=2;var d=Kk();if(R!==a||Z!==b)vk=null,Lk(a,b);do try{Uk();break}catch(e){Nk(a,e)}while(1);Qg();K=c;nk.current=d;if(null!==Y)throw Error(p(261));R=null;Z=0;return T}function Uk(){for(;null!==Y;)Vk(Y)}function Mk(){for(;null!==Y&&!cc();)Vk(Y)}function Vk(a){var b=Wk(a.alternate,a,gj);a.memoizedProps=a.pendingProps;null===b?Tk(a):Y=b;ok.current=null}
function Tk(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Fj(c,b,gj),null!==c){Y=c;return}}else{c=Jj(c,b);if(null!==c){c.flags&=32767;Y=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6;Y=null;return}}b=b.sibling;if(null!==b){Y=b;return}Y=b=a}while(null!==b);0===T&&(T=5)}function Qk(a,b,c){var d=C,e=pk.transition;try{pk.transition=null,C=1,Xk(a,b,c,d)}finally{pk.transition=e,C=d}return null}
function Xk(a,b,c,d){do Ik();while(null!==xk);if(0!==(K&6))throw Error(p(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc(a,f);a===R&&(Y=R=null,Z=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||wk||(wk=!0,Gk(hc,function(){Ik();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=pk.transition;pk.transition=null;
var g=C;C=1;var h=K;K|=4;ok.current=null;Pj(a,c);ek(c,a);Oe(Df);dd=!!Cf;Df=Cf=null;a.current=c;ik(c,a,e);dc();K=h;C=g;pk.transition=f}else a.current=c;wk&&(wk=!1,xk=a,yk=e);f=a.pendingLanes;0===f&&(Si=null);mc(c.stateNode,d);Ek(a,B());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Pi)throw Pi=!1,a=Qi,Qi=null,a;0!==(yk&1)&&0!==a.tag&&Ik();f=a.pendingLanes;0!==(f&1)?a===Ak?zk++:(zk=0,Ak=a):zk=0;jg();return null}
function Ik(){if(null!==xk){var a=Dc(yk),b=pk.transition,c=C;try{pk.transition=null;C=16>a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V=l;null!==V;){var m=V;switch(m.tag){case 0:case 11:case 15:Qj(8,m,f)}var q=m.child;if(null!==q)q.return=m,V=q;else for(;null!==V;){m=V;var r=m.sibling,y=m.return;Tj(m);if(m===
l){V=null;break}if(null!==r){r.return=y;V=r;break}V=y}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null;t=J}while(null!==t)}}V=f}}if(0!==(f.subtreeFlags&2064)&&null!==g)g.return=f,V=g;else b:for(;null!==V;){f=V;if(0!==(f.flags&2048))switch(f.tag){case 0:case 11:case 15:Qj(9,f,f.return)}var x=f.sibling;if(null!==x){x.return=f.return;V=x;break b}V=f.return}}var w=a.current;for(V=w;null!==V;){g=V;var u=g.child;if(0!==(g.subtreeFlags&2064)&&null!==
u)u.return=g,V=u;else b:for(g=w;null!==V;){h=V;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Rj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V=F;break b}V=h.return}}K=e;jg();if(lc&&"function"===typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a)}catch(na){}d=!0}return d}finally{C=c,pk.transition=b}}return!1}function Yk(a,b,c){b=Ki(c,b);b=Oi(a,b,1);a=dh(a,b,1);b=L();null!==a&&(Ac(a,1,b),Ek(a,b))}
function W(a,b,c){if(3===a.tag)Yk(a,a,c);else for(;null!==b;){if(3===b.tag){Yk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if("function"===typeof b.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===Si||!Si.has(d))){a=Ki(c,a);a=Ri(b,a,1);b=dh(b,a,1);a=L();null!==b&&(Ac(b,1,a),Ek(b,a));break}}b=b.return}}
function Ui(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=L();a.pingedLanes|=a.suspendedLanes&c;R===a&&(Z&c)===c&&(4===T||3===T&&(Z&130023424)===Z&&500>B()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}
function ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;
Wk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;"object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=
null,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,
d,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=
f,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),
hj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;
g=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,
c,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),
b.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}
function al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}
function $k(a){if("function"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}
function wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};
c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}
function yh(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)bj(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;
break a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,""));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}
function zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}
function bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=
null}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}
function el(a){if(!a)return Vf;a=a._reactInternals;a:{if(Vb(a)!==a||1!==a.tag)throw Error(p(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(null!==b);throw Error(p(171));}if(1===a.tag){var c=a.type;if(Zf(c))return bg(a,c,b)}return b}
function fl(a,b,c,d,e,f,g,h,k){a=cl(c,d,!0,a,e,f,g,h,k);a.context=el(null);c=a.current;d=L();e=lh(c);f=ch(d,e);f.callback=void 0!==b&&null!==b?b:null;dh(c,f,e);a.current.lanes=e;Ac(a,e,d);Ek(a,d);return a}function gl(a,b,c,d){var e=b.current,f=L(),g=lh(e);c=el(c);null===b.context?b.context=c:b.pendingContext=c;b=ch(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=dh(e,b,g);null!==a&&(mh(a,e,g,f),eh(a,e,g));return g}
function hl(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function il(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function jl(a,b){il(a,b);(a=a.alternate)&&il(a,b)}function kl(){return null}var ll="function"===typeof reportError?reportError:function(a){console.error(a)};function ml(a){this._internalRoot=a}
nl.prototype.render=ml.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p(409));gl(a,b,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Sk(function(){gl(null,a,null,null)});b[uf]=null}};function nl(a){this._internalRoot=a}
nl.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a);0===c&&Vc(a)}};function ol(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function pl(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function ql(){}
function rl(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var a=hl(g);f.call(a)}}var g=fl(b,d,a,0,null,!1,!1,"",ql);a._reactRootContainer=g;a[uf]=g.current;sf(8===a.nodeType?a.parentNode:a);Sk();return g}for(;e=a.lastChild;)a.removeChild(e);if("function"===typeof d){var h=d;d=function(){var a=hl(k);h.call(a)}}var k=cl(a,0,!1,null,null,!1,!1,"",ql);a._reactRootContainer=k;a[uf]=k.current;sf(8===a.nodeType?a.parentNode:a);Sk(function(){gl(b,k,c,d)});return k}
function sl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var a=hl(g);h.call(a)}}gl(b,g,a,e)}else g=rl(c,b,a,e,d);return hl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Ek(b,B()),0===(K&6)&&(Hj=B()+500,jg()))}break;case 13:Sk(function(){var b=Zg(a,1);if(null!==b){var c=L();mh(b,a,1,c)}}),jl(a,1)}};
Fc=function(a){if(13===a.tag){var b=Zg(a,134217728);if(null!==b){var c=L();mh(b,a,134217728,c)}jl(a,134217728)}};Gc=function(a){if(13===a.tag){var b=lh(a),c=Zg(a,b);if(null!==c){var d=L();mh(c,a,b,d)}jl(a,b)}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c}};
yb=function(a,b,c){switch(b){case "input":bb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d);bb(d,e)}}}break;case "textarea":ib(a,c);break;case "select":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1)}};Gb=Rk;Hb=Sk;
var tl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"};
var vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||
kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;
exports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(b))throw Error(p(200));return dl(a,b,null,c)};exports.createRoot=function(a,b){if(!ol(a))throw Error(p(299));var c=!1,d="",e=ll;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=cl(a,1,!1,null,null,c,!1,d,e);a[uf]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ml(b)};
exports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(p(188));a=Object.keys(a).join(",");throw Error(p(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Sk(a)};exports.hydrate=function(a,b,c){if(!pl(b))throw Error(p(200));return sl(null,a,b,!0,c)};
exports.hydrateRoot=function(a,b,c){if(!ol(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=ll;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=fl(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,
e);return new nl(b)};exports.render=function(a,b,c){if(!pl(b))throw Error(p(200));return sl(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!pl(a))throw Error(p(40));return a._reactRootContainer?(Sk(function(){sl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf]=null})}),!0):!1};exports.unstable_batchedUpdates=Rk;
exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!pl(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return sl(a,b,c,!1,d)};exports.version="18.2.0-next-9e3b772b8-20220608";


/***/ }),
/* 150 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(setImmediate) {/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}
function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null;
"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}
function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if("function"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;
function M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a)}finally{b?S():(N=!1,O=null)}}else N=!1}var S;if("function"===typeof F)S=function(){F(R)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a){O=a;N||(N=!0,S())}function K(a,b){L=D(function(){a(exports.unstable_now())},b)}
exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J))};
exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a?Math.floor(1E3/a):5};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c=y;y=b;try{return a()}finally{y=c}};exports.unstable_pauseExecution=function(){};
exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=y;y=a;try{return b()}finally{y=c}};
exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};
exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(82).setImmediate))

/***/ }),
/* 151 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
    "use strict";

    if (global.setImmediate) {
        return;
    }

    var nextHandle = 1; // Spec says greater than zero
    var tasksByHandle = {};
    var currentlyRunningATask = false;
    var doc = global.document;
    var registerImmediate;

    function setImmediate(callback) {
      // Callback can either be a function or a string
      if (typeof callback !== "function") {
        callback = new Function("" + callback);
      }
      // Copy function arguments
      var args = new Array(arguments.length - 1);
      for (var i = 0; i < args.length; i++) {
          args[i] = arguments[i + 1];
      }
      // Store and register the task
      var task = { callback: callback, args: args };
      tasksByHandle[nextHandle] = task;
      registerImmediate(nextHandle);
      return nextHandle++;
    }

    function clearImmediate(handle) {
        delete tasksByHandle[handle];
    }

    function run(task) {
        var callback = task.callback;
        var args = task.args;
        switch (args.length) {
        case 0:
            callback();
            break;
        case 1:
            callback(args[0]);
            break;
        case 2:
            callback(args[0], args[1]);
            break;
        case 3:
            callback(args[0], args[1], args[2]);
            break;
        default:
            callback.apply(undefined, args);
            break;
        }
    }

    function runIfPresent(handle) {
        // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
        // So if we're currently running a task, we'll need to delay this invocation.
        if (currentlyRunningATask) {
            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
            // "too much recursion" error.
            setTimeout(runIfPresent, 0, handle);
        } else {
            var task = tasksByHandle[handle];
            if (task) {
                currentlyRunningATask = true;
                try {
                    run(task);
                } finally {
                    clearImmediate(handle);
                    currentlyRunningATask = false;
                }
            }
        }
    }

    function installNextTickImplementation() {
        registerImmediate = function(handle) {
            process.nextTick(function () { runIfPresent(handle); });
        };
    }

    function canUsePostMessage() {
        // The test against `importScripts` prevents this implementation from being installed inside a web worker,
        // where `global.postMessage` means something completely different and can't be used for this purpose.
        if (global.postMessage && !global.importScripts) {
            var postMessageIsAsynchronous = true;
            var oldOnMessage = global.onmessage;
            global.onmessage = function() {
                postMessageIsAsynchronous = false;
            };
            global.postMessage("", "*");
            global.onmessage = oldOnMessage;
            return postMessageIsAsynchronous;
        }
    }

    function installPostMessageImplementation() {
        // Installs an event handler on `global` for the `message` event: see
        // * https://developer.mozilla.org/en/DOM/window.postMessage
        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages

        var messagePrefix = "setImmediate$" + Math.random() + "$";
        var onGlobalMessage = function(event) {
            if (event.source === global &&
                typeof event.data === "string" &&
                event.data.indexOf(messagePrefix) === 0) {
                runIfPresent(+event.data.slice(messagePrefix.length));
            }
        };

        if (global.addEventListener) {
            global.addEventListener("message", onGlobalMessage, false);
        } else {
            global.attachEvent("onmessage", onGlobalMessage);
        }

        registerImmediate = function(handle) {
            global.postMessage(messagePrefix + handle, "*");
        };
    }

    function installMessageChannelImplementation() {
        var channel = new MessageChannel();
        channel.port1.onmessage = function(event) {
            var handle = event.data;
            runIfPresent(handle);
        };

        registerImmediate = function(handle) {
            channel.port2.postMessage(handle);
        };
    }

    function installReadyStateChangeImplementation() {
        var html = doc.documentElement;
        registerImmediate = function(handle) {
            // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
            var script = doc.createElement("script");
            script.onreadystatechange = function () {
                runIfPresent(handle);
                script.onreadystatechange = null;
                html.removeChild(script);
                script = null;
            };
            html.appendChild(script);
        };
    }

    function installSetTimeoutImplementation() {
        registerImmediate = function(handle) {
            setTimeout(runIfPresent, 0, handle);
        };
    }

    // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
    var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
    attachTo = attachTo && attachTo.setTimeout ? attachTo : global;

    // Don't get fooled by e.g. browserify environments.
    if ({}.toString.call(global.process) === "[object process]") {
        // For Node.js before 0.9
        installNextTickImplementation();

    } else if (canUsePostMessage()) {
        // For non-IE10 modern browsers
        installPostMessageImplementation();

    } else if (global.MessageChannel) {
        // For web workers, where supported
        installMessageChannelImplementation();

    } else if (doc && "onreadystatechange" in doc.createElement("script")) {
        // For IE 6–8
        installReadyStateChangeImplementation();

    } else {
        // For older browsers
        installSetTimeoutImplementation();
    }

    attachTo.setImmediate = setImmediate;
    attachTo.clearImmediate = clearImmediate;
}(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(31), __webpack_require__(7)))

/***/ }),
/* 152 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process, setImmediate) {/**
 * @license React
 * scheduler.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (process.env.NODE_ENV !== "production") {
  (function() {

          'use strict';

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
          var enableSchedulerDebugging = false;
var enableProfiling = false;
var frameYieldMs = 5;

function push(heap, node) {
  var index = heap.length;
  heap.push(node);
  siftUp(heap, node, index);
}
function peek(heap) {
  return heap.length === 0 ? null : heap[0];
}
function pop(heap) {
  if (heap.length === 0) {
    return null;
  }

  var first = heap[0];
  var last = heap.pop();

  if (last !== first) {
    heap[0] = last;
    siftDown(heap, last, 0);
  }

  return first;
}

function siftUp(heap, node, i) {
  var index = i;

  while (index > 0) {
    var parentIndex = index - 1 >>> 1;
    var parent = heap[parentIndex];

    if (compare(parent, node) > 0) {
      // The parent is larger. Swap positions.
      heap[parentIndex] = node;
      heap[index] = parent;
      index = parentIndex;
    } else {
      // The parent is smaller. Exit.
      return;
    }
  }
}

function siftDown(heap, node, i) {
  var index = i;
  var length = heap.length;
  var halfLength = length >>> 1;

  while (index < halfLength) {
    var leftIndex = (index + 1) * 2 - 1;
    var left = heap[leftIndex];
    var rightIndex = leftIndex + 1;
    var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.

    if (compare(left, node) < 0) {
      if (rightIndex < length && compare(right, left) < 0) {
        heap[index] = right;
        heap[rightIndex] = node;
        index = rightIndex;
      } else {
        heap[index] = left;
        heap[leftIndex] = node;
        index = leftIndex;
      }
    } else if (rightIndex < length && compare(right, node) < 0) {
      heap[index] = right;
      heap[rightIndex] = node;
      index = rightIndex;
    } else {
      // Neither child is smaller. Exit.
      return;
    }
  }
}

function compare(a, b) {
  // Compare sort index first, then task id.
  var diff = a.sortIndex - b.sortIndex;
  return diff !== 0 ? diff : a.id - b.id;
}

// TODO: Use symbols?
var ImmediatePriority = 1;
var UserBlockingPriority = 2;
var NormalPriority = 3;
var LowPriority = 4;
var IdlePriority = 5;

function markTaskErrored(task, ms) {
}

/* eslint-disable no-var */

var hasPerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';

if (hasPerformanceNow) {
  var localPerformance = performance;

  exports.unstable_now = function () {
    return localPerformance.now();
  };
} else {
  var localDate = Date;
  var initialTime = localDate.now();

  exports.unstable_now = function () {
    return localDate.now() - initialTime;
  };
} // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
// Math.pow(2, 30) - 1
// 0b111111111111111111111111111111


var maxSigned31BitInt = 1073741823; // Times out immediately

var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out

var USER_BLOCKING_PRIORITY_TIMEOUT = 250;
var NORMAL_PRIORITY_TIMEOUT = 5000;
var LOW_PRIORITY_TIMEOUT = 10000; // Never times out

var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; // Tasks are stored on a min heap

var taskQueue = [];
var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.

var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
var currentTask = null;
var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrance.

var isPerformingWork = false;
var isHostCallbackScheduled = false;
var isHostTimeoutScheduled = false; // Capture local references to native APIs, in case a polyfill overrides them.

var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : null;
var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : null;
var localSetImmediate = typeof setImmediate !== 'undefined' ? setImmediate : null; // IE and Node.js + jsdom

var isInputPending = typeof navigator !== 'undefined' && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null;

function advanceTimers(currentTime) {
  // Check for tasks that are no longer delayed and add them to the queue.
  var timer = peek(timerQueue);

  while (timer !== null) {
    if (timer.callback === null) {
      // Timer was cancelled.
      pop(timerQueue);
    } else if (timer.startTime <= currentTime) {
      // Timer fired. Transfer to the task queue.
      pop(timerQueue);
      timer.sortIndex = timer.expirationTime;
      push(taskQueue, timer);
    } else {
      // Remaining timers are pending.
      return;
    }

    timer = peek(timerQueue);
  }
}

function handleTimeout(currentTime) {
  isHostTimeoutScheduled = false;
  advanceTimers(currentTime);

  if (!isHostCallbackScheduled) {
    if (peek(taskQueue) !== null) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    } else {
      var firstTimer = peek(timerQueue);

      if (firstTimer !== null) {
        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
      }
    }
  }
}

function flushWork(hasTimeRemaining, initialTime) {


  isHostCallbackScheduled = false;

  if (isHostTimeoutScheduled) {
    // We scheduled a timeout but it's no longer needed. Cancel it.
    isHostTimeoutScheduled = false;
    cancelHostTimeout();
  }

  isPerformingWork = true;
  var previousPriorityLevel = currentPriorityLevel;

  try {
    if (enableProfiling) {
      try {
        return workLoop(hasTimeRemaining, initialTime);
      } catch (error) {
        if (currentTask !== null) {
          var currentTime = exports.unstable_now();
          markTaskErrored(currentTask, currentTime);
          currentTask.isQueued = false;
        }

        throw error;
      }
    } else {
      // No catch in prod code path.
      return workLoop(hasTimeRemaining, initialTime);
    }
  } finally {
    currentTask = null;
    currentPriorityLevel = previousPriorityLevel;
    isPerformingWork = false;
  }
}

function workLoop(hasTimeRemaining, initialTime) {
  var currentTime = initialTime;
  advanceTimers(currentTime);
  currentTask = peek(taskQueue);

  while (currentTask !== null && !(enableSchedulerDebugging )) {
    if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
      // This currentTask hasn't expired, and we've reached the deadline.
      break;
    }

    var callback = currentTask.callback;

    if (typeof callback === 'function') {
      currentTask.callback = null;
      currentPriorityLevel = currentTask.priorityLevel;
      var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;

      var continuationCallback = callback(didUserCallbackTimeout);
      currentTime = exports.unstable_now();

      if (typeof continuationCallback === 'function') {
        currentTask.callback = continuationCallback;
      } else {

        if (currentTask === peek(taskQueue)) {
          pop(taskQueue);
        }
      }

      advanceTimers(currentTime);
    } else {
      pop(taskQueue);
    }

    currentTask = peek(taskQueue);
  } // Return whether there's additional work


  if (currentTask !== null) {
    return true;
  } else {
    var firstTimer = peek(timerQueue);

    if (firstTimer !== null) {
      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
    }

    return false;
  }
}

function unstable_runWithPriority(priorityLevel, eventHandler) {
  switch (priorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
    case LowPriority:
    case IdlePriority:
      break;

    default:
      priorityLevel = NormalPriority;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_next(eventHandler) {
  var priorityLevel;

  switch (currentPriorityLevel) {
    case ImmediatePriority:
    case UserBlockingPriority:
    case NormalPriority:
      // Shift down to normal priority
      priorityLevel = NormalPriority;
      break;

    default:
      // Anything lower than normal priority should remain at the current level.
      priorityLevel = currentPriorityLevel;
      break;
  }

  var previousPriorityLevel = currentPriorityLevel;
  currentPriorityLevel = priorityLevel;

  try {
    return eventHandler();
  } finally {
    currentPriorityLevel = previousPriorityLevel;
  }
}

function unstable_wrapCallback(callback) {
  var parentPriorityLevel = currentPriorityLevel;
  return function () {
    // This is a fork of runWithPriority, inlined for performance.
    var previousPriorityLevel = currentPriorityLevel;
    currentPriorityLevel = parentPriorityLevel;

    try {
      return callback.apply(this, arguments);
    } finally {
      currentPriorityLevel = previousPriorityLevel;
    }
  };
}

function unstable_scheduleCallback(priorityLevel, callback, options) {
  var currentTime = exports.unstable_now();
  var startTime;

  if (typeof options === 'object' && options !== null) {
    var delay = options.delay;

    if (typeof delay === 'number' && delay > 0) {
      startTime = currentTime + delay;
    } else {
      startTime = currentTime;
    }
  } else {
    startTime = currentTime;
  }

  var timeout;

  switch (priorityLevel) {
    case ImmediatePriority:
      timeout = IMMEDIATE_PRIORITY_TIMEOUT;
      break;

    case UserBlockingPriority:
      timeout = USER_BLOCKING_PRIORITY_TIMEOUT;
      break;

    case IdlePriority:
      timeout = IDLE_PRIORITY_TIMEOUT;
      break;

    case LowPriority:
      timeout = LOW_PRIORITY_TIMEOUT;
      break;

    case NormalPriority:
    default:
      timeout = NORMAL_PRIORITY_TIMEOUT;
      break;
  }

  var expirationTime = startTime + timeout;
  var newTask = {
    id: taskIdCounter++,
    callback: callback,
    priorityLevel: priorityLevel,
    startTime: startTime,
    expirationTime: expirationTime,
    sortIndex: -1
  };

  if (startTime > currentTime) {
    // This is a delayed task.
    newTask.sortIndex = startTime;
    push(timerQueue, newTask);

    if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
      // All tasks are delayed, and this is the task with the earliest delay.
      if (isHostTimeoutScheduled) {
        // Cancel an existing timeout.
        cancelHostTimeout();
      } else {
        isHostTimeoutScheduled = true;
      } // Schedule a timeout.


      requestHostTimeout(handleTimeout, startTime - currentTime);
    }
  } else {
    newTask.sortIndex = expirationTime;
    push(taskQueue, newTask);
    // wait until the next time we yield.


    if (!isHostCallbackScheduled && !isPerformingWork) {
      isHostCallbackScheduled = true;
      requestHostCallback(flushWork);
    }
  }

  return newTask;
}

function unstable_pauseExecution() {
}

function unstable_continueExecution() {

  if (!isHostCallbackScheduled && !isPerformingWork) {
    isHostCallbackScheduled = true;
    requestHostCallback(flushWork);
  }
}

function unstable_getFirstCallbackNode() {
  return peek(taskQueue);
}

function unstable_cancelCallback(task) {
  // remove from the queue because you can't remove arbitrary nodes from an
  // array based heap, only the first one.)


  task.callback = null;
}

function unstable_getCurrentPriorityLevel() {
  return currentPriorityLevel;
}

var isMessageLoopRunning = false;
var scheduledHostCallback = null;
var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
// thread, like user events. By default, it yields multiple times per frame.
// It does not attempt to align with frame boundaries, since most tasks don't
// need to be frame aligned; for those that do, use requestAnimationFrame.

var frameInterval = frameYieldMs;
var startTime = -1;

function shouldYieldToHost() {
  var timeElapsed = exports.unstable_now() - startTime;

  if (timeElapsed < frameInterval) {
    // The main thread has only been blocked for a really short amount of time;
    // smaller than a single frame. Don't yield yet.
    return false;
  } // The main thread has been blocked for a non-negligible amount of time. We


  return true;
}

function requestPaint() {

}

function forceFrameRate(fps) {
  if (fps < 0 || fps > 125) {
    // Using console['error'] to evade Babel and ESLint
    console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing frame rates higher than 125 fps is not supported');
    return;
  }

  if (fps > 0) {
    frameInterval = Math.floor(1000 / fps);
  } else {
    // reset the framerate
    frameInterval = frameYieldMs;
  }
}

var performWorkUntilDeadline = function () {
  if (scheduledHostCallback !== null) {
    var currentTime = exports.unstable_now(); // Keep track of the start time so we can measure how long the main thread
    // has been blocked.

    startTime = currentTime;
    var hasTimeRemaining = true; // If a scheduler task throws, exit the current browser task so the
    // error can be observed.
    //
    // Intentionally not using a try-catch, since that makes some debugging
    // techniques harder. Instead, if `scheduledHostCallback` errors, then
    // `hasMoreWork` will remain true, and we'll continue the work loop.

    var hasMoreWork = true;

    try {
      hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
    } finally {
      if (hasMoreWork) {
        // If there's more work, schedule the next message event at the end
        // of the preceding one.
        schedulePerformWorkUntilDeadline();
      } else {
        isMessageLoopRunning = false;
        scheduledHostCallback = null;
      }
    }
  } else {
    isMessageLoopRunning = false;
  } // Yielding to the browser will give it a chance to paint, so we can
};

var schedulePerformWorkUntilDeadline;

if (typeof localSetImmediate === 'function') {
  // Node.js and old IE.
  // There's a few reasons for why we prefer setImmediate.
  //
  // Unlike MessageChannel, it doesn't prevent a Node.js process from exiting.
  // (Even though this is a DOM fork of the Scheduler, you could get here
  // with a mix of Node.js 15+, which has a MessageChannel, and jsdom.)
  // https://github.com/facebook/react/issues/20756
  //
  // But also, it runs earlier which is the semantic we want.
  // If other browsers ever implement it, it's better to use it.
  // Although both of these would be inferior to native scheduling.
  schedulePerformWorkUntilDeadline = function () {
    localSetImmediate(performWorkUntilDeadline);
  };
} else if (typeof MessageChannel !== 'undefined') {
  // DOM and Worker environments.
  // We prefer MessageChannel because of the 4ms setTimeout clamping.
  var channel = new MessageChannel();
  var port = channel.port2;
  channel.port1.onmessage = performWorkUntilDeadline;

  schedulePerformWorkUntilDeadline = function () {
    port.postMessage(null);
  };
} else {
  // We should only fallback here in non-browser environments.
  schedulePerformWorkUntilDeadline = function () {
    localSetTimeout(performWorkUntilDeadline, 0);
  };
}

function requestHostCallback(callback) {
  scheduledHostCallback = callback;

  if (!isMessageLoopRunning) {
    isMessageLoopRunning = true;
    schedulePerformWorkUntilDeadline();
  }
}

function requestHostTimeout(callback, ms) {
  taskTimeoutID = localSetTimeout(function () {
    callback(exports.unstable_now());
  }, ms);
}

function cancelHostTimeout() {
  localClearTimeout(taskTimeoutID);
  taskTimeoutID = -1;
}

var unstable_requestPaint = requestPaint;
var unstable_Profiling =  null;

exports.unstable_IdlePriority = IdlePriority;
exports.unstable_ImmediatePriority = ImmediatePriority;
exports.unstable_LowPriority = LowPriority;
exports.unstable_NormalPriority = NormalPriority;
exports.unstable_Profiling = unstable_Profiling;
exports.unstable_UserBlockingPriority = UserBlockingPriority;
exports.unstable_cancelCallback = unstable_cancelCallback;
exports.unstable_continueExecution = unstable_continueExecution;
exports.unstable_forceFrameRate = forceFrameRate;
exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
exports.unstable_next = unstable_next;
exports.unstable_pauseExecution = unstable_pauseExecution;
exports.unstable_requestPaint = unstable_requestPaint;
exports.unstable_runWithPriority = unstable_runWithPriority;
exports.unstable_scheduleCallback = unstable_scheduleCallback;
exports.unstable_shouldYield = shouldYieldToHost;
exports.unstable_wrapCallback = unstable_wrapCallback;
          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
        
  })();
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(82).setImmediate))

/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
 * @license React
 * react-dom.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



if (process.env.NODE_ENV !== "production") {
  (function() {

          'use strict';

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
          var React = __webpack_require__(0);
var Scheduler = __webpack_require__(81);

var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

var suppressWarning = false;
function setSuppressWarning(newSuppressWarning) {
  {
    suppressWarning = newSuppressWarning;
  }
} // In DEV, calls to console.warn and console.error get replaced
// by calls to these methods by a Babel plugin.
//
// In PROD (or in packages without access to React internals),
// they are left as they are instead.

function warn(format) {
  {
    if (!suppressWarning) {
      for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
        args[_key - 1] = arguments[_key];
      }

      printWarning('warn', format, args);
    }
  }
}
function error(format) {
  {
    if (!suppressWarning) {
      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
        args[_key2 - 1] = arguments[_key2];
      }

      printWarning('error', format, args);
    }
  }
}

function printWarning(level, format, args) {
  // When changing this logic, you might want to also
  // update consoleWithStackDev.www.js as well.
  {
    var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
    var stack = ReactDebugCurrentFrame.getStackAddendum();

    if (stack !== '') {
      format += '%s';
      args = args.concat([stack]);
    } // eslint-disable-next-line react-internal/safe-string-coercion


    var argsWithFormat = args.map(function (item) {
      return String(item);
    }); // Careful: RN currently depends on this prefix

    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
    // breaks IE9: https://github.com/facebook/react/issues/13610
    // eslint-disable-next-line react-internal/no-production-logging

    Function.prototype.apply.call(console[level], console, argsWithFormat);
  }
}

var FunctionComponent = 0;
var ClassComponent = 1;
var IndeterminateComponent = 2; // Before we know whether it is function or class

var HostRoot = 3; // Root of a host tree. Could be nested inside another node.

var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.

var HostComponent = 5;
var HostText = 6;
var Fragment = 7;
var Mode = 8;
var ContextConsumer = 9;
var ContextProvider = 10;
var ForwardRef = 11;
var Profiler = 12;
var SuspenseComponent = 13;
var MemoComponent = 14;
var SimpleMemoComponent = 15;
var LazyComponent = 16;
var IncompleteClassComponent = 17;
var DehydratedFragment = 18;
var SuspenseListComponent = 19;
var ScopeComponent = 21;
var OffscreenComponent = 22;
var LegacyHiddenComponent = 23;
var CacheComponent = 24;
var TracingMarkerComponent = 25;

// -----------------------------------------------------------------------------

var enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing
// the react-reconciler package.

var enableNewReconciler = false; // Support legacy Primer support on internal FB www

var enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics.

var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber

var enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz
// React DOM Chopping Block
//
// Similar to main Chopping Block but only flags related to React DOM. These are
// grouped because we will likely batch all of them into a single major release.
// -----------------------------------------------------------------------------
// Disable support for comment nodes as React DOM containers. Already disabled
// in open source, but www codebase still relies on it. Need to remove.

var disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection.
// and client rendering, mostly to allow JSX attributes to apply to the custom
// element's object properties instead of only HTML attributes.
// https://github.com/facebook/react/issues/11347

var enableCustomElementPropertySupport = false; // Disables children for <textarea> elements
var warnAboutStringRefs = false; // -----------------------------------------------------------------------------
// Debugging and DevTools
// -----------------------------------------------------------------------------
// Adds user timing marks for e.g. state updates, suspense, and work loop stuff,
// for an experimental timeline tool.

var enableSchedulingProfiler = true; // Helps identify side effects in render-phase lifecycle hooks and setState

var enableProfilerTimer = true; // Record durations for commit and passive effects phases.

var enableProfilerCommitHooks = true; // Phase param passed to onRender callback differentiates between an "update" and a "cascading-update".

var allNativeEvents = new Set();
/**
 * Mapping from registration name to event name
 */


var registrationNameDependencies = {};
/**
 * Mapping from lowercase registration names to the properly cased version,
 * used to warn in the case of missing event handlers. Available
 * only in true.
 * @type {Object}
 */

var possibleRegistrationNames =  {} ; // Trust the developer to only use possibleRegistrationNames in true

function registerTwoPhaseEvent(registrationName, dependencies) {
  registerDirectEvent(registrationName, dependencies);
  registerDirectEvent(registrationName + 'Capture', dependencies);
}
function registerDirectEvent(registrationName, dependencies) {
  {
    if (registrationNameDependencies[registrationName]) {
      error('EventRegistry: More than one plugin attempted to publish the same ' + 'registration name, `%s`.', registrationName);
    }
  }

  registrationNameDependencies[registrationName] = dependencies;

  {
    var lowerCasedName = registrationName.toLowerCase();
    possibleRegistrationNames[lowerCasedName] = registrationName;

    if (registrationName === 'onDoubleClick') {
      possibleRegistrationNames.ondblclick = registrationName;
    }
  }

  for (var i = 0; i < dependencies.length; i++) {
    allNativeEvents.add(dependencies[i]);
  }
}

var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');

var hasOwnProperty = Object.prototype.hasOwnProperty;

/*
 * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
 * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
 *
 * The functions in this module will throw an easier-to-understand,
 * easier-to-debug exception with a clear errors message message explaining the
 * problem. (Instead of a confusing exception thrown inside the implementation
 * of the `value` object).
 */
// $FlowFixMe only called in DEV, so void return is not possible.
function typeName(value) {
  {
    // toStringTag is needed for namespaced types like Temporal.Instant
    var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
    var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
    return type;
  }
} // $FlowFixMe only called in DEV, so void return is not possible.


function willCoercionThrow(value) {
  {
    try {
      testStringCoercion(value);
      return false;
    } catch (e) {
      return true;
    }
  }
}

function testStringCoercion(value) {
  // If you ended up here by following an exception call stack, here's what's
  // happened: you supplied an object or symbol value to React (as a prop, key,
  // DOM attribute, CSS property, string ref, etc.) and when React tried to
  // coerce it to a string using `'' + value`, an exception was thrown.
  //
  // The most common types that will cause this exception are `Symbol` instances
  // and Temporal objects like `Temporal.Instant`. But any object that has a
  // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
  // exception. (Library authors do this to prevent users from using built-in
  // numeric operators like `+` or comparison operators like `>=` because custom
  // methods are needed to perform accurate arithmetic or comparison.)
  //
  // To fix the problem, coerce this object or symbol value to a string before
  // passing it to React. The most reliable way is usually `String(value)`.
  //
  // To find which value is throwing, check the browser or debugger console.
  // Before this exception was thrown, there should be `console.error` output
  // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
  // problem and how that type was used: key, atrribute, input value prop, etc.
  // In most cases, this console output also shows the component and its
  // ancestor components where the exception happened.
  //
  // eslint-disable-next-line react-internal/safe-string-coercion
  return '' + value;
}

function checkAttributeStringCoercion(value, attributeName) {
  {
    if (willCoercionThrow(value)) {
      error('The provided `%s` attribute is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', attributeName, typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}
function checkKeyStringCoercion(value) {
  {
    if (willCoercionThrow(value)) {
      error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}
function checkPropStringCoercion(value, propName) {
  {
    if (willCoercionThrow(value)) {
      error('The provided `%s` prop is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}
function checkCSSPropertyStringCoercion(value, propName) {
  {
    if (willCoercionThrow(value)) {
      error('The provided `%s` CSS property is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', propName, typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}
function checkHtmlStringCoercion(value) {
  {
    if (willCoercionThrow(value)) {
      error('The provided HTML markup uses a value of unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}
function checkFormFieldValueStringCoercion(value) {
  {
    if (willCoercionThrow(value)) {
      error('Form field values (value, checked, defaultValue, or defaultChecked props)' + ' must be strings, not %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));

      return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
    }
  }
}

// A reserved attribute.
// It is handled by React separately and shouldn't be written to the DOM.
var RESERVED = 0; // A simple string attribute.
// Attributes that aren't in the filter are presumed to have this type.

var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
// "enumerated" attributes with "true" and "false" as possible values.
// When true, it should be set to a "true" string.
// When false, it should be set to a "false" string.

var BOOLEANISH_STRING = 2; // A real boolean attribute.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.

var BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.
// When true, it should be present (set either to an empty string or its name).
// When false, it should be omitted.
// For any other value, should be present with that value.

var OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.
// When falsy, it should be removed.

var NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.
// When falsy, it should be removed.

var POSITIVE_NUMERIC = 6;

/* eslint-disable max-len */
var ATTRIBUTE_NAME_START_CHAR = ":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";
/* eslint-enable max-len */

var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
var illegalAttributeNameCache = {};
var validatedAttributeNameCache = {};
function isAttributeNameSafe(attributeName) {
  if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
    return true;
  }

  if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
    return false;
  }

  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
    validatedAttributeNameCache[attributeName] = true;
    return true;
  }

  illegalAttributeNameCache[attributeName] = true;

  {
    error('Invalid attribute name: `%s`', attributeName);
  }

  return false;
}
function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null) {
    return propertyInfo.type === RESERVED;
  }

  if (isCustomComponentTag) {
    return false;
  }

  if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
    return true;
  }

  return false;
}
function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  if (propertyInfo !== null && propertyInfo.type === RESERVED) {
    return false;
  }

  switch (typeof value) {
    case 'function': // $FlowIssue symbol is perfectly valid here

    case 'symbol':
      // eslint-disable-line
      return true;

    case 'boolean':
      {
        if (isCustomComponentTag) {
          return false;
        }

        if (propertyInfo !== null) {
          return !propertyInfo.acceptsBooleans;
        } else {
          var prefix = name.toLowerCase().slice(0, 5);
          return prefix !== 'data-' && prefix !== 'aria-';
        }
      }

    default:
      return false;
  }
}
function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  if (value === null || typeof value === 'undefined') {
    return true;
  }

  if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
    return true;
  }

  if (isCustomComponentTag) {

    return false;
  }

  if (propertyInfo !== null) {

    switch (propertyInfo.type) {
      case BOOLEAN:
        return !value;

      case OVERLOADED_BOOLEAN:
        return value === false;

      case NUMERIC:
        return isNaN(value);

      case POSITIVE_NUMERIC:
        return isNaN(value) || value < 1;
    }
  }

  return false;
}
function getPropertyInfo(name) {
  return properties.hasOwnProperty(name) ? properties[name] : null;
}

function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
  this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  this.attributeName = attributeName;
  this.attributeNamespace = attributeNamespace;
  this.mustUseProperty = mustUseProperty;
  this.propertyName = name;
  this.type = type;
  this.sanitizeURL = sanitizeURL;
  this.removeEmptyString = removeEmptyString;
} // When adding attributes to this list, be sure to also add them to
// the `possibleStandardNames` module to ensure casing and incorrect
// name warnings.


var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.

var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
// elements (not just inputs). Now that ReactDOMInput assigns to the
// defaultValue property -- do we need this?
'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];

reservedProps.forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // A few React string attributes have a different name.
// This is a mapping from React prop names to the attribute names.

[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  var name = _ref[0],
      attributeName = _ref[1];
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are "enumerated" HTML attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).

['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are "enumerated" SVG attributes that accept "true" and "false".
// In React, we let users pass `true` and `false` even though technically
// these aren't boolean attributes (they are coerced to strings).
// Since these are SVG attributes, their attribute names are case-sensitive.

['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML boolean attributes.

['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM
// on the client side because the browsers are inconsistent. Instead we call focus().
'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'disableRemotePlayback', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata
'itemScope'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are the few React props that we set as DOM properties
// rather than attributes. These are all booleans.

['checked', // Note: `option.selected` is not updated if `select.multiple` is
// disabled with `removeAttribute`. We have special logic for handling this.
'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that are "overloaded booleans": they behave like
// booleans, but can also accept a string value.

['capture', 'download' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that must be positive numbers.

['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  name, // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These are HTML attributes that must be numbers.

['rowSpan', 'start'].forEach(function (name) {
  properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  name.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
});
var CAMELIZE = /[\-\:]([a-z])/g;

var capitalize = function (token) {
  return token[1].toUpperCase();
}; // This is a list of all SVG attributes that need special casing, namespacing,
// or boolean value assignment. Regular attributes that just accept strings
// and have the same names are omitted, just like in the HTML attribute filter.
// Some of these attributes can be hard to find. This list was created by
// scraping the MDN documentation.


['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // String SVG attributes with the xlink namespace.

['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/1999/xlink', false, // sanitizeURL
  false);
}); // String SVG attributes with the xml namespace.

['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,
// you'll need to set attributeName to name.toLowerCase()
// instead in the assignment below.
].forEach(function (attributeName) {
  var name = attributeName.replace(CAMELIZE, capitalize);
  properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  attributeName, 'http://www.w3.org/XML/1998/namespace', false, // sanitizeURL
  false);
}); // These attribute exists both in HTML and SVG.
// The attribute name is case-sensitive in SVG so we can't just use
// the React name like we do for attributes that exist only in HTML.

['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  false, // sanitizeURL
  false);
}); // These attributes accept URLs. These must not allow javascript: URLS.
// These will also need to accept Trusted Types object in the future.

var xlinkHref = 'xlinkHref';
properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
'xlink:href', 'http://www.w3.org/1999/xlink', true, // sanitizeURL
false);
['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  attributeName.toLowerCase(), // attributeName
  null, // attributeNamespace
  true, // sanitizeURL
  true);
});

// and any newline or tab are filtered out as if they're not part of the URL.
// https://url.spec.whatwg.org/#url-parsing
// Tab or newline are defined as \r\n\t:
// https://infra.spec.whatwg.org/#ascii-tab-or-newline
// A C0 control is a code point in the range \u0000 NULL to \u001F
// INFORMATION SEPARATOR ONE, inclusive:
// https://infra.spec.whatwg.org/#c0-control-or-space

/* eslint-disable max-len */

var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
var didWarn = false;

function sanitizeURL(url) {
  {
    if (!didWarn && isJavaScriptProtocol.test(url)) {
      didWarn = true;

      error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
    }
  }
}

/**
 * Get the value for a property on a node. Only used in DEV for SSR validation.
 * The "expected" argument is used as a hint of what the expected value is.
 * Some properties have multiple equivalent values.
 */
function getValueForProperty(node, name, expected, propertyInfo) {
  {
    if (propertyInfo.mustUseProperty) {
      var propertyName = propertyInfo.propertyName;
      return node[propertyName];
    } else {
      // This check protects multiple uses of `expected`, which is why the
      // react-internal/safe-string-coercion rule is disabled in several spots
      // below.
      {
        checkAttributeStringCoercion(expected, name);
      }

      if ( propertyInfo.sanitizeURL) {
        // If we haven't fully disabled javascript: URLs, and if
        // the hydration is successful of a javascript: URL, we
        // still want to warn on the client.
        // eslint-disable-next-line react-internal/safe-string-coercion
        sanitizeURL('' + expected);
      }

      var attributeName = propertyInfo.attributeName;
      var stringValue = null;

      if (propertyInfo.type === OVERLOADED_BOOLEAN) {
        if (node.hasAttribute(attributeName)) {
          var value = node.getAttribute(attributeName);

          if (value === '') {
            return true;
          }

          if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
            return value;
          } // eslint-disable-next-line react-internal/safe-string-coercion


          if (value === '' + expected) {
            return expected;
          }

          return value;
        }
      } else if (node.hasAttribute(attributeName)) {
        if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
          // We had an attribute but shouldn't have had one, so read it
          // for the error message.
          return node.getAttribute(attributeName);
        }

        if (propertyInfo.type === BOOLEAN) {
          // If this was a boolean, it doesn't matter what the value is
          // the fact that we have it is the same as the expected.
          return expected;
        } // Even if this property uses a namespace we use getAttribute
        // because we assume its namespaced name is the same as our config.
        // To use getAttributeNS we need the local name which we don't have
        // in our config atm.


        stringValue = node.getAttribute(attributeName);
      }

      if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
        return stringValue === null ? expected : stringValue; // eslint-disable-next-line react-internal/safe-string-coercion
      } else if (stringValue === '' + expected) {
        return expected;
      } else {
        return stringValue;
      }
    }
  }
}
/**
 * Get the value for a attribute on a node. Only used in DEV for SSR validation.
 * The third argument is used as a hint of what the expected value is. Some
 * attributes have multiple equivalent values.
 */

function getValueForAttribute(node, name, expected, isCustomComponentTag) {
  {
    if (!isAttributeNameSafe(name)) {
      return;
    }

    if (!node.hasAttribute(name)) {
      return expected === undefined ? undefined : null;
    }

    var value = node.getAttribute(name);

    {
      checkAttributeStringCoercion(expected, name);
    }

    if (value === '' + expected) {
      return expected;
    }

    return value;
  }
}
/**
 * Sets the value for a property on a node.
 *
 * @param {DOMElement} node
 * @param {string} name
 * @param {*} value
 */

function setValueForProperty(node, name, value, isCustomComponentTag) {
  var propertyInfo = getPropertyInfo(name);

  if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
    return;
  }

  if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
    value = null;
  }


  if (isCustomComponentTag || propertyInfo === null) {
    if (isAttributeNameSafe(name)) {
      var _attributeName = name;

      if (value === null) {
        node.removeAttribute(_attributeName);
      } else {
        {
          checkAttributeStringCoercion(value, name);
        }

        node.setAttribute(_attributeName,  '' + value);
      }
    }

    return;
  }

  var mustUseProperty = propertyInfo.mustUseProperty;

  if (mustUseProperty) {
    var propertyName = propertyInfo.propertyName;

    if (value === null) {
      var type = propertyInfo.type;
      node[propertyName] = type === BOOLEAN ? false : '';
    } else {
      // Contrary to `setAttribute`, object properties are properly
      // `toString`ed by IE8/9.
      node[propertyName] = value;
    }

    return;
  } // The rest are treated as attributes with special cases.


  var attributeName = propertyInfo.attributeName,
      attributeNamespace = propertyInfo.attributeNamespace;

  if (value === null) {
    node.removeAttribute(attributeName);
  } else {
    var _type = propertyInfo.type;
    var attributeValue;

    if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
      // If attribute type is boolean, we know for sure it won't be an execution sink
      // and we won't require Trusted Type here.
      attributeValue = '';
    } else {
      // `setAttribute` with objects becomes only `[object]` in IE8/9,
      // ('' + value) makes it output the correct toString()-value.
      {
        {
          checkAttributeStringCoercion(value, attributeName);
        }

        attributeValue = '' + value;
      }

      if (propertyInfo.sanitizeURL) {
        sanitizeURL(attributeValue.toString());
      }
    }

    if (attributeNamespace) {
      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
    } else {
      node.setAttribute(attributeName, attributeValue);
    }
  }
}

// ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types.
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
var REACT_MEMO_TYPE = Symbol.for('react.memo');
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
var REACT_SCOPE_TYPE = Symbol.for('react.scope');
var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for('react.debug_trace_mode');
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden');
var REACT_CACHE_TYPE = Symbol.for('react.cache');
var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker');
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator';
function getIteratorFn(maybeIterable) {
  if (maybeIterable === null || typeof maybeIterable !== 'object') {
    return null;
  }

  var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];

  if (typeof maybeIterator === 'function') {
    return maybeIterator;
  }

  return null;
}

var assign = Object.assign;

// Helpers to patch console.logs to avoid logging during side-effect free
// replaying on render function. This currently only patches the object
// lazily which won't cover if the log function was extracted eagerly.
// We could also eagerly patch the method.
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;

function disabledLog() {}

disabledLog.__reactDisabledLog = true;
function disableLogs() {
  {
    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      prevLog = console.log;
      prevInfo = console.info;
      prevWarn = console.warn;
      prevError = console.error;
      prevGroup = console.group;
      prevGroupCollapsed = console.groupCollapsed;
      prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099

      var props = {
        configurable: true,
        enumerable: true,
        value: disabledLog,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        info: props,
        log: props,
        warn: props,
        error: props,
        group: props,
        groupCollapsed: props,
        groupEnd: props
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    disabledDepth++;
  }
}
function reenableLogs() {
  {
    disabledDepth--;

    if (disabledDepth === 0) {
      /* eslint-disable react-internal/no-production-logging */
      var props = {
        configurable: true,
        enumerable: true,
        writable: true
      }; // $FlowFixMe Flow thinks console is immutable.

      Object.defineProperties(console, {
        log: assign({}, props, {
          value: prevLog
        }),
        info: assign({}, props, {
          value: prevInfo
        }),
        warn: assign({}, props, {
          value: prevWarn
        }),
        error: assign({}, props, {
          value: prevError
        }),
        group: assign({}, props, {
          value: prevGroup
        }),
        groupCollapsed: assign({}, props, {
          value: prevGroupCollapsed
        }),
        groupEnd: assign({}, props, {
          value: prevGroupEnd
        })
      });
      /* eslint-enable react-internal/no-production-logging */
    }

    if (disabledDepth < 0) {
      error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
    }
  }
}

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
  {
    if (prefix === undefined) {
      // Extract the VM specific prefix used by each line.
      try {
        throw Error();
      } catch (x) {
        var match = x.stack.trim().match(/\n( *(at )?)/);
        prefix = match && match[1] || '';
      }
    } // We use the prefix to ensure our stacks line up with native stack frames.


    return '\n' + prefix + name;
  }
}
var reentry = false;
var componentFrameCache;

{
  var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  componentFrameCache = new PossiblyWeakMap();
}

function describeNativeComponentFrame(fn, construct) {
  // If something asked for a stack inside a fake render, it should get ignored.
  if ( !fn || reentry) {
    return '';
  }

  {
    var frame = componentFrameCache.get(fn);

    if (frame !== undefined) {
      return frame;
    }
  }

  var control;
  reentry = true;
  var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.

  Error.prepareStackTrace = undefined;
  var previousDispatcher;

  {
    previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
    // for warnings.

    ReactCurrentDispatcher.current = null;
    disableLogs();
  }

  try {
    // This should throw.
    if (construct) {
      // Something should be setting the props in the constructor.
      var Fake = function () {
        throw Error();
      }; // $FlowFixMe


      Object.defineProperty(Fake.prototype, 'props', {
        set: function () {
          // We use a throwing setter instead of frozen or non-writable props
          // because that won't throw in a non-strict mode function.
          throw Error();
        }
      });

      if (typeof Reflect === 'object' && Reflect.construct) {
        // We construct a different control for this case to include any extra
        // frames added by the construct call.
        try {
          Reflect.construct(Fake, []);
        } catch (x) {
          control = x;
        }

        Reflect.construct(fn, [], Fake);
      } else {
        try {
          Fake.call();
        } catch (x) {
          control = x;
        }

        fn.call(Fake.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (x) {
        control = x;
      }

      fn();
    }
  } catch (sample) {
    // This is inlined manually because closure doesn't do it for us.
    if (sample && control && typeof sample.stack === 'string') {
      // This extracts the first frame from the sample that isn't also in the control.
      // Skipping one frame that we assume is the frame that calls the two.
      var sampleLines = sample.stack.split('\n');
      var controlLines = control.stack.split('\n');
      var s = sampleLines.length - 1;
      var c = controlLines.length - 1;

      while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
        // We expect at least one stack frame to be shared.
        // Typically this will be the root most one. However, stack frames may be
        // cut off due to maximum stack limits. In this case, one maybe cut off
        // earlier than the other. We assume that the sample is longer or the same
        // and there for cut off earlier. So we should find the root most frame in
        // the sample somewhere in the control.
        c--;
      }

      for (; s >= 1 && c >= 0; s--, c--) {
        // Next we find the first one that isn't the same which should be the
        // frame that called our sample function and the control.
        if (sampleLines[s] !== controlLines[c]) {
          // In V8, the first line is describing the message but other VMs don't.
          // If we're about to return the first line, and the control is also on the same
          // line, that's a pretty good indicator that our sample threw at same line as
          // the control. I.e. before we entered the sample frame. So we ignore this result.
          // This can happen if you passed a class to function component, or non-function.
          if (s !== 1 || c !== 1) {
            do {
              s--;
              c--; // We may still have similar intermediate frames from the construct call.
              // The next one that isn't the same should be our match though.

              if (c < 0 || sampleLines[s] !== controlLines[c]) {
                // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
                var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
                // but we have a user-provided "displayName"
                // splice it in to make the stack more readable.


                if (fn.displayName && _frame.includes('<anonymous>')) {
                  _frame = _frame.replace('<anonymous>', fn.displayName);
                }

                {
                  if (typeof fn === 'function') {
                    componentFrameCache.set(fn, _frame);
                  }
                } // Return the line we found.


                return _frame;
              }
            } while (s >= 1 && c >= 0);
          }

          break;
        }
      }
    }
  } finally {
    reentry = false;

    {
      ReactCurrentDispatcher.current = previousDispatcher;
      reenableLogs();
    }

    Error.prepareStackTrace = previousPrepareStackTrace;
  } // Fallback to just using the name if we couldn't make it throw.


  var name = fn ? fn.displayName || fn.name : '';
  var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';

  {
    if (typeof fn === 'function') {
      componentFrameCache.set(fn, syntheticFrame);
    }
  }

  return syntheticFrame;
}

function describeClassComponentFrame(ctor, source, ownerFn) {
  {
    return describeNativeComponentFrame(ctor, true);
  }
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
  {
    return describeNativeComponentFrame(fn, false);
  }
}

function shouldConstruct(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {

  if (type == null) {
    return '';
  }

  if (typeof type === 'function') {
    {
      return describeNativeComponentFrame(type, shouldConstruct(type));
    }
  }

  if (typeof type === 'string') {
    return describeBuiltInComponentFrame(type);
  }

  switch (type) {
    case REACT_SUSPENSE_TYPE:
      return describeBuiltInComponentFrame('Suspense');

    case REACT_SUSPENSE_LIST_TYPE:
      return describeBuiltInComponentFrame('SuspenseList');
  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_FORWARD_REF_TYPE:
        return describeFunctionComponentFrame(type.render);

      case REACT_MEMO_TYPE:
        // Memo may contain any component type so we recursively resolve it.
        return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            // Lazy may contain any component type so we recursively resolve it.
            return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
          } catch (x) {}
        }
    }
  }

  return '';
}

function describeFiber(fiber) {
  var owner =  fiber._debugOwner ? fiber._debugOwner.type : null ;
  var source =  fiber._debugSource ;

  switch (fiber.tag) {
    case HostComponent:
      return describeBuiltInComponentFrame(fiber.type);

    case LazyComponent:
      return describeBuiltInComponentFrame('Lazy');

    case SuspenseComponent:
      return describeBuiltInComponentFrame('Suspense');

    case SuspenseListComponent:
      return describeBuiltInComponentFrame('SuspenseList');

    case FunctionComponent:
    case IndeterminateComponent:
    case SimpleMemoComponent:
      return describeFunctionComponentFrame(fiber.type);

    case ForwardRef:
      return describeFunctionComponentFrame(fiber.type.render);

    case ClassComponent:
      return describeClassComponentFrame(fiber.type);

    default:
      return '';
  }
}

function getStackByFiberInDevAndProd(workInProgress) {
  try {
    var info = '';
    var node = workInProgress;

    do {
      info += describeFiber(node);
      node = node.return;
    } while (node);

    return info;
  } catch (x) {
    return '\nError generating stack: ' + x.message + '\n' + x.stack;
  }
}

function getWrappedName(outerType, innerType, wrapperName) {
  var displayName = outerType.displayName;

  if (displayName) {
    return displayName;
  }

  var functionName = innerType.displayName || innerType.name || '';
  return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
} // Keep in sync with react-reconciler/getComponentNameFromFiber


function getContextName(type) {
  return type.displayName || 'Context';
} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.


function getComponentNameFromType(type) {
  if (type == null) {
    // Host root, text node or just invalid type.
    return null;
  }

  {
    if (typeof type.tag === 'number') {
      error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
    }
  }

  if (typeof type === 'function') {
    return type.displayName || type.name || null;
  }

  if (typeof type === 'string') {
    return type;
  }

  switch (type) {
    case REACT_FRAGMENT_TYPE:
      return 'Fragment';

    case REACT_PORTAL_TYPE:
      return 'Portal';

    case REACT_PROFILER_TYPE:
      return 'Profiler';

    case REACT_STRICT_MODE_TYPE:
      return 'StrictMode';

    case REACT_SUSPENSE_TYPE:
      return 'Suspense';

    case REACT_SUSPENSE_LIST_TYPE:
      return 'SuspenseList';

  }

  if (typeof type === 'object') {
    switch (type.$$typeof) {
      case REACT_CONTEXT_TYPE:
        var context = type;
        return getContextName(context) + '.Consumer';

      case REACT_PROVIDER_TYPE:
        var provider = type;
        return getContextName(provider._context) + '.Provider';

      case REACT_FORWARD_REF_TYPE:
        return getWrappedName(type, type.render, 'ForwardRef');

      case REACT_MEMO_TYPE:
        var outerName = type.displayName || null;

        if (outerName !== null) {
          return outerName;
        }

        return getComponentNameFromType(type.type) || 'Memo';

      case REACT_LAZY_TYPE:
        {
          var lazyComponent = type;
          var payload = lazyComponent._payload;
          var init = lazyComponent._init;

          try {
            return getComponentNameFromType(init(payload));
          } catch (x) {
            return null;
          }
        }

      // eslint-disable-next-line no-fallthrough
    }
  }

  return null;
}

function getWrappedName$1(outerType, innerType, wrapperName) {
  var functionName = innerType.displayName || innerType.name || '';
  return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
} // Keep in sync with shared/getComponentNameFromType


function getContextName$1(type) {
  return type.displayName || 'Context';
}

function getComponentNameFromFiber(fiber) {
  var tag = fiber.tag,
      type = fiber.type;

  switch (tag) {
    case CacheComponent:
      return 'Cache';

    case ContextConsumer:
      var context = type;
      return getContextName$1(context) + '.Consumer';

    case ContextProvider:
      var provider = type;
      return getContextName$1(provider._context) + '.Provider';

    case DehydratedFragment:
      return 'DehydratedFragment';

    case ForwardRef:
      return getWrappedName$1(type, type.render, 'ForwardRef');

    case Fragment:
      return 'Fragment';

    case HostComponent:
      // Host component type is the display name (e.g. "div", "View")
      return type;

    case HostPortal:
      return 'Portal';

    case HostRoot:
      return 'Root';

    case HostText:
      return 'Text';

    case LazyComponent:
      // Name comes from the type in this case; we don't have a tag.
      return getComponentNameFromType(type);

    case Mode:
      if (type === REACT_STRICT_MODE_TYPE) {
        // Don't be less specific than shared/getComponentNameFromType
        return 'StrictMode';
      }

      return 'Mode';

    case OffscreenComponent:
      return 'Offscreen';

    case Profiler:
      return 'Profiler';

    case ScopeComponent:
      return 'Scope';

    case SuspenseComponent:
      return 'Suspense';

    case SuspenseListComponent:
      return 'SuspenseList';

    case TracingMarkerComponent:
      return 'TracingMarker';
    // The display name for this tags come from the user-provided type:

    case ClassComponent:
    case FunctionComponent:
    case IncompleteClassComponent:
    case IndeterminateComponent:
    case MemoComponent:
    case SimpleMemoComponent:
      if (typeof type === 'function') {
        return type.displayName || type.name || null;
      }

      if (typeof type === 'string') {
        return type;
      }

      break;

  }

  return null;
}

var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
var current = null;
var isRendering = false;
function getCurrentFiberOwnerNameInDevOrNull() {
  {
    if (current === null) {
      return null;
    }

    var owner = current._debugOwner;

    if (owner !== null && typeof owner !== 'undefined') {
      return getComponentNameFromFiber(owner);
    }
  }

  return null;
}

function getCurrentFiberStackInDev() {
  {
    if (current === null) {
      return '';
    } // Safe because if current fiber exists, we are reconciling,
    // and it is guaranteed to be the work-in-progress version.


    return getStackByFiberInDevAndProd(current);
  }
}

function resetCurrentFiber() {
  {
    ReactDebugCurrentFrame.getCurrentStack = null;
    current = null;
    isRendering = false;
  }
}
function setCurrentFiber(fiber) {
  {
    ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev;
    current = fiber;
    isRendering = false;
  }
}
function getCurrentFiber() {
  {
    return current;
  }
}
function setIsRendering(rendering) {
  {
    isRendering = rendering;
  }
}

// Flow does not allow string concatenation of most non-string types. To work
// around this limitation, we use an opaque type that can only be obtained by
// passing the value through getToStringValue first.
function toString(value) {
  // The coercion safety check is performed in getToStringValue().
  // eslint-disable-next-line react-internal/safe-string-coercion
  return '' + value;
}
function getToStringValue(value) {
  switch (typeof value) {
    case 'boolean':
    case 'number':
    case 'string':
    case 'undefined':
      return value;

    case 'object':
      {
        checkFormFieldValueStringCoercion(value);
      }

      return value;

    default:
      // function, symbol are assigned as empty strings
      return '';
  }
}

var hasReadOnlyValue = {
  button: true,
  checkbox: true,
  image: true,
  hidden: true,
  radio: true,
  reset: true,
  submit: true
};
function checkControlledValueProps(tagName, props) {
  {
    if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) {
      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`.');
    }

    if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) {
      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`.');
    }
  }
}

function isCheckable(elem) {
  var type = elem.type;
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
}

function getTracker(node) {
  return node._valueTracker;
}

function detachTracker(node) {
  node._valueTracker = null;
}

function getValueFromNode(node) {
  var value = '';

  if (!node) {
    return value;
  }

  if (isCheckable(node)) {
    value = node.checked ? 'true' : 'false';
  } else {
    value = node.value;
  }

  return value;
}

function trackValueOnNode(node) {
  var valueField = isCheckable(node) ? 'checked' : 'value';
  var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);

  {
    checkFormFieldValueStringCoercion(node[valueField]);
  }

  var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail
  // and don't track value will cause over reporting of changes,
  // but it's better then a hard failure
  // (needed for certain tests that spyOn input values and Safari)

  if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
    return;
  }

  var get = descriptor.get,
      set = descriptor.set;
  Object.defineProperty(node, valueField, {
    configurable: true,
    get: function () {
      return get.call(this);
    },
    set: function (value) {
      {
        checkFormFieldValueStringCoercion(value);
      }

      currentValue = '' + value;
      set.call(this, value);
    }
  }); // We could've passed this the first time
  // but it triggers a bug in IE11 and Edge 14/15.
  // Calling defineProperty() again should be equivalent.
  // https://github.com/facebook/react/issues/11768

  Object.defineProperty(node, valueField, {
    enumerable: descriptor.enumerable
  });
  var tracker = {
    getValue: function () {
      return currentValue;
    },
    setValue: function (value) {
      {
        checkFormFieldValueStringCoercion(value);
      }

      currentValue = '' + value;
    },
    stopTracking: function () {
      detachTracker(node);
      delete node[valueField];
    }
  };
  return tracker;
}

function track(node) {
  if (getTracker(node)) {
    return;
  } // TODO: Once it's just Fiber we can move this to node._wrapperState


  node._valueTracker = trackValueOnNode(node);
}
function updateValueIfChanged(node) {
  if (!node) {
    return false;
  }

  var tracker = getTracker(node); // if there is no tracker at this point it's unlikely
  // that trying again will succeed

  if (!tracker) {
    return true;
  }

  var lastValue = tracker.getValue();
  var nextValue = getValueFromNode(node);

  if (nextValue !== lastValue) {
    tracker.setValue(nextValue);
    return true;
  }

  return false;
}

function getActiveElement(doc) {
  doc = doc || (typeof document !== 'undefined' ? document : undefined);

  if (typeof doc === 'undefined') {
    return null;
  }

  try {
    return doc.activeElement || doc.body;
  } catch (e) {
    return doc.body;
  }
}

var didWarnValueDefaultValue = false;
var didWarnCheckedDefaultChecked = false;
var didWarnControlledToUncontrolled = false;
var didWarnUncontrolledToControlled = false;

function isControlled(props) {
  var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  return usesChecked ? props.checked != null : props.value != null;
}
/**
 * Implements an <input> host component that allows setting these optional
 * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
 *
 * If `checked` or `value` are not supplied (or null/undefined), user actions
 * that affect the checked state or value will trigger updates to the element.
 *
 * If they are supplied (and not null/undefined), the rendered element will not
 * trigger updates to the element. Instead, the props must change in order for
 * the rendered element to be updated.
 *
 * The rendered element will be initialized as unchecked (or `defaultChecked`)
 * with an empty value (or `defaultValue`).
 *
 * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
 */


function getHostProps(element, props) {
  var node = element;
  var checked = props.checked;
  var hostProps = assign({}, props, {
    defaultChecked: undefined,
    defaultValue: undefined,
    value: undefined,
    checked: checked != null ? checked : node._wrapperState.initialChecked
  });
  return hostProps;
}
function initWrapperState(element, props) {
  {
    checkControlledValueProps('input', props);

    if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
      error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

      didWarnCheckedDefaultChecked = true;
    }

    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
      error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);

      didWarnValueDefaultValue = true;
    }
  }

  var node = element;
  var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  node._wrapperState = {
    initialChecked: props.checked != null ? props.checked : props.defaultChecked,
    initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
    controlled: isControlled(props)
  };
}
function updateChecked(element, props) {
  var node = element;
  var checked = props.checked;

  if (checked != null) {
    setValueForProperty(node, 'checked', checked, false);
  }
}
function updateWrapper(element, props) {
  var node = element;

  {
    var controlled = isControlled(props);

    if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {
      error('A component is changing an uncontrolled input to be controlled. ' + 'This is likely caused by the value changing from undefined to ' + 'a defined value, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

      didWarnUncontrolledToControlled = true;
    }

    if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {
      error('A component is changing a controlled input to be uncontrolled. ' + 'This is likely caused by the value changing from a defined to ' + 'undefined, which should not happen. ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components');

      didWarnControlledToUncontrolled = true;
    }
  }

  updateChecked(element, props);
  var value = getToStringValue(props.value);
  var type = props.type;

  if (value != null) {
    if (type === 'number') {
      if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.
      // eslint-disable-next-line
      node.value != value) {
        node.value = toString(value);
      }
    } else if (node.value !== toString(value)) {
      node.value = toString(value);
    }
  } else if (type === 'submit' || type === 'reset') {
    // Submit/reset inputs need the attribute removed completely to avoid
    // blank-text buttons.
    node.removeAttribute('value');
    return;
  }

  {
    // When syncing the value attribute, the value comes from a cascade of
    // properties:
    //  1. The value React property
    //  2. The defaultValue React property
    //  3. Otherwise there should be no change
    if (props.hasOwnProperty('value')) {
      setDefaultValue(node, props.type, value);
    } else if (props.hasOwnProperty('defaultValue')) {
      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
    }
  }

  {
    // When syncing the checked attribute, it only changes when it needs
    // to be removed, such as transitioning from a checkbox into a text input
    if (props.checked == null && props.defaultChecked != null) {
      node.defaultChecked = !!props.defaultChecked;
    }
  }
}
function postMountWrapper(element, props, isHydrating) {
  var node = element; // Do not assign value if it is already set. This prevents user text input
  // from being lost during SSR hydration.

  if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
    var type = props.type;
    var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the
    // default value provided by the browser. See: #12872

    if (isButton && (props.value === undefined || props.value === null)) {
      return;
    }

    var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input
    // from being lost during SSR hydration.

    if (!isHydrating) {
      {
        // When syncing the value attribute, the value property should use
        // the wrapperState._initialValue property. This uses:
        //
        //   1. The value React property when present
        //   2. The defaultValue React property when present
        //   3. An empty string
        if (initialValue !== node.value) {
          node.value = initialValue;
        }
      }
    }

    {
      // Otherwise, the value attribute is synchronized to the property,
      // so we assign defaultValue to the same thing as the value property
      // assignment step above.
      node.defaultValue = initialValue;
    }
  } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  // this is needed to work around a chrome bug where setting defaultChecked
  // will sometimes influence the value of checked (even after detachment).
  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  // We need to temporarily unset name to avoid disrupting radio button groups.


  var name = node.name;

  if (name !== '') {
    node.name = '';
  }

  {
    // When syncing the checked attribute, both the checked property and
    // attribute are assigned at the same time using defaultChecked. This uses:
    //
    //   1. The checked React property when present
    //   2. The defaultChecked React property when present
    //   3. Otherwise, false
    node.defaultChecked = !node.defaultChecked;
    node.defaultChecked = !!node._wrapperState.initialChecked;
  }

  if (name !== '') {
    node.name = name;
  }
}
function restoreControlledState(element, props) {
  var node = element;
  updateWrapper(node, props);
  updateNamedCousins(node, props);
}

function updateNamedCousins(rootNode, props) {
  var name = props.name;

  if (props.type === 'radio' && name != null) {
    var queryRoot = rootNode;

    while (queryRoot.parentNode) {
      queryRoot = queryRoot.parentNode;
    } // If `rootNode.form` was non-null, then we could try `form.elements`,
    // but that sometimes behaves strangely in IE8. We could also try using
    // `form.getElementsByName`, but that will only return direct children
    // and won't include inputs that use the HTML5 `form=` attribute. Since
    // the input might not even be in a form. It might not even be in the
    // document. Let's just use the local `querySelectorAll` to ensure we don't
    // miss anything.


    {
      checkAttributeStringCoercion(name, 'name');
    }

    var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');

    for (var i = 0; i < group.length; i++) {
      var otherNode = group[i];

      if (otherNode === rootNode || otherNode.form !== rootNode.form) {
        continue;
      } // This will throw if radio buttons rendered by different copies of React
      // and the same name are rendered into the same form (same as #1939).
      // That's probably okay; we don't support it just as we don't support
      // mixing React radio buttons with non-React ones.


      var otherProps = getFiberCurrentPropsFromNode(otherNode);

      if (!otherProps) {
        throw new Error('ReactDOMInput: Mixing React and non-React radio inputs with the ' + 'same `name` is not supported.');
      } // We need update the tracked value on the named cousin since the value
      // was changed but the input saw no event or value set


      updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that
      // was previously checked to update will cause it to be come re-checked
      // as appropriate.

      updateWrapper(otherNode, otherProps);
    }
  }
} // In Chrome, assigning defaultValue to certain input types triggers input validation.
// For number inputs, the display value loses trailing decimal points. For email inputs,
// Chrome raises "The specified value <x> is not a valid email address".
//
// Here we check to see if the defaultValue has actually changed, avoiding these problems
// when the user is inputting text
//
// https://github.com/facebook/react/issues/7253


function setDefaultValue(node, type, value) {
  if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  type !== 'number' || getActiveElement(node.ownerDocument) !== node) {
    if (value == null) {
      node.defaultValue = toString(node._wrapperState.initialValue);
    } else if (node.defaultValue !== toString(value)) {
      node.defaultValue = toString(value);
    }
  }
}

var didWarnSelectedSetOnOption = false;
var didWarnInvalidChild = false;
var didWarnInvalidInnerHTML = false;
/**
 * Implements an <option> host component that warns when `selected` is set.
 */

function validateProps(element, props) {
  {
    // If a value is not provided, then the children must be simple.
    if (props.value == null) {
      if (typeof props.children === 'object' && props.children !== null) {
        React.Children.forEach(props.children, function (child) {
          if (child == null) {
            return;
          }

          if (typeof child === 'string' || typeof child === 'number') {
            return;
          }

          if (!didWarnInvalidChild) {
            didWarnInvalidChild = true;

            error('Cannot infer the option value of complex children. ' + 'Pass a `value` prop or use a plain string as children to <option>.');
          }
        });
      } else if (props.dangerouslySetInnerHTML != null) {
        if (!didWarnInvalidInnerHTML) {
          didWarnInvalidInnerHTML = true;

          error('Pass a `value` prop if you set dangerouslyInnerHTML so React knows ' + 'which value should be selected.');
        }
      }
    } // TODO: Remove support for `selected` in <option>.


    if (props.selected != null && !didWarnSelectedSetOnOption) {
      error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');

      didWarnSelectedSetOnOption = true;
    }
  }
}
function postMountWrapper$1(element, props) {
  // value="" should make a value attribute (#6219)
  if (props.value != null) {
    element.setAttribute('value', toString(getToStringValue(props.value)));
  }
}

var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare

function isArray(a) {
  return isArrayImpl(a);
}

var didWarnValueDefaultValue$1;

{
  didWarnValueDefaultValue$1 = false;
}

function getDeclarationErrorAddendum() {
  var ownerName = getCurrentFiberOwnerNameInDevOrNull();

  if (ownerName) {
    return '\n\nCheck the render method of `' + ownerName + '`.';
  }

  return '';
}

var valuePropNames = ['value', 'defaultValue'];
/**
 * Validation function for `value` and `defaultValue`.
 */

function checkSelectPropTypes(props) {
  {
    checkControlledValueProps('select', props);

    for (var i = 0; i < valuePropNames.length; i++) {
      var propName = valuePropNames[i];

      if (props[propName] == null) {
        continue;
      }

      var propNameIsArray = isArray(props[propName]);

      if (props.multiple && !propNameIsArray) {
        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
      } else if (!props.multiple && propNameIsArray) {
        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
      }
    }
  }
}

function updateOptions(node, multiple, propValue, setDefaultSelected) {
  var options = node.options;

  if (multiple) {
    var selectedValues = propValue;
    var selectedValue = {};

    for (var i = 0; i < selectedValues.length; i++) {
      // Prefix to avoid chaos with special keys.
      selectedValue['$' + selectedValues[i]] = true;
    }

    for (var _i = 0; _i < options.length; _i++) {
      var selected = selectedValue.hasOwnProperty('$' + options[_i].value);

      if (options[_i].selected !== selected) {
        options[_i].selected = selected;
      }

      if (selected && setDefaultSelected) {
        options[_i].defaultSelected = true;
      }
    }
  } else {
    // Do not set `select.value` as exact behavior isn't consistent across all
    // browsers for all cases.
    var _selectedValue = toString(getToStringValue(propValue));

    var defaultSelected = null;

    for (var _i2 = 0; _i2 < options.length; _i2++) {
      if (options[_i2].value === _selectedValue) {
        options[_i2].selected = true;

        if (setDefaultSelected) {
          options[_i2].defaultSelected = true;
        }

        return;
      }

      if (defaultSelected === null && !options[_i2].disabled) {
        defaultSelected = options[_i2];
      }
    }

    if (defaultSelected !== null) {
      defaultSelected.selected = true;
    }
  }
}
/**
 * Implements a <select> host component that allows optionally setting the
 * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
 * stringable. If `multiple` is true, the prop must be an array of stringables.
 *
 * If `value` is not supplied (or null/undefined), user actions that change the
 * selected option will trigger updates to the rendered options.
 *
 * If it is supplied (and not null/undefined), the rendered options will not
 * update in response to user actions. Instead, the `value` prop must change in
 * order for the rendered options to update.
 *
 * If `defaultValue` is provided, any options with the supplied values will be
 * selected.
 */


function getHostProps$1(element, props) {
  return assign({}, props, {
    value: undefined
  });
}
function initWrapperState$1(element, props) {
  var node = element;

  {
    checkSelectPropTypes(props);
  }

  node._wrapperState = {
    wasMultiple: !!props.multiple
  };

  {
    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
      error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components');

      didWarnValueDefaultValue$1 = true;
    }
  }
}
function postMountWrapper$2(element, props) {
  var node = element;
  node.multiple = !!props.multiple;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (props.defaultValue != null) {
    updateOptions(node, !!props.multiple, props.defaultValue, true);
  }
}
function postUpdateWrapper(element, props) {
  var node = element;
  var wasMultiple = node._wrapperState.wasMultiple;
  node._wrapperState.wasMultiple = !!props.multiple;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  } else if (wasMultiple !== !!props.multiple) {
    // For simplicity, reapply `defaultValue` if `multiple` is toggled.
    if (props.defaultValue != null) {
      updateOptions(node, !!props.multiple, props.defaultValue, true);
    } else {
      // Revert the select back to its default unselected state.
      updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
    }
  }
}
function restoreControlledState$1(element, props) {
  var node = element;
  var value = props.value;

  if (value != null) {
    updateOptions(node, !!props.multiple, value, false);
  }
}

var didWarnValDefaultVal = false;

/**
 * Implements a <textarea> host component that allows setting `value`, and
 * `defaultValue`. This differs from the traditional DOM API because value is
 * usually set as PCDATA children.
 *
 * If `value` is not supplied (or null/undefined), user actions that affect the
 * value will trigger updates to the element.
 *
 * If `value` is supplied (and not null/undefined), the rendered element will
 * not trigger updates to the element. Instead, the `value` prop must change in
 * order for the rendered element to be updated.
 *
 * The rendered element will be initialized with an empty value, the prop
 * `defaultValue` if specified, or the children content (deprecated).
 */
function getHostProps$2(element, props) {
  var node = element;

  if (props.dangerouslySetInnerHTML != null) {
    throw new Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.');
  } // Always set children to the same thing. In IE9, the selection range will
  // get reset if `textContent` is mutated.  We could add a check in setTextContent
  // to only set the value if/when the value differs from the node value (which would
  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  // solution. The value can be a boolean or object so that's why it's forced
  // to be a string.


  var hostProps = assign({}, props, {
    value: undefined,
    defaultValue: undefined,
    children: toString(node._wrapperState.initialValue)
  });

  return hostProps;
}
function initWrapperState$2(element, props) {
  var node = element;

  {
    checkControlledValueProps('textarea', props);

    if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
      error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://reactjs.org/link/controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');

      didWarnValDefaultVal = true;
    }
  }

  var initialValue = props.value; // Only bother fetching default value if we're going to use it

  if (initialValue == null) {
    var children = props.children,
        defaultValue = props.defaultValue;

    if (children != null) {
      {
        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
      }

      {
        if (defaultValue != null) {
          throw new Error('If you supply `defaultValue` on a <textarea>, do not pass children.');
        }

        if (isArray(children)) {
          if (children.length > 1) {
            throw new Error('<textarea> can only have at most one child.');
          }

          children = children[0];
        }

        defaultValue = children;
      }
    }

    if (defaultValue == null) {
      defaultValue = '';
    }

    initialValue = defaultValue;
  }

  node._wrapperState = {
    initialValue: getToStringValue(initialValue)
  };
}
function updateWrapper$1(element, props) {
  var node = element;
  var value = getToStringValue(props.value);
  var defaultValue = getToStringValue(props.defaultValue);

  if (value != null) {
    // Cast `value` to a string to ensure the value is set correctly. While
    // browsers typically do this as necessary, jsdom doesn't.
    var newValue = toString(value); // To avoid side effects (such as losing text selection), only set value if changed

    if (newValue !== node.value) {
      node.value = newValue;
    }

    if (props.defaultValue == null && node.defaultValue !== newValue) {
      node.defaultValue = newValue;
    }
  }

  if (defaultValue != null) {
    node.defaultValue = toString(defaultValue);
  }
}
function postMountWrapper$3(element, props) {
  var node = element; // This is in postMount because we need access to the DOM node, which is not
  // available until after the component has mounted.

  var textContent = node.textContent; // Only set node.value if textContent is equal to the expected
  // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  // will populate textContent as well.
  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/

  if (textContent === node._wrapperState.initialValue) {
    if (textContent !== '' && textContent !== null) {
      node.value = textContent;
    }
  }
}
function restoreControlledState$2(element, props) {
  // DOM component is still mounted; update
  updateWrapper$1(element, props);
}

var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; // Assumes there is no parent namespace.

function getIntrinsicNamespace(type) {
  switch (type) {
    case 'svg':
      return SVG_NAMESPACE;

    case 'math':
      return MATH_NAMESPACE;

    default:
      return HTML_NAMESPACE;
  }
}
function getChildNamespace(parentNamespace, type) {
  if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) {
    // No (or default) parent namespace: potential entry point.
    return getIntrinsicNamespace(type);
  }

  if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
    // We're leaving SVG.
    return HTML_NAMESPACE;
  } // By default, pass namespace below.


  return parentNamespace;
}

/* globals MSApp */

/**
 * Create a function which has 'unsafe' privileges (required by windows8 apps)
 */
var createMicrosoftUnsafeLocalFunction = function (func) {
  if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
    return function (arg0, arg1, arg2, arg3) {
      MSApp.execUnsafeLocalFunction(function () {
        return func(arg0, arg1, arg2, arg3);
      });
    };
  } else {
    return func;
  }
};

var reusableSVGContainer;
/**
 * Set the innerHTML property of a node
 *
 * @param {DOMElement} node
 * @param {string} html
 * @internal
 */

var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  if (node.namespaceURI === SVG_NAMESPACE) {

    if (!('innerHTML' in node)) {
      // IE does not have innerHTML for SVG nodes, so instead we inject the
      // new markup in a temp node and then move the child nodes across into
      // the target node
      reusableSVGContainer = reusableSVGContainer || document.createElement('div');
      reusableSVGContainer.innerHTML = '<svg>' + html.valueOf().toString() + '</svg>';
      var svgNode = reusableSVGContainer.firstChild;

      while (node.firstChild) {
        node.removeChild(node.firstChild);
      }

      while (svgNode.firstChild) {
        node.appendChild(svgNode.firstChild);
      }

      return;
    }
  }

  node.innerHTML = html;
});

/**
 * HTML nodeType values that represent the type of the node
 */
var ELEMENT_NODE = 1;
var TEXT_NODE = 3;
var COMMENT_NODE = 8;
var DOCUMENT_NODE = 9;
var DOCUMENT_FRAGMENT_NODE = 11;

/**
 * Set the textContent property of a node. For text updates, it's faster
 * to set the `nodeValue` of the Text node directly instead of using
 * `.textContent` which will remove the existing node and create a new one.
 *
 * @param {DOMElement} node
 * @param {string} text
 * @internal
 */

var setTextContent = function (node, text) {
  if (text) {
    var firstChild = node.firstChild;

    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
      firstChild.nodeValue = text;
      return;
    }
  }

  node.textContent = text;
};

// List derived from Gecko source code:
// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
var shorthandToLonghand = {
  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  columns: ['columnCount', 'columnWidth'],
  flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  flexFlow: ['flexDirection', 'flexWrap'],
  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  gap: ['columnGap', 'rowGap'],
  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  gridColumnGap: ['columnGap'],
  gridGap: ['columnGap', 'rowGap'],
  gridRow: ['gridRowEnd', 'gridRowStart'],
  gridRowGap: ['rowGap'],
  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  marker: ['markerEnd', 'markerMid', 'markerStart'],
  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  maskPosition: ['maskPositionX', 'maskPositionY'],
  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  overflow: ['overflowX', 'overflowY'],
  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  placeContent: ['alignContent', 'justifyContent'],
  placeItems: ['alignItems', 'justifyItems'],
  placeSelf: ['alignSelf', 'justifySelf'],
  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  wordWrap: ['overflowWrap']
};

/**
 * CSS properties which accept numbers but are not in units of "px".
 */
var isUnitlessNumber = {
  animationIterationCount: true,
  aspectRatio: true,
  borderImageOutset: true,
  borderImageSlice: true,
  borderImageWidth: true,
  boxFlex: true,
  boxFlexGroup: true,
  boxOrdinalGroup: true,
  columnCount: true,
  columns: true,
  flex: true,
  flexGrow: true,
  flexPositive: true,
  flexShrink: true,
  flexNegative: true,
  flexOrder: true,
  gridArea: true,
  gridRow: true,
  gridRowEnd: true,
  gridRowSpan: true,
  gridRowStart: true,
  gridColumn: true,
  gridColumnEnd: true,
  gridColumnSpan: true,
  gridColumnStart: true,
  fontWeight: true,
  lineClamp: true,
  lineHeight: true,
  opacity: true,
  order: true,
  orphans: true,
  tabSize: true,
  widows: true,
  zIndex: true,
  zoom: true,
  // SVG-related properties
  fillOpacity: true,
  floodOpacity: true,
  stopOpacity: true,
  strokeDasharray: true,
  strokeDashoffset: true,
  strokeMiterlimit: true,
  strokeOpacity: true,
  strokeWidth: true
};
/**
 * @param {string} prefix vendor-specific prefix, eg: Webkit
 * @param {string} key style name, eg: transitionDuration
 * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
 * WebkitTransitionDuration
 */

function prefixKey(prefix, key) {
  return prefix + key.charAt(0).toUpperCase() + key.substring(1);
}
/**
 * Support style names that may come passed in prefixed by adding permutations
 * of vendor prefixes.
 */


var prefixes = ['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
// infinite loop, because it iterates over the newly added props too.

Object.keys(isUnitlessNumber).forEach(function (prop) {
  prefixes.forEach(function (prefix) {
    isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  });
});

/**
 * Convert a value into the proper css writable value. The style name `name`
 * should be logical (no hyphens), as specified
 * in `CSSProperty.isUnitlessNumber`.
 *
 * @param {string} name CSS property name such as `topMargin`.
 * @param {*} value CSS property value such as `10px`.
 * @return {string} Normalized style value with dimensions applied.
 */

function dangerousStyleValue(name, value, isCustomProperty) {
  // Note that we've removed escapeTextForBrowser() calls here since the
  // whole string will be escaped when the attribute is injected into
  // the markup. If you provide unsafe user data here they can inject
  // arbitrary CSS which may be problematic (I couldn't repro this):
  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  // This is not an XSS hole but instead a potential CSS injection issue
  // which has lead to a greater discussion about how we're going to
  // trust URLs moving forward. See #2115901
  var isEmpty = value == null || typeof value === 'boolean' || value === '';

  if (isEmpty) {
    return '';
  }

  if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  }

  {
    checkCSSPropertyStringCoercion(value, name);
  }

  return ('' + value).trim();
}

var uppercasePattern = /([A-Z])/g;
var msPattern = /^ms-/;
/**
 * Hyphenates a camelcased CSS property name, for example:
 *
 *   > hyphenateStyleName('backgroundColor')
 *   < "background-color"
 *   > hyphenateStyleName('MozTransition')
 *   < "-moz-transition"
 *   > hyphenateStyleName('msTransition')
 *   < "-ms-transition"
 *
 * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
 * is converted to `-ms-`.
 */

function hyphenateStyleName(name) {
  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
}

var warnValidStyle = function () {};

{
  // 'msTransform' is correct, but the other prefixes should be capitalized
  var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  var msPattern$1 = /^-ms-/;
  var hyphenPattern = /-(.)/g; // style values shouldn't contain a semicolon

  var badStyleValueWithSemicolonPattern = /;\s*$/;
  var warnedStyleNames = {};
  var warnedStyleValues = {};
  var warnedForNaNValue = false;
  var warnedForInfinityValue = false;

  var camelize = function (string) {
    return string.replace(hyphenPattern, function (_, character) {
      return character.toUpperCase();
    });
  };

  var warnHyphenatedStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;

    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests
    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
    // is converted to lowercase `ms`.
    camelize(name.replace(msPattern$1, 'ms-')));
  };

  var warnBadVendoredStyleName = function (name) {
    if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
      return;
    }

    warnedStyleNames[name] = true;

    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  };

  var warnStyleValueWithSemicolon = function (name, value) {
    if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
      return;
    }

    warnedStyleValues[value] = true;

    error("Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  };

  var warnStyleValueIsNaN = function (name, value) {
    if (warnedForNaNValue) {
      return;
    }

    warnedForNaNValue = true;

    error('`NaN` is an invalid value for the `%s` css style property.', name);
  };

  var warnStyleValueIsInfinity = function (name, value) {
    if (warnedForInfinityValue) {
      return;
    }

    warnedForInfinityValue = true;

    error('`Infinity` is an invalid value for the `%s` css style property.', name);
  };

  warnValidStyle = function (name, value) {
    if (name.indexOf('-') > -1) {
      warnHyphenatedStyleName(name);
    } else if (badVendoredStyleNamePattern.test(name)) {
      warnBadVendoredStyleName(name);
    } else if (badStyleValueWithSemicolonPattern.test(value)) {
      warnStyleValueWithSemicolon(name, value);
    }

    if (typeof value === 'number') {
      if (isNaN(value)) {
        warnStyleValueIsNaN(name, value);
      } else if (!isFinite(value)) {
        warnStyleValueIsInfinity(name, value);
      }
    }
  };
}

var warnValidStyle$1 = warnValidStyle;

/**
 * Operations for dealing with CSS properties.
 */

/**
 * This creates a string that is expected to be equivalent to the style
 * attribute generated by server-side rendering. It by-passes warnings and
 * security checks so it's not safe to use this value for anything other than
 * comparison. It is only used in DEV for SSR validation.
 */

function createDangerousStringForStyles(styles) {
  {
    var serialized = '';
    var delimiter = '';

    for (var styleName in styles) {
      if (!styles.hasOwnProperty(styleName)) {
        continue;
      }

      var styleValue = styles[styleName];

      if (styleValue != null) {
        var isCustomProperty = styleName.indexOf('--') === 0;
        serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
        serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
        delimiter = ';';
      }
    }

    return serialized || null;
  }
}
/**
 * Sets the value for multiple styles on a node.  If a value is specified as
 * '' (empty string), the corresponding style property will be unset.
 *
 * @param {DOMElement} node
 * @param {object} styles
 */

function setValueForStyles(node, styles) {
  var style = node.style;

  for (var styleName in styles) {
    if (!styles.hasOwnProperty(styleName)) {
      continue;
    }

    var isCustomProperty = styleName.indexOf('--') === 0;

    {
      if (!isCustomProperty) {
        warnValidStyle$1(styleName, styles[styleName]);
      }
    }

    var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);

    if (styleName === 'float') {
      styleName = 'cssFloat';
    }

    if (isCustomProperty) {
      style.setProperty(styleName, styleValue);
    } else {
      style[styleName] = styleValue;
    }
  }
}

function isValueEmpty(value) {
  return value == null || typeof value === 'boolean' || value === '';
}
/**
 * Given {color: 'red', overflow: 'hidden'} returns {
 *   color: 'color',
 *   overflowX: 'overflow',
 *   overflowY: 'overflow',
 * }. This can be read as "the overflowY property was set by the overflow
 * shorthand". That is, the values are the property that each was derived from.
 */


function expandShorthandMap(styles) {
  var expanded = {};

  for (var key in styles) {
    var longhands = shorthandToLonghand[key] || [key];

    for (var i = 0; i < longhands.length; i++) {
      expanded[longhands[i]] = key;
    }
  }

  return expanded;
}
/**
 * When mixing shorthand and longhand property names, we warn during updates if
 * we expect an incorrect result to occur. In particular, we warn for:
 *
 * Updating a shorthand property (longhand gets overwritten):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
 *   becomes .style.font = 'baz'
 * Removing a shorthand property (longhand gets lost too):
 *   {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
 *   becomes .style.font = ''
 * Removing a longhand property (should revert to shorthand; doesn't):
 *   {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
 *   becomes .style.fontVariant = ''
 */


function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  {
    if (!nextStyles) {
      return;
    }

    var expandedUpdates = expandShorthandMap(styleUpdates);
    var expandedStyles = expandShorthandMap(nextStyles);
    var warnedAbout = {};

    for (var key in expandedUpdates) {
      var originalKey = expandedUpdates[key];
      var correctOriginalKey = expandedStyles[key];

      if (correctOriginalKey && originalKey !== correctOriginalKey) {
        var warningKey = originalKey + ',' + correctOriginalKey;

        if (warnedAbout[warningKey]) {
          continue;
        }

        warnedAbout[warningKey] = true;

        error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
      }
    }
  }
}

// For HTML, certain tags should omit their close tag. We keep a list for
// those special-case tags.
var omittedCloseTags = {
  area: true,
  base: true,
  br: true,
  col: true,
  embed: true,
  hr: true,
  img: true,
  input: true,
  keygen: true,
  link: true,
  meta: true,
  param: true,
  source: true,
  track: true,
  wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.

};

// `omittedCloseTags` except that `menuitem` should still have its closing tag.

var voidElementTags = assign({
  menuitem: true
}, omittedCloseTags);

var HTML = '__html';

function assertValidProps(tag, props) {
  if (!props) {
    return;
  } // Note the use of `==` which checks for null or undefined.


  if (voidElementTags[tag]) {
    if (props.children != null || props.dangerouslySetInnerHTML != null) {
      throw new Error(tag + " is a void element tag and must neither have `children` nor " + 'use `dangerouslySetInnerHTML`.');
    }
  }

  if (props.dangerouslySetInnerHTML != null) {
    if (props.children != null) {
      throw new Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.');
    }

    if (typeof props.dangerouslySetInnerHTML !== 'object' || !(HTML in props.dangerouslySetInnerHTML)) {
      throw new Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' + 'Please visit https://reactjs.org/link/dangerously-set-inner-html ' + 'for more information.');
    }
  }

  {
    if (!props.suppressContentEditableWarning && props.contentEditable && props.children != null) {
      error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');
    }
  }

  if (props.style != null && typeof props.style !== 'object') {
    throw new Error('The `style` prop expects a mapping from style properties to values, ' + "not a string. For example, style={{marginRight: spacing + 'em'}} when " + 'using JSX.');
  }
}

function isCustomComponent(tagName, props) {
  if (tagName.indexOf('-') === -1) {
    return typeof props.is === 'string';
  }

  switch (tagName) {
    // These are reserved SVG and MathML elements.
    // We don't mind this list too much because we expect it to never grow.
    // The alternative is to track the namespace in a few places which is convoluted.
    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
    case 'annotation-xml':
    case 'color-profile':
    case 'font-face':
    case 'font-face-src':
    case 'font-face-uri':
    case 'font-face-format':
    case 'font-face-name':
    case 'missing-glyph':
      return false;

    default:
      return true;
  }
}

// When adding attributes to the HTML or SVG allowed attribute list, be sure to
// also add them to this module to ensure casing and incorrect name
// warnings.
var possibleStandardNames = {
  // HTML
  accept: 'accept',
  acceptcharset: 'acceptCharset',
  'accept-charset': 'acceptCharset',
  accesskey: 'accessKey',
  action: 'action',
  allowfullscreen: 'allowFullScreen',
  alt: 'alt',
  as: 'as',
  async: 'async',
  autocapitalize: 'autoCapitalize',
  autocomplete: 'autoComplete',
  autocorrect: 'autoCorrect',
  autofocus: 'autoFocus',
  autoplay: 'autoPlay',
  autosave: 'autoSave',
  capture: 'capture',
  cellpadding: 'cellPadding',
  cellspacing: 'cellSpacing',
  challenge: 'challenge',
  charset: 'charSet',
  checked: 'checked',
  children: 'children',
  cite: 'cite',
  class: 'className',
  classid: 'classID',
  classname: 'className',
  cols: 'cols',
  colspan: 'colSpan',
  content: 'content',
  contenteditable: 'contentEditable',
  contextmenu: 'contextMenu',
  controls: 'controls',
  controlslist: 'controlsList',
  coords: 'coords',
  crossorigin: 'crossOrigin',
  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  data: 'data',
  datetime: 'dateTime',
  default: 'default',
  defaultchecked: 'defaultChecked',
  defaultvalue: 'defaultValue',
  defer: 'defer',
  dir: 'dir',
  disabled: 'disabled',
  disablepictureinpicture: 'disablePictureInPicture',
  disableremoteplayback: 'disableRemotePlayback',
  download: 'download',
  draggable: 'draggable',
  enctype: 'encType',
  enterkeyhint: 'enterKeyHint',
  for: 'htmlFor',
  form: 'form',
  formmethod: 'formMethod',
  formaction: 'formAction',
  formenctype: 'formEncType',
  formnovalidate: 'formNoValidate',
  formtarget: 'formTarget',
  frameborder: 'frameBorder',
  headers: 'headers',
  height: 'height',
  hidden: 'hidden',
  high: 'high',
  href: 'href',
  hreflang: 'hrefLang',
  htmlfor: 'htmlFor',
  httpequiv: 'httpEquiv',
  'http-equiv': 'httpEquiv',
  icon: 'icon',
  id: 'id',
  imagesizes: 'imageSizes',
  imagesrcset: 'imageSrcSet',
  innerhtml: 'innerHTML',
  inputmode: 'inputMode',
  integrity: 'integrity',
  is: 'is',
  itemid: 'itemID',
  itemprop: 'itemProp',
  itemref: 'itemRef',
  itemscope: 'itemScope',
  itemtype: 'itemType',
  keyparams: 'keyParams',
  keytype: 'keyType',
  kind: 'kind',
  label: 'label',
  lang: 'lang',
  list: 'list',
  loop: 'loop',
  low: 'low',
  manifest: 'manifest',
  marginwidth: 'marginWidth',
  marginheight: 'marginHeight',
  max: 'max',
  maxlength: 'maxLength',
  media: 'media',
  mediagroup: 'mediaGroup',
  method: 'method',
  min: 'min',
  minlength: 'minLength',
  multiple: 'multiple',
  muted: 'muted',
  name: 'name',
  nomodule: 'noModule',
  nonce: 'nonce',
  novalidate: 'noValidate',
  open: 'open',
  optimum: 'optimum',
  pattern: 'pattern',
  placeholder: 'placeholder',
  playsinline: 'playsInline',
  poster: 'poster',
  preload: 'preload',
  profile: 'profile',
  radiogroup: 'radioGroup',
  readonly: 'readOnly',
  referrerpolicy: 'referrerPolicy',
  rel: 'rel',
  required: 'required',
  reversed: 'reversed',
  role: 'role',
  rows: 'rows',
  rowspan: 'rowSpan',
  sandbox: 'sandbox',
  scope: 'scope',
  scoped: 'scoped',
  scrolling: 'scrolling',
  seamless: 'seamless',
  selected: 'selected',
  shape: 'shape',
  size: 'size',
  sizes: 'sizes',
  span: 'span',
  spellcheck: 'spellCheck',
  src: 'src',
  srcdoc: 'srcDoc',
  srclang: 'srcLang',
  srcset: 'srcSet',
  start: 'start',
  step: 'step',
  style: 'style',
  summary: 'summary',
  tabindex: 'tabIndex',
  target: 'target',
  title: 'title',
  type: 'type',
  usemap: 'useMap',
  value: 'value',
  width: 'width',
  wmode: 'wmode',
  wrap: 'wrap',
  // SVG
  about: 'about',
  accentheight: 'accentHeight',
  'accent-height': 'accentHeight',
  accumulate: 'accumulate',
  additive: 'additive',
  alignmentbaseline: 'alignmentBaseline',
  'alignment-baseline': 'alignmentBaseline',
  allowreorder: 'allowReorder',
  alphabetic: 'alphabetic',
  amplitude: 'amplitude',
  arabicform: 'arabicForm',
  'arabic-form': 'arabicForm',
  ascent: 'ascent',
  attributename: 'attributeName',
  attributetype: 'attributeType',
  autoreverse: 'autoReverse',
  azimuth: 'azimuth',
  basefrequency: 'baseFrequency',
  baselineshift: 'baselineShift',
  'baseline-shift': 'baselineShift',
  baseprofile: 'baseProfile',
  bbox: 'bbox',
  begin: 'begin',
  bias: 'bias',
  by: 'by',
  calcmode: 'calcMode',
  capheight: 'capHeight',
  'cap-height': 'capHeight',
  clip: 'clip',
  clippath: 'clipPath',
  'clip-path': 'clipPath',
  clippathunits: 'clipPathUnits',
  cliprule: 'clipRule',
  'clip-rule': 'clipRule',
  color: 'color',
  colorinterpolation: 'colorInterpolation',
  'color-interpolation': 'colorInterpolation',
  colorinterpolationfilters: 'colorInterpolationFilters',
  'color-interpolation-filters': 'colorInterpolationFilters',
  colorprofile: 'colorProfile',
  'color-profile': 'colorProfile',
  colorrendering: 'colorRendering',
  'color-rendering': 'colorRendering',
  contentscripttype: 'contentScriptType',
  contentstyletype: 'contentStyleType',
  cursor: 'cursor',
  cx: 'cx',
  cy: 'cy',
  d: 'd',
  datatype: 'datatype',
  decelerate: 'decelerate',
  descent: 'descent',
  diffuseconstant: 'diffuseConstant',
  direction: 'direction',
  display: 'display',
  divisor: 'divisor',
  dominantbaseline: 'dominantBaseline',
  'dominant-baseline': 'dominantBaseline',
  dur: 'dur',
  dx: 'dx',
  dy: 'dy',
  edgemode: 'edgeMode',
  elevation: 'elevation',
  enablebackground: 'enableBackground',
  'enable-background': 'enableBackground',
  end: 'end',
  exponent: 'exponent',
  externalresourcesrequired: 'externalResourcesRequired',
  fill: 'fill',
  fillopacity: 'fillOpacity',
  'fill-opacity': 'fillOpacity',
  fillrule: 'fillRule',
  'fill-rule': 'fillRule',
  filter: 'filter',
  filterres: 'filterRes',
  filterunits: 'filterUnits',
  floodopacity: 'floodOpacity',
  'flood-opacity': 'floodOpacity',
  floodcolor: 'floodColor',
  'flood-color': 'floodColor',
  focusable: 'focusable',
  fontfamily: 'fontFamily',
  'font-family': 'fontFamily',
  fontsize: 'fontSize',
  'font-size': 'fontSize',
  fontsizeadjust: 'fontSizeAdjust',
  'font-size-adjust': 'fontSizeAdjust',
  fontstretch: 'fontStretch',
  'font-stretch': 'fontStretch',
  fontstyle: 'fontStyle',
  'font-style': 'fontStyle',
  fontvariant: 'fontVariant',
  'font-variant': 'fontVariant',
  fontweight: 'fontWeight',
  'font-weight': 'fontWeight',
  format: 'format',
  from: 'from',
  fx: 'fx',
  fy: 'fy',
  g1: 'g1',
  g2: 'g2',
  glyphname: 'glyphName',
  'glyph-name': 'glyphName',
  glyphorientationhorizontal: 'glyphOrientationHorizontal',
  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  glyphorientationvertical: 'glyphOrientationVertical',
  'glyph-orientation-vertical': 'glyphOrientationVertical',
  glyphref: 'glyphRef',
  gradienttransform: 'gradientTransform',
  gradientunits: 'gradientUnits',
  hanging: 'hanging',
  horizadvx: 'horizAdvX',
  'horiz-adv-x': 'horizAdvX',
  horizoriginx: 'horizOriginX',
  'horiz-origin-x': 'horizOriginX',
  ideographic: 'ideographic',
  imagerendering: 'imageRendering',
  'image-rendering': 'imageRendering',
  in2: 'in2',
  in: 'in',
  inlist: 'inlist',
  intercept: 'intercept',
  k1: 'k1',
  k2: 'k2',
  k3: 'k3',
  k4: 'k4',
  k: 'k',
  kernelmatrix: 'kernelMatrix',
  kernelunitlength: 'kernelUnitLength',
  kerning: 'kerning',
  keypoints: 'keyPoints',
  keysplines: 'keySplines',
  keytimes: 'keyTimes',
  lengthadjust: 'lengthAdjust',
  letterspacing: 'letterSpacing',
  'letter-spacing': 'letterSpacing',
  lightingcolor: 'lightingColor',
  'lighting-color': 'lightingColor',
  limitingconeangle: 'limitingConeAngle',
  local: 'local',
  markerend: 'markerEnd',
  'marker-end': 'markerEnd',
  markerheight: 'markerHeight',
  markermid: 'markerMid',
  'marker-mid': 'markerMid',
  markerstart: 'markerStart',
  'marker-start': 'markerStart',
  markerunits: 'markerUnits',
  markerwidth: 'markerWidth',
  mask: 'mask',
  maskcontentunits: 'maskContentUnits',
  maskunits: 'maskUnits',
  mathematical: 'mathematical',
  mode: 'mode',
  numoctaves: 'numOctaves',
  offset: 'offset',
  opacity: 'opacity',
  operator: 'operator',
  order: 'order',
  orient: 'orient',
  orientation: 'orientation',
  origin: 'origin',
  overflow: 'overflow',
  overlineposition: 'overlinePosition',
  'overline-position': 'overlinePosition',
  overlinethickness: 'overlineThickness',
  'overline-thickness': 'overlineThickness',
  paintorder: 'paintOrder',
  'paint-order': 'paintOrder',
  panose1: 'panose1',
  'panose-1': 'panose1',
  pathlength: 'pathLength',
  patterncontentunits: 'patternContentUnits',
  patterntransform: 'patternTransform',
  patternunits: 'patternUnits',
  pointerevents: 'pointerEvents',
  'pointer-events': 'pointerEvents',
  points: 'points',
  pointsatx: 'pointsAtX',
  pointsaty: 'pointsAtY',
  pointsatz: 'pointsAtZ',
  prefix: 'prefix',
  preservealpha: 'preserveAlpha',
  preserveaspectratio: 'preserveAspectRatio',
  primitiveunits: 'primitiveUnits',
  property: 'property',
  r: 'r',
  radius: 'radius',
  refx: 'refX',
  refy: 'refY',
  renderingintent: 'renderingIntent',
  'rendering-intent': 'renderingIntent',
  repeatcount: 'repeatCount',
  repeatdur: 'repeatDur',
  requiredextensions: 'requiredExtensions',
  requiredfeatures: 'requiredFeatures',
  resource: 'resource',
  restart: 'restart',
  result: 'result',
  results: 'results',
  rotate: 'rotate',
  rx: 'rx',
  ry: 'ry',
  scale: 'scale',
  security: 'security',
  seed: 'seed',
  shaperendering: 'shapeRendering',
  'shape-rendering': 'shapeRendering',
  slope: 'slope',
  spacing: 'spacing',
  specularconstant: 'specularConstant',
  specularexponent: 'specularExponent',
  speed: 'speed',
  spreadmethod: 'spreadMethod',
  startoffset: 'startOffset',
  stddeviation: 'stdDeviation',
  stemh: 'stemh',
  stemv: 'stemv',
  stitchtiles: 'stitchTiles',
  stopcolor: 'stopColor',
  'stop-color': 'stopColor',
  stopopacity: 'stopOpacity',
  'stop-opacity': 'stopOpacity',
  strikethroughposition: 'strikethroughPosition',
  'strikethrough-position': 'strikethroughPosition',
  strikethroughthickness: 'strikethroughThickness',
  'strikethrough-thickness': 'strikethroughThickness',
  string: 'string',
  stroke: 'stroke',
  strokedasharray: 'strokeDasharray',
  'stroke-dasharray': 'strokeDasharray',
  strokedashoffset: 'strokeDashoffset',
  'stroke-dashoffset': 'strokeDashoffset',
  strokelinecap: 'strokeLinecap',
  'stroke-linecap': 'strokeLinecap',
  strokelinejoin: 'strokeLinejoin',
  'stroke-linejoin': 'strokeLinejoin',
  strokemiterlimit: 'strokeMiterlimit',
  'stroke-miterlimit': 'strokeMiterlimit',
  strokewidth: 'strokeWidth',
  'stroke-width': 'strokeWidth',
  strokeopacity: 'strokeOpacity',
  'stroke-opacity': 'strokeOpacity',
  suppresscontenteditablewarning: 'suppressContentEditableWarning',
  suppresshydrationwarning: 'suppressHydrationWarning',
  surfacescale: 'surfaceScale',
  systemlanguage: 'systemLanguage',
  tablevalues: 'tableValues',
  targetx: 'targetX',
  targety: 'targetY',
  textanchor: 'textAnchor',
  'text-anchor': 'textAnchor',
  textdecoration: 'textDecoration',
  'text-decoration': 'textDecoration',
  textlength: 'textLength',
  textrendering: 'textRendering',
  'text-rendering': 'textRendering',
  to: 'to',
  transform: 'transform',
  typeof: 'typeof',
  u1: 'u1',
  u2: 'u2',
  underlineposition: 'underlinePosition',
  'underline-position': 'underlinePosition',
  underlinethickness: 'underlineThickness',
  'underline-thickness': 'underlineThickness',
  unicode: 'unicode',
  unicodebidi: 'unicodeBidi',
  'unicode-bidi': 'unicodeBidi',
  unicoderange: 'unicodeRange',
  'unicode-range': 'unicodeRange',
  unitsperem: 'unitsPerEm',
  'units-per-em': 'unitsPerEm',
  unselectable: 'unselectable',
  valphabetic: 'vAlphabetic',
  'v-alphabetic': 'vAlphabetic',
  values: 'values',
  vectoreffect: 'vectorEffect',
  'vector-effect': 'vectorEffect',
  version: 'version',
  vertadvy: 'vertAdvY',
  'vert-adv-y': 'vertAdvY',
  vertoriginx: 'vertOriginX',
  'vert-origin-x': 'vertOriginX',
  vertoriginy: 'vertOriginY',
  'vert-origin-y': 'vertOriginY',
  vhanging: 'vHanging',
  'v-hanging': 'vHanging',
  videographic: 'vIdeographic',
  'v-ideographic': 'vIdeographic',
  viewbox: 'viewBox',
  viewtarget: 'viewTarget',
  visibility: 'visibility',
  vmathematical: 'vMathematical',
  'v-mathematical': 'vMathematical',
  vocab: 'vocab',
  widths: 'widths',
  wordspacing: 'wordSpacing',
  'word-spacing': 'wordSpacing',
  writingmode: 'writingMode',
  'writing-mode': 'writingMode',
  x1: 'x1',
  x2: 'x2',
  x: 'x',
  xchannelselector: 'xChannelSelector',
  xheight: 'xHeight',
  'x-height': 'xHeight',
  xlinkactuate: 'xlinkActuate',
  'xlink:actuate': 'xlinkActuate',
  xlinkarcrole: 'xlinkArcrole',
  'xlink:arcrole': 'xlinkArcrole',
  xlinkhref: 'xlinkHref',
  'xlink:href': 'xlinkHref',
  xlinkrole: 'xlinkRole',
  'xlink:role': 'xlinkRole',
  xlinkshow: 'xlinkShow',
  'xlink:show': 'xlinkShow',
  xlinktitle: 'xlinkTitle',
  'xlink:title': 'xlinkTitle',
  xlinktype: 'xlinkType',
  'xlink:type': 'xlinkType',
  xmlbase: 'xmlBase',
  'xml:base': 'xmlBase',
  xmllang: 'xmlLang',
  'xml:lang': 'xmlLang',
  xmlns: 'xmlns',
  'xml:space': 'xmlSpace',
  xmlnsxlink: 'xmlnsXlink',
  'xmlns:xlink': 'xmlnsXlink',
  xmlspace: 'xmlSpace',
  y1: 'y1',
  y2: 'y2',
  y: 'y',
  ychannelselector: 'yChannelSelector',
  z: 'z',
  zoomandpan: 'zoomAndPan'
};

var ariaProperties = {
  'aria-current': 0,
  // state
  'aria-description': 0,
  'aria-details': 0,
  'aria-disabled': 0,
  // state
  'aria-hidden': 0,
  // state
  'aria-invalid': 0,
  // state
  'aria-keyshortcuts': 0,
  'aria-label': 0,
  'aria-roledescription': 0,
  // Widget Attributes
  '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,
  // Live Region Attributes
  'aria-atomic': 0,
  'aria-busy': 0,
  'aria-live': 0,
  'aria-relevant': 0,
  // Drag-and-Drop Attributes
  'aria-dropeffect': 0,
  'aria-grabbed': 0,
  // Relationship Attributes
  '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
};

var warnedProperties = {};
var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

function validateProperty(tagName, name) {
  {
    if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) {
      return true;
    }

    if (rARIACamel.test(name)) {
      var ariaName = 'aria-' + name.slice(4).toLowerCase();
      var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; // If this is an aria-* attribute, but is not listed in the known DOM
      // DOM properties, then it is an invalid aria-* attribute.

      if (correctName == null) {
        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);

        warnedProperties[name] = true;
        return true;
      } // aria-* attributes should be lowercase; suggest the lowercase version.


      if (name !== correctName) {
        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);

        warnedProperties[name] = true;
        return true;
      }
    }

    if (rARIA.test(name)) {
      var lowerCasedName = name.toLowerCase();
      var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; // If this is an aria-* attribute, but is not listed in the known DOM
      // DOM properties, then it is an invalid aria-* attribute.

      if (standardName == null) {
        warnedProperties[name] = true;
        return false;
      } // aria-* attributes should be lowercase; suggest the lowercase version.


      if (name !== standardName) {
        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);

        warnedProperties[name] = true;
        return true;
      }
    }
  }

  return true;
}

function warnInvalidARIAProps(type, props) {
  {
    var invalidProps = [];

    for (var key in props) {
      var isValid = validateProperty(type, key);

      if (!isValid) {
        invalidProps.push(key);
      }
    }

    var unknownPropString = invalidProps.map(function (prop) {
      return '`' + prop + '`';
    }).join(', ');

    if (invalidProps.length === 1) {
      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
    } else if (invalidProps.length > 1) {
      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type);
    }
  }
}

function validateProperties(type, props) {
  if (isCustomComponent(type, props)) {
    return;
  }

  warnInvalidARIAProps(type, props);
}

var didWarnValueNull = false;
function validateProperties$1(type, props) {
  {
    if (type !== 'input' && type !== 'textarea' && type !== 'select') {
      return;
    }

    if (props != null && props.value === null && !didWarnValueNull) {
      didWarnValueNull = true;

      if (type === 'select' && props.multiple) {
        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
      } else {
        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
      }
    }
  }
}

var validateProperty$1 = function () {};

{
  var warnedProperties$1 = {};
  var EVENT_NAME_REGEX = /^on./;
  var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');

  validateProperty$1 = function (tagName, name, value, eventRegistry) {
    if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
      return true;
    }

    var lowerCasedName = name.toLowerCase();

    if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
      error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');

      warnedProperties$1[name] = true;
      return true;
    } // We can't rely on the event system being injected on the server.


    if (eventRegistry != null) {
      var registrationNameDependencies = eventRegistry.registrationNameDependencies,
          possibleRegistrationNames = eventRegistry.possibleRegistrationNames;

      if (registrationNameDependencies.hasOwnProperty(name)) {
        return true;
      }

      var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;

      if (registrationName != null) {
        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);

        warnedProperties$1[name] = true;
        return true;
      }

      if (EVENT_NAME_REGEX.test(name)) {
        error('Unknown event handler property `%s`. It will be ignored.', name);

        warnedProperties$1[name] = true;
        return true;
      }
    } else if (EVENT_NAME_REGEX.test(name)) {
      // If no event plugins have been injected, we are in a server environment.
      // So we can't tell if the event name is correct for sure, but we can filter
      // out known bad ones like `onclick`. We can't suggest a specific replacement though.
      if (INVALID_EVENT_NAME_REGEX.test(name)) {
        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
      }

      warnedProperties$1[name] = true;
      return true;
    } // Let the ARIA attribute hook validate ARIA attributes


    if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
      return true;
    }

    if (lowerCasedName === 'innerhtml') {
      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');

      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'aria') {
      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');

      warnedProperties$1[name] = true;
      return true;
    }

    if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);

      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'number' && isNaN(value)) {
      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);

      warnedProperties$1[name] = true;
      return true;
    }

    var propertyInfo = getPropertyInfo(name);
    var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; // Known attributes should match the casing specified in the property config.

    if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      var standardName = possibleStandardNames[lowerCasedName];

      if (standardName !== name) {
        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);

        warnedProperties$1[name] = true;
        return true;
      }
    } else if (!isReserved && name !== lowerCasedName) {
      // Unknown attributes should have lowercase casing since that's how they
      // will be cased anyway with server rendering.
      error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);

      warnedProperties$1[name] = true;
      return true;
    }

    if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      if (value) {
        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
      } else {
        error('Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
      }

      warnedProperties$1[name] = true;
      return true;
    } // Now that we've validated casing, do not validate
    // data types for reserved props


    if (isReserved) {
      return true;
    } // Warn when a known attribute is a bad type


    if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
      warnedProperties$1[name] = true;
      return false;
    } // Warn when passing the strings 'false' or 'true' into a boolean prop


    if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);

      warnedProperties$1[name] = true;
      return true;
    }

    return true;
  };
}

var warnUnknownProperties = function (type, props, eventRegistry) {
  {
    var unknownProps = [];

    for (var key in props) {
      var isValid = validateProperty$1(type, key, props[key], eventRegistry);

      if (!isValid) {
        unknownProps.push(key);
      }
    }

    var unknownPropString = unknownProps.map(function (prop) {
      return '`' + prop + '`';
    }).join(', ');

    if (unknownProps.length === 1) {
      error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
    } else if (unknownProps.length > 1) {
      error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type);
    }
  }
};

function validateProperties$2(type, props, eventRegistry) {
  if (isCustomComponent(type, props)) {
    return;
  }

  warnUnknownProperties(type, props, eventRegistry);
}

var IS_EVENT_HANDLE_NON_MANAGED_NODE = 1;
var IS_NON_DELEGATED = 1 << 1;
var IS_CAPTURE_PHASE = 1 << 2;
// set to LEGACY_FB_SUPPORT. LEGACY_FB_SUPPORT only gets set when
// we call willDeferLaterForLegacyFBSupport, thus not bailing out
// will result in endless cycles like an infinite loop.
// We also don't want to defer during event replaying.

var SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS = IS_EVENT_HANDLE_NON_MANAGED_NODE | IS_NON_DELEGATED | IS_CAPTURE_PHASE;

// This exists to avoid circular dependency between ReactDOMEventReplaying
// and DOMPluginEventSystem.
var currentReplayingEvent = null;
function setReplayingEvent(event) {
  {
    if (currentReplayingEvent !== null) {
      error('Expected currently replaying event to be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');
    }
  }

  currentReplayingEvent = event;
}
function resetReplayingEvent() {
  {
    if (currentReplayingEvent === null) {
      error('Expected currently replaying event to not be null. This error ' + 'is likely caused by a bug in React. Please file an issue.');
    }
  }

  currentReplayingEvent = null;
}
function isReplayingEvent(event) {
  return event === currentReplayingEvent;
}

/**
 * Gets the target node from a native browser event by accounting for
 * inconsistencies in browser DOM APIs.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {DOMEventTarget} Target node.
 */

function getEventTarget(nativeEvent) {
  // Fallback to nativeEvent.srcElement for IE9
  // https://github.com/facebook/react/issues/12506
  var target = nativeEvent.target || nativeEvent.srcElement || window; // Normalize SVG <use> element events #4963

  if (target.correspondingUseElement) {
    target = target.correspondingUseElement;
  } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  // @see http://www.quirksmode.org/js/events_properties.html


  return target.nodeType === TEXT_NODE ? target.parentNode : target;
}

var restoreImpl = null;
var restoreTarget = null;
var restoreQueue = null;

function restoreStateOfTarget(target) {
  // We perform this translation at the end of the event loop so that we
  // always receive the correct fiber here
  var internalInstance = getInstanceFromNode(target);

  if (!internalInstance) {
    // Unmounted
    return;
  }

  if (typeof restoreImpl !== 'function') {
    throw new Error('setRestoreImplementation() needs to be called to handle a target for controlled ' + 'events. This error is likely caused by a bug in React. Please file an issue.');
  }

  var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted.

  if (stateNode) {
    var _props = getFiberCurrentPropsFromNode(stateNode);

    restoreImpl(internalInstance.stateNode, internalInstance.type, _props);
  }
}

function setRestoreImplementation(impl) {
  restoreImpl = impl;
}
function enqueueStateRestore(target) {
  if (restoreTarget) {
    if (restoreQueue) {
      restoreQueue.push(target);
    } else {
      restoreQueue = [target];
    }
  } else {
    restoreTarget = target;
  }
}
function needsStateRestore() {
  return restoreTarget !== null || restoreQueue !== null;
}
function restoreStateIfNeeded() {
  if (!restoreTarget) {
    return;
  }

  var target = restoreTarget;
  var queuedTargets = restoreQueue;
  restoreTarget = null;
  restoreQueue = null;
  restoreStateOfTarget(target);

  if (queuedTargets) {
    for (var i = 0; i < queuedTargets.length; i++) {
      restoreStateOfTarget(queuedTargets[i]);
    }
  }
}

// the renderer. Such as when we're dispatching events or if third party
// libraries need to call batchedUpdates. Eventually, this API will go away when
// everything is batched by default. We'll then have a similar API to opt-out of
// scheduled work and instead do synchronous work.
// Defaults

var batchedUpdatesImpl = function (fn, bookkeeping) {
  return fn(bookkeeping);
};

var flushSyncImpl = function () {};

var isInsideEventHandler = false;

function finishEventHandler() {
  // Here we wait until all updates have propagated, which is important
  // when using controlled components within layers:
  // https://github.com/facebook/react/issues/1698
  // Then we restore state of any controlled component.
  var controlledComponentsHavePendingUpdates = needsStateRestore();

  if (controlledComponentsHavePendingUpdates) {
    // If a controlled event was fired, we may need to restore the state of
    // the DOM node back to the controlled value. This is necessary when React
    // bails out of the update without touching the DOM.
    // TODO: Restore state in the microtask, after the discrete updates flush,
    // instead of early flushing them here.
    flushSyncImpl();
    restoreStateIfNeeded();
  }
}

function batchedUpdates(fn, a, b) {
  if (isInsideEventHandler) {
    // If we are currently inside another batch, we need to wait until it
    // fully completes before restoring state.
    return fn(a, b);
  }

  isInsideEventHandler = true;

  try {
    return batchedUpdatesImpl(fn, a, b);
  } finally {
    isInsideEventHandler = false;
    finishEventHandler();
  }
} // TODO: Replace with flushSync
function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushSyncImpl) {
  batchedUpdatesImpl = _batchedUpdatesImpl;
  flushSyncImpl = _flushSyncImpl;
}

function isInteractive(tag) {
  return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
}

function shouldPreventMouseEvent(name, type, props) {
  switch (name) {
    case 'onClick':
    case 'onClickCapture':
    case 'onDoubleClick':
    case 'onDoubleClickCapture':
    case 'onMouseDown':
    case 'onMouseDownCapture':
    case 'onMouseMove':
    case 'onMouseMoveCapture':
    case 'onMouseUp':
    case 'onMouseUpCapture':
    case 'onMouseEnter':
      return !!(props.disabled && isInteractive(type));

    default:
      return false;
  }
}
/**
 * @param {object} inst The instance, which is the source of events.
 * @param {string} registrationName Name of listener (e.g. `onClick`).
 * @return {?function} The stored callback.
 */


function getListener(inst, registrationName) {
  var stateNode = inst.stateNode;

  if (stateNode === null) {
    // Work in progress (ex: onload events in incremental mode).
    return null;
  }

  var props = getFiberCurrentPropsFromNode(stateNode);

  if (props === null) {
    // Work in progress.
    return null;
  }

  var listener = props[registrationName];

  if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
    return null;
  }

  if (listener && typeof listener !== 'function') {
    throw new Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type.");
  }

  return listener;
}

var passiveBrowserEventsSupported = false; // Check if browser support events with passive listeners
// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support

if (canUseDOM) {
  try {
    var options = {}; // $FlowFixMe: Ignore Flow complaining about needing a value

    Object.defineProperty(options, 'passive', {
      get: function () {
        passiveBrowserEventsSupported = true;
      }
    });
    window.addEventListener('test', options, options);
    window.removeEventListener('test', options, options);
  } catch (e) {
    passiveBrowserEventsSupported = false;
  }
}

function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) {
  var funcArgs = Array.prototype.slice.call(arguments, 3);

  try {
    func.apply(context, funcArgs);
  } catch (error) {
    this.onError(error);
  }
}

var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;

{
  // In DEV mode, we swap out invokeGuardedCallback for a special version
  // that plays more nicely with the browser's DevTools. The idea is to preserve
  // "Pause on exceptions" behavior. Because React wraps all user-provided
  // functions in invokeGuardedCallback, and the production version of
  // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  // like caught exceptions, and the DevTools won't pause unless the developer
  // takes the extra step of enabling pause on caught exceptions. This is
  // unintuitive, though, because even though React has caught the error, from
  // the developer's perspective, the error is uncaught.
  //
  // To preserve the expected "Pause on exceptions" behavior, we don't use a
  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  // DOM node, and call the user-provided callback from inside an event handler
  // for that fake event. If the callback throws, the error is "captured" using
  // a global event handler. But because the error happens in a different
  // event loop context, it does not interrupt the normal program flow.
  // Effectively, this gives us try-catch behavior without actually using
  // try-catch. Neat!
  // Check that the browser supports the APIs we need to implement our special
  // DEV version of invokeGuardedCallback
  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
    var fakeNode = document.createElement('react');

    invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) {
      // If document doesn't exist we know for sure we will crash in this method
      // when we call document.createEvent(). However this can cause confusing
      // errors: https://github.com/facebook/create-react-app/issues/3482
      // So we preemptively throw with a better message instead.
      if (typeof document === 'undefined' || document === null) {
        throw new Error('The `document` global was defined when React was initialized, but is not ' + 'defined anymore. This can happen in a test environment if a component ' + 'schedules an update from an asynchronous callback, but the test has already ' + 'finished running. To solve this, you can either unmount the component at ' + 'the end of your test (and ensure that any asynchronous operations get ' + 'canceled in `componentWillUnmount`), or you can change the test itself ' + 'to be asynchronous.');
      }

      var evt = document.createEvent('Event');
      var didCall = false; // Keeps track of whether the user-provided callback threw an error. We
      // set this to true at the beginning, then set it to false right after
      // calling the function. If the function errors, `didError` will never be
      // set to false. This strategy works even if the browser is flaky and
      // fails to call our global error handler, because it doesn't rely on
      // the error event at all.

      var didError = true; // Keeps track of the value of window.event so that we can reset it
      // during the callback to let user code access window.event in the
      // browsers that support it.

      var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
      // dispatching: https://github.com/facebook/react/issues/13688

      var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');

      function restoreAfterDispatch() {
        // We immediately remove the callback from event listeners so that
        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
        // nested call would trigger the fake event handlers of any call higher
        // in the stack.
        fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
        // window.event assignment in both IE <= 10 as they throw an error
        // "Member not found" in strict mode, and in Firefox which does not
        // support window.event.

        if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
          window.event = windowEvent;
        }
      } // Create an event handler for our fake event. We will synchronously
      // dispatch our fake event using `dispatchEvent`. Inside the handler, we
      // call the user-provided callback.


      var funcArgs = Array.prototype.slice.call(arguments, 3);

      function callCallback() {
        didCall = true;
        restoreAfterDispatch();
        func.apply(context, funcArgs);
        didError = false;
      } // Create a global error event handler. We use this to capture the value
      // that was thrown. It's possible that this error handler will fire more
      // than once; for example, if non-React code also calls `dispatchEvent`
      // and a handler for that event throws. We should be resilient to most of
      // those cases. Even if our error event handler fires more than once, the
      // last error event is always used. If the callback actually does error,
      // we know that the last error event is the correct one, because it's not
      // possible for anything else to have happened in between our callback
      // erroring and the code that follows the `dispatchEvent` call below. If
      // the callback doesn't error, but the error event was fired, we know to
      // ignore it because `didError` will be false, as described above.


      var error; // Use this to track whether the error event is ever called.

      var didSetError = false;
      var isCrossOriginError = false;

      function handleWindowError(event) {
        error = event.error;
        didSetError = true;

        if (error === null && event.colno === 0 && event.lineno === 0) {
          isCrossOriginError = true;
        }

        if (event.defaultPrevented) {
          // Some other error handler has prevented default.
          // Browsers silence the error report if this happens.
          // We'll remember this to later decide whether to log it or not.
          if (error != null && typeof error === 'object') {
            try {
              error._suppressLogging = true;
            } catch (inner) {// Ignore.
            }
          }
        }
      } // Create a fake event type.


      var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers

      window.addEventListener('error', handleWindowError);
      fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
      // errors, it will trigger our global error handler.

      evt.initEvent(evtType, false, false);
      fakeNode.dispatchEvent(evt);

      if (windowEventDescriptor) {
        Object.defineProperty(window, 'event', windowEventDescriptor);
      }

      if (didCall && didError) {
        if (!didSetError) {
          // The callback errored, but the error event never fired.
          // eslint-disable-next-line react-internal/prod-error-codes
          error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
        } else if (isCrossOriginError) {
          // eslint-disable-next-line react-internal/prod-error-codes
          error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://reactjs.org/link/crossorigin-error for more information.');
        }

        this.onError(error);
      } // Remove our event listeners


      window.removeEventListener('error', handleWindowError);

      if (!didCall) {
        // Something went really wrong, and our event was not dispatched.
        // https://github.com/facebook/react/issues/16734
        // https://github.com/facebook/react/issues/16585
        // Fall back to the production implementation.
        restoreAfterDispatch();
        return invokeGuardedCallbackProd.apply(this, arguments);
      }
    };
  }
}

var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;

var hasError = false;
var caughtError = null; // Used by event system to capture/rethrow the first error.

var hasRethrowError = false;
var rethrowError = null;
var reporter = {
  onError: function (error) {
    hasError = true;
    caughtError = error;
  }
};
/**
 * Call a function while guarding against errors that happens within it.
 * Returns an error if it throws, otherwise null.
 *
 * In production, this is implemented using a try-catch. The reason we don't
 * use a try-catch directly is so that we can swap out a different
 * implementation in DEV mode.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */

function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  hasError = false;
  caughtError = null;
  invokeGuardedCallbackImpl$1.apply(reporter, arguments);
}
/**
 * Same as invokeGuardedCallback, but instead of returning an error, it stores
 * it in a global so it can be rethrown by `rethrowCaughtError` later.
 * TODO: See if caughtError and rethrowError can be unified.
 *
 * @param {String} name of the guard to use for logging or debugging
 * @param {Function} func The function to invoke
 * @param {*} context The context to use when calling the function
 * @param {...*} args Arguments for function
 */

function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  invokeGuardedCallback.apply(this, arguments);

  if (hasError) {
    var error = clearCaughtError();

    if (!hasRethrowError) {
      hasRethrowError = true;
      rethrowError = error;
    }
  }
}
/**
 * During execution of guarded functions we will capture the first error which
 * we will rethrow to be handled by the top level error handler.
 */

function rethrowCaughtError() {
  if (hasRethrowError) {
    var error = rethrowError;
    hasRethrowError = false;
    rethrowError = null;
    throw error;
  }
}
function hasCaughtError() {
  return hasError;
}
function clearCaughtError() {
  if (hasError) {
    var error = caughtError;
    hasError = false;
    caughtError = null;
    return error;
  } else {
    throw new Error('clearCaughtError was called but no error was captured. This error ' + 'is likely caused by a bug in React. Please file an issue.');
  }
}

/**
 * `ReactInstanceMap` maintains a mapping from a public facing stateful
 * instance (key) and the internal representation (value). This allows public
 * methods to accept the user facing instance as an argument and map them back
 * to internal methods.
 *
 * Note that this module is currently shared and assumed to be stateless.
 * If this becomes an actual Map, that will break.
 */
function get(key) {
  return key._reactInternals;
}
function has(key) {
  return key._reactInternals !== undefined;
}
function set(key, value) {
  key._reactInternals = value;
}

// Don't change these two values. They're used by React Dev Tools.
var NoFlags =
/*                      */
0;
var PerformedWork =
/*                */
1; // You can change the rest (and add more).

var Placement =
/*                    */
2;
var Update =
/*                       */
4;
var ChildDeletion =
/*                */
16;
var ContentReset =
/*                 */
32;
var Callback =
/*                     */
64;
var DidCapture =
/*                   */
128;
var ForceClientRender =
/*            */
256;
var Ref =
/*                          */
512;
var Snapshot =
/*                     */
1024;
var Passive =
/*                      */
2048;
var Hydrating =
/*                    */
4096;
var Visibility =
/*                   */
8192;
var StoreConsistency =
/*             */
16384;
var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; // Union of all commit flags (flags with the lifetime of a particular commit)

var HostEffectMask =
/*               */
32767; // These are not really side effects, but we still reuse this field.

var Incomplete =
/*                   */
32768;
var ShouldCapture =
/*                */
65536;
var ForceUpdateForLegacySuspense =
/* */
131072;
var Forked =
/*                       */
1048576; // Static tags describe aspects of a fiber that are not specific to a render,
// e.g. a fiber uses a passive effect (even if there are no updates on this particular render).
// This enables us to defer more work in the unmount case,
// since we can defer traversing the tree during layout to look for Passive effects,
// and instead rely on the static flag as a signal that there may be cleanup work.

var RefStatic =
/*                    */
2097152;
var LayoutStatic =
/*                 */
4194304;
var PassiveStatic =
/*                */
8388608; // These flags allow us to traverse to fibers that have effects on mount
// without traversing the entire tree after every commit for
// double invoking

var MountLayoutDev =
/*               */
16777216;
var MountPassiveDev =
/*              */
33554432; // Groups of flags that are used in the commit phase to skip over trees that
// don't contain effects, by checking subtreeFlags.

var BeforeMutationMask = // TODO: Remove Update flag from before mutation phase by re-landing Visibility
// flag logic (see #20043)
Update | Snapshot | ( 0);
var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility;
var LayoutMask = Update | Callback | Ref | Visibility; // TODO: Split into PassiveMountMask and PassiveUnmountMask

var PassiveMask = Passive | ChildDeletion; // Union of tags that don't get reset on clones.
// This allows certain concepts to persist without recalculating them,
// e.g. whether a subtree contains passive effects or portals.

var StaticMask = LayoutStatic | PassiveStatic | RefStatic;

var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
function getNearestMountedFiber(fiber) {
  var node = fiber;
  var nearestMounted = fiber;

  if (!fiber.alternate) {
    // If there is no alternate, this might be a new tree that isn't inserted
    // yet. If it is, then it will have a pending insertion effect on it.
    var nextNode = node;

    do {
      node = nextNode;

      if ((node.flags & (Placement | Hydrating)) !== NoFlags) {
        // This is an insertion or in-progress hydration. The nearest possible
        // mounted fiber is the parent but we need to continue to figure out
        // if that one is still mounted.
        nearestMounted = node.return;
      }

      nextNode = node.return;
    } while (nextNode);
  } else {
    while (node.return) {
      node = node.return;
    }
  }

  if (node.tag === HostRoot) {
    // TODO: Check if this was a nested HostRoot when used with
    // renderContainerIntoSubtree.
    return nearestMounted;
  } // If we didn't hit the root, that means that we're in an disconnected tree
  // that has been unmounted.


  return null;
}
function getSuspenseInstanceFromFiber(fiber) {
  if (fiber.tag === SuspenseComponent) {
    var suspenseState = fiber.memoizedState;

    if (suspenseState === null) {
      var current = fiber.alternate;

      if (current !== null) {
        suspenseState = current.memoizedState;
      }
    }

    if (suspenseState !== null) {
      return suspenseState.dehydrated;
    }
  }

  return null;
}
function getContainerFromFiber(fiber) {
  return fiber.tag === HostRoot ? fiber.stateNode.containerInfo : null;
}
function isFiberMounted(fiber) {
  return getNearestMountedFiber(fiber) === fiber;
}
function isMounted(component) {
  {
    var owner = ReactCurrentOwner.current;

    if (owner !== null && owner.tag === ClassComponent) {
      var ownerFiber = owner;
      var instance = ownerFiber.stateNode;

      if (!instance._warnedAboutRefsInRender) {
        error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromFiber(ownerFiber) || 'A component');
      }

      instance._warnedAboutRefsInRender = true;
    }
  }

  var fiber = get(component);

  if (!fiber) {
    return false;
  }

  return getNearestMountedFiber(fiber) === fiber;
}

function assertIsMounted(fiber) {
  if (getNearestMountedFiber(fiber) !== fiber) {
    throw new Error('Unable to find node on an unmounted component.');
  }
}

function findCurrentFiberUsingSlowPath(fiber) {
  var alternate = fiber.alternate;

  if (!alternate) {
    // If there is no alternate, then we only need to check if it is mounted.
    var nearestMounted = getNearestMountedFiber(fiber);

    if (nearestMounted === null) {
      throw new Error('Unable to find node on an unmounted component.');
    }

    if (nearestMounted !== fiber) {
      return null;
    }

    return fiber;
  } // If we have two possible branches, we'll walk backwards up to the root
  // to see what path the root points to. On the way we may hit one of the
  // special cases and we'll deal with them.


  var a = fiber;
  var b = alternate;

  while (true) {
    var parentA = a.return;

    if (parentA === null) {
      // We're at the root.
      break;
    }

    var parentB = parentA.alternate;

    if (parentB === null) {
      // There is no alternate. This is an unusual case. Currently, it only
      // happens when a Suspense component is hidden. An extra fragment fiber
      // is inserted in between the Suspense fiber and its children. Skip
      // over this extra fragment fiber and proceed to the next parent.
      var nextParent = parentA.return;

      if (nextParent !== null) {
        a = b = nextParent;
        continue;
      } // If there's no parent, we're at the root.


      break;
    } // If both copies of the parent fiber point to the same child, we can
    // assume that the child is current. This happens when we bailout on low
    // priority: the bailed out fiber's child reuses the current child.


    if (parentA.child === parentB.child) {
      var child = parentA.child;

      while (child) {
        if (child === a) {
          // We've determined that A is the current branch.
          assertIsMounted(parentA);
          return fiber;
        }

        if (child === b) {
          // We've determined that B is the current branch.
          assertIsMounted(parentA);
          return alternate;
        }

        child = child.sibling;
      } // We should never have an alternate for any mounting node. So the only
      // way this could possibly happen is if this was unmounted, if at all.


      throw new Error('Unable to find node on an unmounted component.');
    }

    if (a.return !== b.return) {
      // The return pointer of A and the return pointer of B point to different
      // fibers. We assume that return pointers never criss-cross, so A must
      // belong to the child set of A.return, and B must belong to the child
      // set of B.return.
      a = parentA;
      b = parentB;
    } else {
      // The return pointers point to the same fiber. We'll have to use the
      // default, slow path: scan the child sets of each parent alternate to see
      // which child belongs to which set.
      //
      // Search parent A's child set
      var didFindChild = false;
      var _child = parentA.child;

      while (_child) {
        if (_child === a) {
          didFindChild = true;
          a = parentA;
          b = parentB;
          break;
        }

        if (_child === b) {
          didFindChild = true;
          b = parentA;
          a = parentB;
          break;
        }

        _child = _child.sibling;
      }

      if (!didFindChild) {
        // Search parent B's child set
        _child = parentB.child;

        while (_child) {
          if (_child === a) {
            didFindChild = true;
            a = parentB;
            b = parentA;
            break;
          }

          if (_child === b) {
            didFindChild = true;
            b = parentB;
            a = parentA;
            break;
          }

          _child = _child.sibling;
        }

        if (!didFindChild) {
          throw new Error('Child was not found in either parent set. This indicates a bug ' + 'in React related to the return pointer. Please file an issue.');
        }
      }
    }

    if (a.alternate !== b) {
      throw new Error("Return fibers should always be each others' alternates. " + 'This error is likely caused by a bug in React. Please file an issue.');
    }
  } // If the root is not a host container, we're in a disconnected tree. I.e.
  // unmounted.


  if (a.tag !== HostRoot) {
    throw new Error('Unable to find node on an unmounted component.');
  }

  if (a.stateNode.current === a) {
    // We've determined that A is the current branch.
    return fiber;
  } // Otherwise B has to be current branch.


  return alternate;
}
function findCurrentHostFiber(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);
  return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null;
}

function findCurrentHostFiberImpl(node) {
  // Next we'll drill down this component to find the first HostComponent/Text.
  if (node.tag === HostComponent || node.tag === HostText) {
    return node;
  }

  var child = node.child;

  while (child !== null) {
    var match = findCurrentHostFiberImpl(child);

    if (match !== null) {
      return match;
    }

    child = child.sibling;
  }

  return null;
}

function findCurrentHostFiberWithNoPortals(parent) {
  var currentParent = findCurrentFiberUsingSlowPath(parent);
  return currentParent !== null ? findCurrentHostFiberWithNoPortalsImpl(currentParent) : null;
}

function findCurrentHostFiberWithNoPortalsImpl(node) {
  // Next we'll drill down this component to find the first HostComponent/Text.
  if (node.tag === HostComponent || node.tag === HostText) {
    return node;
  }

  var child = node.child;

  while (child !== null) {
    if (child.tag !== HostPortal) {
      var match = findCurrentHostFiberWithNoPortalsImpl(child);

      if (match !== null) {
        return match;
      }
    }

    child = child.sibling;
  }

  return null;
}

// This module only exists as an ESM wrapper around the external CommonJS
var scheduleCallback = Scheduler.unstable_scheduleCallback;
var cancelCallback = Scheduler.unstable_cancelCallback;
var shouldYield = Scheduler.unstable_shouldYield;
var requestPaint = Scheduler.unstable_requestPaint;
var now = Scheduler.unstable_now;
var getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
var ImmediatePriority = Scheduler.unstable_ImmediatePriority;
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
var NormalPriority = Scheduler.unstable_NormalPriority;
var LowPriority = Scheduler.unstable_LowPriority;
var IdlePriority = Scheduler.unstable_IdlePriority;
// this doesn't actually exist on the scheduler, but it *does*
// on scheduler/unstable_mock, which we'll need for internal testing
var unstable_yieldValue = Scheduler.unstable_yieldValue;
var unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue;

var rendererID = null;
var injectedHook = null;
var injectedProfilingHooks = null;
var hasLoggedError = false;
var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
function injectInternals(internals) {
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
    // No DevTools
    return false;
  }

  var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;

  if (hook.isDisabled) {
    // This isn't a real property on the hook, but it can be set to opt out
    // of DevTools integration and associated warnings and logs.
    // https://github.com/facebook/react/issues/3877
    return true;
  }

  if (!hook.supportsFiber) {
    {
      error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://reactjs.org/link/react-devtools');
    } // DevTools exists, even though it doesn't support Fiber.


    return true;
  }

  try {
    if (enableSchedulingProfiler) {
      // Conditionally inject these hooks only if Timeline profiler is supported by this build.
      // This gives DevTools a way to feature detect that isn't tied to version number
      // (since profiling and timeline are controlled by different feature flags).
      internals = assign({}, internals, {
        getLaneLabelMap: getLaneLabelMap,
        injectProfilingHooks: injectProfilingHooks
      });
    }

    rendererID = hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.

    injectedHook = hook;
  } catch (err) {
    // Catch all errors because it is unsafe to throw during initialization.
    {
      error('React instrumentation encountered an error: %s.', err);
    }
  }

  if (hook.checkDCE) {
    // This is the real DevTools.
    return true;
  } else {
    // This is likely a hook installed by Fast Refresh runtime.
    return false;
  }
}
function onScheduleRoot(root, children) {
  {
    if (injectedHook && typeof injectedHook.onScheduleFiberRoot === 'function') {
      try {
        injectedHook.onScheduleFiberRoot(rendererID, root, children);
      } catch (err) {
        if ( !hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function onCommitRoot(root, eventPriority) {
  if (injectedHook && typeof injectedHook.onCommitFiberRoot === 'function') {
    try {
      var didError = (root.current.flags & DidCapture) === DidCapture;

      if (enableProfilerTimer) {
        var schedulerPriority;

        switch (eventPriority) {
          case DiscreteEventPriority:
            schedulerPriority = ImmediatePriority;
            break;

          case ContinuousEventPriority:
            schedulerPriority = UserBlockingPriority;
            break;

          case DefaultEventPriority:
            schedulerPriority = NormalPriority;
            break;

          case IdleEventPriority:
            schedulerPriority = IdlePriority;
            break;

          default:
            schedulerPriority = NormalPriority;
            break;
        }

        injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError);
      } else {
        injectedHook.onCommitFiberRoot(rendererID, root, undefined, didError);
      }
    } catch (err) {
      {
        if (!hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function onPostCommitRoot(root) {
  if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === 'function') {
    try {
      injectedHook.onPostCommitFiberRoot(rendererID, root);
    } catch (err) {
      {
        if (!hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function onCommitUnmount(fiber) {
  if (injectedHook && typeof injectedHook.onCommitFiberUnmount === 'function') {
    try {
      injectedHook.onCommitFiberUnmount(rendererID, fiber);
    } catch (err) {
      {
        if (!hasLoggedError) {
          hasLoggedError = true;

          error('React instrumentation encountered an error: %s', err);
        }
      }
    }
  }
}
function setIsStrictModeForDevtools(newIsStrictMode) {
  {
    if (typeof unstable_yieldValue === 'function') {
      // We're in a test because Scheduler.unstable_yieldValue only exists
      // in SchedulerMock. To reduce the noise in strict mode tests,
      // suppress warnings and disable scheduler yielding during the double render
      unstable_setDisableYieldValue(newIsStrictMode);
      setSuppressWarning(newIsStrictMode);
    }

    if (injectedHook && typeof injectedHook.setStrictMode === 'function') {
      try {
        injectedHook.setStrictMode(rendererID, newIsStrictMode);
      } catch (err) {
        {
          if (!hasLoggedError) {
            hasLoggedError = true;

            error('React instrumentation encountered an error: %s', err);
          }
        }
      }
    }
  }
} // Profiler API hooks

function injectProfilingHooks(profilingHooks) {
  injectedProfilingHooks = profilingHooks;
}

function getLaneLabelMap() {
  {
    var map = new Map();
    var lane = 1;

    for (var index = 0; index < TotalLanes; index++) {
      var label = getLabelForLane(lane);
      map.set(lane, label);
      lane *= 2;
    }

    return map;
  }
}

function markCommitStarted(lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStarted === 'function') {
      injectedProfilingHooks.markCommitStarted(lanes);
    }
  }
}
function markCommitStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markCommitStopped === 'function') {
      injectedProfilingHooks.markCommitStopped();
    }
  }
}
function markComponentRenderStarted(fiber) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStarted === 'function') {
      injectedProfilingHooks.markComponentRenderStarted(fiber);
    }
  }
}
function markComponentRenderStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentRenderStopped === 'function') {
      injectedProfilingHooks.markComponentRenderStopped();
    }
  }
}
function markComponentPassiveEffectMountStarted(fiber) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted === 'function') {
      injectedProfilingHooks.markComponentPassiveEffectMountStarted(fiber);
    }
  }
}
function markComponentPassiveEffectMountStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped === 'function') {
      injectedProfilingHooks.markComponentPassiveEffectMountStopped();
    }
  }
}
function markComponentPassiveEffectUnmountStarted(fiber) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted === 'function') {
      injectedProfilingHooks.markComponentPassiveEffectUnmountStarted(fiber);
    }
  }
}
function markComponentPassiveEffectUnmountStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped === 'function') {
      injectedProfilingHooks.markComponentPassiveEffectUnmountStopped();
    }
  }
}
function markComponentLayoutEffectMountStarted(fiber) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted === 'function') {
      injectedProfilingHooks.markComponentLayoutEffectMountStarted(fiber);
    }
  }
}
function markComponentLayoutEffectMountStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped === 'function') {
      injectedProfilingHooks.markComponentLayoutEffectMountStopped();
    }
  }
}
function markComponentLayoutEffectUnmountStarted(fiber) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted === 'function') {
      injectedProfilingHooks.markComponentLayoutEffectUnmountStarted(fiber);
    }
  }
}
function markComponentLayoutEffectUnmountStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped === 'function') {
      injectedProfilingHooks.markComponentLayoutEffectUnmountStopped();
    }
  }
}
function markComponentErrored(fiber, thrownValue, lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentErrored === 'function') {
      injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
    }
  }
}
function markComponentSuspended(fiber, wakeable, lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markComponentSuspended === 'function') {
      injectedProfilingHooks.markComponentSuspended(fiber, wakeable, lanes);
    }
  }
}
function markLayoutEffectsStarted(lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStarted === 'function') {
      injectedProfilingHooks.markLayoutEffectsStarted(lanes);
    }
  }
}
function markLayoutEffectsStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markLayoutEffectsStopped === 'function') {
      injectedProfilingHooks.markLayoutEffectsStopped();
    }
  }
}
function markPassiveEffectsStarted(lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStarted === 'function') {
      injectedProfilingHooks.markPassiveEffectsStarted(lanes);
    }
  }
}
function markPassiveEffectsStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markPassiveEffectsStopped === 'function') {
      injectedProfilingHooks.markPassiveEffectsStopped();
    }
  }
}
function markRenderStarted(lanes) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStarted === 'function') {
      injectedProfilingHooks.markRenderStarted(lanes);
    }
  }
}
function markRenderYielded() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderYielded === 'function') {
      injectedProfilingHooks.markRenderYielded();
    }
  }
}
function markRenderStopped() {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderStopped === 'function') {
      injectedProfilingHooks.markRenderStopped();
    }
  }
}
function markRenderScheduled(lane) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markRenderScheduled === 'function') {
      injectedProfilingHooks.markRenderScheduled(lane);
    }
  }
}
function markForceUpdateScheduled(fiber, lane) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markForceUpdateScheduled === 'function') {
      injectedProfilingHooks.markForceUpdateScheduled(fiber, lane);
    }
  }
}
function markStateUpdateScheduled(fiber, lane) {
  {
    if (injectedProfilingHooks !== null && typeof injectedProfilingHooks.markStateUpdateScheduled === 'function') {
      injectedProfilingHooks.markStateUpdateScheduled(fiber, lane);
    }
  }
}

var NoMode =
/*                         */
0; // TODO: Remove ConcurrentMode by reading from the root tag instead

var ConcurrentMode =
/*                 */
1;
var ProfileMode =
/*                    */
2;
var StrictLegacyMode =
/*               */
8;
var StrictEffectsMode =
/*              */
16;

// TODO: This is pretty well supported by browsers. Maybe we can drop it.
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; // Count leading zeros.
// Based on:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32

var log = Math.log;
var LN2 = Math.LN2;

function clz32Fallback(x) {
  var asUint = x >>> 0;

  if (asUint === 0) {
    return 32;
  }

  return 31 - (log(asUint) / LN2 | 0) | 0;
}

// If those values are changed that package should be rebuilt and redeployed.

var TotalLanes = 31;
var NoLanes =
/*                        */
0;
var NoLane =
/*                          */
0;
var SyncLane =
/*                        */
1;
var InputContinuousHydrationLane =
/*    */
2;
var InputContinuousLane =
/*             */
4;
var DefaultHydrationLane =
/*            */
8;
var DefaultLane =
/*                     */
16;
var TransitionHydrationLane =
/*                */
32;
var TransitionLanes =
/*                       */
4194240;
var TransitionLane1 =
/*                        */
64;
var TransitionLane2 =
/*                        */
128;
var TransitionLane3 =
/*                        */
256;
var TransitionLane4 =
/*                        */
512;
var TransitionLane5 =
/*                        */
1024;
var TransitionLane6 =
/*                        */
2048;
var TransitionLane7 =
/*                        */
4096;
var TransitionLane8 =
/*                        */
8192;
var TransitionLane9 =
/*                        */
16384;
var TransitionLane10 =
/*                       */
32768;
var TransitionLane11 =
/*                       */
65536;
var TransitionLane12 =
/*                       */
131072;
var TransitionLane13 =
/*                       */
262144;
var TransitionLane14 =
/*                       */
524288;
var TransitionLane15 =
/*                       */
1048576;
var TransitionLane16 =
/*                       */
2097152;
var RetryLanes =
/*                            */
130023424;
var RetryLane1 =
/*                             */
4194304;
var RetryLane2 =
/*                             */
8388608;
var RetryLane3 =
/*                             */
16777216;
var RetryLane4 =
/*                             */
33554432;
var RetryLane5 =
/*                             */
67108864;
var SomeRetryLane = RetryLane1;
var SelectiveHydrationLane =
/*          */
134217728;
var NonIdleLanes =
/*                          */
268435455;
var IdleHydrationLane =
/*               */
268435456;
var IdleLane =
/*                        */
536870912;
var OffscreenLane =
/*                   */
1073741824; // This function is used for the experimental timeline (react-devtools-timeline)
// It should be kept in sync with the Lanes values above.

function getLabelForLane(lane) {
  {
    if (lane & SyncLane) {
      return 'Sync';
    }

    if (lane & InputContinuousHydrationLane) {
      return 'InputContinuousHydration';
    }

    if (lane & InputContinuousLane) {
      return 'InputContinuous';
    }

    if (lane & DefaultHydrationLane) {
      return 'DefaultHydration';
    }

    if (lane & DefaultLane) {
      return 'Default';
    }

    if (lane & TransitionHydrationLane) {
      return 'TransitionHydration';
    }

    if (lane & TransitionLanes) {
      return 'Transition';
    }

    if (lane & RetryLanes) {
      return 'Retry';
    }

    if (lane & SelectiveHydrationLane) {
      return 'SelectiveHydration';
    }

    if (lane & IdleHydrationLane) {
      return 'IdleHydration';
    }

    if (lane & IdleLane) {
      return 'Idle';
    }

    if (lane & OffscreenLane) {
      return 'Offscreen';
    }
  }
}
var NoTimestamp = -1;
var nextTransitionLane = TransitionLane1;
var nextRetryLane = RetryLane1;

function getHighestPriorityLanes(lanes) {
  switch (getHighestPriorityLane(lanes)) {
    case SyncLane:
      return SyncLane;

    case InputContinuousHydrationLane:
      return InputContinuousHydrationLane;

    case InputContinuousLane:
      return InputContinuousLane;

    case DefaultHydrationLane:
      return DefaultHydrationLane;

    case DefaultLane:
      return DefaultLane;

    case TransitionHydrationLane:
      return TransitionHydrationLane;

    case TransitionLane1:
    case TransitionLane2:
    case TransitionLane3:
    case TransitionLane4:
    case TransitionLane5:
    case TransitionLane6:
    case TransitionLane7:
    case TransitionLane8:
    case TransitionLane9:
    case TransitionLane10:
    case TransitionLane11:
    case TransitionLane12:
    case TransitionLane13:
    case TransitionLane14:
    case TransitionLane15:
    case TransitionLane16:
      return lanes & TransitionLanes;

    case RetryLane1:
    case RetryLane2:
    case RetryLane3:
    case RetryLane4:
    case RetryLane5:
      return lanes & RetryLanes;

    case SelectiveHydrationLane:
      return SelectiveHydrationLane;

    case IdleHydrationLane:
      return IdleHydrationLane;

    case IdleLane:
      return IdleLane;

    case OffscreenLane:
      return OffscreenLane;

    default:
      {
        error('Should have found matching lanes. This is a bug in React.');
      } // This shouldn't be reachable, but as a fallback, return the entire bitmask.


      return lanes;
  }
}

function getNextLanes(root, wipLanes) {
  // Early bailout if there's no pending work left.
  var pendingLanes = root.pendingLanes;

  if (pendingLanes === NoLanes) {
    return NoLanes;
  }

  var nextLanes = NoLanes;
  var suspendedLanes = root.suspendedLanes;
  var pingedLanes = root.pingedLanes; // Do not work on any idle work until all the non-idle work has finished,
  // even if the work is suspended.

  var nonIdlePendingLanes = pendingLanes & NonIdleLanes;

  if (nonIdlePendingLanes !== NoLanes) {
    var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes;

    if (nonIdleUnblockedLanes !== NoLanes) {
      nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes);
    } else {
      var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes;

      if (nonIdlePingedLanes !== NoLanes) {
        nextLanes = getHighestPriorityLanes(nonIdlePingedLanes);
      }
    }
  } else {
    // The only remaining work is Idle.
    var unblockedLanes = pendingLanes & ~suspendedLanes;

    if (unblockedLanes !== NoLanes) {
      nextLanes = getHighestPriorityLanes(unblockedLanes);
    } else {
      if (pingedLanes !== NoLanes) {
        nextLanes = getHighestPriorityLanes(pingedLanes);
      }
    }
  }

  if (nextLanes === NoLanes) {
    // This should only be reachable if we're suspended
    // TODO: Consider warning in this path if a fallback timer is not scheduled.
    return NoLanes;
  } // If we're already in the middle of a render, switching lanes will interrupt
  // it and we'll lose our progress. We should only do this if the new lanes are
  // higher priority.


  if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't
  // bother waiting until the root is complete.
  (wipLanes & suspendedLanes) === NoLanes) {
    var nextLane = getHighestPriorityLane(nextLanes);
    var wipLane = getHighestPriorityLane(wipLanes);

    if ( // Tests whether the next lane is equal or lower priority than the wip
    // one. This works because the bits decrease in priority as you go left.
    nextLane >= wipLane || // Default priority updates should not interrupt transition updates. The
    // only difference between default updates and transition updates is that
    // default updates do not support refresh transitions.
    nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes) {
      // Keep working on the existing in-progress tree. Do not interrupt.
      return wipLanes;
    }
  }

  if ((nextLanes & InputContinuousLane) !== NoLanes) {
    // When updates are sync by default, we entangle continuous priority updates
    // and default updates, so they render in the same batch. The only reason
    // they use separate lanes is because continuous updates should interrupt
    // transitions, but default updates should not.
    nextLanes |= pendingLanes & DefaultLane;
  } // Check for entangled lanes and add them to the batch.
  //
  // A lane is said to be entangled with another when it's not allowed to render
  // in a batch that does not also include the other lane. Typically we do this
  // when multiple updates have the same source, and we only want to respond to
  // the most recent event from that source.
  //
  // Note that we apply entanglements *after* checking for partial work above.
  // This means that if a lane is entangled during an interleaved event while
  // it's already rendering, we won't interrupt it. This is intentional, since
  // entanglement is usually "best effort": we'll try our best to render the
  // lanes in the same batch, but it's not worth throwing out partially
  // completed work in order to do it.
  // TODO: Reconsider this. The counter-argument is that the partial work
  // represents an intermediate state, which we don't want to show to the user.
  // And by spending extra time finishing it, we're increasing the amount of
  // time it takes to show the final state, which is what they are actually
  // waiting for.
  //
  // For those exceptions where entanglement is semantically important, like
  // useMutableSource, we should ensure that there is no partial work at the
  // time we apply the entanglement.


  var entangledLanes = root.entangledLanes;

  if (entangledLanes !== NoLanes) {
    var entanglements = root.entanglements;
    var lanes = nextLanes & entangledLanes;

    while (lanes > 0) {
      var index = pickArbitraryLaneIndex(lanes);
      var lane = 1 << index;
      nextLanes |= entanglements[index];
      lanes &= ~lane;
    }
  }

  return nextLanes;
}
function getMostRecentEventTime(root, lanes) {
  var eventTimes = root.eventTimes;
  var mostRecentEventTime = NoTimestamp;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    var eventTime = eventTimes[index];

    if (eventTime > mostRecentEventTime) {
      mostRecentEventTime = eventTime;
    }

    lanes &= ~lane;
  }

  return mostRecentEventTime;
}

function computeExpirationTime(lane, currentTime) {
  switch (lane) {
    case SyncLane:
    case InputContinuousHydrationLane:
    case InputContinuousLane:
      // User interactions should expire slightly more quickly.
      //
      // NOTE: This is set to the corresponding constant as in Scheduler.js.
      // When we made it larger, a product metric in www regressed, suggesting
      // there's a user interaction that's being starved by a series of
      // synchronous updates. If that theory is correct, the proper solution is
      // to fix the starvation. However, this scenario supports the idea that
      // expiration times are an important safeguard when starvation
      // does happen.
      return currentTime + 250;

    case DefaultHydrationLane:
    case DefaultLane:
    case TransitionHydrationLane:
    case TransitionLane1:
    case TransitionLane2:
    case TransitionLane3:
    case TransitionLane4:
    case TransitionLane5:
    case TransitionLane6:
    case TransitionLane7:
    case TransitionLane8:
    case TransitionLane9:
    case TransitionLane10:
    case TransitionLane11:
    case TransitionLane12:
    case TransitionLane13:
    case TransitionLane14:
    case TransitionLane15:
    case TransitionLane16:
      return currentTime + 5000;

    case RetryLane1:
    case RetryLane2:
    case RetryLane3:
    case RetryLane4:
    case RetryLane5:
      // TODO: Retries should be allowed to expire if they are CPU bound for
      // too long, but when I made this change it caused a spike in browser
      // crashes. There must be some other underlying bug; not super urgent but
      // ideally should figure out why and fix it. Unfortunately we don't have
      // a repro for the crashes, only detected via production metrics.
      return NoTimestamp;

    case SelectiveHydrationLane:
    case IdleHydrationLane:
    case IdleLane:
    case OffscreenLane:
      // Anything idle priority or lower should never expire.
      return NoTimestamp;

    default:
      {
        error('Should have found matching lanes. This is a bug in React.');
      }

      return NoTimestamp;
  }
}

function markStarvedLanesAsExpired(root, currentTime) {
  // TODO: This gets called every time we yield. We can optimize by storing
  // the earliest expiration time on the root. Then use that to quickly bail out
  // of this function.
  var pendingLanes = root.pendingLanes;
  var suspendedLanes = root.suspendedLanes;
  var pingedLanes = root.pingedLanes;
  var expirationTimes = root.expirationTimes; // Iterate through the pending lanes and check if we've reached their
  // expiration time. If so, we'll assume the update is being starved and mark
  // it as expired to force it to finish.

  var lanes = pendingLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    var expirationTime = expirationTimes[index];

    if (expirationTime === NoTimestamp) {
      // Found a pending lane with no expiration time. If it's not suspended, or
      // if it's pinged, assume it's CPU-bound. Compute a new expiration time
      // using the current time.
      if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) {
        // Assumes timestamps are monotonically increasing.
        expirationTimes[index] = computeExpirationTime(lane, currentTime);
      }
    } else if (expirationTime <= currentTime) {
      // This lane expired
      root.expiredLanes |= lane;
    }

    lanes &= ~lane;
  }
} // This returns the highest priority pending lanes regardless of whether they
// are suspended.

function getHighestPriorityPendingLanes(root) {
  return getHighestPriorityLanes(root.pendingLanes);
}
function getLanesToRetrySynchronouslyOnError(root) {
  var everythingButOffscreen = root.pendingLanes & ~OffscreenLane;

  if (everythingButOffscreen !== NoLanes) {
    return everythingButOffscreen;
  }

  if (everythingButOffscreen & OffscreenLane) {
    return OffscreenLane;
  }

  return NoLanes;
}
function includesSyncLane(lanes) {
  return (lanes & SyncLane) !== NoLanes;
}
function includesNonIdleWork(lanes) {
  return (lanes & NonIdleLanes) !== NoLanes;
}
function includesOnlyRetries(lanes) {
  return (lanes & RetryLanes) === lanes;
}
function includesOnlyNonUrgentLanes(lanes) {
  var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane;
  return (lanes & UrgentLanes) === NoLanes;
}
function includesOnlyTransitions(lanes) {
  return (lanes & TransitionLanes) === lanes;
}
function includesBlockingLane(root, lanes) {

  var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane;
  return (lanes & SyncDefaultLanes) !== NoLanes;
}
function includesExpiredLane(root, lanes) {
  // This is a separate check from includesBlockingLane because a lane can
  // expire after a render has already started.
  return (lanes & root.expiredLanes) !== NoLanes;
}
function isTransitionLane(lane) {
  return (lane & TransitionLanes) !== NoLanes;
}
function claimNextTransitionLane() {
  // Cycle through the lanes, assigning each new transition to the next lane.
  // In most cases, this means every transition gets its own lane, until we
  // run out of lanes and cycle back to the beginning.
  var lane = nextTransitionLane;
  nextTransitionLane <<= 1;

  if ((nextTransitionLane & TransitionLanes) === NoLanes) {
    nextTransitionLane = TransitionLane1;
  }

  return lane;
}
function claimNextRetryLane() {
  var lane = nextRetryLane;
  nextRetryLane <<= 1;

  if ((nextRetryLane & RetryLanes) === NoLanes) {
    nextRetryLane = RetryLane1;
  }

  return lane;
}
function getHighestPriorityLane(lanes) {
  return lanes & -lanes;
}
function pickArbitraryLane(lanes) {
  // This wrapper function gets inlined. Only exists so to communicate that it
  // doesn't matter which bit is selected; you can pick any bit without
  // affecting the algorithms where its used. Here I'm using
  // getHighestPriorityLane because it requires the fewest operations.
  return getHighestPriorityLane(lanes);
}

function pickArbitraryLaneIndex(lanes) {
  return 31 - clz32(lanes);
}

function laneToIndex(lane) {
  return pickArbitraryLaneIndex(lane);
}

function includesSomeLane(a, b) {
  return (a & b) !== NoLanes;
}
function isSubsetOfLanes(set, subset) {
  return (set & subset) === subset;
}
function mergeLanes(a, b) {
  return a | b;
}
function removeLanes(set, subset) {
  return set & ~subset;
}
function intersectLanes(a, b) {
  return a & b;
} // Seems redundant, but it changes the type from a single lane (used for
// updates) to a group of lanes (used for flushing work).

function laneToLanes(lane) {
  return lane;
}
function higherPriorityLane(a, b) {
  // This works because the bit ranges decrease in priority as you go left.
  return a !== NoLane && a < b ? a : b;
}
function createLaneMap(initial) {
  // Intentionally pushing one by one.
  // https://v8.dev/blog/elements-kinds#avoid-creating-holes
  var laneMap = [];

  for (var i = 0; i < TotalLanes; i++) {
    laneMap.push(initial);
  }

  return laneMap;
}
function markRootUpdated(root, updateLane, eventTime) {
  root.pendingLanes |= updateLane; // If there are any suspended transitions, it's possible this new update
  // could unblock them. Clear the suspended lanes so that we can try rendering
  // them again.
  //
  // TODO: We really only need to unsuspend only lanes that are in the
  // `subtreeLanes` of the updated fiber, or the update lanes of the return
  // path. This would exclude suspended updates in an unrelated sibling tree,
  // since there's no way for this update to unblock it.
  //
  // We don't do this if the incoming update is idle, because we never process
  // idle updates until after all the regular updates have finished; there's no
  // way it could unblock a transition.

  if (updateLane !== IdleLane) {
    root.suspendedLanes = NoLanes;
    root.pingedLanes = NoLanes;
  }

  var eventTimes = root.eventTimes;
  var index = laneToIndex(updateLane); // We can always overwrite an existing timestamp because we prefer the most
  // recent event, and we assume time is monotonically increasing.

  eventTimes[index] = eventTime;
}
function markRootSuspended(root, suspendedLanes) {
  root.suspendedLanes |= suspendedLanes;
  root.pingedLanes &= ~suspendedLanes; // The suspended lanes are no longer CPU-bound. Clear their expiration times.

  var expirationTimes = root.expirationTimes;
  var lanes = suspendedLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    expirationTimes[index] = NoTimestamp;
    lanes &= ~lane;
  }
}
function markRootPinged(root, pingedLanes, eventTime) {
  root.pingedLanes |= root.suspendedLanes & pingedLanes;
}
function markRootFinished(root, remainingLanes) {
  var noLongerPendingLanes = root.pendingLanes & ~remainingLanes;
  root.pendingLanes = remainingLanes; // Let's try everything again

  root.suspendedLanes = NoLanes;
  root.pingedLanes = NoLanes;
  root.expiredLanes &= remainingLanes;
  root.mutableReadLanes &= remainingLanes;
  root.entangledLanes &= remainingLanes;
  var entanglements = root.entanglements;
  var eventTimes = root.eventTimes;
  var expirationTimes = root.expirationTimes; // Clear the lanes that no longer have pending work

  var lanes = noLongerPendingLanes;

  while (lanes > 0) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;
    entanglements[index] = NoLanes;
    eventTimes[index] = NoTimestamp;
    expirationTimes[index] = NoTimestamp;
    lanes &= ~lane;
  }
}
function markRootEntangled(root, entangledLanes) {
  // In addition to entangling each of the given lanes with each other, we also
  // have to consider _transitive_ entanglements. For each lane that is already
  // entangled with *any* of the given lanes, that lane is now transitively
  // entangled with *all* the given lanes.
  //
  // Translated: If C is entangled with A, then entangling A with B also
  // entangles C with B.
  //
  // If this is hard to grasp, it might help to intentionally break this
  // function and look at the tests that fail in ReactTransition-test.js. Try
  // commenting out one of the conditions below.
  var rootEntangledLanes = root.entangledLanes |= entangledLanes;
  var entanglements = root.entanglements;
  var lanes = rootEntangledLanes;

  while (lanes) {
    var index = pickArbitraryLaneIndex(lanes);
    var lane = 1 << index;

    if ( // Is this one of the newly entangled lanes?
    lane & entangledLanes | // Is this lane transitively entangled with the newly entangled lanes?
    entanglements[index] & entangledLanes) {
      entanglements[index] |= entangledLanes;
    }

    lanes &= ~lane;
  }
}
function getBumpedLaneForHydration(root, renderLanes) {
  var renderLane = getHighestPriorityLane(renderLanes);
  var lane;

  switch (renderLane) {
    case InputContinuousLane:
      lane = InputContinuousHydrationLane;
      break;

    case DefaultLane:
      lane = DefaultHydrationLane;
      break;

    case TransitionLane1:
    case TransitionLane2:
    case TransitionLane3:
    case TransitionLane4:
    case TransitionLane5:
    case TransitionLane6:
    case TransitionLane7:
    case TransitionLane8:
    case TransitionLane9:
    case TransitionLane10:
    case TransitionLane11:
    case TransitionLane12:
    case TransitionLane13:
    case TransitionLane14:
    case TransitionLane15:
    case TransitionLane16:
    case RetryLane1:
    case RetryLane2:
    case RetryLane3:
    case RetryLane4:
    case RetryLane5:
      lane = TransitionHydrationLane;
      break;

    case IdleLane:
      lane = IdleHydrationLane;
      break;

    default:
      // Everything else is already either a hydration lane, or shouldn't
      // be retried at a hydration lane.
      lane = NoLane;
      break;
  } // Check if the lane we chose is suspended. If so, that indicates that we
  // already attempted and failed to hydrate at that level. Also check if we're
  // already rendering that lane, which is rare but could happen.


  if ((lane & (root.suspendedLanes | renderLanes)) !== NoLane) {
    // Give up trying to hydrate and fall back to client render.
    return NoLane;
  }

  return lane;
}
function addFiberToLanesMap(root, fiber, lanes) {

  if (!isDevToolsPresent) {
    return;
  }

  var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;

  while (lanes > 0) {
    var index = laneToIndex(lanes);
    var lane = 1 << index;
    var updaters = pendingUpdatersLaneMap[index];
    updaters.add(fiber);
    lanes &= ~lane;
  }
}
function movePendingFibersToMemoized(root, lanes) {

  if (!isDevToolsPresent) {
    return;
  }

  var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap;
  var memoizedUpdaters = root.memoizedUpdaters;

  while (lanes > 0) {
    var index = laneToIndex(lanes);
    var lane = 1 << index;
    var updaters = pendingUpdatersLaneMap[index];

    if (updaters.size > 0) {
      updaters.forEach(function (fiber) {
        var alternate = fiber.alternate;

        if (alternate === null || !memoizedUpdaters.has(alternate)) {
          memoizedUpdaters.add(fiber);
        }
      });
      updaters.clear();
    }

    lanes &= ~lane;
  }
}
function getTransitionsForLanes(root, lanes) {
  {
    return null;
  }
}

var DiscreteEventPriority = SyncLane;
var ContinuousEventPriority = InputContinuousLane;
var DefaultEventPriority = DefaultLane;
var IdleEventPriority = IdleLane;
var currentUpdatePriority = NoLane;
function getCurrentUpdatePriority() {
  return currentUpdatePriority;
}
function setCurrentUpdatePriority(newPriority) {
  currentUpdatePriority = newPriority;
}
function runWithPriority(priority, fn) {
  var previousPriority = currentUpdatePriority;

  try {
    currentUpdatePriority = priority;
    return fn();
  } finally {
    currentUpdatePriority = previousPriority;
  }
}
function higherEventPriority(a, b) {
  return a !== 0 && a < b ? a : b;
}
function lowerEventPriority(a, b) {
  return a === 0 || a > b ? a : b;
}
function isHigherEventPriority(a, b) {
  return a !== 0 && a < b;
}
function lanesToEventPriority(lanes) {
  var lane = getHighestPriorityLane(lanes);

  if (!isHigherEventPriority(DiscreteEventPriority, lane)) {
    return DiscreteEventPriority;
  }

  if (!isHigherEventPriority(ContinuousEventPriority, lane)) {
    return ContinuousEventPriority;
  }

  if (includesNonIdleWork(lane)) {
    return DefaultEventPriority;
  }

  return IdleEventPriority;
}

// This is imported by the event replaying implementation in React DOM. It's
// in a separate file to break a circular dependency between the renderer and
// the reconciler.
function isRootDehydrated(root) {
  var currentState = root.current.memoizedState;
  return currentState.isDehydrated;
}

var _attemptSynchronousHydration;

function setAttemptSynchronousHydration(fn) {
  _attemptSynchronousHydration = fn;
}
function attemptSynchronousHydration(fiber) {
  _attemptSynchronousHydration(fiber);
}
var attemptContinuousHydration;
function setAttemptContinuousHydration(fn) {
  attemptContinuousHydration = fn;
}
var attemptHydrationAtCurrentPriority;
function setAttemptHydrationAtCurrentPriority(fn) {
  attemptHydrationAtCurrentPriority = fn;
}
var getCurrentUpdatePriority$1;
function setGetCurrentUpdatePriority(fn) {
  getCurrentUpdatePriority$1 = fn;
}
var attemptHydrationAtPriority;
function setAttemptHydrationAtPriority(fn) {
  attemptHydrationAtPriority = fn;
} // TODO: Upgrade this definition once we're on a newer version of Flow that
// has this definition built-in.

var hasScheduledReplayAttempt = false; // The queue of discrete events to be replayed.

var queuedDiscreteEvents = []; // Indicates if any continuous event targets are non-null for early bailout.
// if the last target was dehydrated.

var queuedFocus = null;
var queuedDrag = null;
var queuedMouse = null; // For pointer events there can be one latest event per pointerId.

var queuedPointers = new Map();
var queuedPointerCaptures = new Map(); // We could consider replaying selectionchange and touchmoves too.

var queuedExplicitHydrationTargets = [];
var discreteReplayableEvents = ['mousedown', 'mouseup', 'touchcancel', 'touchend', 'touchstart', 'auxclick', 'dblclick', 'pointercancel', 'pointerdown', 'pointerup', 'dragend', 'dragstart', 'drop', 'compositionend', 'compositionstart', 'keydown', 'keypress', 'keyup', 'input', 'textInput', // Intentionally camelCase
'copy', 'cut', 'paste', 'click', 'change', 'contextmenu', 'reset', 'submit'];
function isDiscreteEventThatRequiresHydration(eventType) {
  return discreteReplayableEvents.indexOf(eventType) > -1;
}

function createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  return {
    blockedOn: blockedOn,
    domEventName: domEventName,
    eventSystemFlags: eventSystemFlags,
    nativeEvent: nativeEvent,
    targetContainers: [targetContainer]
  };
}

function clearIfContinuousEvent(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'focusin':
    case 'focusout':
      queuedFocus = null;
      break;

    case 'dragenter':
    case 'dragleave':
      queuedDrag = null;
      break;

    case 'mouseover':
    case 'mouseout':
      queuedMouse = null;
      break;

    case 'pointerover':
    case 'pointerout':
      {
        var pointerId = nativeEvent.pointerId;
        queuedPointers.delete(pointerId);
        break;
      }

    case 'gotpointercapture':
    case 'lostpointercapture':
      {
        var _pointerId = nativeEvent.pointerId;
        queuedPointerCaptures.delete(_pointerId);
        break;
      }
  }
}

function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  if (existingQueuedEvent === null || existingQueuedEvent.nativeEvent !== nativeEvent) {
    var queuedEvent = createQueuedReplayableEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent);

    if (blockedOn !== null) {
      var _fiber2 = getInstanceFromNode(blockedOn);

      if (_fiber2 !== null) {
        // Attempt to increase the priority of this target.
        attemptContinuousHydration(_fiber2);
      }
    }

    return queuedEvent;
  } // If we have already queued this exact event, then it's because
  // the different event systems have different DOM event listeners.
  // We can accumulate the flags, and the targetContainers, and
  // store a single event to be replayed.


  existingQueuedEvent.eventSystemFlags |= eventSystemFlags;
  var targetContainers = existingQueuedEvent.targetContainers;

  if (targetContainer !== null && targetContainers.indexOf(targetContainer) === -1) {
    targetContainers.push(targetContainer);
  }

  return existingQueuedEvent;
}

function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  // These set relatedTarget to null because the replayed event will be treated as if we
  // moved from outside the window (no target) onto the target once it hydrates.
  // Instead of mutating we could clone the event.
  switch (domEventName) {
    case 'focusin':
      {
        var focusEvent = nativeEvent;
        queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, focusEvent);
        return true;
      }

    case 'dragenter':
      {
        var dragEvent = nativeEvent;
        queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, dragEvent);
        return true;
      }

    case 'mouseover':
      {
        var mouseEvent = nativeEvent;
        queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, mouseEvent);
        return true;
      }

    case 'pointerover':
      {
        var pointerEvent = nativeEvent;
        var pointerId = pointerEvent.pointerId;
        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, pointerEvent));
        return true;
      }

    case 'gotpointercapture':
      {
        var _pointerEvent = nativeEvent;
        var _pointerId2 = _pointerEvent.pointerId;
        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, _pointerEvent));
        return true;
      }
  }

  return false;
} // Check if this target is unblocked. Returns true if it's unblocked.

function attemptExplicitHydrationTarget(queuedTarget) {
  // TODO: This function shares a lot of logic with findInstanceBlockingEvent.
  // Try to unify them. It's a bit tricky since it would require two return
  // values.
  var targetInst = getClosestInstanceFromNode(queuedTarget.target);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted !== null) {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // We're blocked on hydrating this boundary.
          // Increase its priority.
          queuedTarget.blockedOn = instance;
          attemptHydrationAtPriority(queuedTarget.priority, function () {
            attemptHydrationAtCurrentPriority(nearestMounted);
          });
          return;
        }
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (isRootDehydrated(root)) {
          queuedTarget.blockedOn = getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of
          // a root other than sync.

          return;
        }
      }
    }
  }

  queuedTarget.blockedOn = null;
}

function queueExplicitHydrationTarget(target) {
  // TODO: This will read the priority if it's dispatched by the React
  // event system but not native events. Should read window.event.type, like
  // we do for updates (getCurrentEventPriority).
  var updatePriority = getCurrentUpdatePriority$1();
  var queuedTarget = {
    blockedOn: null,
    target: target,
    priority: updatePriority
  };
  var i = 0;

  for (; i < queuedExplicitHydrationTargets.length; i++) {
    // Stop once we hit the first target with lower priority than
    if (!isHigherEventPriority(updatePriority, queuedExplicitHydrationTargets[i].priority)) {
      break;
    }
  }

  queuedExplicitHydrationTargets.splice(i, 0, queuedTarget);

  if (i === 0) {
    attemptExplicitHydrationTarget(queuedTarget);
  }
}

function attemptReplayContinuousQueuedEvent(queuedEvent) {
  if (queuedEvent.blockedOn !== null) {
    return false;
  }

  var targetContainers = queuedEvent.targetContainers;

  while (targetContainers.length > 0) {
    var targetContainer = targetContainers[0];
    var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.domEventName, queuedEvent.eventSystemFlags, targetContainer, queuedEvent.nativeEvent);

    if (nextBlockedOn === null) {
      {
        var nativeEvent = queuedEvent.nativeEvent;
        var nativeEventClone = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
        setReplayingEvent(nativeEventClone);
        nativeEvent.target.dispatchEvent(nativeEventClone);
        resetReplayingEvent();
      }
    } else {
      // We're still blocked. Try again later.
      var _fiber3 = getInstanceFromNode(nextBlockedOn);

      if (_fiber3 !== null) {
        attemptContinuousHydration(_fiber3);
      }

      queuedEvent.blockedOn = nextBlockedOn;
      return false;
    } // This target container was successfully dispatched. Try the next.


    targetContainers.shift();
  }

  return true;
}

function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) {
  if (attemptReplayContinuousQueuedEvent(queuedEvent)) {
    map.delete(key);
  }
}

function replayUnblockedEvents() {
  hasScheduledReplayAttempt = false;


  if (queuedFocus !== null && attemptReplayContinuousQueuedEvent(queuedFocus)) {
    queuedFocus = null;
  }

  if (queuedDrag !== null && attemptReplayContinuousQueuedEvent(queuedDrag)) {
    queuedDrag = null;
  }

  if (queuedMouse !== null && attemptReplayContinuousQueuedEvent(queuedMouse)) {
    queuedMouse = null;
  }

  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);
  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);
}

function scheduleCallbackIfUnblocked(queuedEvent, unblocked) {
  if (queuedEvent.blockedOn === unblocked) {
    queuedEvent.blockedOn = null;

    if (!hasScheduledReplayAttempt) {
      hasScheduledReplayAttempt = true; // Schedule a callback to attempt replaying as many events as are
      // now unblocked. This first might not actually be unblocked yet.
      // We could check it early to avoid scheduling an unnecessary callback.

      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);
    }
  }
}

function retryIfBlockedOn(unblocked) {
  // Mark anything that was blocked on this as no longer blocked
  // and eligible for a replay.
  if (queuedDiscreteEvents.length > 0) {
    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's
    // worth it because we expect very few discrete events to queue up and once
    // we are actually fully unblocked it will be fast to replay them.

    for (var i = 1; i < queuedDiscreteEvents.length; i++) {
      var queuedEvent = queuedDiscreteEvents[i];

      if (queuedEvent.blockedOn === unblocked) {
        queuedEvent.blockedOn = null;
      }
    }
  }

  if (queuedFocus !== null) {
    scheduleCallbackIfUnblocked(queuedFocus, unblocked);
  }

  if (queuedDrag !== null) {
    scheduleCallbackIfUnblocked(queuedDrag, unblocked);
  }

  if (queuedMouse !== null) {
    scheduleCallbackIfUnblocked(queuedMouse, unblocked);
  }

  var unblock = function (queuedEvent) {
    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);
  };

  queuedPointers.forEach(unblock);
  queuedPointerCaptures.forEach(unblock);

  for (var _i = 0; _i < queuedExplicitHydrationTargets.length; _i++) {
    var queuedTarget = queuedExplicitHydrationTargets[_i];

    if (queuedTarget.blockedOn === unblocked) {
      queuedTarget.blockedOn = null;
    }
  }

  while (queuedExplicitHydrationTargets.length > 0) {
    var nextExplicitTarget = queuedExplicitHydrationTargets[0];

    if (nextExplicitTarget.blockedOn !== null) {
      // We're still blocked.
      break;
    } else {
      attemptExplicitHydrationTarget(nextExplicitTarget);

      if (nextExplicitTarget.blockedOn === null) {
        // We're unblocked.
        queuedExplicitHydrationTargets.shift();
      }
    }
  }
}

var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; // TODO: can we stop exporting these?

var _enabled = true; // This is exported in FB builds for use by legacy FB layer infra.
// We'd like to remove this but it's not clear if this is safe.

function setEnabled(enabled) {
  _enabled = !!enabled;
}
function isEnabled() {
  return _enabled;
}
function createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags) {
  var eventPriority = getEventPriority(domEventName);
  var listenerWrapper;

  switch (eventPriority) {
    case DiscreteEventPriority:
      listenerWrapper = dispatchDiscreteEvent;
      break;

    case ContinuousEventPriority:
      listenerWrapper = dispatchContinuousEvent;
      break;

    case DefaultEventPriority:
    default:
      listenerWrapper = dispatchEvent;
      break;
  }

  return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
}

function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) {
  var previousPriority = getCurrentUpdatePriority();
  var prevTransition = ReactCurrentBatchConfig.transition;
  ReactCurrentBatchConfig.transition = null;

  try {
    setCurrentUpdatePriority(DiscreteEventPriority);
    dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
  } finally {
    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig.transition = prevTransition;
  }
}

function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) {
  var previousPriority = getCurrentUpdatePriority();
  var prevTransition = ReactCurrentBatchConfig.transition;
  ReactCurrentBatchConfig.transition = null;

  try {
    setCurrentUpdatePriority(ContinuousEventPriority);
    dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent);
  } finally {
    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig.transition = prevTransition;
  }
}

function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  if (!_enabled) {
    return;
  }

  {
    dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent);
  }
}

function dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  var blockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);

  if (blockedOn === null) {
    dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);
    clearIfContinuousEvent(domEventName, nativeEvent);
    return;
  }

  if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) {
    nativeEvent.stopPropagation();
    return;
  } // We need to clear only if we didn't queue because
  // queueing is accumulative.


  clearIfContinuousEvent(domEventName, nativeEvent);

  if (eventSystemFlags & IS_CAPTURE_PHASE && isDiscreteEventThatRequiresHydration(domEventName)) {
    while (blockedOn !== null) {
      var fiber = getInstanceFromNode(blockedOn);

      if (fiber !== null) {
        attemptSynchronousHydration(fiber);
      }

      var nextBlockedOn = findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent);

      if (nextBlockedOn === null) {
        dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer);
      }

      if (nextBlockedOn === blockedOn) {
        break;
      }

      blockedOn = nextBlockedOn;
    }

    if (blockedOn !== null) {
      nativeEvent.stopPropagation();
    }

    return;
  } // This is not replayable so we'll invoke it but without a target,
  // in case the event system needs to trace it.


  dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer);
}

var return_targetInst = null; // Returns a SuspenseInstance or Container if it's blocked.
// The return_targetInst field above is conceptually part of the return value.

function findInstanceBlockingEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) {
  // TODO: Warn if _enabled is false.
  return_targetInst = null;
  var nativeEventTarget = getEventTarget(nativeEvent);
  var targetInst = getClosestInstanceFromNode(nativeEventTarget);

  if (targetInst !== null) {
    var nearestMounted = getNearestMountedFiber(targetInst);

    if (nearestMounted === null) {
      // This tree has been unmounted already. Dispatch without a target.
      targetInst = null;
    } else {
      var tag = nearestMounted.tag;

      if (tag === SuspenseComponent) {
        var instance = getSuspenseInstanceFromFiber(nearestMounted);

        if (instance !== null) {
          // Queue the event to be replayed later. Abort dispatching since we
          // don't want this event dispatched twice through the event system.
          // TODO: If this is the first discrete event in the queue. Schedule an increased
          // priority for this boundary.
          return instance;
        } // This shouldn't happen, something went wrong but to avoid blocking
        // the whole system, dispatch the event without a target.
        // TODO: Warn.


        targetInst = null;
      } else if (tag === HostRoot) {
        var root = nearestMounted.stateNode;

        if (isRootDehydrated(root)) {
          // If this happens during a replay something went wrong and it might block
          // the whole system.
          return getContainerFromFiber(nearestMounted);
        }

        targetInst = null;
      } else if (nearestMounted !== targetInst) {
        // If we get an event (ex: img onload) before committing that
        // component's mount, ignore it for now (that is, treat it as if it was an
        // event on a non-React tree). We might also consider queueing events and
        // dispatching them after the mount.
        targetInst = null;
      }
    }
  }

  return_targetInst = targetInst; // We're not blocked on anything.

  return null;
}
function getEventPriority(domEventName) {
  switch (domEventName) {
    // Used by SimpleEventPlugin:
    case 'cancel':
    case 'click':
    case 'close':
    case 'contextmenu':
    case 'copy':
    case 'cut':
    case 'auxclick':
    case 'dblclick':
    case 'dragend':
    case 'dragstart':
    case 'drop':
    case 'focusin':
    case 'focusout':
    case 'input':
    case 'invalid':
    case 'keydown':
    case 'keypress':
    case 'keyup':
    case 'mousedown':
    case 'mouseup':
    case 'paste':
    case 'pause':
    case 'play':
    case 'pointercancel':
    case 'pointerdown':
    case 'pointerup':
    case 'ratechange':
    case 'reset':
    case 'resize':
    case 'seeked':
    case 'submit':
    case 'touchcancel':
    case 'touchend':
    case 'touchstart':
    case 'volumechange': // Used by polyfills:
    // eslint-disable-next-line no-fallthrough

    case 'change':
    case 'selectionchange':
    case 'textInput':
    case 'compositionstart':
    case 'compositionend':
    case 'compositionupdate': // Only enableCreateEventHandleAPI:
    // eslint-disable-next-line no-fallthrough

    case 'beforeblur':
    case 'afterblur': // Not used by React but could be by user code:
    // eslint-disable-next-line no-fallthrough

    case 'beforeinput':
    case 'blur':
    case 'fullscreenchange':
    case 'focus':
    case 'hashchange':
    case 'popstate':
    case 'select':
    case 'selectstart':
      return DiscreteEventPriority;

    case 'drag':
    case 'dragenter':
    case 'dragexit':
    case 'dragleave':
    case 'dragover':
    case 'mousemove':
    case 'mouseout':
    case 'mouseover':
    case 'pointermove':
    case 'pointerout':
    case 'pointerover':
    case 'scroll':
    case 'toggle':
    case 'touchmove':
    case 'wheel': // Not used by React but could be by user code:
    // eslint-disable-next-line no-fallthrough

    case 'mouseenter':
    case 'mouseleave':
    case 'pointerenter':
    case 'pointerleave':
      return ContinuousEventPriority;

    case 'message':
      {
        // We might be in the Scheduler callback.
        // Eventually this mechanism will be replaced by a check
        // of the current priority on the native scheduler.
        var schedulerPriority = getCurrentPriorityLevel();

        switch (schedulerPriority) {
          case ImmediatePriority:
            return DiscreteEventPriority;

          case UserBlockingPriority:
            return ContinuousEventPriority;

          case NormalPriority:
          case LowPriority:
            // TODO: Handle LowSchedulerPriority, somehow. Maybe the same lane as hydration.
            return DefaultEventPriority;

          case IdlePriority:
            return IdleEventPriority;

          default:
            return DefaultEventPriority;
        }
      }

    default:
      return DefaultEventPriority;
  }
}

function addEventBubbleListener(target, eventType, listener) {
  target.addEventListener(eventType, listener, false);
  return listener;
}
function addEventCaptureListener(target, eventType, listener) {
  target.addEventListener(eventType, listener, true);
  return listener;
}
function addEventCaptureListenerWithPassiveFlag(target, eventType, listener, passive) {
  target.addEventListener(eventType, listener, {
    capture: true,
    passive: passive
  });
  return listener;
}
function addEventBubbleListenerWithPassiveFlag(target, eventType, listener, passive) {
  target.addEventListener(eventType, listener, {
    passive: passive
  });
  return listener;
}

/**
 * These variables store information about text content of a target node,
 * allowing comparison of content before and after a given event.
 *
 * Identify the node where selection currently begins, then observe
 * both its text content and its current position in the DOM. Since the
 * browser may natively replace the target node during composition, we can
 * use its position to find its replacement.
 *
 *
 */
var root = null;
var startText = null;
var fallbackText = null;
function initialize(nativeEventTarget) {
  root = nativeEventTarget;
  startText = getText();
  return true;
}
function reset() {
  root = null;
  startText = null;
  fallbackText = null;
}
function getData() {
  if (fallbackText) {
    return fallbackText;
  }

  var start;
  var startValue = startText;
  var startLength = startValue.length;
  var end;
  var endValue = getText();
  var endLength = endValue.length;

  for (start = 0; start < startLength; start++) {
    if (startValue[start] !== endValue[start]) {
      break;
    }
  }

  var minEnd = startLength - start;

  for (end = 1; end <= minEnd; end++) {
    if (startValue[startLength - end] !== endValue[endLength - end]) {
      break;
    }
  }

  var sliceTail = end > 1 ? 1 - end : undefined;
  fallbackText = endValue.slice(start, sliceTail);
  return fallbackText;
}
function getText() {
  if ('value' in root) {
    return root.value;
  }

  return root.textContent;
}

/**
 * `charCode` represents the actual "character code" and is safe to use with
 * `String.fromCharCode`. As such, only keys that correspond to printable
 * characters produce a valid `charCode`, the only exception to this is Enter.
 * The Tab-key is considered non-printable and does not have a `charCode`,
 * presumably because it does not produce a tab-character in browsers.
 *
 * @param {object} nativeEvent Native browser event.
 * @return {number} Normalized `charCode` property.
 */
function getEventCharCode(nativeEvent) {
  var charCode;
  var keyCode = nativeEvent.keyCode;

  if ('charCode' in nativeEvent) {
    charCode = nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.

    if (charCode === 0 && keyCode === 13) {
      charCode = 13;
    }
  } else {
    // IE8 does not implement `charCode`, but `keyCode` has the correct value.
    charCode = keyCode;
  } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  // report Enter as charCode 10 when ctrl is pressed.


  if (charCode === 10) {
    charCode = 13;
  } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  // Must not discard the (non-)printable Enter-key.


  if (charCode >= 32 || charCode === 13) {
    return charCode;
  }

  return 0;
}

function functionThatReturnsTrue() {
  return true;
}

function functionThatReturnsFalse() {
  return false;
} // This is intentionally a factory so that we have different returned constructors.
// If we had a single constructor, it would be megamorphic and engines would deopt.


function createSyntheticEvent(Interface) {
  /**
   * Synthetic events are dispatched by event plugins, typically in response to a
   * top-level event delegation handler.
   *
   * These systems should generally use pooling to reduce the frequency of garbage
   * collection. The system should check `isPersistent` to determine whether the
   * event should be released into the pool after being dispatched. Users that
   * need a persisted event should invoke `persist`.
   *
   * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
   * normalizing browser quirks. Subclasses do not necessarily have to implement a
   * DOM interface; custom application-specific events can also subclass this.
   */
  function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
    this._reactName = reactName;
    this._targetInst = targetInst;
    this.type = reactEventType;
    this.nativeEvent = nativeEvent;
    this.target = nativeEventTarget;
    this.currentTarget = null;

    for (var _propName in Interface) {
      if (!Interface.hasOwnProperty(_propName)) {
        continue;
      }

      var normalize = Interface[_propName];

      if (normalize) {
        this[_propName] = normalize(nativeEvent);
      } else {
        this[_propName] = nativeEvent[_propName];
      }
    }

    var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;

    if (defaultPrevented) {
      this.isDefaultPrevented = functionThatReturnsTrue;
    } else {
      this.isDefaultPrevented = functionThatReturnsFalse;
    }

    this.isPropagationStopped = functionThatReturnsFalse;
    return this;
  }

  assign(SyntheticBaseEvent.prototype, {
    preventDefault: function () {
      this.defaultPrevented = true;
      var event = this.nativeEvent;

      if (!event) {
        return;
      }

      if (event.preventDefault) {
        event.preventDefault(); // $FlowFixMe - flow is not aware of `unknown` in IE
      } else if (typeof event.returnValue !== 'unknown') {
        event.returnValue = false;
      }

      this.isDefaultPrevented = functionThatReturnsTrue;
    },
    stopPropagation: function () {
      var event = this.nativeEvent;

      if (!event) {
        return;
      }

      if (event.stopPropagation) {
        event.stopPropagation(); // $FlowFixMe - flow is not aware of `unknown` in IE
      } else if (typeof event.cancelBubble !== 'unknown') {
        // The ChangeEventPlugin registers a "propertychange" event for
        // IE. This event does not support bubbling or cancelling, and
        // any references to cancelBubble throw "Member not found".  A
        // typeof check of "unknown" circumvents this issue (and is also
        // IE specific).
        event.cancelBubble = true;
      }

      this.isPropagationStopped = functionThatReturnsTrue;
    },

    /**
     * We release all dispatched `SyntheticEvent`s after each event loop, adding
     * them back into the pool. This allows a way to hold onto a reference that
     * won't be added back into the pool.
     */
    persist: function () {// Modern event system doesn't use pooling.
    },

    /**
     * Checks if this event should be released back into the pool.
     *
     * @return {boolean} True if this should not be released, false otherwise.
     */
    isPersistent: functionThatReturnsTrue
  });
  return SyntheticBaseEvent;
}
/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var EventInterface = {
  eventPhase: 0,
  bubbles: 0,
  cancelable: 0,
  timeStamp: function (event) {
    return event.timeStamp || Date.now();
  },
  defaultPrevented: 0,
  isTrusted: 0
};
var SyntheticEvent = createSyntheticEvent(EventInterface);

var UIEventInterface = assign({}, EventInterface, {
  view: 0,
  detail: 0
});

var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
var lastMovementX;
var lastMovementY;
var lastMouseEvent;

function updateMouseMovementPolyfillState(event) {
  if (event !== lastMouseEvent) {
    if (lastMouseEvent && event.type === 'mousemove') {
      lastMovementX = event.screenX - lastMouseEvent.screenX;
      lastMovementY = event.screenY - lastMouseEvent.screenY;
    } else {
      lastMovementX = 0;
      lastMovementY = 0;
    }

    lastMouseEvent = event;
  }
}
/**
 * @interface MouseEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var MouseEventInterface = assign({}, UIEventInterface, {
  screenX: 0,
  screenY: 0,
  clientX: 0,
  clientY: 0,
  pageX: 0,
  pageY: 0,
  ctrlKey: 0,
  shiftKey: 0,
  altKey: 0,
  metaKey: 0,
  getModifierState: getEventModifierState,
  button: 0,
  buttons: 0,
  relatedTarget: function (event) {
    if (event.relatedTarget === undefined) return event.fromElement === event.srcElement ? event.toElement : event.fromElement;
    return event.relatedTarget;
  },
  movementX: function (event) {
    if ('movementX' in event) {
      return event.movementX;
    }

    updateMouseMovementPolyfillState(event);
    return lastMovementX;
  },
  movementY: function (event) {
    if ('movementY' in event) {
      return event.movementY;
    } // Don't need to call updateMouseMovementPolyfillState() here
    // because it's guaranteed to have already run when movementX
    // was copied.


    return lastMovementY;
  }
});

var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
/**
 * @interface DragEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var DragEventInterface = assign({}, MouseEventInterface, {
  dataTransfer: 0
});

var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
/**
 * @interface FocusEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var FocusEventInterface = assign({}, UIEventInterface, {
  relatedTarget: 0
});

var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
 * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
 */

var AnimationEventInterface = assign({}, EventInterface, {
  animationName: 0,
  elapsedTime: 0,
  pseudoElement: 0
});

var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/clipboard-apis/
 */

var ClipboardEventInterface = assign({}, EventInterface, {
  clipboardData: function (event) {
    return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  }
});

var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
 */

var CompositionEventInterface = assign({}, EventInterface, {
  data: 0
});

var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
 *      /#events-inputevents
 */
// Happens to share the same list for now.

var SyntheticInputEvent = SyntheticCompositionEvent;
/**
 * Normalization of deprecated HTML5 `key` values
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */

var normalizeKey = {
  Esc: 'Escape',
  Spacebar: ' ',
  Left: 'ArrowLeft',
  Up: 'ArrowUp',
  Right: 'ArrowRight',
  Down: 'ArrowDown',
  Del: 'Delete',
  Win: 'OS',
  Menu: 'ContextMenu',
  Apps: 'ContextMenu',
  Scroll: 'ScrollLock',
  MozPrintableKey: 'Unidentified'
};
/**
 * Translation from legacy `keyCode` to HTML5 `key`
 * Only special keys supported, all others depend on keyboard layout or browser
 * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
 */

var translateToKey = {
  '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'
};
/**
 * @param {object} nativeEvent Native browser event.
 * @return {string} Normalized `key` property.
 */

function getEventKey(nativeEvent) {
  if (nativeEvent.key) {
    // Normalize inconsistent values reported by browsers due to
    // implementations of a working draft specification.
    // FireFox implements `key` but returns `MozPrintableKey` for all
    // printable characters (normalized to `Unidentified`), ignore it.
    var key = normalizeKey[nativeEvent.key] || nativeEvent.key;

    if (key !== 'Unidentified') {
      return key;
    }
  } // Browser does not implement `key`, polyfill as much of it as we can.


  if (nativeEvent.type === 'keypress') {
    var charCode = getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can
    // thus be captured by `keypress`, no other non-printable key should.

    return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  }

  if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
    // While user keyboard layout determines the actual meaning of each
    // `keyCode` value, almost all function keys have a universal value.
    return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  }

  return '';
}
/**
 * Translation from modifier key to the associated property in the event.
 * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
 */


var modifierKeyToProp = {
  Alt: 'altKey',
  Control: 'ctrlKey',
  Meta: 'metaKey',
  Shift: 'shiftKey'
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.

function modifierStateGetter(keyArg) {
  var syntheticEvent = this;
  var nativeEvent = syntheticEvent.nativeEvent;

  if (nativeEvent.getModifierState) {
    return nativeEvent.getModifierState(keyArg);
  }

  var keyProp = modifierKeyToProp[keyArg];
  return keyProp ? !!nativeEvent[keyProp] : false;
}

function getEventModifierState(nativeEvent) {
  return modifierStateGetter;
}
/**
 * @interface KeyboardEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */


var KeyboardEventInterface = assign({}, UIEventInterface, {
  key: getEventKey,
  code: 0,
  location: 0,
  ctrlKey: 0,
  shiftKey: 0,
  altKey: 0,
  metaKey: 0,
  repeat: 0,
  locale: 0,
  getModifierState: getEventModifierState,
  // Legacy Interface
  charCode: function (event) {
    // `charCode` is the result of a KeyPress event and represents the value of
    // the actual printable character.
    // KeyPress is deprecated, but its replacement is not yet final and not
    // implemented in any major browser. Only KeyPress has charCode.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }

    return 0;
  },
  keyCode: function (event) {
    // `keyCode` is the result of a KeyDown/Up event and represents the value of
    // physical keyboard key.
    // The actual meaning of the value depends on the users' keyboard layout
    // which cannot be detected. Assuming that it is a US keyboard layout
    // provides a surprisingly accurate mapping for US and European users.
    // Due to this, it is left to the user to implement at this time.
    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }

    return 0;
  },
  which: function (event) {
    // `which` is an alias for either `keyCode` or `charCode` depending on the
    // type of the event.
    if (event.type === 'keypress') {
      return getEventCharCode(event);
    }

    if (event.type === 'keydown' || event.type === 'keyup') {
      return event.keyCode;
    }

    return 0;
  }
});

var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
/**
 * @interface PointerEvent
 * @see http://www.w3.org/TR/pointerevents/
 */

var PointerEventInterface = assign({}, MouseEventInterface, {
  pointerId: 0,
  width: 0,
  height: 0,
  pressure: 0,
  tangentialPressure: 0,
  tiltX: 0,
  tiltY: 0,
  twist: 0,
  pointerType: 0,
  isPrimary: 0
});

var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
/**
 * @interface TouchEvent
 * @see http://www.w3.org/TR/touch-events/
 */

var TouchEventInterface = assign({}, UIEventInterface, {
  touches: 0,
  targetTouches: 0,
  changedTouches: 0,
  altKey: 0,
  metaKey: 0,
  ctrlKey: 0,
  shiftKey: 0,
  getModifierState: getEventModifierState
});

var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
/**
 * @interface Event
 * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
 * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
 */

var TransitionEventInterface = assign({}, EventInterface, {
  propertyName: 0,
  elapsedTime: 0,
  pseudoElement: 0
});

var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
/**
 * @interface WheelEvent
 * @see http://www.w3.org/TR/DOM-Level-3-Events/
 */

var WheelEventInterface = assign({}, MouseEventInterface, {
  deltaX: function (event) {
    return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
    'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  },
  deltaY: function (event) {
    return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
    'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
    'wheelDelta' in event ? -event.wheelDelta : 0;
  },
  deltaZ: 0,
  // Browsers without "deltaMode" is reporting in raw wheel delta where one
  // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  deltaMode: 0
});

var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);

var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space

var START_KEYCODE = 229;
var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
var documentMode = null;

if (canUseDOM && 'documentMode' in document) {
  documentMode = document.documentMode;
} // Webkit offers a very useful `textInput` event that can be used to
// directly represent `beforeInput`. The IE `textinput` event is not as
// useful, so we don't use it.


var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode; // In IE9+, we have access to composition events, but the data supplied
// by the native compositionend event may be incorrect. Japanese ideographic
// spaces, for instance (\u3000) are not recorded correctly.

var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
var SPACEBAR_CODE = 32;
var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);

function registerEvents() {
  registerTwoPhaseEvent('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']);
  registerTwoPhaseEvent('onCompositionEnd', ['compositionend', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
  registerTwoPhaseEvent('onCompositionStart', ['compositionstart', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
  registerTwoPhaseEvent('onCompositionUpdate', ['compositionupdate', 'focusout', 'keydown', 'keypress', 'keyup', 'mousedown']);
} // Track whether we've ever handled a keypress on the space key.


var hasSpaceKeypress = false;
/**
 * Return whether a native keypress event is assumed to be a command.
 * This is required because Firefox fires `keypress` events for key commands
 * (cut, copy, select-all, etc.) even though no character is inserted.
 */

function isKeypressCommand(nativeEvent) {
  return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  !(nativeEvent.ctrlKey && nativeEvent.altKey);
}
/**
 * Translate native top level events into event types.
 */


function getCompositionEventType(domEventName) {
  switch (domEventName) {
    case 'compositionstart':
      return 'onCompositionStart';

    case 'compositionend':
      return 'onCompositionEnd';

    case 'compositionupdate':
      return 'onCompositionUpdate';
  }
}
/**
 * Does our fallback best-guess model think this event signifies that
 * composition has begun?
 */


function isFallbackCompositionStart(domEventName, nativeEvent) {
  return domEventName === 'keydown' && nativeEvent.keyCode === START_KEYCODE;
}
/**
 * Does our fallback mode think that this event is the end of composition?
 */


function isFallbackCompositionEnd(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'keyup':
      // Command keys insert or clear IME input.
      return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;

    case 'keydown':
      // Expect IME keyCode on each keydown. If we get any other
      // code we must have exited earlier.
      return nativeEvent.keyCode !== START_KEYCODE;

    case 'keypress':
    case 'mousedown':
    case 'focusout':
      // Events are not possible without cancelling IME.
      return true;

    default:
      return false;
  }
}
/**
 * Google Input Tools provides composition data via a CustomEvent,
 * with the `data` property populated in the `detail` object. If this
 * is available on the event object, use it. If not, this is a plain
 * composition event and we have nothing special to extract.
 *
 * @param {object} nativeEvent
 * @return {?string}
 */


function getDataFromCustomEvent(nativeEvent) {
  var detail = nativeEvent.detail;

  if (typeof detail === 'object' && 'data' in detail) {
    return detail.data;
  }

  return null;
}
/**
 * Check if a composition event was triggered by Korean IME.
 * Our fallback mode does not work well with IE's Korean IME,
 * so just use native composition events when Korean IME is used.
 * Although CompositionEvent.locale property is deprecated,
 * it is available in IE, where our fallback mode is enabled.
 *
 * @param {object} nativeEvent
 * @return {boolean}
 */


function isUsingKoreanIME(nativeEvent) {
  return nativeEvent.locale === 'ko';
} // Track the current IME composition status, if any.


var isComposing = false;
/**
 * @return {?object} A SyntheticCompositionEvent.
 */

function extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
  var eventType;
  var fallbackData;

  if (canUseCompositionEvent) {
    eventType = getCompositionEventType(domEventName);
  } else if (!isComposing) {
    if (isFallbackCompositionStart(domEventName, nativeEvent)) {
      eventType = 'onCompositionStart';
    }
  } else if (isFallbackCompositionEnd(domEventName, nativeEvent)) {
    eventType = 'onCompositionEnd';
  }

  if (!eventType) {
    return null;
  }

  if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
    // The current composition is stored statically and must not be
    // overwritten while composition continues.
    if (!isComposing && eventType === 'onCompositionStart') {
      isComposing = initialize(nativeEventTarget);
    } else if (eventType === 'onCompositionEnd') {
      if (isComposing) {
        fallbackData = getData();
      }
    }
  }

  var listeners = accumulateTwoPhaseListeners(targetInst, eventType);

  if (listeners.length > 0) {
    var event = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });

    if (fallbackData) {
      // Inject data generated from fallback path into the synthetic event.
      // This matches the property of native CompositionEventInterface.
      event.data = fallbackData;
    } else {
      var customData = getDataFromCustomEvent(nativeEvent);

      if (customData !== null) {
        event.data = customData;
      }
    }
  }
}

function getNativeBeforeInputChars(domEventName, nativeEvent) {
  switch (domEventName) {
    case 'compositionend':
      return getDataFromCustomEvent(nativeEvent);

    case 'keypress':
      /**
       * If native `textInput` events are available, our goal is to make
       * use of them. However, there is a special case: the spacebar key.
       * In Webkit, preventing default on a spacebar `textInput` event
       * cancels character insertion, but it *also* causes the browser
       * to fall back to its default spacebar behavior of scrolling the
       * page.
       *
       * Tracking at:
       * https://code.google.com/p/chromium/issues/detail?id=355103
       *
       * To avoid this issue, use the keypress event as if no `textInput`
       * event is available.
       */
      var which = nativeEvent.which;

      if (which !== SPACEBAR_CODE) {
        return null;
      }

      hasSpaceKeypress = true;
      return SPACEBAR_CHAR;

    case 'textInput':
      // Record the characters to be added to the DOM.
      var chars = nativeEvent.data; // If it's a spacebar character, assume that we have already handled
      // it at the keypress level and bail immediately. Android Chrome
      // doesn't give us keycodes, so we need to ignore it.

      if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
        return null;
      }

      return chars;

    default:
      // For other native event types, do nothing.
      return null;
  }
}
/**
 * For browsers that do not provide the `textInput` event, extract the
 * appropriate string to use for SyntheticInputEvent.
 */


function getFallbackBeforeInputChars(domEventName, nativeEvent) {
  // If we are currently composing (IME) and using a fallback to do so,
  // try to extract the composed characters from the fallback object.
  // If composition event is available, we extract a string only at
  // compositionevent, otherwise extract it at fallback events.
  if (isComposing) {
    if (domEventName === 'compositionend' || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent)) {
      var chars = getData();
      reset();
      isComposing = false;
      return chars;
    }

    return null;
  }

  switch (domEventName) {
    case 'paste':
      // If a paste event occurs after a keypress, throw out the input
      // chars. Paste events should not lead to BeforeInput events.
      return null;

    case 'keypress':
      /**
       * As of v27, Firefox may fire keypress events even when no character
       * will be inserted. A few possibilities:
       *
       * - `which` is `0`. Arrow keys, Esc key, etc.
       *
       * - `which` is the pressed key code, but no char is available.
       *   Ex: 'AltGr + d` in Polish. There is no modified character for
       *   this key combination and no character is inserted into the
       *   document, but FF fires the keypress for char code `100` anyway.
       *   No `input` event will occur.
       *
       * - `which` is the pressed key code, but a command combination is
       *   being used. Ex: `Cmd+C`. No character is inserted, and no
       *   `input` event will occur.
       */
      if (!isKeypressCommand(nativeEvent)) {
        // IE fires the `keypress` event when a user types an emoji via
        // Touch keyboard of Windows.  In such a case, the `char` property
        // holds an emoji character like `\uD83D\uDE0A`.  Because its length
        // is 2, the property `which` does not represent an emoji correctly.
        // In such a case, we directly return the `char` property instead of
        // using `which`.
        if (nativeEvent.char && nativeEvent.char.length > 1) {
          return nativeEvent.char;
        } else if (nativeEvent.which) {
          return String.fromCharCode(nativeEvent.which);
        }
      }

      return null;

    case 'compositionend':
      return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;

    default:
      return null;
  }
}
/**
 * Extract a SyntheticInputEvent for `beforeInput`, based on either native
 * `textInput` or fallback behavior.
 *
 * @return {?object} A SyntheticInputEvent.
 */


function extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget) {
  var chars;

  if (canUseTextInputEvent) {
    chars = getNativeBeforeInputChars(domEventName, nativeEvent);
  } else {
    chars = getFallbackBeforeInputChars(domEventName, nativeEvent);
  } // If no characters are being inserted, no BeforeInput event should
  // be fired.


  if (!chars) {
    return null;
  }

  var listeners = accumulateTwoPhaseListeners(targetInst, 'onBeforeInput');

  if (listeners.length > 0) {
    var event = new SyntheticInputEvent('onBeforeInput', 'beforeinput', null, nativeEvent, nativeEventTarget);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
    event.data = chars;
  }
}
/**
 * Create an `onBeforeInput` event to match
 * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
 *
 * This event plugin is based on the native `textInput` event
 * available in Chrome, Safari, Opera, and IE. This event fires after
 * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
 *
 * `beforeInput` is spec'd but not implemented in any browsers, and
 * the `input` event does not provide any useful information about what has
 * actually been added, contrary to the spec. Thus, `textInput` is the best
 * available event to identify the characters that have actually been inserted
 * into the target node.
 *
 * This plugin is also responsible for emitting `composition` events, thus
 * allowing us to share composition fallback code for both `beforeInput` and
 * `composition` event types.
 */


function extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  extractCompositionEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
  extractBeforeInputEvent(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
}

/**
 * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
 */
var supportedInputTypes = {
  color: true,
  date: true,
  datetime: true,
  'datetime-local': true,
  email: true,
  month: true,
  number: true,
  password: true,
  range: true,
  search: true,
  tel: true,
  text: true,
  time: true,
  url: true,
  week: true
};

function isTextInputElement(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();

  if (nodeName === 'input') {
    return !!supportedInputTypes[elem.type];
  }

  if (nodeName === 'textarea') {
    return true;
  }

  return false;
}

/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */

function isEventSupported(eventNameSuffix) {
  if (!canUseDOM) {
    return false;
  }

  var eventName = 'on' + eventNameSuffix;
  var isSupported = (eventName in document);

  if (!isSupported) {
    var element = document.createElement('div');
    element.setAttribute(eventName, 'return;');
    isSupported = typeof element[eventName] === 'function';
  }

  return isSupported;
}

function registerEvents$1() {
  registerTwoPhaseEvent('onChange', ['change', 'click', 'focusin', 'focusout', 'input', 'keydown', 'keyup', 'selectionchange']);
}

function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
  // Flag this event loop as needing state restore.
  enqueueStateRestore(target);
  var listeners = accumulateTwoPhaseListeners(inst, 'onChange');

  if (listeners.length > 0) {
    var event = new SyntheticEvent('onChange', 'change', null, nativeEvent, target);
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
  }
}
/**
 * For IE shims
 */


var activeElement = null;
var activeElementInst = null;
/**
 * SECTION: handle `change` event
 */

function shouldUseChangeEvent(elem) {
  var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
}

function manualDispatchChangeEvent(nativeEvent) {
  var dispatchQueue = [];
  createAndAccumulateChangeEvent(dispatchQueue, activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the
  // other events and have it go through ReactBrowserEventEmitter. Since it
  // doesn't, we manually listen for the events and so we have to enqueue and
  // process the abstract event manually.
  //
  // Batching is necessary here in order to ensure that all event handlers run
  // before the next rerender (including event handlers attached to ancestor
  // elements instead of directly on the input). Without this, controlled
  // components don't work properly in conjunction with event bubbling because
  // the component is rerendered and the value reverted before all the event
  // handlers can run. See https://github.com/facebook/react/issues/708.

  batchedUpdates(runEventInBatch, dispatchQueue);
}

function runEventInBatch(dispatchQueue) {
  processDispatchQueue(dispatchQueue, 0);
}

function getInstIfValueChanged(targetInst) {
  var targetNode = getNodeFromInstance(targetInst);

  if (updateValueIfChanged(targetNode)) {
    return targetInst;
  }
}

function getTargetInstForChangeEvent(domEventName, targetInst) {
  if (domEventName === 'change') {
    return targetInst;
  }
}
/**
 * SECTION: handle `input` event
 */


var isInputEventSupported = false;

if (canUseDOM) {
  // IE9 claims to support the input event but fails to trigger it when
  // deleting text, so we ignore its input events.
  isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
}
/**
 * (For IE <=9) Starts tracking propertychange events on the passed-in element
 * and override the value property so that we can distinguish user events from
 * value changes in JS.
 */


function startWatchingForValueChange(target, targetInst) {
  activeElement = target;
  activeElementInst = targetInst;
  activeElement.attachEvent('onpropertychange', handlePropertyChange);
}
/**
 * (For IE <=9) Removes the event listeners from the currently-tracked element,
 * if any exists.
 */


function stopWatchingForValueChange() {
  if (!activeElement) {
    return;
  }

  activeElement.detachEvent('onpropertychange', handlePropertyChange);
  activeElement = null;
  activeElementInst = null;
}
/**
 * (For IE <=9) Handles a propertychange event, sending a `change` event if
 * the value of the active element has changed.
 */


function handlePropertyChange(nativeEvent) {
  if (nativeEvent.propertyName !== 'value') {
    return;
  }

  if (getInstIfValueChanged(activeElementInst)) {
    manualDispatchChangeEvent(nativeEvent);
  }
}

function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
  if (domEventName === 'focusin') {
    // In IE9, propertychange fires for most input events but is buggy and
    // doesn't fire when text is deleted, but conveniently, selectionchange
    // appears to fire in all of the remaining cases so we catch those and
    // forward the event if the value has changed
    // In either case, we don't want to call the event handler if the value
    // is changed from JS so we redefine a setter for `.value` that updates
    // our activeElementValue variable, allowing us to ignore those changes
    //
    // stopWatching() should be a noop here but we call it just in case we
    // missed a blur event somehow.
    stopWatchingForValueChange();
    startWatchingForValueChange(target, targetInst);
  } else if (domEventName === 'focusout') {
    stopWatchingForValueChange();
  }
} // For IE8 and IE9.


function getTargetInstForInputEventPolyfill(domEventName, targetInst) {
  if (domEventName === 'selectionchange' || domEventName === 'keyup' || domEventName === 'keydown') {
    // On the selectionchange event, the target is just document which isn't
    // helpful for us so just check activeElement instead.
    //
    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
    // propertychange on the first input event after setting `value` from a
    // script and fires only keydown, keypress, keyup. Catching keyup usually
    // gets it and catching keydown lets us fire an event for the first
    // keystroke if user does a key repeat (it'll be a little delayed: right
    // before the second keystroke). Other input methods (e.g., paste) seem to
    // fire selectionchange normally.
    return getInstIfValueChanged(activeElementInst);
  }
}
/**
 * SECTION: handle `click` event
 */


function shouldUseClickEvent(elem) {
  // Use the `click` event to detect changes to checkbox and radio inputs.
  // This approach works across all browsers, whereas `change` does not fire
  // until `blur` in IE8.
  var nodeName = elem.nodeName;
  return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
}

function getTargetInstForClickEvent(domEventName, targetInst) {
  if (domEventName === 'click') {
    return getInstIfValueChanged(targetInst);
  }
}

function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
  if (domEventName === 'input' || domEventName === 'change') {
    return getInstIfValueChanged(targetInst);
  }
}

function handleControlledInputBlur(node) {
  var state = node._wrapperState;

  if (!state || !state.controlled || node.type !== 'number') {
    return;
  }

  {
    // If controlled, assign the value attribute to the current value on blur
    setDefaultValue(node, 'number', node.value);
  }
}
/**
 * This plugin creates an `onChange` event that normalizes change events
 * across form elements. This event fires at a time when it's possible to
 * change the element's value without seeing a flicker.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - select
 */


function extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
  var getTargetInstFunc, handleEventFunc;

  if (shouldUseChangeEvent(targetNode)) {
    getTargetInstFunc = getTargetInstForChangeEvent;
  } else if (isTextInputElement(targetNode)) {
    if (isInputEventSupported) {
      getTargetInstFunc = getTargetInstForInputOrChangeEvent;
    } else {
      getTargetInstFunc = getTargetInstForInputEventPolyfill;
      handleEventFunc = handleEventsForInputEventPolyfill;
    }
  } else if (shouldUseClickEvent(targetNode)) {
    getTargetInstFunc = getTargetInstForClickEvent;
  }

  if (getTargetInstFunc) {
    var inst = getTargetInstFunc(domEventName, targetInst);

    if (inst) {
      createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
      return;
    }
  }

  if (handleEventFunc) {
    handleEventFunc(domEventName, targetNode, targetInst);
  } // When blurring, set the value attribute for number inputs


  if (domEventName === 'focusout') {
    handleControlledInputBlur(targetNode);
  }
}

function registerEvents$2() {
  registerDirectEvent('onMouseEnter', ['mouseout', 'mouseover']);
  registerDirectEvent('onMouseLeave', ['mouseout', 'mouseover']);
  registerDirectEvent('onPointerEnter', ['pointerout', 'pointerover']);
  registerDirectEvent('onPointerLeave', ['pointerout', 'pointerover']);
}
/**
 * For almost every interaction we care about, there will be both a top-level
 * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
 * we do not extract duplicate events. However, moving the mouse into the
 * browser from outside will not fire a `mouseout` event. In this case, we use
 * the `mouseover` top-level event.
 */


function extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var isOverEvent = domEventName === 'mouseover' || domEventName === 'pointerover';
  var isOutEvent = domEventName === 'mouseout' || domEventName === 'pointerout';

  if (isOverEvent && !isReplayingEvent(nativeEvent)) {
    // If this is an over event with a target, we might have already dispatched
    // the event in the out event of the other target. If this is replayed,
    // then it's because we couldn't dispatch against this target previously
    // so we have to do it now instead.
    var related = nativeEvent.relatedTarget || nativeEvent.fromElement;

    if (related) {
      // If the related node is managed by React, we can assume that we have
      // already dispatched the corresponding events during its mouseout.
      if (getClosestInstanceFromNode(related) || isContainerMarkedAsRoot(related)) {
        return;
      }
    }
  }

  if (!isOutEvent && !isOverEvent) {
    // Must not be a mouse or pointer in or out - ignoring.
    return;
  }

  var win; // TODO: why is this nullable in the types but we read from it?

  if (nativeEventTarget.window === nativeEventTarget) {
    // `nativeEventTarget` is probably a window object.
    win = nativeEventTarget;
  } else {
    // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
    var doc = nativeEventTarget.ownerDocument;

    if (doc) {
      win = doc.defaultView || doc.parentWindow;
    } else {
      win = window;
    }
  }

  var from;
  var to;

  if (isOutEvent) {
    var _related = nativeEvent.relatedTarget || nativeEvent.toElement;

    from = targetInst;
    to = _related ? getClosestInstanceFromNode(_related) : null;

    if (to !== null) {
      var nearestMounted = getNearestMountedFiber(to);

      if (to !== nearestMounted || to.tag !== HostComponent && to.tag !== HostText) {
        to = null;
      }
    }
  } else {
    // Moving to a node from outside the window.
    from = null;
    to = targetInst;
  }

  if (from === to) {
    // Nothing pertains to our managed components.
    return;
  }

  var SyntheticEventCtor = SyntheticMouseEvent;
  var leaveEventType = 'onMouseLeave';
  var enterEventType = 'onMouseEnter';
  var eventTypePrefix = 'mouse';

  if (domEventName === 'pointerout' || domEventName === 'pointerover') {
    SyntheticEventCtor = SyntheticPointerEvent;
    leaveEventType = 'onPointerLeave';
    enterEventType = 'onPointerEnter';
    eventTypePrefix = 'pointer';
  }

  var fromNode = from == null ? win : getNodeFromInstance(from);
  var toNode = to == null ? win : getNodeFromInstance(to);
  var leave = new SyntheticEventCtor(leaveEventType, eventTypePrefix + 'leave', from, nativeEvent, nativeEventTarget);
  leave.target = fromNode;
  leave.relatedTarget = toNode;
  var enter = null; // We should only process this nativeEvent if we are processing
  // the first ancestor. Next time, we will ignore the event.

  var nativeTargetInst = getClosestInstanceFromNode(nativeEventTarget);

  if (nativeTargetInst === targetInst) {
    var enterEvent = new SyntheticEventCtor(enterEventType, eventTypePrefix + 'enter', to, nativeEvent, nativeEventTarget);
    enterEvent.target = toNode;
    enterEvent.relatedTarget = fromNode;
    enter = enterEvent;
  }

  accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to);
}

/**
 * inlined Object.is polyfill to avoid requiring consumers ship their own
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
 */
function is(x, y) {
  return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  ;
}

var objectIs = typeof Object.is === 'function' ? Object.is : is;

/**
 * Performs equality by iterating through keys on an object and returning false
 * when any key has values which are not strictly equal between the arguments.
 * Returns true when the values of all keys are strictly equal.
 */

function shallowEqual(objA, objB) {
  if (objectIs(objA, objB)) {
    return true;
  }

  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
    return false;
  }

  var keysA = Object.keys(objA);
  var keysB = Object.keys(objB);

  if (keysA.length !== keysB.length) {
    return false;
  } // Test for A's keys different from B.


  for (var i = 0; i < keysA.length; i++) {
    var currentKey = keysA[i];

    if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) {
      return false;
    }
  }

  return true;
}

/**
 * Given any node return the first leaf node without children.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {DOMElement|DOMTextNode}
 */

function getLeafNode(node) {
  while (node && node.firstChild) {
    node = node.firstChild;
  }

  return node;
}
/**
 * Get the next sibling within a container. This will walk up the
 * DOM if a node's siblings have been exhausted.
 *
 * @param {DOMElement|DOMTextNode} node
 * @return {?DOMElement|DOMTextNode}
 */


function getSiblingNode(node) {
  while (node) {
    if (node.nextSibling) {
      return node.nextSibling;
    }

    node = node.parentNode;
  }
}
/**
 * Get object describing the nodes which contain characters at offset.
 *
 * @param {DOMElement|DOMTextNode} root
 * @param {number} offset
 * @return {?object}
 */


function getNodeForCharacterOffset(root, offset) {
  var node = getLeafNode(root);
  var nodeStart = 0;
  var nodeEnd = 0;

  while (node) {
    if (node.nodeType === TEXT_NODE) {
      nodeEnd = nodeStart + node.textContent.length;

      if (nodeStart <= offset && nodeEnd >= offset) {
        return {
          node: node,
          offset: offset - nodeStart
        };
      }

      nodeStart = nodeEnd;
    }

    node = getLeafNode(getSiblingNode(node));
  }
}

/**
 * @param {DOMElement} outerNode
 * @return {?object}
 */

function getOffsets(outerNode) {
  var ownerDocument = outerNode.ownerDocument;
  var win = ownerDocument && ownerDocument.defaultView || window;
  var selection = win.getSelection && win.getSelection();

  if (!selection || selection.rangeCount === 0) {
    return null;
  }

  var anchorNode = selection.anchorNode,
      anchorOffset = selection.anchorOffset,
      focusNode = selection.focusNode,
      focusOffset = selection.focusOffset; // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  // expose properties, triggering a "Permission denied error" if any of its
  // properties are accessed. The only seemingly possible way to avoid erroring
  // is to access a property that typically works for non-anonymous divs and
  // catch any error that may otherwise arise. See
  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427

  try {
    /* eslint-disable no-unused-expressions */
    anchorNode.nodeType;
    focusNode.nodeType;
    /* eslint-enable no-unused-expressions */
  } catch (e) {
    return null;
  }

  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
}
/**
 * Returns {start, end} where `start` is the character/codepoint index of
 * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
 * `end` is the index of (focusNode, focusOffset).
 *
 * Returns null if you pass in garbage input but we should probably just crash.
 *
 * Exported only for testing.
 */

function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  var length = 0;
  var start = -1;
  var end = -1;
  var indexWithinAnchor = 0;
  var indexWithinFocus = 0;
  var node = outerNode;
  var parentNode = null;

  outer: while (true) {
    var next = null;

    while (true) {
      if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
        start = length + anchorOffset;
      }

      if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
        end = length + focusOffset;
      }

      if (node.nodeType === TEXT_NODE) {
        length += node.nodeValue.length;
      }

      if ((next = node.firstChild) === null) {
        break;
      } // Moving from `node` to its first child `next`.


      parentNode = node;
      node = next;
    }

    while (true) {
      if (node === outerNode) {
        // If `outerNode` has children, this is always the second time visiting
        // it. If it has no children, this is still the first loop, and the only
        // valid selection is anchorNode and focusNode both equal to this node
        // and both offsets 0, in which case we will have handled above.
        break outer;
      }

      if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
        start = length;
      }

      if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
        end = length;
      }

      if ((next = node.nextSibling) !== null) {
        break;
      }

      node = parentNode;
      parentNode = node.parentNode;
    } // Moving from `node` to its next sibling `next`.


    node = next;
  }

  if (start === -1 || end === -1) {
    // This should never happen. (Would happen if the anchor/focus nodes aren't
    // actually inside the passed-in node.)
    return null;
  }

  return {
    start: start,
    end: end
  };
}
/**
 * In modern non-IE browsers, we can support both forward and backward
 * selections.
 *
 * Note: IE10+ supports the Selection object, but it does not support
 * the `extend` method, which means that even in modern IE, it's not possible
 * to programmatically create a backward selection. Thus, for all IE
 * versions, we use the old IE API to create our selections.
 *
 * @param {DOMElement|DOMTextNode} node
 * @param {object} offsets
 */

function setOffsets(node, offsets) {
  var doc = node.ownerDocument || document;
  var win = doc && doc.defaultView || window; // Edge fails with "Object expected" in some scenarios.
  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  // fails when pasting 100+ items)

  if (!win.getSelection) {
    return;
  }

  var selection = win.getSelection();
  var length = node.textContent.length;
  var start = Math.min(offsets.start, length);
  var end = offsets.end === undefined ? start : Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.
  // Flip backward selections, so we can set with a single range.

  if (!selection.extend && start > end) {
    var temp = end;
    end = start;
    start = temp;
  }

  var startMarker = getNodeForCharacterOffset(node, start);
  var endMarker = getNodeForCharacterOffset(node, end);

  if (startMarker && endMarker) {
    if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
      return;
    }

    var range = doc.createRange();
    range.setStart(startMarker.node, startMarker.offset);
    selection.removeAllRanges();

    if (start > end) {
      selection.addRange(range);
      selection.extend(endMarker.node, endMarker.offset);
    } else {
      range.setEnd(endMarker.node, endMarker.offset);
      selection.addRange(range);
    }
  }
}

function isTextNode(node) {
  return node && node.nodeType === TEXT_NODE;
}

function containsNode(outerNode, innerNode) {
  if (!outerNode || !innerNode) {
    return false;
  } else if (outerNode === innerNode) {
    return true;
  } else if (isTextNode(outerNode)) {
    return false;
  } else if (isTextNode(innerNode)) {
    return containsNode(outerNode, innerNode.parentNode);
  } else if ('contains' in outerNode) {
    return outerNode.contains(innerNode);
  } else if (outerNode.compareDocumentPosition) {
    return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  } else {
    return false;
  }
}

function isInDocument(node) {
  return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
}

function isSameOriginFrame(iframe) {
  try {
    // Accessing the contentDocument of a HTMLIframeElement can cause the browser
    // to throw, e.g. if it has a cross-origin src attribute.
    // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
    // iframe.contentDocument.defaultView;
    // A safety way is to access one of the cross origin properties: Window or Location
    // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
    return typeof iframe.contentWindow.location.href === 'string';
  } catch (err) {
    return false;
  }
}

function getActiveElementDeep() {
  var win = window;
  var element = getActiveElement();

  while (element instanceof win.HTMLIFrameElement) {
    if (isSameOriginFrame(element)) {
      win = element.contentWindow;
    } else {
      return element;
    }

    element = getActiveElement(win.document);
  }

  return element;
}
/**
 * @ReactInputSelection: React input selection module. Based on Selection.js,
 * but modified to be suitable for react and has a couple of bug fixes (doesn't
 * assume buttons have range selections allowed).
 * Input selection module for React.
 */

/**
 * @hasSelectionCapabilities: we get the element types that support selection
 * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
 * and `selectionEnd` rows.
 */


function hasSelectionCapabilities(elem) {
  var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
}
function getSelectionInformation() {
  var focusedElem = getActiveElementDeep();
  return {
    focusedElem: focusedElem,
    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
  };
}
/**
 * @restoreSelection: If any selection information was potentially lost,
 * restore it. This is useful when performing operations that could remove dom
 * nodes and place them back in, resulting in focus being lost.
 */

function restoreSelection(priorSelectionInformation) {
  var curFocusedElem = getActiveElementDeep();
  var priorFocusedElem = priorSelectionInformation.focusedElem;
  var priorSelectionRange = priorSelectionInformation.selectionRange;

  if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
    if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
      setSelection(priorFocusedElem, priorSelectionRange);
    } // Focusing a node can change the scroll position, which is undesirable


    var ancestors = [];
    var ancestor = priorFocusedElem;

    while (ancestor = ancestor.parentNode) {
      if (ancestor.nodeType === ELEMENT_NODE) {
        ancestors.push({
          element: ancestor,
          left: ancestor.scrollLeft,
          top: ancestor.scrollTop
        });
      }
    }

    if (typeof priorFocusedElem.focus === 'function') {
      priorFocusedElem.focus();
    }

    for (var i = 0; i < ancestors.length; i++) {
      var info = ancestors[i];
      info.element.scrollLeft = info.left;
      info.element.scrollTop = info.top;
    }
  }
}
/**
 * @getSelection: Gets the selection bounds of a focused textarea, input or
 * contentEditable node.
 * -@input: Look up selection bounds of this input
 * -@return {start: selectionStart, end: selectionEnd}
 */

function getSelection(input) {
  var selection;

  if ('selectionStart' in input) {
    // Modern browser with input or textarea.
    selection = {
      start: input.selectionStart,
      end: input.selectionEnd
    };
  } else {
    // Content editable or old IE textarea.
    selection = getOffsets(input);
  }

  return selection || {
    start: 0,
    end: 0
  };
}
/**
 * @setSelection: Sets the selection bounds of a textarea or input and focuses
 * the input.
 * -@input     Set selection bounds of this input or textarea
 * -@offsets   Object of same form that is returned from get*
 */

function setSelection(input, offsets) {
  var start = offsets.start;
  var end = offsets.end;

  if (end === undefined) {
    end = start;
  }

  if ('selectionStart' in input) {
    input.selectionStart = start;
    input.selectionEnd = Math.min(end, input.value.length);
  } else {
    setOffsets(input, offsets);
  }
}

var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;

function registerEvents$3() {
  registerTwoPhaseEvent('onSelect', ['focusout', 'contextmenu', 'dragend', 'focusin', 'keydown', 'keyup', 'mousedown', 'mouseup', 'selectionchange']);
}

var activeElement$1 = null;
var activeElementInst$1 = null;
var lastSelection = null;
var mouseDown = false;
/**
 * Get an object which is a unique representation of the current selection.
 *
 * The return value will not be consistent across nodes or browsers, but
 * two identical selections on the same node will return identical objects.
 */

function getSelection$1(node) {
  if ('selectionStart' in node && hasSelectionCapabilities(node)) {
    return {
      start: node.selectionStart,
      end: node.selectionEnd
    };
  } else {
    var win = node.ownerDocument && node.ownerDocument.defaultView || window;
    var selection = win.getSelection();
    return {
      anchorNode: selection.anchorNode,
      anchorOffset: selection.anchorOffset,
      focusNode: selection.focusNode,
      focusOffset: selection.focusOffset
    };
  }
}
/**
 * Get document associated with the event target.
 */


function getEventTargetDocument(eventTarget) {
  return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
}
/**
 * Poll selection to see whether it's changed.
 *
 * @param {object} nativeEvent
 * @param {object} nativeEventTarget
 * @return {?SyntheticEvent}
 */


function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
  // Ensure we have the right element, and that the user is not dragging a
  // selection (this matches native `select` event behavior). In HTML5, select
  // fires only on input and textarea thus if there's no focused element we
  // won't dispatch.
  var doc = getEventTargetDocument(nativeEventTarget);

  if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
    return;
  } // Only fire when selection has actually changed.


  var currentSelection = getSelection$1(activeElement$1);

  if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
    lastSelection = currentSelection;
    var listeners = accumulateTwoPhaseListeners(activeElementInst$1, 'onSelect');

    if (listeners.length > 0) {
      var event = new SyntheticEvent('onSelect', 'select', null, nativeEvent, nativeEventTarget);
      dispatchQueue.push({
        event: event,
        listeners: listeners
      });
      event.target = activeElement$1;
    }
  }
}
/**
 * This plugin creates an `onSelect` event that normalizes select events
 * across form elements.
 *
 * Supported elements are:
 * - input (see `isTextInputElement`)
 * - textarea
 * - contentEditable
 *
 * This differs from native browser implementations in the following ways:
 * - Fires on contentEditable fields as well as inputs.
 * - Fires for collapsed selection.
 * - Fires after user input.
 */


function extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var targetNode = targetInst ? getNodeFromInstance(targetInst) : window;

  switch (domEventName) {
    // Track the input node that has focus.
    case 'focusin':
      if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
        activeElement$1 = targetNode;
        activeElementInst$1 = targetInst;
        lastSelection = null;
      }

      break;

    case 'focusout':
      activeElement$1 = null;
      activeElementInst$1 = null;
      lastSelection = null;
      break;
    // Don't fire the event while the user is dragging. This matches the
    // semantics of the native select event.

    case 'mousedown':
      mouseDown = true;
      break;

    case 'contextmenu':
    case 'mouseup':
    case 'dragend':
      mouseDown = false;
      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
      break;
    // Chrome and IE fire non-standard event when selection is changed (and
    // sometimes when it hasn't). IE's event fires out of order with respect
    // to key and input events on deletion, so we discard it.
    //
    // Firefox doesn't support selectionchange, so check selection status
    // after each key entry. The selection changes after keydown and before
    // keyup, but we check on keydown as well in the case of holding down a
    // key, when multiple keydown events are fired but only one keyup is.
    // This is also our approach for IE handling, for the reason above.

    case 'selectionchange':
      if (skipSelectionChangeEvent) {
        break;
      }

    // falls through

    case 'keydown':
    case 'keyup':
      constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget);
  }
}

/**
 * Generate a mapping of standard vendor prefixes using the defined style property and event name.
 *
 * @param {string} styleProp
 * @param {string} eventName
 * @returns {object}
 */

function makePrefixMap(styleProp, eventName) {
  var prefixes = {};
  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  prefixes['Moz' + styleProp] = 'moz' + eventName;
  return prefixes;
}
/**
 * A list of event names to a configurable list of vendor prefixes.
 */


var vendorPrefixes = {
  animationend: makePrefixMap('Animation', 'AnimationEnd'),
  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  animationstart: makePrefixMap('Animation', 'AnimationStart'),
  transitionend: makePrefixMap('Transition', 'TransitionEnd')
};
/**
 * Event names that have already been detected and prefixed (if applicable).
 */

var prefixedEventNames = {};
/**
 * Element to check for prefixes on.
 */

var style = {};
/**
 * Bootstrap if a DOM exists.
 */

if (canUseDOM) {
  style = document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,
  // the un-prefixed "animation" and "transition" properties are defined on the
  // style object but the events that fire will still be prefixed, so we need
  // to check if the un-prefixed events are usable, and if not remove them from the map.

  if (!('AnimationEvent' in window)) {
    delete vendorPrefixes.animationend.animation;
    delete vendorPrefixes.animationiteration.animation;
    delete vendorPrefixes.animationstart.animation;
  } // Same as above


  if (!('TransitionEvent' in window)) {
    delete vendorPrefixes.transitionend.transition;
  }
}
/**
 * Attempts to determine the correct vendor prefixed event name.
 *
 * @param {string} eventName
 * @returns {string}
 */


function getVendorPrefixedEventName(eventName) {
  if (prefixedEventNames[eventName]) {
    return prefixedEventNames[eventName];
  } else if (!vendorPrefixes[eventName]) {
    return eventName;
  }

  var prefixMap = vendorPrefixes[eventName];

  for (var styleProp in prefixMap) {
    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
      return prefixedEventNames[eventName] = prefixMap[styleProp];
    }
  }

  return eventName;
}

var ANIMATION_END = getVendorPrefixedEventName('animationend');
var ANIMATION_ITERATION = getVendorPrefixedEventName('animationiteration');
var ANIMATION_START = getVendorPrefixedEventName('animationstart');
var TRANSITION_END = getVendorPrefixedEventName('transitionend');

var topLevelEventsToReactNames = new Map(); // NOTE: Capitalization is important in this list!
//
// E.g. it needs "pointerDown", not "pointerdown".
// This is because we derive both React name ("onPointerDown")
// and DOM name ("pointerdown") from the same list.
//
// Exceptions that don't match this convention are listed separately.
//
// prettier-ignore

var simpleEventPluginEvents = ['abort', 'auxClick', 'cancel', 'canPlay', 'canPlayThrough', 'click', 'close', 'contextMenu', 'copy', 'cut', 'drag', 'dragEnd', 'dragEnter', 'dragExit', 'dragLeave', 'dragOver', 'dragStart', 'drop', 'durationChange', 'emptied', 'encrypted', 'ended', 'error', 'gotPointerCapture', 'input', 'invalid', 'keyDown', 'keyPress', 'keyUp', 'load', 'loadedData', 'loadedMetadata', 'loadStart', 'lostPointerCapture', 'mouseDown', 'mouseMove', 'mouseOut', 'mouseOver', 'mouseUp', 'paste', 'pause', 'play', 'playing', 'pointerCancel', 'pointerDown', 'pointerMove', 'pointerOut', 'pointerOver', 'pointerUp', 'progress', 'rateChange', 'reset', 'resize', 'seeked', 'seeking', 'stalled', 'submit', 'suspend', 'timeUpdate', 'touchCancel', 'touchEnd', 'touchStart', 'volumeChange', 'scroll', 'toggle', 'touchMove', 'waiting', 'wheel'];

function registerSimpleEvent(domEventName, reactName) {
  topLevelEventsToReactNames.set(domEventName, reactName);
  registerTwoPhaseEvent(reactName, [domEventName]);
}

function registerSimpleEvents() {
  for (var i = 0; i < simpleEventPluginEvents.length; i++) {
    var eventName = simpleEventPluginEvents[i];
    var domEventName = eventName.toLowerCase();
    var capitalizedEvent = eventName[0].toUpperCase() + eventName.slice(1);
    registerSimpleEvent(domEventName, 'on' + capitalizedEvent);
  } // Special cases where event names don't match.


  registerSimpleEvent(ANIMATION_END, 'onAnimationEnd');
  registerSimpleEvent(ANIMATION_ITERATION, 'onAnimationIteration');
  registerSimpleEvent(ANIMATION_START, 'onAnimationStart');
  registerSimpleEvent('dblclick', 'onDoubleClick');
  registerSimpleEvent('focusin', 'onFocus');
  registerSimpleEvent('focusout', 'onBlur');
  registerSimpleEvent(TRANSITION_END, 'onTransitionEnd');
}

function extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  var reactName = topLevelEventsToReactNames.get(domEventName);

  if (reactName === undefined) {
    return;
  }

  var SyntheticEventCtor = SyntheticEvent;
  var reactEventType = domEventName;

  switch (domEventName) {
    case 'keypress':
      // Firefox creates a keypress event for function keys too. This removes
      // the unwanted keypress events. Enter is however both printable and
      // non-printable. One would expect Tab to be as well (but it isn't).
      if (getEventCharCode(nativeEvent) === 0) {
        return;
      }

    /* falls through */

    case 'keydown':
    case 'keyup':
      SyntheticEventCtor = SyntheticKeyboardEvent;
      break;

    case 'focusin':
      reactEventType = 'focus';
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'focusout':
      reactEventType = 'blur';
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'beforeblur':
    case 'afterblur':
      SyntheticEventCtor = SyntheticFocusEvent;
      break;

    case 'click':
      // Firefox creates a click event on right mouse clicks. This removes the
      // unwanted click events.
      if (nativeEvent.button === 2) {
        return;
      }

    /* falls through */

    case 'auxclick':
    case 'dblclick':
    case 'mousedown':
    case 'mousemove':
    case 'mouseup': // TODO: Disabled elements should not respond to mouse events

    /* falls through */

    case 'mouseout':
    case 'mouseover':
    case 'contextmenu':
      SyntheticEventCtor = SyntheticMouseEvent;
      break;

    case 'drag':
    case 'dragend':
    case 'dragenter':
    case 'dragexit':
    case 'dragleave':
    case 'dragover':
    case 'dragstart':
    case 'drop':
      SyntheticEventCtor = SyntheticDragEvent;
      break;

    case 'touchcancel':
    case 'touchend':
    case 'touchmove':
    case 'touchstart':
      SyntheticEventCtor = SyntheticTouchEvent;
      break;

    case ANIMATION_END:
    case ANIMATION_ITERATION:
    case ANIMATION_START:
      SyntheticEventCtor = SyntheticAnimationEvent;
      break;

    case TRANSITION_END:
      SyntheticEventCtor = SyntheticTransitionEvent;
      break;

    case 'scroll':
      SyntheticEventCtor = SyntheticUIEvent;
      break;

    case 'wheel':
      SyntheticEventCtor = SyntheticWheelEvent;
      break;

    case 'copy':
    case 'cut':
    case 'paste':
      SyntheticEventCtor = SyntheticClipboardEvent;
      break;

    case 'gotpointercapture':
    case 'lostpointercapture':
    case 'pointercancel':
    case 'pointerdown':
    case 'pointermove':
    case 'pointerout':
    case 'pointerover':
    case 'pointerup':
      SyntheticEventCtor = SyntheticPointerEvent;
      break;
  }

  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

  {
    // Some events don't bubble in the browser.
    // In the past, React has always bubbled them, but this can be surprising.
    // We're going to try aligning closer to the browser behavior by not bubbling
    // them in React either. We'll start by not bubbling onScroll, and then expand.
    var accumulateTargetOnly = !inCapturePhase && // TODO: ideally, we'd eventually add all events from
    // nonDelegatedEvents list in DOMPluginEventSystem.
    // Then we can remove this special list.
    // This is a breaking change that can wait until React 18.
    domEventName === 'scroll';

    var _listeners = accumulateSinglePhaseListeners(targetInst, reactName, nativeEvent.type, inCapturePhase, accumulateTargetOnly);

    if (_listeners.length > 0) {
      // Intentionally create event lazily.
      var _event = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget);

      dispatchQueue.push({
        event: _event,
        listeners: _listeners
      });
    }
  }
}

// TODO: remove top-level side effect.
registerSimpleEvents();
registerEvents$2();
registerEvents$1();
registerEvents$3();
registerEvents();

function extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
  // TODO: we should remove the concept of a "SimpleEventPlugin".
  // This is the basic functionality of the event system. All
  // the other plugins are essentially polyfills. So the plugin
  // should probably be inlined somewhere and have its logic
  // be core the to event system. This would potentially allow
  // us to ship builds of React without the polyfilled plugins below.
  extractEvents$4(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  var shouldProcessPolyfillPlugins = (eventSystemFlags & SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS) === 0; // We don't process these events unless we are in the
  // event's native "bubble" phase, which means that we're
  // not in the capture phase. That's because we emulate
  // the capture phase here still. This is a trade-off,
  // because in an ideal world we would not emulate and use
  // the phases properly, like we do with the SimpleEvent
  // plugin. However, the plugins below either expect
  // emulation (EnterLeave) or use state localized to that
  // plugin (BeforeInput, Change, Select). The state in
  // these modules complicates things, as you'll essentially
  // get the case where the capture phase event might change
  // state, only for the following bubble event to come in
  // later and not trigger anything as the state now
  // invalidates the heuristics of the event plugin. We
  // could alter all these plugins to work in such ways, but
  // that might cause other unknown side-effects that we
  // can't foresee right now.

  if (shouldProcessPolyfillPlugins) {
    extractEvents$2(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
    extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
    extractEvents$3(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
    extractEvents(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget);
  }
} // List of events that need to be individually attached to media elements.


var mediaEventTypes = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied', 'encrypted', 'ended', 'error', 'loadeddata', 'loadedmetadata', 'loadstart', 'pause', 'play', 'playing', 'progress', 'ratechange', 'resize', 'seeked', 'seeking', 'stalled', 'suspend', 'timeupdate', 'volumechange', 'waiting']; // We should not delegate these events to the container, but rather
// set them on the actual target element itself. This is primarily
// because these events do not consistently bubble in the DOM.

var nonDelegatedEvents = new Set(['cancel', 'close', 'invalid', 'load', 'scroll', 'toggle'].concat(mediaEventTypes));

function executeDispatch(event, listener, currentTarget) {
  var type = event.type || 'unknown-event';
  event.currentTarget = currentTarget;
  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  event.currentTarget = null;
}

function processDispatchQueueItemsInOrder(event, dispatchListeners, inCapturePhase) {
  var previousInstance;

  if (inCapturePhase) {
    for (var i = dispatchListeners.length - 1; i >= 0; i--) {
      var _dispatchListeners$i = dispatchListeners[i],
          instance = _dispatchListeners$i.instance,
          currentTarget = _dispatchListeners$i.currentTarget,
          listener = _dispatchListeners$i.listener;

      if (instance !== previousInstance && event.isPropagationStopped()) {
        return;
      }

      executeDispatch(event, listener, currentTarget);
      previousInstance = instance;
    }
  } else {
    for (var _i = 0; _i < dispatchListeners.length; _i++) {
      var _dispatchListeners$_i = dispatchListeners[_i],
          _instance = _dispatchListeners$_i.instance,
          _currentTarget = _dispatchListeners$_i.currentTarget,
          _listener = _dispatchListeners$_i.listener;

      if (_instance !== previousInstance && event.isPropagationStopped()) {
        return;
      }

      executeDispatch(event, _listener, _currentTarget);
      previousInstance = _instance;
    }
  }
}

function processDispatchQueue(dispatchQueue, eventSystemFlags) {
  var inCapturePhase = (eventSystemFlags & IS_CAPTURE_PHASE) !== 0;

  for (var i = 0; i < dispatchQueue.length; i++) {
    var _dispatchQueue$i = dispatchQueue[i],
        event = _dispatchQueue$i.event,
        listeners = _dispatchQueue$i.listeners;
    processDispatchQueueItemsInOrder(event, listeners, inCapturePhase); //  event system doesn't use pooling.
  } // This would be a good time to rethrow if any of the event handlers threw.


  rethrowCaughtError();
}

function dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
  var nativeEventTarget = getEventTarget(nativeEvent);
  var dispatchQueue = [];
  extractEvents$5(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  processDispatchQueue(dispatchQueue, eventSystemFlags);
}

function listenToNonDelegatedEvent(domEventName, targetElement) {
  {
    if (!nonDelegatedEvents.has(domEventName)) {
      error('Did not expect a listenToNonDelegatedEvent() call for "%s". ' + 'This is a bug in React. Please file an issue.', domEventName);
    }
  }

  var isCapturePhaseListener = false;
  var listenerSet = getEventListenerSet(targetElement);
  var listenerSetKey = getListenerSetKey(domEventName, isCapturePhaseListener);

  if (!listenerSet.has(listenerSetKey)) {
    addTrappedEventListener(targetElement, domEventName, IS_NON_DELEGATED, isCapturePhaseListener);
    listenerSet.add(listenerSetKey);
  }
}
function listenToNativeEvent(domEventName, isCapturePhaseListener, target) {
  {
    if (nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener) {
      error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. ' + 'This is a bug in React. Please file an issue.', domEventName);
    }
  }

  var eventSystemFlags = 0;

  if (isCapturePhaseListener) {
    eventSystemFlags |= IS_CAPTURE_PHASE;
  }

  addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener);
} // This is only used by createEventHandle when the
var listeningMarker = '_reactListening' + Math.random().toString(36).slice(2);
function listenToAllSupportedEvents(rootContainerElement) {
  if (!rootContainerElement[listeningMarker]) {
    rootContainerElement[listeningMarker] = true;
    allNativeEvents.forEach(function (domEventName) {
      // We handle selectionchange separately because it
      // doesn't bubble and needs to be on the document.
      if (domEventName !== 'selectionchange') {
        if (!nonDelegatedEvents.has(domEventName)) {
          listenToNativeEvent(domEventName, false, rootContainerElement);
        }

        listenToNativeEvent(domEventName, true, rootContainerElement);
      }
    });
    var ownerDocument = rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;

    if (ownerDocument !== null) {
      // The selectionchange event also needs deduplication
      // but it is attached to the document.
      if (!ownerDocument[listeningMarker]) {
        ownerDocument[listeningMarker] = true;
        listenToNativeEvent('selectionchange', false, ownerDocument);
      }
    }
  }
}

function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener, isDeferredListenerForLegacyFBSupport) {
  var listener = createEventListenerWrapperWithPriority(targetContainer, domEventName, eventSystemFlags); // If passive option is not supported, then the event will be
  // active and not passive.

  var isPassiveListener = undefined;

  if (passiveBrowserEventsSupported) {
    // Browsers introduced an intervention, making these events
    // passive by default on document. React doesn't bind them
    // to document anymore, but changing this now would undo
    // the performance wins from the change. So we emulate
    // the existing behavior manually on the roots now.
    // https://github.com/facebook/react/issues/19651
    if (domEventName === 'touchstart' || domEventName === 'touchmove' || domEventName === 'wheel') {
      isPassiveListener = true;
    }
  }

  targetContainer =  targetContainer;
  var unsubscribeListener; // When legacyFBSupport is enabled, it's for when we


  if (isCapturePhaseListener) {
    if (isPassiveListener !== undefined) {
      unsubscribeListener = addEventCaptureListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
    } else {
      unsubscribeListener = addEventCaptureListener(targetContainer, domEventName, listener);
    }
  } else {
    if (isPassiveListener !== undefined) {
      unsubscribeListener = addEventBubbleListenerWithPassiveFlag(targetContainer, domEventName, listener, isPassiveListener);
    } else {
      unsubscribeListener = addEventBubbleListener(targetContainer, domEventName, listener);
    }
  }
}

function isMatchingRootContainer(grandContainer, targetContainer) {
  return grandContainer === targetContainer || grandContainer.nodeType === COMMENT_NODE && grandContainer.parentNode === targetContainer;
}

function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst, targetContainer) {
  var ancestorInst = targetInst;

  if ((eventSystemFlags & IS_EVENT_HANDLE_NON_MANAGED_NODE) === 0 && (eventSystemFlags & IS_NON_DELEGATED) === 0) {
    var targetContainerNode = targetContainer; // If we are using the legacy FB support flag, we

    if (targetInst !== null) {
      // The below logic attempts to work out if we need to change
      // the target fiber to a different ancestor. We had similar logic
      // in the legacy event system, except the big difference between
      // systems is that the modern event system now has an event listener
      // attached to each React Root and React Portal Root. Together,
      // the DOM nodes representing these roots are the "rootContainer".
      // To figure out which ancestor instance we should use, we traverse
      // up the fiber tree from the target instance and attempt to find
      // root boundaries that match that of our current "rootContainer".
      // If we find that "rootContainer", we find the parent fiber
      // sub-tree for that root and make that our ancestor instance.
      var node = targetInst;

      mainLoop: while (true) {
        if (node === null) {
          return;
        }

        var nodeTag = node.tag;

        if (nodeTag === HostRoot || nodeTag === HostPortal) {
          var container = node.stateNode.containerInfo;

          if (isMatchingRootContainer(container, targetContainerNode)) {
            break;
          }

          if (nodeTag === HostPortal) {
            // The target is a portal, but it's not the rootContainer we're looking for.
            // Normally portals handle their own events all the way down to the root.
            // So we should be able to stop now. However, we don't know if this portal
            // was part of *our* root.
            var grandNode = node.return;

            while (grandNode !== null) {
              var grandTag = grandNode.tag;

              if (grandTag === HostRoot || grandTag === HostPortal) {
                var grandContainer = grandNode.stateNode.containerInfo;

                if (isMatchingRootContainer(grandContainer, targetContainerNode)) {
                  // This is the rootContainer we're looking for and we found it as
                  // a parent of the Portal. That means we can ignore it because the
                  // Portal will bubble through to us.
                  return;
                }
              }

              grandNode = grandNode.return;
            }
          } // Now we need to find it's corresponding host fiber in the other
          // tree. To do this we can use getClosestInstanceFromNode, but we
          // need to validate that the fiber is a host instance, otherwise
          // we need to traverse up through the DOM till we find the correct
          // node that is from the other tree.


          while (container !== null) {
            var parentNode = getClosestInstanceFromNode(container);

            if (parentNode === null) {
              return;
            }

            var parentTag = parentNode.tag;

            if (parentTag === HostComponent || parentTag === HostText) {
              node = ancestorInst = parentNode;
              continue mainLoop;
            }

            container = container.parentNode;
          }
        }

        node = node.return;
      }
    }
  }

  batchedUpdates(function () {
    return dispatchEventsForPlugins(domEventName, eventSystemFlags, nativeEvent, ancestorInst);
  });
}

function createDispatchListener(instance, listener, currentTarget) {
  return {
    instance: instance,
    listener: listener,
    currentTarget: currentTarget
  };
}

function accumulateSinglePhaseListeners(targetFiber, reactName, nativeEventType, inCapturePhase, accumulateTargetOnly, nativeEvent) {
  var captureName = reactName !== null ? reactName + 'Capture' : null;
  var reactEventName = inCapturePhase ? captureName : reactName;
  var listeners = [];
  var instance = targetFiber;
  var lastHostComponent = null; // Accumulate all instances and listeners via the target -> root path.

  while (instance !== null) {
    var _instance2 = instance,
        stateNode = _instance2.stateNode,
        tag = _instance2.tag; // Handle listeners that are on HostComponents (i.e. <div>)

    if (tag === HostComponent && stateNode !== null) {
      lastHostComponent = stateNode; // createEventHandle listeners


      if (reactEventName !== null) {
        var listener = getListener(instance, reactEventName);

        if (listener != null) {
          listeners.push(createDispatchListener(instance, listener, lastHostComponent));
        }
      }
    } // If we are only accumulating events for the target, then we don't
    // continue to propagate through the React fiber tree to find other
    // listeners.


    if (accumulateTargetOnly) {
      break;
    } // If we are processing the onBeforeBlur event, then we need to take

    instance = instance.return;
  }

  return listeners;
} // We should only use this function for:
// - BeforeInputEventPlugin
// - ChangeEventPlugin
// - SelectEventPlugin
// This is because we only process these plugins
// in the bubble phase, so we need to accumulate two
// phase event listeners (via emulation).

function accumulateTwoPhaseListeners(targetFiber, reactName) {
  var captureName = reactName + 'Capture';
  var listeners = [];
  var instance = targetFiber; // Accumulate all instances and listeners via the target -> root path.

  while (instance !== null) {
    var _instance3 = instance,
        stateNode = _instance3.stateNode,
        tag = _instance3.tag; // Handle listeners that are on HostComponents (i.e. <div>)

    if (tag === HostComponent && stateNode !== null) {
      var currentTarget = stateNode;
      var captureListener = getListener(instance, captureName);

      if (captureListener != null) {
        listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
      }

      var bubbleListener = getListener(instance, reactName);

      if (bubbleListener != null) {
        listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
      }
    }

    instance = instance.return;
  }

  return listeners;
}

function getParent(inst) {
  if (inst === null) {
    return null;
  }

  do {
    inst = inst.return; // TODO: If this is a HostRoot we might want to bail out.
    // That is depending on if we want nested subtrees (layers) to bubble
    // events to their parent. We could also go through parentNode on the
    // host node but that wouldn't work for React Native and doesn't let us
    // do the portal feature.
  } while (inst && inst.tag !== HostComponent);

  if (inst) {
    return inst;
  }

  return null;
}
/**
 * Return the lowest common ancestor of A and B, or null if they are in
 * different trees.
 */


function getLowestCommonAncestor(instA, instB) {
  var nodeA = instA;
  var nodeB = instB;
  var depthA = 0;

  for (var tempA = nodeA; tempA; tempA = getParent(tempA)) {
    depthA++;
  }

  var depthB = 0;

  for (var tempB = nodeB; tempB; tempB = getParent(tempB)) {
    depthB++;
  } // If A is deeper, crawl up.


  while (depthA - depthB > 0) {
    nodeA = getParent(nodeA);
    depthA--;
  } // If B is deeper, crawl up.


  while (depthB - depthA > 0) {
    nodeB = getParent(nodeB);
    depthB--;
  } // Walk in lockstep until we find a match.


  var depth = depthA;

  while (depth--) {
    if (nodeA === nodeB || nodeB !== null && nodeA === nodeB.alternate) {
      return nodeA;
    }

    nodeA = getParent(nodeA);
    nodeB = getParent(nodeB);
  }

  return null;
}

function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) {
  var registrationName = event._reactName;
  var listeners = [];
  var instance = target;

  while (instance !== null) {
    if (instance === common) {
      break;
    }

    var _instance4 = instance,
        alternate = _instance4.alternate,
        stateNode = _instance4.stateNode,
        tag = _instance4.tag;

    if (alternate !== null && alternate === common) {
      break;
    }

    if (tag === HostComponent && stateNode !== null) {
      var currentTarget = stateNode;

      if (inCapturePhase) {
        var captureListener = getListener(instance, registrationName);

        if (captureListener != null) {
          listeners.unshift(createDispatchListener(instance, captureListener, currentTarget));
        }
      } else if (!inCapturePhase) {
        var bubbleListener = getListener(instance, registrationName);

        if (bubbleListener != null) {
          listeners.push(createDispatchListener(instance, bubbleListener, currentTarget));
        }
      }
    }

    instance = instance.return;
  }

  if (listeners.length !== 0) {
    dispatchQueue.push({
      event: event,
      listeners: listeners
    });
  }
} // We should only use this function for:
// - EnterLeaveEventPlugin
// This is because we only process this plugin
// in the bubble phase, so we need to accumulate two
// phase event listeners.


function accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leaveEvent, enterEvent, from, to) {
  var common = from && to ? getLowestCommonAncestor(from, to) : null;

  if (from !== null) {
    accumulateEnterLeaveListenersForEvent(dispatchQueue, leaveEvent, from, common, false);
  }

  if (to !== null && enterEvent !== null) {
    accumulateEnterLeaveListenersForEvent(dispatchQueue, enterEvent, to, common, true);
  }
}
function getListenerSetKey(domEventName, capture) {
  return domEventName + "__" + (capture ? 'capture' : 'bubble');
}

var didWarnInvalidHydration = false;
var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
var SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
var AUTOFOCUS = 'autoFocus';
var CHILDREN = 'children';
var STYLE = 'style';
var HTML$1 = '__html';
var warnedUnknownTags;
var validatePropertiesInDevelopment;
var warnForPropDifference;
var warnForExtraAttributes;
var warnForInvalidEventListener;
var canDiffStyleForHydrationWarning;
var normalizeHTML;

{
  warnedUnknownTags = {
    // There are working polyfills for <dialog>. Let people use it.
    dialog: true,
    // Electron ships a custom <webview> tag to display external web content in
    // an isolated frame and process.
    // This tag is not present in non Electron environments such as JSDom which
    // is often used for testing purposes.
    // @see https://electronjs.org/docs/api/webview-tag
    webview: true
  };

  validatePropertiesInDevelopment = function (type, props) {
    validateProperties(type, props);
    validateProperties$1(type, props);
    validateProperties$2(type, props, {
      registrationNameDependencies: registrationNameDependencies,
      possibleRegistrationNames: possibleRegistrationNames
    });
  }; // IE 11 parses & normalizes the style attribute as opposed to other
  // browsers. It adds spaces and sorts the properties in some
  // non-alphabetical order. Handling that would require sorting CSS
  // properties in the client & server versions or applying
  // `expectedStyle` to a temporary DOM node to read its `style` attribute
  // normalized. Since it only affects IE, we're skipping style warnings
  // in that browser completely in favor of doing all that work.
  // See https://github.com/facebook/react/issues/11807


  canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;

  warnForPropDifference = function (propName, serverValue, clientValue) {
    if (didWarnInvalidHydration) {
      return;
    }

    var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
    var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);

    if (normalizedServerValue === normalizedClientValue) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  };

  warnForExtraAttributes = function (attributeNames) {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;
    var names = [];
    attributeNames.forEach(function (name) {
      names.push(name);
    });

    error('Extra attributes from the server: %s', names);
  };

  warnForInvalidEventListener = function (registrationName, listener) {
    if (listener === false) {
      error('Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
    } else {
      error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
    }
  }; // Parse the HTML and read it back to normalize the HTML string so that it
  // can be used for comparison.


  normalizeHTML = function (parent, html) {
    // We could have created a separate document here to avoid
    // re-initializing custom elements if they exist. But this breaks
    // how <noscript> is being handled. So we use the same document.
    // See the discussion in https://github.com/facebook/react/pull/11157.
    var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
    testElement.innerHTML = html;
    return testElement.innerHTML;
  };
} // HTML parsing normalizes CR and CRLF to LF.
// It also can turn \u0000 into \uFFFD inside attributes.
// https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
// If we have a mismatch, it might be caused by that.
// We will still patch up in this case but not fire the warning.


var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;

function normalizeMarkupForTextOrAttribute(markup) {
  {
    checkHtmlStringCoercion(markup);
  }

  var markupString = typeof markup === 'string' ? markup : '' + markup;
  return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
}

function checkForUnmatchedText(serverText, clientText, isConcurrentMode, shouldWarnDev) {
  var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);

  if (normalizedServerText === normalizedClientText) {
    return;
  }

  if (shouldWarnDev) {
    {
      if (!didWarnInvalidHydration) {
        didWarnInvalidHydration = true;

        error('Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
      }
    }
  }

  if (isConcurrentMode && enableClientRenderFallbackOnTextMismatch) {
    // In concurrent roots, we throw when there's a text mismatch and revert to
    // client rendering, up to the nearest Suspense boundary.
    throw new Error('Text content does not match server-rendered HTML.');
  }
}

function getOwnerDocumentFromRootContainer(rootContainerElement) {
  return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
}

function noop() {}

function trapClickOnNonInteractiveElement(node) {
  // Mobile Safari does not fire properly bubble click events on
  // non-interactive elements, which means delegated click listeners do not
  // fire. The workaround for this bug involves attaching an empty click
  // listener on the target node.
  // https://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  // Just set it using the onclick property so that we don't have to manage any
  // bookkeeping for it. Not sure if we need to clear it when the listener is
  // removed.
  // TODO: Only do this for the relevant Safaris maybe?
  node.onclick = noop;
}

function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  for (var propKey in nextProps) {
    if (!nextProps.hasOwnProperty(propKey)) {
      continue;
    }

    var nextProp = nextProps[propKey];

    if (propKey === STYLE) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      } // Relies on `updateStylesByID` not mutating `styleUpdates`.


      setValueForStyles(domElement, nextProp);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

      if (nextHtml != null) {
        setInnerHTML(domElement, nextHtml);
      }
    } else if (propKey === CHILDREN) {
      if (typeof nextProp === 'string') {
        // Avoid setting initial textContent when the text is empty. In IE11 setting
        // textContent on a <textarea> will cause the placeholder to not
        // show within the <textarea> until it has been focused and blurred again.
        // https://github.com/facebook/react/issues/6731#issuecomment-254874553
        var canSetTextContent = tag !== 'textarea' || nextProp !== '';

        if (canSetTextContent) {
          setTextContent(domElement, nextProp);
        }
      } else if (typeof nextProp === 'number') {
        setTextContent(domElement, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }
    } else if (nextProp != null) {
      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
    }
  }
}

function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  // TODO: Handle wasCustomComponentTag
  for (var i = 0; i < updatePayload.length; i += 2) {
    var propKey = updatePayload[i];
    var propValue = updatePayload[i + 1];

    if (propKey === STYLE) {
      setValueForStyles(domElement, propValue);
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      setInnerHTML(domElement, propValue);
    } else if (propKey === CHILDREN) {
      setTextContent(domElement, propValue);
    } else {
      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
    }
  }
}

function createElement(type, props, rootContainerElement, parentNamespace) {
  var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML
  // tags get no namespace.

  var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  var domElement;
  var namespaceURI = parentNamespace;

  if (namespaceURI === HTML_NAMESPACE) {
    namespaceURI = getIntrinsicNamespace(type);
  }

  if (namespaceURI === HTML_NAMESPACE) {
    {
      isCustomComponentTag = isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to
      // allow <SVG> or <mATH>.

      if (!isCustomComponentTag && type !== type.toLowerCase()) {
        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);
      }
    }

    if (type === 'script') {
      // Create the script via .innerHTML so its "parser-inserted" flag is
      // set to true and it does not execute
      var div = ownerDocument.createElement('div');

      div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
      // This is guaranteed to yield a script element.

      var firstChild = div.firstChild;
      domElement = div.removeChild(firstChild);
    } else if (typeof props.is === 'string') {
      // $FlowIssue `createElement` should be updated for Web Components
      domElement = ownerDocument.createElement(type, {
        is: props.is
      });
    } else {
      // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
      // See discussion in https://github.com/facebook/react/pull/6896
      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
      domElement = ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
      // attributes on `select`s needs to be added before `option`s are inserted.
      // This prevents:
      // - a bug where the `select` does not scroll to the correct option because singular
      //  `select` elements automatically pick the first item #13222
      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
      // See https://github.com/facebook/react/issues/13222
      // and https://github.com/facebook/react/issues/14239

      if (type === 'select') {
        var node = domElement;

        if (props.multiple) {
          node.multiple = true;
        } else if (props.size) {
          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
          // it is possible that no option is selected.
          //
          // This is only necessary when a select in "single selection mode".
          node.size = props.size;
        }
      }
    }
  } else {
    domElement = ownerDocument.createElementNS(namespaceURI, type);
  }

  {
    if (namespaceURI === HTML_NAMESPACE) {
      if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !hasOwnProperty.call(warnedUnknownTags, type)) {
        warnedUnknownTags[type] = true;

        error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
      }
    }
  }

  return domElement;
}
function createTextNode(text, rootContainerElement) {
  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
}
function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  var isCustomComponentTag = isCustomComponent(tag, rawProps);

  {
    validatePropertiesInDevelopment(tag, rawProps);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  var props;

  switch (tag) {
    case 'dialog':
      listenToNonDelegatedEvent('cancel', domElement);
      listenToNonDelegatedEvent('close', domElement);
      props = rawProps;
      break;

    case 'iframe':
    case 'object':
    case 'embed':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the load event.
      listenToNonDelegatedEvent('load', domElement);
      props = rawProps;
      break;

    case 'video':
    case 'audio':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for all the media events.
      for (var i = 0; i < mediaEventTypes.length; i++) {
        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
      }

      props = rawProps;
      break;

    case 'source':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the error event.
      listenToNonDelegatedEvent('error', domElement);
      props = rawProps;
      break;

    case 'img':
    case 'image':
    case 'link':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for error and load events.
      listenToNonDelegatedEvent('error', domElement);
      listenToNonDelegatedEvent('load', domElement);
      props = rawProps;
      break;

    case 'details':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the toggle event.
      listenToNonDelegatedEvent('toggle', domElement);
      props = rawProps;
      break;

    case 'input':
      initWrapperState(domElement, rawProps);
      props = getHostProps(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;

    case 'option':
      validateProps(domElement, rawProps);
      props = rawProps;
      break;

    case 'select':
      initWrapperState$1(domElement, rawProps);
      props = getHostProps$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;

    case 'textarea':
      initWrapperState$2(domElement, rawProps);
      props = getHostProps$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;

    default:
      props = rawProps;
  }

  assertValidProps(tag, props);
  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, false);
      break;

    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement);
      break;

    case 'option':
      postMountWrapper$1(domElement, rawProps);
      break;

    case 'select':
      postMountWrapper$2(domElement, rawProps);
      break;

    default:
      if (typeof props.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }
} // Calculate the diff between the two objects.

function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  {
    validatePropertiesInDevelopment(tag, nextRawProps);
  }

  var updatePayload = null;
  var lastProps;
  var nextProps;

  switch (tag) {
    case 'input':
      lastProps = getHostProps(domElement, lastRawProps);
      nextProps = getHostProps(domElement, nextRawProps);
      updatePayload = [];
      break;

    case 'select':
      lastProps = getHostProps$1(domElement, lastRawProps);
      nextProps = getHostProps$1(domElement, nextRawProps);
      updatePayload = [];
      break;

    case 'textarea':
      lastProps = getHostProps$2(domElement, lastRawProps);
      nextProps = getHostProps$2(domElement, nextRawProps);
      updatePayload = [];
      break;

    default:
      lastProps = lastRawProps;
      nextProps = nextRawProps;

      if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }

  assertValidProps(tag, nextProps);
  var propKey;
  var styleName;
  var styleUpdates = null;

  for (propKey in lastProps) {
    if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
      continue;
    }

    if (propKey === STYLE) {
      var lastStyle = lastProps[propKey];

      for (styleName in lastStyle) {
        if (lastStyle.hasOwnProperty(styleName)) {
          if (!styleUpdates) {
            styleUpdates = {};
          }

          styleUpdates[styleName] = '';
        }
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (propKey === AUTOFOCUS) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      // This is a special case. If any listener updates we need to ensure
      // that the "current" fiber pointer gets updated so we need a commit
      // to update this element.
      if (!updatePayload) {
        updatePayload = [];
      }
    } else {
      // For all other deleted properties we add it to the queue. We use
      // the allowed property list in the commit phase instead.
      (updatePayload = updatePayload || []).push(propKey, null);
    }
  }

  for (propKey in nextProps) {
    var nextProp = nextProps[propKey];
    var lastProp = lastProps != null ? lastProps[propKey] : undefined;

    if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
      continue;
    }

    if (propKey === STYLE) {
      {
        if (nextProp) {
          // Freeze the next style object so that we can assume it won't be
          // mutated. We have already warned for this in the past.
          Object.freeze(nextProp);
        }
      }

      if (lastProp) {
        // Unset styles on `lastProp` but not on `nextProp`.
        for (styleName in lastProp) {
          if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
            if (!styleUpdates) {
              styleUpdates = {};
            }

            styleUpdates[styleName] = '';
          }
        } // Update styles that changed since `lastProp`.


        for (styleName in nextProp) {
          if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
            if (!styleUpdates) {
              styleUpdates = {};
            }

            styleUpdates[styleName] = nextProp[styleName];
          }
        }
      } else {
        // Relies on `updateStylesByID` not mutating `styleUpdates`.
        if (!styleUpdates) {
          if (!updatePayload) {
            updatePayload = [];
          }

          updatePayload.push(propKey, styleUpdates);
        }

        styleUpdates = nextProp;
      }
    } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
      var nextHtml = nextProp ? nextProp[HTML$1] : undefined;
      var lastHtml = lastProp ? lastProp[HTML$1] : undefined;

      if (nextHtml != null) {
        if (lastHtml !== nextHtml) {
          (updatePayload = updatePayload || []).push(propKey, nextHtml);
        }
      }
    } else if (propKey === CHILDREN) {
      if (typeof nextProp === 'string' || typeof nextProp === 'number') {
        (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
      }
    } else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING) ; else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        // We eagerly listen to this even though we haven't committed yet.
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }

      if (!updatePayload && lastProp !== nextProp) {
        // This is a special case. If any listener updates we need to ensure
        // that the "current" props pointer gets updated so we need a commit
        // to update this element.
        updatePayload = [];
      }
    } else {
      // For any other property we always add it to the queue and then we
      // filter it out using the allowed property list during the commit.
      (updatePayload = updatePayload || []).push(propKey, nextProp);
    }
  }

  if (styleUpdates) {
    {
      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);
    }

    (updatePayload = updatePayload || []).push(STYLE, styleUpdates);
  }

  return updatePayload;
} // Apply the diff.

function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  // Update checked *before* name.
  // In the middle of an update, it is possible to have multiple checked.
  // When a checked radio tries to change name, browser makes another radio's checked false.
  if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
    updateChecked(domElement, nextRawProps);
  }

  var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  var isCustomComponentTag = isCustomComponent(tag, nextRawProps); // Apply the diff.

  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props
  // changed.

  switch (tag) {
    case 'input':
      // Update the wrapper around inputs *after* updating props. This has to
      // happen after `updateDOMProperties`. Otherwise HTML5 input validations
      // raise warnings and prevent the new value from being assigned.
      updateWrapper(domElement, nextRawProps);
      break;

    case 'textarea':
      updateWrapper$1(domElement, nextRawProps);
      break;

    case 'select':
      // <select> value update needs to occur after <option> children
      // reconciliation
      postUpdateWrapper(domElement, nextRawProps);
      break;
  }
}

function getPossibleStandardName(propName) {
  {
    var lowerCasedName = propName.toLowerCase();

    if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
      return null;
    }

    return possibleStandardNames[lowerCasedName] || null;
  }
}

function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement, isConcurrentMode, shouldWarnDev) {
  var isCustomComponentTag;
  var extraAttributeNames;

  {
    isCustomComponentTag = isCustomComponent(tag, rawProps);
    validatePropertiesInDevelopment(tag, rawProps);
  } // TODO: Make sure that we check isMounted before firing any of these events.


  switch (tag) {
    case 'dialog':
      listenToNonDelegatedEvent('cancel', domElement);
      listenToNonDelegatedEvent('close', domElement);
      break;

    case 'iframe':
    case 'object':
    case 'embed':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the load event.
      listenToNonDelegatedEvent('load', domElement);
      break;

    case 'video':
    case 'audio':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for all the media events.
      for (var i = 0; i < mediaEventTypes.length; i++) {
        listenToNonDelegatedEvent(mediaEventTypes[i], domElement);
      }

      break;

    case 'source':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the error event.
      listenToNonDelegatedEvent('error', domElement);
      break;

    case 'img':
    case 'image':
    case 'link':
      // We listen to these events in case to ensure emulated bubble
      // listeners still fire for error and load events.
      listenToNonDelegatedEvent('error', domElement);
      listenToNonDelegatedEvent('load', domElement);
      break;

    case 'details':
      // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the toggle event.
      listenToNonDelegatedEvent('toggle', domElement);
      break;

    case 'input':
      initWrapperState(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;

    case 'option':
      validateProps(domElement, rawProps);
      break;

    case 'select':
      initWrapperState$1(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;

    case 'textarea':
      initWrapperState$2(domElement, rawProps); // We listen to this event in case to ensure emulated bubble
      // listeners still fire for the invalid event.

      listenToNonDelegatedEvent('invalid', domElement);
      break;
  }

  assertValidProps(tag, rawProps);

  {
    extraAttributeNames = new Set();
    var attributes = domElement.attributes;

    for (var _i = 0; _i < attributes.length; _i++) {
      var name = attributes[_i].name.toLowerCase();

      switch (name) {
        // Controlled attributes are not validated
        // TODO: Only ignore them on controlled tags.
        case 'value':
          break;

        case 'checked':
          break;

        case 'selected':
          break;

        default:
          // Intentionally use the original name.
          // See discussion in https://github.com/facebook/react/pull/10676.
          extraAttributeNames.add(attributes[_i].name);
      }
    }
  }

  var updatePayload = null;

  for (var propKey in rawProps) {
    if (!rawProps.hasOwnProperty(propKey)) {
      continue;
    }

    var nextProp = rawProps[propKey];

    if (propKey === CHILDREN) {
      // For text content children we compare against textContent. This
      // might match additional HTML that is hidden when we read it using
      // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
      // satisfies our requirement. Our requirement is not to produce perfect
      // HTML and attributes. Ideally we should preserve structure but it's
      // ok not to if the visible content is still enough to indicate what
      // even listeners these nodes might be wired up to.
      // TODO: Warn if there is more than a single textNode as a child.
      // TODO: Should we use domElement.firstChild.nodeValue to compare?
      if (typeof nextProp === 'string') {
        if (domElement.textContent !== nextProp) {
          if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
            checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);
          }

          updatePayload = [CHILDREN, nextProp];
        }
      } else if (typeof nextProp === 'number') {
        if (domElement.textContent !== '' + nextProp) {
          if (rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
            checkForUnmatchedText(domElement.textContent, nextProp, isConcurrentMode, shouldWarnDev);
          }

          updatePayload = [CHILDREN, '' + nextProp];
        }
      }
    } else if (registrationNameDependencies.hasOwnProperty(propKey)) {
      if (nextProp != null) {
        if ( typeof nextProp !== 'function') {
          warnForInvalidEventListener(propKey, nextProp);
        }

        if (propKey === 'onScroll') {
          listenToNonDelegatedEvent('scroll', domElement);
        }
      }
    } else if (shouldWarnDev && true && // Convince Flow we've calculated it (it's DEV-only in this method.)
    typeof isCustomComponentTag === 'boolean') {
      // Validate that the properties correspond to their expected values.
      var serverValue = void 0;
      var propertyInfo = isCustomComponentTag && enableCustomElementPropertySupport ? null : getPropertyInfo(propKey);

      if (rawProps[SUPPRESS_HYDRATION_WARNING] === true) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING || // Controlled attributes are not validated
      // TODO: Only ignore them on controlled tags.
      propKey === 'value' || propKey === 'checked' || propKey === 'selected') ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
        var serverHTML = domElement.innerHTML;
        var nextHtml = nextProp ? nextProp[HTML$1] : undefined;

        if (nextHtml != null) {
          var expectedHTML = normalizeHTML(domElement, nextHtml);

          if (expectedHTML !== serverHTML) {
            warnForPropDifference(propKey, serverHTML, expectedHTML);
          }
        }
      } else if (propKey === STYLE) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey);

        if (canDiffStyleForHydrationWarning) {
          var expectedStyle = createDangerousStringForStyles(nextProp);
          serverValue = domElement.getAttribute('style');

          if (expectedStyle !== serverValue) {
            warnForPropDifference(propKey, serverValue, expectedStyle);
          }
        }
      } else if (isCustomComponentTag && !enableCustomElementPropertySupport) {
        // $FlowFixMe - Should be inferred as not undefined.
        extraAttributeNames.delete(propKey.toLowerCase());
        serverValue = getValueForAttribute(domElement, propKey, nextProp);

        if (nextProp !== serverValue) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
        var isMismatchDueToBadCasing = false;

        if (propertyInfo !== null) {
          // $FlowFixMe - Should be inferred as not undefined.
          extraAttributeNames.delete(propertyInfo.attributeName);
          serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
        } else {
          var ownNamespace = parentNamespace;

          if (ownNamespace === HTML_NAMESPACE) {
            ownNamespace = getIntrinsicNamespace(tag);
          }

          if (ownNamespace === HTML_NAMESPACE) {
            // $FlowFixMe - Should be inferred as not undefined.
            extraAttributeNames.delete(propKey.toLowerCase());
          } else {
            var standardName = getPossibleStandardName(propKey);

            if (standardName !== null && standardName !== propKey) {
              // If an SVG prop is supplied with bad casing, it will
              // be successfully parsed from HTML, but will produce a mismatch
              // (and would be incorrectly rendered on the client).
              // However, we already warn about bad casing elsewhere.
              // So we'll skip the misleading extra mismatch warning in this case.
              isMismatchDueToBadCasing = true; // $FlowFixMe - Should be inferred as not undefined.

              extraAttributeNames.delete(standardName);
            } // $FlowFixMe - Should be inferred as not undefined.


            extraAttributeNames.delete(propKey);
          }

          serverValue = getValueForAttribute(domElement, propKey, nextProp);
        }

        var dontWarnCustomElement = enableCustomElementPropertySupport  ;

        if (!dontWarnCustomElement && nextProp !== serverValue && !isMismatchDueToBadCasing) {
          warnForPropDifference(propKey, serverValue, nextProp);
        }
      }
    }
  }

  {
    if (shouldWarnDev) {
      if ( // $FlowFixMe - Should be inferred as not undefined.
      extraAttributeNames.size > 0 && rawProps[SUPPRESS_HYDRATION_WARNING] !== true) {
        // $FlowFixMe - Should be inferred as not undefined.
        warnForExtraAttributes(extraAttributeNames);
      }
    }
  }

  switch (tag) {
    case 'input':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper(domElement, rawProps, true);
      break;

    case 'textarea':
      // TODO: Make sure we check if this is still unmounted or do any clean
      // up necessary since we never stop tracking anymore.
      track(domElement);
      postMountWrapper$3(domElement);
      break;

    case 'select':
    case 'option':
      // For input and textarea we current always set the value property at
      // post mount to force it to diverge from attributes. However, for
      // option and select we don't quite do the same thing and select
      // is not resilient to the DOM state changing so we don't do that here.
      // TODO: Consider not doing this for input and textarea.
      break;

    default:
      if (typeof rawProps.onClick === 'function') {
        // TODO: This cast may not be sound for SVG, MathML or custom elements.
        trapClickOnNonInteractiveElement(domElement);
      }

      break;
  }

  return updatePayload;
}
function diffHydratedText(textNode, text, isConcurrentMode) {
  var isDifferent = textNode.nodeValue !== text;
  return isDifferent;
}
function warnForDeletedHydratableElement(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  }
}
function warnForDeletedHydratableText(parentNode, child) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  }
}
function warnForInsertedHydratedElement(parentNode, tag, props) {
  {
    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  }
}
function warnForInsertedHydratedText(parentNode, text) {
  {
    if (text === '') {
      // We expect to insert empty text nodes since they're not represented in
      // the HTML.
      // TODO: Remove this special case if we can just avoid inserting empty
      // text nodes.
      return;
    }

    if (didWarnInvalidHydration) {
      return;
    }

    didWarnInvalidHydration = true;

    error('Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  }
}
function restoreControlledState$3(domElement, tag, props) {
  switch (tag) {
    case 'input':
      restoreControlledState(domElement, props);
      return;

    case 'textarea':
      restoreControlledState$2(domElement, props);
      return;

    case 'select':
      restoreControlledState$1(domElement, props);
      return;
  }
}

var validateDOMNesting = function () {};

var updatedAncestorInfo = function () {};

{
  // This validation code was written based on the HTML5 parsing spec:
  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  //
  // Note: this does not catch all invalid nesting, nor does it try to (as it's
  // not clear what practical benefit doing so provides); instead, we warn only
  // for cases where the parser will give a parse tree differing from what React
  // intended. For example, <b><div></div></b> is invalid but we don't warn
  // because it still parses correctly; we do warn for other cases like nested
  // <p> tags where the beginning of the second element implicitly closes the
  // first, causing a confusing mess.
  // https://html.spec.whatwg.org/multipage/syntax.html#special
  var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope

  var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  // TODO: Distinguish by namespace here -- for <title>, including it here
  // errs on the side of fewer warnings
  'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope

  var buttonScopeTags = inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags

  var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  var emptyAncestorInfo = {
    current: null,
    formTag: null,
    aTagInScope: null,
    buttonTagInScope: null,
    nobrTagInScope: null,
    pTagInButtonScope: null,
    listItemTagAutoclosing: null,
    dlItemTagAutoclosing: null
  };

  updatedAncestorInfo = function (oldInfo, tag) {
    var ancestorInfo = assign({}, oldInfo || emptyAncestorInfo);

    var info = {
      tag: tag
    };

    if (inScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.aTagInScope = null;
      ancestorInfo.buttonTagInScope = null;
      ancestorInfo.nobrTagInScope = null;
    }

    if (buttonScopeTags.indexOf(tag) !== -1) {
      ancestorInfo.pTagInButtonScope = null;
    } // See rules for 'li', 'dd', 'dt' start tags in
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


    if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
      ancestorInfo.listItemTagAutoclosing = null;
      ancestorInfo.dlItemTagAutoclosing = null;
    }

    ancestorInfo.current = info;

    if (tag === 'form') {
      ancestorInfo.formTag = info;
    }

    if (tag === 'a') {
      ancestorInfo.aTagInScope = info;
    }

    if (tag === 'button') {
      ancestorInfo.buttonTagInScope = info;
    }

    if (tag === 'nobr') {
      ancestorInfo.nobrTagInScope = info;
    }

    if (tag === 'p') {
      ancestorInfo.pTagInButtonScope = info;
    }

    if (tag === 'li') {
      ancestorInfo.listItemTagAutoclosing = info;
    }

    if (tag === 'dd' || tag === 'dt') {
      ancestorInfo.dlItemTagAutoclosing = info;
    }

    return ancestorInfo;
  };
  /**
   * Returns whether
   */


  var isTagValidWithParent = function (tag, parentTag) {
    // First, let's check if we're in an unusual parsing mode...
    switch (parentTag) {
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
      case 'select':
        return tag === 'option' || tag === 'optgroup' || tag === '#text';

      case 'optgroup':
        return tag === 'option' || tag === '#text';
      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
      // but

      case 'option':
        return tag === '#text';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
      // No special behavior since these rules fall back to "in body" mode for
      // all except special table nodes which cause bad parsing behavior anyway.
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr

      case 'tr':
        return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody

      case 'tbody':
      case 'thead':
      case 'tfoot':
        return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup

      case 'colgroup':
        return tag === 'col' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable

      case 'table':
        return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead

      case 'head':
        return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element

      case 'html':
        return tag === 'head' || tag === 'body' || tag === 'frameset';

      case 'frameset':
        return tag === 'frame';

      case '#document':
        return tag === 'html';
    } // Probably in the "in body" parsing mode, so we outlaw only tag combos
    // where the parsing rules cause implicit opens or closes to be added.
    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody


    switch (tag) {
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';

      case 'rp':
      case 'rt':
        return impliedEndTags.indexOf(parentTag) === -1;

      case 'body':
      case 'caption':
      case 'col':
      case 'colgroup':
      case 'frameset':
      case 'frame':
      case 'head':
      case 'html':
      case 'tbody':
      case 'td':
      case 'tfoot':
      case 'th':
      case 'thead':
      case 'tr':
        // These tags are only valid with a few parents that have special child
        // parsing rules -- if we're down here, then none of those matched and
        // so we allow it only if we don't know what the parent is, as all other
        // cases are invalid.
        return parentTag == null;
    }

    return true;
  };
  /**
   * Returns whether
   */


  var findInvalidAncestorForTag = function (tag, ancestorInfo) {
    switch (tag) {
      case 'address':
      case 'article':
      case 'aside':
      case 'blockquote':
      case 'center':
      case 'details':
      case 'dialog':
      case 'dir':
      case 'div':
      case 'dl':
      case 'fieldset':
      case 'figcaption':
      case 'figure':
      case 'footer':
      case 'header':
      case 'hgroup':
      case 'main':
      case 'menu':
      case 'nav':
      case 'ol':
      case 'p':
      case 'section':
      case 'summary':
      case 'ul':
      case 'pre':
      case 'listing':
      case 'table':
      case 'hr':
      case 'xmp':
      case 'h1':
      case 'h2':
      case 'h3':
      case 'h4':
      case 'h5':
      case 'h6':
        return ancestorInfo.pTagInButtonScope;

      case 'form':
        return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;

      case 'li':
        return ancestorInfo.listItemTagAutoclosing;

      case 'dd':
      case 'dt':
        return ancestorInfo.dlItemTagAutoclosing;

      case 'button':
        return ancestorInfo.buttonTagInScope;

      case 'a':
        // Spec says something about storing a list of markers, but it sounds
        // equivalent to this check.
        return ancestorInfo.aTagInScope;

      case 'nobr':
        return ancestorInfo.nobrTagInScope;
    }

    return null;
  };

  var didWarn$1 = {};

  validateDOMNesting = function (childTag, childText, ancestorInfo) {
    ancestorInfo = ancestorInfo || emptyAncestorInfo;
    var parentInfo = ancestorInfo.current;
    var parentTag = parentInfo && parentInfo.tag;

    if (childText != null) {
      if (childTag != null) {
        error('validateDOMNesting: when childText is passed, childTag should be null');
      }

      childTag = '#text';
    }

    var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
    var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
    var invalidParentOrAncestor = invalidParent || invalidAncestor;

    if (!invalidParentOrAncestor) {
      return;
    }

    var ancestorTag = invalidParentOrAncestor.tag;
    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag;

    if (didWarn$1[warnKey]) {
      return;
    }

    didWarn$1[warnKey] = true;
    var tagDisplayName = childTag;
    var whitespaceInfo = '';

    if (childTag === '#text') {
      if (/\S/.test(childText)) {
        tagDisplayName = 'Text nodes';
      } else {
        tagDisplayName = 'Whitespace text nodes';
        whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
      }
    } else {
      tagDisplayName = '<' + childTag + '>';
    }

    if (invalidParent) {
      var info = '';

      if (ancestorTag === 'table' && childTag === 'tr') {
        info += ' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';
      }

      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);
    } else {
      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);
    }
  };
}

var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
var SUSPENSE_START_DATA = '$';
var SUSPENSE_END_DATA = '/$';
var SUSPENSE_PENDING_START_DATA = '$?';
var SUSPENSE_FALLBACK_START_DATA = '$!';
var STYLE$1 = 'style';
var eventsEnabled = null;
var selectionInformation = null;
function getRootHostContext(rootContainerInstance) {
  var type;
  var namespace;
  var nodeType = rootContainerInstance.nodeType;

  switch (nodeType) {
    case DOCUMENT_NODE:
    case DOCUMENT_FRAGMENT_NODE:
      {
        type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
        var root = rootContainerInstance.documentElement;
        namespace = root ? root.namespaceURI : getChildNamespace(null, '');
        break;
      }

    default:
      {
        var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
        var ownNamespace = container.namespaceURI || null;
        type = container.tagName;
        namespace = getChildNamespace(ownNamespace, type);
        break;
      }
  }

  {
    var validatedTag = type.toLowerCase();
    var ancestorInfo = updatedAncestorInfo(null, validatedTag);
    return {
      namespace: namespace,
      ancestorInfo: ancestorInfo
    };
  }
}
function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  {
    var parentHostContextDev = parentHostContext;
    var namespace = getChildNamespace(parentHostContextDev.namespace, type);
    var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
    return {
      namespace: namespace,
      ancestorInfo: ancestorInfo
    };
  }
}
function getPublicInstance(instance) {
  return instance;
}
function prepareForCommit(containerInfo) {
  eventsEnabled = isEnabled();
  selectionInformation = getSelectionInformation();
  var activeInstance = null;

  setEnabled(false);
  return activeInstance;
}
function resetAfterCommit(containerInfo) {
  restoreSelection(selectionInformation);
  setEnabled(eventsEnabled);
  eventsEnabled = null;
  selectionInformation = null;
}
function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  var parentNamespace;

  {
    // TODO: take namespace into account when validating.
    var hostContextDev = hostContext;
    validateDOMNesting(type, null, hostContextDev.ancestorInfo);

    if (typeof props.children === 'string' || typeof props.children === 'number') {
      var string = '' + props.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }

    parentNamespace = hostContextDev.namespace;
  }

  var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  precacheFiberNode(internalInstanceHandle, domElement);
  updateFiberProps(domElement, props);
  return domElement;
}
function appendInitialChild(parentInstance, child) {
  parentInstance.appendChild(child);
}
function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  setInitialProperties(domElement, type, props, rootContainerInstance);

  switch (type) {
    case 'button':
    case 'input':
    case 'select':
    case 'textarea':
      return !!props.autoFocus;

    case 'img':
      return true;

    default:
      return false;
  }
}
function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  {
    var hostContextDev = hostContext;

    if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
      var string = '' + newProps.children;
      var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
      validateDOMNesting(null, string, ownAncestorInfo);
    }
  }

  return diffProperties(domElement, type, oldProps, newProps);
}
function shouldSetTextContent(type, props) {
  return type === 'textarea' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
}
function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  {
    var hostContextDev = hostContext;
    validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  }

  var textNode = createTextNode(text, rootContainerInstance);
  precacheFiberNode(internalInstanceHandle, textNode);
  return textNode;
}
function getCurrentEventPriority() {
  var currentEvent = window.event;

  if (currentEvent === undefined) {
    return DefaultEventPriority;
  }

  return getEventPriority(currentEvent.type);
}
// if a component just imports ReactDOM (e.g. for findDOMNode).
// Some environments might not have setTimeout or clearTimeout.

var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
var noTimeout = -1;
var localPromise = typeof Promise === 'function' ? Promise : undefined; // -------------------
var scheduleMicrotask = typeof queueMicrotask === 'function' ? queueMicrotask : typeof localPromise !== 'undefined' ? function (callback) {
  return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick);
} : scheduleTimeout; // TODO: Determine the best fallback here.

function handleErrorInNextTick(error) {
  setTimeout(function () {
    throw error;
  });
} // -------------------
function commitMount(domElement, type, newProps, internalInstanceHandle) {
  // Despite the naming that might imply otherwise, this method only
  // fires if there is an `Update` effect scheduled during mounting.
  // This happens if `finalizeInitialChildren` returns `true` (which it
  // does to implement the `autoFocus` attribute on the client). But
  // there are also other cases when this might happen (such as patching
  // up text content during hydration mismatch). So we'll check this again.
  switch (type) {
    case 'button':
    case 'input':
    case 'select':
    case 'textarea':
      if (newProps.autoFocus) {
        domElement.focus();
      }

      return;

    case 'img':
      {
        if (newProps.src) {
          domElement.src = newProps.src;
        }

        return;
      }
  }
}
function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  // Apply the diff to the DOM node.
  updateProperties(domElement, updatePayload, type, oldProps, newProps); // Update the props handle so that we know which props are the ones with
  // with current event handlers.

  updateFiberProps(domElement, newProps);
}
function resetTextContent(domElement) {
  setTextContent(domElement, '');
}
function commitTextUpdate(textInstance, oldText, newText) {
  textInstance.nodeValue = newText;
}
function appendChild(parentInstance, child) {
  parentInstance.appendChild(child);
}
function appendChildToContainer(container, child) {
  var parentNode;

  if (container.nodeType === COMMENT_NODE) {
    parentNode = container.parentNode;
    parentNode.insertBefore(child, container);
  } else {
    parentNode = container;
    parentNode.appendChild(child);
  } // This container might be used for a portal.
  // If something inside a portal is clicked, that click should bubble
  // through the React tree. However, on Mobile Safari the click would
  // never bubble through the *DOM* tree unless an ancestor with onclick
  // event exists. So we wouldn't see it and dispatch it.
  // This is why we ensure that non React root containers have inline onclick
  // defined.
  // https://github.com/facebook/react/issues/11918


  var reactRootContainer = container._reactRootContainer;

  if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
    // TODO: This cast may not be sound for SVG, MathML or custom elements.
    trapClickOnNonInteractiveElement(parentNode);
  }
}
function insertBefore(parentInstance, child, beforeChild) {
  parentInstance.insertBefore(child, beforeChild);
}
function insertInContainerBefore(container, child, beforeChild) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.insertBefore(child, beforeChild);
  } else {
    container.insertBefore(child, beforeChild);
  }
}

function removeChild(parentInstance, child) {
  parentInstance.removeChild(child);
}
function removeChildFromContainer(container, child) {
  if (container.nodeType === COMMENT_NODE) {
    container.parentNode.removeChild(child);
  } else {
    container.removeChild(child);
  }
}
function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  var node = suspenseInstance; // Delete all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  do {
    var nextNode = node.nextSibling;
    parentInstance.removeChild(node);

    if (nextNode && nextNode.nodeType === COMMENT_NODE) {
      var data = nextNode.data;

      if (data === SUSPENSE_END_DATA) {
        if (depth === 0) {
          parentInstance.removeChild(nextNode); // Retry if any event replaying was blocked on this.

          retryIfBlockedOn(suspenseInstance);
          return;
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
        depth++;
      }
    }

    node = nextNode;
  } while (node); // TODO: Warn, we didn't find the end comment boundary.
  // Retry if any event replaying was blocked on this.


  retryIfBlockedOn(suspenseInstance);
}
function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  if (container.nodeType === COMMENT_NODE) {
    clearSuspenseBoundary(container.parentNode, suspenseInstance);
  } else if (container.nodeType === ELEMENT_NODE) {
    clearSuspenseBoundary(container, suspenseInstance);
  } // Retry if any event replaying was blocked on this.


  retryIfBlockedOn(container);
}
function hideInstance(instance) {
  // TODO: Does this work for all element types? What about MathML? Should we
  // pass host context to this method?
  instance = instance;
  var style = instance.style;

  if (typeof style.setProperty === 'function') {
    style.setProperty('display', 'none', 'important');
  } else {
    style.display = 'none';
  }
}
function hideTextInstance(textInstance) {
  textInstance.nodeValue = '';
}
function unhideInstance(instance, props) {
  instance = instance;
  var styleProp = props[STYLE$1];
  var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  instance.style.display = dangerousStyleValue('display', display);
}
function unhideTextInstance(textInstance, text) {
  textInstance.nodeValue = text;
}
function clearContainer(container) {
  if (container.nodeType === ELEMENT_NODE) {
    container.textContent = '';
  } else if (container.nodeType === DOCUMENT_NODE) {
    if (container.documentElement) {
      container.removeChild(container.documentElement);
    }
  }
} // -------------------
function canHydrateInstance(instance, type, props) {
  if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
    return null;
  } // This has now been refined to an element node.


  return instance;
}
function canHydrateTextInstance(instance, text) {
  if (text === '' || instance.nodeType !== TEXT_NODE) {
    // Empty strings are not parsed by HTML so there won't be a correct match here.
    return null;
  } // This has now been refined to a text node.


  return instance;
}
function canHydrateSuspenseInstance(instance) {
  if (instance.nodeType !== COMMENT_NODE) {
    // Empty strings are not parsed by HTML so there won't be a correct match here.
    return null;
  } // This has now been refined to a suspense node.


  return instance;
}
function isSuspenseInstancePending(instance) {
  return instance.data === SUSPENSE_PENDING_START_DATA;
}
function isSuspenseInstanceFallback(instance) {
  return instance.data === SUSPENSE_FALLBACK_START_DATA;
}
function getSuspenseInstanceFallbackErrorDetails(instance) {
  var dataset = instance.nextSibling && instance.nextSibling.dataset;
  var digest, message, stack;

  if (dataset) {
    digest = dataset.dgst;

    {
      message = dataset.msg;
      stack = dataset.stck;
    }
  }

  {
    return {
      message: message,
      digest: digest,
      stack: stack
    };
  } // let value = {message: undefined, hash: undefined};
  // const nextSibling = instance.nextSibling;
  // if (nextSibling) {
  //   const dataset = ((nextSibling: any): HTMLTemplateElement).dataset;
  //   value.message = dataset.msg;
  //   value.hash = dataset.hash;
  //   if (true) {
  //     value.stack = dataset.stack;
  //   }
  // }
  // return value;

}
function registerSuspenseInstanceRetry(instance, callback) {
  instance._reactRetry = callback;
}

function getNextHydratable(node) {
  // Skip non-hydratable nodes.
  for (; node != null; node = node.nextSibling) {
    var nodeType = node.nodeType;

    if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
      break;
    }

    if (nodeType === COMMENT_NODE) {
      var nodeData = node.data;

      if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
        break;
      }

      if (nodeData === SUSPENSE_END_DATA) {
        return null;
      }
    }
  }

  return node;
}

function getNextHydratableSibling(instance) {
  return getNextHydratable(instance.nextSibling);
}
function getFirstHydratableChild(parentInstance) {
  return getNextHydratable(parentInstance.firstChild);
}
function getFirstHydratableChildWithinContainer(parentContainer) {
  return getNextHydratable(parentContainer.firstChild);
}
function getFirstHydratableChildWithinSuspenseInstance(parentInstance) {
  return getNextHydratable(parentInstance.nextSibling);
}
function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle, shouldWarnDev) {
  precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events
  // get attached.

  updateFiberProps(instance, props);
  var parentNamespace;

  {
    var hostContextDev = hostContext;
    parentNamespace = hostContextDev.namespace;
  } // TODO: Temporary hack to check if we're in a concurrent root. We can delete
  // when the legacy root API is removed.


  var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;
  return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance, isConcurrentMode, shouldWarnDev);
}
function hydrateTextInstance(textInstance, text, internalInstanceHandle, shouldWarnDev) {
  precacheFiberNode(internalInstanceHandle, textInstance); // TODO: Temporary hack to check if we're in a concurrent root. We can delete
  // when the legacy root API is removed.

  var isConcurrentMode = (internalInstanceHandle.mode & ConcurrentMode) !== NoMode;
  return diffHydratedText(textInstance, text);
}
function hydrateSuspenseInstance(suspenseInstance, internalInstanceHandle) {
  precacheFiberNode(internalInstanceHandle, suspenseInstance);
}
function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  var node = suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_END_DATA) {
        if (depth === 0) {
          return getNextHydratableSibling(node);
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        depth++;
      }
    }

    node = node.nextSibling;
  } // TODO: Warn, we didn't find the end comment boundary.


  return null;
} // Returns the SuspenseInstance if this node is a direct child of a
// SuspenseInstance. I.e. if its previous sibling is a Comment with
// SUSPENSE_x_START_DATA. Otherwise, null.

function getParentSuspenseInstance(targetInstance) {
  var node = targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.
  // There might be nested nodes so we need to keep track of how
  // deep we are and only break out when we're back on top.

  var depth = 0;

  while (node) {
    if (node.nodeType === COMMENT_NODE) {
      var data = node.data;

      if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) {
        if (depth === 0) {
          return node;
        } else {
          depth--;
        }
      } else if (data === SUSPENSE_END_DATA) {
        depth++;
      }
    }

    node = node.previousSibling;
  }

  return null;
}
function commitHydratedContainer(container) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(container);
}
function commitHydratedSuspenseInstance(suspenseInstance) {
  // Retry if any event replaying was blocked on this.
  retryIfBlockedOn(suspenseInstance);
}
function shouldDeleteUnhydratedTailInstances(parentType) {
  return parentType !== 'head' && parentType !== 'body';
}
function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text, isConcurrentMode) {
  var shouldWarnDev = true;
  checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);
}
function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text, isConcurrentMode) {
  if (parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
    var shouldWarnDev = true;
    checkForUnmatchedText(textInstance.nodeValue, text, isConcurrentMode, shouldWarnDev);
  }
}
function didNotHydrateInstanceWithinContainer(parentContainer, instance) {
  {
    if (instance.nodeType === ELEMENT_NODE) {
      warnForDeletedHydratableElement(parentContainer, instance);
    } else if (instance.nodeType === COMMENT_NODE) ; else {
      warnForDeletedHydratableText(parentContainer, instance);
    }
  }
}
function didNotHydrateInstanceWithinSuspenseInstance(parentInstance, instance) {
  {
    // $FlowFixMe: Only Element or Document can be parent nodes.
    var parentNode = parentInstance.parentNode;

    if (parentNode !== null) {
      if (instance.nodeType === ELEMENT_NODE) {
        warnForDeletedHydratableElement(parentNode, instance);
      } else if (instance.nodeType === COMMENT_NODE) ; else {
        warnForDeletedHydratableText(parentNode, instance);
      }
    }
  }
}
function didNotHydrateInstance(parentType, parentProps, parentInstance, instance, isConcurrentMode) {
  {
    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
      if (instance.nodeType === ELEMENT_NODE) {
        warnForDeletedHydratableElement(parentInstance, instance);
      } else if (instance.nodeType === COMMENT_NODE) ; else {
        warnForDeletedHydratableText(parentInstance, instance);
      }
    }
  }
}
function didNotFindHydratableInstanceWithinContainer(parentContainer, type, props) {
  {
    warnForInsertedHydratedElement(parentContainer, type);
  }
}
function didNotFindHydratableTextInstanceWithinContainer(parentContainer, text) {
  {
    warnForInsertedHydratedText(parentContainer, text);
  }
}
function didNotFindHydratableInstanceWithinSuspenseInstance(parentInstance, type, props) {
  {
    // $FlowFixMe: Only Element or Document can be parent nodes.
    var parentNode = parentInstance.parentNode;
    if (parentNode !== null) warnForInsertedHydratedElement(parentNode, type);
  }
}
function didNotFindHydratableTextInstanceWithinSuspenseInstance(parentInstance, text) {
  {
    // $FlowFixMe: Only Element or Document can be parent nodes.
    var parentNode = parentInstance.parentNode;
    if (parentNode !== null) warnForInsertedHydratedText(parentNode, text);
  }
}
function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props, isConcurrentMode) {
  {
    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
      warnForInsertedHydratedElement(parentInstance, type);
    }
  }
}
function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text, isConcurrentMode) {
  {
    if (isConcurrentMode || parentProps[SUPPRESS_HYDRATION_WARNING$1] !== true) {
      warnForInsertedHydratedText(parentInstance, text);
    }
  }
}
function errorHydratingContainer(parentContainer) {
  {
    // TODO: This gets logged by onRecoverableError, too, so we should be
    // able to remove it.
    error('An error occurred during hydration. The server HTML was replaced with client content in <%s>.', parentContainer.nodeName.toLowerCase());
  }
}
function preparePortalMount(portalInstance) {
  listenToAllSupportedEvents(portalInstance);
}

var randomKey = Math.random().toString(36).slice(2);
var internalInstanceKey = '__reactFiber$' + randomKey;
var internalPropsKey = '__reactProps$' + randomKey;
var internalContainerInstanceKey = '__reactContainer$' + randomKey;
var internalEventHandlersKey = '__reactEvents$' + randomKey;
var internalEventHandlerListenersKey = '__reactListeners$' + randomKey;
var internalEventHandlesSetKey = '__reactHandles$' + randomKey;
function detachDeletedInstance(node) {
  // TODO: This function is only called on host components. I don't think all of
  // these fields are relevant.
  delete node[internalInstanceKey];
  delete node[internalPropsKey];
  delete node[internalEventHandlersKey];
  delete node[internalEventHandlerListenersKey];
  delete node[internalEventHandlesSetKey];
}
function precacheFiberNode(hostInst, node) {
  node[internalInstanceKey] = hostInst;
}
function markContainerAsRoot(hostRoot, node) {
  node[internalContainerInstanceKey] = hostRoot;
}
function unmarkContainerAsRoot(node) {
  node[internalContainerInstanceKey] = null;
}
function isContainerMarkedAsRoot(node) {
  return !!node[internalContainerInstanceKey];
} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
// If the target node is part of a hydrated or not yet rendered subtree, then
// this may also return a SuspenseComponent or HostRoot to indicate that.
// Conceptually the HostRoot fiber is a child of the Container node. So if you
// pass the Container node as the targetNode, you will not actually get the
// HostRoot back. To get to the HostRoot, you need to pass a child of it.
// The same thing applies to Suspense boundaries.

function getClosestInstanceFromNode(targetNode) {
  var targetInst = targetNode[internalInstanceKey];

  if (targetInst) {
    // Don't return HostRoot or SuspenseComponent here.
    return targetInst;
  } // If the direct event target isn't a React owned DOM node, we need to look
  // to see if one of its parents is a React owned DOM node.


  var parentNode = targetNode.parentNode;

  while (parentNode) {
    // We'll check if this is a container root that could include
    // React nodes in the future. We need to check this first because
    // if we're a child of a dehydrated container, we need to first
    // find that inner container before moving on to finding the parent
    // instance. Note that we don't check this field on  the targetNode
    // itself because the fibers are conceptually between the container
    // node and the first child. It isn't surrounding the container node.
    // If it's not a container, we check if it's an instance.
    targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey];

    if (targetInst) {
      // Since this wasn't the direct target of the event, we might have
      // stepped past dehydrated DOM nodes to get here. However they could
      // also have been non-React nodes. We need to answer which one.
      // If we the instance doesn't have any children, then there can't be
      // a nested suspense boundary within it. So we can use this as a fast
      // bailout. Most of the time, when people add non-React children to
      // the tree, it is using a ref to a child-less DOM node.
      // Normally we'd only need to check one of the fibers because if it
      // has ever gone from having children to deleting them or vice versa
      // it would have deleted the dehydrated boundary nested inside already.
      // However, since the HostRoot starts out with an alternate it might
      // have one on the alternate so we need to check in case this was a
      // root.
      var alternate = targetInst.alternate;

      if (targetInst.child !== null || alternate !== null && alternate.child !== null) {
        // Next we need to figure out if the node that skipped past is
        // nested within a dehydrated boundary and if so, which one.
        var suspenseInstance = getParentSuspenseInstance(targetNode);

        while (suspenseInstance !== null) {
          // We found a suspense instance. That means that we haven't
          // hydrated it yet. Even though we leave the comments in the
          // DOM after hydrating, and there are boundaries in the DOM
          // that could already be hydrated, we wouldn't have found them
          // through this pass since if the target is hydrated it would
          // have had an internalInstanceKey on it.
          // Let's get the fiber associated with the SuspenseComponent
          // as the deepest instance.
          var targetSuspenseInst = suspenseInstance[internalInstanceKey];

          if (targetSuspenseInst) {
            return targetSuspenseInst;
          } // If we don't find a Fiber on the comment, it might be because
          // we haven't gotten to hydrate it yet. There might still be a
          // parent boundary that hasn't above this one so we need to find
          // the outer most that is known.


          suspenseInstance = getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent
          // host component also hasn't hydrated yet. We can return it
          // below since it will bail out on the isMounted check later.
        }
      }

      return targetInst;
    }

    targetNode = parentNode;
    parentNode = targetNode.parentNode;
  }

  return null;
}
/**
 * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
 * instance, or null if the node was not rendered by this React.
 */

function getInstanceFromNode(node) {
  var inst = node[internalInstanceKey] || node[internalContainerInstanceKey];

  if (inst) {
    if (inst.tag === HostComponent || inst.tag === HostText || inst.tag === SuspenseComponent || inst.tag === HostRoot) {
      return inst;
    } else {
      return null;
    }
  }

  return null;
}
/**
 * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
 * DOM node.
 */

function getNodeFromInstance(inst) {
  if (inst.tag === HostComponent || inst.tag === HostText) {
    // In Fiber this, is just the state node right now. We assume it will be
    // a host component or host text.
    return inst.stateNode;
  } // Without this first invariant, passing a non-DOM-component triggers the next
  // invariant for a missing parent, which is super confusing.


  throw new Error('getNodeFromInstance: Invalid argument.');
}
function getFiberCurrentPropsFromNode(node) {
  return node[internalPropsKey] || null;
}
function updateFiberProps(node, props) {
  node[internalPropsKey] = props;
}
function getEventListenerSet(node) {
  var elementListenerSet = node[internalEventHandlersKey];

  if (elementListenerSet === undefined) {
    elementListenerSet = node[internalEventHandlersKey] = new Set();
  }

  return elementListenerSet;
}

var loggedTypeFailures = {};
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;

function setCurrentlyValidatingElement(element) {
  {
    if (element) {
      var owner = element._owner;
      var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
      ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
    } else {
      ReactDebugCurrentFrame$1.setExtraStackFrame(null);
    }
  }
}

function checkPropTypes(typeSpecs, values, location, componentName, element) {
  {
    // $FlowFixMe This is okay but Flow doesn't know it.
    var has = Function.call.bind(hasOwnProperty);

    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.

        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            // eslint-disable-next-line react-internal/prod-error-codes
            var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
            err.name = 'Invariant Violation';
            throw err;
          }

          error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
        } catch (ex) {
          error$1 = ex;
        }

        if (error$1 && !(error$1 instanceof Error)) {
          setCurrentlyValidatingElement(element);

          error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);

          setCurrentlyValidatingElement(null);
        }

        if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error$1.message] = true;
          setCurrentlyValidatingElement(element);

          error('Failed %s type: %s', location, error$1.message);

          setCurrentlyValidatingElement(null);
        }
      }
    }
  }
}

var valueStack = [];
var fiberStack;

{
  fiberStack = [];
}

var index = -1;

function createCursor(defaultValue) {
  return {
    current: defaultValue
  };
}

function pop(cursor, fiber) {
  if (index < 0) {
    {
      error('Unexpected pop.');
    }

    return;
  }

  {
    if (fiber !== fiberStack[index]) {
      error('Unexpected Fiber popped.');
    }
  }

  cursor.current = valueStack[index];
  valueStack[index] = null;

  {
    fiberStack[index] = null;
  }

  index--;
}

function push(cursor, value, fiber) {
  index++;
  valueStack[index] = cursor.current;

  {
    fiberStack[index] = fiber;
  }

  cursor.current = value;
}

var warnedAboutMissingGetChildContext;

{
  warnedAboutMissingGetChildContext = {};
}

var emptyContextObject = {};

{
  Object.freeze(emptyContextObject);
} // A cursor to the current merged context object on the stack.


var contextStackCursor = createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.

var didPerformWorkStackCursor = createCursor(false); // Keep track of the previous context object that was on the stack.
// We use this to get access to the parent context after we have already
// pushed the next context provider, and now need to merge their contexts.

var previousContext = emptyContextObject;

function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  {
    if (didPushOwnContextIfProvider && isContextProvider(Component)) {
      // If the fiber is a context provider itself, when we read its context
      // we may have already pushed its own child context on the stack. A context
      // provider should not "see" its own child context. Therefore we read the
      // previous (parent) context instead for a context provider.
      return previousContext;
    }

    return contextStackCursor.current;
  }
}

function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  {
    var instance = workInProgress.stateNode;
    instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
    instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  }
}

function getMaskedContext(workInProgress, unmaskedContext) {
  {
    var type = workInProgress.type;
    var contextTypes = type.contextTypes;

    if (!contextTypes) {
      return emptyContextObject;
    } // Avoid recreating masked context unless unmasked context has changed.
    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
    // This may trigger infinite loops if componentWillReceiveProps calls setState.


    var instance = workInProgress.stateNode;

    if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
      return instance.__reactInternalMemoizedMaskedChildContext;
    }

    var context = {};

    for (var key in contextTypes) {
      context[key] = unmaskedContext[key];
    }

    {
      var name = getComponentNameFromFiber(workInProgress) || 'Unknown';
      checkPropTypes(contextTypes, context, 'context', name);
    } // Cache unmasked context so we can avoid recreating masked context unless necessary.
    // Context is created before the class component is instantiated so check for instance.


    if (instance) {
      cacheContext(workInProgress, unmaskedContext, context);
    }

    return context;
  }
}

function hasContextChanged() {
  {
    return didPerformWorkStackCursor.current;
  }
}

function isContextProvider(type) {
  {
    var childContextTypes = type.childContextTypes;
    return childContextTypes !== null && childContextTypes !== undefined;
  }
}

function popContext(fiber) {
  {
    pop(didPerformWorkStackCursor, fiber);
    pop(contextStackCursor, fiber);
  }
}

function popTopLevelContextObject(fiber) {
  {
    pop(didPerformWorkStackCursor, fiber);
    pop(contextStackCursor, fiber);
  }
}

function pushTopLevelContextObject(fiber, context, didChange) {
  {
    if (contextStackCursor.current !== emptyContextObject) {
      throw new Error('Unexpected context found on stack. ' + 'This error is likely caused by a bug in React. Please file an issue.');
    }

    push(contextStackCursor, context, fiber);
    push(didPerformWorkStackCursor, didChange, fiber);
  }
}

function processChildContext(fiber, type, parentContext) {
  {
    var instance = fiber.stateNode;
    var childContextTypes = type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.
    // It has only been added in Fiber to match the (unintentional) behavior in Stack.

    if (typeof instance.getChildContext !== 'function') {
      {
        var componentName = getComponentNameFromFiber(fiber) || 'Unknown';

        if (!warnedAboutMissingGetChildContext[componentName]) {
          warnedAboutMissingGetChildContext[componentName] = true;

          error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
        }
      }

      return parentContext;
    }

    var childContext = instance.getChildContext();

    for (var contextKey in childContext) {
      if (!(contextKey in childContextTypes)) {
        throw new Error((getComponentNameFromFiber(fiber) || 'Unknown') + ".getChildContext(): key \"" + contextKey + "\" is not defined in childContextTypes.");
      }
    }

    {
      var name = getComponentNameFromFiber(fiber) || 'Unknown';
      checkPropTypes(childContextTypes, childContext, 'child context', name);
    }

    return assign({}, parentContext, childContext);
  }
}

function pushContextProvider(workInProgress) {
  {
    var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
    // If the instance does not exist yet, we will push null at first,
    // and replace it on the stack later when invalidating the context.

    var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.

    previousContext = contextStackCursor.current;
    push(contextStackCursor, memoizedMergedChildContext, workInProgress);
    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
    return true;
  }
}

function invalidateContextProvider(workInProgress, type, didChange) {
  {
    var instance = workInProgress.stateNode;

    if (!instance) {
      throw new Error('Expected to have an instance by this point. ' + 'This error is likely caused by a bug in React. Please file an issue.');
    }

    if (didChange) {
      // Merge parent and own context.
      // Skip this if we're not updating due to sCU.
      // This avoids unnecessarily recomputing memoized values.
      var mergedContext = processChildContext(workInProgress, type, previousContext);
      instance.__reactInternalMemoizedMergedChildContext = mergedContext; // Replace the old (or empty) context with the new one.
      // It is important to unwind the context in the reverse order.

      pop(didPerformWorkStackCursor, workInProgress);
      pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.

      push(contextStackCursor, mergedContext, workInProgress);
      push(didPerformWorkStackCursor, didChange, workInProgress);
    } else {
      pop(didPerformWorkStackCursor, workInProgress);
      push(didPerformWorkStackCursor, didChange, workInProgress);
    }
  }
}

function findCurrentUnmaskedContext(fiber) {
  {
    // Currently this is only used with renderSubtreeIntoContainer; not sure if it
    // makes sense elsewhere
    if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) {
      throw new Error('Expected subtree parent to be a mounted class component. ' + 'This error is likely caused by a bug in React. Please file an issue.');
    }

    var node = fiber;

    do {
      switch (node.tag) {
        case HostRoot:
          return node.stateNode.context;

        case ClassComponent:
          {
            var Component = node.type;

            if (isContextProvider(Component)) {
              return node.stateNode.__reactInternalMemoizedMergedChildContext;
            }

            break;
          }
      }

      node = node.return;
    } while (node !== null);

    throw new Error('Found unexpected detached subtree parent. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  }
}

var LegacyRoot = 0;
var ConcurrentRoot = 1;

var syncQueue = null;
var includesLegacySyncCallbacks = false;
var isFlushingSyncQueue = false;
function scheduleSyncCallback(callback) {
  // Push this callback into an internal queue. We'll flush these either in
  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  if (syncQueue === null) {
    syncQueue = [callback];
  } else {
    // Push onto existing queue. Don't need to schedule a callback because
    // we already scheduled one when we created the queue.
    syncQueue.push(callback);
  }
}
function scheduleLegacySyncCallback(callback) {
  includesLegacySyncCallbacks = true;
  scheduleSyncCallback(callback);
}
function flushSyncCallbacksOnlyInLegacyMode() {
  // Only flushes the queue if there's a legacy sync callback scheduled.
  // TODO: There's only a single type of callback: performSyncOnWorkOnRoot. So
  // it might make more sense for the queue to be a list of roots instead of a
  // list of generic callbacks. Then we can have two: one for legacy roots, one
  // for concurrent roots. And this method would only flush the legacy ones.
  if (includesLegacySyncCallbacks) {
    flushSyncCallbacks();
  }
}
function flushSyncCallbacks() {
  if (!isFlushingSyncQueue && syncQueue !== null) {
    // Prevent re-entrance.
    isFlushingSyncQueue = true;
    var i = 0;
    var previousUpdatePriority = getCurrentUpdatePriority();

    try {
      var isSync = true;
      var queue = syncQueue; // TODO: Is this necessary anymore? The only user code that runs in this
      // queue is in the render or commit phases.

      setCurrentUpdatePriority(DiscreteEventPriority);

      for (; i < queue.length; i++) {
        var callback = queue[i];

        do {
          callback = callback(isSync);
        } while (callback !== null);
      }

      syncQueue = null;
      includesLegacySyncCallbacks = false;
    } catch (error) {
      // If something throws, leave the remaining callbacks on the queue.
      if (syncQueue !== null) {
        syncQueue = syncQueue.slice(i + 1);
      } // Resume flushing in the next tick


      scheduleCallback(ImmediatePriority, flushSyncCallbacks);
      throw error;
    } finally {
      setCurrentUpdatePriority(previousUpdatePriority);
      isFlushingSyncQueue = false;
    }
  }

  return null;
}

// TODO: Use the unified fiber stack module instead of this local one?
// Intentionally not using it yet to derisk the initial implementation, because
// the way we push/pop these values is a bit unusual. If there's a mistake, I'd
// rather the ids be wrong than crash the whole reconciler.
var forkStack = [];
var forkStackIndex = 0;
var treeForkProvider = null;
var treeForkCount = 0;
var idStack = [];
var idStackIndex = 0;
var treeContextProvider = null;
var treeContextId = 1;
var treeContextOverflow = '';
function isForkedChild(workInProgress) {
  warnIfNotHydrating();
  return (workInProgress.flags & Forked) !== NoFlags;
}
function getForksAtLevel(workInProgress) {
  warnIfNotHydrating();
  return treeForkCount;
}
function getTreeId() {
  var overflow = treeContextOverflow;
  var idWithLeadingBit = treeContextId;
  var id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
  return id.toString(32) + overflow;
}
function pushTreeFork(workInProgress, totalChildren) {
  // This is called right after we reconcile an array (or iterator) of child
  // fibers, because that's the only place where we know how many children in
  // the whole set without doing extra work later, or storing addtional
  // information on the fiber.
  //
  // That's why this function is separate from pushTreeId — it's called during
  // the render phase of the fork parent, not the child, which is where we push
  // the other context values.
  //
  // In the Fizz implementation this is much simpler because the child is
  // rendered in the same callstack as the parent.
  //
  // It might be better to just add a `forks` field to the Fiber type. It would
  // make this module simpler.
  warnIfNotHydrating();
  forkStack[forkStackIndex++] = treeForkCount;
  forkStack[forkStackIndex++] = treeForkProvider;
  treeForkProvider = workInProgress;
  treeForkCount = totalChildren;
}
function pushTreeId(workInProgress, totalChildren, index) {
  warnIfNotHydrating();
  idStack[idStackIndex++] = treeContextId;
  idStack[idStackIndex++] = treeContextOverflow;
  idStack[idStackIndex++] = treeContextProvider;
  treeContextProvider = workInProgress;
  var baseIdWithLeadingBit = treeContextId;
  var baseOverflow = treeContextOverflow; // The leftmost 1 marks the end of the sequence, non-inclusive. It's not part
  // of the id; we use it to account for leading 0s.

  var baseLength = getBitLength(baseIdWithLeadingBit) - 1;
  var baseId = baseIdWithLeadingBit & ~(1 << baseLength);
  var slot = index + 1;
  var length = getBitLength(totalChildren) + baseLength; // 30 is the max length we can store without overflowing, taking into
  // consideration the leading 1 we use to mark the end of the sequence.

  if (length > 30) {
    // We overflowed the bitwise-safe range. Fall back to slower algorithm.
    // This branch assumes the length of the base id is greater than 5; it won't
    // work for smaller ids, because you need 5 bits per character.
    //
    // We encode the id in multiple steps: first the base id, then the
    // remaining digits.
    //
    // Each 5 bit sequence corresponds to a single base 32 character. So for
    // example, if the current id is 23 bits long, we can convert 20 of those
    // bits into a string of 4 characters, with 3 bits left over.
    //
    // First calculate how many bits in the base id represent a complete
    // sequence of characters.
    var numberOfOverflowBits = baseLength - baseLength % 5; // Then create a bitmask that selects only those bits.

    var newOverflowBits = (1 << numberOfOverflowBits) - 1; // Select the bits, and convert them to a base 32 string.

    var newOverflow = (baseId & newOverflowBits).toString(32); // Now we can remove those bits from the base id.

    var restOfBaseId = baseId >> numberOfOverflowBits;
    var restOfBaseLength = baseLength - numberOfOverflowBits; // Finally, encode the rest of the bits using the normal algorithm. Because
    // we made more room, this time it won't overflow.

    var restOfLength = getBitLength(totalChildren) + restOfBaseLength;
    var restOfNewBits = slot << restOfBaseLength;
    var id = restOfNewBits | restOfBaseId;
    var overflow = newOverflow + baseOverflow;
    treeContextId = 1 << restOfLength | id;
    treeContextOverflow = overflow;
  } else {
    // Normal path
    var newBits = slot << baseLength;

    var _id = newBits | baseId;

    var _overflow = baseOverflow;
    treeContextId = 1 << length | _id;
    treeContextOverflow = _overflow;
  }
}
function pushMaterializedTreeId(workInProgress) {
  warnIfNotHydrating(); // This component materialized an id. This will affect any ids that appear
  // in its children.

  var returnFiber = workInProgress.return;

  if (returnFiber !== null) {
    var numberOfForks = 1;
    var slotIndex = 0;
    pushTreeFork(workInProgress, numberOfForks);
    pushTreeId(workInProgress, numberOfForks, slotIndex);
  }
}

function getBitLength(number) {
  return 32 - clz32(number);
}

function getLeadingBit(id) {
  return 1 << getBitLength(id) - 1;
}

function popTreeContext(workInProgress) {
  // Restore the previous values.
  // This is a bit more complicated than other context-like modules in Fiber
  // because the same Fiber may appear on the stack multiple times and for
  // different reasons. We have to keep popping until the work-in-progress is
  // no longer at the top of the stack.
  while (workInProgress === treeForkProvider) {
    treeForkProvider = forkStack[--forkStackIndex];
    forkStack[forkStackIndex] = null;
    treeForkCount = forkStack[--forkStackIndex];
    forkStack[forkStackIndex] = null;
  }

  while (workInProgress === treeContextProvider) {
    treeContextProvider = idStack[--idStackIndex];
    idStack[idStackIndex] = null;
    treeContextOverflow = idStack[--idStackIndex];
    idStack[idStackIndex] = null;
    treeContextId = idStack[--idStackIndex];
    idStack[idStackIndex] = null;
  }
}
function getSuspendedTreeContext() {
  warnIfNotHydrating();

  if (treeContextProvider !== null) {
    return {
      id: treeContextId,
      overflow: treeContextOverflow
    };
  } else {
    return null;
  }
}
function restoreSuspendedTreeContext(workInProgress, suspendedContext) {
  warnIfNotHydrating();
  idStack[idStackIndex++] = treeContextId;
  idStack[idStackIndex++] = treeContextOverflow;
  idStack[idStackIndex++] = treeContextProvider;
  treeContextId = suspendedContext.id;
  treeContextOverflow = suspendedContext.overflow;
  treeContextProvider = workInProgress;
}

function warnIfNotHydrating() {
  {
    if (!getIsHydrating()) {
      error('Expected to be hydrating. This is a bug in React. Please file ' + 'an issue.');
    }
  }
}

// This may have been an insertion or a hydration.

var hydrationParentFiber = null;
var nextHydratableInstance = null;
var isHydrating = false; // This flag allows for warning supression when we expect there to be mismatches
// due to earlier mismatches or a suspended fiber.

var didSuspendOrErrorDEV = false; // Hydration errors that were thrown inside this boundary

var hydrationErrors = null;

function warnIfHydrating() {
  {
    if (isHydrating) {
      error('We should not be hydrating here. This is a bug in React. Please file a bug.');
    }
  }
}

function markDidThrowWhileHydratingDEV() {
  {
    didSuspendOrErrorDEV = true;
  }
}
function didSuspendOrErrorWhileHydratingDEV() {
  {
    return didSuspendOrErrorDEV;
  }
}

function enterHydrationState(fiber) {

  var parentInstance = fiber.stateNode.containerInfo;
  nextHydratableInstance = getFirstHydratableChildWithinContainer(parentInstance);
  hydrationParentFiber = fiber;
  isHydrating = true;
  hydrationErrors = null;
  didSuspendOrErrorDEV = false;
  return true;
}

function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) {

  nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(suspenseInstance);
  hydrationParentFiber = fiber;
  isHydrating = true;
  hydrationErrors = null;
  didSuspendOrErrorDEV = false;

  if (treeContext !== null) {
    restoreSuspendedTreeContext(fiber, treeContext);
  }

  return true;
}

function warnUnhydratedInstance(returnFiber, instance) {
  {
    switch (returnFiber.tag) {
      case HostRoot:
        {
          didNotHydrateInstanceWithinContainer(returnFiber.stateNode.containerInfo, instance);
          break;
        }

      case HostComponent:
        {
          var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
          didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance, // TODO: Delete this argument when we remove the legacy root API.
          isConcurrentMode);
          break;
        }

      case SuspenseComponent:
        {
          var suspenseState = returnFiber.memoizedState;
          if (suspenseState.dehydrated !== null) didNotHydrateInstanceWithinSuspenseInstance(suspenseState.dehydrated, instance);
          break;
        }
    }
  }
}

function deleteHydratableInstance(returnFiber, instance) {
  warnUnhydratedInstance(returnFiber, instance);
  var childToDelete = createFiberFromHostInstanceForDeletion();
  childToDelete.stateNode = instance;
  childToDelete.return = returnFiber;
  var deletions = returnFiber.deletions;

  if (deletions === null) {
    returnFiber.deletions = [childToDelete];
    returnFiber.flags |= ChildDeletion;
  } else {
    deletions.push(childToDelete);
  }
}

function warnNonhydratedInstance(returnFiber, fiber) {
  {
    if (didSuspendOrErrorDEV) {
      // Inside a boundary that already suspended. We're currently rendering the
      // siblings of a suspended node. The mismatch may be due to the missing
      // data, so it's probably a false positive.
      return;
    }

    switch (returnFiber.tag) {
      case HostRoot:
        {
          var parentContainer = returnFiber.stateNode.containerInfo;

          switch (fiber.tag) {
            case HostComponent:
              var type = fiber.type;
              var props = fiber.pendingProps;
              didNotFindHydratableInstanceWithinContainer(parentContainer, type);
              break;

            case HostText:
              var text = fiber.pendingProps;
              didNotFindHydratableTextInstanceWithinContainer(parentContainer, text);
              break;
          }

          break;
        }

      case HostComponent:
        {
          var parentType = returnFiber.type;
          var parentProps = returnFiber.memoizedProps;
          var parentInstance = returnFiber.stateNode;

          switch (fiber.tag) {
            case HostComponent:
              {
                var _type = fiber.type;
                var _props = fiber.pendingProps;
                var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
                didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props, // TODO: Delete this argument when we remove the legacy root API.
                isConcurrentMode);
                break;
              }

            case HostText:
              {
                var _text = fiber.pendingProps;

                var _isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;

                didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text, // TODO: Delete this argument when we remove the legacy root API.
                _isConcurrentMode);
                break;
              }
          }

          break;
        }

      case SuspenseComponent:
        {
          var suspenseState = returnFiber.memoizedState;
          var _parentInstance = suspenseState.dehydrated;
          if (_parentInstance !== null) switch (fiber.tag) {
            case HostComponent:
              var _type2 = fiber.type;
              var _props2 = fiber.pendingProps;
              didNotFindHydratableInstanceWithinSuspenseInstance(_parentInstance, _type2);
              break;

            case HostText:
              var _text2 = fiber.pendingProps;
              didNotFindHydratableTextInstanceWithinSuspenseInstance(_parentInstance, _text2);
              break;
          }
          break;
        }

      default:
        return;
    }
  }
}

function insertNonHydratedInstance(returnFiber, fiber) {
  fiber.flags = fiber.flags & ~Hydrating | Placement;
  warnNonhydratedInstance(returnFiber, fiber);
}

function tryHydrate(fiber, nextInstance) {
  switch (fiber.tag) {
    case HostComponent:
      {
        var type = fiber.type;
        var props = fiber.pendingProps;
        var instance = canHydrateInstance(nextInstance, type);

        if (instance !== null) {
          fiber.stateNode = instance;
          hydrationParentFiber = fiber;
          nextHydratableInstance = getFirstHydratableChild(instance);
          return true;
        }

        return false;
      }

    case HostText:
      {
        var text = fiber.pendingProps;
        var textInstance = canHydrateTextInstance(nextInstance, text);

        if (textInstance !== null) {
          fiber.stateNode = textInstance;
          hydrationParentFiber = fiber; // Text Instances don't have children so there's nothing to hydrate.

          nextHydratableInstance = null;
          return true;
        }

        return false;
      }

    case SuspenseComponent:
      {
        var suspenseInstance = canHydrateSuspenseInstance(nextInstance);

        if (suspenseInstance !== null) {
          var suspenseState = {
            dehydrated: suspenseInstance,
            treeContext: getSuspendedTreeContext(),
            retryLane: OffscreenLane
          };
          fiber.memoizedState = suspenseState; // Store the dehydrated fragment as a child fiber.
          // This simplifies the code for getHostSibling and deleting nodes,
          // since it doesn't have to consider all Suspense boundaries and
          // check if they're dehydrated ones or not.

          var dehydratedFragment = createFiberFromDehydratedFragment(suspenseInstance);
          dehydratedFragment.return = fiber;
          fiber.child = dehydratedFragment;
          hydrationParentFiber = fiber; // While a Suspense Instance does have children, we won't step into
          // it during the first pass. Instead, we'll reenter it later.

          nextHydratableInstance = null;
          return true;
        }

        return false;
      }

    default:
      return false;
  }
}

function shouldClientRenderOnMismatch(fiber) {
  return (fiber.mode & ConcurrentMode) !== NoMode && (fiber.flags & DidCapture) === NoFlags;
}

function throwOnHydrationMismatch(fiber) {
  throw new Error('Hydration failed because the initial UI does not match what was ' + 'rendered on the server.');
}

function tryToClaimNextHydratableInstance(fiber) {
  if (!isHydrating) {
    return;
  }

  var nextInstance = nextHydratableInstance;

  if (!nextInstance) {
    if (shouldClientRenderOnMismatch(fiber)) {
      warnNonhydratedInstance(hydrationParentFiber, fiber);
      throwOnHydrationMismatch();
    } // Nothing to hydrate. Make it an insertion.


    insertNonHydratedInstance(hydrationParentFiber, fiber);
    isHydrating = false;
    hydrationParentFiber = fiber;
    return;
  }

  var firstAttemptedInstance = nextInstance;

  if (!tryHydrate(fiber, nextInstance)) {
    if (shouldClientRenderOnMismatch(fiber)) {
      warnNonhydratedInstance(hydrationParentFiber, fiber);
      throwOnHydrationMismatch();
    } // If we can't hydrate this instance let's try the next one.
    // We use this as a heuristic. It's based on intuition and not data so it
    // might be flawed or unnecessary.


    nextInstance = getNextHydratableSibling(firstAttemptedInstance);
    var prevHydrationParentFiber = hydrationParentFiber;

    if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
      // Nothing to hydrate. Make it an insertion.
      insertNonHydratedInstance(hydrationParentFiber, fiber);
      isHydrating = false;
      hydrationParentFiber = fiber;
      return;
    } // We matched the next one, we'll now assume that the first one was
    // superfluous and we'll delete it. Since we can't eagerly delete it
    // we'll have to schedule a deletion. To do that, this node needs a dummy
    // fiber associated with it.


    deleteHydratableInstance(prevHydrationParentFiber, firstAttemptedInstance);
  }
}

function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {

  var instance = fiber.stateNode;
  var shouldWarnIfMismatchDev = !didSuspendOrErrorDEV;
  var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber, shouldWarnIfMismatchDev); // TODO: Type this specific to this type of component.

  fiber.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
  // is a new ref we mark this as an update.

  if (updatePayload !== null) {
    return true;
  }

  return false;
}

function prepareToHydrateHostTextInstance(fiber) {

  var textInstance = fiber.stateNode;
  var textContent = fiber.memoizedProps;
  var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);

  if (shouldUpdate) {
    // We assume that prepareToHydrateHostTextInstance is called in a context where the
    // hydration parent is the parent host component of this host text.
    var returnFiber = hydrationParentFiber;

    if (returnFiber !== null) {
      switch (returnFiber.tag) {
        case HostRoot:
          {
            var parentContainer = returnFiber.stateNode.containerInfo;
            var isConcurrentMode = (returnFiber.mode & ConcurrentMode) !== NoMode;
            didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.
            isConcurrentMode);
            break;
          }

        case HostComponent:
          {
            var parentType = returnFiber.type;
            var parentProps = returnFiber.memoizedProps;
            var parentInstance = returnFiber.stateNode;

            var _isConcurrentMode2 = (returnFiber.mode & ConcurrentMode) !== NoMode;

            didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent, // TODO: Delete this argument when we remove the legacy root API.
            _isConcurrentMode2);
            break;
          }
      }
    }
  }

  return shouldUpdate;
}

function prepareToHydrateHostSuspenseInstance(fiber) {

  var suspenseState = fiber.memoizedState;
  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;

  if (!suspenseInstance) {
    throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  }

  hydrateSuspenseInstance(suspenseInstance, fiber);
}

function skipPastDehydratedSuspenseInstance(fiber) {

  var suspenseState = fiber.memoizedState;
  var suspenseInstance = suspenseState !== null ? suspenseState.dehydrated : null;

  if (!suspenseInstance) {
    throw new Error('Expected to have a hydrated suspense instance. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  }

  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
}

function popToNextHostParent(fiber) {
  var parent = fiber.return;

  while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== SuspenseComponent) {
    parent = parent.return;
  }

  hydrationParentFiber = parent;
}

function popHydrationState(fiber) {

  if (fiber !== hydrationParentFiber) {
    // We're deeper than the current hydration context, inside an inserted
    // tree.
    return false;
  }

  if (!isHydrating) {
    // If we're not currently hydrating but we're in a hydration context, then
    // we were an insertion and now need to pop up reenter hydration of our
    // siblings.
    popToNextHostParent(fiber);
    isHydrating = true;
    return false;
  } // If we have any remaining hydratable nodes, we need to delete them now.
  // We only do this deeper than head and body since they tend to have random
  // other nodes in them. We also ignore components with pure text content in
  // side of them. We also don't delete anything inside the root container.


  if (fiber.tag !== HostRoot && (fiber.tag !== HostComponent || shouldDeleteUnhydratedTailInstances(fiber.type) && !shouldSetTextContent(fiber.type, fiber.memoizedProps))) {
    var nextInstance = nextHydratableInstance;

    if (nextInstance) {
      if (shouldClientRenderOnMismatch(fiber)) {
        warnIfUnhydratedTailNodes(fiber);
        throwOnHydrationMismatch();
      } else {
        while (nextInstance) {
          deleteHydratableInstance(fiber, nextInstance);
          nextInstance = getNextHydratableSibling(nextInstance);
        }
      }
    }
  }

  popToNextHostParent(fiber);

  if (fiber.tag === SuspenseComponent) {
    nextHydratableInstance = skipPastDehydratedSuspenseInstance(fiber);
  } else {
    nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  }

  return true;
}

function hasUnhydratedTailNodes() {
  return isHydrating && nextHydratableInstance !== null;
}

function warnIfUnhydratedTailNodes(fiber) {
  var nextInstance = nextHydratableInstance;

  while (nextInstance) {
    warnUnhydratedInstance(fiber, nextInstance);
    nextInstance = getNextHydratableSibling(nextInstance);
  }
}

function resetHydrationState() {

  hydrationParentFiber = null;
  nextHydratableInstance = null;
  isHydrating = false;
  didSuspendOrErrorDEV = false;
}

function upgradeHydrationErrorsToRecoverable() {
  if (hydrationErrors !== null) {
    // Successfully completed a forced client render. The errors that occurred
    // during the hydration attempt are now recovered. We will log them in
    // commit phase, once the entire tree has finished.
    queueRecoverableErrors(hydrationErrors);
    hydrationErrors = null;
  }
}

function getIsHydrating() {
  return isHydrating;
}

function queueHydrationError(error) {
  if (hydrationErrors === null) {
    hydrationErrors = [error];
  } else {
    hydrationErrors.push(error);
  }
}

var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig;
var NoTransition = null;
function requestCurrentTransition() {
  return ReactCurrentBatchConfig$1.transition;
}

var ReactStrictModeWarnings = {
  recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  flushPendingUnsafeLifecycleWarnings: function () {},
  recordLegacyContextWarning: function (fiber, instance) {},
  flushLegacyContextWarning: function () {},
  discardPendingWarnings: function () {}
};

{
  var findStrictRoot = function (fiber) {
    var maybeStrictRoot = null;
    var node = fiber;

    while (node !== null) {
      if (node.mode & StrictLegacyMode) {
        maybeStrictRoot = node;
      }

      node = node.return;
    }

    return maybeStrictRoot;
  };

  var setToSortedString = function (set) {
    var array = [];
    set.forEach(function (value) {
      array.push(value);
    });
    return array.sort().join(', ');
  };

  var pendingComponentWillMountWarnings = [];
  var pendingUNSAFE_ComponentWillMountWarnings = [];
  var pendingComponentWillReceivePropsWarnings = [];
  var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  var pendingComponentWillUpdateWarnings = [];
  var pendingUNSAFE_ComponentWillUpdateWarnings = []; // Tracks components we have already warned about.

  var didWarnAboutUnsafeLifecycles = new Set();

  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
    // Dedupe strategy: Warn once per component.
    if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
      return;
    }

    if (typeof instance.componentWillMount === 'function' && // Don't warn about react-lifecycles-compat polyfilled components.
    instance.componentWillMount.__suppressDeprecationWarning !== true) {
      pendingComponentWillMountWarnings.push(fiber);
    }

    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === 'function') {
      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
    }

    if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
      pendingComponentWillReceivePropsWarnings.push(fiber);
    }

    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
    }

    if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
      pendingComponentWillUpdateWarnings.push(fiber);
    }

    if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
    // We do an initial pass to gather component names
    var componentWillMountUniqueNames = new Set();

    if (pendingComponentWillMountWarnings.length > 0) {
      pendingComponentWillMountWarnings.forEach(function (fiber) {
        componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillMountWarnings = [];
    }

    var UNSAFE_componentWillMountUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
        UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillMountWarnings = [];
    }

    var componentWillReceivePropsUniqueNames = new Set();

    if (pendingComponentWillReceivePropsWarnings.length > 0) {
      pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
        componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillReceivePropsWarnings = [];
    }

    var UNSAFE_componentWillReceivePropsUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    }

    var componentWillUpdateUniqueNames = new Set();

    if (pendingComponentWillUpdateWarnings.length > 0) {
      pendingComponentWillUpdateWarnings.forEach(function (fiber) {
        componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingComponentWillUpdateWarnings = [];
    }

    var UNSAFE_componentWillUpdateUniqueNames = new Set();

    if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
        UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutUnsafeLifecycles.add(fiber.type);
      });
      pendingUNSAFE_ComponentWillUpdateWarnings = [];
    } // Finally, we flush all the warnings
    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'


    if (UNSAFE_componentWillMountUniqueNames.size > 0) {
      var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);

      error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
    }

    if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);

      error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
    }

    if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);

      error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
    }

    if (componentWillMountUniqueNames.size > 0) {
      var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);

      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
    }

    if (componentWillReceivePropsUniqueNames.size > 0) {
      var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);

      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
    }

    if (componentWillUpdateUniqueNames.size > 0) {
      var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);

      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
    }
  };

  var pendingLegacyContextWarning = new Map(); // Tracks components we have already warned about.

  var didWarnAboutLegacyContext = new Set();

  ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
    var strictRoot = findStrictRoot(fiber);

    if (strictRoot === null) {
      error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');

      return;
    } // Dedup strategy: Warn once per component.


    if (didWarnAboutLegacyContext.has(fiber.type)) {
      return;
    }

    var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);

    if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
      if (warningsForRoot === undefined) {
        warningsForRoot = [];
        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
      }

      warningsForRoot.push(fiber);
    }
  };

  ReactStrictModeWarnings.flushLegacyContextWarning = function () {
    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
      if (fiberArray.length === 0) {
        return;
      }

      var firstFiber = fiberArray[0];
      var uniqueNames = new Set();
      fiberArray.forEach(function (fiber) {
        uniqueNames.add(getComponentNameFromFiber(fiber) || 'Component');
        didWarnAboutLegacyContext.add(fiber.type);
      });
      var sortedNames = setToSortedString(uniqueNames);

      try {
        setCurrentFiber(firstFiber);

        error('Legacy context API has been detected within a strict-mode tree.' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context', sortedNames);
      } finally {
        resetCurrentFiber();
      }
    });
  };

  ReactStrictModeWarnings.discardPendingWarnings = function () {
    pendingComponentWillMountWarnings = [];
    pendingUNSAFE_ComponentWillMountWarnings = [];
    pendingComponentWillReceivePropsWarnings = [];
    pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
    pendingComponentWillUpdateWarnings = [];
    pendingUNSAFE_ComponentWillUpdateWarnings = [];
    pendingLegacyContextWarning = new Map();
  };
}

function resolveDefaultProps(Component, baseProps) {
  if (Component && Component.defaultProps) {
    // Resolve default props. Taken from ReactElement
    var props = assign({}, baseProps);
    var defaultProps = Component.defaultProps;

    for (var propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }

    return props;
  }

  return baseProps;
}

var valueCursor = createCursor(null);
var rendererSigil;

{
  // Use this to detect multiple renderers using the same context
  rendererSigil = {};
}

var currentlyRenderingFiber = null;
var lastContextDependency = null;
var lastFullyObservedContext = null;
var isDisallowedContextReadInDEV = false;
function resetContextDependencies() {
  // This is called right before React yields execution, to ensure `readContext`
  // cannot be called outside the render phase.
  currentlyRenderingFiber = null;
  lastContextDependency = null;
  lastFullyObservedContext = null;

  {
    isDisallowedContextReadInDEV = false;
  }
}
function enterDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = true;
  }
}
function exitDisallowedContextReadInDEV() {
  {
    isDisallowedContextReadInDEV = false;
  }
}
function pushProvider(providerFiber, context, nextValue) {
  {
    push(valueCursor, context._currentValue, providerFiber);
    context._currentValue = nextValue;

    {
      if (context._currentRenderer !== undefined && context._currentRenderer !== null && context._currentRenderer !== rendererSigil) {
        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');
      }

      context._currentRenderer = rendererSigil;
    }
  }
}
function popProvider(context, providerFiber) {
  var currentValue = valueCursor.current;
  pop(valueCursor, providerFiber);

  {
    {
      context._currentValue = currentValue;
    }
  }
}
function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
  // Update the child lanes of all the ancestors, including the alternates.
  var node = parent;

  while (node !== null) {
    var alternate = node.alternate;

    if (!isSubsetOfLanes(node.childLanes, renderLanes)) {
      node.childLanes = mergeLanes(node.childLanes, renderLanes);

      if (alternate !== null) {
        alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
      }
    } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes)) {
      alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes);
    }

    if (node === propagationRoot) {
      break;
    }

    node = node.return;
  }

  {
    if (node !== propagationRoot) {
      error('Expected to find the propagation root when scheduling context work. ' + 'This error is likely caused by a bug in React. Please file an issue.');
    }
  }
}
function propagateContextChange(workInProgress, context, renderLanes) {
  {
    propagateContextChange_eager(workInProgress, context, renderLanes);
  }
}

function propagateContextChange_eager(workInProgress, context, renderLanes) {

  var fiber = workInProgress.child;

  if (fiber !== null) {
    // Set the return pointer of the child to the work-in-progress fiber.
    fiber.return = workInProgress;
  }

  while (fiber !== null) {
    var nextFiber = void 0; // Visit this fiber.

    var list = fiber.dependencies;

    if (list !== null) {
      nextFiber = fiber.child;
      var dependency = list.firstContext;

      while (dependency !== null) {
        // Check if the context matches.
        if (dependency.context === context) {
          // Match! Schedule an update on this fiber.
          if (fiber.tag === ClassComponent) {
            // Schedule a force update on the work-in-progress.
            var lane = pickArbitraryLane(renderLanes);
            var update = createUpdate(NoTimestamp, lane);
            update.tag = ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the
            // update to the current fiber, too, which means it will persist even if
            // this render is thrown away. Since it's a race condition, not sure it's
            // worth fixing.
            // Inlined `enqueueUpdate` to remove interleaved update check

            var updateQueue = fiber.updateQueue;

            if (updateQueue === null) ; else {
              var sharedQueue = updateQueue.shared;
              var pending = sharedQueue.pending;

              if (pending === null) {
                // This is the first update. Create a circular list.
                update.next = update;
              } else {
                update.next = pending.next;
                pending.next = update;
              }

              sharedQueue.pending = update;
            }
          }

          fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
          var alternate = fiber.alternate;

          if (alternate !== null) {
            alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
          }

          scheduleContextWorkOnParentPath(fiber.return, renderLanes, workInProgress); // Mark the updated lanes on the list, too.

          list.lanes = mergeLanes(list.lanes, renderLanes); // Since we already found a match, we can stop traversing the
          // dependency list.

          break;
        }

        dependency = dependency.next;
      }
    } else if (fiber.tag === ContextProvider) {
      // Don't scan deeper if this is a matching provider
      nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
    } else if (fiber.tag === DehydratedFragment) {
      // If a dehydrated suspense boundary is in this subtree, we don't know
      // if it will have any context consumers in it. The best we can do is
      // mark it as having updates.
      var parentSuspense = fiber.return;

      if (parentSuspense === null) {
        throw new Error('We just came from a parent so we must have had a parent. This is a bug in React.');
      }

      parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes);
      var _alternate = parentSuspense.alternate;

      if (_alternate !== null) {
        _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes);
      } // This is intentionally passing this fiber as the parent
      // because we want to schedule this fiber as having work
      // on its children. We'll use the childLanes on
      // this fiber to indicate that a context has changed.


      scheduleContextWorkOnParentPath(parentSuspense, renderLanes, workInProgress);
      nextFiber = fiber.sibling;
    } else {
      // Traverse down.
      nextFiber = fiber.child;
    }

    if (nextFiber !== null) {
      // Set the return pointer of the child to the work-in-progress fiber.
      nextFiber.return = fiber;
    } else {
      // No child. Traverse to next sibling.
      nextFiber = fiber;

      while (nextFiber !== null) {
        if (nextFiber === workInProgress) {
          // We're back to the root of this subtree. Exit.
          nextFiber = null;
          break;
        }

        var sibling = nextFiber.sibling;

        if (sibling !== null) {
          // Set the return pointer of the sibling to the work-in-progress fiber.
          sibling.return = nextFiber.return;
          nextFiber = sibling;
          break;
        } // No more siblings. Traverse up.


        nextFiber = nextFiber.return;
      }
    }

    fiber = nextFiber;
  }
}
function prepareToReadContext(workInProgress, renderLanes) {
  currentlyRenderingFiber = workInProgress;
  lastContextDependency = null;
  lastFullyObservedContext = null;
  var dependencies = workInProgress.dependencies;

  if (dependencies !== null) {
    {
      var firstContext = dependencies.firstContext;

      if (firstContext !== null) {
        if (includesSomeLane(dependencies.lanes, renderLanes)) {
          // Context list has a pending update. Mark that this fiber performed work.
          markWorkInProgressReceivedUpdate();
        } // Reset the work-in-progress list


        dependencies.firstContext = null;
      }
    }
  }
}
function readContext(context) {
  {
    // This warning would fire if you read context inside a Hook like useMemo.
    // Unlike the class check below, it's not enforced in production for perf.
    if (isDisallowedContextReadInDEV) {
      error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
    }
  }

  var value =  context._currentValue ;

  if (lastFullyObservedContext === context) ; else {
    var contextItem = {
      context: context,
      memoizedValue: value,
      next: null
    };

    if (lastContextDependency === null) {
      if (currentlyRenderingFiber === null) {
        throw new Error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
      } // This is the first dependency for this component. Create a new list.


      lastContextDependency = contextItem;
      currentlyRenderingFiber.dependencies = {
        lanes: NoLanes,
        firstContext: contextItem
      };
    } else {
      // Append a new context item.
      lastContextDependency = lastContextDependency.next = contextItem;
    }
  }

  return value;
}

// render. When this render exits, either because it finishes or because it is
// interrupted, the interleaved updates will be transferred onto the main part
// of the queue.

var concurrentQueues = null;
function pushConcurrentUpdateQueue(queue) {
  if (concurrentQueues === null) {
    concurrentQueues = [queue];
  } else {
    concurrentQueues.push(queue);
  }
}
function finishQueueingConcurrentUpdates() {
  // Transfer the interleaved updates onto the main queue. Each queue has a
  // `pending` field and an `interleaved` field. When they are not null, they
  // point to the last node in a circular linked list. We need to append the
  // interleaved list to the end of the pending list by joining them into a
  // single, circular list.
  if (concurrentQueues !== null) {
    for (var i = 0; i < concurrentQueues.length; i++) {
      var queue = concurrentQueues[i];
      var lastInterleavedUpdate = queue.interleaved;

      if (lastInterleavedUpdate !== null) {
        queue.interleaved = null;
        var firstInterleavedUpdate = lastInterleavedUpdate.next;
        var lastPendingUpdate = queue.pending;

        if (lastPendingUpdate !== null) {
          var firstPendingUpdate = lastPendingUpdate.next;
          lastPendingUpdate.next = firstInterleavedUpdate;
          lastInterleavedUpdate.next = firstPendingUpdate;
        }

        queue.pending = lastInterleavedUpdate;
      }
    }

    concurrentQueues = null;
  }
}
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
  var interleaved = queue.interleaved;

  if (interleaved === null) {
    // This is the first update. Create a circular list.
    update.next = update; // At the end of the current render, this queue's interleaved updates will
    // be transferred to the pending queue.

    pushConcurrentUpdateQueue(queue);
  } else {
    update.next = interleaved.next;
    interleaved.next = update;
  }

  queue.interleaved = update;
  return markUpdateLaneFromFiberToRoot(fiber, lane);
}
function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) {
  var interleaved = queue.interleaved;

  if (interleaved === null) {
    // This is the first update. Create a circular list.
    update.next = update; // At the end of the current render, this queue's interleaved updates will
    // be transferred to the pending queue.

    pushConcurrentUpdateQueue(queue);
  } else {
    update.next = interleaved.next;
    interleaved.next = update;
  }

  queue.interleaved = update;
}
function enqueueConcurrentClassUpdate(fiber, queue, update, lane) {
  var interleaved = queue.interleaved;

  if (interleaved === null) {
    // This is the first update. Create a circular list.
    update.next = update; // At the end of the current render, this queue's interleaved updates will
    // be transferred to the pending queue.

    pushConcurrentUpdateQueue(queue);
  } else {
    update.next = interleaved.next;
    interleaved.next = update;
  }

  queue.interleaved = update;
  return markUpdateLaneFromFiberToRoot(fiber, lane);
}
function enqueueConcurrentRenderForLane(fiber, lane) {
  return markUpdateLaneFromFiberToRoot(fiber, lane);
} // Calling this function outside this module should only be done for backwards
// compatibility and should always be accompanied by a warning.

var unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot;

function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
  // Update the source fiber's lanes
  sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane);
  var alternate = sourceFiber.alternate;

  if (alternate !== null) {
    alternate.lanes = mergeLanes(alternate.lanes, lane);
  }

  {
    if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) {
      warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
    }
  } // Walk the parent path to the root and update the child lanes.


  var node = sourceFiber;
  var parent = sourceFiber.return;

  while (parent !== null) {
    parent.childLanes = mergeLanes(parent.childLanes, lane);
    alternate = parent.alternate;

    if (alternate !== null) {
      alternate.childLanes = mergeLanes(alternate.childLanes, lane);
    } else {
      {
        if ((parent.flags & (Placement | Hydrating)) !== NoFlags) {
          warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
        }
      }
    }

    node = parent;
    parent = parent.return;
  }

  if (node.tag === HostRoot) {
    var root = node.stateNode;
    return root;
  } else {
    return null;
  }
}

var UpdateState = 0;
var ReplaceState = 1;
var ForceUpdate = 2;
var CaptureUpdate = 3; // Global state that is reset at the beginning of calling `processUpdateQueue`.
// It should only be read right after calling `processUpdateQueue`, via
// `checkHasForceUpdateAfterProcessing`.

var hasForceUpdate = false;
var didWarnUpdateInsideUpdate;
var currentlyProcessingQueue;

{
  didWarnUpdateInsideUpdate = false;
  currentlyProcessingQueue = null;
}

function initializeUpdateQueue(fiber) {
  var queue = {
    baseState: fiber.memoizedState,
    firstBaseUpdate: null,
    lastBaseUpdate: null,
    shared: {
      pending: null,
      interleaved: null,
      lanes: NoLanes
    },
    effects: null
  };
  fiber.updateQueue = queue;
}
function cloneUpdateQueue(current, workInProgress) {
  // Clone the update queue from current. Unless it's already a clone.
  var queue = workInProgress.updateQueue;
  var currentQueue = current.updateQueue;

  if (queue === currentQueue) {
    var clone = {
      baseState: currentQueue.baseState,
      firstBaseUpdate: currentQueue.firstBaseUpdate,
      lastBaseUpdate: currentQueue.lastBaseUpdate,
      shared: currentQueue.shared,
      effects: currentQueue.effects
    };
    workInProgress.updateQueue = clone;
  }
}
function createUpdate(eventTime, lane) {
  var update = {
    eventTime: eventTime,
    lane: lane,
    tag: UpdateState,
    payload: null,
    callback: null,
    next: null
  };
  return update;
}
function enqueueUpdate(fiber, update, lane) {
  var updateQueue = fiber.updateQueue;

  if (updateQueue === null) {
    // Only occurs if the fiber has been unmounted.
    return null;
  }

  var sharedQueue = updateQueue.shared;

  {
    if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) {
      error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');

      didWarnUpdateInsideUpdate = true;
    }
  }

  if (isUnsafeClassRenderPhaseUpdate()) {
    // This is an unsafe render phase update. Add directly to the update
    // queue so we can process it immediately during the current render.
    var pending = sharedQueue.pending;

    if (pending === null) {
      // This is the first update. Create a circular list.
      update.next = update;
    } else {
      update.next = pending.next;
      pending.next = update;
    }

    sharedQueue.pending = update; // Update the childLanes even though we're most likely already rendering
    // this fiber. This is for backwards compatibility in the case where you
    // update a different component during render phase than the one that is
    // currently renderings (a pattern that is accompanied by a warning).

    return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane);
  } else {
    return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane);
  }
}
function entangleTransitions(root, fiber, lane) {
  var updateQueue = fiber.updateQueue;

  if (updateQueue === null) {
    // Only occurs if the fiber has been unmounted.
    return;
  }

  var sharedQueue = updateQueue.shared;

  if (isTransitionLane(lane)) {
    var queueLanes = sharedQueue.lanes; // If any entangled lanes are no longer pending on the root, then they must
    // have finished. We can remove them from the shared queue, which represents
    // a superset of the actually pending lanes. In some cases we may entangle
    // more than we need to, but that's OK. In fact it's worse if we *don't*
    // entangle when we should.

    queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.

    var newQueueLanes = mergeLanes(queueLanes, lane);
    sharedQueue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if
    // the lane finished since the last time we entangled it. So we need to
    // entangle it again, just to be sure.

    markRootEntangled(root, newQueueLanes);
  }
}
function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
  // Captured updates are updates that are thrown by a child during the render
  // phase. They should be discarded if the render is aborted. Therefore,
  // we should only put them on the work-in-progress queue, not the current one.
  var queue = workInProgress.updateQueue; // Check if the work-in-progress queue is a clone.

  var current = workInProgress.alternate;

  if (current !== null) {
    var currentQueue = current.updateQueue;

    if (queue === currentQueue) {
      // The work-in-progress queue is the same as current. This happens when
      // we bail out on a parent fiber that then captures an error thrown by
      // a child. Since we want to append the update only to the work-in
      // -progress queue, we need to clone the updates. We usually clone during
      // processUpdateQueue, but that didn't happen in this case because we
      // skipped over the parent when we bailed out.
      var newFirst = null;
      var newLast = null;
      var firstBaseUpdate = queue.firstBaseUpdate;

      if (firstBaseUpdate !== null) {
        // Loop through the updates and clone them.
        var update = firstBaseUpdate;

        do {
          var clone = {
            eventTime: update.eventTime,
            lane: update.lane,
            tag: update.tag,
            payload: update.payload,
            callback: update.callback,
            next: null
          };

          if (newLast === null) {
            newFirst = newLast = clone;
          } else {
            newLast.next = clone;
            newLast = clone;
          }

          update = update.next;
        } while (update !== null); // Append the captured update the end of the cloned list.


        if (newLast === null) {
          newFirst = newLast = capturedUpdate;
        } else {
          newLast.next = capturedUpdate;
          newLast = capturedUpdate;
        }
      } else {
        // There are no base updates.
        newFirst = newLast = capturedUpdate;
      }

      queue = {
        baseState: currentQueue.baseState,
        firstBaseUpdate: newFirst,
        lastBaseUpdate: newLast,
        shared: currentQueue.shared,
        effects: currentQueue.effects
      };
      workInProgress.updateQueue = queue;
      return;
    }
  } // Append the update to the end of the list.


  var lastBaseUpdate = queue.lastBaseUpdate;

  if (lastBaseUpdate === null) {
    queue.firstBaseUpdate = capturedUpdate;
  } else {
    lastBaseUpdate.next = capturedUpdate;
  }

  queue.lastBaseUpdate = capturedUpdate;
}

function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  switch (update.tag) {
    case ReplaceState:
      {
        var payload = update.payload;

        if (typeof payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();
          }

          var nextState = payload.call(instance, prevState, nextProps);

          {
            if ( workInProgress.mode & StrictLegacyMode) {
              setIsStrictModeForDevtools(true);

              try {
                payload.call(instance, prevState, nextProps);
              } finally {
                setIsStrictModeForDevtools(false);
              }
            }

            exitDisallowedContextReadInDEV();
          }

          return nextState;
        } // State object


        return payload;
      }

    case CaptureUpdate:
      {
        workInProgress.flags = workInProgress.flags & ~ShouldCapture | DidCapture;
      }
    // Intentional fallthrough

    case UpdateState:
      {
        var _payload = update.payload;
        var partialState;

        if (typeof _payload === 'function') {
          // Updater function
          {
            enterDisallowedContextReadInDEV();
          }

          partialState = _payload.call(instance, prevState, nextProps);

          {
            if ( workInProgress.mode & StrictLegacyMode) {
              setIsStrictModeForDevtools(true);

              try {
                _payload.call(instance, prevState, nextProps);
              } finally {
                setIsStrictModeForDevtools(false);
              }
            }

            exitDisallowedContextReadInDEV();
          }
        } else {
          // Partial state object
          partialState = _payload;
        }

        if (partialState === null || partialState === undefined) {
          // Null and undefined are treated as no-ops.
          return prevState;
        } // Merge the partial state and the previous state.


        return assign({}, prevState, partialState);
      }

    case ForceUpdate:
      {
        hasForceUpdate = true;
        return prevState;
      }
  }

  return prevState;
}

function processUpdateQueue(workInProgress, props, instance, renderLanes) {
  // This is always non-null on a ClassComponent or HostRoot
  var queue = workInProgress.updateQueue;
  hasForceUpdate = false;

  {
    currentlyProcessingQueue = queue.shared;
  }

  var firstBaseUpdate = queue.firstBaseUpdate;
  var lastBaseUpdate = queue.lastBaseUpdate; // Check if there are pending updates. If so, transfer them to the base queue.

  var pendingQueue = queue.shared.pending;

  if (pendingQueue !== null) {
    queue.shared.pending = null; // The pending queue is circular. Disconnect the pointer between first
    // and last so that it's non-circular.

    var lastPendingUpdate = pendingQueue;
    var firstPendingUpdate = lastPendingUpdate.next;
    lastPendingUpdate.next = null; // Append pending updates to base queue

    if (lastBaseUpdate === null) {
      firstBaseUpdate = firstPendingUpdate;
    } else {
      lastBaseUpdate.next = firstPendingUpdate;
    }

    lastBaseUpdate = lastPendingUpdate; // If there's a current queue, and it's different from the base queue, then
    // we need to transfer the updates to that queue, too. Because the base
    // queue is a singly-linked list with no cycles, we can append to both
    // lists and take advantage of structural sharing.
    // TODO: Pass `current` as argument

    var current = workInProgress.alternate;

    if (current !== null) {
      // This is always non-null on a ClassComponent or HostRoot
      var currentQueue = current.updateQueue;
      var currentLastBaseUpdate = currentQueue.lastBaseUpdate;

      if (currentLastBaseUpdate !== lastBaseUpdate) {
        if (currentLastBaseUpdate === null) {
          currentQueue.firstBaseUpdate = firstPendingUpdate;
        } else {
          currentLastBaseUpdate.next = firstPendingUpdate;
        }

        currentQueue.lastBaseUpdate = lastPendingUpdate;
      }
    }
  } // These values may change as we process the queue.


  if (firstBaseUpdate !== null) {
    // Iterate through the list of updates to compute the result.
    var newState = queue.baseState; // TODO: Don't need to accumulate this. Instead, we can remove renderLanes
    // from the original lanes.

    var newLanes = NoLanes;
    var newBaseState = null;
    var newFirstBaseUpdate = null;
    var newLastBaseUpdate = null;
    var update = firstBaseUpdate;

    do {
      var updateLane = update.lane;
      var updateEventTime = update.eventTime;

      if (!isSubsetOfLanes(renderLanes, updateLane)) {
        // Priority is insufficient. Skip this update. If this is the first
        // skipped update, the previous update/state is the new base
        // update/state.
        var clone = {
          eventTime: updateEventTime,
          lane: updateLane,
          tag: update.tag,
          payload: update.payload,
          callback: update.callback,
          next: null
        };

        if (newLastBaseUpdate === null) {
          newFirstBaseUpdate = newLastBaseUpdate = clone;
          newBaseState = newState;
        } else {
          newLastBaseUpdate = newLastBaseUpdate.next = clone;
        } // Update the remaining priority in the queue.


        newLanes = mergeLanes(newLanes, updateLane);
      } else {
        // This update does have sufficient priority.
        if (newLastBaseUpdate !== null) {
          var _clone = {
            eventTime: updateEventTime,
            // This update is going to be committed so we never want uncommit
            // it. Using NoLane works because 0 is a subset of all bitmasks, so
            // this will never be skipped by the check above.
            lane: NoLane,
            tag: update.tag,
            payload: update.payload,
            callback: update.callback,
            next: null
          };
          newLastBaseUpdate = newLastBaseUpdate.next = _clone;
        } // Process this update.


        newState = getStateFromUpdate(workInProgress, queue, update, newState, props, instance);
        var callback = update.callback;

        if (callback !== null && // If the update was already committed, we should not queue its
        // callback again.
        update.lane !== NoLane) {
          workInProgress.flags |= Callback;
          var effects = queue.effects;

          if (effects === null) {
            queue.effects = [update];
          } else {
            effects.push(update);
          }
        }
      }

      update = update.next;

      if (update === null) {
        pendingQueue = queue.shared.pending;

        if (pendingQueue === null) {
          break;
        } else {
          // An update was scheduled from inside a reducer. Add the new
          // pending updates to the end of the list and keep processing.
          var _lastPendingUpdate = pendingQueue; // Intentionally unsound. Pending updates form a circular list, but we
          // unravel them when transferring them to the base queue.

          var _firstPendingUpdate = _lastPendingUpdate.next;
          _lastPendingUpdate.next = null;
          update = _firstPendingUpdate;
          queue.lastBaseUpdate = _lastPendingUpdate;
          queue.shared.pending = null;
        }
      }
    } while (true);

    if (newLastBaseUpdate === null) {
      newBaseState = newState;
    }

    queue.baseState = newBaseState;
    queue.firstBaseUpdate = newFirstBaseUpdate;
    queue.lastBaseUpdate = newLastBaseUpdate; // Interleaved updates are stored on a separate queue. We aren't going to
    // process them during this render, but we do need to track which lanes
    // are remaining.

    var lastInterleaved = queue.shared.interleaved;

    if (lastInterleaved !== null) {
      var interleaved = lastInterleaved;

      do {
        newLanes = mergeLanes(newLanes, interleaved.lane);
        interleaved = interleaved.next;
      } while (interleaved !== lastInterleaved);
    } else if (firstBaseUpdate === null) {
      // `queue.lanes` is used for entangling transitions. We can set it back to
      // zero once the queue is empty.
      queue.shared.lanes = NoLanes;
    } // Set the remaining expiration time to be whatever is remaining in the queue.
    // This should be fine because the only two other things that contribute to
    // expiration time are props and context. We're already in the middle of the
    // begin phase by the time we start processing the queue, so we've already
    // dealt with the props. Context in components that specify
    // shouldComponentUpdate is tricky; but we'll have to account for
    // that regardless.


    markSkippedUpdateLanes(newLanes);
    workInProgress.lanes = newLanes;
    workInProgress.memoizedState = newState;
  }

  {
    currentlyProcessingQueue = null;
  }
}

function callCallback(callback, context) {
  if (typeof callback !== 'function') {
    throw new Error('Invalid argument passed as callback. Expected a function. Instead ' + ("received: " + callback));
  }

  callback.call(context);
}

function resetHasForceUpdateBeforeProcessing() {
  hasForceUpdate = false;
}
function checkHasForceUpdateAfterProcessing() {
  return hasForceUpdate;
}
function commitUpdateQueue(finishedWork, finishedQueue, instance) {
  // Commit the effects
  var effects = finishedQueue.effects;
  finishedQueue.effects = null;

  if (effects !== null) {
    for (var i = 0; i < effects.length; i++) {
      var effect = effects[i];
      var callback = effect.callback;

      if (callback !== null) {
        effect.callback = null;
        callCallback(callback, instance);
      }
    }
  }
}

var fakeInternalInstance = {}; // React.Component uses a shared frozen object by default.
// We'll use it to determine whether we need to initialize legacy refs.

var emptyRefsObject = new React.Component().refs;
var didWarnAboutStateAssignmentForComponent;
var didWarnAboutUninitializedState;
var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;
var didWarnAboutLegacyLifecyclesAndDerivedState;
var didWarnAboutUndefinedDerivedState;
var warnOnUndefinedDerivedState;
var warnOnInvalidCallback;
var didWarnAboutDirectlyAssigningPropsToState;
var didWarnAboutContextTypeAndContextTypes;
var didWarnAboutInvalidateContextType;

{
  didWarnAboutStateAssignmentForComponent = new Set();
  didWarnAboutUninitializedState = new Set();
  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  didWarnAboutDirectlyAssigningPropsToState = new Set();
  didWarnAboutUndefinedDerivedState = new Set();
  didWarnAboutContextTypeAndContextTypes = new Set();
  didWarnAboutInvalidateContextType = new Set();
  var didWarnOnInvalidCallback = new Set();

  warnOnInvalidCallback = function (callback, callerName) {
    if (callback === null || typeof callback === 'function') {
      return;
    }

    var key = callerName + '_' + callback;

    if (!didWarnOnInvalidCallback.has(key)) {
      didWarnOnInvalidCallback.add(key);

      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  };

  warnOnUndefinedDerivedState = function (type, partialState) {
    if (partialState === undefined) {
      var componentName = getComponentNameFromType(type) || 'Component';

      if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
        didWarnAboutUndefinedDerivedState.add(componentName);

        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
      }
    }
  }; // This is so gross but it's at least non-critical and can be removed if
  // it causes problems. This is meant to give a nicer error message for
  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  // ...)) which otherwise throws a "_processChildContext is not a function"
  // exception.


  Object.defineProperty(fakeInternalInstance, '_processChildContext', {
    enumerable: false,
    value: function () {
      throw new Error('_processChildContext is not available in React 16+. This likely ' + 'means you have multiple copies of React and are attempting to nest ' + 'a React 15 tree inside a React 16 tree using ' + "unstable_renderSubtreeIntoContainer, which isn't supported. Try " + 'to make sure you have only one copy of React (and ideally, switch ' + 'to ReactDOM.createPortal).');
    }
  });
  Object.freeze(fakeInternalInstance);
}

function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  var prevState = workInProgress.memoizedState;
  var partialState = getDerivedStateFromProps(nextProps, prevState);

  {
    if ( workInProgress.mode & StrictLegacyMode) {
      setIsStrictModeForDevtools(true);

      try {
        // Invoke the function an extra time to help detect side-effects.
        partialState = getDerivedStateFromProps(nextProps, prevState);
      } finally {
        setIsStrictModeForDevtools(false);
      }
    }

    warnOnUndefinedDerivedState(ctor, partialState);
  } // Merge the partial state and the previous state.


  var memoizedState = partialState === null || partialState === undefined ? prevState : assign({}, prevState, partialState);
  workInProgress.memoizedState = memoizedState; // Once the update queue is empty, persist the derived state onto the
  // base state.

  if (workInProgress.lanes === NoLanes) {
    // Queue is always non-null for classes
    var updateQueue = workInProgress.updateQueue;
    updateQueue.baseState = memoizedState;
  }
}

var classComponentUpdater = {
  isMounted: isMounted,
  enqueueSetState: function (inst, payload, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'setState');
      }

      update.callback = callback;
    }

    var root = enqueueUpdate(fiber, update, lane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, lane, eventTime);
      entangleTransitions(root, fiber, lane);
    }

    {
      markStateUpdateScheduled(fiber, lane);
    }
  },
  enqueueReplaceState: function (inst, payload, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.tag = ReplaceState;
    update.payload = payload;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'replaceState');
      }

      update.callback = callback;
    }

    var root = enqueueUpdate(fiber, update, lane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, lane, eventTime);
      entangleTransitions(root, fiber, lane);
    }

    {
      markStateUpdateScheduled(fiber, lane);
    }
  },
  enqueueForceUpdate: function (inst, callback) {
    var fiber = get(inst);
    var eventTime = requestEventTime();
    var lane = requestUpdateLane(fiber);
    var update = createUpdate(eventTime, lane);
    update.tag = ForceUpdate;

    if (callback !== undefined && callback !== null) {
      {
        warnOnInvalidCallback(callback, 'forceUpdate');
      }

      update.callback = callback;
    }

    var root = enqueueUpdate(fiber, update, lane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, lane, eventTime);
      entangleTransitions(root, fiber, lane);
    }

    {
      markForceUpdateScheduled(fiber, lane);
    }
  }
};

function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  var instance = workInProgress.stateNode;

  if (typeof instance.shouldComponentUpdate === 'function') {
    var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);

    {
      if ( workInProgress.mode & StrictLegacyMode) {
        setIsStrictModeForDevtools(true);

        try {
          // Invoke the function an extra time to help detect side-effects.
          shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
        } finally {
          setIsStrictModeForDevtools(false);
        }
      }

      if (shouldUpdate === undefined) {
        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentNameFromType(ctor) || 'Component');
      }
    }

    return shouldUpdate;
  }

  if (ctor.prototype && ctor.prototype.isPureReactComponent) {
    return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  }

  return true;
}

function checkClassInstance(workInProgress, ctor, newProps) {
  var instance = workInProgress.stateNode;

  {
    var name = getComponentNameFromType(ctor) || 'Component';
    var renderPresent = instance.render;

    if (!renderPresent) {
      if (ctor.prototype && typeof ctor.prototype.render === 'function') {
        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
      } else {
        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
      }
    }

    if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) {
      error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);
    }

    if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) {
      error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);
    }

    if (instance.propTypes) {
      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);
    }

    if (instance.contextType) {
      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);
    }

    {
      if (instance.contextTypes) {
        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);
      }

      if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
        didWarnAboutContextTypeAndContextTypes.add(ctor);

        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
      }
    }

    if (typeof instance.componentShouldUpdate === 'function') {
      error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);
    }

    if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentNameFromType(ctor) || 'A pure component');
    }

    if (typeof instance.componentDidUnmount === 'function') {
      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);
    }

    if (typeof instance.componentDidReceiveProps === 'function') {
      error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);
    }

    if (typeof instance.componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);
    }

    if (typeof instance.UNSAFE_componentWillRecieveProps === 'function') {
      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);
    }

    var hasMutatedProps = instance.props !== newProps;

    if (instance.props !== undefined && hasMutatedProps) {
      error('%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name);
    }

    if (instance.defaultProps) {
      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);

      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentNameFromType(ctor));
    }

    if (typeof instance.getDerivedStateFromProps === 'function') {
      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof instance.getDerivedStateFromError === 'function') {
      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);
    }

    if (typeof ctor.getSnapshotBeforeUpdate === 'function') {
      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);
    }

    var _state = instance.state;

    if (_state && (typeof _state !== 'object' || isArray(_state))) {
      error('%s.state: must be set to an object or null', name);
    }

    if (typeof instance.getChildContext === 'function' && typeof ctor.childContextTypes !== 'object') {
      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);
    }
  }
}

function adoptClassInstance(workInProgress, instance) {
  instance.updater = classComponentUpdater;
  workInProgress.stateNode = instance; // The instance needs access to the fiber so that it can schedule updates

  set(instance, workInProgress);

  {
    instance._reactInternalInstance = fakeInternalInstance;
  }
}

function constructClassInstance(workInProgress, ctor, props) {
  var isLegacyContextConsumer = false;
  var unmaskedContext = emptyContextObject;
  var context = emptyContextObject;
  var contextType = ctor.contextType;

  {
    if ('contextType' in ctor) {
      var isValid = // Allow null for conditional declaration
      contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>

      if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
        didWarnAboutInvalidateContextType.add(ctor);
        var addendum = '';

        if (contextType === undefined) {
          addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
        } else if (typeof contextType !== 'object') {
          addendum = ' However, it is set to a ' + typeof contextType + '.';
        } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
          addendum = ' Did you accidentally pass the Context.Provider instead?';
        } else if (contextType._context !== undefined) {
          // <Context.Consumer>
          addendum = ' Did you accidentally pass the Context.Consumer instead?';
        } else {
          addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
        }

        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentNameFromType(ctor) || 'Component', addendum);
      }
    }
  }

  if (typeof contextType === 'object' && contextType !== null) {
    context = readContext(contextType);
  } else {
    unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    var contextTypes = ctor.contextTypes;
    isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
    context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  }

  var instance = new ctor(props, context); // Instantiate twice to help detect side-effects.

  {
    if ( workInProgress.mode & StrictLegacyMode) {
      setIsStrictModeForDevtools(true);

      try {
        instance = new ctor(props, context); // eslint-disable-line no-new
      } finally {
        setIsStrictModeForDevtools(false);
      }
    }
  }

  var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  adoptClassInstance(workInProgress, instance);

  {
    if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
      var componentName = getComponentNameFromType(ctor) || 'Component';

      if (!didWarnAboutUninitializedState.has(componentName)) {
        didWarnAboutUninitializedState.add(componentName);

        error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
      }
    } // If new component APIs are defined, "unsafe" lifecycles won't be called.
    // Warn about these lifecycles if they are present.
    // Don't warn about react-lifecycles-compat polyfilled methods though.


    if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
      var foundWillMountName = null;
      var foundWillReceivePropsName = null;
      var foundWillUpdateName = null;

      if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
        foundWillMountName = 'componentWillMount';
      } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
        foundWillMountName = 'UNSAFE_componentWillMount';
      }

      if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
        foundWillReceivePropsName = 'componentWillReceiveProps';
      } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
        foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
      }

      if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
        foundWillUpdateName = 'componentWillUpdate';
      } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        foundWillUpdateName = 'UNSAFE_componentWillUpdate';
      }

      if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
        var _componentName = getComponentNameFromType(ctor) || 'Component';

        var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';

        if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);

          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://reactjs.org/link/unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName !== null ? "\n  " + foundWillMountName : '', foundWillReceivePropsName !== null ? "\n  " + foundWillReceivePropsName : '', foundWillUpdateName !== null ? "\n  " + foundWillUpdateName : '');
        }
      }
    }
  } // Cache unmasked context so we can avoid recreating masked context unless necessary.
  // ReactFiberContext usually updates this cache but can't for newly-created instances.


  if (isLegacyContextConsumer) {
    cacheContext(workInProgress, unmaskedContext, context);
  }

  return instance;
}

function callComponentWillMount(workInProgress, instance) {
  var oldState = instance.state;

  if (typeof instance.componentWillMount === 'function') {
    instance.componentWillMount();
  }

  if (typeof instance.UNSAFE_componentWillMount === 'function') {
    instance.UNSAFE_componentWillMount();
  }

  if (oldState !== instance.state) {
    {
      error('%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentNameFromFiber(workInProgress) || 'Component');
    }

    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
}

function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  var oldState = instance.state;

  if (typeof instance.componentWillReceiveProps === 'function') {
    instance.componentWillReceiveProps(newProps, nextContext);
  }

  if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  }

  if (instance.state !== oldState) {
    {
      var componentName = getComponentNameFromFiber(workInProgress) || 'Component';

      if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
        didWarnAboutStateAssignmentForComponent.add(componentName);

        error('%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
      }
    }

    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  }
} // Invokes the mount life-cycles on a previously never rendered instance.


function mountClassInstance(workInProgress, ctor, newProps, renderLanes) {
  {
    checkClassInstance(workInProgress, ctor, newProps);
  }

  var instance = workInProgress.stateNode;
  instance.props = newProps;
  instance.state = workInProgress.memoizedState;
  instance.refs = emptyRefsObject;
  initializeUpdateQueue(workInProgress);
  var contextType = ctor.contextType;

  if (typeof contextType === 'object' && contextType !== null) {
    instance.context = readContext(contextType);
  } else {
    var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    instance.context = getMaskedContext(workInProgress, unmaskedContext);
  }

  {
    if (instance.state === newProps) {
      var componentName = getComponentNameFromType(ctor) || 'Component';

      if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
        didWarnAboutDirectlyAssigningPropsToState.add(componentName);

        error('%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
      }
    }

    if (workInProgress.mode & StrictLegacyMode) {
      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
    }

    {
      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
    }
  }

  instance.state = workInProgress.memoizedState;
  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    instance.state = workInProgress.memoizedState;
  } // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.


  if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
    callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's
    // process them now.

    processUpdateQueue(workInProgress, newProps, instance, renderLanes);
    instance.state = workInProgress.memoizedState;
  }

  if (typeof instance.componentDidMount === 'function') {
    var fiberFlags = Update;

    {
      fiberFlags |= LayoutStatic;
    }

    if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
      fiberFlags |= MountLayoutDev;
    }

    workInProgress.flags |= fiberFlags;
  }
}

function resumeMountClassInstance(workInProgress, ctor, newProps, renderLanes) {
  var instance = workInProgress.stateNode;
  var oldProps = workInProgress.memoizedProps;
  instance.props = oldProps;
  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.
  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.

  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (oldProps !== newProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
  newState = workInProgress.memoizedState;

  if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      var fiberFlags = Update;

      {
        fiberFlags |= LayoutStatic;
      }

      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
        fiberFlags |= MountLayoutDev;
      }

      workInProgress.flags |= fiberFlags;
    }

    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
      if (typeof instance.componentWillMount === 'function') {
        instance.componentWillMount();
      }

      if (typeof instance.UNSAFE_componentWillMount === 'function') {
        instance.UNSAFE_componentWillMount();
      }
    }

    if (typeof instance.componentDidMount === 'function') {
      var _fiberFlags = Update;

      {
        _fiberFlags |= LayoutStatic;
      }

      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
        _fiberFlags |= MountLayoutDev;
      }

      workInProgress.flags |= _fiberFlags;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidMount === 'function') {
      var _fiberFlags2 = Update;

      {
        _fiberFlags2 |= LayoutStatic;
      }

      if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
        _fiberFlags2 |= MountLayoutDev;
      }

      workInProgress.flags |= _fiberFlags2;
    } // If shouldComponentUpdate returned false, we should still update the
    // memoized state to indicate that this work can be reused.


    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  } // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.


  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;
  return shouldUpdate;
} // Invokes the update life-cycles and returns false if it shouldn't rerender.


function updateClassInstance(current, workInProgress, ctor, newProps, renderLanes) {
  var instance = workInProgress.stateNode;
  cloneUpdateQueue(current, workInProgress);
  var unresolvedOldProps = workInProgress.memoizedProps;
  var oldProps = workInProgress.type === workInProgress.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress.type, unresolvedOldProps);
  instance.props = oldProps;
  var unresolvedNewProps = workInProgress.pendingProps;
  var oldContext = instance.context;
  var contextType = ctor.contextType;
  var nextContext = emptyContextObject;

  if (typeof contextType === 'object' && contextType !== null) {
    nextContext = readContext(contextType);
  } else {
    var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
    nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  }

  var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function'; // Note: During these life-cycles, instance.props/instance.state are what
  // ever the previously attempted to render - not the "current". However,
  // during componentDidUpdate we pass the "current" props.
  // In order to support react-lifecycles-compat polyfilled components,
  // Unsafe lifecycles should not be invoked for components using the new APIs.

  if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
    if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) {
      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
    }
  }

  resetHasForceUpdateBeforeProcessing();
  var oldState = workInProgress.memoizedState;
  var newState = instance.state = oldState;
  processUpdateQueue(workInProgress, newProps, instance, renderLanes);
  newState = workInProgress.memoizedState;

  if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !(enableLazyContextPropagation   )) {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Update;
      }
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Snapshot;
      }
    }

    return false;
  }

  if (typeof getDerivedStateFromProps === 'function') {
    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
    newState = workInProgress.memoizedState;
  }

  var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice,
  // both before and after `shouldComponentUpdate` has been called. Not ideal,
  // but I'm loath to refactor this function. This only happens for memoized
  // components so it's not that common.
  enableLazyContextPropagation   ;

  if (shouldUpdate) {
    // In order to support react-lifecycles-compat polyfilled components,
    // Unsafe lifecycles should not be invoked for components using the new APIs.
    if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
      if (typeof instance.componentWillUpdate === 'function') {
        instance.componentWillUpdate(newProps, newState, nextContext);
      }

      if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
      }
    }

    if (typeof instance.componentDidUpdate === 'function') {
      workInProgress.flags |= Update;
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      workInProgress.flags |= Snapshot;
    }
  } else {
    // If an update was already in progress, we should schedule an Update
    // effect even though we're bailing out, so that cWU/cDU are called.
    if (typeof instance.componentDidUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Update;
      }
    }

    if (typeof instance.getSnapshotBeforeUpdate === 'function') {
      if (unresolvedOldProps !== current.memoizedProps || oldState !== current.memoizedState) {
        workInProgress.flags |= Snapshot;
      }
    } // If shouldComponentUpdate returned false, we should still update the
    // memoized props/state to indicate that this work can be reused.


    workInProgress.memoizedProps = newProps;
    workInProgress.memoizedState = newState;
  } // Update the existing instance's state, props, and context pointers even
  // if shouldComponentUpdate returns false.


  instance.props = newProps;
  instance.state = newState;
  instance.context = nextContext;
  return shouldUpdate;
}

var didWarnAboutMaps;
var didWarnAboutGenerators;
var didWarnAboutStringRefs;
var ownerHasKeyUseWarning;
var ownerHasFunctionTypeWarning;

var warnForMissingKey = function (child, returnFiber) {};

{
  didWarnAboutMaps = false;
  didWarnAboutGenerators = false;
  didWarnAboutStringRefs = {};
  /**
   * Warn if there's no key explicitly set on dynamic arrays of children or
   * object keys are not valid. This allows us to keep track of children between
   * updates.
   */

  ownerHasKeyUseWarning = {};
  ownerHasFunctionTypeWarning = {};

  warnForMissingKey = function (child, returnFiber) {
    if (child === null || typeof child !== 'object') {
      return;
    }

    if (!child._store || child._store.validated || child.key != null) {
      return;
    }

    if (typeof child._store !== 'object') {
      throw new Error('React Component in warnForMissingKey should have a _store. ' + 'This error is likely caused by a bug in React. Please file an issue.');
    }

    child._store.validated = true;
    var componentName = getComponentNameFromFiber(returnFiber) || 'Component';

    if (ownerHasKeyUseWarning[componentName]) {
      return;
    }

    ownerHasKeyUseWarning[componentName] = true;

    error('Each child in a list should have a unique ' + '"key" prop. See https://reactjs.org/link/warning-keys for ' + 'more information.');
  };
}

function coerceRef(returnFiber, current, element) {
  var mixedRef = element.ref;

  if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
    {
      // TODO: Clean this up once we turn on the string ref warning for
      // everyone, because the strict mode case will no longer be relevant
      if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs
      // because these cannot be automatically converted to an arrow function
      // using a codemod. Therefore, we don't have to warn about string refs again.
      !(element._owner && element._self && element._owner.stateNode !== element._self)) {
        var componentName = getComponentNameFromFiber(returnFiber) || 'Component';

        if (!didWarnAboutStringRefs[componentName]) {
          {
            error('A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', mixedRef);
          }

          didWarnAboutStringRefs[componentName] = true;
        }
      }
    }

    if (element._owner) {
      var owner = element._owner;
      var inst;

      if (owner) {
        var ownerFiber = owner;

        if (ownerFiber.tag !== ClassComponent) {
          throw new Error('Function components cannot have string refs. ' + 'We recommend using useRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref');
        }

        inst = ownerFiber.stateNode;
      }

      if (!inst) {
        throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a " + 'bug in React. Please file an issue.');
      } // Assigning this to a const so Flow knows it won't change in the closure


      var resolvedInst = inst;

      {
        checkPropStringCoercion(mixedRef, 'ref');
      }

      var stringRef = '' + mixedRef; // Check if previous string ref matches new string ref

      if (current !== null && current.ref !== null && typeof current.ref === 'function' && current.ref._stringRef === stringRef) {
        return current.ref;
      }

      var ref = function (value) {
        var refs = resolvedInst.refs;

        if (refs === emptyRefsObject) {
          // This is a lazy pooled frozen object, so we need to initialize.
          refs = resolvedInst.refs = {};
        }

        if (value === null) {
          delete refs[stringRef];
        } else {
          refs[stringRef] = value;
        }
      };

      ref._stringRef = stringRef;
      return ref;
    } else {
      if (typeof mixedRef !== 'string') {
        throw new Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.');
      }

      if (!element._owner) {
        throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of" + ' the following reasons:\n' + '1. You may be adding a ref to a function component\n' + "2. You may be adding a ref to a component that was not created inside a component's render method\n" + '3. You have multiple copies of React loaded\n' + 'See https://reactjs.org/link/refs-must-have-owner for more information.');
      }
    }
  }

  return mixedRef;
}

function throwOnInvalidObjectType(returnFiber, newChild) {
  var childString = Object.prototype.toString.call(newChild);
  throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
}

function warnOnFunctionType(returnFiber) {
  {
    var componentName = getComponentNameFromFiber(returnFiber) || 'Component';

    if (ownerHasFunctionTypeWarning[componentName]) {
      return;
    }

    ownerHasFunctionTypeWarning[componentName] = true;

    error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  }
}

function resolveLazy(lazyType) {
  var payload = lazyType._payload;
  var init = lazyType._init;
  return init(payload);
} // This wrapper function exists because I expect to clone the code in each path
// to be able to optimize each path individually by branching early. This needs
// a compiler or we can do it manually. Helpers that don't need this branching
// live outside of this function.


function ChildReconciler(shouldTrackSideEffects) {
  function deleteChild(returnFiber, childToDelete) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return;
    }

    var deletions = returnFiber.deletions;

    if (deletions === null) {
      returnFiber.deletions = [childToDelete];
      returnFiber.flags |= ChildDeletion;
    } else {
      deletions.push(childToDelete);
    }
  }

  function deleteRemainingChildren(returnFiber, currentFirstChild) {
    if (!shouldTrackSideEffects) {
      // Noop.
      return null;
    } // TODO: For the shouldClone case, this could be micro-optimized a bit by
    // assuming that after the first child we've already added everything.


    var childToDelete = currentFirstChild;

    while (childToDelete !== null) {
      deleteChild(returnFiber, childToDelete);
      childToDelete = childToDelete.sibling;
    }

    return null;
  }

  function mapRemainingChildren(returnFiber, currentFirstChild) {
    // Add the remaining children to a temporary map so that we can find them by
    // keys quickly. Implicit (null) keys get added to this set with their index
    // instead.
    var existingChildren = new Map();
    var existingChild = currentFirstChild;

    while (existingChild !== null) {
      if (existingChild.key !== null) {
        existingChildren.set(existingChild.key, existingChild);
      } else {
        existingChildren.set(existingChild.index, existingChild);
      }

      existingChild = existingChild.sibling;
    }

    return existingChildren;
  }

  function useFiber(fiber, pendingProps) {
    // We currently set sibling to null and index to 0 here because it is easy
    // to forget to do before returning it. E.g. for the single child case.
    var clone = createWorkInProgress(fiber, pendingProps);
    clone.index = 0;
    clone.sibling = null;
    return clone;
  }

  function placeChild(newFiber, lastPlacedIndex, newIndex) {
    newFiber.index = newIndex;

    if (!shouldTrackSideEffects) {
      // During hydration, the useId algorithm needs to know which fibers are
      // part of a list of children (arrays, iterators).
      newFiber.flags |= Forked;
      return lastPlacedIndex;
    }

    var current = newFiber.alternate;

    if (current !== null) {
      var oldIndex = current.index;

      if (oldIndex < lastPlacedIndex) {
        // This is a move.
        newFiber.flags |= Placement;
        return lastPlacedIndex;
      } else {
        // This item can stay in place.
        return oldIndex;
      }
    } else {
      // This is an insertion.
      newFiber.flags |= Placement;
      return lastPlacedIndex;
    }
  }

  function placeSingleChild(newFiber) {
    // This is simpler for the single child case. We only need to do a
    // placement for inserting new children.
    if (shouldTrackSideEffects && newFiber.alternate === null) {
      newFiber.flags |= Placement;
    }

    return newFiber;
  }

  function updateTextNode(returnFiber, current, textContent, lanes) {
    if (current === null || current.tag !== HostText) {
      // Insert
      var created = createFiberFromText(textContent, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, textContent);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateElement(returnFiber, current, element, lanes) {
    var elementType = element.type;

    if (elementType === REACT_FRAGMENT_TYPE) {
      return updateFragment(returnFiber, current, element.props.children, lanes, element.key);
    }

    if (current !== null) {
      if (current.elementType === elementType || ( // Keep this check inline so it only runs on the false path:
       isCompatibleFamilyForHotReloading(current, element) ) || // Lazy types should reconcile their resolved type.
      // We need to do this after the Hot Reloading check above,
      // because hot reloading has different semantics than prod because
      // it doesn't resuspend. So we can't let the call below suspend.
      typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type) {
        // Move based on index
        var existing = useFiber(current, element.props);
        existing.ref = coerceRef(returnFiber, current, element);
        existing.return = returnFiber;

        {
          existing._debugSource = element._source;
          existing._debugOwner = element._owner;
        }

        return existing;
      }
    } // Insert


    var created = createFiberFromElement(element, returnFiber.mode, lanes);
    created.ref = coerceRef(returnFiber, current, element);
    created.return = returnFiber;
    return created;
  }

  function updatePortal(returnFiber, current, portal, lanes) {
    if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
      // Insert
      var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, portal.children || []);
      existing.return = returnFiber;
      return existing;
    }
  }

  function updateFragment(returnFiber, current, fragment, lanes, key) {
    if (current === null || current.tag !== Fragment) {
      // Insert
      var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
      created.return = returnFiber;
      return created;
    } else {
      // Update
      var existing = useFiber(current, fragment);
      existing.return = returnFiber;
      return existing;
    }
  }

  function createChild(returnFiber, newChild, lanes) {
    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      var created = createFiberFromText('' + newChild, returnFiber.mode, lanes);
      created.return = returnFiber;
      return created;
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _created = createFiberFromElement(newChild, returnFiber.mode, lanes);

            _created.ref = coerceRef(returnFiber, null, newChild);
            _created.return = returnFiber;
            return _created;
          }

        case REACT_PORTAL_TYPE:
          {
            var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes);

            _created2.return = returnFiber;
            return _created2;
          }

        case REACT_LAZY_TYPE:
          {
            var payload = newChild._payload;
            var init = newChild._init;
            return createChild(returnFiber, init(payload), lanes);
          }
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null);

        _created3.return = returnFiber;
        return _created3;
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }

  function updateSlot(returnFiber, oldFiber, newChild, lanes) {
    // Update the fiber if the keys match, otherwise return null.
    var key = oldFiber !== null ? oldFiber.key : null;

    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
      // Text nodes don't have keys. If the previous node is implicitly keyed
      // we can continue to replace it without aborting even if it is not a text
      // node.
      if (key !== null) {
        return null;
      }

      return updateTextNode(returnFiber, oldFiber, '' + newChild, lanes);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            if (newChild.key === key) {
              return updateElement(returnFiber, oldFiber, newChild, lanes);
            } else {
              return null;
            }
          }

        case REACT_PORTAL_TYPE:
          {
            if (newChild.key === key) {
              return updatePortal(returnFiber, oldFiber, newChild, lanes);
            } else {
              return null;
            }
          }

        case REACT_LAZY_TYPE:
          {
            var payload = newChild._payload;
            var init = newChild._init;
            return updateSlot(returnFiber, oldFiber, init(payload), lanes);
          }
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        if (key !== null) {
          return null;
        }

        return updateFragment(returnFiber, oldFiber, newChild, lanes, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }

  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
      // Text nodes don't have keys, so we neither have to check the old nor
      // new node for the key. If both are text nodes, they match.
      var matchedFiber = existingChildren.get(newIdx) || null;
      return updateTextNode(returnFiber, matchedFiber, '' + newChild, lanes);
    }

    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          {
            var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

            return updateElement(returnFiber, _matchedFiber, newChild, lanes);
          }

        case REACT_PORTAL_TYPE:
          {
            var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;

            return updatePortal(returnFiber, _matchedFiber2, newChild, lanes);
          }

        case REACT_LAZY_TYPE:
          var payload = newChild._payload;
          var init = newChild._init;
          return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes);
      }

      if (isArray(newChild) || getIteratorFn(newChild)) {
        var _matchedFiber3 = existingChildren.get(newIdx) || null;

        return updateFragment(returnFiber, _matchedFiber3, newChild, lanes, null);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    }

    return null;
  }
  /**
   * Warns if there is a duplicate or missing key
   */


  function warnOnInvalidKey(child, knownKeys, returnFiber) {
    {
      if (typeof child !== 'object' || child === null) {
        return knownKeys;
      }

      switch (child.$$typeof) {
        case REACT_ELEMENT_TYPE:
        case REACT_PORTAL_TYPE:
          warnForMissingKey(child, returnFiber);
          var key = child.key;

          if (typeof key !== 'string') {
            break;
          }

          if (knownKeys === null) {
            knownKeys = new Set();
            knownKeys.add(key);
            break;
          }

          if (!knownKeys.has(key)) {
            knownKeys.add(key);
            break;
          }

          error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);

          break;

        case REACT_LAZY_TYPE:
          var payload = child._payload;
          var init = child._init;
          warnOnInvalidKey(init(payload), knownKeys, returnFiber);
          break;
      }
    }

    return knownKeys;
  }

  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
    // This algorithm can't optimize by searching from both ends since we
    // don't have backpointers on fibers. I'm trying to see how far we can get
    // with that model. If it ends up not being worth the tradeoffs, we can
    // add it later.
    // Even with a two ended optimization, we'd want to optimize for the case
    // where there are few changes and brute force the comparison instead of
    // going for the Map. It'd like to explore hitting that path first in
    // forward-only mode and only go for the Map once we notice that we need
    // lots of look ahead. This doesn't handle reversal as well as two ended
    // search but that's unusual. Besides, for the two ended optimization to
    // work on Iterables, we'd need to copy the whole set.
    // In this first iteration, we'll just live with hitting the bad case
    // (adding everything to a Map) in for every insert/move.
    // If you change this code, also update reconcileChildrenIterator() which
    // uses the same algorithm.
    {
      // First, validate keys.
      var knownKeys = null;

      for (var i = 0; i < newChildren.length; i++) {
        var child = newChildren[i];
        knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
      }
    }

    var resultingFirstChild = null;
    var previousNewFiber = null;
    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;

    for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }

      var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes);

      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (oldFiber === null) {
          oldFiber = nextOldFiber;
        }

        break;
      }

      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }

      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }

      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (newIdx === newChildren.length) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);

      if (getIsHydrating()) {
        var numberOfForks = newIdx;
        pushTreeFork(returnFiber, numberOfForks);
      }

      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; newIdx < newChildren.length; newIdx++) {
        var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes);

        if (_newFiber === null) {
          continue;
        }

        lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber;
        } else {
          previousNewFiber.sibling = _newFiber;
        }

        previousNewFiber = _newFiber;
      }

      if (getIsHydrating()) {
        var _numberOfForks = newIdx;
        pushTreeFork(returnFiber, _numberOfForks);
      }

      return resultingFirstChild;
    } // Add all children to a key map for quick lookups.


    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

    for (; newIdx < newChildren.length; newIdx++) {
      var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes);

      if (_newFiber2 !== null) {
        if (shouldTrackSideEffects) {
          if (_newFiber2.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
          }
        }

        lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber2;
        } else {
          previousNewFiber.sibling = _newFiber2;
        }

        previousNewFiber = _newFiber2;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    if (getIsHydrating()) {
      var _numberOfForks2 = newIdx;
      pushTreeFork(returnFiber, _numberOfForks2);
    }

    return resultingFirstChild;
  }

  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) {
    // This is the same implementation as reconcileChildrenArray(),
    // but using the iterator instead.
    var iteratorFn = getIteratorFn(newChildrenIterable);

    if (typeof iteratorFn !== 'function') {
      throw new Error('An object is not an iterable. This error is likely caused by a bug in ' + 'React. Please file an issue.');
    }

    {
      // We don't support rendering Generators because it's a mutation.
      // See https://github.com/facebook/react/issues/12995
      if (typeof Symbol === 'function' && // $FlowFixMe Flow doesn't know about toStringTag
      newChildrenIterable[Symbol.toStringTag] === 'Generator') {
        if (!didWarnAboutGenerators) {
          error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');
        }

        didWarnAboutGenerators = true;
      } // Warn about using Maps as children


      if (newChildrenIterable.entries === iteratorFn) {
        if (!didWarnAboutMaps) {
          error('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
        }

        didWarnAboutMaps = true;
      } // First, validate keys.
      // We'll get a different iterator later for the main pass.


      var _newChildren = iteratorFn.call(newChildrenIterable);

      if (_newChildren) {
        var knownKeys = null;

        var _step = _newChildren.next();

        for (; !_step.done; _step = _newChildren.next()) {
          var child = _step.value;
          knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber);
        }
      }
    }

    var newChildren = iteratorFn.call(newChildrenIterable);

    if (newChildren == null) {
      throw new Error('An iterable object provided no iterator.');
    }

    var resultingFirstChild = null;
    var previousNewFiber = null;
    var oldFiber = currentFirstChild;
    var lastPlacedIndex = 0;
    var newIdx = 0;
    var nextOldFiber = null;
    var step = newChildren.next();

    for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
      if (oldFiber.index > newIdx) {
        nextOldFiber = oldFiber;
        oldFiber = null;
      } else {
        nextOldFiber = oldFiber.sibling;
      }

      var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);

      if (newFiber === null) {
        // TODO: This breaks on empty slots like null children. That's
        // unfortunate because it triggers the slow path all the time. We need
        // a better way to communicate whether this was a miss or null,
        // boolean, undefined, etc.
        if (oldFiber === null) {
          oldFiber = nextOldFiber;
        }

        break;
      }

      if (shouldTrackSideEffects) {
        if (oldFiber && newFiber.alternate === null) {
          // We matched the slot, but we didn't reuse the existing fiber, so we
          // need to delete the existing child.
          deleteChild(returnFiber, oldFiber);
        }
      }

      lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);

      if (previousNewFiber === null) {
        // TODO: Move out of the loop. This only happens for the first run.
        resultingFirstChild = newFiber;
      } else {
        // TODO: Defer siblings if we're not at the right index for this slot.
        // I.e. if we had null values before, then we want to defer this
        // for each null value. However, we also don't want to call updateSlot
        // with the previous one.
        previousNewFiber.sibling = newFiber;
      }

      previousNewFiber = newFiber;
      oldFiber = nextOldFiber;
    }

    if (step.done) {
      // We've reached the end of the new children. We can delete the rest.
      deleteRemainingChildren(returnFiber, oldFiber);

      if (getIsHydrating()) {
        var numberOfForks = newIdx;
        pushTreeFork(returnFiber, numberOfForks);
      }

      return resultingFirstChild;
    }

    if (oldFiber === null) {
      // If we don't have any more existing children we can choose a fast path
      // since the rest will all be insertions.
      for (; !step.done; newIdx++, step = newChildren.next()) {
        var _newFiber3 = createChild(returnFiber, step.value, lanes);

        if (_newFiber3 === null) {
          continue;
        }

        lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          // TODO: Move out of the loop. This only happens for the first run.
          resultingFirstChild = _newFiber3;
        } else {
          previousNewFiber.sibling = _newFiber3;
        }

        previousNewFiber = _newFiber3;
      }

      if (getIsHydrating()) {
        var _numberOfForks3 = newIdx;
        pushTreeFork(returnFiber, _numberOfForks3);
      }

      return resultingFirstChild;
    } // Add all children to a key map for quick lookups.


    var existingChildren = mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.

    for (; !step.done; newIdx++, step = newChildren.next()) {
      var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes);

      if (_newFiber4 !== null) {
        if (shouldTrackSideEffects) {
          if (_newFiber4.alternate !== null) {
            // The new fiber is a work in progress, but if there exists a
            // current, that means that we reused the fiber. We need to delete
            // it from the child list so that we don't add it to the deletion
            // list.
            existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
          }
        }

        lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);

        if (previousNewFiber === null) {
          resultingFirstChild = _newFiber4;
        } else {
          previousNewFiber.sibling = _newFiber4;
        }

        previousNewFiber = _newFiber4;
      }
    }

    if (shouldTrackSideEffects) {
      // Any existing children that weren't consumed above were deleted. We need
      // to add them to the deletion list.
      existingChildren.forEach(function (child) {
        return deleteChild(returnFiber, child);
      });
    }

    if (getIsHydrating()) {
      var _numberOfForks4 = newIdx;
      pushTreeFork(returnFiber, _numberOfForks4);
    }

    return resultingFirstChild;
  }

  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) {
    // There's no need to check for keys on text nodes since we don't have a
    // way to define them.
    if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
      // We already have an existing node so let's just update it and delete
      // the rest.
      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
      var existing = useFiber(currentFirstChild, textContent);
      existing.return = returnFiber;
      return existing;
    } // The existing first child is not a text node so we need to create one
    // and delete the existing ones.


    deleteRemainingChildren(returnFiber, currentFirstChild);
    var created = createFiberFromText(textContent, returnFiber.mode, lanes);
    created.return = returnFiber;
    return created;
  }

  function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) {
    var key = element.key;
    var child = currentFirstChild;

    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        var elementType = element.type;

        if (elementType === REACT_FRAGMENT_TYPE) {
          if (child.tag === Fragment) {
            deleteRemainingChildren(returnFiber, child.sibling);
            var existing = useFiber(child, element.props.children);
            existing.return = returnFiber;

            {
              existing._debugSource = element._source;
              existing._debugOwner = element._owner;
            }

            return existing;
          }
        } else {
          if (child.elementType === elementType || ( // Keep this check inline so it only runs on the false path:
           isCompatibleFamilyForHotReloading(child, element) ) || // Lazy types should reconcile their resolved type.
          // We need to do this after the Hot Reloading check above,
          // because hot reloading has different semantics than prod because
          // it doesn't resuspend. So we can't let the call below suspend.
          typeof elementType === 'object' && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) {
            deleteRemainingChildren(returnFiber, child.sibling);

            var _existing = useFiber(child, element.props);

            _existing.ref = coerceRef(returnFiber, child, element);
            _existing.return = returnFiber;

            {
              _existing._debugSource = element._source;
              _existing._debugOwner = element._owner;
            }

            return _existing;
          }
        } // Didn't match.


        deleteRemainingChildren(returnFiber, child);
        break;
      } else {
        deleteChild(returnFiber, child);
      }

      child = child.sibling;
    }

    if (element.type === REACT_FRAGMENT_TYPE) {
      var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key);
      created.return = returnFiber;
      return created;
    } else {
      var _created4 = createFiberFromElement(element, returnFiber.mode, lanes);

      _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
      _created4.return = returnFiber;
      return _created4;
    }
  }

  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) {
    var key = portal.key;
    var child = currentFirstChild;

    while (child !== null) {
      // TODO: If key === null and child.key === null, then this only applies to
      // the first item in the list.
      if (child.key === key) {
        if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
          deleteRemainingChildren(returnFiber, child.sibling);
          var existing = useFiber(child, portal.children || []);
          existing.return = returnFiber;
          return existing;
        } else {
          deleteRemainingChildren(returnFiber, child);
          break;
        }
      } else {
        deleteChild(returnFiber, child);
      }

      child = child.sibling;
    }

    var created = createFiberFromPortal(portal, returnFiber.mode, lanes);
    created.return = returnFiber;
    return created;
  } // This API will tag the children with the side-effect of the reconciliation
  // itself. They will be added to the side-effect list as we pass through the
  // children and the parent.


  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, lanes) {
    // This function is not recursive.
    // If the top level item is an array, we treat it as a set of children,
    // not as a fragment. Nested arrays on the other hand will be treated as
    // fragment nodes. Recursion happens at the normal flow.
    // Handle top level unkeyed fragments as if they were arrays.
    // This leads to an ambiguity between <>{[...]}</> and <>...</>.
    // We treat the ambiguous cases above the same.
    var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;

    if (isUnkeyedTopLevelFragment) {
      newChild = newChild.props.children;
    } // Handle object types


    if (typeof newChild === 'object' && newChild !== null) {
      switch (newChild.$$typeof) {
        case REACT_ELEMENT_TYPE:
          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes));

        case REACT_PORTAL_TYPE:
          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));

        case REACT_LAZY_TYPE:
          var payload = newChild._payload;
          var init = newChild._init; // TODO: This function is supposed to be non-recursive.

          return reconcileChildFibers(returnFiber, currentFirstChild, init(payload), lanes);
      }

      if (isArray(newChild)) {
        return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
      }

      if (getIteratorFn(newChild)) {
        return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes);
      }

      throwOnInvalidObjectType(returnFiber, newChild);
    }

    if (typeof newChild === 'string' && newChild !== '' || typeof newChild === 'number') {
      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, lanes));
    }

    {
      if (typeof newChild === 'function') {
        warnOnFunctionType(returnFiber);
      }
    } // Remaining cases are all treated as empty.


    return deleteRemainingChildren(returnFiber, currentFirstChild);
  }

  return reconcileChildFibers;
}

var reconcileChildFibers = ChildReconciler(true);
var mountChildFibers = ChildReconciler(false);
function cloneChildFibers(current, workInProgress) {
  if (current !== null && workInProgress.child !== current.child) {
    throw new Error('Resuming work not yet implemented.');
  }

  if (workInProgress.child === null) {
    return;
  }

  var currentChild = workInProgress.child;
  var newChild = createWorkInProgress(currentChild, currentChild.pendingProps);
  workInProgress.child = newChild;
  newChild.return = workInProgress;

  while (currentChild.sibling !== null) {
    currentChild = currentChild.sibling;
    newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps);
    newChild.return = workInProgress;
  }

  newChild.sibling = null;
} // Reset a workInProgress child set to prepare it for a second pass.

function resetChildFibers(workInProgress, lanes) {
  var child = workInProgress.child;

  while (child !== null) {
    resetWorkInProgress(child, lanes);
    child = child.sibling;
  }
}

var NO_CONTEXT = {};
var contextStackCursor$1 = createCursor(NO_CONTEXT);
var contextFiberStackCursor = createCursor(NO_CONTEXT);
var rootInstanceStackCursor = createCursor(NO_CONTEXT);

function requiredContext(c) {
  if (c === NO_CONTEXT) {
    throw new Error('Expected host context to exist. This error is likely caused by a bug ' + 'in React. Please file an issue.');
  }

  return c;
}

function getRootHostContainer() {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  return rootInstance;
}

function pushHostContainer(fiber, nextRootInstance) {
  // Push current root instance onto the stack;
  // This allows us to reset root when portals are popped.
  push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.

  push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.
  // However, we can't just call getRootHostContext() and push it because
  // we'd have a different number of entries on the stack depending on
  // whether getRootHostContext() throws somewhere in renderer code or not.
  // So we push an empty value first. This lets us safely unwind on errors.

  push(contextStackCursor$1, NO_CONTEXT, fiber);
  var nextRootContext = getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.

  pop(contextStackCursor$1, fiber);
  push(contextStackCursor$1, nextRootContext, fiber);
}

function popHostContainer(fiber) {
  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
  pop(rootInstanceStackCursor, fiber);
}

function getHostContext() {
  var context = requiredContext(contextStackCursor$1.current);
  return context;
}

function pushHostContext(fiber) {
  var rootInstance = requiredContext(rootInstanceStackCursor.current);
  var context = requiredContext(contextStackCursor$1.current);
  var nextContext = getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.

  if (context === nextContext) {
    return;
  } // Track the context and the Fiber that provided it.
  // This enables us to pop only Fibers that provide unique contexts.


  push(contextFiberStackCursor, fiber, fiber);
  push(contextStackCursor$1, nextContext, fiber);
}

function popHostContext(fiber) {
  // Do not pop unless this Fiber provided the current context.
  // pushHostContext() only pushes Fibers that provide unique contexts.
  if (contextFiberStackCursor.current !== fiber) {
    return;
  }

  pop(contextStackCursor$1, fiber);
  pop(contextFiberStackCursor, fiber);
}

var DefaultSuspenseContext = 0; // The Suspense Context is split into two parts. The lower bits is
// inherited deeply down the subtree. The upper bits only affect
// this immediate suspense boundary and gets reset each new
// boundary or suspense list.

var SubtreeSuspenseContextMask = 1; // Subtree Flags:
// InvisibleParentSuspenseContext indicates that one of our parent Suspense
// boundaries is not currently showing visible main content.
// Either because it is already showing a fallback or is not mounted at all.
// We can use this to determine if it is desirable to trigger a fallback at
// the parent. If not, then we might need to trigger undesirable boundaries
// and/or suspend the commit to avoid hiding the parent content.

var InvisibleParentSuspenseContext = 1; // Shallow Flags:
// ForceSuspenseFallback can be used by SuspenseList to force newly added
// items into their fallback state during one of the render passes.

var ForceSuspenseFallback = 2;
var suspenseStackCursor = createCursor(DefaultSuspenseContext);
function hasSuspenseContext(parentContext, flag) {
  return (parentContext & flag) !== 0;
}
function setDefaultShallowSuspenseContext(parentContext) {
  return parentContext & SubtreeSuspenseContextMask;
}
function setShallowSuspenseContext(parentContext, shallowContext) {
  return parentContext & SubtreeSuspenseContextMask | shallowContext;
}
function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  return parentContext | subtreeContext;
}
function pushSuspenseContext(fiber, newContext) {
  push(suspenseStackCursor, newContext, fiber);
}
function popSuspenseContext(fiber) {
  pop(suspenseStackCursor, fiber);
}

function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  // If it was the primary children that just suspended, capture and render the
  // fallback. Otherwise, don't capture and bubble to the next boundary.
  var nextState = workInProgress.memoizedState;

  if (nextState !== null) {
    if (nextState.dehydrated !== null) {
      // A dehydrated boundary always captures.
      return true;
    }

    return false;
  }

  var props = workInProgress.memoizedProps; // Regular boundaries always capture.

  {
    return true;
  } // If it's a boundary we should avoid, then we prefer to bubble up to the
}
function findFirstSuspended(row) {
  var node = row;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        var dehydrated = state.dehydrated;

        if (dehydrated === null || isSuspenseInstancePending(dehydrated) || isSuspenseInstanceFallback(dehydrated)) {
          return node;
        }
      }
    } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't
    // keep track of whether it suspended or not.
    node.memoizedProps.revealOrder !== undefined) {
      var didSuspend = (node.flags & DidCapture) !== NoFlags;

      if (didSuspend) {
        return node;
      }
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === row) {
      return null;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === row) {
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }

  return null;
}

var NoFlags$1 =
/*   */
0; // Represents whether effect should fire.

var HasEffect =
/* */
1; // Represents the phase in which the effect (not the clean-up) fires.

var Insertion =
/*  */
2;
var Layout =
/*    */
4;
var Passive$1 =
/*   */
8;

// and should be reset before starting a new render.
// This tracks which mutable sources need to be reset after a render.

var workInProgressSources = [];
function resetWorkInProgressVersions() {
  for (var i = 0; i < workInProgressSources.length; i++) {
    var mutableSource = workInProgressSources[i];

    {
      mutableSource._workInProgressVersionPrimary = null;
    }
  }

  workInProgressSources.length = 0;
}
// This ensures that the version used for server rendering matches the one
// that is eventually read during hydration.
// If they don't match there's a potential tear and a full deopt render is required.

function registerMutableSourceForHydration(root, mutableSource) {
  var getVersion = mutableSource._getVersion;
  var version = getVersion(mutableSource._source); // TODO Clear this data once all pending hydration work is finished.
  // Retaining it forever may interfere with GC.

  if (root.mutableSourceEagerHydrationData == null) {
    root.mutableSourceEagerHydrationData = [mutableSource, version];
  } else {
    root.mutableSourceEagerHydrationData.push(mutableSource, version);
  }
}

var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
var didWarnAboutMismatchedHooksForComponent;
var didWarnUncachedGetSnapshot;

{
  didWarnAboutMismatchedHooksForComponent = new Set();
}

// These are set right before calling the component.
var renderLanes = NoLanes; // The work-in-progress fiber. I've named it differently to distinguish it from
// the work-in-progress hook.

var currentlyRenderingFiber$1 = null; // Hooks are stored as a linked list on the fiber's memoizedState field. The
// current hook list is the list that belongs to the current fiber. The
// work-in-progress hook list is a new list that will be added to the
// work-in-progress fiber.

var currentHook = null;
var workInProgressHook = null; // Whether an update was scheduled at any point during the render phase. This
// does not get reset if we do another render pass; only when we're completely
// finished evaluating this component. This is an optimization so we know
// whether we need to clear render phase updates after a throw.

var didScheduleRenderPhaseUpdate = false; // Where an update was scheduled only during the current render pass. This
// gets reset after each attempt.
// TODO: Maybe there's some way to consolidate this with
// `didScheduleRenderPhaseUpdate`. Or with `numberOfReRenders`.

var didScheduleRenderPhaseUpdateDuringThisPass = false; // Counts the number of useId hooks in this component.

var localIdCounter = 0; // Used for ids that are generated completely client-side (i.e. not during
// hydration). This counter is global, so client ids are not stable across
// render attempts.

var globalClientIdCounter = 0;
var RE_RENDER_LIMIT = 25; // In DEV, this is the name of the currently executing primitive hook

var currentHookNameInDev = null; // In DEV, this list ensures that hooks are called in the same order between renders.
// The list stores the order of hooks used during the initial render (mount).
// Subsequent renders (updates) reference this list.

var hookTypesDev = null;
var hookTypesUpdateIndexDev = -1; // In DEV, this tracks whether currently rendering component needs to ignore
// the dependencies for Hooks that need them (e.g. useEffect or useMemo).
// When true, such Hooks will always be "remounted". Only used during hot reload.

var ignorePreviousDependencies = false;

function mountHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev === null) {
      hookTypesDev = [hookName];
    } else {
      hookTypesDev.push(hookName);
    }
  }
}

function updateHookTypesDev() {
  {
    var hookName = currentHookNameInDev;

    if (hookTypesDev !== null) {
      hookTypesUpdateIndexDev++;

      if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
        warnOnHookMismatchInDev(hookName);
      }
    }
  }
}

function checkDepsAreArrayDev(deps) {
  {
    if (deps !== undefined && deps !== null && !isArray(deps)) {
      // Verify deps, but only on mount to avoid extra checks.
      // It's unlikely their type would change as usually you define them inline.
      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
    }
  }
}

function warnOnHookMismatchInDev(currentHookName) {
  {
    var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1);

    if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
      didWarnAboutMismatchedHooksForComponent.add(componentName);

      if (hookTypesDev !== null) {
        var table = '';
        var secondColumnStart = 30;

        for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
          var oldHookName = hookTypesDev[i];
          var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
          var row = i + 1 + ". " + oldHookName; // Extra space so second column lines up
          // lol @ IE not supporting String#repeat

          while (row.length < secondColumnStart) {
            row += ' ';
          }

          row += newHookName + '\n';
          table += row;
        }

        error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n' + '   Previous render            Next render\n' + '   ------------------------------------------------------\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
      }
    }
  }
}

function throwInvalidHookError() {
  throw new Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
}

function areHookInputsEqual(nextDeps, prevDeps) {
  {
    if (ignorePreviousDependencies) {
      // Only true when this component is being hot reloaded.
      return false;
    }
  }

  if (prevDeps === null) {
    {
      error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
    }

    return false;
  }

  {
    // Don't bother comparing lengths in prod because these arrays should be
    // passed inline.
    if (nextDeps.length !== prevDeps.length) {
      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, "[" + prevDeps.join(', ') + "]", "[" + nextDeps.join(', ') + "]");
    }
  }

  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
    if (objectIs(nextDeps[i], prevDeps[i])) {
      continue;
    }

    return false;
  }

  return true;
}

function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
  renderLanes = nextRenderLanes;
  currentlyRenderingFiber$1 = workInProgress;

  {
    hookTypesDev = current !== null ? current._debugHookTypes : null;
    hookTypesUpdateIndexDev = -1; // Used for hot reloading:

    ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  }

  workInProgress.memoizedState = null;
  workInProgress.updateQueue = null;
  workInProgress.lanes = NoLanes; // The following should have already been reset
  // currentHook = null;
  // workInProgressHook = null;
  // didScheduleRenderPhaseUpdate = false;
  // localIdCounter = 0;
  // TODO Warn if no hooks are used at all during mount, then some are used during update.
  // Currently we will identify the update render as a mount because memoizedState === null.
  // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.
  // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  // so memoizedState would be null during updates and mounts.

  {
    if (current !== null && current.memoizedState !== null) {
      ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
    } else if (hookTypesDev !== null) {
      // This dispatcher handles an edge case where a component is updating,
      // but no stateful hooks have been used.
      // We want to match the production code behavior (which will use HooksDispatcherOnMount),
      // but with the extra DEV validation to ensure hooks ordering hasn't changed.
      // This dispatcher does that.
      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
    } else {
      ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
    }
  }

  var children = Component(props, secondArg); // Check if there was a render phase update

  if (didScheduleRenderPhaseUpdateDuringThisPass) {
    // Keep rendering in a loop for as long as render phase updates continue to
    // be scheduled. Use a counter to prevent infinite loops.
    var numberOfReRenders = 0;

    do {
      didScheduleRenderPhaseUpdateDuringThisPass = false;
      localIdCounter = 0;

      if (numberOfReRenders >= RE_RENDER_LIMIT) {
        throw new Error('Too many re-renders. React limits the number of renders to prevent ' + 'an infinite loop.');
      }

      numberOfReRenders += 1;

      {
        // Even when hot reloading, allow dependencies to stabilize
        // after first render to prevent infinite render phase updates.
        ignorePreviousDependencies = false;
      } // Start over from the beginning of the list


      currentHook = null;
      workInProgressHook = null;
      workInProgress.updateQueue = null;

      {
        // Also validate hook order for cascading updates.
        hookTypesUpdateIndexDev = -1;
      }

      ReactCurrentDispatcher$1.current =  HooksDispatcherOnRerenderInDEV ;
      children = Component(props, secondArg);
    } while (didScheduleRenderPhaseUpdateDuringThisPass);
  } // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrance.


  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

  {
    workInProgress._debugHookTypes = hookTypesDev;
  } // This check uses currentHook so that it works the same in DEV and prod bundles.
  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.


  var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  renderLanes = NoLanes;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    currentHookNameInDev = null;
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1; // Confirm that a static flag was not added or removed since the last
    // render. If this fires, it suggests that we incorrectly reset the static
    // flags in some other part of the codebase. This has happened before, for
    // example, in the SuspenseList implementation.

    if (current !== null && (current.flags & StaticMask) !== (workInProgress.flags & StaticMask) && // Disable this warning in legacy mode, because legacy Suspense is weird
    // and creates false positives. To make this work in legacy mode, we'd
    // need to mark fibers that commit in an incomplete state, somehow. For
    // now I'll disable the warning that most of the bugs that would trigger
    // it are either exclusive to concurrent mode or exist in both.
    (current.mode & ConcurrentMode) !== NoMode) {
      error('Internal React error: Expected static flag was missing. Please ' + 'notify the React team.');
    }
  }

  didScheduleRenderPhaseUpdate = false; // This is reset by checkDidRenderIdHook
  // localIdCounter = 0;

  if (didRenderTooFewHooks) {
    throw new Error('Rendered fewer hooks than expected. This may be caused by an accidental ' + 'early return statement.');
  }

  return children;
}
function checkDidRenderIdHook() {
  // This should be called immediately after every renderWithHooks call.
  // Conceptually, it's part of the return value of renderWithHooks; it's only a
  // separate function to avoid using an array tuple.
  var didRenderIdHook = localIdCounter !== 0;
  localIdCounter = 0;
  return didRenderIdHook;
}
function bailoutHooks(current, workInProgress, lanes) {
  workInProgress.updateQueue = current.updateQueue; // TODO: Don't need to reset the flags here, because they're reset in the
  // complete phase (bubbleProperties).

  if ( (workInProgress.mode & StrictEffectsMode) !== NoMode) {
    workInProgress.flags &= ~(MountPassiveDev | MountLayoutDev | Passive | Update);
  } else {
    workInProgress.flags &= ~(Passive | Update);
  }

  current.lanes = removeLanes(current.lanes, lanes);
}
function resetHooksAfterThrow() {
  // We can assume the previous dispatcher is always this one, since we set it
  // at the beginning of the render phase and there's no re-entrance.
  ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;

  if (didScheduleRenderPhaseUpdate) {
    // There were render phase updates. These are only valid for this render
    // phase, which we are now aborting. Remove the updates from the queues so
    // they do not persist to the next render. Do not remove updates from hooks
    // that weren't processed.
    //
    // Only reset the updates from the queue if it has a clone. If it does
    // not have a clone, that means it wasn't processed, and the updates were
    // scheduled before we entered the render phase.
    var hook = currentlyRenderingFiber$1.memoizedState;

    while (hook !== null) {
      var queue = hook.queue;

      if (queue !== null) {
        queue.pending = null;
      }

      hook = hook.next;
    }

    didScheduleRenderPhaseUpdate = false;
  }

  renderLanes = NoLanes;
  currentlyRenderingFiber$1 = null;
  currentHook = null;
  workInProgressHook = null;

  {
    hookTypesDev = null;
    hookTypesUpdateIndexDev = -1;
    currentHookNameInDev = null;
    isUpdatingOpaqueValueInRenderPhase = false;
  }

  didScheduleRenderPhaseUpdateDuringThisPass = false;
  localIdCounter = 0;
}

function mountWorkInProgressHook() {
  var hook = {
    memoizedState: null,
    baseState: null,
    baseQueue: null,
    queue: null,
    next: null
  };

  if (workInProgressHook === null) {
    // This is the first hook in the list
    currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook;
  } else {
    // Append to the end of the list
    workInProgressHook = workInProgressHook.next = hook;
  }

  return workInProgressHook;
}

function updateWorkInProgressHook() {
  // This function is used both for updates and for re-renders triggered by a
  // render phase update. It assumes there is either a current hook we can
  // clone, or a work-in-progress hook from a previous render pass that we can
  // use as a base. When we reach the end of the base list, we must switch to
  // the dispatcher used for mounts.
  var nextCurrentHook;

  if (currentHook === null) {
    var current = currentlyRenderingFiber$1.alternate;

    if (current !== null) {
      nextCurrentHook = current.memoizedState;
    } else {
      nextCurrentHook = null;
    }
  } else {
    nextCurrentHook = currentHook.next;
  }

  var nextWorkInProgressHook;

  if (workInProgressHook === null) {
    nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState;
  } else {
    nextWorkInProgressHook = workInProgressHook.next;
  }

  if (nextWorkInProgressHook !== null) {
    // There's already a work-in-progress. Reuse it.
    workInProgressHook = nextWorkInProgressHook;
    nextWorkInProgressHook = workInProgressHook.next;
    currentHook = nextCurrentHook;
  } else {
    // Clone from the current hook.
    if (nextCurrentHook === null) {
      throw new Error('Rendered more hooks than during the previous render.');
    }

    currentHook = nextCurrentHook;
    var newHook = {
      memoizedState: currentHook.memoizedState,
      baseState: currentHook.baseState,
      baseQueue: currentHook.baseQueue,
      queue: currentHook.queue,
      next: null
    };

    if (workInProgressHook === null) {
      // This is the first hook in the list.
      currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook;
    } else {
      // Append to the end of the list.
      workInProgressHook = workInProgressHook.next = newHook;
    }
  }

  return workInProgressHook;
}

function createFunctionComponentUpdateQueue() {
  return {
    lastEffect: null,
    stores: null
  };
}

function basicStateReducer(state, action) {
  // $FlowFixMe: Flow doesn't like mixed types
  return typeof action === 'function' ? action(state) : action;
}

function mountReducer(reducer, initialArg, init) {
  var hook = mountWorkInProgressHook();
  var initialState;

  if (init !== undefined) {
    initialState = init(initialArg);
  } else {
    initialState = initialArg;
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = {
    pending: null,
    interleaved: null,
    lanes: NoLanes,
    dispatch: null,
    lastRenderedReducer: reducer,
    lastRenderedState: initialState
  };
  hook.queue = queue;
  var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (queue === null) {
    throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
  }

  queue.lastRenderedReducer = reducer;
  var current = currentHook; // The last rebase update that is NOT part of the base state.

  var baseQueue = current.baseQueue; // The last pending update that hasn't been processed yet.

  var pendingQueue = queue.pending;

  if (pendingQueue !== null) {
    // We have new updates that haven't been processed yet.
    // We'll add them to the base queue.
    if (baseQueue !== null) {
      // Merge the pending queue and the base queue.
      var baseFirst = baseQueue.next;
      var pendingFirst = pendingQueue.next;
      baseQueue.next = pendingFirst;
      pendingQueue.next = baseFirst;
    }

    {
      if (current.baseQueue !== baseQueue) {
        // Internal invariant that should never happen, but feasibly could in
        // the future if we implement resuming, or some form of that.
        error('Internal error: Expected work-in-progress queue to be a clone. ' + 'This is a bug in React.');
      }
    }

    current.baseQueue = baseQueue = pendingQueue;
    queue.pending = null;
  }

  if (baseQueue !== null) {
    // We have a queue to process.
    var first = baseQueue.next;
    var newState = current.baseState;
    var newBaseState = null;
    var newBaseQueueFirst = null;
    var newBaseQueueLast = null;
    var update = first;

    do {
      var updateLane = update.lane;

      if (!isSubsetOfLanes(renderLanes, updateLane)) {
        // Priority is insufficient. Skip this update. If this is the first
        // skipped update, the previous update/state is the new base
        // update/state.
        var clone = {
          lane: updateLane,
          action: update.action,
          hasEagerState: update.hasEagerState,
          eagerState: update.eagerState,
          next: null
        };

        if (newBaseQueueLast === null) {
          newBaseQueueFirst = newBaseQueueLast = clone;
          newBaseState = newState;
        } else {
          newBaseQueueLast = newBaseQueueLast.next = clone;
        } // Update the remaining priority in the queue.
        // TODO: Don't need to accumulate this. Instead, we can remove
        // renderLanes from the original lanes.


        currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane);
        markSkippedUpdateLanes(updateLane);
      } else {
        // This update does have sufficient priority.
        if (newBaseQueueLast !== null) {
          var _clone = {
            // This update is going to be committed so we never want uncommit
            // it. Using NoLane works because 0 is a subset of all bitmasks, so
            // this will never be skipped by the check above.
            lane: NoLane,
            action: update.action,
            hasEagerState: update.hasEagerState,
            eagerState: update.eagerState,
            next: null
          };
          newBaseQueueLast = newBaseQueueLast.next = _clone;
        } // Process this update.


        if (update.hasEagerState) {
          // If this update is a state update (not a reducer) and was processed eagerly,
          // we can use the eagerly computed state
          newState = update.eagerState;
        } else {
          var action = update.action;
          newState = reducer(newState, action);
        }
      }

      update = update.next;
    } while (update !== null && update !== first);

    if (newBaseQueueLast === null) {
      newBaseState = newState;
    } else {
      newBaseQueueLast.next = newBaseQueueFirst;
    } // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState;
    hook.baseState = newBaseState;
    hook.baseQueue = newBaseQueueLast;
    queue.lastRenderedState = newState;
  } // Interleaved updates are stored on a separate queue. We aren't going to
  // process them during this render, but we do need to track which lanes
  // are remaining.


  var lastInterleaved = queue.interleaved;

  if (lastInterleaved !== null) {
    var interleaved = lastInterleaved;

    do {
      var interleavedLane = interleaved.lane;
      currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane);
      markSkippedUpdateLanes(interleavedLane);
      interleaved = interleaved.next;
    } while (interleaved !== lastInterleaved);
  } else if (baseQueue === null) {
    // `queue.lanes` is used for entangling transitions. We can set it back to
    // zero once the queue is empty.
    queue.lanes = NoLanes;
  }

  var dispatch = queue.dispatch;
  return [hook.memoizedState, dispatch];
}

function rerenderReducer(reducer, initialArg, init) {
  var hook = updateWorkInProgressHook();
  var queue = hook.queue;

  if (queue === null) {
    throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
  }

  queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
  // work-in-progress hook.

  var dispatch = queue.dispatch;
  var lastRenderPhaseUpdate = queue.pending;
  var newState = hook.memoizedState;

  if (lastRenderPhaseUpdate !== null) {
    // The queue doesn't persist past this render pass.
    queue.pending = null;
    var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next;
    var update = firstRenderPhaseUpdate;

    do {
      // Process this render phase update. We don't have to check the
      // priority because it will always be the same as the current
      // render's.
      var action = update.action;
      newState = reducer(newState, action);
      update = update.next;
    } while (update !== firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is
    // different from the current state.


    if (!objectIs(newState, hook.memoizedState)) {
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = newState; // Don't persist the state accumulated from the render phase updates to
    // the base state unless the queue is empty.
    // TODO: Not sure if this is the desired semantics, but it's what we
    // do for gDSFP. I can't remember why.

    if (hook.baseQueue === null) {
      hook.baseState = newState;
    }

    queue.lastRenderedState = newState;
  }

  return [newState, dispatch];
}

function mountMutableSource(source, getSnapshot, subscribe) {
  {
    return undefined;
  }
}

function updateMutableSource(source, getSnapshot, subscribe) {
  {
    return undefined;
  }
}

function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
  var fiber = currentlyRenderingFiber$1;
  var hook = mountWorkInProgressHook();
  var nextSnapshot;
  var isHydrating = getIsHydrating();

  if (isHydrating) {
    if (getServerSnapshot === undefined) {
      throw new Error('Missing getServerSnapshot, which is required for ' + 'server-rendered content. Will revert to client rendering.');
    }

    nextSnapshot = getServerSnapshot();

    {
      if (!didWarnUncachedGetSnapshot) {
        if (nextSnapshot !== getServerSnapshot()) {
          error('The result of getServerSnapshot should be cached to avoid an infinite loop');

          didWarnUncachedGetSnapshot = true;
        }
      }
    }
  } else {
    nextSnapshot = getSnapshot();

    {
      if (!didWarnUncachedGetSnapshot) {
        var cachedSnapshot = getSnapshot();

        if (!objectIs(nextSnapshot, cachedSnapshot)) {
          error('The result of getSnapshot should be cached to avoid an infinite loop');

          didWarnUncachedGetSnapshot = true;
        }
      }
    } // Unless we're rendering a blocking lane, schedule a consistency check.
    // Right before committing, we will walk the tree and check if any of the
    // stores were mutated.
    //
    // We won't do this if we're hydrating server-rendered content, because if
    // the content is stale, it's already visible anyway. Instead we'll patch
    // it up in a passive effect.


    var root = getWorkInProgressRoot();

    if (root === null) {
      throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');
    }

    if (!includesBlockingLane(root, renderLanes)) {
      pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
    }
  } // Read the current snapshot from the store on every render. This breaks the
  // normal rules of React, and only works because store updates are
  // always synchronous.


  hook.memoizedState = nextSnapshot;
  var inst = {
    value: nextSnapshot,
    getSnapshot: getSnapshot
  };
  hook.queue = inst; // Schedule an effect to subscribe to the store.

  mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Schedule an effect to update the mutable instance fields. We will update
  // this whenever subscribe, getSnapshot, or value changes. Because there's no
  // clean-up function, and we track the deps correctly, we can call pushEffect
  // directly, without storing any additional state. For the same reason, we
  // don't need to set a static flag, either.
  // TODO: We can move this to the passive phase once we add a pre-commit
  // consistency check. See the next comment.

  fiber.flags |= Passive;
  pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null);
  return nextSnapshot;
}

function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
  var fiber = currentlyRenderingFiber$1;
  var hook = updateWorkInProgressHook(); // Read the current snapshot from the store on every render. This breaks the
  // normal rules of React, and only works because store updates are
  // always synchronous.

  var nextSnapshot = getSnapshot();

  {
    if (!didWarnUncachedGetSnapshot) {
      var cachedSnapshot = getSnapshot();

      if (!objectIs(nextSnapshot, cachedSnapshot)) {
        error('The result of getSnapshot should be cached to avoid an infinite loop');

        didWarnUncachedGetSnapshot = true;
      }
    }
  }

  var prevSnapshot = hook.memoizedState;
  var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot);

  if (snapshotChanged) {
    hook.memoizedState = nextSnapshot;
    markWorkInProgressReceivedUpdate();
  }

  var inst = hook.queue;
  updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); // Whenever getSnapshot or subscribe changes, we need to check in the
  // commit phase if there was an interleaved mutation. In concurrent mode
  // this can happen all the time, but even in synchronous mode, an earlier
  // effect may have mutated the store.

  if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by
  // checking whether we scheduled a subscription effect above.
  workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) {
    fiber.flags |= Passive;
    pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), undefined, null); // Unless we're rendering a blocking lane, schedule a consistency check.
    // Right before committing, we will walk the tree and check if any of the
    // stores were mutated.

    var root = getWorkInProgressRoot();

    if (root === null) {
      throw new Error('Expected a work-in-progress root. This is a bug in React. Please file an issue.');
    }

    if (!includesBlockingLane(root, renderLanes)) {
      pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
    }
  }

  return nextSnapshot;
}

function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
  fiber.flags |= StoreConsistency;
  var check = {
    getSnapshot: getSnapshot,
    value: renderedSnapshot
  };
  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;

  if (componentUpdateQueue === null) {
    componentUpdateQueue = createFunctionComponentUpdateQueue();
    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
    componentUpdateQueue.stores = [check];
  } else {
    var stores = componentUpdateQueue.stores;

    if (stores === null) {
      componentUpdateQueue.stores = [check];
    } else {
      stores.push(check);
    }
  }
}

function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
  // These are updated in the passive phase
  inst.value = nextSnapshot;
  inst.getSnapshot = getSnapshot; // Something may have been mutated in between render and commit. This could
  // have been in an event that fired before the passive effects, or it could
  // have been in a layout effect. In that case, we would have used the old
  // snapsho and getSnapshot values to bail out. We need to check one more time.

  if (checkIfSnapshotChanged(inst)) {
    // Force a re-render.
    forceStoreRerender(fiber);
  }
}

function subscribeToStore(fiber, inst, subscribe) {
  var handleStoreChange = function () {
    // The store changed. Check if the snapshot changed since the last time we
    // read from the store.
    if (checkIfSnapshotChanged(inst)) {
      // Force a re-render.
      forceStoreRerender(fiber);
    }
  }; // Subscribe to the store and return a clean-up function.


  return subscribe(handleStoreChange);
}

function checkIfSnapshotChanged(inst) {
  var latestGetSnapshot = inst.getSnapshot;
  var prevValue = inst.value;

  try {
    var nextValue = latestGetSnapshot();
    return !objectIs(prevValue, nextValue);
  } catch (error) {
    return true;
  }
}

function forceStoreRerender(fiber) {
  var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

  if (root !== null) {
    scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
  }
}

function mountState(initialState) {
  var hook = mountWorkInProgressHook();

  if (typeof initialState === 'function') {
    // $FlowFixMe: Flow doesn't like mixed types
    initialState = initialState();
  }

  hook.memoizedState = hook.baseState = initialState;
  var queue = {
    pending: null,
    interleaved: null,
    lanes: NoLanes,
    dispatch: null,
    lastRenderedReducer: basicStateReducer,
    lastRenderedState: initialState
  };
  hook.queue = queue;
  var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);
  return [hook.memoizedState, dispatch];
}

function updateState(initialState) {
  return updateReducer(basicStateReducer);
}

function rerenderState(initialState) {
  return rerenderReducer(basicStateReducer);
}

function pushEffect(tag, create, destroy, deps) {
  var effect = {
    tag: tag,
    create: create,
    destroy: destroy,
    deps: deps,
    // Circular
    next: null
  };
  var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue;

  if (componentUpdateQueue === null) {
    componentUpdateQueue = createFunctionComponentUpdateQueue();
    currentlyRenderingFiber$1.updateQueue = componentUpdateQueue;
    componentUpdateQueue.lastEffect = effect.next = effect;
  } else {
    var lastEffect = componentUpdateQueue.lastEffect;

    if (lastEffect === null) {
      componentUpdateQueue.lastEffect = effect.next = effect;
    } else {
      var firstEffect = lastEffect.next;
      lastEffect.next = effect;
      effect.next = firstEffect;
      componentUpdateQueue.lastEffect = effect;
    }
  }

  return effect;
}

function mountRef(initialValue) {
  var hook = mountWorkInProgressHook();

  {
    var _ref2 = {
      current: initialValue
    };
    hook.memoizedState = _ref2;
    return _ref2;
  }
}

function updateRef(initialValue) {
  var hook = updateWorkInProgressHook();
  return hook.memoizedState;
}

function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  currentlyRenderingFiber$1.flags |= fiberFlags;
  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, undefined, nextDeps);
}

function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var destroy = undefined;

  if (currentHook !== null) {
    var prevEffect = currentHook.memoizedState;
    destroy = prevEffect.destroy;

    if (nextDeps !== null) {
      var prevDeps = prevEffect.deps;

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        hook.memoizedState = pushEffect(hookFlags, create, destroy, nextDeps);
        return;
      }
    }
  }

  currentlyRenderingFiber$1.flags |= fiberFlags;
  hook.memoizedState = pushEffect(HasEffect | hookFlags, create, destroy, nextDeps);
}

function mountEffect(create, deps) {
  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
    return mountEffectImpl(MountPassiveDev | Passive | PassiveStatic, Passive$1, create, deps);
  } else {
    return mountEffectImpl(Passive | PassiveStatic, Passive$1, create, deps);
  }
}

function updateEffect(create, deps) {
  return updateEffectImpl(Passive, Passive$1, create, deps);
}

function mountInsertionEffect(create, deps) {
  return mountEffectImpl(Update, Insertion, create, deps);
}

function updateInsertionEffect(create, deps) {
  return updateEffectImpl(Update, Insertion, create, deps);
}

function mountLayoutEffect(create, deps) {
  var fiberFlags = Update;

  {
    fiberFlags |= LayoutStatic;
  }

  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
    fiberFlags |= MountLayoutDev;
  }

  return mountEffectImpl(fiberFlags, Layout, create, deps);
}

function updateLayoutEffect(create, deps) {
  return updateEffectImpl(Update, Layout, create, deps);
}

function imperativeHandleEffect(create, ref) {
  if (typeof ref === 'function') {
    var refCallback = ref;

    var _inst = create();

    refCallback(_inst);
    return function () {
      refCallback(null);
    };
  } else if (ref !== null && ref !== undefined) {
    var refObject = ref;

    {
      if (!refObject.hasOwnProperty('current')) {
        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');
      }
    }

    var _inst2 = create();

    refObject.current = _inst2;
    return function () {
      refObject.current = null;
    };
  }
}

function mountImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  var fiberFlags = Update;

  {
    fiberFlags |= LayoutStatic;
  }

  if ( (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode) {
    fiberFlags |= MountLayoutDev;
  }

  return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function updateImperativeHandle(ref, create, deps) {
  {
    if (typeof create !== 'function') {
      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null');
    }
  } // TODO: If deps are provided, should we skip comparing the ref itself?


  var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
}

function mountDebugValue(value, formatterFn) {// This hook is normally a no-op.
  // The react-debug-hooks package injects its own implementation
  // so that e.g. DevTools can display custom hook values.
}

var updateDebugValue = mountDebugValue;

function mountCallback(callback, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function updateCallback(callback, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  hook.memoizedState = [callback, nextDeps];
  return callback;
}

function mountMemo(nextCreate, deps) {
  var hook = mountWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function updateMemo(nextCreate, deps) {
  var hook = updateWorkInProgressHook();
  var nextDeps = deps === undefined ? null : deps;
  var prevState = hook.memoizedState;

  if (prevState !== null) {
    // Assume these are defined. If they're not, areHookInputsEqual will warn.
    if (nextDeps !== null) {
      var prevDeps = prevState[1];

      if (areHookInputsEqual(nextDeps, prevDeps)) {
        return prevState[0];
      }
    }
  }

  var nextValue = nextCreate();
  hook.memoizedState = [nextValue, nextDeps];
  return nextValue;
}

function mountDeferredValue(value) {
  var hook = mountWorkInProgressHook();
  hook.memoizedState = value;
  return value;
}

function updateDeferredValue(value) {
  var hook = updateWorkInProgressHook();
  var resolvedCurrentHook = currentHook;
  var prevValue = resolvedCurrentHook.memoizedState;
  return updateDeferredValueImpl(hook, prevValue, value);
}

function rerenderDeferredValue(value) {
  var hook = updateWorkInProgressHook();

  if (currentHook === null) {
    // This is a rerender during a mount.
    hook.memoizedState = value;
    return value;
  } else {
    // This is a rerender during an update.
    var prevValue = currentHook.memoizedState;
    return updateDeferredValueImpl(hook, prevValue, value);
  }
}

function updateDeferredValueImpl(hook, prevValue, value) {
  var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes);

  if (shouldDeferValue) {
    // This is an urgent update. If the value has changed, keep using the
    // previous value and spawn a deferred render to update it later.
    if (!objectIs(value, prevValue)) {
      // Schedule a deferred render
      var deferredLane = claimNextTransitionLane();
      currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane);
      markSkippedUpdateLanes(deferredLane); // Set this to true to indicate that the rendered value is inconsistent
      // from the latest value. The name "baseState" doesn't really match how we
      // use it because we're reusing a state hook field instead of creating a
      // new one.

      hook.baseState = true;
    } // Reuse the previous value


    return prevValue;
  } else {
    // This is not an urgent update, so we can use the latest value regardless
    // of what it is. No need to defer it.
    // However, if we're currently inside a spawned render, then we need to mark
    // this as an update to prevent the fiber from bailing out.
    //
    // `baseState` is true when the current value is different from the rendered
    // value. The name doesn't really match how we use it because we're reusing
    // a state hook field instead of creating a new one.
    if (hook.baseState) {
      // Flip this back to false.
      hook.baseState = false;
      markWorkInProgressReceivedUpdate();
    }

    hook.memoizedState = value;
    return value;
  }
}

function startTransition(setPending, callback, options) {
  var previousPriority = getCurrentUpdatePriority();
  setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority));
  setPending(true);
  var prevTransition = ReactCurrentBatchConfig$2.transition;
  ReactCurrentBatchConfig$2.transition = {};
  var currentTransition = ReactCurrentBatchConfig$2.transition;

  {
    ReactCurrentBatchConfig$2.transition._updatedFibers = new Set();
  }

  try {
    setPending(false);
    callback();
  } finally {
    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig$2.transition = prevTransition;

    {
      if (prevTransition === null && currentTransition._updatedFibers) {
        var updatedFibersCount = currentTransition._updatedFibers.size;

        if (updatedFibersCount > 10) {
          warn('Detected a large number of updates inside startTransition. ' + 'If this is due to a subscription please re-write it to use React provided hooks. ' + 'Otherwise concurrent mode guarantees are off the table.');
        }

        currentTransition._updatedFibers.clear();
      }
    }
  }
}

function mountTransition() {
  var _mountState = mountState(false),
      isPending = _mountState[0],
      setPending = _mountState[1]; // The `start` method never changes.


  var start = startTransition.bind(null, setPending);
  var hook = mountWorkInProgressHook();
  hook.memoizedState = start;
  return [isPending, start];
}

function updateTransition() {
  var _updateState = updateState(),
      isPending = _updateState[0];

  var hook = updateWorkInProgressHook();
  var start = hook.memoizedState;
  return [isPending, start];
}

function rerenderTransition() {
  var _rerenderState = rerenderState(),
      isPending = _rerenderState[0];

  var hook = updateWorkInProgressHook();
  var start = hook.memoizedState;
  return [isPending, start];
}

var isUpdatingOpaqueValueInRenderPhase = false;
function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
  {
    return isUpdatingOpaqueValueInRenderPhase;
  }
}

function mountId() {
  var hook = mountWorkInProgressHook();
  var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we
  // should do this in Fiber, too? Deferring this decision for now because
  // there's no other place to store the prefix except for an internal field on
  // the public createRoot object, which the fiber tree does not currently have
  // a reference to.

  var identifierPrefix = root.identifierPrefix;
  var id;

  if (getIsHydrating()) {
    var treeId = getTreeId(); // Use a captial R prefix for server-generated ids.

    id = ':' + identifierPrefix + 'R' + treeId; // Unless this is the first id at this level, append a number at the end
    // that represents the position of this useId hook among all the useId
    // hooks for this fiber.

    var localId = localIdCounter++;

    if (localId > 0) {
      id += 'H' + localId.toString(32);
    }

    id += ':';
  } else {
    // Use a lowercase r prefix for client-generated ids.
    var globalClientId = globalClientIdCounter++;
    id = ':' + identifierPrefix + 'r' + globalClientId.toString(32) + ':';
  }

  hook.memoizedState = id;
  return id;
}

function updateId() {
  var hook = updateWorkInProgressHook();
  var id = hook.memoizedState;
  return id;
}

function dispatchReducerAction(fiber, queue, action) {
  {
    if (typeof arguments[3] === 'function') {
      error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
    }
  }

  var lane = requestUpdateLane(fiber);
  var update = {
    lane: lane,
    action: action,
    hasEagerState: false,
    eagerState: null,
    next: null
  };

  if (isRenderPhaseUpdate(fiber)) {
    enqueueRenderPhaseUpdate(queue, update);
  } else {
    var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);

    if (root !== null) {
      var eventTime = requestEventTime();
      scheduleUpdateOnFiber(root, fiber, lane, eventTime);
      entangleTransitionUpdate(root, queue, lane);
    }
  }

  markUpdateInDevTools(fiber, lane);
}

function dispatchSetState(fiber, queue, action) {
  {
    if (typeof arguments[3] === 'function') {
      error("State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');
    }
  }

  var lane = requestUpdateLane(fiber);
  var update = {
    lane: lane,
    action: action,
    hasEagerState: false,
    eagerState: null,
    next: null
  };

  if (isRenderPhaseUpdate(fiber)) {
    enqueueRenderPhaseUpdate(queue, update);
  } else {
    var alternate = fiber.alternate;

    if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) {
      // The queue is currently empty, which means we can eagerly compute the
      // next state before entering the render phase. If the new state is the
      // same as the current state, we may be able to bail out entirely.
      var lastRenderedReducer = queue.lastRenderedReducer;

      if (lastRenderedReducer !== null) {
        var prevDispatcher;

        {
          prevDispatcher = ReactCurrentDispatcher$1.current;
          ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
        }

        try {
          var currentState = queue.lastRenderedState;
          var eagerState = lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute
          // it, on the update object. If the reducer hasn't changed by the
          // time we enter the render phase, then the eager state can be used
          // without calling the reducer again.

          update.hasEagerState = true;
          update.eagerState = eagerState;

          if (objectIs(eagerState, currentState)) {
            // Fast path. We can bail out without scheduling React to re-render.
            // It's still possible that we'll need to rebase this update later,
            // if the component re-renders for a different reason and by that
            // time the reducer has changed.
            // TODO: Do we still need to entangle transitions in this case?
            enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane);
            return;
          }
        } catch (error) {// Suppress the error. It will throw again in the render phase.
        } finally {
          {
            ReactCurrentDispatcher$1.current = prevDispatcher;
          }
        }
      }
    }

    var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane);

    if (root !== null) {
      var eventTime = requestEventTime();
      scheduleUpdateOnFiber(root, fiber, lane, eventTime);
      entangleTransitionUpdate(root, queue, lane);
    }
  }

  markUpdateInDevTools(fiber, lane);
}

function isRenderPhaseUpdate(fiber) {
  var alternate = fiber.alternate;
  return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1;
}

function enqueueRenderPhaseUpdate(queue, update) {
  // This is a render phase update. Stash it in a lazily-created map of
  // queue -> linked list of updates. After this render pass, we'll restart
  // and apply the stashed updates on top of the work-in-progress hook.
  didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
  var pending = queue.pending;

  if (pending === null) {
    // This is the first update. Create a circular list.
    update.next = update;
  } else {
    update.next = pending.next;
    pending.next = update;
  }

  queue.pending = update;
} // TODO: Move to ReactFiberConcurrentUpdates?


function entangleTransitionUpdate(root, queue, lane) {
  if (isTransitionLane(lane)) {
    var queueLanes = queue.lanes; // If any entangled lanes are no longer pending on the root, then they
    // must have finished. We can remove them from the shared queue, which
    // represents a superset of the actually pending lanes. In some cases we
    // may entangle more than we need to, but that's OK. In fact it's worse if
    // we *don't* entangle when we should.

    queueLanes = intersectLanes(queueLanes, root.pendingLanes); // Entangle the new transition lane with the other transition lanes.

    var newQueueLanes = mergeLanes(queueLanes, lane);
    queue.lanes = newQueueLanes; // Even if queue.lanes already include lane, we don't know for certain if
    // the lane finished since the last time we entangled it. So we need to
    // entangle it again, just to be sure.

    markRootEntangled(root, newQueueLanes);
  }
}

function markUpdateInDevTools(fiber, lane, action) {

  {
    markStateUpdateScheduled(fiber, lane);
  }
}

var ContextOnlyDispatcher = {
  readContext: readContext,
  useCallback: throwInvalidHookError,
  useContext: throwInvalidHookError,
  useEffect: throwInvalidHookError,
  useImperativeHandle: throwInvalidHookError,
  useInsertionEffect: throwInvalidHookError,
  useLayoutEffect: throwInvalidHookError,
  useMemo: throwInvalidHookError,
  useReducer: throwInvalidHookError,
  useRef: throwInvalidHookError,
  useState: throwInvalidHookError,
  useDebugValue: throwInvalidHookError,
  useDeferredValue: throwInvalidHookError,
  useTransition: throwInvalidHookError,
  useMutableSource: throwInvalidHookError,
  useSyncExternalStore: throwInvalidHookError,
  useId: throwInvalidHookError,
  unstable_isNewReconciler: enableNewReconciler
};

var HooksDispatcherOnMountInDEV = null;
var HooksDispatcherOnMountWithHookTypesInDEV = null;
var HooksDispatcherOnUpdateInDEV = null;
var HooksDispatcherOnRerenderInDEV = null;
var InvalidNestedHooksDispatcherOnMountInDEV = null;
var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
var InvalidNestedHooksDispatcherOnRerenderInDEV = null;

{
  var warnInvalidContextAccess = function () {
    error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  };

  var warnInvalidHookAccess = function () {
    error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://reactjs.org/link/rules-of-hooks');
  };

  HooksDispatcherOnMountInDEV = {
    readContext: function (context) {
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      mountHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      mountHookTypesDev();
      checkDepsAreArrayDev(deps);
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      mountHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      mountHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      mountHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      mountHookTypesDev();
      return mountMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      mountHookTypesDev();
      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      mountHookTypesDev();
      return mountId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  HooksDispatcherOnMountWithHookTypesInDEV = {
    readContext: function (context) {
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      updateHookTypesDev();
      return mountInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return mountMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      updateHookTypesDev();
      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      updateHookTypesDev();
      return mountId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  HooksDispatcherOnUpdateInDEV = {
    readContext: function (context) {
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      updateHookTypesDev();
      return updateInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return updateDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return updateTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return updateMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      updateHookTypesDev();
      return updateSyncExternalStore(subscribe, getSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      updateHookTypesDev();
      return updateId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  HooksDispatcherOnRerenderInDEV = {
    readContext: function (context) {
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      updateHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      updateHookTypesDev();
      return updateInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      updateHookTypesDev();
      return rerenderDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      updateHookTypesDev();
      return rerenderTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      updateHookTypesDev();
      return updateMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      updateHookTypesDev();
      return updateSyncExternalStore(subscribe, getSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      updateHookTypesDev();
      return updateId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  InvalidNestedHooksDispatcherOnMountInDEV = {
    readContext: function (context) {
      warnInvalidContextAccess();
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountRef(initialValue);
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      mountHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;

      try {
        return mountState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      warnInvalidHookAccess();
      mountHookTypesDev();
      return mountId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  InvalidNestedHooksDispatcherOnUpdateInDEV = {
    readContext: function (context) {
      warnInvalidContextAccess();
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateSyncExternalStore(subscribe, getSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };

  InvalidNestedHooksDispatcherOnRerenderInDEV = {
    readContext: function (context) {
      warnInvalidContextAccess();
      return readContext(context);
    },
    useCallback: function (callback, deps) {
      currentHookNameInDev = 'useCallback';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateCallback(callback, deps);
    },
    useContext: function (context) {
      currentHookNameInDev = 'useContext';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return readContext(context);
    },
    useEffect: function (create, deps) {
      currentHookNameInDev = 'useEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateEffect(create, deps);
    },
    useImperativeHandle: function (ref, create, deps) {
      currentHookNameInDev = 'useImperativeHandle';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateImperativeHandle(ref, create, deps);
    },
    useInsertionEffect: function (create, deps) {
      currentHookNameInDev = 'useInsertionEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateInsertionEffect(create, deps);
    },
    useLayoutEffect: function (create, deps) {
      currentHookNameInDev = 'useLayoutEffect';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateLayoutEffect(create, deps);
    },
    useMemo: function (create, deps) {
      currentHookNameInDev = 'useMemo';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return updateMemo(create, deps);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useReducer: function (reducer, initialArg, init) {
      currentHookNameInDev = 'useReducer';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderReducer(reducer, initialArg, init);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useRef: function (initialValue) {
      currentHookNameInDev = 'useRef';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateRef();
    },
    useState: function (initialState) {
      currentHookNameInDev = 'useState';
      warnInvalidHookAccess();
      updateHookTypesDev();
      var prevDispatcher = ReactCurrentDispatcher$1.current;
      ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;

      try {
        return rerenderState(initialState);
      } finally {
        ReactCurrentDispatcher$1.current = prevDispatcher;
      }
    },
    useDebugValue: function (value, formatterFn) {
      currentHookNameInDev = 'useDebugValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateDebugValue();
    },
    useDeferredValue: function (value) {
      currentHookNameInDev = 'useDeferredValue';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderDeferredValue(value);
    },
    useTransition: function () {
      currentHookNameInDev = 'useTransition';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return rerenderTransition();
    },
    useMutableSource: function (source, getSnapshot, subscribe) {
      currentHookNameInDev = 'useMutableSource';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateMutableSource();
    },
    useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
      currentHookNameInDev = 'useSyncExternalStore';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateSyncExternalStore(subscribe, getSnapshot);
    },
    useId: function () {
      currentHookNameInDev = 'useId';
      warnInvalidHookAccess();
      updateHookTypesDev();
      return updateId();
    },
    unstable_isNewReconciler: enableNewReconciler
  };
}

var now$1 = Scheduler.unstable_now;
var commitTime = 0;
var layoutEffectStartTime = -1;
var profilerStartTime = -1;
var passiveEffectStartTime = -1;
/**
 * Tracks whether the current update was a nested/cascading update (scheduled from a layout effect).
 *
 * The overall sequence is:
 *   1. render
 *   2. commit (and call `onRender`, `onCommit`)
 *   3. check for nested updates
 *   4. flush passive effects (and call `onPostCommit`)
 *
 * Nested updates are identified in step 3 above,
 * but step 4 still applies to the work that was just committed.
 * We use two flags to track nested updates then:
 * one tracks whether the upcoming update is a nested update,
 * and the other tracks whether the current update was a nested update.
 * The first value gets synced to the second at the start of the render phase.
 */

var currentUpdateIsNested = false;
var nestedUpdateScheduled = false;

function isCurrentUpdateNested() {
  return currentUpdateIsNested;
}

function markNestedUpdateScheduled() {
  {
    nestedUpdateScheduled = true;
  }
}

function resetNestedUpdateFlag() {
  {
    currentUpdateIsNested = false;
    nestedUpdateScheduled = false;
  }
}

function syncNestedUpdateFlag() {
  {
    currentUpdateIsNested = nestedUpdateScheduled;
    nestedUpdateScheduled = false;
  }
}

function getCommitTime() {
  return commitTime;
}

function recordCommitTime() {

  commitTime = now$1();
}

function startProfilerTimer(fiber) {

  profilerStartTime = now$1();

  if (fiber.actualStartTime < 0) {
    fiber.actualStartTime = now$1();
  }
}

function stopProfilerTimerIfRunning(fiber) {

  profilerStartTime = -1;
}

function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {

  if (profilerStartTime >= 0) {
    var elapsedTime = now$1() - profilerStartTime;
    fiber.actualDuration += elapsedTime;

    if (overrideBaseTime) {
      fiber.selfBaseDuration = elapsedTime;
    }

    profilerStartTime = -1;
  }
}

function recordLayoutEffectDuration(fiber) {

  if (layoutEffectStartTime >= 0) {
    var elapsedTime = now$1() - layoutEffectStartTime;
    layoutEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor
    // Or the root (for the DevTools Profiler to read)

    var parentFiber = fiber.return;

    while (parentFiber !== null) {
      switch (parentFiber.tag) {
        case HostRoot:
          var root = parentFiber.stateNode;
          root.effectDuration += elapsedTime;
          return;

        case Profiler:
          var parentStateNode = parentFiber.stateNode;
          parentStateNode.effectDuration += elapsedTime;
          return;
      }

      parentFiber = parentFiber.return;
    }
  }
}

function recordPassiveEffectDuration(fiber) {

  if (passiveEffectStartTime >= 0) {
    var elapsedTime = now$1() - passiveEffectStartTime;
    passiveEffectStartTime = -1; // Store duration on the next nearest Profiler ancestor
    // Or the root (for the DevTools Profiler to read)

    var parentFiber = fiber.return;

    while (parentFiber !== null) {
      switch (parentFiber.tag) {
        case HostRoot:
          var root = parentFiber.stateNode;

          if (root !== null) {
            root.passiveEffectDuration += elapsedTime;
          }

          return;

        case Profiler:
          var parentStateNode = parentFiber.stateNode;

          if (parentStateNode !== null) {
            // Detached fibers have their state node cleared out.
            // In this case, the return pointer is also cleared out,
            // so we won't be able to report the time spent in this Profiler's subtree.
            parentStateNode.passiveEffectDuration += elapsedTime;
          }

          return;
      }

      parentFiber = parentFiber.return;
    }
  }
}

function startLayoutEffectTimer() {

  layoutEffectStartTime = now$1();
}

function startPassiveEffectTimer() {

  passiveEffectStartTime = now$1();
}

function transferActualDuration(fiber) {
  // Transfer time spent rendering these children so we don't lose it
  // after we rerender. This is used as a helper in special cases
  // where we should count the work of multiple passes.
  var child = fiber.child;

  while (child) {
    fiber.actualDuration += child.actualDuration;
    child = child.sibling;
  }
}

function createCapturedValueAtFiber(value, source) {
  // If the value is an error, call this function immediately after it is thrown
  // so the stack is accurate.
  return {
    value: value,
    source: source,
    stack: getStackByFiberInDevAndProd(source),
    digest: null
  };
}
function createCapturedValue(value, digest, stack) {
  return {
    value: value,
    source: null,
    stack: stack != null ? stack : null,
    digest: digest != null ? digest : null
  };
}

// This module is forked in different environments.
// By default, return `true` to log errors to the console.
// Forks can return `false` if this isn't desirable.
function showErrorDialog(boundary, errorInfo) {
  return true;
}

function logCapturedError(boundary, errorInfo) {
  try {
    var logError = showErrorDialog(boundary, errorInfo); // Allow injected showErrorDialog() to prevent default console.error logging.
    // This enables renderers like ReactNative to better manage redbox behavior.

    if (logError === false) {
      return;
    }

    var error = errorInfo.value;

    if (true) {
      var source = errorInfo.source;
      var stack = errorInfo.stack;
      var componentStack = stack !== null ? stack : ''; // Browsers support silencing uncaught errors by calling
      // `preventDefault()` in window `error` handler.
      // We record this information as an expando on the error.

      if (error != null && error._suppressLogging) {
        if (boundary.tag === ClassComponent) {
          // The error is recoverable and was silenced.
          // Ignore it and don't print the stack addendum.
          // This is handy for testing error boundaries without noise.
          return;
        } // The error is fatal. Since the silencing might have
        // been accidental, we'll surface it anyway.
        // However, the browser would have silenced the original error
        // so we'll print it first, and then print the stack addendum.


        console['error'](error); // Don't transform to our wrapper
        // For a more detailed description of this block, see:
        // https://github.com/facebook/react/pull/13384
      }

      var componentName = source ? getComponentNameFromFiber(source) : null;
      var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : 'The above error occurred in one of your React components:';
      var errorBoundaryMessage;

      if (boundary.tag === HostRoot) {
        errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.';
      } else {
        var errorBoundaryName = getComponentNameFromFiber(boundary) || 'Anonymous';
        errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + ".");
      }

      var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.
      // We don't include the original error message and JS stack because the browser
      // has already printed it. Even if the application swallows the error, it is still
      // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.

      console['error'](combinedMessage); // Don't transform to our wrapper
    } else {
      // In production, we print the error directly.
      // This will include the message, the JS stack, and anything the browser wants to show.
      // We pass the error object instead of custom message so that the browser displays the error natively.
      console['error'](error); // Don't transform to our wrapper
    }
  } catch (e) {
    // This method must not throw, or React internal state will get messed up.
    // If console.error is overridden, or logCapturedError() shows a dialog that throws,
    // we want to report this error outside of the normal stack as a last resort.
    // https://github.com/facebook/react/issues/13188
    setTimeout(function () {
      throw e;
    });
  }
}

var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;

function createRootErrorUpdate(fiber, errorInfo, lane) {
  var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.

  update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
  // being called "element".

  update.payload = {
    element: null
  };
  var error = errorInfo.value;

  update.callback = function () {
    onUncaughtError(error);
    logCapturedError(fiber, errorInfo);
  };

  return update;
}

function createClassErrorUpdate(fiber, errorInfo, lane) {
  var update = createUpdate(NoTimestamp, lane);
  update.tag = CaptureUpdate;
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;

  if (typeof getDerivedStateFromError === 'function') {
    var error$1 = errorInfo.value;

    update.payload = function () {
      return getDerivedStateFromError(error$1);
    };

    update.callback = function () {
      {
        markFailedErrorBoundaryForHotReloading(fiber);
      }

      logCapturedError(fiber, errorInfo);
    };
  }

  var inst = fiber.stateNode;

  if (inst !== null && typeof inst.componentDidCatch === 'function') {
    update.callback = function callback() {
      {
        markFailedErrorBoundaryForHotReloading(fiber);
      }

      logCapturedError(fiber, errorInfo);

      if (typeof getDerivedStateFromError !== 'function') {
        // To preserve the preexisting retry behavior of error boundaries,
        // we keep track of which ones already failed during this batch.
        // This gets reset before we yield back to the browser.
        // TODO: Warn in strict mode if getDerivedStateFromError is
        // not defined.
        markLegacyErrorBoundaryAsFailed(this);
      }

      var error$1 = errorInfo.value;
      var stack = errorInfo.stack;
      this.componentDidCatch(error$1, {
        componentStack: stack !== null ? stack : ''
      });

      {
        if (typeof getDerivedStateFromError !== 'function') {
          // If componentDidCatch is the only error boundary method defined,
          // then it needs to call setState to recover from errors.
          // If no state update is scheduled then the boundary will swallow the error.
          if (!includesSomeLane(fiber.lanes, SyncLane)) {
            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentNameFromFiber(fiber) || 'Unknown');
          }
        }
      }
    };
  }

  return update;
}

function attachPingListener(root, wakeable, lanes) {
  // Attach a ping listener
  //
  // The data might resolve before we have a chance to commit the fallback. Or,
  // in the case of a refresh, we'll never commit a fallback. So we need to
  // attach a listener now. When it resolves ("pings"), we can decide whether to
  // try rendering the tree again.
  //
  // Only attach a listener if one does not already exist for the lanes
  // we're currently rendering (which acts like a "thread ID" here).
  //
  // We only need to do this in concurrent mode. Legacy Suspense always
  // commits fallbacks synchronously, so there are no pings.
  var pingCache = root.pingCache;
  var threadIDs;

  if (pingCache === null) {
    pingCache = root.pingCache = new PossiblyWeakMap$1();
    threadIDs = new Set();
    pingCache.set(wakeable, threadIDs);
  } else {
    threadIDs = pingCache.get(wakeable);

    if (threadIDs === undefined) {
      threadIDs = new Set();
      pingCache.set(wakeable, threadIDs);
    }
  }

  if (!threadIDs.has(lanes)) {
    // Memoize using the thread ID to prevent redundant listeners.
    threadIDs.add(lanes);
    var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes);

    {
      if (isDevToolsPresent) {
        // If we have pending work still, restore the original updaters
        restorePendingUpdaters(root, lanes);
      }
    }

    wakeable.then(ping, ping);
  }
}

function attachRetryListener(suspenseBoundary, root, wakeable, lanes) {
  // Retry listener
  //
  // If the fallback does commit, we need to attach a different type of
  // listener. This one schedules an update on the Suspense boundary to turn
  // the fallback state off.
  //
  // Stash the wakeable on the boundary fiber so we can access it in the
  // commit phase.
  //
  // When the wakeable resolves, we'll attempt to render the boundary
  // again ("retry").
  var wakeables = suspenseBoundary.updateQueue;

  if (wakeables === null) {
    var updateQueue = new Set();
    updateQueue.add(wakeable);
    suspenseBoundary.updateQueue = updateQueue;
  } else {
    wakeables.add(wakeable);
  }
}

function resetSuspendedComponent(sourceFiber, rootRenderLanes) {
  // A legacy mode Suspense quirk, only relevant to hook components.


  var tag = sourceFiber.tag;

  if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) {
    var currentSource = sourceFiber.alternate;

    if (currentSource) {
      sourceFiber.updateQueue = currentSource.updateQueue;
      sourceFiber.memoizedState = currentSource.memoizedState;
      sourceFiber.lanes = currentSource.lanes;
    } else {
      sourceFiber.updateQueue = null;
      sourceFiber.memoizedState = null;
    }
  }
}

function getNearestSuspenseBoundaryToCapture(returnFiber) {
  var node = returnFiber;

  do {
    if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {
      return node;
    } // This boundary already captured during this render. Continue to the next
    // boundary.


    node = node.return;
  } while (node !== null);

  return null;
}

function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) {
  // This marks a Suspense boundary so that when we're unwinding the stack,
  // it captures the suspended "exception" and does a second (fallback) pass.
  if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) {
    // Legacy Mode Suspense
    //
    // If the boundary is in legacy mode, we should *not*
    // suspend the commit. Pretend as if the suspended component rendered
    // null and keep rendering. When the Suspense boundary completes,
    // we'll do a second pass to render the fallback.
    if (suspenseBoundary === returnFiber) {
      // Special case where we suspended while reconciling the children of
      // a Suspense boundary's inner Offscreen wrapper fiber. This happens
      // when a React.lazy component is a direct child of a
      // Suspense boundary.
      //
      // Suspense boundaries are implemented as multiple fibers, but they
      // are a single conceptual unit. The legacy mode behavior where we
      // pretend the suspended fiber committed as `null` won't work,
      // because in this case the "suspended" fiber is the inner
      // Offscreen wrapper.
      //
      // Because the contents of the boundary haven't started rendering
      // yet (i.e. nothing in the tree has partially rendered) we can
      // switch to the regular, concurrent mode behavior: mark the
      // boundary with ShouldCapture and enter the unwind phase.
      suspenseBoundary.flags |= ShouldCapture;
    } else {
      suspenseBoundary.flags |= DidCapture;
      sourceFiber.flags |= ForceUpdateForLegacySuspense; // We're going to commit this fiber even though it didn't complete.
      // But we shouldn't call any lifecycle methods or callbacks. Remove
      // all lifecycle effect tags.

      sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete);

      if (sourceFiber.tag === ClassComponent) {
        var currentSourceFiber = sourceFiber.alternate;

        if (currentSourceFiber === null) {
          // This is a new mount. Change the tag so it's not mistaken for a
          // completed class component. For example, we should not call
          // componentWillUnmount if it is deleted.
          sourceFiber.tag = IncompleteClassComponent;
        } else {
          // When we try rendering again, we should not reuse the current fiber,
          // since it's known to be in an inconsistent state. Use a force update to
          // prevent a bail out.
          var update = createUpdate(NoTimestamp, SyncLane);
          update.tag = ForceUpdate;
          enqueueUpdate(sourceFiber, update, SyncLane);
        }
      } // The source fiber did not complete. Mark it with Sync priority to
      // indicate that it still has pending work.


      sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane);
    }

    return suspenseBoundary;
  } // Confirmed that the boundary is in a concurrent mode tree. Continue
  // with the normal suspend path.
  //
  // After this we'll use a set of heuristics to determine whether this
  // render pass will run to completion or restart or "suspend" the commit.
  // The actual logic for this is spread out in different places.
  //
  // This first principle is that if we're going to suspend when we complete
  // a root, then we should also restart if we get an update or ping that
  // might unsuspend it, and vice versa. The only reason to suspend is
  // because you think you might want to restart before committing. However,
  // it doesn't make sense to restart only while in the period we're suspended.
  //
  // Restarting too aggressively is also not good because it starves out any
  // intermediate loading state. So we use heuristics to determine when.
  // Suspense Heuristics
  //
  // If nothing threw a Promise or all the same fallbacks are already showing,
  // then don't suspend/restart.
  //
  // If this is an initial render of a new tree of Suspense boundaries and
  // those trigger a fallback, then don't suspend/restart. We want to ensure
  // that we can show the initial loading state as quickly as possible.
  //
  // If we hit a "Delayed" case, such as when we'd switch from content back into
  // a fallback, then we should always suspend/restart. Transitions apply
  // to this case. If none is defined, JND is used instead.
  //
  // If we're already showing a fallback and it gets "retried", allowing us to show
  // another level, but there's still an inner boundary that would show a fallback,
  // then we suspend/restart for 500ms since the last time we showed a fallback
  // anywhere in the tree. This effectively throttles progressive loading into a
  // consistent train of commits. This also gives us an opportunity to restart to
  // get to the completed state slightly earlier.
  //
  // If there's ambiguity due to batching it's resolved in preference of:
  // 1) "delayed", 2) "initial render", 3) "retry".
  //
  // We want to ensure that a "busy" state doesn't get force committed. We want to
  // ensure that new initial loading states can commit as soon as possible.


  suspenseBoundary.flags |= ShouldCapture; // TODO: I think we can remove this, since we now use `DidCapture` in
  // the begin phase to prevent an early bailout.

  suspenseBoundary.lanes = rootRenderLanes;
  return suspenseBoundary;
}

function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
  // The source fiber did not complete.
  sourceFiber.flags |= Incomplete;

  {
    if (isDevToolsPresent) {
      // If we have pending work still, restore the original updaters
      restorePendingUpdaters(root, rootRenderLanes);
    }
  }

  if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
    // This is a wakeable. The component suspended.
    var wakeable = value;
    resetSuspendedComponent(sourceFiber);

    {
      if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {
        markDidThrowWhileHydratingDEV();
      }
    }


    var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber);

    if (suspenseBoundary !== null) {
      suspenseBoundary.flags &= ~ForceClientRender;
      markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // We only attach ping listeners in concurrent mode. Legacy Suspense always
      // commits fallbacks synchronously, so there are no pings.

      if (suspenseBoundary.mode & ConcurrentMode) {
        attachPingListener(root, wakeable, rootRenderLanes);
      }

      attachRetryListener(suspenseBoundary, root, wakeable);
      return;
    } else {
      // No boundary was found. Unless this is a sync update, this is OK.
      // We can suspend and wait for more data to arrive.
      if (!includesSyncLane(rootRenderLanes)) {
        // This is not a sync update. Suspend. Since we're not activating a
        // Suspense boundary, this will unwind all the way to the root without
        // performing a second pass to render a fallback. (This is arguably how
        // refresh transitions should work, too, since we're not going to commit
        // the fallbacks anyway.)
        //
        // This case also applies to initial hydration.
        attachPingListener(root, wakeable, rootRenderLanes);
        renderDidSuspendDelayIfPossible();
        return;
      } // This is a sync/discrete update. We treat this case like an error
      // because discrete renders are expected to produce a complete tree
      // synchronously to maintain consistency with external state.


      var uncaughtSuspenseError = new Error('A component suspended while responding to synchronous input. This ' + 'will cause the UI to be replaced with a loading indicator. To ' + 'fix, updates that suspend should be wrapped ' + 'with startTransition.'); // If we're outside a transition, fall through to the regular error path.
      // The error will be caught by the nearest suspense boundary.

      value = uncaughtSuspenseError;
    }
  } else {
    // This is a regular error, not a Suspense wakeable.
    if (getIsHydrating() && sourceFiber.mode & ConcurrentMode) {
      markDidThrowWhileHydratingDEV();

      var _suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); // If the error was thrown during hydration, we may be able to recover by
      // discarding the dehydrated content and switching to a client render.
      // Instead of surfacing the error, find the nearest Suspense boundary
      // and render it again without hydration.


      if (_suspenseBoundary !== null) {
        if ((_suspenseBoundary.flags & ShouldCapture) === NoFlags) {
          // Set a flag to indicate that we should try rendering the normal
          // children again, not the fallback.
          _suspenseBoundary.flags |= ForceClientRender;
        }

        markSuspenseBoundaryShouldCapture(_suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); // Even though the user may not be affected by this error, we should
        // still log it so it can be fixed.

        queueHydrationError(createCapturedValueAtFiber(value, sourceFiber));
        return;
      }
    }
  }

  value = createCapturedValueAtFiber(value, sourceFiber);
  renderDidError(value); // We didn't find a boundary that could handle this type of exception. Start
  // over and traverse parent path again, this time treating the exception
  // as an error.

  var workInProgress = returnFiber;

  do {
    switch (workInProgress.tag) {
      case HostRoot:
        {
          var _errorInfo = value;
          workInProgress.flags |= ShouldCapture;
          var lane = pickArbitraryLane(rootRenderLanes);
          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane);
          var update = createRootErrorUpdate(workInProgress, _errorInfo, lane);
          enqueueCapturedUpdate(workInProgress, update);
          return;
        }

      case ClassComponent:
        // Capture and retry
        var errorInfo = value;
        var ctor = workInProgress.type;
        var instance = workInProgress.stateNode;

        if ((workInProgress.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
          workInProgress.flags |= ShouldCapture;

          var _lane = pickArbitraryLane(rootRenderLanes);

          workInProgress.lanes = mergeLanes(workInProgress.lanes, _lane); // Schedule the error boundary to re-render using updated state

          var _update = createClassErrorUpdate(workInProgress, errorInfo, _lane);

          enqueueCapturedUpdate(workInProgress, _update);
          return;
        }

        break;
    }

    workInProgress = workInProgress.return;
  } while (workInProgress !== null);
}

function getSuspendedCache() {
  {
    return null;
  } // This function is called when a Suspense boundary suspends. It returns the
}

var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
var didReceiveUpdate = false;
var didWarnAboutBadClass;
var didWarnAboutModulePatternComponent;
var didWarnAboutContextTypeOnFunctionComponent;
var didWarnAboutGetDerivedStateOnFunctionComponent;
var didWarnAboutFunctionRefs;
var didWarnAboutReassigningProps;
var didWarnAboutRevealOrder;
var didWarnAboutTailOptions;

{
  didWarnAboutBadClass = {};
  didWarnAboutModulePatternComponent = {};
  didWarnAboutContextTypeOnFunctionComponent = {};
  didWarnAboutGetDerivedStateOnFunctionComponent = {};
  didWarnAboutFunctionRefs = {};
  didWarnAboutReassigningProps = false;
  didWarnAboutRevealOrder = {};
  didWarnAboutTailOptions = {};
}

function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
  if (current === null) {
    // If this is a fresh new component that hasn't been rendered yet, we
    // won't update its child set by applying minimal side-effects. Instead,
    // we will add them all to the child before it gets rendered. That means
    // we can optimize this reconciliation pass by not tracking side-effects.
    workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
  } else {
    // If the current child is the same as the work in progress, it means that
    // we haven't yet started any work on these children. Therefore, we use
    // the clone algorithm to create a copy of all the current children.
    // If we had any progressed work already, that is invalid at this point so
    // let's throw it out.
    workInProgress.child = reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
  }
}

function forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes) {
  // This function is fork of reconcileChildren. It's used in cases where we
  // want to reconcile without matching against the existing set. This has the
  // effect of all current children being unmounted; even if the type and key
  // are the same, the old child is unmounted and a new child is created.
  //
  // To do this, we're going to go through the reconcile algorithm twice. In
  // the first pass, we schedule a deletion for all the current children by
  // passing null.
  workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes); // In the second pass, we mount the new children. The trick here is that we
  // pass null in place of where we usually pass the current child set. This has
  // the effect of remounting all children regardless of whether their
  // identities match.

  workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
}

function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens after the first render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentNameFromType(Component));
      }
    }
  }

  var render = Component.render;
  var ref = workInProgress.ref; // The rest is a fork of updateFunctionComponent

  var nextChildren;
  var hasId;
  prepareToReadContext(workInProgress, renderLanes);

  {
    markComponentRenderStarted(workInProgress);
  }

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
    hasId = checkDidRenderIdHook();

    if ( workInProgress.mode & StrictLegacyMode) {
      setIsStrictModeForDevtools(true);

      try {
        nextChildren = renderWithHooks(current, workInProgress, render, nextProps, ref, renderLanes);
        hasId = checkDidRenderIdHook();
      } finally {
        setIsStrictModeForDevtools(false);
      }
    }

    setIsRendering(false);
  }

  {
    markComponentRenderStopped();
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderLanes);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  }

  if (getIsHydrating() && hasId) {
    pushMaterializedTreeId(workInProgress);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
  if (current === null) {
    var type = Component.type;

    if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either.
    Component.defaultProps === undefined) {
      var resolvedType = type;

      {
        resolvedType = resolveFunctionForHotReloading(type);
      } // If this is a plain function component without default props,
      // and with only the default shallow comparison, we upgrade it
      // to a SimpleMemoComponent to allow fast path updates.


      workInProgress.tag = SimpleMemoComponent;
      workInProgress.type = resolvedType;

      {
        validateFunctionComponentInDev(workInProgress, type);
      }

      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, renderLanes);
    }

    {
      var innerPropTypes = type.propTypes;

      if (innerPropTypes) {
        // Inner memo component props aren't currently validated in createElement.
        // We could move it there, but we'd still need this for lazy code path.
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentNameFromType(type));
      }
    }

    var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes);
    child.ref = workInProgress.ref;
    child.return = workInProgress;
    workInProgress.child = child;
    return child;
  }

  {
    var _type = Component.type;
    var _innerPropTypes = _type.propTypes;

    if (_innerPropTypes) {
      // Inner memo component props aren't currently validated in createElement.
      // We could move it there, but we'd still need this for lazy code path.
      checkPropTypes(_innerPropTypes, nextProps, // Resolved props
      'prop', getComponentNameFromType(_type));
    }
  }

  var currentChild = current.child; // This is always exactly one child

  var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);

  if (!hasScheduledUpdateOrContext) {
    // This will be the props with resolved defaultProps,
    // unlike current.memoizedProps which will be the unresolved ones.
    var prevProps = currentChild.memoizedProps; // Default to shallow comparison

    var compare = Component.compare;
    compare = compare !== null ? compare : shallowEqual;

    if (compare(prevProps, nextProps) && current.ref === workInProgress.ref) {
      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
    }
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  var newChild = createWorkInProgress(currentChild, nextProps);
  newChild.ref = workInProgress.ref;
  newChild.return = workInProgress;
  workInProgress.child = newChild;
  return newChild;
}

function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
  // TODO: current can be non-null here even if the component
  // hasn't yet mounted. This happens when the inner render suspends.
  // We'll need to figure out if this is fine or can cause issues.
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var outerMemoType = workInProgress.elementType;

      if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
        // We warn when you define propTypes on lazy()
        // so let's just skip over it to find memo() outer wrapper.
        // Inner props for memo are validated later.
        var lazyComponent = outerMemoType;
        var payload = lazyComponent._payload;
        var init = lazyComponent._init;

        try {
          outerMemoType = init(payload);
        } catch (x) {
          outerMemoType = null;
        } // Inner propTypes will be validated in the function component path.


        var outerPropTypes = outerMemoType && outerMemoType.propTypes;

        if (outerPropTypes) {
          checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
          'prop', getComponentNameFromType(outerMemoType));
        }
      }
    }
  }

  if (current !== null) {
    var prevProps = current.memoizedProps;

    if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && ( // Prevent bailout if the implementation changed due to hot reload.
     workInProgress.type === current.type )) {
      didReceiveUpdate = false; // The props are shallowly equal. Reuse the previous props object, like we
      // would during a normal fiber bailout.
      //
      // We don't have strong guarantees that the props object is referentially
      // equal during updates where we can't bail out anyway — like if the props
      // are shallowly equal, but there's a local state or context update in the
      // same batch.
      //
      // However, as a principle, we should aim to make the behavior consistent
      // across different ways of memoizing a component. For example, React.memo
      // has a different internal Fiber layout if you pass a normal function
      // component (SimpleMemoComponent) versus if you pass a different type
      // like forwardRef (MemoComponent). But this is an implementation detail.
      // Wrapping a component in forwardRef (or React.lazy, etc) shouldn't
      // affect whether the props object is reused during a bailout.

      workInProgress.pendingProps = nextProps = prevProps;

      if (!checkScheduledUpdateOrContext(current, renderLanes)) {
        // The pending lanes were cleared at the beginning of beginWork. We're
        // about to bail out, but there might be other lanes that weren't
        // included in the current render. Usually, the priority level of the
        // remaining updates is accumulated during the evaluation of the
        // component (i.e. when processing the update queue). But since since
        // we're bailing out early *without* evaluating the component, we need
        // to account for it here, too. Reset to the value of the current fiber.
        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,
        // because a MemoComponent fiber does not have hooks or an update queue;
        // rather, it wraps around an inner component, which may or may not
        // contains hooks.
        // TODO: Move the reset at in beginWork out of the common path so that
        // this is no longer necessary.
        workInProgress.lanes = current.lanes;
        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
      } else if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
        // This is a special case that only exists for legacy mode.
        // See https://github.com/facebook/react/pull/19216.
        didReceiveUpdate = true;
      }
    }
  }

  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
}

function updateOffscreenComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  var prevState = current !== null ? current.memoizedState : null;

  if (nextProps.mode === 'hidden' || enableLegacyHidden ) {
    // Rendering a hidden tree.
    if ((workInProgress.mode & ConcurrentMode) === NoMode) {
      // In legacy sync mode, don't defer the subtree. Render it now.
      // TODO: Consider how Offscreen should work with transitions in the future
      var nextState = {
        baseLanes: NoLanes,
        cachePool: null,
        transitions: null
      };
      workInProgress.memoizedState = nextState;

      pushRenderLanes(workInProgress, renderLanes);
    } else if (!includesSomeLane(renderLanes, OffscreenLane)) {
      var spawnedCachePool = null; // We're hidden, and we're not rendering at Offscreen. We will bail out
      // and resume this tree later.

      var nextBaseLanes;

      if (prevState !== null) {
        var prevBaseLanes = prevState.baseLanes;
        nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes);
      } else {
        nextBaseLanes = renderLanes;
      } // Schedule this fiber to re-render at offscreen priority. Then bailout.


      workInProgress.lanes = workInProgress.childLanes = laneToLanes(OffscreenLane);
      var _nextState = {
        baseLanes: nextBaseLanes,
        cachePool: spawnedCachePool,
        transitions: null
      };
      workInProgress.memoizedState = _nextState;
      workInProgress.updateQueue = null;
      // to avoid a push/pop misalignment.


      pushRenderLanes(workInProgress, nextBaseLanes);

      return null;
    } else {
      // This is the second render. The surrounding visible content has already
      // committed. Now we resume rendering the hidden tree.
      // Rendering at offscreen, so we can clear the base lanes.
      var _nextState2 = {
        baseLanes: NoLanes,
        cachePool: null,
        transitions: null
      };
      workInProgress.memoizedState = _nextState2; // Push the lanes that were skipped when we bailed out.

      var subtreeRenderLanes = prevState !== null ? prevState.baseLanes : renderLanes;

      pushRenderLanes(workInProgress, subtreeRenderLanes);
    }
  } else {
    // Rendering a visible tree.
    var _subtreeRenderLanes;

    if (prevState !== null) {
      // We're going from hidden -> visible.
      _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes);

      workInProgress.memoizedState = null;
    } else {
      // We weren't previously hidden, and we still aren't, so there's nothing
      // special to do. Need to push to the stack regardless, though, to avoid
      // a push/pop misalignment.
      _subtreeRenderLanes = renderLanes;
    }

    pushRenderLanes(workInProgress, _subtreeRenderLanes);
  }

  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
} // Note: These happen to have identical begin phases, for now. We shouldn't hold

function updateFragment(current, workInProgress, renderLanes) {
  var nextChildren = workInProgress.pendingProps;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateMode(current, workInProgress, renderLanes) {
  var nextChildren = workInProgress.pendingProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateProfiler(current, workInProgress, renderLanes) {
  {
    workInProgress.flags |= Update;

    {
      // Reset effect durations for the next eventual effect phase.
      // These are reset during render to allow the DevTools commit hook a chance to read them,
      var stateNode = workInProgress.stateNode;
      stateNode.effectDuration = 0;
      stateNode.passiveEffectDuration = 0;
    }
  }

  var nextProps = workInProgress.pendingProps;
  var nextChildren = nextProps.children;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function markRef(current, workInProgress) {
  var ref = workInProgress.ref;

  if (current === null && ref !== null || current !== null && current.ref !== ref) {
    // Schedule a Ref effect
    workInProgress.flags |= Ref;

    {
      workInProgress.flags |= RefStatic;
    }
  }
}

function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
  {
    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentNameFromType(Component));
      }
    }
  }

  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  var nextChildren;
  var hasId;
  prepareToReadContext(workInProgress, renderLanes);

  {
    markComponentRenderStarted(workInProgress);
  }

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
    hasId = checkDidRenderIdHook();

    if ( workInProgress.mode & StrictLegacyMode) {
      setIsStrictModeForDevtools(true);

      try {
        nextChildren = renderWithHooks(current, workInProgress, Component, nextProps, context, renderLanes);
        hasId = checkDidRenderIdHook();
      } finally {
        setIsStrictModeForDevtools(false);
      }
    }

    setIsRendering(false);
  }

  {
    markComponentRenderStopped();
  }

  if (current !== null && !didReceiveUpdate) {
    bailoutHooks(current, workInProgress, renderLanes);
    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  }

  if (getIsHydrating() && hasId) {
    pushMaterializedTreeId(workInProgress);
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
  {
    // This is used by DevTools to force a boundary to error.
    switch (shouldError(workInProgress)) {
      case false:
        {
          var _instance = workInProgress.stateNode;
          var ctor = workInProgress.type; // TODO This way of resetting the error boundary state is a hack.
          // Is there a better way to do this?

          var tempInstance = new ctor(workInProgress.memoizedProps, _instance.context);
          var state = tempInstance.state;

          _instance.updater.enqueueSetState(_instance, state, null);

          break;
        }

      case true:
        {
          workInProgress.flags |= DidCapture;
          workInProgress.flags |= ShouldCapture; // eslint-disable-next-line react-internal/prod-error-codes

          var error$1 = new Error('Simulated error coming from DevTools');
          var lane = pickArbitraryLane(renderLanes);
          workInProgress.lanes = mergeLanes(workInProgress.lanes, lane); // Schedule the error boundary to re-render using updated state

          var update = createClassErrorUpdate(workInProgress, createCapturedValueAtFiber(error$1, workInProgress), lane);
          enqueueCapturedUpdate(workInProgress, update);
          break;
        }
    }

    if (workInProgress.type !== workInProgress.elementType) {
      // Lazy component props can't be validated in createElement
      // because they're only guaranteed to be resolved here.
      var innerPropTypes = Component.propTypes;

      if (innerPropTypes) {
        checkPropTypes(innerPropTypes, nextProps, // Resolved props
        'prop', getComponentNameFromType(Component));
      }
    }
  } // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.


  var hasContext;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderLanes);
  var instance = workInProgress.stateNode;
  var shouldUpdate;

  if (instance === null) {
    resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress); // In the initial pass we might need to construct the instance.

    constructClassInstance(workInProgress, Component, nextProps);
    mountClassInstance(workInProgress, Component, nextProps, renderLanes);
    shouldUpdate = true;
  } else if (current === null) {
    // In a resume, we'll already have an instance we can reuse.
    shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderLanes);
  } else {
    shouldUpdate = updateClassInstance(current, workInProgress, Component, nextProps, renderLanes);
  }

  var nextUnitOfWork = finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes);

  {
    var inst = workInProgress.stateNode;

    if (shouldUpdate && inst.props !== nextProps) {
      if (!didWarnAboutReassigningProps) {
        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentNameFromFiber(workInProgress) || 'a component');
      }

      didWarnAboutReassigningProps = true;
    }
  }

  return nextUnitOfWork;
}

function finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderLanes) {
  // Refs should update even if shouldComponentUpdate returns false
  markRef(current, workInProgress);
  var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags;

  if (!shouldUpdate && !didCaptureError) {
    // Context providers should defer to sCU for rendering
    if (hasContext) {
      invalidateContextProvider(workInProgress, Component, false);
    }

    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
  }

  var instance = workInProgress.stateNode; // Rerender

  ReactCurrentOwner$1.current = workInProgress;
  var nextChildren;

  if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
    // If we captured an error, but getDerivedStateFromError is not defined,
    // unmount all the children. componentDidCatch will schedule an update to
    // re-render a fallback. This is temporary until we migrate everyone to
    // the new API.
    // TODO: Warn in a future release.
    nextChildren = null;

    {
      stopProfilerTimerIfRunning();
    }
  } else {
    {
      markComponentRenderStarted(workInProgress);
    }

    {
      setIsRendering(true);
      nextChildren = instance.render();

      if ( workInProgress.mode & StrictLegacyMode) {
        setIsStrictModeForDevtools(true);

        try {
          instance.render();
        } finally {
          setIsStrictModeForDevtools(false);
        }
      }

      setIsRendering(false);
    }

    {
      markComponentRenderStopped();
    }
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;

  if (current !== null && didCaptureError) {
    // If we're recovering from an error, reconcile without reusing any of
    // the existing children. Conceptually, the normal children and the children
    // that are shown on error are two different sets, so we shouldn't reuse
    // normal children even if their identities match.
    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderLanes);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  } // Memoize state using the values we just used to render.
  // TODO: Restructure so we never read values from the instance.


  workInProgress.memoizedState = instance.state; // The context might have changed so we need to recalculate it.

  if (hasContext) {
    invalidateContextProvider(workInProgress, Component, true);
  }

  return workInProgress.child;
}

function pushHostRootContext(workInProgress) {
  var root = workInProgress.stateNode;

  if (root.pendingContext) {
    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  } else if (root.context) {
    // Should always be set
    pushTopLevelContextObject(workInProgress, root.context, false);
  }

  pushHostContainer(workInProgress, root.containerInfo);
}

function updateHostRoot(current, workInProgress, renderLanes) {
  pushHostRootContext(workInProgress);

  if (current === null) {
    throw new Error('Should have a current fiber. This is a bug in React.');
  }

  var nextProps = workInProgress.pendingProps;
  var prevState = workInProgress.memoizedState;
  var prevChildren = prevState.element;
  cloneUpdateQueue(current, workInProgress);
  processUpdateQueue(workInProgress, nextProps, null, renderLanes);
  var nextState = workInProgress.memoizedState;
  var root = workInProgress.stateNode;
  // being called "element".


  var nextChildren = nextState.element;

  if ( prevState.isDehydrated) {
    // This is a hydration root whose shell has not yet hydrated. We should
    // attempt to hydrate.
    // Flip isDehydrated to false to indicate that when this render
    // finishes, the root will no longer be dehydrated.
    var overrideState = {
      element: nextChildren,
      isDehydrated: false,
      cache: nextState.cache,
      pendingSuspenseBoundaries: nextState.pendingSuspenseBoundaries,
      transitions: nextState.transitions
    };
    var updateQueue = workInProgress.updateQueue; // `baseState` can always be the last state because the root doesn't
    // have reducer functions so it doesn't need rebasing.

    updateQueue.baseState = overrideState;
    workInProgress.memoizedState = overrideState;

    if (workInProgress.flags & ForceClientRender) {
      // Something errored during a previous attempt to hydrate the shell, so we
      // forced a client render.
      var recoverableError = createCapturedValueAtFiber(new Error('There was an error while hydrating. Because the error happened outside ' + 'of a Suspense boundary, the entire root will switch to ' + 'client rendering.'), workInProgress);
      return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError);
    } else if (nextChildren !== prevChildren) {
      var _recoverableError = createCapturedValueAtFiber(new Error('This root received an early update, before anything was able ' + 'hydrate. Switched the entire root to client rendering.'), workInProgress);

      return mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, _recoverableError);
    } else {
      // The outermost shell has not hydrated yet. Start hydrating.
      enterHydrationState(workInProgress);

      var child = mountChildFibers(workInProgress, null, nextChildren, renderLanes);
      workInProgress.child = child;
      var node = child;

      while (node) {
        // Mark each child as hydrating. This is a fast path to know whether this
        // tree is part of a hydrating tree. This is used to determine if a child
        // node has fully mounted yet, and for scheduling event replaying.
        // Conceptually this is similar to Placement in that a new subtree is
        // inserted into the React tree here. It just happens to not need DOM
        // mutations because it already exists.
        node.flags = node.flags & ~Placement | Hydrating;
        node = node.sibling;
      }
    }
  } else {
    // Root is not dehydrated. Either this is a client-only root, or it
    // already hydrated.
    resetHydrationState();

    if (nextChildren === prevChildren) {
      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
    }

    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  }

  return workInProgress.child;
}

function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes, recoverableError) {
  // Revert to client rendering.
  resetHydrationState();
  queueHydrationError(recoverableError);
  workInProgress.flags |= ForceClientRender;
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateHostComponent(current, workInProgress, renderLanes) {
  pushHostContext(workInProgress);

  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  }

  var type = workInProgress.type;
  var nextProps = workInProgress.pendingProps;
  var prevProps = current !== null ? current.memoizedProps : null;
  var nextChildren = nextProps.children;
  var isDirectTextChild = shouldSetTextContent(type, nextProps);

  if (isDirectTextChild) {
    // We special case a direct text child of a host node. This is a common
    // case. We won't handle it as a reified child. We will instead handle
    // this in the host environment that also has access to this prop. That
    // avoids allocating another HostText fiber and traversing it.
    nextChildren = null;
  } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
    // If we're switching from a direct text child to a normal child, or to
    // empty, we need to schedule the text content to be reset.
    workInProgress.flags |= ContentReset;
  }

  markRef(current, workInProgress);
  reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  return workInProgress.child;
}

function updateHostText(current, workInProgress) {
  if (current === null) {
    tryToClaimNextHydratableInstance(workInProgress);
  } // Nothing to do here. This is terminal. We'll do the completion step
  // immediately after.


  return null;
}

function mountLazyComponent(_current, workInProgress, elementType, renderLanes) {
  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);
  var props = workInProgress.pendingProps;
  var lazyComponent = elementType;
  var payload = lazyComponent._payload;
  var init = lazyComponent._init;
  var Component = init(payload); // Store the unwrapped component in the type.

  workInProgress.type = Component;
  var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  var resolvedProps = resolveDefaultProps(Component, props);
  var child;

  switch (resolvedTag) {
    case FunctionComponent:
      {
        {
          validateFunctionComponentInDev(workInProgress, Component);
          workInProgress.type = Component = resolveFunctionForHotReloading(Component);
        }

        child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case ClassComponent:
      {
        {
          workInProgress.type = Component = resolveClassForHotReloading(Component);
        }

        child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case ForwardRef:
      {
        {
          workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
        }

        child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderLanes);
        return child;
      }

    case MemoComponent:
      {
        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = Component.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
              'prop', getComponentNameFromType(Component));
            }
          }
        }

        child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
        renderLanes);
        return child;
      }
  }

  var hint = '';

  {
    if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
      hint = ' Did you wrap a component in React.lazy() more than once?';
    }
  } // This message intentionally doesn't mention ForwardRef or MemoComponent
  // because the fact that it's a separate type of work is an
  // implementation detail.


  throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint));
}

function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderLanes) {
  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress); // Promote the fiber to a class and try rendering again.

  workInProgress.tag = ClassComponent; // The rest of this function is a fork of `updateClassComponent`
  // Push context providers early to prevent context stack mismatches.
  // During mounting we don't know the child context yet as the instance doesn't exist.
  // We will invalidate the child context in finishClassComponent() right after rendering.

  var hasContext;

  if (isContextProvider(Component)) {
    hasContext = true;
    pushContextProvider(workInProgress);
  } else {
    hasContext = false;
  }

  prepareToReadContext(workInProgress, renderLanes);
  constructClassInstance(workInProgress, Component, nextProps);
  mountClassInstance(workInProgress, Component, nextProps, renderLanes);
  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
}

function mountIndeterminateComponent(_current, workInProgress, Component, renderLanes) {
  resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress);
  var props = workInProgress.pendingProps;
  var context;

  {
    var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
    context = getMaskedContext(workInProgress, unmaskedContext);
  }

  prepareToReadContext(workInProgress, renderLanes);
  var value;
  var hasId;

  {
    markComponentRenderStarted(workInProgress);
  }

  {
    if (Component.prototype && typeof Component.prototype.render === 'function') {
      var componentName = getComponentNameFromType(Component) || 'Unknown';

      if (!didWarnAboutBadClass[componentName]) {
        error("The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);

        didWarnAboutBadClass[componentName] = true;
      }
    }

    if (workInProgress.mode & StrictLegacyMode) {
      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
    }

    setIsRendering(true);
    ReactCurrentOwner$1.current = workInProgress;
    value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
    hasId = checkDidRenderIdHook();
    setIsRendering(false);
  }

  {
    markComponentRenderStopped();
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;

  {
    // Support for module components is deprecated and is removed behind a flag.
    // Whether or not it would crash later, we want to show a good message in DEV first.
    if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
      var _componentName = getComponentNameFromType(Component) || 'Unknown';

      if (!didWarnAboutModulePatternComponent[_componentName]) {
        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);

        didWarnAboutModulePatternComponent[_componentName] = true;
      }
    }
  }

  if ( // Run these checks in production only if the flag is off.
  // Eventually we'll delete this branch altogether.
   typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
    {
      var _componentName2 = getComponentNameFromType(Component) || 'Unknown';

      if (!didWarnAboutModulePatternComponent[_componentName2]) {
        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName2, _componentName2, _componentName2);

        didWarnAboutModulePatternComponent[_componentName2] = true;
      }
    } // Proceed under the assumption that this is a class instance


    workInProgress.tag = ClassComponent; // Throw out any hooks that were used.

    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null; // Push context providers early to prevent context stack mismatches.
    // During mounting we don't know the child context yet as the instance doesn't exist.
    // We will invalidate the child context in finishClassComponent() right after rendering.

    var hasContext = false;

    if (isContextProvider(Component)) {
      hasContext = true;
      pushContextProvider(workInProgress);
    } else {
      hasContext = false;
    }

    workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
    initializeUpdateQueue(workInProgress);
    adoptClassInstance(workInProgress, value);
    mountClassInstance(workInProgress, Component, props, renderLanes);
    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderLanes);
  } else {
    // Proceed under the assumption that this is a function component
    workInProgress.tag = FunctionComponent;

    {

      if ( workInProgress.mode & StrictLegacyMode) {
        setIsStrictModeForDevtools(true);

        try {
          value = renderWithHooks(null, workInProgress, Component, props, context, renderLanes);
          hasId = checkDidRenderIdHook();
        } finally {
          setIsStrictModeForDevtools(false);
        }
      }
    }

    if (getIsHydrating() && hasId) {
      pushMaterializedTreeId(workInProgress);
    }

    reconcileChildren(null, workInProgress, value, renderLanes);

    {
      validateFunctionComponentInDev(workInProgress, Component);
    }

    return workInProgress.child;
  }
}

function validateFunctionComponentInDev(workInProgress, Component) {
  {
    if (Component) {
      if (Component.childContextTypes) {
        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component');
      }
    }

    if (workInProgress.ref !== null) {
      var info = '';
      var ownerName = getCurrentFiberOwnerNameInDevOrNull();

      if (ownerName) {
        info += '\n\nCheck the render method of `' + ownerName + '`.';
      }

      var warningKey = ownerName || '';
      var debugSource = workInProgress._debugSource;

      if (debugSource) {
        warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
      }

      if (!didWarnAboutFunctionRefs[warningKey]) {
        didWarnAboutFunctionRefs[warningKey] = true;

        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
      }
    }

    if (typeof Component.getDerivedStateFromProps === 'function') {
      var _componentName3 = getComponentNameFromType(Component) || 'Unknown';

      if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) {
        error('%s: Function components do not support getDerivedStateFromProps.', _componentName3);

        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true;
      }
    }

    if (typeof Component.contextType === 'object' && Component.contextType !== null) {
      var _componentName4 = getComponentNameFromType(Component) || 'Unknown';

      if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) {
        error('%s: Function components do not support contextType.', _componentName4);

        didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true;
      }
    }
  }
}

var SUSPENDED_MARKER = {
  dehydrated: null,
  treeContext: null,
  retryLane: NoLane
};

function mountSuspenseOffscreenState(renderLanes) {
  return {
    baseLanes: renderLanes,
    cachePool: getSuspendedCache(),
    transitions: null
  };
}

function updateSuspenseOffscreenState(prevOffscreenState, renderLanes) {
  var cachePool = null;

  return {
    baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes),
    cachePool: cachePool,
    transitions: prevOffscreenState.transitions
  };
} // TODO: Probably should inline this back


function shouldRemainOnFallback(suspenseContext, current, workInProgress, renderLanes) {
  // If we're already showing a fallback, there are cases where we need to
  // remain on that fallback regardless of whether the content has resolved.
  // For example, SuspenseList coordinates when nested content appears.
  if (current !== null) {
    var suspenseState = current.memoizedState;

    if (suspenseState === null) {
      // Currently showing content. Don't hide it, even if ForceSuspenseFallback
      // is true. More precise name might be "ForceRemainSuspenseFallback".
      // Note: This is a factoring smell. Can't remain on a fallback if there's
      // no fallback to remain on.
      return false;
    }
  } // Not currently showing content. Consult the Suspense context.


  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
}

function getRemainingWorkInPrimaryTree(current, renderLanes) {
  // TODO: Should not remove render lanes that were pinged during this render
  return removeLanes(current.childLanes, renderLanes);
}

function updateSuspenseComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.

  {
    if (shouldSuspend(workInProgress)) {
      workInProgress.flags |= DidCapture;
    }
  }

  var suspenseContext = suspenseStackCursor.current;
  var showFallback = false;
  var didSuspend = (workInProgress.flags & DidCapture) !== NoFlags;

  if (didSuspend || shouldRemainOnFallback(suspenseContext, current)) {
    // Something in this boundary's subtree already suspended. Switch to
    // rendering the fallback children.
    showFallback = true;
    workInProgress.flags &= ~DidCapture;
  } else {
    // Attempting the main content
    if (current === null || current.memoizedState !== null) {
      // This is a new mount or this boundary is already showing a fallback state.
      // Mark this subtree context as having at least one invisible parent that could
      // handle the fallback state.
      // Avoided boundaries are not considered since they cannot handle preferred fallback states.
      {
        suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
      }
    }
  }

  suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  pushSuspenseContext(workInProgress, suspenseContext); // OK, the next part is confusing. We're about to reconcile the Suspense
  // boundary's children. This involves some custom reconciliation logic. Two
  // main reasons this is so complicated.
  //
  // First, Legacy Mode has different semantics for backwards compatibility. The
  // primary tree will commit in an inconsistent state, so when we do the
  // second pass to render the fallback, we do some exceedingly, uh, clever
  // hacks to make that not totally break. Like transferring effects and
  // deletions from hidden tree. In Concurrent Mode, it's much simpler,
  // because we bailout on the primary tree completely and leave it in its old
  // state, no effects. Same as what we do for Offscreen (except that
  // Offscreen doesn't have the first render pass).
  //
  // Second is hydration. During hydration, the Suspense fiber has a slightly
  // different layout, where the child points to a dehydrated fragment, which
  // contains the DOM rendered by the server.
  //
  // Third, even if you set all that aside, Suspense is like error boundaries in
  // that we first we try to render one tree, and if that fails, we render again
  // and switch to a different tree. Like a try/catch block. So we have to track
  // which branch we're currently rendering. Ideally we would model this using
  // a stack.

  if (current === null) {
    // Initial mount
    // Special path for hydration
    // If we're currently hydrating, try to hydrate this boundary.
    tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.

    var suspenseState = workInProgress.memoizedState;

    if (suspenseState !== null) {
      var dehydrated = suspenseState.dehydrated;

      if (dehydrated !== null) {
        return mountDehydratedSuspenseComponent(workInProgress, dehydrated);
      }
    }

    var nextPrimaryChildren = nextProps.children;
    var nextFallbackChildren = nextProps.fallback;

    if (showFallback) {
      var fallbackFragment = mountSuspenseFallbackChildren(workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
      var primaryChildFragment = workInProgress.child;
      primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes);
      workInProgress.memoizedState = SUSPENDED_MARKER;

      return fallbackFragment;
    } else {
      return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);
    }
  } else {
    // This is an update.
    // Special path for hydration
    var prevState = current.memoizedState;

    if (prevState !== null) {
      var _dehydrated = prevState.dehydrated;

      if (_dehydrated !== null) {
        return updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, _dehydrated, prevState, renderLanes);
      }
    }

    if (showFallback) {
      var _nextFallbackChildren = nextProps.fallback;
      var _nextPrimaryChildren = nextProps.children;
      var fallbackChildFragment = updateSuspenseFallbackChildren(current, workInProgress, _nextPrimaryChildren, _nextFallbackChildren, renderLanes);
      var _primaryChildFragment2 = workInProgress.child;
      var prevOffscreenState = current.child.memoizedState;
      _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes);

      _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current, renderLanes);
      workInProgress.memoizedState = SUSPENDED_MARKER;
      return fallbackChildFragment;
    } else {
      var _nextPrimaryChildren2 = nextProps.children;

      var _primaryChildFragment3 = updateSuspensePrimaryChildren(current, workInProgress, _nextPrimaryChildren2, renderLanes);

      workInProgress.memoizedState = null;
      return _primaryChildFragment3;
    }
  }
}

function mountSuspensePrimaryChildren(workInProgress, primaryChildren, renderLanes) {
  var mode = workInProgress.mode;
  var primaryChildProps = {
    mode: 'visible',
    children: primaryChildren
  };
  var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);
  primaryChildFragment.return = workInProgress;
  workInProgress.child = primaryChildFragment;
  return primaryChildFragment;
}

function mountSuspenseFallbackChildren(workInProgress, primaryChildren, fallbackChildren, renderLanes) {
  var mode = workInProgress.mode;
  var progressedPrimaryFragment = workInProgress.child;
  var primaryChildProps = {
    mode: 'hidden',
    children: primaryChildren
  };
  var primaryChildFragment;
  var fallbackChildFragment;

  if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) {
    // In legacy mode, we commit the primary tree as if it successfully
    // completed, even though it's in an inconsistent state.
    primaryChildFragment = progressedPrimaryFragment;
    primaryChildFragment.childLanes = NoLanes;
    primaryChildFragment.pendingProps = primaryChildProps;

    if ( workInProgress.mode & ProfileMode) {
      // Reset the durations from the first pass so they aren't included in the
      // final amounts. This seems counterintuitive, since we're intentionally
      // not measuring part of the render phase, but this makes it match what we
      // do in Concurrent Mode.
      primaryChildFragment.actualDuration = 0;
      primaryChildFragment.actualStartTime = -1;
      primaryChildFragment.selfBaseDuration = 0;
      primaryChildFragment.treeBaseDuration = 0;
    }

    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
  } else {
    primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode);
    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null);
  }

  primaryChildFragment.return = workInProgress;
  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;
  return fallbackChildFragment;
}

function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes) {
  // The props argument to `createFiberFromOffscreen` is `any` typed, so we use
  // this wrapper function to constrain it.
  return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null);
}

function updateWorkInProgressOffscreenFiber(current, offscreenProps) {
  // The props argument to `createWorkInProgress` is `any` typed, so we use this
  // wrapper function to constrain it.
  return createWorkInProgress(current, offscreenProps);
}

function updateSuspensePrimaryChildren(current, workInProgress, primaryChildren, renderLanes) {
  var currentPrimaryChildFragment = current.child;
  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, {
    mode: 'visible',
    children: primaryChildren
  });

  if ((workInProgress.mode & ConcurrentMode) === NoMode) {
    primaryChildFragment.lanes = renderLanes;
  }

  primaryChildFragment.return = workInProgress;
  primaryChildFragment.sibling = null;

  if (currentFallbackChildFragment !== null) {
    // Delete the fallback child fragment
    var deletions = workInProgress.deletions;

    if (deletions === null) {
      workInProgress.deletions = [currentFallbackChildFragment];
      workInProgress.flags |= ChildDeletion;
    } else {
      deletions.push(currentFallbackChildFragment);
    }
  }

  workInProgress.child = primaryChildFragment;
  return primaryChildFragment;
}

function updateSuspenseFallbackChildren(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
  var mode = workInProgress.mode;
  var currentPrimaryChildFragment = current.child;
  var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  var primaryChildProps = {
    mode: 'hidden',
    children: primaryChildren
  };
  var primaryChildFragment;

  if ( // In legacy mode, we commit the primary tree as if it successfully
  // completed, even though it's in an inconsistent state.
  (mode & ConcurrentMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was
  // already cloned. In legacy mode, the only case where this isn't true is
  // when DevTools forces us to display a fallback; we skip the first render
  // pass entirely and go straight to rendering the fallback. (In Concurrent
  // Mode, SuspenseList can also trigger this scenario, but this is a legacy-
  // only codepath.)
  workInProgress.child !== currentPrimaryChildFragment) {
    var progressedPrimaryFragment = workInProgress.child;
    primaryChildFragment = progressedPrimaryFragment;
    primaryChildFragment.childLanes = NoLanes;
    primaryChildFragment.pendingProps = primaryChildProps;

    if ( workInProgress.mode & ProfileMode) {
      // Reset the durations from the first pass so they aren't included in the
      // final amounts. This seems counterintuitive, since we're intentionally
      // not measuring part of the render phase, but this makes it match what we
      // do in Concurrent Mode.
      primaryChildFragment.actualDuration = 0;
      primaryChildFragment.actualStartTime = -1;
      primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration;
      primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration;
    } // The fallback fiber was added as a deletion during the first pass.
    // However, since we're going to remain on the fallback, we no longer want
    // to delete it.


    workInProgress.deletions = null;
  } else {
    primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); // Since we're reusing a current tree, we need to reuse the flags, too.
    // (We don't do this in legacy mode, because in legacy mode we don't re-use
    // the current tree; see previous branch.)

    primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask;
  }

  var fallbackChildFragment;

  if (currentFallbackChildFragment !== null) {
    fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren);
  } else {
    fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null); // Needs a placement effect because the parent (the Suspense boundary) already
    // mounted but this is a new fiber.

    fallbackChildFragment.flags |= Placement;
  }

  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;
  return fallbackChildFragment;
}

function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, recoverableError) {
  // Falling back to client rendering. Because this has performance
  // implications, it's considered a recoverable error, even though the user
  // likely won't observe anything wrong with the UI.
  //
  // The error is passed in as an argument to enforce that every caller provide
  // a custom message, or explicitly opt out (currently the only path that opts
  // out is legacy mode; every concurrent path provides an error).
  if (recoverableError !== null) {
    queueHydrationError(recoverableError);
  } // This will add the old fiber to the deletion list


  reconcileChildFibers(workInProgress, current.child, null, renderLanes); // We're now not suspended nor dehydrated.

  var nextProps = workInProgress.pendingProps;
  var primaryChildren = nextProps.children;
  var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Needs a placement effect because the parent (the Suspense boundary) already
  // mounted but this is a new fiber.

  primaryChildFragment.flags |= Placement;
  workInProgress.memoizedState = null;
  return primaryChildFragment;
}

function mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, primaryChildren, fallbackChildren, renderLanes) {
  var fiberMode = workInProgress.mode;
  var primaryChildProps = {
    mode: 'visible',
    children: primaryChildren
  };
  var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode);
  var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes, null); // Needs a placement effect because the parent (the Suspense
  // boundary) already mounted but this is a new fiber.

  fallbackChildFragment.flags |= Placement;
  primaryChildFragment.return = workInProgress;
  fallbackChildFragment.return = workInProgress;
  primaryChildFragment.sibling = fallbackChildFragment;
  workInProgress.child = primaryChildFragment;

  if ((workInProgress.mode & ConcurrentMode) !== NoMode) {
    // We will have dropped the effect list which contains the
    // deletion. We need to reconcile to delete the current child.
    reconcileChildFibers(workInProgress, current.child, null, renderLanes);
  }

  return fallbackChildFragment;
}

function mountDehydratedSuspenseComponent(workInProgress, suspenseInstance, renderLanes) {
  // During the first pass, we'll bail out and not drill into the children.
  // Instead, we'll leave the content in place and try to hydrate it later.
  if ((workInProgress.mode & ConcurrentMode) === NoMode) {
    {
      error('Cannot hydrate Suspense in legacy mode. Switch from ' + 'ReactDOM.hydrate(element, container) to ' + 'ReactDOMClient.hydrateRoot(container, <App />)' + '.render(element) or remove the Suspense components from ' + 'the server rendered components.');
    }

    workInProgress.lanes = laneToLanes(SyncLane);
  } else if (isSuspenseInstanceFallback(suspenseInstance)) {
    // This is a client-only boundary. Since we won't get any content from the server
    // for this, we need to schedule that at a higher priority based on when it would
    // have timed out. In theory we could render it in this pass but it would have the
    // wrong priority associated with it and will prevent hydration of parent path.
    // Instead, we'll leave work left on it to render it in a separate commit.
    // TODO This time should be the time at which the server rendered response that is
    // a parent to this boundary was displayed. However, since we currently don't have
    // a protocol to transfer that time, we'll just estimate it by using the current
    // time. This will mean that Suspense timeouts are slightly shifted to later than
    // they should be.
    // Schedule a normal pri update to render this content.
    workInProgress.lanes = laneToLanes(DefaultHydrationLane);
  } else {
    // We'll continue hydrating the rest at offscreen priority since we'll already
    // be showing the right content coming from the server, it is no rush.
    workInProgress.lanes = laneToLanes(OffscreenLane);
  }

  return null;
}

function updateDehydratedSuspenseComponent(current, workInProgress, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes) {
  if (!didSuspend) {
    // This is the first render pass. Attempt to hydrate.
    // We should never be hydrating at this point because it is the first pass,
    // but after we've already committed once.
    warnIfHydrating();

    if ((workInProgress.mode & ConcurrentMode) === NoMode) {
      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, // TODO: When we delete legacy mode, we should make this error argument
      // required — every concurrent mode path that causes hydration to
      // de-opt to client rendering should have an error message.
      null);
    }

    if (isSuspenseInstanceFallback(suspenseInstance)) {
      // This boundary is in a permanent fallback state. In this case, we'll never
      // get an update and we'll never be able to hydrate the final content. Let's just try the
      // client side render instead.
      var digest, message, stack;

      {
        var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(suspenseInstance);

        digest = _getSuspenseInstanceF.digest;
        message = _getSuspenseInstanceF.message;
        stack = _getSuspenseInstanceF.stack;
      }

      var error;

      if (message) {
        // eslint-disable-next-line react-internal/prod-error-codes
        error = new Error(message);
      } else {
        error = new Error('The server could not finish this Suspense boundary, likely ' + 'due to an error during server rendering. Switched to ' + 'client rendering.');
      }

      var capturedValue = createCapturedValue(error, digest, stack);
      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, capturedValue);
    }
    // any context has changed, we need to treat is as if the input might have changed.


    var hasContextChanged = includesSomeLane(renderLanes, current.childLanes);

    if (didReceiveUpdate || hasContextChanged) {
      // This boundary has changed since the first render. This means that we are now unable to
      // hydrate it. We might still be able to hydrate it using a higher priority lane.
      var root = getWorkInProgressRoot();

      if (root !== null) {
        var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes);

        if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) {
          // Intentionally mutating since this render will get interrupted. This
          // is one of the very rare times where we mutate the current tree
          // during the render phase.
          suspenseState.retryLane = attemptHydrationAtLane; // TODO: Ideally this would inherit the event time of the current render

          var eventTime = NoTimestamp;
          enqueueConcurrentRenderForLane(current, attemptHydrationAtLane);
          scheduleUpdateOnFiber(root, current, attemptHydrationAtLane, eventTime);
        }
      } // If we have scheduled higher pri work above, this will probably just abort the render
      // since we now have higher priority work, but in case it doesn't, we need to prepare to
      // render something, if we time out. Even if that requires us to delete everything and
      // skip hydration.
      // Delay having to do this as long as the suspense timeout allows us.


      renderDidSuspendDelayIfPossible();

      var _capturedValue = createCapturedValue(new Error('This Suspense boundary received an update before it finished ' + 'hydrating. This caused the boundary to switch to client rendering. ' + 'The usual way to fix this is to wrap the original update ' + 'in startTransition.'));

      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue);
    } else if (isSuspenseInstancePending(suspenseInstance)) {
      // This component is still pending more data from the server, so we can't hydrate its
      // content. We treat it as if this component suspended itself. It might seem as if
      // we could just try to render it client-side instead. However, this will perform a
      // lot of unnecessary work and is unlikely to complete since it often will suspend
      // on missing data anyway. Additionally, the server might be able to render more
      // than we can on the client yet. In that case we'd end up with more fallback states
      // on the client than if we just leave it alone. If the server times out or errors
      // these should update this boundary to the permanent Fallback state instead.
      // Mark it as having captured (i.e. suspended).
      workInProgress.flags |= DidCapture; // Leave the child in place. I.e. the dehydrated fragment.

      workInProgress.child = current.child; // Register a callback to retry this boundary once the server has sent the result.

      var retry = retryDehydratedSuspenseBoundary.bind(null, current);
      registerSuspenseInstanceRetry(suspenseInstance, retry);
      return null;
    } else {
      // This is the first attempt.
      reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress, suspenseInstance, suspenseState.treeContext);
      var primaryChildren = nextProps.children;
      var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress, primaryChildren); // Mark the children as hydrating. This is a fast path to know whether this
      // tree is part of a hydrating tree. This is used to determine if a child
      // node has fully mounted yet, and for scheduling event replaying.
      // Conceptually this is similar to Placement in that a new subtree is
      // inserted into the React tree here. It just happens to not need DOM
      // mutations because it already exists.

      primaryChildFragment.flags |= Hydrating;
      return primaryChildFragment;
    }
  } else {
    // This is the second render pass. We already attempted to hydrated, but
    // something either suspended or errored.
    if (workInProgress.flags & ForceClientRender) {
      // Something errored during hydration. Try again without hydrating.
      workInProgress.flags &= ~ForceClientRender;

      var _capturedValue2 = createCapturedValue(new Error('There was an error while hydrating this Suspense boundary. ' + 'Switched to client rendering.'));

      return retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes, _capturedValue2);
    } else if (workInProgress.memoizedState !== null) {
      // Something suspended and we should still be in dehydrated mode.
      // Leave the existing child in place.
      workInProgress.child = current.child; // The dehydrated completion pass expects this flag to be there
      // but the normal suspense pass doesn't.

      workInProgress.flags |= DidCapture;
      return null;
    } else {
      // Suspended but we should no longer be in dehydrated mode.
      // Therefore we now have to render the fallback.
      var nextPrimaryChildren = nextProps.children;
      var nextFallbackChildren = nextProps.fallback;
      var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current, workInProgress, nextPrimaryChildren, nextFallbackChildren, renderLanes);
      var _primaryChildFragment4 = workInProgress.child;
      _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes);
      workInProgress.memoizedState = SUSPENDED_MARKER;
      return fallbackChildFragment;
    }
  }
}

function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
  fiber.lanes = mergeLanes(fiber.lanes, renderLanes);
  var alternate = fiber.alternate;

  if (alternate !== null) {
    alternate.lanes = mergeLanes(alternate.lanes, renderLanes);
  }

  scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
}

function propagateSuspenseContextChange(workInProgress, firstChild, renderLanes) {
  // Mark any Suspense boundaries with fallbacks as having work to do.
  // If they were previously forced into fallbacks, they may now be able
  // to unblock.
  var node = firstChild;

  while (node !== null) {
    if (node.tag === SuspenseComponent) {
      var state = node.memoizedState;

      if (state !== null) {
        scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
      }
    } else if (node.tag === SuspenseListComponent) {
      // If the tail is hidden there might not be an Suspense boundaries
      // to schedule work on. In this case we have to schedule it on the
      // list itself.
      // We don't have to traverse to the children of the list since
      // the list will propagate the change when it rerenders.
      scheduleSuspenseWorkOnFiber(node, renderLanes, workInProgress);
    } else if (node.child !== null) {
      node.child.return = node;
      node = node.child;
      continue;
    }

    if (node === workInProgress) {
      return;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === workInProgress) {
        return;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  }
}

function findLastContentRow(firstChild) {
  // This is going to find the last row among these children that is already
  // showing content on the screen, as opposed to being in fallback state or
  // new. If a row has multiple Suspense boundaries, any of them being in the
  // fallback state, counts as the whole row being in a fallback state.
  // Note that the "rows" will be workInProgress, but any nested children
  // will still be current since we haven't rendered them yet. The mounted
  // order may not be the same as the new order. We use the new order.
  var row = firstChild;
  var lastContentRow = null;

  while (row !== null) {
    var currentRow = row.alternate; // New rows can't be content rows.

    if (currentRow !== null && findFirstSuspended(currentRow) === null) {
      lastContentRow = row;
    }

    row = row.sibling;
  }

  return lastContentRow;
}

function validateRevealOrder(revealOrder) {
  {
    if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
      didWarnAboutRevealOrder[revealOrder] = true;

      if (typeof revealOrder === 'string') {
        switch (revealOrder.toLowerCase()) {
          case 'together':
          case 'forwards':
          case 'backwards':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          case 'forward':
          case 'backward':
            {
              error('"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());

              break;
            }

          default:
            error('"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);

            break;
        }
      } else {
        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
      }
    }
  }
}

function validateTailOptions(tailMode, revealOrder) {
  {
    if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
      if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
        didWarnAboutTailOptions[tailMode] = true;

        error('"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
      } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
        didWarnAboutTailOptions[tailMode] = true;

        error('<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
      }
    }
  }
}

function validateSuspenseListNestedChild(childSlot, index) {
  {
    var isAnArray = isArray(childSlot);
    var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === 'function';

    if (isAnArray || isIterable) {
      var type = isAnArray ? 'array' : 'iterable';

      error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);

      return false;
    }
  }

  return true;
}

function validateSuspenseListChildren(children, revealOrder) {
  {
    if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
      if (isArray(children)) {
        for (var i = 0; i < children.length; i++) {
          if (!validateSuspenseListNestedChild(children[i], i)) {
            return;
          }
        }
      } else {
        var iteratorFn = getIteratorFn(children);

        if (typeof iteratorFn === 'function') {
          var childrenIterator = iteratorFn.call(children);

          if (childrenIterator) {
            var step = childrenIterator.next();
            var _i = 0;

            for (; !step.done; step = childrenIterator.next()) {
              if (!validateSuspenseListNestedChild(step.value, _i)) {
                return;
              }

              _i++;
            }
          }
        } else {
          error('A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
        }
      }
    }
  }
}

function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  var renderState = workInProgress.memoizedState;

  if (renderState === null) {
    workInProgress.memoizedState = {
      isBackwards: isBackwards,
      rendering: null,
      renderingStartTime: 0,
      last: lastContentRow,
      tail: tail,
      tailMode: tailMode
    };
  } else {
    // We can reuse the existing object from previous renders.
    renderState.isBackwards = isBackwards;
    renderState.rendering = null;
    renderState.renderingStartTime = 0;
    renderState.last = lastContentRow;
    renderState.tail = tail;
    renderState.tailMode = tailMode;
  }
} // This can end up rendering this component multiple passes.
// The first pass splits the children fibers into two sets. A head and tail.
// We first render the head. If anything is in fallback state, we do another
// pass through beginWork to rerender all children (including the tail) with
// the force suspend context. If the first render didn't have anything in
// in fallback state. Then we render each row in the tail one-by-one.
// That happens in the completeWork phase without going back to beginWork.


function updateSuspenseListComponent(current, workInProgress, renderLanes) {
  var nextProps = workInProgress.pendingProps;
  var revealOrder = nextProps.revealOrder;
  var tailMode = nextProps.tail;
  var newChildren = nextProps.children;
  validateRevealOrder(revealOrder);
  validateTailOptions(tailMode, revealOrder);
  validateSuspenseListChildren(newChildren, revealOrder);
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  var suspenseContext = suspenseStackCursor.current;
  var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);

  if (shouldForceFallback) {
    suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
    workInProgress.flags |= DidCapture;
  } else {
    var didSuspendBefore = current !== null && (current.flags & DidCapture) !== NoFlags;

    if (didSuspendBefore) {
      // If we previously forced a fallback, we need to schedule work
      // on any nested boundaries to let them know to try to render
      // again. This is the same as context updating.
      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderLanes);
    }

    suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  }

  pushSuspenseContext(workInProgress, suspenseContext);

  if ((workInProgress.mode & ConcurrentMode) === NoMode) {
    // In legacy mode, SuspenseList doesn't work so we just
    // use make it a noop by treating it as the default revealOrder.
    workInProgress.memoizedState = null;
  } else {
    switch (revealOrder) {
      case 'forwards':
        {
          var lastContentRow = findLastContentRow(workInProgress.child);
          var tail;

          if (lastContentRow === null) {
            // The whole list is part of the tail.
            // TODO: We could fast path by just rendering the tail now.
            tail = workInProgress.child;
            workInProgress.child = null;
          } else {
            // Disconnect the tail rows after the content row.
            // We're going to render them separately later.
            tail = lastContentRow.sibling;
            lastContentRow.sibling = null;
          }

          initSuspenseListRenderState(workInProgress, false, // isBackwards
          tail, lastContentRow, tailMode);
          break;
        }

      case 'backwards':
        {
          // We're going to find the first row that has existing content.
          // At the same time we're going to reverse the list of everything
          // we pass in the meantime. That's going to be our tail in reverse
          // order.
          var _tail = null;
          var row = workInProgress.child;
          workInProgress.child = null;

          while (row !== null) {
            var currentRow = row.alternate; // New rows can't be content rows.

            if (currentRow !== null && findFirstSuspended(currentRow) === null) {
              // This is the beginning of the main content.
              workInProgress.child = row;
              break;
            }

            var nextRow = row.sibling;
            row.sibling = _tail;
            _tail = row;
            row = nextRow;
          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.


          initSuspenseListRenderState(workInProgress, true, // isBackwards
          _tail, null, // last
          tailMode);
          break;
        }

      case 'together':
        {
          initSuspenseListRenderState(workInProgress, false, // isBackwards
          null, // tail
          null, // last
          undefined);
          break;
        }

      default:
        {
          // The default reveal order is the same as not having
          // a boundary.
          workInProgress.memoizedState = null;
        }
    }
  }

  return workInProgress.child;
}

function updatePortalComponent(current, workInProgress, renderLanes) {
  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  var nextChildren = workInProgress.pendingProps;

  if (current === null) {
    // Portals are special because we don't append the children during mount
    // but at commit. Therefore we need to track insertions which the normal
    // flow doesn't do during mount. This doesn't happen at the root because
    // the root always starts with a "current" with a null child.
    // TODO: Consider unifying this with how the root works.
    workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
  } else {
    reconcileChildren(current, workInProgress, nextChildren, renderLanes);
  }

  return workInProgress.child;
}

var hasWarnedAboutUsingNoValuePropOnContextProvider = false;

function updateContextProvider(current, workInProgress, renderLanes) {
  var providerType = workInProgress.type;
  var context = providerType._context;
  var newProps = workInProgress.pendingProps;
  var oldProps = workInProgress.memoizedProps;
  var newValue = newProps.value;

  {
    if (!('value' in newProps)) {
      if (!hasWarnedAboutUsingNoValuePropOnContextProvider) {
        hasWarnedAboutUsingNoValuePropOnContextProvider = true;

        error('The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?');
      }
    }

    var providerPropTypes = workInProgress.type.propTypes;

    if (providerPropTypes) {
      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider');
    }
  }

  pushProvider(workInProgress, context, newValue);

  {
    if (oldProps !== null) {
      var oldValue = oldProps.value;

      if (objectIs(oldValue, newValue)) {
        // No change. Bailout early if children are the same.
        if (oldProps.children === newProps.children && !hasContextChanged()) {
          return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
        }
      } else {
        // The context value changed. Search for matching consumers and schedule
        // them to update.
        propagateContextChange(workInProgress, context, renderLanes);
      }
    }
  }

  var newChildren = newProps.children;
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  return workInProgress.child;
}

var hasWarnedAboutUsingContextAsConsumer = false;

function updateContextConsumer(current, workInProgress, renderLanes) {
  var context = workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In
  // DEV mode, we create a separate object for Context.Consumer that acts
  // like a proxy to Context. This proxy object adds unnecessary code in PROD
  // so we use the old behaviour (Context.Consumer references Context) to
  // reduce size and overhead. The separate object references context via
  // a property called "_context", which also gives us the ability to check
  // in DEV mode if this property exists or not and warn if it does not.

  {
    if (context._context === undefined) {
      // This may be because it's a Context (rather than a Consumer).
      // Or it may be because it's older React where they're the same thing.
      // We only want to warn if we're sure it's a new React.
      if (context !== context.Consumer) {
        if (!hasWarnedAboutUsingContextAsConsumer) {
          hasWarnedAboutUsingContextAsConsumer = true;

          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
        }
      }
    } else {
      context = context._context;
    }
  }

  var newProps = workInProgress.pendingProps;
  var render = newProps.children;

  {
    if (typeof render !== 'function') {
      error('A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');
    }
  }

  prepareToReadContext(workInProgress, renderLanes);
  var newValue = readContext(context);

  {
    markComponentRenderStarted(workInProgress);
  }

  var newChildren;

  {
    ReactCurrentOwner$1.current = workInProgress;
    setIsRendering(true);
    newChildren = render(newValue);
    setIsRendering(false);
  }

  {
    markComponentRenderStopped();
  } // React DevTools reads this flag.


  workInProgress.flags |= PerformedWork;
  reconcileChildren(current, workInProgress, newChildren, renderLanes);
  return workInProgress.child;
}

function markWorkInProgressReceivedUpdate() {
  didReceiveUpdate = true;
}

function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
  if ((workInProgress.mode & ConcurrentMode) === NoMode) {
    if (current !== null) {
      // A lazy component only mounts if it suspended inside a non-
      // concurrent tree, in an inconsistent state. We want to treat it like
      // a new mount, even though an empty version of it already committed.
      // Disconnect the alternate pointers.
      current.alternate = null;
      workInProgress.alternate = null; // Since this is conceptually a new fiber, schedule a Placement effect

      workInProgress.flags |= Placement;
    }
  }
}

function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
  if (current !== null) {
    // Reuse previous dependencies
    workInProgress.dependencies = current.dependencies;
  }

  {
    // Don't update "base" render times for bailouts.
    stopProfilerTimerIfRunning();
  }

  markSkippedUpdateLanes(workInProgress.lanes); // Check if the children have any pending work.

  if (!includesSomeLane(renderLanes, workInProgress.childLanes)) {
    // The children don't have any work either. We can skip them.
    // TODO: Once we add back resuming, we should check if the children are
    // a work-in-progress set. If so, we need to transfer their effects.
    {
      return null;
    }
  } // This fiber doesn't have work, but its subtree does. Clone the child
  // fibers and continue.


  cloneChildFibers(current, workInProgress);
  return workInProgress.child;
}

function remountFiber(current, oldWorkInProgress, newWorkInProgress) {
  {
    var returnFiber = oldWorkInProgress.return;

    if (returnFiber === null) {
      // eslint-disable-next-line react-internal/prod-error-codes
      throw new Error('Cannot swap the root fiber.');
    } // Disconnect from the old current.
    // It will get deleted.


    current.alternate = null;
    oldWorkInProgress.alternate = null; // Connect to the new tree.

    newWorkInProgress.index = oldWorkInProgress.index;
    newWorkInProgress.sibling = oldWorkInProgress.sibling;
    newWorkInProgress.return = oldWorkInProgress.return;
    newWorkInProgress.ref = oldWorkInProgress.ref; // Replace the child/sibling pointers above it.

    if (oldWorkInProgress === returnFiber.child) {
      returnFiber.child = newWorkInProgress;
    } else {
      var prevSibling = returnFiber.child;

      if (prevSibling === null) {
        // eslint-disable-next-line react-internal/prod-error-codes
        throw new Error('Expected parent to have a child.');
      }

      while (prevSibling.sibling !== oldWorkInProgress) {
        prevSibling = prevSibling.sibling;

        if (prevSibling === null) {
          // eslint-disable-next-line react-internal/prod-error-codes
          throw new Error('Expected to find the previous sibling.');
        }
      }

      prevSibling.sibling = newWorkInProgress;
    } // Delete the old fiber and place the new one.
    // Since the old fiber is disconnected, we have to schedule it manually.


    var deletions = returnFiber.deletions;

    if (deletions === null) {
      returnFiber.deletions = [current];
      returnFiber.flags |= ChildDeletion;
    } else {
      deletions.push(current);
    }

    newWorkInProgress.flags |= Placement; // Restart work from the new fiber.

    return newWorkInProgress;
  }
}

function checkScheduledUpdateOrContext(current, renderLanes) {
  // Before performing an early bailout, we must check if there are pending
  // updates or context.
  var updateLanes = current.lanes;

  if (includesSomeLane(updateLanes, renderLanes)) {
    return true;
  } // No pending update, but because context is propagated lazily, we need

  return false;
}

function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) {
  // This fiber does not have any pending work. Bailout without entering
  // the begin phase. There's still some bookkeeping we that needs to be done
  // in this optimized path, mostly pushing stuff onto the stack.
  switch (workInProgress.tag) {
    case HostRoot:
      pushHostRootContext(workInProgress);
      var root = workInProgress.stateNode;

      resetHydrationState();
      break;

    case HostComponent:
      pushHostContext(workInProgress);
      break;

    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          pushContextProvider(workInProgress);
        }

        break;
      }

    case HostPortal:
      pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
      break;

    case ContextProvider:
      {
        var newValue = workInProgress.memoizedProps.value;
        var context = workInProgress.type._context;
        pushProvider(workInProgress, context, newValue);
        break;
      }

    case Profiler:
      {
        // Profiler should only call onRender when one of its descendants actually rendered.
        var hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

        if (hasChildWork) {
          workInProgress.flags |= Update;
        }

        {
          // Reset effect durations for the next eventual effect phase.
          // These are reset during render to allow the DevTools commit hook a chance to read them,
          var stateNode = workInProgress.stateNode;
          stateNode.effectDuration = 0;
          stateNode.passiveEffectDuration = 0;
        }
      }

      break;

    case SuspenseComponent:
      {
        var state = workInProgress.memoizedState;

        if (state !== null) {
          if (state.dehydrated !== null) {
            pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // We know that this component will suspend again because if it has
            // been unsuspended it has committed as a resolved Suspense component.
            // If it needs to be retried, it should have work scheduled on it.

            workInProgress.flags |= DidCapture; // We should never render the children of a dehydrated boundary until we
            // upgrade it. We return null instead of bailoutOnAlreadyFinishedWork.

            return null;
          } // If this boundary is currently timed out, we need to decide
          // whether to retry the primary children, or to skip over it and
          // go straight to the fallback. Check the priority of the primary
          // child fragment.


          var primaryChildFragment = workInProgress.child;
          var primaryChildLanes = primaryChildFragment.childLanes;

          if (includesSomeLane(renderLanes, primaryChildLanes)) {
            // The primary children have pending work. Use the normal path
            // to attempt to render the primary children again.
            return updateSuspenseComponent(current, workInProgress, renderLanes);
          } else {
            // The primary child fragment does not have pending work marked
            // on it
            pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient
            // priority. Bailout.

            var child = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);

            if (child !== null) {
              // The fallback children have pending work. Skip over the
              // primary children and work on the fallback.
              return child.sibling;
            } else {
              // Note: We can return `null` here because we already checked
              // whether there were nested context consumers, via the call to
              // `bailoutOnAlreadyFinishedWork` above.
              return null;
            }
          }
        } else {
          pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
        }

        break;
      }

    case SuspenseListComponent:
      {
        var didSuspendBefore = (current.flags & DidCapture) !== NoFlags;

        var _hasChildWork = includesSomeLane(renderLanes, workInProgress.childLanes);

        if (didSuspendBefore) {
          if (_hasChildWork) {
            // If something was in fallback state last time, and we have all the
            // same children then we're still in progressive loading state.
            // Something might get unblocked by state updates or retries in the
            // tree which will affect the tail. So we need to use the normal
            // path to compute the correct tail.
            return updateSuspenseListComponent(current, workInProgress, renderLanes);
          } // If none of the children had any work, that means that none of
          // them got retried so they'll still be blocked in the same way
          // as before. We can fast bail out.


          workInProgress.flags |= DidCapture;
        } // If nothing suspended before and we're rendering the same children,
        // then the tail doesn't matter. Anything new that suspends will work
        // in the "together" mode, so we can continue from the state we had.


        var renderState = workInProgress.memoizedState;

        if (renderState !== null) {
          // Reset to the "together" mode in case we've started a different
          // update in the past but didn't complete it.
          renderState.rendering = null;
          renderState.tail = null;
          renderState.lastEffect = null;
        }

        pushSuspenseContext(workInProgress, suspenseStackCursor.current);

        if (_hasChildWork) {
          break;
        } else {
          // If none of the children had any work, that means that none of
          // them got retried so they'll still be blocked in the same way
          // as before. We can fast bail out.
          return null;
        }
      }

    case OffscreenComponent:
    case LegacyHiddenComponent:
      {
        // Need to check if the tree still needs to be deferred. This is
        // almost identical to the logic used in the normal update path,
        // so we'll just enter that. The only difference is we'll bail out
        // at the next level instead of this one, because the child props
        // have not changed. Which is fine.
        // TODO: Probably should refactor `beginWork` to split the bailout
        // path from the normal path. I'm tempted to do a labeled break here
        // but I won't :)
        workInProgress.lanes = NoLanes;
        return updateOffscreenComponent(current, workInProgress, renderLanes);
      }
  }

  return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
}

function beginWork(current, workInProgress, renderLanes) {
  {
    if (workInProgress._debugNeedsRemount && current !== null) {
      // This will restart the begin phase with a new fiber.
      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes));
    }
  }

  if (current !== null) {
    var oldProps = current.memoizedProps;
    var newProps = workInProgress.pendingProps;

    if (oldProps !== newProps || hasContextChanged() || ( // Force a re-render if the implementation changed due to hot reload:
     workInProgress.type !== current.type )) {
      // If props or context changed, mark the fiber as having performed work.
      // This may be unset if the props are determined to be equal later (memo).
      didReceiveUpdate = true;
    } else {
      // Neither props nor legacy context changes. Check if there's a pending
      // update or context change.
      var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes);

      if (!hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there
      // may not be work scheduled on `current`, so we check for this flag.
      (workInProgress.flags & DidCapture) === NoFlags) {
        // No pending updates or context. Bail out now.
        didReceiveUpdate = false;
        return attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes);
      }

      if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
        // This is a special case that only exists for legacy mode.
        // See https://github.com/facebook/react/pull/19216.
        didReceiveUpdate = true;
      } else {
        // An update was scheduled on this fiber, but there are no new props
        // nor legacy context. Set this to false. If an update queue or context
        // consumer produces a changed value, it will set this to true. Otherwise,
        // the component will assume the children have not changed and bail out.
        didReceiveUpdate = false;
      }
    }
  } else {
    didReceiveUpdate = false;

    if (getIsHydrating() && isForkedChild(workInProgress)) {
      // Check if this child belongs to a list of muliple children in
      // its parent.
      //
      // In a true multi-threaded implementation, we would render children on
      // parallel threads. This would represent the beginning of a new render
      // thread for this subtree.
      //
      // We only use this for id generation during hydration, which is why the
      // logic is located in this special branch.
      var slotIndex = workInProgress.index;
      var numberOfForks = getForksAtLevel();
      pushTreeId(workInProgress, numberOfForks, slotIndex);
    }
  } // Before entering the begin phase, clear pending update priority.
  // TODO: This assumes that we're about to evaluate the component and process
  // the update queue. However, there's an exception: SimpleMemoComponent
  // sometimes bails out later in the begin phase. This indicates that we should
  // move this assignment out of the common path and into each branch.


  workInProgress.lanes = NoLanes;

  switch (workInProgress.tag) {
    case IndeterminateComponent:
      {
        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderLanes);
      }

    case LazyComponent:
      {
        var elementType = workInProgress.elementType;
        return mountLazyComponent(current, workInProgress, elementType, renderLanes);
      }

    case FunctionComponent:
      {
        var Component = workInProgress.type;
        var unresolvedProps = workInProgress.pendingProps;
        var resolvedProps = workInProgress.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps);
        return updateFunctionComponent(current, workInProgress, Component, resolvedProps, renderLanes);
      }

    case ClassComponent:
      {
        var _Component = workInProgress.type;
        var _unresolvedProps = workInProgress.pendingProps;

        var _resolvedProps = workInProgress.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps);

        return updateClassComponent(current, workInProgress, _Component, _resolvedProps, renderLanes);
      }

    case HostRoot:
      return updateHostRoot(current, workInProgress, renderLanes);

    case HostComponent:
      return updateHostComponent(current, workInProgress, renderLanes);

    case HostText:
      return updateHostText(current, workInProgress);

    case SuspenseComponent:
      return updateSuspenseComponent(current, workInProgress, renderLanes);

    case HostPortal:
      return updatePortalComponent(current, workInProgress, renderLanes);

    case ForwardRef:
      {
        var type = workInProgress.type;
        var _unresolvedProps2 = workInProgress.pendingProps;

        var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);

        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderLanes);
      }

    case Fragment:
      return updateFragment(current, workInProgress, renderLanes);

    case Mode:
      return updateMode(current, workInProgress, renderLanes);

    case Profiler:
      return updateProfiler(current, workInProgress, renderLanes);

    case ContextProvider:
      return updateContextProvider(current, workInProgress, renderLanes);

    case ContextConsumer:
      return updateContextConsumer(current, workInProgress, renderLanes);

    case MemoComponent:
      {
        var _type2 = workInProgress.type;
        var _unresolvedProps3 = workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.

        var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);

        {
          if (workInProgress.type !== workInProgress.elementType) {
            var outerPropTypes = _type2.propTypes;

            if (outerPropTypes) {
              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
              'prop', getComponentNameFromType(_type2));
            }
          }
        }

        _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, renderLanes);
      }

    case SimpleMemoComponent:
      {
        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
      }

    case IncompleteClassComponent:
      {
        var _Component2 = workInProgress.type;
        var _unresolvedProps4 = workInProgress.pendingProps;

        var _resolvedProps4 = workInProgress.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4);

        return mountIncompleteClassComponent(current, workInProgress, _Component2, _resolvedProps4, renderLanes);
      }

    case SuspenseListComponent:
      {
        return updateSuspenseListComponent(current, workInProgress, renderLanes);
      }

    case ScopeComponent:
      {

        break;
      }

    case OffscreenComponent:
      {
        return updateOffscreenComponent(current, workInProgress, renderLanes);
      }
  }

  throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + 'React. Please file an issue.');
}

function markUpdate(workInProgress) {
  // Tag the fiber with an update effect. This turns a Placement into
  // a PlacementAndUpdate.
  workInProgress.flags |= Update;
}

function markRef$1(workInProgress) {
  workInProgress.flags |= Ref;

  {
    workInProgress.flags |= RefStatic;
  }
}

var appendAllChildren;
var updateHostContainer;
var updateHostComponent$1;
var updateHostText$1;

{
  // Mutation mode
  appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
    // We only have the top Fiber that was created but we need recurse down its
    // children to find all the terminal nodes.
    var node = workInProgress.child;

    while (node !== null) {
      if (node.tag === HostComponent || node.tag === HostText) {
        appendInitialChild(parent, node.stateNode);
      } else if (node.tag === HostPortal) ; else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === workInProgress) {
        return;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === workInProgress) {
          return;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  };

  updateHostContainer = function (current, workInProgress) {// Noop
  };

  updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
    // If we have an alternate, that means this is an update and we need to
    // schedule a side-effect to do the updates.
    var oldProps = current.memoizedProps;

    if (oldProps === newProps) {
      // In mutation mode, this is sufficient for a bailout because
      // we won't touch this node even if children changed.
      return;
    } // If we get updated because one of our children updated, we don't
    // have newProps so we'll have to reuse them.
    // TODO: Split the update API as separate for the props vs. children.
    // Even better would be if children weren't special cased at all tho.


    var instance = workInProgress.stateNode;
    var currentHostContext = getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host
    // component is hitting the resume path. Figure out why. Possibly
    // related to `hidden`.

    var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.

    workInProgress.updateQueue = updatePayload; // If the update payload indicates that there is a change or if there
    // is a new ref we mark this as an update. All the work is done in commitWork.

    if (updatePayload) {
      markUpdate(workInProgress);
    }
  };

  updateHostText$1 = function (current, workInProgress, oldText, newText) {
    // If the text differs, mark it as an update. All the work in done in commitWork.
    if (oldText !== newText) {
      markUpdate(workInProgress);
    }
  };
}

function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  if (getIsHydrating()) {
    // If we're hydrating, we should consume as many items as we can
    // so we don't leave any behind.
    return;
  }

  switch (renderState.tailMode) {
    case 'hidden':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var tailNode = renderState.tail;
        var lastTailNode = null;

        while (tailNode !== null) {
          if (tailNode.alternate !== null) {
            lastTailNode = tailNode;
          }

          tailNode = tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (lastTailNode === null) {
          // All remaining items in the tail are insertions.
          renderState.tail = null;
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          lastTailNode.sibling = null;
        }

        break;
      }

    case 'collapsed':
      {
        // Any insertions at the end of the tail list after this point
        // should be invisible. If there are already mounted boundaries
        // anything before them are not considered for collapsing.
        // Therefore we need to go through the whole tail to find if
        // there are any.
        var _tailNode = renderState.tail;
        var _lastTailNode = null;

        while (_tailNode !== null) {
          if (_tailNode.alternate !== null) {
            _lastTailNode = _tailNode;
          }

          _tailNode = _tailNode.sibling;
        } // Next we're simply going to delete all insertions after the
        // last rendered item.


        if (_lastTailNode === null) {
          // All remaining items in the tail are insertions.
          if (!hasRenderedATailFallback && renderState.tail !== null) {
            // We suspended during the head. We want to show at least one
            // row at the tail. So we'll keep on and cut off the rest.
            renderState.tail.sibling = null;
          } else {
            renderState.tail = null;
          }
        } else {
          // Detach the insertion after the last node that was already
          // inserted.
          _lastTailNode.sibling = null;
        }

        break;
      }
  }
}

function bubbleProperties(completedWork) {
  var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child;
  var newChildLanes = NoLanes;
  var subtreeFlags = NoFlags;

  if (!didBailout) {
    // Bubble up the earliest expiration time.
    if ( (completedWork.mode & ProfileMode) !== NoMode) {
      // In profiling mode, resetChildExpirationTime is also used to reset
      // profiler durations.
      var actualDuration = completedWork.actualDuration;
      var treeBaseDuration = completedWork.selfBaseDuration;
      var child = completedWork.child;

      while (child !== null) {
        newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes));
        subtreeFlags |= child.subtreeFlags;
        subtreeFlags |= child.flags; // When a fiber is cloned, its actualDuration is reset to 0. This value will
        // only be updated if work is done on the fiber (i.e. it doesn't bailout).
        // When work is done, it should bubble to the parent's actualDuration. If
        // the fiber has not been cloned though, (meaning no work was done), then
        // this value will reflect the amount of time spent working on a previous
        // render. In that case it should not bubble. We determine whether it was
        // cloned by comparing the child pointer.

        actualDuration += child.actualDuration;
        treeBaseDuration += child.treeBaseDuration;
        child = child.sibling;
      }

      completedWork.actualDuration = actualDuration;
      completedWork.treeBaseDuration = treeBaseDuration;
    } else {
      var _child = completedWork.child;

      while (_child !== null) {
        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes));
        subtreeFlags |= _child.subtreeFlags;
        subtreeFlags |= _child.flags; // Update the return pointer so the tree is consistent. This is a code
        // smell because it assumes the commit phase is never concurrent with
        // the render phase. Will address during refactor to alternate model.

        _child.return = completedWork;
        _child = _child.sibling;
      }
    }

    completedWork.subtreeFlags |= subtreeFlags;
  } else {
    // Bubble up the earliest expiration time.
    if ( (completedWork.mode & ProfileMode) !== NoMode) {
      // In profiling mode, resetChildExpirationTime is also used to reset
      // profiler durations.
      var _treeBaseDuration = completedWork.selfBaseDuration;
      var _child2 = completedWork.child;

      while (_child2 !== null) {
        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to,
        // so we should bubble those up even during a bailout. All the other
        // flags have a lifetime only of a single render + commit, so we should
        // ignore them.

        subtreeFlags |= _child2.subtreeFlags & StaticMask;
        subtreeFlags |= _child2.flags & StaticMask;
        _treeBaseDuration += _child2.treeBaseDuration;
        _child2 = _child2.sibling;
      }

      completedWork.treeBaseDuration = _treeBaseDuration;
    } else {
      var _child3 = completedWork.child;

      while (_child3 !== null) {
        newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); // "Static" flags share the lifetime of the fiber/hook they belong to,
        // so we should bubble those up even during a bailout. All the other
        // flags have a lifetime only of a single render + commit, so we should
        // ignore them.

        subtreeFlags |= _child3.subtreeFlags & StaticMask;
        subtreeFlags |= _child3.flags & StaticMask; // Update the return pointer so the tree is consistent. This is a code
        // smell because it assumes the commit phase is never concurrent with
        // the render phase. Will address during refactor to alternate model.

        _child3.return = completedWork;
        _child3 = _child3.sibling;
      }
    }

    completedWork.subtreeFlags |= subtreeFlags;
  }

  completedWork.childLanes = newChildLanes;
  return didBailout;
}

function completeDehydratedSuspenseBoundary(current, workInProgress, nextState) {
  if (hasUnhydratedTailNodes() && (workInProgress.mode & ConcurrentMode) !== NoMode && (workInProgress.flags & DidCapture) === NoFlags) {
    warnIfUnhydratedTailNodes(workInProgress);
    resetHydrationState();
    workInProgress.flags |= ForceClientRender | Incomplete | ShouldCapture;
    return false;
  }

  var wasHydrated = popHydrationState(workInProgress);

  if (nextState !== null && nextState.dehydrated !== null) {
    // We might be inside a hydration state the first time we're picking up this
    // Suspense boundary, and also after we've reentered it for further hydration.
    if (current === null) {
      if (!wasHydrated) {
        throw new Error('A dehydrated suspense component was completed without a hydrated node. ' + 'This is probably a bug in React.');
      }

      prepareToHydrateHostSuspenseInstance(workInProgress);
      bubbleProperties(workInProgress);

      {
        if ((workInProgress.mode & ProfileMode) !== NoMode) {
          var isTimedOutSuspense = nextState !== null;

          if (isTimedOutSuspense) {
            // Don't count time spent in a timed out Suspense subtree as part of the base duration.
            var primaryChildFragment = workInProgress.child;

            if (primaryChildFragment !== null) {
              // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
              workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;
            }
          }
        }
      }

      return false;
    } else {
      // We might have reentered this boundary to hydrate it. If so, we need to reset the hydration
      // state since we're now exiting out of it. popHydrationState doesn't do that for us.
      resetHydrationState();

      if ((workInProgress.flags & DidCapture) === NoFlags) {
        // This boundary did not suspend so it's now hydrated and unsuspended.
        workInProgress.memoizedState = null;
      } // If nothing suspended, we need to schedule an effect to mark this boundary
      // as having hydrated so events know that they're free to be invoked.
      // It's also a signal to replay events and the suspense callback.
      // If something suspended, schedule an effect to attach retry listeners.
      // So we might as well always mark this.


      workInProgress.flags |= Update;
      bubbleProperties(workInProgress);

      {
        if ((workInProgress.mode & ProfileMode) !== NoMode) {
          var _isTimedOutSuspense = nextState !== null;

          if (_isTimedOutSuspense) {
            // Don't count time spent in a timed out Suspense subtree as part of the base duration.
            var _primaryChildFragment = workInProgress.child;

            if (_primaryChildFragment !== null) {
              // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
              workInProgress.treeBaseDuration -= _primaryChildFragment.treeBaseDuration;
            }
          }
        }
      }

      return false;
    }
  } else {
    // Successfully completed this tree. If this was a forced client render,
    // there may have been recoverable errors during first hydration
    // attempt. If so, add them to a queue so we can log them in the
    // commit phase.
    upgradeHydrationErrorsToRecoverable(); // Fall through to normal Suspense path

    return true;
  }
}

function completeWork(current, workInProgress, renderLanes) {
  var newProps = workInProgress.pendingProps; // Note: This intentionally doesn't check if we're hydrating because comparing
  // to the current tree provider fiber is just as fast and less error-prone.
  // Ideally we would have a special version of the work loop only
  // for hydration.

  popTreeContext(workInProgress);

  switch (workInProgress.tag) {
    case IndeterminateComponent:
    case LazyComponent:
    case SimpleMemoComponent:
    case FunctionComponent:
    case ForwardRef:
    case Fragment:
    case Mode:
    case Profiler:
    case ContextConsumer:
    case MemoComponent:
      bubbleProperties(workInProgress);
      return null;

    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }

        bubbleProperties(workInProgress);
        return null;
      }

    case HostRoot:
      {
        var fiberRoot = workInProgress.stateNode;
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        resetWorkInProgressVersions();

        if (fiberRoot.pendingContext) {
          fiberRoot.context = fiberRoot.pendingContext;
          fiberRoot.pendingContext = null;
        }

        if (current === null || current.child === null) {
          // If we hydrated, pop so that we can delete any remaining children
          // that weren't hydrated.
          var wasHydrated = popHydrationState(workInProgress);

          if (wasHydrated) {
            // If we hydrated, then we'll need to schedule an update for
            // the commit side-effects on the root.
            markUpdate(workInProgress);
          } else {
            if (current !== null) {
              var prevState = current.memoizedState;

              if ( // Check if this is a client root
              !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error)
              (workInProgress.flags & ForceClientRender) !== NoFlags) {
                // Schedule an effect to clear this container at the start of the
                // next commit. This handles the case of React rendering into a
                // container with previous children. It's also safe to do for
                // updates too, because current.child would only be null if the
                // previous render was null (so the container would already
                // be empty).
                workInProgress.flags |= Snapshot; // If this was a forced client render, there may have been
                // recoverable errors during first hydration attempt. If so, add
                // them to a queue so we can log them in the commit phase.

                upgradeHydrationErrorsToRecoverable();
              }
            }
          }
        }

        updateHostContainer(current, workInProgress);
        bubbleProperties(workInProgress);

        return null;
      }

    case HostComponent:
      {
        popHostContext(workInProgress);
        var rootContainerInstance = getRootHostContainer();
        var type = workInProgress.type;

        if (current !== null && workInProgress.stateNode != null) {
          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);

          if (current.ref !== workInProgress.ref) {
            markRef$1(workInProgress);
          }
        } else {
          if (!newProps) {
            if (workInProgress.stateNode === null) {
              throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');
            } // This can happen when we abort work.


            bubbleProperties(workInProgress);
            return null;
          }

          var currentHostContext = getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context
          // "stack" as the parent. Then append children as we go in beginWork
          // or completeWork depending on whether we want to add them top->down or
          // bottom->up. Top->down is faster in IE11.

          var _wasHydrated = popHydrationState(workInProgress);

          if (_wasHydrated) {
            // TODO: Move this and createInstance step into the beginPhase
            // to consolidate.
            if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
              // If changes to the hydrated node need to be applied at the
              // commit-phase we mark this as such.
              markUpdate(workInProgress);
            }
          } else {
            var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
            appendAllChildren(instance, workInProgress, false, false);
            workInProgress.stateNode = instance; // Certain renderers require commit-time effects for initial mount.
            // (eg DOM renderer supports auto-focus for certain elements).
            // Make sure such renderers get scheduled for later work.

            if (finalizeInitialChildren(instance, type, newProps, rootContainerInstance)) {
              markUpdate(workInProgress);
            }
          }

          if (workInProgress.ref !== null) {
            // If there is a ref on a host node we need to schedule a callback
            markRef$1(workInProgress);
          }
        }

        bubbleProperties(workInProgress);
        return null;
      }

    case HostText:
      {
        var newText = newProps;

        if (current && workInProgress.stateNode != null) {
          var oldText = current.memoizedProps; // If we have an alternate, that means this is an update and we need
          // to schedule a side-effect to do the updates.

          updateHostText$1(current, workInProgress, oldText, newText);
        } else {
          if (typeof newText !== 'string') {
            if (workInProgress.stateNode === null) {
              throw new Error('We must have new props for new mounts. This error is likely ' + 'caused by a bug in React. Please file an issue.');
            } // This can happen when we abort work.

          }

          var _rootContainerInstance = getRootHostContainer();

          var _currentHostContext = getHostContext();

          var _wasHydrated2 = popHydrationState(workInProgress);

          if (_wasHydrated2) {
            if (prepareToHydrateHostTextInstance(workInProgress)) {
              markUpdate(workInProgress);
            }
          } else {
            workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
          }
        }

        bubbleProperties(workInProgress);
        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);
        var nextState = workInProgress.memoizedState; // Special path for dehydrated boundaries. We may eventually move this
        // to its own fiber type so that we can add other kinds of hydration
        // boundaries that aren't associated with a Suspense tree. In anticipation
        // of such a refactor, all the hydration logic is contained in
        // this branch.

        if (current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
          var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current, workInProgress, nextState);

          if (!fallthroughToNormalSuspensePath) {
            if (workInProgress.flags & ShouldCapture) {
              // Special case. There were remaining unhydrated nodes. We treat
              // this as a mismatch. Revert to client rendering.
              return workInProgress;
            } else {
              // Did not finish hydrating, either because this is the initial
              // render or because something suspended.
              return null;
            }
          } // Continue with the normal Suspense path.

        }

        if ((workInProgress.flags & DidCapture) !== NoFlags) {
          // Something suspended. Re-render with the fallback children.
          workInProgress.lanes = renderLanes; // Do not reset the effect list.

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          } // Don't bubble properties in this case.


          return workInProgress;
        }

        var nextDidTimeout = nextState !== null;
        var prevDidTimeout = current !== null && current.memoizedState !== null;
        // a passive effect, which is when we process the transitions


        if (nextDidTimeout !== prevDidTimeout) {
          // an effect to toggle the subtree's visibility. When we switch from
          // fallback -> primary, the inner Offscreen fiber schedules this effect
          // as part of its normal complete phase. But when we switch from
          // primary -> fallback, the inner Offscreen fiber does not have a complete
          // phase. So we need to schedule its effect here.
          //
          // We also use this flag to connect/disconnect the effects, but the same
          // logic applies: when re-connecting, the Offscreen fiber's complete
          // phase will handle scheduling the effect. It's only when the fallback
          // is active that we have to do anything special.


          if (nextDidTimeout) {
            var _offscreenFiber2 = workInProgress.child;
            _offscreenFiber2.flags |= Visibility; // TODO: This will still suspend a synchronous tree if anything
            // in the concurrent tree already suspended during this render.
            // This is a known bug.

            if ((workInProgress.mode & ConcurrentMode) !== NoMode) {
              // TODO: Move this back to throwException because this is too late
              // if this is a large tree which is common for initial loads. We
              // don't know if we should restart a render or not until we get
              // this marker, and this is too late.
              // If this render already had a ping or lower pri updates,
              // and this is the first time we know we're going to suspend we
              // should be able to immediately restart from within throwException.
              var hasInvisibleChildContext = current === null && (workInProgress.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback);

              if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
                // If this was in an invisible tree or a new render, then showing
                // this boundary is ok.
                renderDidSuspend();
              } else {
                // Otherwise, we're going to have to hide content so we should
                // suspend for longer if possible.
                renderDidSuspendDelayIfPossible();
              }
            }
          }
        }

        var wakeables = workInProgress.updateQueue;

        if (wakeables !== null) {
          // Schedule an effect to attach a retry listener to the promise.
          // TODO: Move to passive phase
          workInProgress.flags |= Update;
        }

        bubbleProperties(workInProgress);

        {
          if ((workInProgress.mode & ProfileMode) !== NoMode) {
            if (nextDidTimeout) {
              // Don't count time spent in a timed out Suspense subtree as part of the base duration.
              var primaryChildFragment = workInProgress.child;

              if (primaryChildFragment !== null) {
                // $FlowFixMe Flow doesn't support type casting in combination with the -= operator
                workInProgress.treeBaseDuration -= primaryChildFragment.treeBaseDuration;
              }
            }
          }
        }

        return null;
      }

    case HostPortal:
      popHostContainer(workInProgress);
      updateHostContainer(current, workInProgress);

      if (current === null) {
        preparePortalMount(workInProgress.stateNode.containerInfo);
      }

      bubbleProperties(workInProgress);
      return null;

    case ContextProvider:
      // Pop provider fiber
      var context = workInProgress.type._context;
      popProvider(context, workInProgress);
      bubbleProperties(workInProgress);
      return null;

    case IncompleteClassComponent:
      {
        // Same as class component case. I put it down here so that the tags are
        // sequential to ensure this switch is compiled to a jump table.
        var _Component = workInProgress.type;

        if (isContextProvider(_Component)) {
          popContext(workInProgress);
        }

        bubbleProperties(workInProgress);
        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress);
        var renderState = workInProgress.memoizedState;

        if (renderState === null) {
          // We're running in the default, "independent" mode.
          // We don't do anything in this mode.
          bubbleProperties(workInProgress);
          return null;
        }

        var didSuspendAlready = (workInProgress.flags & DidCapture) !== NoFlags;
        var renderedTail = renderState.rendering;

        if (renderedTail === null) {
          // We just rendered the head.
          if (!didSuspendAlready) {
            // This is the first pass. We need to figure out if anything is still
            // suspended in the rendered set.
            // If new content unsuspended, but there's still some content that
            // didn't. Then we need to do a second pass that forces everything
            // to keep showing their fallbacks.
            // We might be suspended if something in this render pass suspended, or
            // something in the previous committed pass suspended. Otherwise,
            // there's no chance so we can skip the expensive call to
            // findFirstSuspended.
            var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.flags & DidCapture) === NoFlags);

            if (!cannotBeSuspended) {
              var row = workInProgress.child;

              while (row !== null) {
                var suspended = findFirstSuspended(row);

                if (suspended !== null) {
                  didSuspendAlready = true;
                  workInProgress.flags |= DidCapture;
                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as
                  // part of the second pass. In that case nothing will subscribe to
                  // its thenables. Instead, we'll transfer its thenables to the
                  // SuspenseList so that it can retry if they resolve.
                  // There might be multiple of these in the list but since we're
                  // going to wait for all of them anyway, it doesn't really matter
                  // which ones gets to ping. In theory we could get clever and keep
                  // track of how many dependencies remain but it gets tricky because
                  // in the meantime, we can add/remove/change items and dependencies.
                  // We might bail out of the loop before finding any but that
                  // doesn't matter since that means that the other boundaries that
                  // we did find already has their listeners attached.

                  var newThenables = suspended.updateQueue;

                  if (newThenables !== null) {
                    workInProgress.updateQueue = newThenables;
                    workInProgress.flags |= Update;
                  } // Rerender the whole list, but this time, we'll force fallbacks
                  // to stay in place.
                  // Reset the effect flags before doing the second pass since that's now invalid.
                  // Reset the child fibers to their original state.


                  workInProgress.subtreeFlags = NoFlags;
                  resetChildFibers(workInProgress, renderLanes); // Set up the Suspense Context to force suspense and immediately
                  // rerender the children.

                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); // Don't bubble properties in this case.

                  return workInProgress.child;
                }

                row = row.sibling;
              }
            }

            if (renderState.tail !== null && now() > getRenderTargetTime()) {
              // We have already passed our CPU deadline but we still have rows
              // left in the tail. We'll just give up further attempts to render
              // the main content and only render fallbacks.
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true;
              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
              // to get it started back up to attempt the next item. While in terms
              // of priority this work has the same priority as this current render,
              // it's not part of the same transition once the transition has
              // committed. If it's sync, we still want to yield so that it can be
              // painted. Conceptually, this is really the same as pinging.
              // We can use any RetryLane even if it's the one currently rendering
              // since we're leaving it behind on this node.

              workInProgress.lanes = SomeRetryLane;
            }
          } else {
            cutOffTailIfNeeded(renderState, false);
          } // Next we're going to render the tail.

        } else {
          // Append the rendered row to the child list.
          if (!didSuspendAlready) {
            var _suspended = findFirstSuspended(renderedTail);

            if (_suspended !== null) {
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true; // Ensure we transfer the update queue to the parent so that it doesn't
              // get lost if this row ends up dropped during a second pass.

              var _newThenables = _suspended.updateQueue;

              if (_newThenables !== null) {
                workInProgress.updateQueue = _newThenables;
                workInProgress.flags |= Update;
              }

              cutOffTailIfNeeded(renderState, true); // This might have been modified.

              if (renderState.tail === null && renderState.tailMode === 'hidden' && !renderedTail.alternate && !getIsHydrating() // We don't cut it if we're hydrating.
              ) {
                  // We're done.
                  bubbleProperties(workInProgress);
                  return null;
                }
            } else if ( // The time it took to render last row is greater than the remaining
            // time we have to render. So rendering one more row would likely
            // exceed it.
            now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes !== OffscreenLane) {
              // We have now passed our CPU deadline and we'll just give up further
              // attempts to render the main content and only render fallbacks.
              // The assumption is that this is usually faster.
              workInProgress.flags |= DidCapture;
              didSuspendAlready = true;
              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this
              // to get it started back up to attempt the next item. While in terms
              // of priority this work has the same priority as this current render,
              // it's not part of the same transition once the transition has
              // committed. If it's sync, we still want to yield so that it can be
              // painted. Conceptually, this is really the same as pinging.
              // We can use any RetryLane even if it's the one currently rendering
              // since we're leaving it behind on this node.

              workInProgress.lanes = SomeRetryLane;
            }
          }

          if (renderState.isBackwards) {
            // The effect list of the backwards tail will have been added
            // to the end. This breaks the guarantee that life-cycles fire in
            // sibling order but that isn't a strong guarantee promised by React.
            // Especially since these might also just pop in during future commits.
            // Append to the beginning of the list.
            renderedTail.sibling = workInProgress.child;
            workInProgress.child = renderedTail;
          } else {
            var previousSibling = renderState.last;

            if (previousSibling !== null) {
              previousSibling.sibling = renderedTail;
            } else {
              workInProgress.child = renderedTail;
            }

            renderState.last = renderedTail;
          }
        }

        if (renderState.tail !== null) {
          // We still have tail rows to render.
          // Pop a row.
          var next = renderState.tail;
          renderState.rendering = next;
          renderState.tail = next.sibling;
          renderState.renderingStartTime = now();
          next.sibling = null; // Restore the context.
          // TODO: We can probably just avoid popping it instead and only
          // setting it the first time we go from not suspended to suspended.

          var suspenseContext = suspenseStackCursor.current;

          if (didSuspendAlready) {
            suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
          } else {
            suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
          }

          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.
          // Don't bubble properties in this case.

          return next;
        }

        bubbleProperties(workInProgress);
        return null;
      }

    case ScopeComponent:
      {

        break;
      }

    case OffscreenComponent:
    case LegacyHiddenComponent:
      {
        popRenderLanes(workInProgress);
        var _nextState = workInProgress.memoizedState;
        var nextIsHidden = _nextState !== null;

        if (current !== null) {
          var _prevState = current.memoizedState;
          var prevIsHidden = _prevState !== null;

          if (prevIsHidden !== nextIsHidden && ( // LegacyHidden doesn't do any hiding — it only pre-renders.
          !enableLegacyHidden )) {
            workInProgress.flags |= Visibility;
          }
        }

        if (!nextIsHidden || (workInProgress.mode & ConcurrentMode) === NoMode) {
          bubbleProperties(workInProgress);
        } else {
          // Don't bubble properties for hidden children unless we're rendering
          // at offscreen priority.
          if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) {
            bubbleProperties(workInProgress);

            {
              // Check if there was an insertion or update in the hidden subtree.
              // If so, we need to hide those nodes in the commit phase, so
              // schedule a visibility effect.
              if ( workInProgress.subtreeFlags & (Placement | Update)) {
                workInProgress.flags |= Visibility;
              }
            }
          }
        }
        return null;
      }

    case CacheComponent:
      {

        return null;
      }

    case TracingMarkerComponent:
      {

        return null;
      }
  }

  throw new Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in " + 'React. Please file an issue.');
}

function unwindWork(current, workInProgress, renderLanes) {
  // Note: This intentionally doesn't check if we're hydrating because comparing
  // to the current tree provider fiber is just as fast and less error-prone.
  // Ideally we would have a special version of the work loop only
  // for hydration.
  popTreeContext(workInProgress);

  switch (workInProgress.tag) {
    case ClassComponent:
      {
        var Component = workInProgress.type;

        if (isContextProvider(Component)) {
          popContext(workInProgress);
        }

        var flags = workInProgress.flags;

        if (flags & ShouldCapture) {
          workInProgress.flags = flags & ~ShouldCapture | DidCapture;

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          }

          return workInProgress;
        }

        return null;
      }

    case HostRoot:
      {
        var root = workInProgress.stateNode;
        popHostContainer(workInProgress);
        popTopLevelContextObject(workInProgress);
        resetWorkInProgressVersions();
        var _flags = workInProgress.flags;

        if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) {
          // There was an error during render that wasn't captured by a suspense
          // boundary. Do a second pass on the root to unmount the children.
          workInProgress.flags = _flags & ~ShouldCapture | DidCapture;
          return workInProgress;
        } // We unwound to the root without completing it. Exit.


        return null;
      }

    case HostComponent:
      {
        // TODO: popHydrationState
        popHostContext(workInProgress);
        return null;
      }

    case SuspenseComponent:
      {
        popSuspenseContext(workInProgress);
        var suspenseState = workInProgress.memoizedState;

        if (suspenseState !== null && suspenseState.dehydrated !== null) {
          if (workInProgress.alternate === null) {
            throw new Error('Threw in newly mounted dehydrated component. This is likely a bug in ' + 'React. Please file an issue.');
          }

          resetHydrationState();
        }

        var _flags2 = workInProgress.flags;

        if (_flags2 & ShouldCapture) {
          workInProgress.flags = _flags2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.

          if ( (workInProgress.mode & ProfileMode) !== NoMode) {
            transferActualDuration(workInProgress);
          }

          return workInProgress;
        }

        return null;
      }

    case SuspenseListComponent:
      {
        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been
        // caught by a nested boundary. If not, it should bubble through.

        return null;
      }

    case HostPortal:
      popHostContainer(workInProgress);
      return null;

    case ContextProvider:
      var context = workInProgress.type._context;
      popProvider(context, workInProgress);
      return null;

    case OffscreenComponent:
    case LegacyHiddenComponent:
      popRenderLanes(workInProgress);
      return null;

    case CacheComponent:

      return null;

    default:
      return null;
  }
}

function unwindInterruptedWork(current, interruptedWork, renderLanes) {
  // Note: This intentionally doesn't check if we're hydrating because comparing
  // to the current tree provider fiber is just as fast and less error-prone.
  // Ideally we would have a special version of the work loop only
  // for hydration.
  popTreeContext(interruptedWork);

  switch (interruptedWork.tag) {
    case ClassComponent:
      {
        var childContextTypes = interruptedWork.type.childContextTypes;

        if (childContextTypes !== null && childContextTypes !== undefined) {
          popContext(interruptedWork);
        }

        break;
      }

    case HostRoot:
      {
        var root = interruptedWork.stateNode;
        popHostContainer(interruptedWork);
        popTopLevelContextObject(interruptedWork);
        resetWorkInProgressVersions();
        break;
      }

    case HostComponent:
      {
        popHostContext(interruptedWork);
        break;
      }

    case HostPortal:
      popHostContainer(interruptedWork);
      break;

    case SuspenseComponent:
      popSuspenseContext(interruptedWork);
      break;

    case SuspenseListComponent:
      popSuspenseContext(interruptedWork);
      break;

    case ContextProvider:
      var context = interruptedWork.type._context;
      popProvider(context, interruptedWork);
      break;

    case OffscreenComponent:
    case LegacyHiddenComponent:
      popRenderLanes(interruptedWork);
      break;
  }
}

var didWarnAboutUndefinedSnapshotBeforeUpdate = null;

{
  didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
} // Used during the commit phase to track the state of the Offscreen component stack.
// Allows us to avoid traversing the return path to find the nearest Offscreen ancestor.
// Only used when enableSuspenseLayoutEffectSemantics is enabled.


var offscreenSubtreeIsHidden = false;
var offscreenSubtreeWasHidden = false;
var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
var nextEffect = null; // Used for Profiling builds to track updaters.

var inProgressLanes = null;
var inProgressRoot = null;
function reportUncaughtErrorInDEV(error) {
  // Wrapping each small part of the commit phase into a guarded
  // callback is a bit too slow (https://github.com/facebook/react/pull/21666).
  // But we rely on it to surface errors to DEV tools like overlays
  // (https://github.com/facebook/react/issues/21712).
  // As a compromise, rethrow only caught errors in a guard.
  {
    invokeGuardedCallback(null, function () {
      throw error;
    });
    clearCaughtError();
  }
}

var callComponentWillUnmountWithTimer = function (current, instance) {
  instance.props = current.memoizedProps;
  instance.state = current.memoizedState;

  if ( current.mode & ProfileMode) {
    try {
      startLayoutEffectTimer();
      instance.componentWillUnmount();
    } finally {
      recordLayoutEffectDuration(current);
    }
  } else {
    instance.componentWillUnmount();
  }
}; // Capture errors so they don't interrupt mounting.


function safelyCallCommitHookLayoutEffectListMount(current, nearestMountedAncestor) {
  try {
    commitHookEffectListMount(Layout, current);
  } catch (error) {
    captureCommitPhaseError(current, nearestMountedAncestor, error);
  }
} // Capture errors so they don't interrupt unmounting.


function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) {
  try {
    callComponentWillUnmountWithTimer(current, instance);
  } catch (error) {
    captureCommitPhaseError(current, nearestMountedAncestor, error);
  }
} // Capture errors so they don't interrupt mounting.


function safelyCallComponentDidMount(current, nearestMountedAncestor, instance) {
  try {
    instance.componentDidMount();
  } catch (error) {
    captureCommitPhaseError(current, nearestMountedAncestor, error);
  }
} // Capture errors so they don't interrupt mounting.


function safelyAttachRef(current, nearestMountedAncestor) {
  try {
    commitAttachRef(current);
  } catch (error) {
    captureCommitPhaseError(current, nearestMountedAncestor, error);
  }
}

function safelyDetachRef(current, nearestMountedAncestor) {
  var ref = current.ref;

  if (ref !== null) {
    if (typeof ref === 'function') {
      var retVal;

      try {
        if (enableProfilerTimer && enableProfilerCommitHooks && current.mode & ProfileMode) {
          try {
            startLayoutEffectTimer();
            retVal = ref(null);
          } finally {
            recordLayoutEffectDuration(current);
          }
        } else {
          retVal = ref(null);
        }
      } catch (error) {
        captureCommitPhaseError(current, nearestMountedAncestor, error);
      }

      {
        if (typeof retVal === 'function') {
          error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(current));
        }
      }
    } else {
      ref.current = null;
    }
  }
}

function safelyCallDestroy(current, nearestMountedAncestor, destroy) {
  try {
    destroy();
  } catch (error) {
    captureCommitPhaseError(current, nearestMountedAncestor, error);
  }
}

var focusedInstanceHandle = null;
var shouldFireAfterActiveInstanceBlur = false;
function commitBeforeMutationEffects(root, firstChild) {
  focusedInstanceHandle = prepareForCommit(root.containerInfo);
  nextEffect = firstChild;
  commitBeforeMutationEffects_begin(); // We no longer need to track the active instance fiber

  var shouldFire = shouldFireAfterActiveInstanceBlur;
  shouldFireAfterActiveInstanceBlur = false;
  focusedInstanceHandle = null;
  return shouldFire;
}

function commitBeforeMutationEffects_begin() {
  while (nextEffect !== null) {
    var fiber = nextEffect; // This phase is only used for beforeActiveInstanceBlur.

    var child = fiber.child;

    if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) {
      child.return = fiber;
      nextEffect = child;
    } else {
      commitBeforeMutationEffects_complete();
    }
  }
}

function commitBeforeMutationEffects_complete() {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    setCurrentFiber(fiber);

    try {
      commitBeforeMutationEffectsOnFiber(fiber);
    } catch (error) {
      captureCommitPhaseError(fiber, fiber.return, error);
    }

    resetCurrentFiber();
    var sibling = fiber.sibling;

    if (sibling !== null) {
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function commitBeforeMutationEffectsOnFiber(finishedWork) {
  var current = finishedWork.alternate;
  var flags = finishedWork.flags;

  if ((flags & Snapshot) !== NoFlags) {
    setCurrentFiber(finishedWork);

    switch (finishedWork.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          break;
        }

      case ClassComponent:
        {
          if (current !== null) {
            var prevProps = current.memoizedProps;
            var prevState = current.memoizedState;
            var instance = finishedWork.stateNode; // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.

            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                }
              }
            }

            var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);

            {
              var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;

              if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
                didWarnSet.add(finishedWork.type);

                error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentNameFromFiber(finishedWork));
              }
            }

            instance.__reactInternalSnapshotBeforeUpdate = snapshot;
          }

          break;
        }

      case HostRoot:
        {
          {
            var root = finishedWork.stateNode;
            clearContainer(root.containerInfo);
          }

          break;
        }

      case HostComponent:
      case HostText:
      case HostPortal:
      case IncompleteClassComponent:
        // Nothing to do for these component types
        break;

      default:
        {
          throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');
        }
    }

    resetCurrentFiber();
  }
}

function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & flags) === flags) {
        // Unmount
        var destroy = effect.destroy;
        effect.destroy = undefined;

        if (destroy !== undefined) {
          {
            if ((flags & Passive$1) !== NoFlags$1) {
              markComponentPassiveEffectUnmountStarted(finishedWork);
            } else if ((flags & Layout) !== NoFlags$1) {
              markComponentLayoutEffectUnmountStarted(finishedWork);
            }
          }

          {
            if ((flags & Insertion) !== NoFlags$1) {
              setIsRunningInsertionEffect(true);
            }
          }

          safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy);

          {
            if ((flags & Insertion) !== NoFlags$1) {
              setIsRunningInsertionEffect(false);
            }
          }

          {
            if ((flags & Passive$1) !== NoFlags$1) {
              markComponentPassiveEffectUnmountStopped();
            } else if ((flags & Layout) !== NoFlags$1) {
              markComponentLayoutEffectUnmountStopped();
            }
          }
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitHookEffectListMount(flags, finishedWork) {
  var updateQueue = finishedWork.updateQueue;
  var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;

  if (lastEffect !== null) {
    var firstEffect = lastEffect.next;
    var effect = firstEffect;

    do {
      if ((effect.tag & flags) === flags) {
        {
          if ((flags & Passive$1) !== NoFlags$1) {
            markComponentPassiveEffectMountStarted(finishedWork);
          } else if ((flags & Layout) !== NoFlags$1) {
            markComponentLayoutEffectMountStarted(finishedWork);
          }
        } // Mount


        var create = effect.create;

        {
          if ((flags & Insertion) !== NoFlags$1) {
            setIsRunningInsertionEffect(true);
          }
        }

        effect.destroy = create();

        {
          if ((flags & Insertion) !== NoFlags$1) {
            setIsRunningInsertionEffect(false);
          }
        }

        {
          if ((flags & Passive$1) !== NoFlags$1) {
            markComponentPassiveEffectMountStopped();
          } else if ((flags & Layout) !== NoFlags$1) {
            markComponentLayoutEffectMountStopped();
          }
        }

        {
          var destroy = effect.destroy;

          if (destroy !== undefined && typeof destroy !== 'function') {
            var hookName = void 0;

            if ((effect.tag & Layout) !== NoFlags) {
              hookName = 'useLayoutEffect';
            } else if ((effect.tag & Insertion) !== NoFlags) {
              hookName = 'useInsertionEffect';
            } else {
              hookName = 'useEffect';
            }

            var addendum = void 0;

            if (destroy === null) {
              addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
            } else if (typeof destroy.then === 'function') {
              addendum = '\n\nIt looks like you wrote ' + hookName + '(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + hookName + '(() => {\n' + '  async function fetchData() {\n' + '    // You can await here\n' + '    const response = await MyAPI.getData(someId);\n' + '    // ...\n' + '  }\n' + '  fetchData();\n' + "}, [someId]); // Or [] if effect doesn't need props or state\n\n" + 'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching';
            } else {
              addendum = ' You returned: ' + destroy;
            }

            error('%s must not return anything besides a function, ' + 'which is used for clean-up.%s', hookName, addendum);
          }
        }
      }

      effect = effect.next;
    } while (effect !== firstEffect);
  }
}

function commitPassiveEffectDurations(finishedRoot, finishedWork) {
  {
    // Only Profilers with work in their subtree will have an Update effect scheduled.
    if ((finishedWork.flags & Update) !== NoFlags) {
      switch (finishedWork.tag) {
        case Profiler:
          {
            var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration;
            var _finishedWork$memoize = finishedWork.memoizedProps,
                id = _finishedWork$memoize.id,
                onPostCommit = _finishedWork$memoize.onPostCommit; // This value will still reflect the previous commit phase.
            // It does not get reset until the start of the next commit phase.

            var commitTime = getCommitTime();
            var phase = finishedWork.alternate === null ? 'mount' : 'update';

            {
              if (isCurrentUpdateNested()) {
                phase = 'nested-update';
              }
            }

            if (typeof onPostCommit === 'function') {
              onPostCommit(id, phase, passiveEffectDuration, commitTime);
            } // Bubble times to the next nearest ancestor Profiler.
            // After we process that Profiler, we'll bubble further up.


            var parentFiber = finishedWork.return;

            outer: while (parentFiber !== null) {
              switch (parentFiber.tag) {
                case HostRoot:
                  var root = parentFiber.stateNode;
                  root.passiveEffectDuration += passiveEffectDuration;
                  break outer;

                case Profiler:
                  var parentStateNode = parentFiber.stateNode;
                  parentStateNode.passiveEffectDuration += passiveEffectDuration;
                  break outer;
              }

              parentFiber = parentFiber.return;
            }

            break;
          }
      }
    }
  }
}

function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork, committedLanes) {
  if ((finishedWork.flags & LayoutMask) !== NoFlags) {
    switch (finishedWork.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          if ( !offscreenSubtreeWasHidden) {
            // At this point layout effects have already been destroyed (during mutation phase).
            // This is done to prevent sibling component effects from interfering with each other,
            // e.g. a destroy function in one component should never override a ref set
            // by a create function in another component during the same commit.
            if ( finishedWork.mode & ProfileMode) {
              try {
                startLayoutEffectTimer();
                commitHookEffectListMount(Layout | HasEffect, finishedWork);
              } finally {
                recordLayoutEffectDuration(finishedWork);
              }
            } else {
              commitHookEffectListMount(Layout | HasEffect, finishedWork);
            }
          }

          break;
        }

      case ClassComponent:
        {
          var instance = finishedWork.stateNode;

          if (finishedWork.flags & Update) {
            if (!offscreenSubtreeWasHidden) {
              if (current === null) {
                // We could update instance props and state here,
                // but instead we rely on them being set during last render.
                // TODO: revisit this when we implement resuming.
                {
                  if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                    if (instance.props !== finishedWork.memoizedProps) {
                      error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                    }

                    if (instance.state !== finishedWork.memoizedState) {
                      error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                    }
                  }
                }

                if ( finishedWork.mode & ProfileMode) {
                  try {
                    startLayoutEffectTimer();
                    instance.componentDidMount();
                  } finally {
                    recordLayoutEffectDuration(finishedWork);
                  }
                } else {
                  instance.componentDidMount();
                }
              } else {
                var prevProps = finishedWork.elementType === finishedWork.type ? current.memoizedProps : resolveDefaultProps(finishedWork.type, current.memoizedProps);
                var prevState = current.memoizedState; // We could update instance props and state here,
                // but instead we rely on them being set during last render.
                // TODO: revisit this when we implement resuming.

                {
                  if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                    if (instance.props !== finishedWork.memoizedProps) {
                      error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                    }

                    if (instance.state !== finishedWork.memoizedState) {
                      error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                    }
                  }
                }

                if ( finishedWork.mode & ProfileMode) {
                  try {
                    startLayoutEffectTimer();
                    instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
                  } finally {
                    recordLayoutEffectDuration(finishedWork);
                  }
                } else {
                  instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
                }
              }
            }
          } // TODO: I think this is now always non-null by the time it reaches the
          // commit phase. Consider removing the type check.


          var updateQueue = finishedWork.updateQueue;

          if (updateQueue !== null) {
            {
              if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
                if (instance.props !== finishedWork.memoizedProps) {
                  error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                }

                if (instance.state !== finishedWork.memoizedState) {
                  error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.state`. ' + 'Please file an issue.', getComponentNameFromFiber(finishedWork) || 'instance');
                }
              }
            } // We could update instance props and state here,
            // but instead we rely on them being set during last render.
            // TODO: revisit this when we implement resuming.


            commitUpdateQueue(finishedWork, updateQueue, instance);
          }

          break;
        }

      case HostRoot:
        {
          // TODO: I think this is now always non-null by the time it reaches the
          // commit phase. Consider removing the type check.
          var _updateQueue = finishedWork.updateQueue;

          if (_updateQueue !== null) {
            var _instance = null;

            if (finishedWork.child !== null) {
              switch (finishedWork.child.tag) {
                case HostComponent:
                  _instance = getPublicInstance(finishedWork.child.stateNode);
                  break;

                case ClassComponent:
                  _instance = finishedWork.child.stateNode;
                  break;
              }
            }

            commitUpdateQueue(finishedWork, _updateQueue, _instance);
          }

          break;
        }

      case HostComponent:
        {
          var _instance2 = finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted
          // (eg DOM renderer may schedule auto-focus for inputs and form controls).
          // These effects should only be committed when components are first mounted,
          // aka when there is no current/alternate.

          if (current === null && finishedWork.flags & Update) {
            var type = finishedWork.type;
            var props = finishedWork.memoizedProps;
            commitMount(_instance2, type, props);
          }

          break;
        }

      case HostText:
        {
          // We have no life-cycles associated with text.
          break;
        }

      case HostPortal:
        {
          // We have no life-cycles associated with portals.
          break;
        }

      case Profiler:
        {
          {
            var _finishedWork$memoize2 = finishedWork.memoizedProps,
                onCommit = _finishedWork$memoize2.onCommit,
                onRender = _finishedWork$memoize2.onRender;
            var effectDuration = finishedWork.stateNode.effectDuration;
            var commitTime = getCommitTime();
            var phase = current === null ? 'mount' : 'update';

            {
              if (isCurrentUpdateNested()) {
                phase = 'nested-update';
              }
            }

            if (typeof onRender === 'function') {
              onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime);
            }

            {
              if (typeof onCommit === 'function') {
                onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime);
              } // Schedule a passive effect for this Profiler to call onPostCommit hooks.
              // This effect should be scheduled even if there is no onPostCommit callback for this Profiler,
              // because the effect is also where times bubble to parent Profilers.


              enqueuePendingPassiveProfilerEffect(finishedWork); // Propagate layout effect durations to the next nearest Profiler ancestor.
              // Do not reset these values until the next render so DevTools has a chance to read them first.

              var parentFiber = finishedWork.return;

              outer: while (parentFiber !== null) {
                switch (parentFiber.tag) {
                  case HostRoot:
                    var root = parentFiber.stateNode;
                    root.effectDuration += effectDuration;
                    break outer;

                  case Profiler:
                    var parentStateNode = parentFiber.stateNode;
                    parentStateNode.effectDuration += effectDuration;
                    break outer;
                }

                parentFiber = parentFiber.return;
              }
            }
          }

          break;
        }

      case SuspenseComponent:
        {
          commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
          break;
        }

      case SuspenseListComponent:
      case IncompleteClassComponent:
      case ScopeComponent:
      case OffscreenComponent:
      case LegacyHiddenComponent:
      case TracingMarkerComponent:
        {
          break;
        }

      default:
        throw new Error('This unit of work tag should not have side-effects. This error is ' + 'likely caused by a bug in React. Please file an issue.');
    }
  }

  if ( !offscreenSubtreeWasHidden) {
    {
      if (finishedWork.flags & Ref) {
        commitAttachRef(finishedWork);
      }
    }
  }
}

function reappearLayoutEffectsOnFiber(node) {
  // Turn on layout effects in a tree that previously disappeared.
  // TODO (Offscreen) Check: flags & LayoutStatic
  switch (node.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        if ( node.mode & ProfileMode) {
          try {
            startLayoutEffectTimer();
            safelyCallCommitHookLayoutEffectListMount(node, node.return);
          } finally {
            recordLayoutEffectDuration(node);
          }
        } else {
          safelyCallCommitHookLayoutEffectListMount(node, node.return);
        }

        break;
      }

    case ClassComponent:
      {
        var instance = node.stateNode;

        if (typeof instance.componentDidMount === 'function') {
          safelyCallComponentDidMount(node, node.return, instance);
        }

        safelyAttachRef(node, node.return);
        break;
      }

    case HostComponent:
      {
        safelyAttachRef(node, node.return);
        break;
      }
  }
}

function hideOrUnhideAllChildren(finishedWork, isHidden) {
  // Only hide or unhide the top-most host nodes.
  var hostSubtreeRoot = null;

  {
    // We only have the top Fiber that was inserted but we need to recurse down its
    // children to find all the terminal nodes.
    var node = finishedWork;

    while (true) {
      if (node.tag === HostComponent) {
        if (hostSubtreeRoot === null) {
          hostSubtreeRoot = node;

          try {
            var instance = node.stateNode;

            if (isHidden) {
              hideInstance(instance);
            } else {
              unhideInstance(node.stateNode, node.memoizedProps);
            }
          } catch (error) {
            captureCommitPhaseError(finishedWork, finishedWork.return, error);
          }
        }
      } else if (node.tag === HostText) {
        if (hostSubtreeRoot === null) {
          try {
            var _instance3 = node.stateNode;

            if (isHidden) {
              hideTextInstance(_instance3);
            } else {
              unhideTextInstance(_instance3, node.memoizedProps);
            }
          } catch (error) {
            captureCommitPhaseError(finishedWork, finishedWork.return, error);
          }
        }
      } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) ; else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === finishedWork) {
        return;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === finishedWork) {
          return;
        }

        if (hostSubtreeRoot === node) {
          hostSubtreeRoot = null;
        }

        node = node.return;
      }

      if (hostSubtreeRoot === node) {
        hostSubtreeRoot = null;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  }
}

function commitAttachRef(finishedWork) {
  var ref = finishedWork.ref;

  if (ref !== null) {
    var instance = finishedWork.stateNode;
    var instanceToUse;

    switch (finishedWork.tag) {
      case HostComponent:
        instanceToUse = getPublicInstance(instance);
        break;

      default:
        instanceToUse = instance;
    } // Moved outside to ensure DCE works with this flag

    if (typeof ref === 'function') {
      var retVal;

      if ( finishedWork.mode & ProfileMode) {
        try {
          startLayoutEffectTimer();
          retVal = ref(instanceToUse);
        } finally {
          recordLayoutEffectDuration(finishedWork);
        }
      } else {
        retVal = ref(instanceToUse);
      }

      {
        if (typeof retVal === 'function') {
          error('Unexpected return value from a callback ref in %s. ' + 'A callback ref should not return a function.', getComponentNameFromFiber(finishedWork));
        }
      }
    } else {
      {
        if (!ref.hasOwnProperty('current')) {
          error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().', getComponentNameFromFiber(finishedWork));
        }
      }

      ref.current = instanceToUse;
    }
  }
}

function detachFiberMutation(fiber) {
  // Cut off the return pointer to disconnect it from the tree.
  // This enables us to detect and warn against state updates on an unmounted component.
  // It also prevents events from bubbling from within disconnected components.
  //
  // Ideally, we should also clear the child pointer of the parent alternate to let this
  // get GC:ed but we don't know which for sure which parent is the current
  // one so we'll settle for GC:ing the subtree of this child.
  // This child itself will be GC:ed when the parent updates the next time.
  //
  // Note that we can't clear child or sibling pointers yet.
  // They're needed for passive effects and for findDOMNode.
  // We defer those fields, and all other cleanup, to the passive phase (see detachFiberAfterEffects).
  //
  // Don't reset the alternate yet, either. We need that so we can detach the
  // alternate's fields in the passive phase. Clearing the return pointer is
  // sufficient for findDOMNode semantics.
  var alternate = fiber.alternate;

  if (alternate !== null) {
    alternate.return = null;
  }

  fiber.return = null;
}

function detachFiberAfterEffects(fiber) {
  var alternate = fiber.alternate;

  if (alternate !== null) {
    fiber.alternate = null;
    detachFiberAfterEffects(alternate);
  } // Note: Defensively using negation instead of < in case
  // `deletedTreeCleanUpLevel` is undefined.


  {
    // Clear cyclical Fiber fields. This level alone is designed to roughly
    // approximate the planned Fiber refactor. In that world, `setState` will be
    // bound to a special "instance" object instead of a Fiber. The Instance
    // object will not have any of these fields. It will only be connected to
    // the fiber tree via a single link at the root. So if this level alone is
    // sufficient to fix memory issues, that bodes well for our plans.
    fiber.child = null;
    fiber.deletions = null;
    fiber.sibling = null; // The `stateNode` is cyclical because on host nodes it points to the host
    // tree, which has its own pointers to children, parents, and siblings.
    // The other host nodes also point back to fibers, so we should detach that
    // one, too.

    if (fiber.tag === HostComponent) {
      var hostInstance = fiber.stateNode;

      if (hostInstance !== null) {
        detachDeletedInstance(hostInstance);
      }
    }

    fiber.stateNode = null; // I'm intentionally not clearing the `return` field in this level. We
    // already disconnect the `return` pointer at the root of the deleted
    // subtree (in `detachFiberMutation`). Besides, `return` by itself is not
    // cyclical — it's only cyclical when combined with `child`, `sibling`, and
    // `alternate`. But we'll clear it in the next level anyway, just in case.

    {
      fiber._debugOwner = null;
    }

    {
      // Theoretically, nothing in here should be necessary, because we already
      // disconnected the fiber from the tree. So even if something leaks this
      // particular fiber, it won't leak anything else
      //
      // The purpose of this branch is to be super aggressive so we can measure
      // if there's any difference in memory impact. If there is, that could
      // indicate a React leak we don't know about.
      fiber.return = null;
      fiber.dependencies = null;
      fiber.memoizedProps = null;
      fiber.memoizedState = null;
      fiber.pendingProps = null;
      fiber.stateNode = null; // TODO: Move to `commitPassiveUnmountInsideDeletedTreeOnFiber` instead.

      fiber.updateQueue = null;
    }
  }
}

function getHostParentFiber(fiber) {
  var parent = fiber.return;

  while (parent !== null) {
    if (isHostParent(parent)) {
      return parent;
    }

    parent = parent.return;
  }

  throw new Error('Expected to find a host parent. This error is likely caused by a bug ' + 'in React. Please file an issue.');
}

function isHostParent(fiber) {
  return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
}

function getHostSibling(fiber) {
  // We're going to search forward into the tree until we find a sibling host
  // node. Unfortunately, if multiple insertions are done in a row we have to
  // search past them. This leads to exponential search for the next sibling.
  // TODO: Find a more efficient way to do this.
  var node = fiber;

  siblings: while (true) {
    // If we didn't find anything, let's try the next sibling.
    while (node.sibling === null) {
      if (node.return === null || isHostParent(node.return)) {
        // If we pop out of the root or hit the parent the fiber we are the
        // last sibling.
        return null;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;

    while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) {
      // If it is not host node and, we might have a host node inside it.
      // Try to search down until we find one.
      if (node.flags & Placement) {
        // If we don't have a child, try the siblings instead.
        continue siblings;
      } // If we don't have a child, try the siblings instead.
      // We also skip portals because they are not part of this host tree.


      if (node.child === null || node.tag === HostPortal) {
        continue siblings;
      } else {
        node.child.return = node;
        node = node.child;
      }
    } // Check if this host node is stable or about to be placed.


    if (!(node.flags & Placement)) {
      // Found it!
      return node.stateNode;
    }
  }
}

function commitPlacement(finishedWork) {


  var parentFiber = getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.

  switch (parentFiber.tag) {
    case HostComponent:
      {
        var parent = parentFiber.stateNode;

        if (parentFiber.flags & ContentReset) {
          // Reset the text content of the parent before doing any insertions
          resetTextContent(parent); // Clear ContentReset from the effect tag

          parentFiber.flags &= ~ContentReset;
        }

        var before = getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its
        // children to find all the terminal nodes.

        insertOrAppendPlacementNode(finishedWork, before, parent);
        break;
      }

    case HostRoot:
    case HostPortal:
      {
        var _parent = parentFiber.stateNode.containerInfo;

        var _before = getHostSibling(finishedWork);

        insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent);
        break;
      }
    // eslint-disable-next-line-no-fallthrough

    default:
      throw new Error('Invalid host parent fiber. This error is likely caused by a bug ' + 'in React. Please file an issue.');
  }
}

function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost) {
    var stateNode = node.stateNode;

    if (before) {
      insertInContainerBefore(parent, stateNode, before);
    } else {
      appendChildToContainer(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNodeIntoContainer(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
}

function insertOrAppendPlacementNode(node, before, parent) {
  var tag = node.tag;
  var isHost = tag === HostComponent || tag === HostText;

  if (isHost) {
    var stateNode = node.stateNode;

    if (before) {
      insertBefore(parent, stateNode, before);
    } else {
      appendChild(parent, stateNode);
    }
  } else if (tag === HostPortal) ; else {
    var child = node.child;

    if (child !== null) {
      insertOrAppendPlacementNode(child, before, parent);
      var sibling = child.sibling;

      while (sibling !== null) {
        insertOrAppendPlacementNode(sibling, before, parent);
        sibling = sibling.sibling;
      }
    }
  }
} // These are tracked on the stack as we recursively traverse a
// deleted subtree.
// TODO: Update these during the whole mutation phase, not just during
// a deletion.


var hostParent = null;
var hostParentIsContainer = false;

function commitDeletionEffects(root, returnFiber, deletedFiber) {
  {
    // We only have the top Fiber that was deleted but we need to recurse down its
    // children to find all the terminal nodes.
    // Recursively delete all host nodes from the parent, detach refs, clean
    // up mounted layout effects, and call componentWillUnmount.
    // We only need to remove the topmost host child in each branch. But then we
    // still need to keep traversing to unmount effects, refs, and cWU. TODO: We
    // could split this into two separate traversals functions, where the second
    // one doesn't include any removeChild logic. This is maybe the same
    // function as "disappearLayoutEffects" (or whatever that turns into after
    // the layout phase is refactored to use recursion).
    // Before starting, find the nearest host parent on the stack so we know
    // which instance/container to remove the children from.
    // TODO: Instead of searching up the fiber return path on every deletion, we
    // can track the nearest host component on the JS stack as we traverse the
    // tree during the commit phase. This would make insertions faster, too.
    var parent = returnFiber;

    findParent: while (parent !== null) {
      switch (parent.tag) {
        case HostComponent:
          {
            hostParent = parent.stateNode;
            hostParentIsContainer = false;
            break findParent;
          }

        case HostRoot:
          {
            hostParent = parent.stateNode.containerInfo;
            hostParentIsContainer = true;
            break findParent;
          }

        case HostPortal:
          {
            hostParent = parent.stateNode.containerInfo;
            hostParentIsContainer = true;
            break findParent;
          }
      }

      parent = parent.return;
    }

    if (hostParent === null) {
      throw new Error('Expected to find a host parent. This error is likely caused by ' + 'a bug in React. Please file an issue.');
    }

    commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber);
    hostParent = null;
    hostParentIsContainer = false;
  }

  detachFiberMutation(deletedFiber);
}

function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) {
  // TODO: Use a static flag to skip trees that don't have unmount effects
  var child = parent.child;

  while (child !== null) {
    commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child);
    child = child.sibling;
  }
}

function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) {
  onCommitUnmount(deletedFiber); // The cases in this outer switch modify the stack before they traverse
  // into their subtree. There are simpler cases in the inner switch
  // that don't modify the stack.

  switch (deletedFiber.tag) {
    case HostComponent:
      {
        if (!offscreenSubtreeWasHidden) {
          safelyDetachRef(deletedFiber, nearestMountedAncestor);
        } // Intentional fallthrough to next branch

      }
    // eslint-disable-next-line-no-fallthrough

    case HostText:
      {
        // We only need to remove the nearest host child. Set the host parent
        // to `null` on the stack to indicate that nested children don't
        // need to be removed.
        {
          var prevHostParent = hostParent;
          var prevHostParentIsContainer = hostParentIsContainer;
          hostParent = null;
          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
          hostParent = prevHostParent;
          hostParentIsContainer = prevHostParentIsContainer;

          if (hostParent !== null) {
            // Now that all the child effects have unmounted, we can remove the
            // node from the tree.
            if (hostParentIsContainer) {
              removeChildFromContainer(hostParent, deletedFiber.stateNode);
            } else {
              removeChild(hostParent, deletedFiber.stateNode);
            }
          }
        }

        return;
      }

    case DehydratedFragment:
      {
        // Delete the dehydrated suspense boundary and all of its content.


        {
          if (hostParent !== null) {
            if (hostParentIsContainer) {
              clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode);
            } else {
              clearSuspenseBoundary(hostParent, deletedFiber.stateNode);
            }
          }
        }

        return;
      }

    case HostPortal:
      {
        {
          // When we go into a portal, it becomes the parent to remove from.
          var _prevHostParent = hostParent;
          var _prevHostParentIsContainer = hostParentIsContainer;
          hostParent = deletedFiber.stateNode.containerInfo;
          hostParentIsContainer = true;
          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
          hostParent = _prevHostParent;
          hostParentIsContainer = _prevHostParentIsContainer;
        }

        return;
      }

    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
      {
        if (!offscreenSubtreeWasHidden) {
          var updateQueue = deletedFiber.updateQueue;

          if (updateQueue !== null) {
            var lastEffect = updateQueue.lastEffect;

            if (lastEffect !== null) {
              var firstEffect = lastEffect.next;
              var effect = firstEffect;

              do {
                var _effect = effect,
                    destroy = _effect.destroy,
                    tag = _effect.tag;

                if (destroy !== undefined) {
                  if ((tag & Insertion) !== NoFlags$1) {
                    safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
                  } else if ((tag & Layout) !== NoFlags$1) {
                    {
                      markComponentLayoutEffectUnmountStarted(deletedFiber);
                    }

                    if ( deletedFiber.mode & ProfileMode) {
                      startLayoutEffectTimer();
                      safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
                      recordLayoutEffectDuration(deletedFiber);
                    } else {
                      safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy);
                    }

                    {
                      markComponentLayoutEffectUnmountStopped();
                    }
                  }
                }

                effect = effect.next;
              } while (effect !== firstEffect);
            }
          }
        }

        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
        return;
      }

    case ClassComponent:
      {
        if (!offscreenSubtreeWasHidden) {
          safelyDetachRef(deletedFiber, nearestMountedAncestor);
          var instance = deletedFiber.stateNode;

          if (typeof instance.componentWillUnmount === 'function') {
            safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance);
          }
        }

        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
        return;
      }

    case ScopeComponent:
      {

        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
        return;
      }

    case OffscreenComponent:
      {
        if ( // TODO: Remove this dead flag
         deletedFiber.mode & ConcurrentMode) {
          // If this offscreen component is hidden, we already unmounted it. Before
          // deleting the children, track that it's already unmounted so that we
          // don't attempt to unmount the effects again.
          // TODO: If the tree is hidden, in most cases we should be able to skip
          // over the nested children entirely. An exception is we haven't yet found
          // the topmost host node to delete, which we already track on the stack.
          // But the other case is portals, which need to be detached no matter how
          // deeply they are nested. We should use a subtree flag to track whether a
          // subtree includes a nested portal.
          var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || deletedFiber.memoizedState !== null;
          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
        } else {
          recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
        }

        break;
      }

    default:
      {
        recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber);
        return;
      }
  }
}

function commitSuspenseCallback(finishedWork) {
  // TODO: Move this to passive phase
  var newState = finishedWork.memoizedState;
}

function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {

  var newState = finishedWork.memoizedState;

  if (newState === null) {
    var current = finishedWork.alternate;

    if (current !== null) {
      var prevState = current.memoizedState;

      if (prevState !== null) {
        var suspenseInstance = prevState.dehydrated;

        if (suspenseInstance !== null) {
          commitHydratedSuspenseInstance(suspenseInstance);
        }
      }
    }
  }
}

function attachSuspenseRetryListeners(finishedWork) {
  // If this boundary just timed out, then it will have a set of wakeables.
  // For each wakeable, attach a listener so that when it resolves, React
  // attempts to re-render the boundary in the primary (pre-timeout) state.
  var wakeables = finishedWork.updateQueue;

  if (wakeables !== null) {
    finishedWork.updateQueue = null;
    var retryCache = finishedWork.stateNode;

    if (retryCache === null) {
      retryCache = finishedWork.stateNode = new PossiblyWeakSet();
    }

    wakeables.forEach(function (wakeable) {
      // Memoize using the boundary fiber to prevent redundant listeners.
      var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);

      if (!retryCache.has(wakeable)) {
        retryCache.add(wakeable);

        {
          if (isDevToolsPresent) {
            if (inProgressLanes !== null && inProgressRoot !== null) {
              // If we have pending work still, associate the original updaters with it.
              restorePendingUpdaters(inProgressRoot, inProgressLanes);
            } else {
              throw Error('Expected finished root and lanes to be set. This is a bug in React.');
            }
          }
        }

        wakeable.then(retry, retry);
      }
    });
  }
} // This function detects when a Suspense boundary goes from visible to hidden.
function commitMutationEffects(root, finishedWork, committedLanes) {
  inProgressLanes = committedLanes;
  inProgressRoot = root;
  setCurrentFiber(finishedWork);
  commitMutationEffectsOnFiber(finishedWork, root);
  setCurrentFiber(finishedWork);
  inProgressLanes = null;
  inProgressRoot = null;
}

function recursivelyTraverseMutationEffects(root, parentFiber, lanes) {
  // Deletions effects can be scheduled on any fiber type. They need to happen
  // before the children effects hae fired.
  var deletions = parentFiber.deletions;

  if (deletions !== null) {
    for (var i = 0; i < deletions.length; i++) {
      var childToDelete = deletions[i];

      try {
        commitDeletionEffects(root, parentFiber, childToDelete);
      } catch (error) {
        captureCommitPhaseError(childToDelete, parentFiber, error);
      }
    }
  }

  var prevDebugFiber = getCurrentFiber();

  if (parentFiber.subtreeFlags & MutationMask) {
    var child = parentFiber.child;

    while (child !== null) {
      setCurrentFiber(child);
      commitMutationEffectsOnFiber(child, root);
      child = child.sibling;
    }
  }

  setCurrentFiber(prevDebugFiber);
}

function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
  var current = finishedWork.alternate;
  var flags = finishedWork.flags; // The effect flag should be checked *after* we refine the type of fiber,
  // because the fiber tag is more specific. An exception is any flag related
  // to reconcilation, because those can be set on all fiber types.

  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case MemoComponent:
    case SimpleMemoComponent:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Update) {
          try {
            commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return);
            commitHookEffectListMount(Insertion | HasEffect, finishedWork);
          } catch (error) {
            captureCommitPhaseError(finishedWork, finishedWork.return, error);
          } // Layout effects are destroyed during the mutation phase so that all
          // destroy functions for all fibers are called before any create functions.
          // This prevents sibling component effects from interfering with each other,
          // e.g. a destroy function in one component should never override a ref set
          // by a create function in another component during the same commit.


          if ( finishedWork.mode & ProfileMode) {
            try {
              startLayoutEffectTimer();
              commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);
            } catch (error) {
              captureCommitPhaseError(finishedWork, finishedWork.return, error);
            }

            recordLayoutEffectDuration(finishedWork);
          } else {
            try {
              commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return);
            } catch (error) {
              captureCommitPhaseError(finishedWork, finishedWork.return, error);
            }
          }
        }

        return;
      }

    case ClassComponent:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Ref) {
          if (current !== null) {
            safelyDetachRef(current, current.return);
          }
        }

        return;
      }

    case HostComponent:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Ref) {
          if (current !== null) {
            safelyDetachRef(current, current.return);
          }
        }

        {
          // TODO: ContentReset gets cleared by the children during the commit
          // phase. This is a refactor hazard because it means we must read
          // flags the flags after `commitReconciliationEffects` has already run;
          // the order matters. We should refactor so that ContentReset does not
          // rely on mutating the flag during commit. Like by setting a flag
          // during the render phase instead.
          if (finishedWork.flags & ContentReset) {
            var instance = finishedWork.stateNode;

            try {
              resetTextContent(instance);
            } catch (error) {
              captureCommitPhaseError(finishedWork, finishedWork.return, error);
            }
          }

          if (flags & Update) {
            var _instance4 = finishedWork.stateNode;

            if (_instance4 != null) {
              // Commit the work prepared earlier.
              var newProps = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
              // as the newProps. The updatePayload will contain the real change in
              // this case.

              var oldProps = current !== null ? current.memoizedProps : newProps;
              var type = finishedWork.type; // TODO: Type the updateQueue to be specific to host components.

              var updatePayload = finishedWork.updateQueue;
              finishedWork.updateQueue = null;

              if (updatePayload !== null) {
                try {
                  commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork);
                } catch (error) {
                  captureCommitPhaseError(finishedWork, finishedWork.return, error);
                }
              }
            }
          }
        }

        return;
      }

    case HostText:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Update) {
          {
            if (finishedWork.stateNode === null) {
              throw new Error('This should have a text node initialized. This error is likely ' + 'caused by a bug in React. Please file an issue.');
            }

            var textInstance = finishedWork.stateNode;
            var newText = finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps
            // as the newProps. The updatePayload will contain the real change in
            // this case.

            var oldText = current !== null ? current.memoizedProps : newText;

            try {
              commitTextUpdate(textInstance, oldText, newText);
            } catch (error) {
              captureCommitPhaseError(finishedWork, finishedWork.return, error);
            }
          }
        }

        return;
      }

    case HostRoot:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Update) {
          {
            if (current !== null) {
              var prevRootState = current.memoizedState;

              if (prevRootState.isDehydrated) {
                try {
                  commitHydratedContainer(root.containerInfo);
                } catch (error) {
                  captureCommitPhaseError(finishedWork, finishedWork.return, error);
                }
              }
            }
          }
        }

        return;
      }

    case HostPortal:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        return;
      }

    case SuspenseComponent:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);
        var offscreenFiber = finishedWork.child;

        if (offscreenFiber.flags & Visibility) {
          var offscreenInstance = offscreenFiber.stateNode;
          var newState = offscreenFiber.memoizedState;
          var isHidden = newState !== null; // Track the current state on the Offscreen instance so we can
          // read it during an event

          offscreenInstance.isHidden = isHidden;

          if (isHidden) {
            var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null;

            if (!wasHidden) {
              // TODO: Move to passive phase
              markCommitTimeOfFallback();
            }
          }
        }

        if (flags & Update) {
          try {
            commitSuspenseCallback(finishedWork);
          } catch (error) {
            captureCommitPhaseError(finishedWork, finishedWork.return, error);
          }

          attachSuspenseRetryListeners(finishedWork);
        }

        return;
      }

    case OffscreenComponent:
      {
        var _wasHidden = current !== null && current.memoizedState !== null;

        if ( // TODO: Remove this dead flag
         finishedWork.mode & ConcurrentMode) {
          // Before committing the children, track on the stack whether this
          // offscreen subtree was already hidden, so that we don't unmount the
          // effects again.
          var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || _wasHidden;
          recursivelyTraverseMutationEffects(root, finishedWork);
          offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
        } else {
          recursivelyTraverseMutationEffects(root, finishedWork);
        }

        commitReconciliationEffects(finishedWork);

        if (flags & Visibility) {
          var _offscreenInstance = finishedWork.stateNode;
          var _newState = finishedWork.memoizedState;

          var _isHidden = _newState !== null;

          var offscreenBoundary = finishedWork; // Track the current state on the Offscreen instance so we can
          // read it during an event

          _offscreenInstance.isHidden = _isHidden;

          {
            if (_isHidden) {
              if (!_wasHidden) {
                if ((offscreenBoundary.mode & ConcurrentMode) !== NoMode) {
                  nextEffect = offscreenBoundary;
                  var offscreenChild = offscreenBoundary.child;

                  while (offscreenChild !== null) {
                    nextEffect = offscreenChild;
                    disappearLayoutEffects_begin(offscreenChild);
                    offscreenChild = offscreenChild.sibling;
                  }
                }
              }
            }
          }

          {
            // TODO: This needs to run whenever there's an insertion or update
            // inside a hidden Offscreen tree.
            hideOrUnhideAllChildren(offscreenBoundary, _isHidden);
          }
        }

        return;
      }

    case SuspenseListComponent:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);

        if (flags & Update) {
          attachSuspenseRetryListeners(finishedWork);
        }

        return;
      }

    case ScopeComponent:
      {

        return;
      }

    default:
      {
        recursivelyTraverseMutationEffects(root, finishedWork);
        commitReconciliationEffects(finishedWork);
        return;
      }
  }
}

function commitReconciliationEffects(finishedWork) {
  // Placement effects (insertions, reorders) can be scheduled on any fiber
  // type. They needs to happen after the children effects have fired, but
  // before the effects on this fiber have fired.
  var flags = finishedWork.flags;

  if (flags & Placement) {
    try {
      commitPlacement(finishedWork);
    } catch (error) {
      captureCommitPhaseError(finishedWork, finishedWork.return, error);
    } // Clear the "placement" from effect tag so that we know that this is
    // inserted, before any life-cycles like componentDidMount gets called.
    // TODO: findDOMNode doesn't rely on this any more but isMounted does
    // and isMounted is deprecated anyway so we should be able to kill this.


    finishedWork.flags &= ~Placement;
  }

  if (flags & Hydrating) {
    finishedWork.flags &= ~Hydrating;
  }
}

function commitLayoutEffects(finishedWork, root, committedLanes) {
  inProgressLanes = committedLanes;
  inProgressRoot = root;
  nextEffect = finishedWork;
  commitLayoutEffects_begin(finishedWork, root, committedLanes);
  inProgressLanes = null;
  inProgressRoot = null;
}

function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) {
  // Suspense layout effects semantics don't change for legacy roots.
  var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode;

  while (nextEffect !== null) {
    var fiber = nextEffect;
    var firstChild = fiber.child;

    if ( fiber.tag === OffscreenComponent && isModernRoot) {
      // Keep track of the current Offscreen stack's state.
      var isHidden = fiber.memoizedState !== null;
      var newOffscreenSubtreeIsHidden = isHidden || offscreenSubtreeIsHidden;

      if (newOffscreenSubtreeIsHidden) {
        // The Offscreen tree is hidden. Skip over its layout effects.
        commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
        continue;
      } else {
        // TODO (Offscreen) Also check: subtreeFlags & LayoutMask
        var current = fiber.alternate;
        var wasHidden = current !== null && current.memoizedState !== null;
        var newOffscreenSubtreeWasHidden = wasHidden || offscreenSubtreeWasHidden;
        var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden;
        var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; // Traverse the Offscreen subtree with the current Offscreen as the root.

        offscreenSubtreeIsHidden = newOffscreenSubtreeIsHidden;
        offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden;

        if (offscreenSubtreeWasHidden && !prevOffscreenSubtreeWasHidden) {
          // This is the root of a reappearing boundary. Turn its layout effects
          // back on.
          nextEffect = fiber;
          reappearLayoutEffects_begin(fiber);
        }

        var child = firstChild;

        while (child !== null) {
          nextEffect = child;
          commitLayoutEffects_begin(child, // New root; bubble back up to here and stop.
          root, committedLanes);
          child = child.sibling;
        } // Restore Offscreen state and resume in our-progress traversal.


        nextEffect = fiber;
        offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
        offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
        commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
        continue;
      }
    }

    if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) {
      firstChild.return = fiber;
      nextEffect = firstChild;
    } else {
      commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes);
    }
  }
}

function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) {
  while (nextEffect !== null) {
    var fiber = nextEffect;

    if ((fiber.flags & LayoutMask) !== NoFlags) {
      var current = fiber.alternate;
      setCurrentFiber(fiber);

      try {
        commitLayoutEffectOnFiber(root, current, fiber, committedLanes);
      } catch (error) {
        captureCommitPhaseError(fiber, fiber.return, error);
      }

      resetCurrentFiber();
    }

    if (fiber === subtreeRoot) {
      nextEffect = null;
      return;
    }

    var sibling = fiber.sibling;

    if (sibling !== null) {
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function disappearLayoutEffects_begin(subtreeRoot) {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    var firstChild = fiber.child; // TODO (Offscreen) Check: flags & (RefStatic | LayoutStatic)

    switch (fiber.tag) {
      case FunctionComponent:
      case ForwardRef:
      case MemoComponent:
      case SimpleMemoComponent:
        {
          if ( fiber.mode & ProfileMode) {
            try {
              startLayoutEffectTimer();
              commitHookEffectListUnmount(Layout, fiber, fiber.return);
            } finally {
              recordLayoutEffectDuration(fiber);
            }
          } else {
            commitHookEffectListUnmount(Layout, fiber, fiber.return);
          }

          break;
        }

      case ClassComponent:
        {
          // TODO (Offscreen) Check: flags & RefStatic
          safelyDetachRef(fiber, fiber.return);
          var instance = fiber.stateNode;

          if (typeof instance.componentWillUnmount === 'function') {
            safelyCallComponentWillUnmount(fiber, fiber.return, instance);
          }

          break;
        }

      case HostComponent:
        {
          safelyDetachRef(fiber, fiber.return);
          break;
        }

      case OffscreenComponent:
        {
          // Check if this is a
          var isHidden = fiber.memoizedState !== null;

          if (isHidden) {
            // Nested Offscreen tree is already hidden. Don't disappear
            // its effects.
            disappearLayoutEffects_complete(subtreeRoot);
            continue;
          }

          break;
        }
    } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic


    if (firstChild !== null) {
      firstChild.return = fiber;
      nextEffect = firstChild;
    } else {
      disappearLayoutEffects_complete(subtreeRoot);
    }
  }
}

function disappearLayoutEffects_complete(subtreeRoot) {
  while (nextEffect !== null) {
    var fiber = nextEffect;

    if (fiber === subtreeRoot) {
      nextEffect = null;
      return;
    }

    var sibling = fiber.sibling;

    if (sibling !== null) {
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function reappearLayoutEffects_begin(subtreeRoot) {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    var firstChild = fiber.child;

    if (fiber.tag === OffscreenComponent) {
      var isHidden = fiber.memoizedState !== null;

      if (isHidden) {
        // Nested Offscreen tree is still hidden. Don't re-appear its effects.
        reappearLayoutEffects_complete(subtreeRoot);
        continue;
      }
    } // TODO (Offscreen) Check: subtreeFlags & LayoutStatic


    if (firstChild !== null) {
      // This node may have been reused from a previous render, so we can't
      // assume its return pointer is correct.
      firstChild.return = fiber;
      nextEffect = firstChild;
    } else {
      reappearLayoutEffects_complete(subtreeRoot);
    }
  }
}

function reappearLayoutEffects_complete(subtreeRoot) {
  while (nextEffect !== null) {
    var fiber = nextEffect; // TODO (Offscreen) Check: flags & LayoutStatic

    setCurrentFiber(fiber);

    try {
      reappearLayoutEffectsOnFiber(fiber);
    } catch (error) {
      captureCommitPhaseError(fiber, fiber.return, error);
    }

    resetCurrentFiber();

    if (fiber === subtreeRoot) {
      nextEffect = null;
      return;
    }

    var sibling = fiber.sibling;

    if (sibling !== null) {
      // This node may have been reused from a previous render, so we can't
      // assume its return pointer is correct.
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) {
  nextEffect = finishedWork;
  commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions);
}

function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    var firstChild = fiber.child;

    if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) {
      firstChild.return = fiber;
      nextEffect = firstChild;
    } else {
      commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions);
    }
  }
}

function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) {
  while (nextEffect !== null) {
    var fiber = nextEffect;

    if ((fiber.flags & Passive) !== NoFlags) {
      setCurrentFiber(fiber);

      try {
        commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions);
      } catch (error) {
        captureCommitPhaseError(fiber, fiber.return, error);
      }

      resetCurrentFiber();
    }

    if (fiber === subtreeRoot) {
      nextEffect = null;
      return;
    }

    var sibling = fiber.sibling;

    if (sibling !== null) {
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        if ( finishedWork.mode & ProfileMode) {
          startPassiveEffectTimer();

          try {
            commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
          } finally {
            recordPassiveEffectDuration(finishedWork);
          }
        } else {
          commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);
        }

        break;
      }
  }
}

function commitPassiveUnmountEffects(firstChild) {
  nextEffect = firstChild;
  commitPassiveUnmountEffects_begin();
}

function commitPassiveUnmountEffects_begin() {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    var child = fiber.child;

    if ((nextEffect.flags & ChildDeletion) !== NoFlags) {
      var deletions = fiber.deletions;

      if (deletions !== null) {
        for (var i = 0; i < deletions.length; i++) {
          var fiberToDelete = deletions[i];
          nextEffect = fiberToDelete;
          commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber);
        }

        {
          // A fiber was deleted from this parent fiber, but it's still part of
          // the previous (alternate) parent fiber's list of children. Because
          // children are a linked list, an earlier sibling that's still alive
          // will be connected to the deleted fiber via its `alternate`:
          //
          //   live fiber
          //   --alternate--> previous live fiber
          //   --sibling--> deleted fiber
          //
          // We can't disconnect `alternate` on nodes that haven't been deleted
          // yet, but we can disconnect the `sibling` and `child` pointers.
          var previousFiber = fiber.alternate;

          if (previousFiber !== null) {
            var detachedChild = previousFiber.child;

            if (detachedChild !== null) {
              previousFiber.child = null;

              do {
                var detachedSibling = detachedChild.sibling;
                detachedChild.sibling = null;
                detachedChild = detachedSibling;
              } while (detachedChild !== null);
            }
          }
        }

        nextEffect = fiber;
      }
    }

    if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) {
      child.return = fiber;
      nextEffect = child;
    } else {
      commitPassiveUnmountEffects_complete();
    }
  }
}

function commitPassiveUnmountEffects_complete() {
  while (nextEffect !== null) {
    var fiber = nextEffect;

    if ((fiber.flags & Passive) !== NoFlags) {
      setCurrentFiber(fiber);
      commitPassiveUnmountOnFiber(fiber);
      resetCurrentFiber();
    }

    var sibling = fiber.sibling;

    if (sibling !== null) {
      sibling.return = fiber.return;
      nextEffect = sibling;
      return;
    }

    nextEffect = fiber.return;
  }
}

function commitPassiveUnmountOnFiber(finishedWork) {
  switch (finishedWork.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        if ( finishedWork.mode & ProfileMode) {
          startPassiveEffectTimer();
          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
          recordPassiveEffectDuration(finishedWork);
        } else {
          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return);
        }

        break;
      }
  }
}

function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) {
  while (nextEffect !== null) {
    var fiber = nextEffect; // Deletion effects fire in parent -> child order
    // TODO: Check if fiber has a PassiveStatic flag

    setCurrentFiber(fiber);
    commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor);
    resetCurrentFiber();
    var child = fiber.child; // TODO: Only traverse subtree if it has a PassiveStatic flag. (But, if we
    // do this, still need to handle `deletedTreeCleanUpLevel` correctly.)

    if (child !== null) {
      child.return = fiber;
      nextEffect = child;
    } else {
      commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot);
    }
  }
}

function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) {
  while (nextEffect !== null) {
    var fiber = nextEffect;
    var sibling = fiber.sibling;
    var returnFiber = fiber.return;

    {
      // Recursively traverse the entire deleted tree and clean up fiber fields.
      // This is more aggressive than ideal, and the long term goal is to only
      // have to detach the deleted tree at the root.
      detachFiberAfterEffects(fiber);

      if (fiber === deletedSubtreeRoot) {
        nextEffect = null;
        return;
      }
    }

    if (sibling !== null) {
      sibling.return = returnFiber;
      nextEffect = sibling;
      return;
    }

    nextEffect = returnFiber;
  }
}

function commitPassiveUnmountInsideDeletedTreeOnFiber(current, nearestMountedAncestor) {
  switch (current.tag) {
    case FunctionComponent:
    case ForwardRef:
    case SimpleMemoComponent:
      {
        if ( current.mode & ProfileMode) {
          startPassiveEffectTimer();
          commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
          recordPassiveEffectDuration(current);
        } else {
          commitHookEffectListUnmount(Passive$1, current, nearestMountedAncestor);
        }

        break;
      }
  }
} // TODO: Reuse reappearLayoutEffects traversal here?


function invokeLayoutEffectMountInDEV(fiber) {
  {
    // We don't need to re-check StrictEffectsMode here.
    // This function is only called if that check has already passed.
    switch (fiber.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          try {
            commitHookEffectListMount(Layout | HasEffect, fiber);
          } catch (error) {
            captureCommitPhaseError(fiber, fiber.return, error);
          }

          break;
        }

      case ClassComponent:
        {
          var instance = fiber.stateNode;

          try {
            instance.componentDidMount();
          } catch (error) {
            captureCommitPhaseError(fiber, fiber.return, error);
          }

          break;
        }
    }
  }
}

function invokePassiveEffectMountInDEV(fiber) {
  {
    // We don't need to re-check StrictEffectsMode here.
    // This function is only called if that check has already passed.
    switch (fiber.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          try {
            commitHookEffectListMount(Passive$1 | HasEffect, fiber);
          } catch (error) {
            captureCommitPhaseError(fiber, fiber.return, error);
          }

          break;
        }
    }
  }
}

function invokeLayoutEffectUnmountInDEV(fiber) {
  {
    // We don't need to re-check StrictEffectsMode here.
    // This function is only called if that check has already passed.
    switch (fiber.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          try {
            commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return);
          } catch (error) {
            captureCommitPhaseError(fiber, fiber.return, error);
          }

          break;
        }

      case ClassComponent:
        {
          var instance = fiber.stateNode;

          if (typeof instance.componentWillUnmount === 'function') {
            safelyCallComponentWillUnmount(fiber, fiber.return, instance);
          }

          break;
        }
    }
  }
}

function invokePassiveEffectUnmountInDEV(fiber) {
  {
    // We don't need to re-check StrictEffectsMode here.
    // This function is only called if that check has already passed.
    switch (fiber.tag) {
      case FunctionComponent:
      case ForwardRef:
      case SimpleMemoComponent:
        {
          try {
            commitHookEffectListUnmount(Passive$1 | HasEffect, fiber, fiber.return);
          } catch (error) {
            captureCommitPhaseError(fiber, fiber.return, error);
          }
        }
    }
  }
}

var COMPONENT_TYPE = 0;
var HAS_PSEUDO_CLASS_TYPE = 1;
var ROLE_TYPE = 2;
var TEST_NAME_TYPE = 3;
var TEXT_TYPE = 4;

if (typeof Symbol === 'function' && Symbol.for) {
  var symbolFor = Symbol.for;
  COMPONENT_TYPE = symbolFor('selector.component');
  HAS_PSEUDO_CLASS_TYPE = symbolFor('selector.has_pseudo_class');
  ROLE_TYPE = symbolFor('selector.role');
  TEST_NAME_TYPE = symbolFor('selector.test_id');
  TEXT_TYPE = symbolFor('selector.text');
}
var commitHooks = [];
function onCommitRoot$1() {
  {
    commitHooks.forEach(function (commitHook) {
      return commitHook();
    });
  }
}

var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue;
function isLegacyActEnvironment(fiber) {
  {
    // Legacy mode. We preserve the behavior of React 17's act. It assumes an
    // act environment whenever `jest` is defined, but you can still turn off
    // spurious warnings by setting IS_REACT_ACT_ENVIRONMENT explicitly
    // to false.
    var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
    typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined; // $FlowExpectedError - Flow doesn't know about jest

    var jestIsDefined = typeof jest !== 'undefined';
    return  jestIsDefined && isReactActEnvironmentGlobal !== false;
  }
}
function isConcurrentActEnvironment() {
  {
    var isReactActEnvironmentGlobal = // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global
    typeof IS_REACT_ACT_ENVIRONMENT !== 'undefined' ? IS_REACT_ACT_ENVIRONMENT : undefined;

    if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) {
      // TODO: Include link to relevant documentation page.
      error('The current testing environment is not configured to support ' + 'act(...)');
    }

    return isReactActEnvironmentGlobal;
  }
}

var ceil = Math.ceil;
var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher,
    ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,
    ReactCurrentBatchConfig$3 = ReactSharedInternals.ReactCurrentBatchConfig,
    ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue;
var NoContext =
/*             */
0;
var BatchedContext =
/*               */
1;
var RenderContext =
/*                */
2;
var CommitContext =
/*                */
4;
var RootInProgress = 0;
var RootFatalErrored = 1;
var RootErrored = 2;
var RootSuspended = 3;
var RootSuspendedWithDelay = 4;
var RootCompleted = 5;
var RootDidNotComplete = 6; // Describes where we are in the React execution stack

var executionContext = NoContext; // The root we're working on

var workInProgressRoot = null; // The fiber we're working on

var workInProgress = null; // The lanes we're rendering

var workInProgressRootRenderLanes = NoLanes; // Stack that allows components to change the render lanes for its subtree
// This is a superset of the lanes we started working on at the root. The only
// case where it's different from `workInProgressRootRenderLanes` is when we
// enter a subtree that is hidden and needs to be unhidden: Suspense and
// Offscreen component.
//
// Most things in the work loop should deal with workInProgressRootRenderLanes.
// Most things in begin/complete phases should deal with subtreeRenderLanes.

var subtreeRenderLanes = NoLanes;
var subtreeRenderLanesCursor = createCursor(NoLanes); // Whether to root completed, errored, suspended, etc.

var workInProgressRootExitStatus = RootInProgress; // A fatal error, if one is thrown

var workInProgressRootFatalError = null; // "Included" lanes refer to lanes that were worked on during this render. It's
// slightly different than `renderLanes` because `renderLanes` can change as you
// enter and exit an Offscreen tree. This value is the combination of all render
// lanes for the entire render phase.

var workInProgressRootIncludedLanes = NoLanes; // The work left over by components that were visited during this render. Only
// includes unprocessed updates, not work in bailed out children.

var workInProgressRootSkippedLanes = NoLanes; // Lanes that were updated (in an interleaved event) during this render.

var workInProgressRootInterleavedUpdatedLanes = NoLanes; // Lanes that were updated during the render phase (*not* an interleaved event).

var workInProgressRootPingedLanes = NoLanes; // Errors that are thrown during the render phase.

var workInProgressRootConcurrentErrors = null; // These are errors that we recovered from without surfacing them to the UI.
// We will log them once the tree commits.

var workInProgressRootRecoverableErrors = null; // The most recent time we committed a fallback. This lets us ensure a train
// model where we don't commit new loading states in too quick succession.

var globalMostRecentFallbackTime = 0;
var FALLBACK_THROTTLE_MS = 500; // The absolute time for when we should start giving up on rendering
// more and prefer CPU suspense heuristics instead.

var workInProgressRootRenderTargetTime = Infinity; // How long a render is supposed to take before we start following CPU
// suspense heuristics and opt out of rendering more content.

var RENDER_TIMEOUT_MS = 500;
var workInProgressTransitions = null;

function resetRenderTimer() {
  workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS;
}

function getRenderTargetTime() {
  return workInProgressRootRenderTargetTime;
}
var hasUncaughtError = false;
var firstUncaughtError = null;
var legacyErrorBoundariesThatAlreadyFailed = null; // Only used when enableProfilerNestedUpdateScheduledHook is true;
var rootDoesHavePassiveEffects = false;
var rootWithPendingPassiveEffects = null;
var pendingPassiveEffectsLanes = NoLanes;
var pendingPassiveProfilerEffects = [];
var pendingPassiveTransitions = null; // Use these to prevent an infinite loop of nested updates

var NESTED_UPDATE_LIMIT = 50;
var nestedUpdateCount = 0;
var rootWithNestedUpdates = null;
var isFlushingPassiveEffects = false;
var didScheduleUpdateDuringPassiveEffects = false;
var NESTED_PASSIVE_UPDATE_LIMIT = 50;
var nestedPassiveUpdateCount = 0;
var rootWithPassiveNestedUpdates = null; // If two updates are scheduled within the same event, we should treat their
// event times as simultaneous, even if the actual clock time has advanced
// between the first and second call.

var currentEventTime = NoTimestamp;
var currentEventTransitionLane = NoLanes;
var isRunningInsertionEffect = false;
function getWorkInProgressRoot() {
  return workInProgressRoot;
}
function requestEventTime() {
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    // We're inside React, so it's fine to read the actual time.
    return now();
  } // We're not inside React, so we may be in the middle of a browser event.


  if (currentEventTime !== NoTimestamp) {
    // Use the same start time for all updates until we enter React again.
    return currentEventTime;
  } // This is the first update since React yielded. Compute a new start time.


  currentEventTime = now();
  return currentEventTime;
}
function requestUpdateLane(fiber) {
  // Special cases
  var mode = fiber.mode;

  if ((mode & ConcurrentMode) === NoMode) {
    return SyncLane;
  } else if ( (executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) {
    // This is a render phase update. These are not officially supported. The
    // old behavior is to give this the same "thread" (lanes) as
    // whatever is currently rendering. So if you call `setState` on a component
    // that happens later in the same render, it will flush. Ideally, we want to
    // remove the special case and treat them as if they came from an
    // interleaved event. Regardless, this pattern is not officially supported.
    // This behavior is only a fallback. The flag only exists until we can roll
    // out the setState warning, since existing code might accidentally rely on
    // the current behavior.
    return pickArbitraryLane(workInProgressRootRenderLanes);
  }

  var isTransition = requestCurrentTransition() !== NoTransition;

  if (isTransition) {
    if ( ReactCurrentBatchConfig$3.transition !== null) {
      var transition = ReactCurrentBatchConfig$3.transition;

      if (!transition._updatedFibers) {
        transition._updatedFibers = new Set();
      }

      transition._updatedFibers.add(fiber);
    } // The algorithm for assigning an update to a lane should be stable for all
    // updates at the same priority within the same event. To do this, the
    // inputs to the algorithm must be the same.
    //
    // The trick we use is to cache the first of each of these inputs within an
    // event. Then reset the cached values once we can be sure the event is
    // over. Our heuristic for that is whenever we enter a concurrent work loop.


    if (currentEventTransitionLane === NoLane) {
      // All transitions within the same event are assigned the same lane.
      currentEventTransitionLane = claimNextTransitionLane();
    }

    return currentEventTransitionLane;
  } // Updates originating inside certain React methods, like flushSync, have
  // their priority set by tracking it with a context variable.
  //
  // The opaque type returned by the host config is internally a lane, so we can
  // use that directly.
  // TODO: Move this type conversion to the event priority module.


  var updateLane = getCurrentUpdatePriority();

  if (updateLane !== NoLane) {
    return updateLane;
  } // This update originated outside React. Ask the host environment for an
  // appropriate priority, based on the type of event.
  //
  // The opaque type returned by the host config is internally a lane, so we can
  // use that directly.
  // TODO: Move this type conversion to the event priority module.


  var eventLane = getCurrentEventPriority();
  return eventLane;
}

function requestRetryLane(fiber) {
  // This is a fork of `requestUpdateLane` designed specifically for Suspense
  // "retries" — a special update that attempts to flip a Suspense boundary
  // from its placeholder state to its primary/resolved state.
  // Special cases
  var mode = fiber.mode;

  if ((mode & ConcurrentMode) === NoMode) {
    return SyncLane;
  }

  return claimNextRetryLane();
}

function scheduleUpdateOnFiber(root, fiber, lane, eventTime) {
  checkForNestedUpdates();

  {
    if (isRunningInsertionEffect) {
      error('useInsertionEffect must not schedule updates.');
    }
  }

  {
    if (isFlushingPassiveEffects) {
      didScheduleUpdateDuringPassiveEffects = true;
    }
  } // Mark that the root has a pending update.


  markRootUpdated(root, lane, eventTime);

  if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) {
    // This update was dispatched during the render phase. This is a mistake
    // if the update originates from user space (with the exception of local
    // hook updates, which are handled differently and don't reach this
    // function), but there are some internal React features that use this as
    // an implementation detail, like selective hydration.
    warnAboutRenderPhaseUpdatesInDEV(fiber); // Track lanes that were updated during the render phase
  } else {
    // This is a normal update, scheduled from outside the render phase. For
    // example, during an input event.
    {
      if (isDevToolsPresent) {
        addFiberToLanesMap(root, fiber, lane);
      }
    }

    warnIfUpdatesNotWrappedWithActDEV(fiber);

    if (root === workInProgressRoot) {
      // Received an update to a tree that's in the middle of rendering. Mark
      // that there was an interleaved update work on this root. Unless the
      // `deferRenderPhaseUpdateToNextBatch` flag is off and this is a render
      // phase update. In that case, we don't treat render phase updates as if
      // they were interleaved, for backwards compat reasons.
      if ( (executionContext & RenderContext) === NoContext) {
        workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane);
      }

      if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
        // The root already suspended with a delay, which means this render
        // definitely won't finish. Since we have a new update, let's mark it as
        // suspended now, right before marking the incoming update. This has the
        // effect of interrupting the current render and switching to the update.
        // TODO: Make sure this doesn't override pings that happen while we've
        // already started rendering.
        markRootSuspended$1(root, workInProgressRootRenderLanes);
      }
    }

    ensureRootIsScheduled(root, eventTime);

    if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
    !( ReactCurrentActQueue$1.isBatchingLegacy)) {
      // Flush the synchronous work now, unless we're already working or inside
      // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
      // scheduleCallbackForFiber to preserve the ability to schedule a callback
      // without immediately flushing it. We only do this for user-initiated
      // updates, to preserve historical behavior of legacy mode.
      resetRenderTimer();
      flushSyncCallbacksOnlyInLegacyMode();
    }
  }
}
function scheduleInitialHydrationOnRoot(root, lane, eventTime) {
  // This is a special fork of scheduleUpdateOnFiber that is only used to
  // schedule the initial hydration of a root that has just been created. Most
  // of the stuff in scheduleUpdateOnFiber can be skipped.
  //
  // The main reason for this separate path, though, is to distinguish the
  // initial children from subsequent updates. In fully client-rendered roots
  // (createRoot instead of hydrateRoot), all top-level renders are modeled as
  // updates, but hydration roots are special because the initial render must
  // match what was rendered on the server.
  var current = root.current;
  current.lanes = lane;
  markRootUpdated(root, lane, eventTime);
  ensureRootIsScheduled(root, eventTime);
}
function isUnsafeClassRenderPhaseUpdate(fiber) {
  // Check if this is a render phase update. Only called by class components,
  // which special (deprecated) behavior for UNSAFE_componentWillReceive props.
  return (// TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We
    // decided not to enable it.
     (executionContext & RenderContext) !== NoContext
  );
} // Use this function to schedule a task for a root. There's only one task per
// root; if a task was already scheduled, we'll check to make sure the priority
// of the existing task is the same as the priority of the next level that the
// root has work on. This function is called on every update, and right before
// exiting a task.

function ensureRootIsScheduled(root, currentTime) {
  var existingCallbackNode = root.callbackNode; // Check if any lanes are being starved by other work. If so, mark them as
  // expired so we know to work on those next.

  markStarvedLanesAsExpired(root, currentTime); // Determine the next lanes to work on, and their priority.

  var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);

  if (nextLanes === NoLanes) {
    // Special case: There's nothing to work on.
    if (existingCallbackNode !== null) {
      cancelCallback$1(existingCallbackNode);
    }

    root.callbackNode = null;
    root.callbackPriority = NoLane;
    return;
  } // We use the highest priority lane to represent the priority of the callback.


  var newCallbackPriority = getHighestPriorityLane(nextLanes); // Check if there's an existing task. We may be able to reuse it.

  var existingCallbackPriority = root.callbackPriority;

  if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a
  // Scheduler task, rather than an `act` task, cancel it and re-scheduled
  // on the `act` queue.
  !( ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) {
    {
      // If we're going to re-use an existing task, it needs to exist.
      // Assume that discrete update microtasks are non-cancellable and null.
      // TODO: Temporary until we confirm this warning is not fired.
      if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) {
        error('Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.');
      }
    } // The priority hasn't changed. We can reuse the existing task. Exit.


    return;
  }

  if (existingCallbackNode != null) {
    // Cancel the existing callback. We'll schedule a new one below.
    cancelCallback$1(existingCallbackNode);
  } // Schedule a new callback.


  var newCallbackNode;

  if (newCallbackPriority === SyncLane) {
    // Special case: Sync React callbacks are scheduled on a special
    // internal queue
    if (root.tag === LegacyRoot) {
      if ( ReactCurrentActQueue$1.isBatchingLegacy !== null) {
        ReactCurrentActQueue$1.didScheduleLegacyUpdate = true;
      }

      scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root));
    } else {
      scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));
    }

    {
      // Flush the queue in a microtask.
      if ( ReactCurrentActQueue$1.current !== null) {
        // Inside `act`, use our internal `act` queue so that these get flushed
        // at the end of the current scope even when using the sync version
        // of `act`.
        ReactCurrentActQueue$1.current.push(flushSyncCallbacks);
      } else {
        scheduleMicrotask(function () {
          // In Safari, appending an iframe forces microtasks to run.
          // https://github.com/facebook/react/issues/22459
          // We don't support running callbacks in the middle of render
          // or commit so we need to check against that.
          if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
            // Note that this would still prematurely flush the callbacks
            // if this happens outside render or commit phase (e.g. in an event).
            flushSyncCallbacks();
          }
        });
      }
    }

    newCallbackNode = null;
  } else {
    var schedulerPriorityLevel;

    switch (lanesToEventPriority(nextLanes)) {
      case DiscreteEventPriority:
        schedulerPriorityLevel = ImmediatePriority;
        break;

      case ContinuousEventPriority:
        schedulerPriorityLevel = UserBlockingPriority;
        break;

      case DefaultEventPriority:
        schedulerPriorityLevel = NormalPriority;
        break;

      case IdleEventPriority:
        schedulerPriorityLevel = IdlePriority;
        break;

      default:
        schedulerPriorityLevel = NormalPriority;
        break;
    }

    newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root));
  }

  root.callbackPriority = newCallbackPriority;
  root.callbackNode = newCallbackNode;
} // This is the entry point for every concurrent task, i.e. anything that
// goes through Scheduler.


function performConcurrentWorkOnRoot(root, didTimeout) {
  {
    resetNestedUpdateFlag();
  } // Since we know we're in a React event, we can clear the current
  // event time. The next update will compute a new event time.


  currentEventTime = NoTimestamp;
  currentEventTransitionLane = NoLanes;

  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    throw new Error('Should not already be working.');
  } // Flush any pending passive effects before deciding which lanes to work on,
  // in case they schedule additional work.


  var originalCallbackNode = root.callbackNode;
  var didFlushPassiveEffects = flushPassiveEffects();

  if (didFlushPassiveEffects) {
    // Something in the passive effect phase may have canceled the current task.
    // Check if the task node for this root was changed.
    if (root.callbackNode !== originalCallbackNode) {
      // The current task was canceled. Exit. We don't need to call
      // `ensureRootIsScheduled` because the check above implies either that
      // there's a new task, or that there's no remaining work on this root.
      return null;
    }
  } // Determine the next lanes to work on, using the fields stored
  // on the root.


  var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes);

  if (lanes === NoLanes) {
    // Defensive coding. This is never expected to happen.
    return null;
  } // We disable time-slicing in some cases: if the work has been CPU-bound
  // for too long ("expired" work, to prevent starvation), or we're in
  // sync-updates-by-default mode.
  // TODO: We only check `didTimeout` defensively, to account for a Scheduler
  // bug we're still investigating. Once the bug in Scheduler is fixed,
  // we can remove this, since we track expiration ourselves.


  var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && ( !didTimeout);
  var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes);

  if (exitStatus !== RootInProgress) {
    if (exitStatus === RootErrored) {
      // If something threw an error, try rendering one more time. We'll
      // render synchronously to block concurrent data mutations, and we'll
      // includes all pending updates are included. If it still fails after
      // the second attempt, we'll give up and commit the resulting tree.
      var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);

      if (errorRetryLanes !== NoLanes) {
        lanes = errorRetryLanes;
        exitStatus = recoverFromConcurrentError(root, errorRetryLanes);
      }
    }

    if (exitStatus === RootFatalErrored) {
      var fatalError = workInProgressRootFatalError;
      prepareFreshStack(root, NoLanes);
      markRootSuspended$1(root, lanes);
      ensureRootIsScheduled(root, now());
      throw fatalError;
    }

    if (exitStatus === RootDidNotComplete) {
      // The render unwound without completing the tree. This happens in special
      // cases where need to exit the current render without producing a
      // consistent tree or committing.
      //
      // This should only happen during a concurrent render, not a discrete or
      // synchronous update. We should have already checked for this when we
      // unwound the stack.
      markRootSuspended$1(root, lanes);
    } else {
      // The render completed.
      // Check if this render may have yielded to a concurrent event, and if so,
      // confirm that any newly rendered stores are consistent.
      // TODO: It's possible that even a concurrent render may never have yielded
      // to the main thread, if it was fast enough, or if it expired. We could
      // skip the consistency check in that case, too.
      var renderWasConcurrent = !includesBlockingLane(root, lanes);
      var finishedWork = root.current.alternate;

      if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) {
        // A store was mutated in an interleaved event. Render again,
        // synchronously, to block further mutations.
        exitStatus = renderRootSync(root, lanes); // We need to check again if something threw

        if (exitStatus === RootErrored) {
          var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);

          if (_errorRetryLanes !== NoLanes) {
            lanes = _errorRetryLanes;
            exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); // We assume the tree is now consistent because we didn't yield to any
            // concurrent events.
          }
        }

        if (exitStatus === RootFatalErrored) {
          var _fatalError = workInProgressRootFatalError;
          prepareFreshStack(root, NoLanes);
          markRootSuspended$1(root, lanes);
          ensureRootIsScheduled(root, now());
          throw _fatalError;
        }
      } // We now have a consistent tree. The next step is either to commit it,
      // or, if something suspended, wait to commit it after a timeout.


      root.finishedWork = finishedWork;
      root.finishedLanes = lanes;
      finishConcurrentRender(root, exitStatus, lanes);
    }
  }

  ensureRootIsScheduled(root, now());

  if (root.callbackNode === originalCallbackNode) {
    // The task node scheduled for this root is the same one that's
    // currently executed. Need to return a continuation.
    return performConcurrentWorkOnRoot.bind(null, root);
  }

  return null;
}

function recoverFromConcurrentError(root, errorRetryLanes) {
  // If an error occurred during hydration, discard server response and fall
  // back to client side render.
  // Before rendering again, save the errors from the previous attempt.
  var errorsFromFirstAttempt = workInProgressRootConcurrentErrors;

  if (isRootDehydrated(root)) {
    // The shell failed to hydrate. Set a flag to force a client rendering
    // during the next attempt. To do this, we call prepareFreshStack now
    // to create the root work-in-progress fiber. This is a bit weird in terms
    // of factoring, because it relies on renderRootSync not calling
    // prepareFreshStack again in the call below, which happens because the
    // root and lanes haven't changed.
    //
    // TODO: I think what we should do is set ForceClientRender inside
    // throwException, like we do for nested Suspense boundaries. The reason
    // it's here instead is so we can switch to the synchronous work loop, too.
    // Something to consider for a future refactor.
    var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes);
    rootWorkInProgress.flags |= ForceClientRender;

    {
      errorHydratingContainer(root.containerInfo);
    }
  }

  var exitStatus = renderRootSync(root, errorRetryLanes);

  if (exitStatus !== RootErrored) {
    // Successfully finished rendering on retry
    // The errors from the failed first attempt have been recovered. Add
    // them to the collection of recoverable errors. We'll log them in the
    // commit phase.
    var errorsFromSecondAttempt = workInProgressRootRecoverableErrors;
    workInProgressRootRecoverableErrors = errorsFromFirstAttempt; // The errors from the second attempt should be queued after the errors
    // from the first attempt, to preserve the causal sequence.

    if (errorsFromSecondAttempt !== null) {
      queueRecoverableErrors(errorsFromSecondAttempt);
    }
  }

  return exitStatus;
}

function queueRecoverableErrors(errors) {
  if (workInProgressRootRecoverableErrors === null) {
    workInProgressRootRecoverableErrors = errors;
  } else {
    workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors);
  }
}

function finishConcurrentRender(root, exitStatus, lanes) {
  switch (exitStatus) {
    case RootInProgress:
    case RootFatalErrored:
      {
        throw new Error('Root did not complete. This is a bug in React.');
      }
    // Flow knows about invariant, so it complains if I add a break
    // statement, but eslint doesn't know about invariant, so it complains
    // if I do. eslint-disable-next-line no-fallthrough

    case RootErrored:
      {
        // We should have already attempted to retry this tree. If we reached
        // this point, it errored again. Commit it.
        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
        break;
      }

    case RootSuspended:
      {
        markRootSuspended$1(root, lanes); // We have an acceptable loading state. We need to figure out if we
        // should immediately commit it or wait a bit.

        if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope
        !shouldForceFlushFallbacksInDEV()) {
          // This render only included retries, no updates. Throttle committing
          // retries so that we don't show too many loading states too quickly.
          var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.

          if (msUntilTimeout > 10) {
            var nextLanes = getNextLanes(root, NoLanes);

            if (nextLanes !== NoLanes) {
              // There's additional work on this root.
              break;
            }

            var suspendedLanes = root.suspendedLanes;

            if (!isSubsetOfLanes(suspendedLanes, lanes)) {
              // We should prefer to render the fallback of at the last
              // suspended level. Ping the last suspended level to try
              // rendering it again.
              // FIXME: What if the suspended lanes are Idle? Should not restart.
              var eventTime = requestEventTime();
              markRootPinged(root, suspendedLanes);
              break;
            } // The render is suspended, it hasn't timed out, and there's no
            // lower priority work to do. Instead of committing the fallback
            // immediately, wait for more data to arrive.


            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout);
            break;
          }
        } // The work expired. Commit immediately.


        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
        break;
      }

    case RootSuspendedWithDelay:
      {
        markRootSuspended$1(root, lanes);

        if (includesOnlyTransitions(lanes)) {
          // This is a transition, so we should exit without committing a
          // placeholder and without scheduling a timeout. Delay indefinitely
          // until we receive more data.
          break;
        }

        if (!shouldForceFlushFallbacksInDEV()) {
          // This is not a transition, but we did trigger an avoided state.
          // Schedule a placeholder to display after a short delay, using the Just
          // Noticeable Difference.
          // TODO: Is the JND optimization worth the added complexity? If this is
          // the only reason we track the event time, then probably not.
          // Consider removing.
          var mostRecentEventTime = getMostRecentEventTime(root, lanes);
          var eventTimeMs = mostRecentEventTime;
          var timeElapsedMs = now() - eventTimeMs;

          var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.


          if (_msUntilTimeout > 10) {
            // Instead of committing the fallback immediately, wait for more data
            // to arrive.
            root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout);
            break;
          }
        } // Commit the placeholder.


        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
        break;
      }

    case RootCompleted:
      {
        // The work completed. Ready to commit.
        commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions);
        break;
      }

    default:
      {
        throw new Error('Unknown root exit status.');
      }
  }
}

function isRenderConsistentWithExternalStores(finishedWork) {
  // Search the rendered tree for external store reads, and check whether the
  // stores were mutated in a concurrent event. Intentionally using an iterative
  // loop instead of recursion so we can exit early.
  var node = finishedWork;

  while (true) {
    if (node.flags & StoreConsistency) {
      var updateQueue = node.updateQueue;

      if (updateQueue !== null) {
        var checks = updateQueue.stores;

        if (checks !== null) {
          for (var i = 0; i < checks.length; i++) {
            var check = checks[i];
            var getSnapshot = check.getSnapshot;
            var renderedValue = check.value;

            try {
              if (!objectIs(getSnapshot(), renderedValue)) {
                // Found an inconsistent store.
                return false;
              }
            } catch (error) {
              // If `getSnapshot` throws, return `false`. This will schedule
              // a re-render, and the error will be rethrown during render.
              return false;
            }
          }
        }
      }
    }

    var child = node.child;

    if (node.subtreeFlags & StoreConsistency && child !== null) {
      child.return = node;
      node = child;
      continue;
    }

    if (node === finishedWork) {
      return true;
    }

    while (node.sibling === null) {
      if (node.return === null || node.return === finishedWork) {
        return true;
      }

      node = node.return;
    }

    node.sibling.return = node.return;
    node = node.sibling;
  } // Flow doesn't know this is unreachable, but eslint does
  // eslint-disable-next-line no-unreachable


  return true;
}

function markRootSuspended$1(root, suspendedLanes) {
  // When suspending, we should always exclude lanes that were pinged or (more
  // rarely, since we try to avoid it) updated during the render phase.
  // TODO: Lol maybe there's a better way to factor this besides this
  // obnoxiously named function :)
  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes);
  suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes);
  markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler


function performSyncWorkOnRoot(root) {
  {
    syncNestedUpdateFlag();
  }

  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    throw new Error('Should not already be working.');
  }

  flushPassiveEffects();
  var lanes = getNextLanes(root, NoLanes);

  if (!includesSomeLane(lanes, SyncLane)) {
    // There's no remaining sync work left.
    ensureRootIsScheduled(root, now());
    return null;
  }

  var exitStatus = renderRootSync(root, lanes);

  if (root.tag !== LegacyRoot && exitStatus === RootErrored) {
    // If something threw an error, try rendering one more time. We'll render
    // synchronously to block concurrent data mutations, and we'll includes
    // all pending updates are included. If it still fails after the second
    // attempt, we'll give up and commit the resulting tree.
    var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);

    if (errorRetryLanes !== NoLanes) {
      lanes = errorRetryLanes;
      exitStatus = recoverFromConcurrentError(root, errorRetryLanes);
    }
  }

  if (exitStatus === RootFatalErrored) {
    var fatalError = workInProgressRootFatalError;
    prepareFreshStack(root, NoLanes);
    markRootSuspended$1(root, lanes);
    ensureRootIsScheduled(root, now());
    throw fatalError;
  }

  if (exitStatus === RootDidNotComplete) {
    throw new Error('Root did not complete. This is a bug in React.');
  } // We now have a consistent tree. Because this is a sync render, we
  // will commit it even if something suspended.


  var finishedWork = root.current.alternate;
  root.finishedWork = finishedWork;
  root.finishedLanes = lanes;
  commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); // Before exiting, make sure there's a callback scheduled for the next
  // pending level.

  ensureRootIsScheduled(root, now());
  return null;
}

function flushRoot(root, lanes) {
  if (lanes !== NoLanes) {
    markRootEntangled(root, mergeLanes(lanes, SyncLane));
    ensureRootIsScheduled(root, now());

    if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
      resetRenderTimer();
      flushSyncCallbacks();
    }
  }
}
function batchedUpdates$1(fn, a) {
  var prevExecutionContext = executionContext;
  executionContext |= BatchedContext;

  try {
    return fn(a);
  } finally {
    executionContext = prevExecutionContext; // If there were legacy sync updates, flush them at the end of the outer
    // most batchedUpdates-like method.

    if (executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode.
    !( ReactCurrentActQueue$1.isBatchingLegacy)) {
      resetRenderTimer();
      flushSyncCallbacksOnlyInLegacyMode();
    }
  }
}
function discreteUpdates(fn, a, b, c, d) {
  var previousPriority = getCurrentUpdatePriority();
  var prevTransition = ReactCurrentBatchConfig$3.transition;

  try {
    ReactCurrentBatchConfig$3.transition = null;
    setCurrentUpdatePriority(DiscreteEventPriority);
    return fn(a, b, c, d);
  } finally {
    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig$3.transition = prevTransition;

    if (executionContext === NoContext) {
      resetRenderTimer();
    }
  }
} // Overload the definition to the two valid signatures.
// Warning, this opts-out of checking the function body.

// eslint-disable-next-line no-redeclare
function flushSync(fn) {
  // In legacy mode, we flush pending passive effects at the beginning of the
  // next event, not at the end of the previous one.
  if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) {
    flushPassiveEffects();
  }

  var prevExecutionContext = executionContext;
  executionContext |= BatchedContext;
  var prevTransition = ReactCurrentBatchConfig$3.transition;
  var previousPriority = getCurrentUpdatePriority();

  try {
    ReactCurrentBatchConfig$3.transition = null;
    setCurrentUpdatePriority(DiscreteEventPriority);

    if (fn) {
      return fn();
    } else {
      return undefined;
    }
  } finally {
    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig$3.transition = prevTransition;
    executionContext = prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.
    // Note that this will happen even if batchedUpdates is higher up
    // the stack.

    if ((executionContext & (RenderContext | CommitContext)) === NoContext) {
      flushSyncCallbacks();
    }
  }
}
function isAlreadyRendering() {
  // Used by the renderer to print a warning if certain APIs are called from
  // the wrong context.
  return  (executionContext & (RenderContext | CommitContext)) !== NoContext;
}
function pushRenderLanes(fiber, lanes) {
  push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber);
  subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes);
  workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes);
}
function popRenderLanes(fiber) {
  subtreeRenderLanes = subtreeRenderLanesCursor.current;
  pop(subtreeRenderLanesCursor, fiber);
}

function prepareFreshStack(root, lanes) {
  root.finishedWork = null;
  root.finishedLanes = NoLanes;
  var timeoutHandle = root.timeoutHandle;

  if (timeoutHandle !== noTimeout) {
    // The root previous suspended and scheduled a timeout to commit a fallback
    // state. Now that we have additional work, cancel the timeout.
    root.timeoutHandle = noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above

    cancelTimeout(timeoutHandle);
  }

  if (workInProgress !== null) {
    var interruptedWork = workInProgress.return;

    while (interruptedWork !== null) {
      var current = interruptedWork.alternate;
      unwindInterruptedWork(current, interruptedWork);
      interruptedWork = interruptedWork.return;
    }
  }

  workInProgressRoot = root;
  var rootWorkInProgress = createWorkInProgress(root.current, null);
  workInProgress = rootWorkInProgress;
  workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes;
  workInProgressRootExitStatus = RootInProgress;
  workInProgressRootFatalError = null;
  workInProgressRootSkippedLanes = NoLanes;
  workInProgressRootInterleavedUpdatedLanes = NoLanes;
  workInProgressRootPingedLanes = NoLanes;
  workInProgressRootConcurrentErrors = null;
  workInProgressRootRecoverableErrors = null;
  finishQueueingConcurrentUpdates();

  {
    ReactStrictModeWarnings.discardPendingWarnings();
  }

  return rootWorkInProgress;
}

function handleError(root, thrownValue) {
  do {
    var erroredWork = workInProgress;

    try {
      // Reset module-level state that was set during the render phase.
      resetContextDependencies();
      resetHooksAfterThrow();
      resetCurrentFiber(); // TODO: I found and added this missing line while investigating a
      // separate issue. Write a regression test using string refs.

      ReactCurrentOwner$2.current = null;

      if (erroredWork === null || erroredWork.return === null) {
        // Expected to be working on a non-root fiber. This is a fatal error
        // because there's no ancestor that can handle it; the root is
        // supposed to capture all errors that weren't caught by an error
        // boundary.
        workInProgressRootExitStatus = RootFatalErrored;
        workInProgressRootFatalError = thrownValue; // Set `workInProgress` to null. This represents advancing to the next
        // sibling, or the parent if there are no siblings. But since the root
        // has no siblings nor a parent, we set it to null. Usually this is
        // handled by `completeUnitOfWork` or `unwindWork`, but since we're
        // intentionally not calling those, we need set it here.
        // TODO: Consider calling `unwindWork` to pop the contexts.

        workInProgress = null;
        return;
      }

      if (enableProfilerTimer && erroredWork.mode & ProfileMode) {
        // Record the time spent rendering before an error was thrown. This
        // avoids inaccurate Profiler durations in the case of a
        // suspended render.
        stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true);
      }

      if (enableSchedulingProfiler) {
        markComponentRenderStopped();

        if (thrownValue !== null && typeof thrownValue === 'object' && typeof thrownValue.then === 'function') {
          var wakeable = thrownValue;
          markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes);
        } else {
          markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes);
        }
      }

      throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes);
      completeUnitOfWork(erroredWork);
    } catch (yetAnotherThrownValue) {
      // Something in the return path also threw.
      thrownValue = yetAnotherThrownValue;

      if (workInProgress === erroredWork && erroredWork !== null) {
        // If this boundary has already errored, then we had trouble processing
        // the error. Bubble it to the next boundary.
        erroredWork = erroredWork.return;
        workInProgress = erroredWork;
      } else {
        erroredWork = workInProgress;
      }

      continue;
    } // Return to the normal work loop.


    return;
  } while (true);
}

function pushDispatcher() {
  var prevDispatcher = ReactCurrentDispatcher$2.current;
  ReactCurrentDispatcher$2.current = ContextOnlyDispatcher;

  if (prevDispatcher === null) {
    // The React isomorphic package does not include a default dispatcher.
    // Instead the first renderer will lazily attach one, in order to give
    // nicer error messages.
    return ContextOnlyDispatcher;
  } else {
    return prevDispatcher;
  }
}

function popDispatcher(prevDispatcher) {
  ReactCurrentDispatcher$2.current = prevDispatcher;
}

function markCommitTimeOfFallback() {
  globalMostRecentFallbackTime = now();
}
function markSkippedUpdateLanes(lane) {
  workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes);
}
function renderDidSuspend() {
  if (workInProgressRootExitStatus === RootInProgress) {
    workInProgressRootExitStatus = RootSuspended;
  }
}
function renderDidSuspendDelayIfPossible() {
  if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) {
    workInProgressRootExitStatus = RootSuspendedWithDelay;
  } // Check if there are updates that we skipped tree that might have unblocked
  // this render.


  if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) {
    // Mark the current render as suspended so that we switch to working on
    // the updates that were skipped. Usually we only suspend at the end of
    // the render phase.
    // TODO: We should probably always mark the root as suspended immediately
    // (inside this function), since by suspending at the end of the render
    // phase introduces a potential mistake where we suspend lanes that were
    // pinged or updated while we were rendering.
    markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
  }
}
function renderDidError(error) {
  if (workInProgressRootExitStatus !== RootSuspendedWithDelay) {
    workInProgressRootExitStatus = RootErrored;
  }

  if (workInProgressRootConcurrentErrors === null) {
    workInProgressRootConcurrentErrors = [error];
  } else {
    workInProgressRootConcurrentErrors.push(error);
  }
} // Called during render to determine if anything has suspended.
// Returns false if we're not sure.

function renderHasNotSuspendedYet() {
  // If something errored or completed, we can't really be sure,
  // so those are false.
  return workInProgressRootExitStatus === RootInProgress;
}

function renderRootSync(root, lanes) {
  var prevExecutionContext = executionContext;
  executionContext |= RenderContext;
  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
  // and prepare a fresh one. Otherwise we'll continue where we left off.

  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
    {
      if (isDevToolsPresent) {
        var memoizedUpdaters = root.memoizedUpdaters;

        if (memoizedUpdaters.size > 0) {
          restorePendingUpdaters(root, workInProgressRootRenderLanes);
          memoizedUpdaters.clear();
        } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.
        // If we bailout on this work, we'll move them back (like above).
        // It's important to move them now in case the work spawns more work at the same priority with different updaters.
        // That way we can keep the current update and future updates separate.


        movePendingFibersToMemoized(root, lanes);
      }
    }

    workInProgressTransitions = getTransitionsForLanes();
    prepareFreshStack(root, lanes);
  }

  {
    markRenderStarted(lanes);
  }

  do {
    try {
      workLoopSync();
      break;
    } catch (thrownValue) {
      handleError(root, thrownValue);
    }
  } while (true);

  resetContextDependencies();
  executionContext = prevExecutionContext;
  popDispatcher(prevDispatcher);

  if (workInProgress !== null) {
    // This is a sync render, so we should have finished the whole tree.
    throw new Error('Cannot commit an incomplete root. This error is likely caused by a ' + 'bug in React. Please file an issue.');
  }

  {
    markRenderStopped();
  } // Set this to null to indicate there's no in-progress render.


  workInProgressRoot = null;
  workInProgressRootRenderLanes = NoLanes;
  return workInProgressRootExitStatus;
} // The work loop is an extremely hot path. Tell Closure not to inline it.

/** @noinline */


function workLoopSync() {
  // Already timed out, so perform work without checking if we need to yield.
  while (workInProgress !== null) {
    performUnitOfWork(workInProgress);
  }
}

function renderRootConcurrent(root, lanes) {
  var prevExecutionContext = executionContext;
  executionContext |= RenderContext;
  var prevDispatcher = pushDispatcher(); // If the root or lanes have changed, throw out the existing stack
  // and prepare a fresh one. Otherwise we'll continue where we left off.

  if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
    {
      if (isDevToolsPresent) {
        var memoizedUpdaters = root.memoizedUpdaters;

        if (memoizedUpdaters.size > 0) {
          restorePendingUpdaters(root, workInProgressRootRenderLanes);
          memoizedUpdaters.clear();
        } // At this point, move Fibers that scheduled the upcoming work from the Map to the Set.
        // If we bailout on this work, we'll move them back (like above).
        // It's important to move them now in case the work spawns more work at the same priority with different updaters.
        // That way we can keep the current update and future updates separate.


        movePendingFibersToMemoized(root, lanes);
      }
    }

    workInProgressTransitions = getTransitionsForLanes();
    resetRenderTimer();
    prepareFreshStack(root, lanes);
  }

  {
    markRenderStarted(lanes);
  }

  do {
    try {
      workLoopConcurrent();
      break;
    } catch (thrownValue) {
      handleError(root, thrownValue);
    }
  } while (true);

  resetContextDependencies();
  popDispatcher(prevDispatcher);
  executionContext = prevExecutionContext;


  if (workInProgress !== null) {
    // Still work remaining.
    {
      markRenderYielded();
    }

    return RootInProgress;
  } else {
    // Completed the tree.
    {
      markRenderStopped();
    } // Set this to null to indicate there's no in-progress render.


    workInProgressRoot = null;
    workInProgressRootRenderLanes = NoLanes; // Return the final exit status.

    return workInProgressRootExitStatus;
  }
}
/** @noinline */


function workLoopConcurrent() {
  // Perform work until Scheduler asks us to yield
  while (workInProgress !== null && !shouldYield()) {
    performUnitOfWork(workInProgress);
  }
}

function performUnitOfWork(unitOfWork) {
  // The current, flushed, state of this fiber is the alternate. Ideally
  // nothing should rely on this, but relying on it here means that we don't
  // need an additional field on the work in progress.
  var current = unitOfWork.alternate;
  setCurrentFiber(unitOfWork);
  var next;

  if ( (unitOfWork.mode & ProfileMode) !== NoMode) {
    startProfilerTimer(unitOfWork);
    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  } else {
    next = beginWork$1(current, unitOfWork, subtreeRenderLanes);
  }

  resetCurrentFiber();
  unitOfWork.memoizedProps = unitOfWork.pendingProps;

  if (next === null) {
    // If this doesn't spawn new work, complete the current work.
    completeUnitOfWork(unitOfWork);
  } else {
    workInProgress = next;
  }

  ReactCurrentOwner$2.current = null;
}

function completeUnitOfWork(unitOfWork) {
  // Attempt to complete the current unit of work, then move to the next
  // sibling. If there are no more siblings, return to the parent fiber.
  var completedWork = unitOfWork;

  do {
    // The current, flushed, state of this fiber is the alternate. Ideally
    // nothing should rely on this, but relying on it here means that we don't
    // need an additional field on the work in progress.
    var current = completedWork.alternate;
    var returnFiber = completedWork.return; // Check if the work completed or if something threw.

    if ((completedWork.flags & Incomplete) === NoFlags) {
      setCurrentFiber(completedWork);
      var next = void 0;

      if ( (completedWork.mode & ProfileMode) === NoMode) {
        next = completeWork(current, completedWork, subtreeRenderLanes);
      } else {
        startProfilerTimer(completedWork);
        next = completeWork(current, completedWork, subtreeRenderLanes); // Update render duration assuming we didn't error.

        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false);
      }

      resetCurrentFiber();

      if (next !== null) {
        // Completing this fiber spawned new work. Work on that next.
        workInProgress = next;
        return;
      }
    } else {
      // This fiber did not complete because something threw. Pop values off
      // the stack without entering the complete phase. If this is a boundary,
      // capture values if possible.
      var _next = unwindWork(current, completedWork); // Because this fiber did not complete, don't reset its lanes.


      if (_next !== null) {
        // If completing this work spawned new work, do that next. We'll come
        // back here again.
        // Since we're restarting, remove anything that is not a host effect
        // from the effect tag.
        _next.flags &= HostEffectMask;
        workInProgress = _next;
        return;
      }

      if ( (completedWork.mode & ProfileMode) !== NoMode) {
        // Record the render duration for the fiber that errored.
        stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); // Include the time spent working on failed children before continuing.

        var actualDuration = completedWork.actualDuration;
        var child = completedWork.child;

        while (child !== null) {
          actualDuration += child.actualDuration;
          child = child.sibling;
        }

        completedWork.actualDuration = actualDuration;
      }

      if (returnFiber !== null) {
        // Mark the parent fiber as incomplete and clear its subtree flags.
        returnFiber.flags |= Incomplete;
        returnFiber.subtreeFlags = NoFlags;
        returnFiber.deletions = null;
      } else {
        // We've unwound all the way to the root.
        workInProgressRootExitStatus = RootDidNotComplete;
        workInProgress = null;
        return;
      }
    }

    var siblingFiber = completedWork.sibling;

    if (siblingFiber !== null) {
      // If there is more work to do in this returnFiber, do that next.
      workInProgress = siblingFiber;
      return;
    } // Otherwise, return to the parent


    completedWork = returnFiber; // Update the next thing we're working on in case something throws.

    workInProgress = completedWork;
  } while (completedWork !== null); // We've reached the root.


  if (workInProgressRootExitStatus === RootInProgress) {
    workInProgressRootExitStatus = RootCompleted;
  }
}

function commitRoot(root, recoverableErrors, transitions) {
  // TODO: This no longer makes any sense. We already wrap the mutation and
  // layout phases. Should be able to remove.
  var previousUpdateLanePriority = getCurrentUpdatePriority();
  var prevTransition = ReactCurrentBatchConfig$3.transition;

  try {
    ReactCurrentBatchConfig$3.transition = null;
    setCurrentUpdatePriority(DiscreteEventPriority);
    commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority);
  } finally {
    ReactCurrentBatchConfig$3.transition = prevTransition;
    setCurrentUpdatePriority(previousUpdateLanePriority);
  }

  return null;
}

function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) {
  do {
    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which
    // means `flushPassiveEffects` will sometimes result in additional
    // passive effects. So we need to keep flushing in a loop until there are
    // no more pending effects.
    // TODO: Might be better if `flushPassiveEffects` did not automatically
    // flush synchronous work at the end, to avoid factoring hazards like this.
    flushPassiveEffects();
  } while (rootWithPendingPassiveEffects !== null);

  flushRenderPhaseStrictModeWarningsInDEV();

  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    throw new Error('Should not already be working.');
  }

  var finishedWork = root.finishedWork;
  var lanes = root.finishedLanes;

  {
    markCommitStarted(lanes);
  }

  if (finishedWork === null) {

    {
      markCommitStopped();
    }

    return null;
  } else {
    {
      if (lanes === NoLanes) {
        error('root.finishedLanes should not be empty during a commit. This is a ' + 'bug in React.');
      }
    }
  }

  root.finishedWork = null;
  root.finishedLanes = NoLanes;

  if (finishedWork === root.current) {
    throw new Error('Cannot commit the same tree as before. This error is likely caused by ' + 'a bug in React. Please file an issue.');
  } // commitRoot never returns a continuation; it always finishes synchronously.
  // So we can clear these now to allow a new callback to be scheduled.


  root.callbackNode = null;
  root.callbackPriority = NoLane; // Update the first and last pending times on this root. The new first
  // pending time is whatever is left on the root fiber.

  var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes);
  markRootFinished(root, remainingLanes);

  if (root === workInProgressRoot) {
    // We can reset these now that they are finished.
    workInProgressRoot = null;
    workInProgress = null;
    workInProgressRootRenderLanes = NoLanes;
  } // If there are pending passive effects, schedule a callback to process them.
  // Do this as early as possible, so it is queued before anything else that
  // might get scheduled in the commit phase. (See #16714.)
  // TODO: Delete all other places that schedule the passive effect callback
  // They're redundant.


  if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) {
    if (!rootDoesHavePassiveEffects) {
      rootDoesHavePassiveEffects = true;
      // to store it in pendingPassiveTransitions until they get processed
      // We need to pass this through as an argument to commitRoot
      // because workInProgressTransitions might have changed between
      // the previous render and commit if we throttle the commit
      // with setTimeout

      pendingPassiveTransitions = transitions;
      scheduleCallback$1(NormalPriority, function () {
        flushPassiveEffects(); // This render triggered passive effects: release the root cache pool
        // *after* passive effects fire to avoid freeing a cache pool that may
        // be referenced by a node in the tree (HostRoot, Cache boundary etc)

        return null;
      });
    }
  } // Check if there are any effects in the whole tree.
  // TODO: This is left over from the effect list implementation, where we had
  // to check for the existence of `firstEffect` to satisfy Flow. I think the
  // only other reason this optimization exists is because it affects profiling.
  // Reconsider whether this is necessary.


  var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;
  var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags;

  if (subtreeHasEffects || rootHasEffect) {
    var prevTransition = ReactCurrentBatchConfig$3.transition;
    ReactCurrentBatchConfig$3.transition = null;
    var previousPriority = getCurrentUpdatePriority();
    setCurrentUpdatePriority(DiscreteEventPriority);
    var prevExecutionContext = executionContext;
    executionContext |= CommitContext; // Reset this to null before calling lifecycles

    ReactCurrentOwner$2.current = null; // The commit phase is broken into several sub-phases. We do a separate pass
    // of the effect list for each phase: all mutation effects come before all
    // layout effects, and so on.
    // The first phase a "before mutation" phase. We use this phase to read the
    // state of the host tree right before we mutate it. This is where
    // getSnapshotBeforeUpdate is called.

    var shouldFireAfterActiveInstanceBlur = commitBeforeMutationEffects(root, finishedWork);

    {
      // Mark the current commit time to be shared by all Profilers in this
      // batch. This enables them to be grouped later.
      recordCommitTime();
    }


    commitMutationEffects(root, finishedWork, lanes);

    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after
    // the mutation phase, so that the previous tree is still current during
    // componentWillUnmount, but before the layout phase, so that the finished
    // work is current during componentDidMount/Update.

    root.current = finishedWork; // The next phase is the layout phase, where we call effects that read

    {
      markLayoutEffectsStarted(lanes);
    }

    commitLayoutEffects(finishedWork, root, lanes);

    {
      markLayoutEffectsStopped();
    }
    // opportunity to paint.


    requestPaint();
    executionContext = prevExecutionContext; // Reset the priority to the previous non-sync value.

    setCurrentUpdatePriority(previousPriority);
    ReactCurrentBatchConfig$3.transition = prevTransition;
  } else {
    // No effects.
    root.current = finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were
    // no effects.
    // TODO: Maybe there's a better way to report this.

    {
      recordCommitTime();
    }
  }

  var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;

  if (rootDoesHavePassiveEffects) {
    // This commit has passive effects. Stash a reference to them. But don't
    // schedule a callback until after flushing layout work.
    rootDoesHavePassiveEffects = false;
    rootWithPendingPassiveEffects = root;
    pendingPassiveEffectsLanes = lanes;
  } else {

    {
      nestedPassiveUpdateCount = 0;
      rootWithPassiveNestedUpdates = null;
    }
  } // Read this again, since an effect might have updated it


  remainingLanes = root.pendingLanes; // Check if there's remaining work on this root
  // TODO: This is part of the `componentDidCatch` implementation. Its purpose
  // is to detect whether something might have called setState inside
  // `componentDidCatch`. The mechanism is known to be flawed because `setState`
  // inside `componentDidCatch` is itself flawed — that's why we recommend
  // `getDerivedStateFromError` instead. However, it could be improved by
  // checking if remainingLanes includes Sync work, instead of whether there's
  // any work remaining at all (which would also include stuff like Suspense
  // retries or transitions). It's been like this for a while, though, so fixing
  // it probably isn't that urgent.

  if (remainingLanes === NoLanes) {
    // If there's no remaining work, we can clear the set of already failed
    // error boundaries.
    legacyErrorBoundariesThatAlreadyFailed = null;
  }

  {
    if (!rootDidHavePassiveEffects) {
      commitDoubleInvokeEffectsInDEV(root.current, false);
    }
  }

  onCommitRoot(finishedWork.stateNode, renderPriorityLevel);

  {
    if (isDevToolsPresent) {
      root.memoizedUpdaters.clear();
    }
  }

  {
    onCommitRoot$1();
  } // Always call this before exiting `commitRoot`, to ensure that any
  // additional work on this root is scheduled.


  ensureRootIsScheduled(root, now());

  if (recoverableErrors !== null) {
    // There were errors during this render, but recovered from them without
    // needing to surface it to the UI. We log them here.
    var onRecoverableError = root.onRecoverableError;

    for (var i = 0; i < recoverableErrors.length; i++) {
      var recoverableError = recoverableErrors[i];
      var componentStack = recoverableError.stack;
      var digest = recoverableError.digest;
      onRecoverableError(recoverableError.value, {
        componentStack: componentStack,
        digest: digest
      });
    }
  }

  if (hasUncaughtError) {
    hasUncaughtError = false;
    var error$1 = firstUncaughtError;
    firstUncaughtError = null;
    throw error$1;
  } // If the passive effects are the result of a discrete render, flush them
  // synchronously at the end of the current task so that the result is
  // immediately observable. Otherwise, we assume that they are not
  // order-dependent and do not need to be observed by external systems, so we
  // can wait until after paint.
  // TODO: We can optimize this by not scheduling the callback earlier. Since we
  // currently schedule the callback in multiple places, will wait until those
  // are consolidated.


  if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) {
    flushPassiveEffects();
  } // Read this again, since a passive effect might have updated it


  remainingLanes = root.pendingLanes;

  if (includesSomeLane(remainingLanes, SyncLane)) {
    {
      markNestedUpdateScheduled();
    } // Count the number of times the root synchronously re-renders without
    // finishing. If there are too many, it indicates an infinite update loop.


    if (root === rootWithNestedUpdates) {
      nestedUpdateCount++;
    } else {
      nestedUpdateCount = 0;
      rootWithNestedUpdates = root;
    }
  } else {
    nestedUpdateCount = 0;
  } // If layout work was scheduled, flush it now.


  flushSyncCallbacks();

  {
    markCommitStopped();
  }

  return null;
}

function flushPassiveEffects() {
  // Returns whether passive effects were flushed.
  // TODO: Combine this check with the one in flushPassiveEFfectsImpl. We should
  // probably just combine the two functions. I believe they were only separate
  // in the first place because we used to wrap it with
  // `Scheduler.runWithPriority`, which accepts a function. But now we track the
  // priority within React itself, so we can mutate the variable directly.
  if (rootWithPendingPassiveEffects !== null) {
    var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes);
    var priority = lowerEventPriority(DefaultEventPriority, renderPriority);
    var prevTransition = ReactCurrentBatchConfig$3.transition;
    var previousPriority = getCurrentUpdatePriority();

    try {
      ReactCurrentBatchConfig$3.transition = null;
      setCurrentUpdatePriority(priority);
      return flushPassiveEffectsImpl();
    } finally {
      setCurrentUpdatePriority(previousPriority);
      ReactCurrentBatchConfig$3.transition = prevTransition; // Once passive effects have run for the tree - giving components a
    }
  }

  return false;
}
function enqueuePendingPassiveProfilerEffect(fiber) {
  {
    pendingPassiveProfilerEffects.push(fiber);

    if (!rootDoesHavePassiveEffects) {
      rootDoesHavePassiveEffects = true;
      scheduleCallback$1(NormalPriority, function () {
        flushPassiveEffects();
        return null;
      });
    }
  }
}

function flushPassiveEffectsImpl() {
  if (rootWithPendingPassiveEffects === null) {
    return false;
  } // Cache and clear the transitions flag


  var transitions = pendingPassiveTransitions;
  pendingPassiveTransitions = null;
  var root = rootWithPendingPassiveEffects;
  var lanes = pendingPassiveEffectsLanes;
  rootWithPendingPassiveEffects = null; // TODO: This is sometimes out of sync with rootWithPendingPassiveEffects.
  // Figure out why and fix it. It's not causing any known issues (probably
  // because it's only used for profiling), but it's a refactor hazard.

  pendingPassiveEffectsLanes = NoLanes;

  if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
    throw new Error('Cannot flush passive effects while already rendering.');
  }

  {
    isFlushingPassiveEffects = true;
    didScheduleUpdateDuringPassiveEffects = false;
  }

  {
    markPassiveEffectsStarted(lanes);
  }

  var prevExecutionContext = executionContext;
  executionContext |= CommitContext;
  commitPassiveUnmountEffects(root.current);
  commitPassiveMountEffects(root, root.current, lanes, transitions); // TODO: Move to commitPassiveMountEffects

  {
    var profilerEffects = pendingPassiveProfilerEffects;
    pendingPassiveProfilerEffects = [];

    for (var i = 0; i < profilerEffects.length; i++) {
      var _fiber = profilerEffects[i];
      commitPassiveEffectDurations(root, _fiber);
    }
  }

  {
    markPassiveEffectsStopped();
  }

  {
    commitDoubleInvokeEffectsInDEV(root.current, true);
  }

  executionContext = prevExecutionContext;
  flushSyncCallbacks();

  {
    // If additional passive effects were scheduled, increment a counter. If this
    // exceeds the limit, we'll fire a warning.
    if (didScheduleUpdateDuringPassiveEffects) {
      if (root === rootWithPassiveNestedUpdates) {
        nestedPassiveUpdateCount++;
      } else {
        nestedPassiveUpdateCount = 0;
        rootWithPassiveNestedUpdates = root;
      }
    } else {
      nestedPassiveUpdateCount = 0;
    }

    isFlushingPassiveEffects = false;
    didScheduleUpdateDuringPassiveEffects = false;
  } // TODO: Move to commitPassiveMountEffects


  onPostCommitRoot(root);

  {
    var stateNode = root.current.stateNode;
    stateNode.effectDuration = 0;
    stateNode.passiveEffectDuration = 0;
  }

  return true;
}

function isAlreadyFailedLegacyErrorBoundary(instance) {
  return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
}
function markLegacyErrorBoundaryAsFailed(instance) {
  if (legacyErrorBoundariesThatAlreadyFailed === null) {
    legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  } else {
    legacyErrorBoundariesThatAlreadyFailed.add(instance);
  }
}

function prepareToThrowUncaughtError(error) {
  if (!hasUncaughtError) {
    hasUncaughtError = true;
    firstUncaughtError = error;
  }
}

var onUncaughtError = prepareToThrowUncaughtError;

function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  var errorInfo = createCapturedValueAtFiber(error, sourceFiber);
  var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane);
  var root = enqueueUpdate(rootFiber, update, SyncLane);
  var eventTime = requestEventTime();

  if (root !== null) {
    markRootUpdated(root, SyncLane, eventTime);
    ensureRootIsScheduled(root, eventTime);
  }
}

function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) {
  {
    reportUncaughtErrorInDEV(error$1);
    setIsRunningInsertionEffect(false);
  }

  if (sourceFiber.tag === HostRoot) {
    // Error was thrown at the root. There is no parent, so the root
    // itself should capture it.
    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1);
    return;
  }

  var fiber = null;

  {
    fiber = nearestMountedAncestor;
  }

  while (fiber !== null) {
    if (fiber.tag === HostRoot) {
      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1);
      return;
    } else if (fiber.tag === ClassComponent) {
      var ctor = fiber.type;
      var instance = fiber.stateNode;

      if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
        var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber);
        var update = createClassErrorUpdate(fiber, errorInfo, SyncLane);
        var root = enqueueUpdate(fiber, update, SyncLane);
        var eventTime = requestEventTime();

        if (root !== null) {
          markRootUpdated(root, SyncLane, eventTime);
          ensureRootIsScheduled(root, eventTime);
        }

        return;
      }
    }

    fiber = fiber.return;
  }

  {
    // TODO: Until we re-land skipUnmountedBoundaries (see #20147), this warning
    // will fire for errors that are thrown by destroy functions inside deleted
    // trees. What it should instead do is propagate the error to the parent of
    // the deleted tree. In the meantime, do not add this warning to the
    // allowlist; this is only for our internal use.
    error('Internal React error: Attempted to capture a commit phase error ' + 'inside a detached tree. This indicates a bug in React. Likely ' + 'causes include deleting the same fiber more than once, committing an ' + 'already-finished tree, or an inconsistent return pointer.\n\n' + 'Error message:\n\n%s', error$1);
  }
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
  var pingCache = root.pingCache;

  if (pingCache !== null) {
    // The wakeable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    pingCache.delete(wakeable);
  }

  var eventTime = requestEventTime();
  markRootPinged(root, pingedLanes);
  warnIfSuspenseResolutionNotWrappedWithActDEV(root);

  if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) {
    // Received a ping at the same priority level at which we're currently
    // rendering. We might want to restart this render. This should mirror
    // the logic of whether or not a root suspends once it completes.
    // TODO: If we're rendering sync either due to Sync, Batched or expired,
    // we should probably never restart.
    // If we're suspended with delay, or if it's a retry, we'll always suspend
    // so we can always restart.
    if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
      // Restart from the root.
      prepareFreshStack(root, NoLanes);
    } else {
      // Even though we can't restart right now, we might get an
      // opportunity later. So we mark this render as having a ping.
      workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes);
    }
  }

  ensureRootIsScheduled(root, eventTime);
}

function retryTimedOutBoundary(boundaryFiber, retryLane) {
  // The boundary fiber (a Suspense component or SuspenseList component)
  // previously was rendered in its fallback state. One of the promises that
  // suspended it has resolved, which means at least part of the tree was
  // likely unblocked. Try rendering again, at a new lanes.
  if (retryLane === NoLane) {
    // TODO: Assign this to `suspenseState.retryLane`? to avoid
    // unnecessary entanglement?
    retryLane = requestRetryLane(boundaryFiber);
  } // TODO: Special case idle priority?


  var eventTime = requestEventTime();
  var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);

  if (root !== null) {
    markRootUpdated(root, retryLane, eventTime);
    ensureRootIsScheduled(root, eventTime);
  }
}

function retryDehydratedSuspenseBoundary(boundaryFiber) {
  var suspenseState = boundaryFiber.memoizedState;
  var retryLane = NoLane;

  if (suspenseState !== null) {
    retryLane = suspenseState.retryLane;
  }

  retryTimedOutBoundary(boundaryFiber, retryLane);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
  var retryLane = NoLane; // Default

  var retryCache;

  switch (boundaryFiber.tag) {
    case SuspenseComponent:
      retryCache = boundaryFiber.stateNode;
      var suspenseState = boundaryFiber.memoizedState;

      if (suspenseState !== null) {
        retryLane = suspenseState.retryLane;
      }

      break;

    case SuspenseListComponent:
      retryCache = boundaryFiber.stateNode;
      break;

    default:
      throw new Error('Pinged unknown suspense boundary type. ' + 'This is probably a bug in React.');
  }

  if (retryCache !== null) {
    // The wakeable resolved, so we no longer need to memoize, because it will
    // never be thrown again.
    retryCache.delete(wakeable);
  }

  retryTimedOutBoundary(boundaryFiber, retryLane);
} // Computes the next Just Noticeable Difference (JND) boundary.
// The theory is that a person can't tell the difference between small differences in time.
// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
// difference in the experience. However, waiting for longer might mean that we can avoid
// showing an intermediate loading state. The longer we have already waited, the harder it
// is to tell small differences in time. Therefore, the longer we've already waited,
// the longer we can wait additionally. At some point we have to give up though.
// We pick a train model where the next boundary commits at a consistent schedule.
// These particular numbers are vague estimates. We expect to adjust them based on research.

function jnd(timeElapsed) {
  return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
}

function checkForNestedUpdates() {
  if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
    nestedUpdateCount = 0;
    rootWithNestedUpdates = null;
    throw new Error('Maximum update depth exceeded. This can happen when a component ' + 'repeatedly calls setState inside componentWillUpdate or ' + 'componentDidUpdate. React limits the number of nested updates to ' + 'prevent infinite loops.');
  }

  {
    if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
      nestedPassiveUpdateCount = 0;
      rootWithPassiveNestedUpdates = null;

      error('Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
    }
  }
}

function flushRenderPhaseStrictModeWarningsInDEV() {
  {
    ReactStrictModeWarnings.flushLegacyContextWarning();

    {
      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
    }
  }
}

function commitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) {
  {
    // TODO (StrictEffects) Should we set a marker on the root if it contains strict effects
    // so we don't traverse unnecessarily? similar to subtreeFlags but just at the root level.
    // Maybe not a big deal since this is DEV only behavior.
    setCurrentFiber(fiber);
    invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectUnmountInDEV);

    if (hasPassiveEffects) {
      invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectUnmountInDEV);
    }

    invokeEffectsInDev(fiber, MountLayoutDev, invokeLayoutEffectMountInDEV);

    if (hasPassiveEffects) {
      invokeEffectsInDev(fiber, MountPassiveDev, invokePassiveEffectMountInDEV);
    }

    resetCurrentFiber();
  }
}

function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) {
  {
    // We don't need to re-check StrictEffectsMode here.
    // This function is only called if that check has already passed.
    var current = firstChild;
    var subtreeRoot = null;

    while (current !== null) {
      var primarySubtreeFlag = current.subtreeFlags & fiberFlags;

      if (current !== subtreeRoot && current.child !== null && primarySubtreeFlag !== NoFlags) {
        current = current.child;
      } else {
        if ((current.flags & fiberFlags) !== NoFlags) {
          invokeEffectFn(current);
        }

        if (current.sibling !== null) {
          current = current.sibling;
        } else {
          current = subtreeRoot = current.return;
        }
      }
    }
  }
}

var didWarnStateUpdateForNotYetMountedComponent = null;
function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) {
  {
    if ((executionContext & RenderContext) !== NoContext) {
      // We let the other warning about render phase updates deal with this one.
      return;
    }

    if (!(fiber.mode & ConcurrentMode)) {
      return;
    }

    var tag = fiber.tag;

    if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
      // Only warn for user-defined components, not internal ones like Suspense.
      return;
    } // We show the whole stack but dedupe on the top component's name because
    // the problematic code almost always lies inside that component.


    var componentName = getComponentNameFromFiber(fiber) || 'ReactComponent';

    if (didWarnStateUpdateForNotYetMountedComponent !== null) {
      if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) {
        return;
      }

      didWarnStateUpdateForNotYetMountedComponent.add(componentName);
    } else {
      didWarnStateUpdateForNotYetMountedComponent = new Set([componentName]);
    }

    var previousFiber = current;

    try {
      setCurrentFiber(fiber);

      error("Can't perform a React state update on a component that hasn't mounted yet. " + 'This indicates that you have a side-effect in your render function that ' + 'asynchronously later calls tries to update the component. Move this work to ' + 'useEffect instead.');
    } finally {
      if (previousFiber) {
        setCurrentFiber(fiber);
      } else {
        resetCurrentFiber();
      }
    }
  }
}
var beginWork$1;

{
  var dummyFiber = null;

  beginWork$1 = function (current, unitOfWork, lanes) {
    // If a component throws an error, we replay it again in a synchronously
    // dispatched event, so that the debugger will treat it as an uncaught
    // error See ReactErrorUtils for more information.
    // Before entering the begin phase, copy the work-in-progress onto a dummy
    // fiber. If beginWork throws, we'll use this to reset the state.
    var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);

    try {
      return beginWork(current, unitOfWork, lanes);
    } catch (originalError) {
      if (didSuspendOrErrorWhileHydratingDEV() || originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
        // Don't replay promises.
        // Don't replay errors if we are hydrating and have already suspended or handled an error
        throw originalError;
      } // Keep this code in sync with handleError; any changes here must have
      // corresponding changes there.


      resetContextDependencies();
      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the
      // same fiber again.
      // Unwind the failed stack frame

      unwindInterruptedWork(current, unitOfWork); // Restore the original properties of the fiber.

      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);

      if ( unitOfWork.mode & ProfileMode) {
        // Reset the profiler timer.
        startProfilerTimer(unitOfWork);
      } // Run beginWork again.


      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, lanes);

      if (hasCaughtError()) {
        var replayError = clearCaughtError();

        if (typeof replayError === 'object' && replayError !== null && replayError._suppressLogging && typeof originalError === 'object' && originalError !== null && !originalError._suppressLogging) {
          // If suppressed, let the flag carry over to the original error which is the one we'll rethrow.
          originalError._suppressLogging = true;
        }
      } // We always throw the original error in case the second render pass is not idempotent.
      // This can happen if a memoized function or CommonJS module doesn't throw after first invocation.


      throw originalError;
    }
  };
}

var didWarnAboutUpdateInRender = false;
var didWarnAboutUpdateInRenderForAnotherComponent;

{
  didWarnAboutUpdateInRenderForAnotherComponent = new Set();
}

function warnAboutRenderPhaseUpdatesInDEV(fiber) {
  {
    if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) {
      switch (fiber.tag) {
        case FunctionComponent:
        case ForwardRef:
        case SimpleMemoComponent:
          {
            var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || 'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.

            var dedupeKey = renderingComponentName;

            if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) {
              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);
              var setStateComponentName = getComponentNameFromFiber(fiber) || 'Unknown';

              error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://reactjs.org/link/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);
            }

            break;
          }

        case ClassComponent:
          {
            if (!didWarnAboutUpdateInRender) {
              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');

              didWarnAboutUpdateInRender = true;
            }

            break;
          }
      }
    }
  }
}

function restorePendingUpdaters(root, lanes) {
  {
    if (isDevToolsPresent) {
      var memoizedUpdaters = root.memoizedUpdaters;
      memoizedUpdaters.forEach(function (schedulingFiber) {
        addFiberToLanesMap(root, schedulingFiber, lanes);
      }); // This function intentionally does not clear memoized updaters.
      // Those may still be relevant to the current commit
      // and a future one (e.g. Suspense).
    }
  }
}
var fakeActCallbackNode = {};

function scheduleCallback$1(priorityLevel, callback) {
  {
    // If we're currently inside an `act` scope, bypass Scheduler and push to
    // the `act` queue instead.
    var actQueue = ReactCurrentActQueue$1.current;

    if (actQueue !== null) {
      actQueue.push(callback);
      return fakeActCallbackNode;
    } else {
      return scheduleCallback(priorityLevel, callback);
    }
  }
}

function cancelCallback$1(callbackNode) {
  if ( callbackNode === fakeActCallbackNode) {
    return;
  } // In production, always call Scheduler. This function will be stripped out.


  return cancelCallback(callbackNode);
}

function shouldForceFlushFallbacksInDEV() {
  // Never force flush in production. This function should get stripped out.
  return  ReactCurrentActQueue$1.current !== null;
}

function warnIfUpdatesNotWrappedWithActDEV(fiber) {
  {
    if (fiber.mode & ConcurrentMode) {
      if (!isConcurrentActEnvironment()) {
        // Not in an act environment. No need to warn.
        return;
      }
    } else {
      // Legacy mode has additional cases where we suppress a warning.
      if (!isLegacyActEnvironment()) {
        // Not in an act environment. No need to warn.
        return;
      }

      if (executionContext !== NoContext) {
        // Legacy mode doesn't warn if the update is batched, i.e.
        // batchedUpdates or flushSync.
        return;
      }

      if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) {
        // For backwards compatibility with pre-hooks code, legacy mode only
        // warns for updates that originate from a hook.
        return;
      }
    }

    if (ReactCurrentActQueue$1.current === null) {
      var previousFiber = current;

      try {
        setCurrentFiber(fiber);

        error('An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + '  /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act', getComponentNameFromFiber(fiber));
      } finally {
        if (previousFiber) {
          setCurrentFiber(fiber);
        } else {
          resetCurrentFiber();
        }
      }
    }
  }
}

function warnIfSuspenseResolutionNotWrappedWithActDEV(root) {
  {
    if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) {
      error('A suspended resource finished loading inside a test, but the event ' + 'was not wrapped in act(...).\n\n' + 'When testing, code that resolves suspended data should be wrapped ' + 'into act(...):\n\n' + 'act(() => {\n' + '  /* finish loading suspended data */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://reactjs.org/link/wrap-tests-with-act');
    }
  }
}

function setIsRunningInsertionEffect(isRunning) {
  {
    isRunningInsertionEffect = isRunning;
  }
}

/* eslint-disable react-internal/prod-error-codes */
var resolveFamily = null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.

var failedBoundaries = null;
var setRefreshHandler = function (handler) {
  {
    resolveFamily = handler;
  }
};
function resolveFunctionForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function resolveClassForHotReloading(type) {
  // No implementation differences.
  return resolveFunctionForHotReloading(type);
}
function resolveForwardRefForHotReloading(type) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return type;
    }

    var family = resolveFamily(type);

    if (family === undefined) {
      // Check if we're dealing with a real forwardRef. Don't want to crash early.
      if (type !== null && type !== undefined && typeof type.render === 'function') {
        // ForwardRef is special because its resolved .type is an object,
        // but it's possible that we only have its inner render function in the map.
        // If that inner render function is different, we'll build a new forwardRef type.
        var currentRender = resolveFunctionForHotReloading(type.render);

        if (type.render !== currentRender) {
          var syntheticType = {
            $$typeof: REACT_FORWARD_REF_TYPE,
            render: currentRender
          };

          if (type.displayName !== undefined) {
            syntheticType.displayName = type.displayName;
          }

          return syntheticType;
        }
      }

      return type;
    } // Use the latest known implementation.


    return family.current;
  }
}
function isCompatibleFamilyForHotReloading(fiber, element) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return false;
    }

    var prevType = fiber.elementType;
    var nextType = element.type; // If we got here, we know types aren't === equal.

    var needsCompareFamilies = false;
    var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;

    switch (fiber.tag) {
      case ClassComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          }

          break;
        }

      case FunctionComponent:
        {
          if (typeof nextType === 'function') {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            // We don't know the inner type yet.
            // We're going to assume that the lazy inner type is stable,
            // and so it is sufficient to avoid reconciling it away.
            // We're not going to unwrap or actually use the new lazy type.
            needsCompareFamilies = true;
          }

          break;
        }

      case ForwardRef:
        {
          if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      case MemoComponent:
      case SimpleMemoComponent:
        {
          if ($$typeofNextType === REACT_MEMO_TYPE) {
            // TODO: if it was but can no longer be simple,
            // we shouldn't set this.
            needsCompareFamilies = true;
          } else if ($$typeofNextType === REACT_LAZY_TYPE) {
            needsCompareFamilies = true;
          }

          break;
        }

      default:
        return false;
    } // Check if both types have a family and it's the same one.


    if (needsCompareFamilies) {
      // Note: memo() and forwardRef() we'll compare outer rather than inner type.
      // This means both of them need to be registered to preserve state.
      // If we unwrapped and compared the inner types for wrappers instead,
      // then we would risk falsely saying two separate memo(Foo)
      // calls are equivalent because they wrap the same Foo function.
      var prevFamily = resolveFamily(prevType);

      if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
        return true;
      }
    }

    return false;
  }
}
function markFailedErrorBoundaryForHotReloading(fiber) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    if (typeof WeakSet !== 'function') {
      return;
    }

    if (failedBoundaries === null) {
      failedBoundaries = new WeakSet();
    }

    failedBoundaries.add(fiber);
  }
}
var scheduleRefresh = function (root, update) {
  {
    if (resolveFamily === null) {
      // Hot reloading is disabled.
      return;
    }

    var staleFamilies = update.staleFamilies,
        updatedFamilies = update.updatedFamilies;
    flushPassiveEffects();
    flushSync(function () {
      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
    });
  }
};
var scheduleRoot = function (root, element) {
  {
    if (root.context !== emptyContextObject) {
      // Super edge case: root has a legacy _renderSubtree context
      // but we don't know the parentComponent so we can't pass it.
      // Just ignore. We'll delete this with _renderSubtree code path later.
      return;
    }

    flushPassiveEffects();
    flushSync(function () {
      updateContainer(element, root, null, null);
    });
  }
};

function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  {
    var alternate = fiber.alternate,
        child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    if (resolveFamily === null) {
      throw new Error('Expected resolveFamily to be set during hot reload.');
    }

    var needsRender = false;
    var needsRemount = false;

    if (candidateType !== null) {
      var family = resolveFamily(candidateType);

      if (family !== undefined) {
        if (staleFamilies.has(family)) {
          needsRemount = true;
        } else if (updatedFamilies.has(family)) {
          if (tag === ClassComponent) {
            needsRemount = true;
          } else {
            needsRender = true;
          }
        }
      }
    }

    if (failedBoundaries !== null) {
      if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
        needsRemount = true;
      }
    }

    if (needsRemount) {
      fiber._debugNeedsRemount = true;
    }

    if (needsRemount || needsRender) {
      var _root = enqueueConcurrentRenderForLane(fiber, SyncLane);

      if (_root !== null) {
        scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp);
      }
    }

    if (child !== null && !needsRemount) {
      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
    }

    if (sibling !== null) {
      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
    }
  }
}

var findHostInstancesForRefresh = function (root, families) {
  {
    var hostInstances = new Set();
    var types = new Set(families.map(function (family) {
      return family.current;
    }));
    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
    return hostInstances;
  }
};

function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  {
    var child = fiber.child,
        sibling = fiber.sibling,
        tag = fiber.tag,
        type = fiber.type;
    var candidateType = null;

    switch (tag) {
      case FunctionComponent:
      case SimpleMemoComponent:
      case ClassComponent:
        candidateType = type;
        break;

      case ForwardRef:
        candidateType = type.render;
        break;
    }

    var didMatch = false;

    if (candidateType !== null) {
      if (types.has(candidateType)) {
        didMatch = true;
      }
    }

    if (didMatch) {
      // We have a match. This only drills down to the closest host components.
      // There's no need to search deeper because for the purpose of giving
      // visual feedback, "flashing" outermost parent rectangles is sufficient.
      findHostInstancesForFiberShallowly(fiber, hostInstances);
    } else {
      // If there's no match, maybe there will be one further down in the child tree.
      if (child !== null) {
        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
      }
    }

    if (sibling !== null) {
      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
    }
  }
}

function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);

    if (foundHostInstances) {
      return;
    } // If we didn't find any host children, fallback to closest host parent.


    var node = fiber;

    while (true) {
      switch (node.tag) {
        case HostComponent:
          hostInstances.add(node.stateNode);
          return;

        case HostPortal:
          hostInstances.add(node.stateNode.containerInfo);
          return;

        case HostRoot:
          hostInstances.add(node.stateNode.containerInfo);
          return;
      }

      if (node.return === null) {
        throw new Error('Expected to reach root first.');
      }

      node = node.return;
    }
  }
}

function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  {
    var node = fiber;
    var foundHostInstances = false;

    while (true) {
      if (node.tag === HostComponent) {
        // We got a match.
        foundHostInstances = true;
        hostInstances.add(node.stateNode); // There may still be more, so keep searching.
      } else if (node.child !== null) {
        node.child.return = node;
        node = node.child;
        continue;
      }

      if (node === fiber) {
        return foundHostInstances;
      }

      while (node.sibling === null) {
        if (node.return === null || node.return === fiber) {
          return foundHostInstances;
        }

        node = node.return;
      }

      node.sibling.return = node.return;
      node = node.sibling;
    }
  }

  return false;
}

var hasBadMapPolyfill;

{
  hasBadMapPolyfill = false;

  try {
    var nonExtensibleObject = Object.preventExtensions({});
    /* eslint-disable no-new */

    new Map([[nonExtensibleObject, null]]);
    new Set([nonExtensibleObject]);
    /* eslint-enable no-new */
  } catch (e) {
    // TODO: Consider warning about bad polyfills
    hasBadMapPolyfill = true;
  }
}

function FiberNode(tag, pendingProps, key, mode) {
  // Instance
  this.tag = tag;
  this.key = key;
  this.elementType = null;
  this.type = null;
  this.stateNode = null; // Fiber

  this.return = null;
  this.child = null;
  this.sibling = null;
  this.index = 0;
  this.ref = null;
  this.pendingProps = pendingProps;
  this.memoizedProps = null;
  this.updateQueue = null;
  this.memoizedState = null;
  this.dependencies = null;
  this.mode = mode; // Effects

  this.flags = NoFlags;
  this.subtreeFlags = NoFlags;
  this.deletions = null;
  this.lanes = NoLanes;
  this.childLanes = NoLanes;
  this.alternate = null;

  {
    // Note: The following is done to avoid a v8 performance cliff.
    //
    // Initializing the fields below to smis and later updating them with
    // double values will cause Fibers to end up having separate shapes.
    // This behavior/bug has something to do with Object.preventExtension().
    // Fortunately this only impacts DEV builds.
    // Unfortunately it makes React unusably slow for some applications.
    // To work around this, initialize the fields below with doubles.
    //
    // Learn more about this here:
    // https://github.com/facebook/react/issues/14365
    // https://bugs.chromium.org/p/v8/issues/detail?id=8538
    this.actualDuration = Number.NaN;
    this.actualStartTime = Number.NaN;
    this.selfBaseDuration = Number.NaN;
    this.treeBaseDuration = Number.NaN; // It's okay to replace the initial doubles with smis after initialization.
    // This won't trigger the performance cliff mentioned above,
    // and it simplifies other profiler code (including DevTools).

    this.actualDuration = 0;
    this.actualStartTime = -1;
    this.selfBaseDuration = 0;
    this.treeBaseDuration = 0;
  }

  {
    // This isn't directly used but is handy for debugging internals:
    this._debugSource = null;
    this._debugOwner = null;
    this._debugNeedsRemount = false;
    this._debugHookTypes = null;

    if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
      Object.preventExtensions(this);
    }
  }
} // This is a constructor function, rather than a POJO constructor, still
// please ensure we do the following:
// 1) Nobody should add any instance methods on this. Instance methods can be
//    more difficult to predict when they get optimized and they are almost
//    never inlined properly in static compilers.
// 2) Nobody should rely on `instanceof Fiber` for type testing. We should
//    always know when it is a fiber.
// 3) We might want to experiment with using numeric keys since they are easier
//    to optimize in a non-JIT environment.
// 4) We can easily go from a constructor to a createFiber object literal if that
//    is faster.
// 5) It should be easy to port this to a C struct and keep a C implementation
//    compatible.


var createFiber = function (tag, pendingProps, key, mode) {
  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  return new FiberNode(tag, pendingProps, key, mode);
};

function shouldConstruct$1(Component) {
  var prototype = Component.prototype;
  return !!(prototype && prototype.isReactComponent);
}

function isSimpleFunctionComponent(type) {
  return typeof type === 'function' && !shouldConstruct$1(type) && type.defaultProps === undefined;
}
function resolveLazyComponentTag(Component) {
  if (typeof Component === 'function') {
    return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent;
  } else if (Component !== undefined && Component !== null) {
    var $$typeof = Component.$$typeof;

    if ($$typeof === REACT_FORWARD_REF_TYPE) {
      return ForwardRef;
    }

    if ($$typeof === REACT_MEMO_TYPE) {
      return MemoComponent;
    }
  }

  return IndeterminateComponent;
} // This is used to create an alternate fiber to do work on.

function createWorkInProgress(current, pendingProps) {
  var workInProgress = current.alternate;

  if (workInProgress === null) {
    // We use a double buffering pooling technique because we know that we'll
    // only ever need at most two versions of a tree. We pool the "other" unused
    // node that we're free to reuse. This is lazily created to avoid allocating
    // extra objects for things that are never updated. It also allow us to
    // reclaim the extra memory if needed.
    workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
    workInProgress.elementType = current.elementType;
    workInProgress.type = current.type;
    workInProgress.stateNode = current.stateNode;

    {
      // DEV-only fields
      workInProgress._debugSource = current._debugSource;
      workInProgress._debugOwner = current._debugOwner;
      workInProgress._debugHookTypes = current._debugHookTypes;
    }

    workInProgress.alternate = current;
    current.alternate = workInProgress;
  } else {
    workInProgress.pendingProps = pendingProps; // Needed because Blocks store data on type.

    workInProgress.type = current.type; // We already have an alternate.
    // Reset the effect tag.

    workInProgress.flags = NoFlags; // The effects are no longer valid.

    workInProgress.subtreeFlags = NoFlags;
    workInProgress.deletions = null;

    {
      // We intentionally reset, rather than copy, actualDuration & actualStartTime.
      // This prevents time from endlessly accumulating in new commits.
      // This has the downside of resetting values for different priority renders,
      // But works for yielding (the common case) and should support resuming.
      workInProgress.actualDuration = 0;
      workInProgress.actualStartTime = -1;
    }
  } // Reset all effects except static ones.
  // Static effects are not specific to a render.


  workInProgress.flags = current.flags & StaticMask;
  workInProgress.childLanes = current.childLanes;
  workInProgress.lanes = current.lanes;
  workInProgress.child = current.child;
  workInProgress.memoizedProps = current.memoizedProps;
  workInProgress.memoizedState = current.memoizedState;
  workInProgress.updateQueue = current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so
  // it cannot be shared with the current fiber.

  var currentDependencies = current.dependencies;
  workInProgress.dependencies = currentDependencies === null ? null : {
    lanes: currentDependencies.lanes,
    firstContext: currentDependencies.firstContext
  }; // These will be overridden during the parent's reconciliation

  workInProgress.sibling = current.sibling;
  workInProgress.index = current.index;
  workInProgress.ref = current.ref;

  {
    workInProgress.selfBaseDuration = current.selfBaseDuration;
    workInProgress.treeBaseDuration = current.treeBaseDuration;
  }

  {
    workInProgress._debugNeedsRemount = current._debugNeedsRemount;

    switch (workInProgress.tag) {
      case IndeterminateComponent:
      case FunctionComponent:
      case SimpleMemoComponent:
        workInProgress.type = resolveFunctionForHotReloading(current.type);
        break;

      case ClassComponent:
        workInProgress.type = resolveClassForHotReloading(current.type);
        break;

      case ForwardRef:
        workInProgress.type = resolveForwardRefForHotReloading(current.type);
        break;
    }
  }

  return workInProgress;
} // Used to reuse a Fiber for a second pass.

function resetWorkInProgress(workInProgress, renderLanes) {
  // This resets the Fiber to what createFiber or createWorkInProgress would
  // have set the values to before during the first pass. Ideally this wouldn't
  // be necessary but unfortunately many code paths reads from the workInProgress
  // when they should be reading from current and writing to workInProgress.
  // We assume pendingProps, index, key, ref, return are still untouched to
  // avoid doing another reconciliation.
  // Reset the effect flags but keep any Placement tags, since that's something
  // that child fiber is setting, not the reconciliation.
  workInProgress.flags &= StaticMask | Placement; // The effects are no longer valid.

  var current = workInProgress.alternate;

  if (current === null) {
    // Reset to createFiber's initial values.
    workInProgress.childLanes = NoLanes;
    workInProgress.lanes = renderLanes;
    workInProgress.child = null;
    workInProgress.subtreeFlags = NoFlags;
    workInProgress.memoizedProps = null;
    workInProgress.memoizedState = null;
    workInProgress.updateQueue = null;
    workInProgress.dependencies = null;
    workInProgress.stateNode = null;

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = 0;
      workInProgress.treeBaseDuration = 0;
    }
  } else {
    // Reset to the cloned values that createWorkInProgress would've.
    workInProgress.childLanes = current.childLanes;
    workInProgress.lanes = current.lanes;
    workInProgress.child = current.child;
    workInProgress.subtreeFlags = NoFlags;
    workInProgress.deletions = null;
    workInProgress.memoizedProps = current.memoizedProps;
    workInProgress.memoizedState = current.memoizedState;
    workInProgress.updateQueue = current.updateQueue; // Needed because Blocks store data on type.

    workInProgress.type = current.type; // Clone the dependencies object. This is mutated during the render phase, so
    // it cannot be shared with the current fiber.

    var currentDependencies = current.dependencies;
    workInProgress.dependencies = currentDependencies === null ? null : {
      lanes: currentDependencies.lanes,
      firstContext: currentDependencies.firstContext
    };

    {
      // Note: We don't reset the actualTime counts. It's useful to accumulate
      // actual time across multiple render passes.
      workInProgress.selfBaseDuration = current.selfBaseDuration;
      workInProgress.treeBaseDuration = current.treeBaseDuration;
    }
  }

  return workInProgress;
}
function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) {
  var mode;

  if (tag === ConcurrentRoot) {
    mode = ConcurrentMode;

    if (isStrictMode === true) {
      mode |= StrictLegacyMode;

      {
        mode |= StrictEffectsMode;
      }
    }
  } else {
    mode = NoMode;
  }

  if ( isDevToolsPresent) {
    // Always collect profile timings when DevTools are present.
    // This enables DevTools to start capturing timing at any point–
    // Without some nodes in the tree having empty base times.
    mode |= ProfileMode;
  }

  return createFiber(HostRoot, null, null, mode);
}
function createFiberFromTypeAndProps(type, // React$ElementType
key, pendingProps, owner, mode, lanes) {
  var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.

  var resolvedType = type;

  if (typeof type === 'function') {
    if (shouldConstruct$1(type)) {
      fiberTag = ClassComponent;

      {
        resolvedType = resolveClassForHotReloading(resolvedType);
      }
    } else {
      {
        resolvedType = resolveFunctionForHotReloading(resolvedType);
      }
    }
  } else if (typeof type === 'string') {
    fiberTag = HostComponent;
  } else {
    getTag: switch (type) {
      case REACT_FRAGMENT_TYPE:
        return createFiberFromFragment(pendingProps.children, mode, lanes, key);

      case REACT_STRICT_MODE_TYPE:
        fiberTag = Mode;
        mode |= StrictLegacyMode;

        if ( (mode & ConcurrentMode) !== NoMode) {
          // Strict effects should never run on legacy roots
          mode |= StrictEffectsMode;
        }

        break;

      case REACT_PROFILER_TYPE:
        return createFiberFromProfiler(pendingProps, mode, lanes, key);

      case REACT_SUSPENSE_TYPE:
        return createFiberFromSuspense(pendingProps, mode, lanes, key);

      case REACT_SUSPENSE_LIST_TYPE:
        return createFiberFromSuspenseList(pendingProps, mode, lanes, key);

      case REACT_OFFSCREEN_TYPE:
        return createFiberFromOffscreen(pendingProps, mode, lanes, key);

      case REACT_LEGACY_HIDDEN_TYPE:

      // eslint-disable-next-line no-fallthrough

      case REACT_SCOPE_TYPE:

      // eslint-disable-next-line no-fallthrough

      case REACT_CACHE_TYPE:

      // eslint-disable-next-line no-fallthrough

      case REACT_TRACING_MARKER_TYPE:

      // eslint-disable-next-line no-fallthrough

      case REACT_DEBUG_TRACING_MODE_TYPE:

      // eslint-disable-next-line no-fallthrough

      default:
        {
          if (typeof type === 'object' && type !== null) {
            switch (type.$$typeof) {
              case REACT_PROVIDER_TYPE:
                fiberTag = ContextProvider;
                break getTag;

              case REACT_CONTEXT_TYPE:
                // This is a consumer
                fiberTag = ContextConsumer;
                break getTag;

              case REACT_FORWARD_REF_TYPE:
                fiberTag = ForwardRef;

                {
                  resolvedType = resolveForwardRefForHotReloading(resolvedType);
                }

                break getTag;

              case REACT_MEMO_TYPE:
                fiberTag = MemoComponent;
                break getTag;

              case REACT_LAZY_TYPE:
                fiberTag = LazyComponent;
                resolvedType = null;
                break getTag;
            }
          }

          var info = '';

          {
            if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
              info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
            }

            var ownerName = owner ? getComponentNameFromFiber(owner) : null;

            if (ownerName) {
              info += '\n\nCheck the render method of `' + ownerName + '`.';
            }
          }

          throw new Error('Element type is invalid: expected a string (for built-in ' + 'components) or a class/function (for composite components) ' + ("but got: " + (type == null ? type : typeof type) + "." + info));
        }
    }
  }

  var fiber = createFiber(fiberTag, pendingProps, key, mode);
  fiber.elementType = type;
  fiber.type = resolvedType;
  fiber.lanes = lanes;

  {
    fiber._debugOwner = owner;
  }

  return fiber;
}
function createFiberFromElement(element, mode, lanes) {
  var owner = null;

  {
    owner = element._owner;
  }

  var type = element.type;
  var key = element.key;
  var pendingProps = element.props;
  var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes);

  {
    fiber._debugSource = element._source;
    fiber._debugOwner = element._owner;
  }

  return fiber;
}
function createFiberFromFragment(elements, mode, lanes, key) {
  var fiber = createFiber(Fragment, elements, key, mode);
  fiber.lanes = lanes;
  return fiber;
}

function createFiberFromProfiler(pendingProps, mode, lanes, key) {
  {
    if (typeof pendingProps.id !== 'string') {
      error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id);
    }
  }

  var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  fiber.elementType = REACT_PROFILER_TYPE;
  fiber.lanes = lanes;

  {
    fiber.stateNode = {
      effectDuration: 0,
      passiveEffectDuration: 0
    };
  }

  return fiber;
}

function createFiberFromSuspense(pendingProps, mode, lanes, key) {
  var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  fiber.elementType = REACT_SUSPENSE_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromSuspenseList(pendingProps, mode, lanes, key) {
  var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
  var fiber = createFiber(OffscreenComponent, pendingProps, key, mode);
  fiber.elementType = REACT_OFFSCREEN_TYPE;
  fiber.lanes = lanes;
  var primaryChildInstance = {
    isHidden: false
  };
  fiber.stateNode = primaryChildInstance;
  return fiber;
}
function createFiberFromText(content, mode, lanes) {
  var fiber = createFiber(HostText, content, null, mode);
  fiber.lanes = lanes;
  return fiber;
}
function createFiberFromHostInstanceForDeletion() {
  var fiber = createFiber(HostComponent, null, null, NoMode);
  fiber.elementType = 'DELETED';
  return fiber;
}
function createFiberFromDehydratedFragment(dehydratedNode) {
  var fiber = createFiber(DehydratedFragment, null, null, NoMode);
  fiber.stateNode = dehydratedNode;
  return fiber;
}
function createFiberFromPortal(portal, mode, lanes) {
  var pendingProps = portal.children !== null ? portal.children : [];
  var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  fiber.lanes = lanes;
  fiber.stateNode = {
    containerInfo: portal.containerInfo,
    pendingChildren: null,
    // Used by persistent updates
    implementation: portal.implementation
  };
  return fiber;
} // Used for stashing WIP properties to replay failed work in DEV.

function assignFiberPropertiesInDEV(target, source) {
  if (target === null) {
    // This Fiber's initial properties will always be overwritten.
    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
    target = createFiber(IndeterminateComponent, null, null, NoMode);
  } // This is intentionally written as a list of all properties.
  // We tried to use Object.assign() instead but this is called in
  // the hottest path, and Object.assign() was too slow:
  // https://github.com/facebook/react/issues/12502
  // This code is DEV-only so size is not a concern.


  target.tag = source.tag;
  target.key = source.key;
  target.elementType = source.elementType;
  target.type = source.type;
  target.stateNode = source.stateNode;
  target.return = source.return;
  target.child = source.child;
  target.sibling = source.sibling;
  target.index = source.index;
  target.ref = source.ref;
  target.pendingProps = source.pendingProps;
  target.memoizedProps = source.memoizedProps;
  target.updateQueue = source.updateQueue;
  target.memoizedState = source.memoizedState;
  target.dependencies = source.dependencies;
  target.mode = source.mode;
  target.flags = source.flags;
  target.subtreeFlags = source.subtreeFlags;
  target.deletions = source.deletions;
  target.lanes = source.lanes;
  target.childLanes = source.childLanes;
  target.alternate = source.alternate;

  {
    target.actualDuration = source.actualDuration;
    target.actualStartTime = source.actualStartTime;
    target.selfBaseDuration = source.selfBaseDuration;
    target.treeBaseDuration = source.treeBaseDuration;
  }

  target._debugSource = source._debugSource;
  target._debugOwner = source._debugOwner;
  target._debugNeedsRemount = source._debugNeedsRemount;
  target._debugHookTypes = source._debugHookTypes;
  return target;
}

function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError) {
  this.tag = tag;
  this.containerInfo = containerInfo;
  this.pendingChildren = null;
  this.current = null;
  this.pingCache = null;
  this.finishedWork = null;
  this.timeoutHandle = noTimeout;
  this.context = null;
  this.pendingContext = null;
  this.callbackNode = null;
  this.callbackPriority = NoLane;
  this.eventTimes = createLaneMap(NoLanes);
  this.expirationTimes = createLaneMap(NoTimestamp);
  this.pendingLanes = NoLanes;
  this.suspendedLanes = NoLanes;
  this.pingedLanes = NoLanes;
  this.expiredLanes = NoLanes;
  this.mutableReadLanes = NoLanes;
  this.finishedLanes = NoLanes;
  this.entangledLanes = NoLanes;
  this.entanglements = createLaneMap(NoLanes);
  this.identifierPrefix = identifierPrefix;
  this.onRecoverableError = onRecoverableError;

  {
    this.mutableSourceEagerHydrationData = null;
  }

  {
    this.effectDuration = 0;
    this.passiveEffectDuration = 0;
  }

  {
    this.memoizedUpdaters = new Set();
    var pendingUpdatersLaneMap = this.pendingUpdatersLaneMap = [];

    for (var _i = 0; _i < TotalLanes; _i++) {
      pendingUpdatersLaneMap.push(new Set());
    }
  }

  {
    switch (tag) {
      case ConcurrentRoot:
        this._debugRootType = hydrate ? 'hydrateRoot()' : 'createRoot()';
        break;

      case LegacyRoot:
        this._debugRootType = hydrate ? 'hydrate()' : 'render()';
        break;
    }
  }
}

function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
// host config, but because they are passed in at runtime, we have to thread
// them through the root constructor. Perhaps we should put them all into a
// single type, like a DynamicHostConfig that is defined by the renderer.
identifierPrefix, onRecoverableError, transitionCallbacks) {
  var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);
  // stateNode is any.


  var uninitializedFiber = createHostRootFiber(tag, isStrictMode);
  root.current = uninitializedFiber;
  uninitializedFiber.stateNode = root;

  {
    var _initialState = {
      element: initialChildren,
      isDehydrated: hydrate,
      cache: null,
      // not enabled yet
      transitions: null,
      pendingSuspenseBoundaries: null
    };
    uninitializedFiber.memoizedState = _initialState;
  }

  initializeUpdateQueue(uninitializedFiber);
  return root;
}

var ReactVersion = '18.2.0';

function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
  var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

  {
    checkKeyStringCoercion(key);
  }

  return {
    // This tag allow us to uniquely identify this as a React Portal
    $$typeof: REACT_PORTAL_TYPE,
    key: key == null ? null : '' + key,
    children: children,
    containerInfo: containerInfo,
    implementation: implementation
  };
}

var didWarnAboutNestedUpdates;
var didWarnAboutFindNodeInStrictMode;

{
  didWarnAboutNestedUpdates = false;
  didWarnAboutFindNodeInStrictMode = {};
}

function getContextForSubtree(parentComponent) {
  if (!parentComponent) {
    return emptyContextObject;
  }

  var fiber = get(parentComponent);
  var parentContext = findCurrentUnmaskedContext(fiber);

  if (fiber.tag === ClassComponent) {
    var Component = fiber.type;

    if (isContextProvider(Component)) {
      return processChildContext(fiber, Component, parentContext);
    }
  }

  return parentContext;
}

function findHostInstanceWithWarning(component, methodName) {
  {
    var fiber = get(component);

    if (fiber === undefined) {
      if (typeof component.render === 'function') {
        throw new Error('Unable to find node on an unmounted component.');
      } else {
        var keys = Object.keys(component).join(',');
        throw new Error("Argument appears to not be a ReactComponent. Keys: " + keys);
      }
    }

    var hostFiber = findCurrentHostFiber(fiber);

    if (hostFiber === null) {
      return null;
    }

    if (hostFiber.mode & StrictLegacyMode) {
      var componentName = getComponentNameFromFiber(fiber) || 'Component';

      if (!didWarnAboutFindNodeInStrictMode[componentName]) {
        didWarnAboutFindNodeInStrictMode[componentName] = true;
        var previousFiber = current;

        try {
          setCurrentFiber(hostFiber);

          if (fiber.mode & StrictLegacyMode) {
            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
          } else {
            error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-find-node', methodName, methodName, componentName);
          }
        } finally {
          // Ideally this should reset to previous but this shouldn't be called in
          // render and there's another warning for that anyway.
          if (previousFiber) {
            setCurrentFiber(previousFiber);
          } else {
            resetCurrentFiber();
          }
        }
      }
    }

    return hostFiber.stateNode;
  }
}

function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
  var hydrate = false;
  var initialChildren = null;
  return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
}
function createHydrationContainer(initialChildren, // TODO: Remove `callback` when we delete legacy mode.
callback, containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError, transitionCallbacks) {
  var hydrate = true;
  var root = createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError); // TODO: Move this to FiberRoot constructor

  root.context = getContextForSubtree(null); // Schedule the initial render. In a hydration root, this is different from
  // a regular update because the initial render must match was was rendered
  // on the server.
  // NOTE: This update intentionally doesn't have a payload. We're only using
  // the update to schedule work on the root fiber (and, for legacy roots, to
  // enqueue the callback if one is provided).

  var current = root.current;
  var eventTime = requestEventTime();
  var lane = requestUpdateLane(current);
  var update = createUpdate(eventTime, lane);
  update.callback = callback !== undefined && callback !== null ? callback : null;
  enqueueUpdate(current, update, lane);
  scheduleInitialHydrationOnRoot(root, lane, eventTime);
  return root;
}
function updateContainer(element, container, parentComponent, callback) {
  {
    onScheduleRoot(container, element);
  }

  var current$1 = container.current;
  var eventTime = requestEventTime();
  var lane = requestUpdateLane(current$1);

  {
    markRenderScheduled(lane);
  }

  var context = getContextForSubtree(parentComponent);

  if (container.context === null) {
    container.context = context;
  } else {
    container.pendingContext = context;
  }

  {
    if (isRendering && current !== null && !didWarnAboutNestedUpdates) {
      didWarnAboutNestedUpdates = true;

      error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentNameFromFiber(current) || 'Unknown');
    }
  }

  var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property
  // being called "element".

  update.payload = {
    element: element
  };
  callback = callback === undefined ? null : callback;

  if (callback !== null) {
    {
      if (typeof callback !== 'function') {
        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
      }
    }

    update.callback = callback;
  }

  var root = enqueueUpdate(current$1, update, lane);

  if (root !== null) {
    scheduleUpdateOnFiber(root, current$1, lane, eventTime);
    entangleTransitions(root, current$1, lane);
  }

  return lane;
}
function getPublicRootInstance(container) {
  var containerFiber = container.current;

  if (!containerFiber.child) {
    return null;
  }

  switch (containerFiber.child.tag) {
    case HostComponent:
      return getPublicInstance(containerFiber.child.stateNode);

    default:
      return containerFiber.child.stateNode;
  }
}
function attemptSynchronousHydration$1(fiber) {
  switch (fiber.tag) {
    case HostRoot:
      {
        var root = fiber.stateNode;

        if (isRootDehydrated(root)) {
          // Flush the first scheduled "update".
          var lanes = getHighestPriorityPendingLanes(root);
          flushRoot(root, lanes);
        }

        break;
      }

    case SuspenseComponent:
      {
        flushSync(function () {
          var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

          if (root !== null) {
            var eventTime = requestEventTime();
            scheduleUpdateOnFiber(root, fiber, SyncLane, eventTime);
          }
        }); // If we're still blocked after this, we need to increase
        // the priority of any promises resolving within this
        // boundary so that they next attempt also has higher pri.

        var retryLane = SyncLane;
        markRetryLaneIfNotHydrated(fiber, retryLane);
        break;
      }
  }
}

function markRetryLaneImpl(fiber, retryLane) {
  var suspenseState = fiber.memoizedState;

  if (suspenseState !== null && suspenseState.dehydrated !== null) {
    suspenseState.retryLane = higherPriorityLane(suspenseState.retryLane, retryLane);
  }
} // Increases the priority of thenables when they resolve within this boundary.


function markRetryLaneIfNotHydrated(fiber, retryLane) {
  markRetryLaneImpl(fiber, retryLane);
  var alternate = fiber.alternate;

  if (alternate) {
    markRetryLaneImpl(alternate, retryLane);
  }
}
function attemptContinuousHydration$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority and they should not suspend on I/O,
    // since you have to wrap anything that might suspend in
    // Suspense.
    return;
  }

  var lane = SelectiveHydrationLane;
  var root = enqueueConcurrentRenderForLane(fiber, lane);

  if (root !== null) {
    var eventTime = requestEventTime();
    scheduleUpdateOnFiber(root, fiber, lane, eventTime);
  }

  markRetryLaneIfNotHydrated(fiber, lane);
}
function attemptHydrationAtCurrentPriority$1(fiber) {
  if (fiber.tag !== SuspenseComponent) {
    // We ignore HostRoots here because we can't increase
    // their priority other than synchronously flush it.
    return;
  }

  var lane = requestUpdateLane(fiber);
  var root = enqueueConcurrentRenderForLane(fiber, lane);

  if (root !== null) {
    var eventTime = requestEventTime();
    scheduleUpdateOnFiber(root, fiber, lane, eventTime);
  }

  markRetryLaneIfNotHydrated(fiber, lane);
}
function findHostInstanceWithNoPortals(fiber) {
  var hostFiber = findCurrentHostFiberWithNoPortals(fiber);

  if (hostFiber === null) {
    return null;
  }

  return hostFiber.stateNode;
}

var shouldErrorImpl = function (fiber) {
  return null;
};

function shouldError(fiber) {
  return shouldErrorImpl(fiber);
}

var shouldSuspendImpl = function (fiber) {
  return false;
};

function shouldSuspend(fiber) {
  return shouldSuspendImpl(fiber);
}
var overrideHookState = null;
var overrideHookStateDeletePath = null;
var overrideHookStateRenamePath = null;
var overrideProps = null;
var overridePropsDeletePath = null;
var overridePropsRenamePath = null;
var scheduleUpdate = null;
var setErrorHandler = null;
var setSuspenseHandler = null;

{
  var copyWithDeleteImpl = function (obj, path, index) {
    var key = path[index];
    var updated = isArray(obj) ? obj.slice() : assign({}, obj);

    if (index + 1 === path.length) {
      if (isArray(updated)) {
        updated.splice(key, 1);
      } else {
        delete updated[key];
      }

      return updated;
    } // $FlowFixMe number or string is fine here


    updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);
    return updated;
  };

  var copyWithDelete = function (obj, path) {
    return copyWithDeleteImpl(obj, path, 0);
  };

  var copyWithRenameImpl = function (obj, oldPath, newPath, index) {
    var oldKey = oldPath[index];
    var updated = isArray(obj) ? obj.slice() : assign({}, obj);

    if (index + 1 === oldPath.length) {
      var newKey = newPath[index]; // $FlowFixMe number or string is fine here

      updated[newKey] = updated[oldKey];

      if (isArray(updated)) {
        updated.splice(oldKey, 1);
      } else {
        delete updated[oldKey];
      }
    } else {
      // $FlowFixMe number or string is fine here
      updated[oldKey] = copyWithRenameImpl( // $FlowFixMe number or string is fine here
      obj[oldKey], oldPath, newPath, index + 1);
    }

    return updated;
  };

  var copyWithRename = function (obj, oldPath, newPath) {
    if (oldPath.length !== newPath.length) {
      warn('copyWithRename() expects paths of the same length');

      return;
    } else {
      for (var i = 0; i < newPath.length - 1; i++) {
        if (oldPath[i] !== newPath[i]) {
          warn('copyWithRename() expects paths to be the same except for the deepest key');

          return;
        }
      }
    }

    return copyWithRenameImpl(obj, oldPath, newPath, 0);
  };

  var copyWithSetImpl = function (obj, path, index, value) {
    if (index >= path.length) {
      return value;
    }

    var key = path[index];
    var updated = isArray(obj) ? obj.slice() : assign({}, obj); // $FlowFixMe number or string is fine here

    updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);
    return updated;
  };

  var copyWithSet = function (obj, path, value) {
    return copyWithSetImpl(obj, path, 0, value);
  };

  var findHook = function (fiber, id) {
    // For now, the "id" of stateful hooks is just the stateful hook index.
    // This may change in the future with e.g. nested hooks.
    var currentHook = fiber.memoizedState;

    while (currentHook !== null && id > 0) {
      currentHook = currentHook.next;
      id--;
    }

    return currentHook;
  }; // Support DevTools editable values for useState and useReducer.


  overrideHookState = function (fiber, id, path, value) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithSet(hook.memoizedState, path, value);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = assign({}, fiber.memoizedProps);
      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

      if (root !== null) {
        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
      }
    }
  };

  overrideHookStateDeletePath = function (fiber, id, path) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithDelete(hook.memoizedState, path);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = assign({}, fiber.memoizedProps);
      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

      if (root !== null) {
        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
      }
    }
  };

  overrideHookStateRenamePath = function (fiber, id, oldPath, newPath) {
    var hook = findHook(fiber, id);

    if (hook !== null) {
      var newState = copyWithRename(hook.memoizedState, oldPath, newPath);
      hook.memoizedState = newState;
      hook.baseState = newState; // We aren't actually adding an update to the queue,
      // because there is no update we can add for useReducer hooks that won't trigger an error.
      // (There's no appropriate action type for DevTools overrides.)
      // As a result though, React will see the scheduled update as a noop and bailout.
      // Shallow cloning props works as a workaround for now to bypass the bailout check.

      fiber.memoizedProps = assign({}, fiber.memoizedProps);
      var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

      if (root !== null) {
        scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
      }
    }
  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.


  overrideProps = function (fiber, path, value) {
    fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
    }
  };

  overridePropsDeletePath = function (fiber, path) {
    fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
    }
  };

  overridePropsRenamePath = function (fiber, oldPath, newPath) {
    fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath);

    if (fiber.alternate) {
      fiber.alternate.pendingProps = fiber.pendingProps;
    }

    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
    }
  };

  scheduleUpdate = function (fiber) {
    var root = enqueueConcurrentRenderForLane(fiber, SyncLane);

    if (root !== null) {
      scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp);
    }
  };

  setErrorHandler = function (newShouldErrorImpl) {
    shouldErrorImpl = newShouldErrorImpl;
  };

  setSuspenseHandler = function (newShouldSuspendImpl) {
    shouldSuspendImpl = newShouldSuspendImpl;
  };
}

function findHostInstanceByFiber(fiber) {
  var hostFiber = findCurrentHostFiber(fiber);

  if (hostFiber === null) {
    return null;
  }

  return hostFiber.stateNode;
}

function emptyFindFiberByHostInstance(instance) {
  return null;
}

function getCurrentFiberForDevTools() {
  return current;
}

function injectIntoDevTools(devToolsConfig) {
  var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  return injectInternals({
    bundleType: devToolsConfig.bundleType,
    version: devToolsConfig.version,
    rendererPackageName: devToolsConfig.rendererPackageName,
    rendererConfig: devToolsConfig.rendererConfig,
    overrideHookState: overrideHookState,
    overrideHookStateDeletePath: overrideHookStateDeletePath,
    overrideHookStateRenamePath: overrideHookStateRenamePath,
    overrideProps: overrideProps,
    overridePropsDeletePath: overridePropsDeletePath,
    overridePropsRenamePath: overridePropsRenamePath,
    setErrorHandler: setErrorHandler,
    setSuspenseHandler: setSuspenseHandler,
    scheduleUpdate: scheduleUpdate,
    currentDispatcherRef: ReactCurrentDispatcher,
    findHostInstanceByFiber: findHostInstanceByFiber,
    findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance,
    // React Refresh
    findHostInstancesForRefresh:  findHostInstancesForRefresh ,
    scheduleRefresh:  scheduleRefresh ,
    scheduleRoot:  scheduleRoot ,
    setRefreshHandler:  setRefreshHandler ,
    // Enables DevTools to append owner stacks to error messages in DEV mode.
    getCurrentFiber:  getCurrentFiberForDevTools ,
    // Enables DevTools to detect reconciler version rather than renderer version
    // which may not match for third party renderers.
    reconcilerVersion: ReactVersion
  });
}

/* global reportError */

var defaultOnRecoverableError = typeof reportError === 'function' ? // In modern browsers, reportError will dispatch an error event,
// emulating an uncaught JavaScript error.
reportError : function (error) {
  // In older browsers and test environments, fallback to console.error.
  // eslint-disable-next-line react-internal/no-production-logging
  console['error'](error);
};

function ReactDOMRoot(internalRoot) {
  this._internalRoot = internalRoot;
}

ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function (children) {
  var root = this._internalRoot;

  if (root === null) {
    throw new Error('Cannot update an unmounted root.');
  }

  {
    if (typeof arguments[1] === 'function') {
      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    } else if (isValidContainer(arguments[1])) {
      error('You passed a container to the second argument of root.render(...). ' + "You don't need to pass it again since you already passed it to create the root.");
    } else if (typeof arguments[1] !== 'undefined') {
      error('You passed a second argument to root.render(...) but it only accepts ' + 'one argument.');
    }

    var container = root.containerInfo;

    if (container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(root.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + "root.unmount() to empty a root's container.");
        }
      }
    }
  }

  updateContainer(children, root, null, null);
};

ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function () {
  {
    if (typeof arguments[0] === 'function') {
      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');
    }
  }

  var root = this._internalRoot;

  if (root !== null) {
    this._internalRoot = null;
    var container = root.containerInfo;

    {
      if (isAlreadyRendering()) {
        error('Attempted to synchronously unmount a root while React was already ' + 'rendering. React cannot finish unmounting the root until the ' + 'current render has completed, which may lead to a race condition.');
      }
    }

    flushSync(function () {
      updateContainer(null, root, null, null);
    });
    unmarkContainerAsRoot(container);
  }
};

function createRoot(container, options) {
  if (!isValidContainer(container)) {
    throw new Error('createRoot(...): Target container is not a DOM element.');
  }

  warnIfReactDOMContainerInDEV(container);
  var isStrictMode = false;
  var concurrentUpdatesByDefaultOverride = false;
  var identifierPrefix = '';
  var onRecoverableError = defaultOnRecoverableError;
  var transitionCallbacks = null;

  if (options !== null && options !== undefined) {
    {
      if (options.hydrate) {
        warn('hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.');
      } else {
        if (typeof options === 'object' && options !== null && options.$$typeof === REACT_ELEMENT_TYPE) {
          error('You passed a JSX element to createRoot. You probably meant to ' + 'call root.render instead. ' + 'Example usage:\n\n' + '  let root = createRoot(domContainer);\n' + '  root.render(<App />);');
        }
      }
    }

    if (options.unstable_strictMode === true) {
      isStrictMode = true;
    }

    if (options.identifierPrefix !== undefined) {
      identifierPrefix = options.identifierPrefix;
    }

    if (options.onRecoverableError !== undefined) {
      onRecoverableError = options.onRecoverableError;
    }

    if (options.transitionCallbacks !== undefined) {
      transitionCallbacks = options.transitionCallbacks;
    }
  }

  var root = createContainer(container, ConcurrentRoot, null, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
  markContainerAsRoot(root.current, container);
  var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
  listenToAllSupportedEvents(rootContainerElement);
  return new ReactDOMRoot(root);
}

function ReactDOMHydrationRoot(internalRoot) {
  this._internalRoot = internalRoot;
}

function scheduleHydration(target) {
  if (target) {
    queueExplicitHydrationTarget(target);
  }
}

ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;
function hydrateRoot(container, initialChildren, options) {
  if (!isValidContainer(container)) {
    throw new Error('hydrateRoot(...): Target container is not a DOM element.');
  }

  warnIfReactDOMContainerInDEV(container);

  {
    if (initialChildren === undefined) {
      error('Must provide initial children as second argument to hydrateRoot. ' + 'Example usage: hydrateRoot(domContainer, <App />)');
    }
  } // For now we reuse the whole bag of options since they contain
  // the hydration callbacks.


  var hydrationCallbacks = options != null ? options : null; // TODO: Delete this option

  var mutableSources = options != null && options.hydratedSources || null;
  var isStrictMode = false;
  var concurrentUpdatesByDefaultOverride = false;
  var identifierPrefix = '';
  var onRecoverableError = defaultOnRecoverableError;

  if (options !== null && options !== undefined) {
    if (options.unstable_strictMode === true) {
      isStrictMode = true;
    }

    if (options.identifierPrefix !== undefined) {
      identifierPrefix = options.identifierPrefix;
    }

    if (options.onRecoverableError !== undefined) {
      onRecoverableError = options.onRecoverableError;
    }
  }

  var root = createHydrationContainer(initialChildren, null, container, ConcurrentRoot, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError);
  markContainerAsRoot(root.current, container); // This can't be a comment node since hydration doesn't work on comment nodes anyway.

  listenToAllSupportedEvents(container);

  if (mutableSources) {
    for (var i = 0; i < mutableSources.length; i++) {
      var mutableSource = mutableSources[i];
      registerMutableSourceForHydration(root, mutableSource);
    }
  }

  return new ReactDOMHydrationRoot(root);
}
function isValidContainer(node) {
  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || !disableCommentsAsDOMContainers  ));
} // TODO: Remove this function which also includes comment nodes.
// We only use it in places that are currently more relaxed.

function isValidContainerLegacy(node) {
  return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
}

function warnIfReactDOMContainerInDEV(container) {
  {
    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
      error('createRoot(): Creating roots directly with document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try using a container element created ' + 'for your app.');
    }

    if (isContainerMarkedAsRoot(container)) {
      if (container._reactRootContainer) {
        error('You are calling ReactDOMClient.createRoot() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.');
      } else {
        error('You are calling ReactDOMClient.createRoot() on a container that ' + 'has already been passed to createRoot() before. Instead, call ' + 'root.render() on the existing root instead if you want to update it.');
      }
    }
  }
}

var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
var topLevelUpdateWarnings;

{
  topLevelUpdateWarnings = function (container) {
    if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
      var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer.current);

      if (hostInstance) {
        if (hostInstance.parentNode !== container) {
          error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');
        }
      }
    }

    var isRootRenderedBySomeReact = !!container._reactRootContainer;
    var rootEl = getReactRootElementInContainer(container);
    var hasNonRootReactChild = !!(rootEl && getInstanceFromNode(rootEl));

    if (hasNonRootReactChild && !isRootRenderedBySomeReact) {
      error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');
    }

    if (container.nodeType === ELEMENT_NODE && container.tagName && container.tagName.toUpperCase() === 'BODY') {
      error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');
    }
  };
}

function getReactRootElementInContainer(container) {
  if (!container) {
    return null;
  }

  if (container.nodeType === DOCUMENT_NODE) {
    return container.documentElement;
  } else {
    return container.firstChild;
  }
}

function noopOnRecoverableError() {// This isn't reachable because onRecoverableError isn't called in the
  // legacy API.
}

function legacyCreateRootFromDOMContainer(container, initialChildren, parentComponent, callback, isHydrationContainer) {
  if (isHydrationContainer) {
    if (typeof callback === 'function') {
      var originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(root);
        originalCallback.call(instance);
      };
    }

    var root = createHydrationContainer(initialChildren, callback, container, LegacyRoot, null, // hydrationCallbacks
    false, // isStrictMode
    false, // concurrentUpdatesByDefaultOverride,
    '', // identifierPrefix
    noopOnRecoverableError);
    container._reactRootContainer = root;
    markContainerAsRoot(root.current, container);
    var rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;
    listenToAllSupportedEvents(rootContainerElement);
    flushSync();
    return root;
  } else {
    // First clear any existing content.
    var rootSibling;

    while (rootSibling = container.lastChild) {
      container.removeChild(rootSibling);
    }

    if (typeof callback === 'function') {
      var _originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(_root);

        _originalCallback.call(instance);
      };
    }

    var _root = createContainer(container, LegacyRoot, null, // hydrationCallbacks
    false, // isStrictMode
    false, // concurrentUpdatesByDefaultOverride,
    '', // identifierPrefix
    noopOnRecoverableError);

    container._reactRootContainer = _root;
    markContainerAsRoot(_root.current, container);

    var _rootContainerElement = container.nodeType === COMMENT_NODE ? container.parentNode : container;

    listenToAllSupportedEvents(_rootContainerElement); // Initial mount should not be batched.

    flushSync(function () {
      updateContainer(initialChildren, _root, parentComponent, callback);
    });
    return _root;
  }
}

function warnOnInvalidCallback$1(callback, callerName) {
  {
    if (callback !== null && typeof callback !== 'function') {
      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
    }
  }
}

function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  {
    topLevelUpdateWarnings(container);
    warnOnInvalidCallback$1(callback === undefined ? null : callback, 'render');
  }

  var maybeRoot = container._reactRootContainer;
  var root;

  if (!maybeRoot) {
    // Initial mount
    root = legacyCreateRootFromDOMContainer(container, children, parentComponent, callback, forceHydrate);
  } else {
    root = maybeRoot;

    if (typeof callback === 'function') {
      var originalCallback = callback;

      callback = function () {
        var instance = getPublicRootInstance(root);
        originalCallback.call(instance);
      };
    } // Update


    updateContainer(children, root, parentComponent, callback);
  }

  return getPublicRootInstance(root);
}

function findDOMNode(componentOrElement) {
  {
    var owner = ReactCurrentOwner$3.current;

    if (owner !== null && owner.stateNode !== null) {
      var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;

      if (!warnedAboutRefsInRender) {
        error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentNameFromType(owner.type) || 'A component');
      }

      owner.stateNode._warnedAboutRefsInRender = true;
    }
  }

  if (componentOrElement == null) {
    return null;
  }

  if (componentOrElement.nodeType === ELEMENT_NODE) {
    return componentOrElement;
  }

  {
    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  }
}
function hydrate(element, container, callback) {
  {
    error('ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + "if it's running React 17. Learn " + 'more: https://reactjs.org/link/switch-to-createroot');
  }

  if (!isValidContainerLegacy(container)) {
    throw new Error('Target container is not a DOM element.');
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call hydrateRoot(container, element)?');
    }
  } // TODO: throw or warn if we couldn't hydrate?


  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
}
function render(element, container, callback) {
  {
    error('ReactDOM.render is no longer supported in React 18. Use createRoot ' + 'instead. Until you switch to the new API, your app will behave as ' + "if it's running React 17. Learn " + 'more: https://reactjs.org/link/switch-to-createroot');
  }

  if (!isValidContainerLegacy(container)) {
    throw new Error('Target container is not a DOM element.');
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');
    }
  }

  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
}
function unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  {
    error('ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported ' + 'in React 18. Consider using a portal instead. Until you switch to ' + "the createRoot API, your app will behave as if it's running React " + '17. Learn more: https://reactjs.org/link/switch-to-createroot');
  }

  if (!isValidContainerLegacy(containerNode)) {
    throw new Error('Target container is not a DOM element.');
  }

  if (parentComponent == null || !has(parentComponent)) {
    throw new Error('parentComponent must be a valid React Component');
  }

  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
}
function unmountComponentAtNode(container) {
  if (!isValidContainerLegacy(container)) {
    throw new Error('unmountComponentAtNode(...): Target container is not a DOM element.');
  }

  {
    var isModernRoot = isContainerMarkedAsRoot(container) && container._reactRootContainer === undefined;

    if (isModernRoot) {
      error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?');
    }
  }

  if (container._reactRootContainer) {
    {
      var rootEl = getReactRootElementInContainer(container);
      var renderedByDifferentReact = rootEl && !getInstanceFromNode(rootEl);

      if (renderedByDifferentReact) {
        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.');
      }
    } // Unmount should not be batched.


    flushSync(function () {
      legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
        // $FlowFixMe This should probably use `delete container._reactRootContainer`
        container._reactRootContainer = null;
        unmarkContainerAsRoot(container);
      });
    }); // If you call unmountComponentAtNode twice in quick succession, you'll
    // get `true` twice. That's probably fine?

    return true;
  } else {
    {
      var _rootEl = getReactRootElementInContainer(container);

      var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode(_rootEl)); // Check if the container itself is a React root node.

      var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainerLegacy(container.parentNode) && !!container.parentNode._reactRootContainer;

      if (hasNonRootReactChild) {
        error("unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');
      }
    }

    return false;
  }
}

setAttemptSynchronousHydration(attemptSynchronousHydration$1);
setAttemptContinuousHydration(attemptContinuousHydration$1);
setAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);
setGetCurrentUpdatePriority(getCurrentUpdatePriority);
setAttemptHydrationAtPriority(runWithPriority);

{
  if (typeof Map !== 'function' || // $FlowIssue Flow incorrectly thinks Map has no prototype
  Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' || // $FlowIssue Flow incorrectly thinks Set has no prototype
  Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
    error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://reactjs.org/link/react-polyfills');
  }
}

setRestoreImplementation(restoreControlledState$3);
setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);

function createPortal$1(children, container) {
  var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

  if (!isValidContainer(container)) {
    throw new Error('Target container is not a DOM element.');
  } // TODO: pass ReactDOM portal implementation as third argument
  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.


  return createPortal(children, container, null, key);
}

function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
}

var Internals = {
  usingClientEntryPoint: false,
  // Keep in sync with ReactTestUtils.js.
  // This is an array for better minification.
  Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]
};

function createRoot$1(container, options) {
  {
    if (!Internals.usingClientEntryPoint && !false) {
      error('You are importing createRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
    }
  }

  return createRoot(container, options);
}

function hydrateRoot$1(container, initialChildren, options) {
  {
    if (!Internals.usingClientEntryPoint && !false) {
      error('You are importing hydrateRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
    }
  }

  return hydrateRoot(container, initialChildren, options);
} // Overload the definition to the two valid signatures.
// Warning, this opts-out of checking the function body.


// eslint-disable-next-line no-redeclare
function flushSync$1(fn) {
  {
    if (isAlreadyRendering()) {
      error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
    }
  }

  return flushSync(fn);
}
var foundDevTools = injectIntoDevTools({
  findFiberByHostInstance: getClosestInstanceFromNode,
  bundleType:  1 ,
  version: ReactVersion,
  rendererPackageName: 'react-dom'
});

{
  if (!foundDevTools && canUseDOM && window.top === window.self) {
    // If we're in Chrome or Firefox, provide a download link if not installed.
    if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
      var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.

      if (/^(https?|file):$/.test(protocol)) {
        // eslint-disable-next-line react-internal/no-production-logging
        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
      }
    }
  }
}

exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal$1;
exports.createRoot = createRoot$1;
exports.findDOMNode = findDOMNode;
exports.flushSync = flushSync$1;
exports.hydrate = hydrate;
exports.hydrateRoot = hydrateRoot$1;
exports.render = render;
exports.unmountComponentAtNode = unmountComponentAtNode;
exports.unstable_batchedUpdates = batchedUpdates$1;
exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
exports.version = ReactVersion;
          /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
    'function'
) {
  __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
        
  })();
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Diviassistant = __webpack_require__(173);

var _Diviassistant2 = _interopRequireDefault(_Diviassistant);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function App() {

    // Declare States
    var _useState = (0, _react.useState)('Good Morning'),
        _useState2 = _slicedToArray(_useState, 2),
        greeting = _useState2[0],
        setGreeting = _useState2[1];

    var _useState3 = (0, _react.useState)(true),
        _useState4 = _slicedToArray(_useState3, 2),
        getReportD = _useState4[0],
        setGetReportD = _useState4[1];

    var _useState5 = (0, _react.useState)(true),
        _useState6 = _slicedToArray(_useState5, 2),
        getStylesD = _useState6[0],
        setGetStylesD = _useState6[1];

    var _useState7 = (0, _react.useState)(true),
        _useState8 = _slicedToArray(_useState7, 2),
        getStartupD = _useState8[0],
        setGetStartupD = _useState8[1];

    var _useState9 = (0, _react.useState)(true),
        _useState10 = _slicedToArray(_useState9, 2),
        getPluginD = _useState10[0],
        setGetPluginD = _useState10[1];

    var _useState11 = (0, _react.useState)(true),
        _useState12 = _slicedToArray(_useState11, 2),
        getSideBarD = _useState12[0],
        setGetSideBarD = _useState12[1];

    var _useState13 = (0, _react.useState)(true),
        _useState14 = _slicedToArray(_useState13, 2),
        getGeneralD = _useState14[0],
        setGetGeneralD = _useState14[1];

    var _useState15 = (0, _react.useState)(true),
        _useState16 = _slicedToArray(_useState15, 2),
        getExportD = _useState16[0],
        setGetExportD = _useState16[1];

    var _useState17 = (0, _react.useState)(true),
        _useState18 = _slicedToArray(_useState17, 2),
        getDashboardD = _useState18[0],
        setGetDashboardD = _useState18[1];

    var _useState19 = (0, _react.useState)(true),
        _useState20 = _slicedToArray(_useState19, 2),
        getLocalFontD = _useState20[0],
        setGetLocalFontD = _useState20[1];

    var _useState21 = (0, _react.useState)(true),
        _useState22 = _slicedToArray(_useState21, 2),
        getChangelogD = _useState22[0],
        setGetChangelogD = _useState22[1];

    var _useState23 = (0, _react.useState)(true),
        _useState24 = _slicedToArray(_useState23, 2),
        getTutorialsD = _useState24[0],
        setGetTutorialsD = _useState24[1];

    var _useState25 = (0, _react.useState)(true),
        _useState26 = _slicedToArray(_useState25, 2),
        getCustomLinkD = _useState26[0],
        setGetCustomLinkD = _useState26[1];

    var _useState27 = (0, _react.useState)(true),
        _useState28 = _slicedToArray(_useState27, 2),
        getMaintenanceD = _useState28[0],
        setGetMaintenanceD = _useState28[1];

    var _useState29 = (0, _react.useState)(0),
        _useState30 = _slicedToArray(_useState29, 2),
        countWA = _useState30[0],
        setCountWA = _useState30[1];

    var _useState31 = (0, _react.useState)(true),
        _useState32 = _slicedToArray(_useState31, 2),
        hideTSA = _useState32[0],
        setHideTSA = _useState32[1];

    var _useState33 = (0, _react.useState)(false),
        _useState34 = _slicedToArray(_useState33, 2),
        fontCards = _useState34[0],
        setFontCards = _useState34[1];

    var _useState35 = (0, _react.useState)(false),
        _useState36 = _slicedToArray(_useState35, 2),
        tutFilter = _useState36[0],
        setTutFilter = _useState36[1];

    var _useState37 = (0, _react.useState)(false),
        _useState38 = _slicedToArray(_useState37, 2),
        textReplace = _useState38[0],
        setTextReplace = _useState38[1];

    var _useState39 = (0, _react.useState)(false),
        _useState40 = _slicedToArray(_useState39, 2),
        tutFilterUpdateCb = _useState40[0],
        setTutFilterUpdateCb = _useState40[1];

    var _useState41 = (0, _react.useState)(null),
        _useState42 = _slicedToArray(_useState41, 2),
        sideBarData = _useState42[0],
        setSideBarData = _useState42[1];

    var _useState43 = (0, _react.useState)(null),
        _useState44 = _slicedToArray(_useState43, 2),
        startupData = _useState44[0],
        setStartupData = _useState44[1];

    var _useState45 = (0, _react.useState)(null),
        _useState46 = _slicedToArray(_useState45, 2),
        pluginDataToExport = _useState46[0],
        setPluginDataToExport = _useState46[1];

    var _useState47 = (0, _react.useState)(null),
        _useState48 = _slicedToArray(_useState47, 2),
        dashboardData = _useState48[0],
        setDashboardData = _useState48[1];

    var _useState49 = (0, _react.useState)(null),
        _useState50 = _slicedToArray(_useState49, 2),
        maintenanceData = _useState50[0],
        setMaintenanceData = _useState50[1];

    var _useState51 = (0, _react.useState)(['#000000', '#ffffff', '#e02b20', '#e09900', '#edf000', '#7cda24', '#0c71c3', '#8300e9']),
        _useState52 = _slicedToArray(_useState51, 2),
        diviColorPalette = _useState52[0],
        setDiviColorPalette = _useState52[1];

    var _useState53 = (0, _react.useState)([]),
        _useState54 = _slicedToArray(_useState53, 2),
        dataToExport = _useState54[0],
        setDataToExport = _useState54[1];

    var _useState55 = (0, _react.useState)([]),
        _useState56 = _slicedToArray(_useState55, 2),
        diviGlobalColor = _useState56[0],
        setDiviGlobalColor = _useState56[1];

    var _useState57 = (0, _react.useState)([]),
        _useState58 = _slicedToArray(_useState57, 2),
        diviGlobalColorLabel = _useState58[0],
        setDiviGlobalColorLabel = _useState58[1];

    var _useState59 = (0, _react.useState)(null),
        _useState60 = _slicedToArray(_useState59, 2),
        diviLatestVersion = _useState60[0],
        setDiviLatestVersion = _useState60[1];

    var _useState61 = (0, _react.useState)(null),
        _useState62 = _slicedToArray(_useState61, 2),
        notificationsData = _useState62[0],
        setNotificationsData = _useState62[1];

    var _useState63 = (0, _react.useState)(null),
        _useState64 = _slicedToArray(_useState63, 2),
        diviCurrentVersion = _useState64[0],
        setDiviCurrentVersion = _useState64[1];

    var _useState65 = (0, _react.useState)(null),
        _useState66 = _slicedToArray(_useState65, 2),
        diviChangelogOptions = _useState66[0],
        setDiviChangelogOptions = _useState66[1];

    var _useState67 = (0, _react.useState)(null),
        _useState68 = _slicedToArray(_useState67, 2),
        diviChangelogVersions = _useState68[0],
        setDiviChangelogVersions = _useState68[1];

    var _useState69 = (0, _react.useState)(null),
        _useState70 = _slicedToArray(_useState69, 2),
        diviAssistantChangelog = _useState70[0],
        setDiviAssistantChangelog = _useState70[1];

    var _useState71 = (0, _react.useState)(null),
        _useState72 = _slicedToArray(_useState71, 2),
        adminsData = _useState72[0],
        setAdminsData = _useState72[1];

    var _useState73 = (0, _react.useState)(null),
        _useState74 = _slicedToArray(_useState73, 2),
        allowAdmin = _useState74[0],
        setAllowAdmin = _useState74[1];

    var _useState75 = (0, _react.useState)(null),
        _useState76 = _slicedToArray(_useState75, 2),
        allowAdminDefault = _useState76[0],
        setAllowAdminDefault = _useState76[1];

    var _useState77 = (0, _react.useState)({}),
        _useState78 = _slicedToArray(_useState77, 2),
        localFont = _useState78[0],
        setLocalFont = _useState78[1];

    var _useState79 = (0, _react.useState)({}),
        _useState80 = _slicedToArray(_useState79, 2),
        fontFamily = _useState80[0],
        setFontFamily = _useState80[1];

    var _useState81 = (0, _react.useState)([]),
        _useState82 = _slicedToArray(_useState81, 2),
        pacCtgData = _useState82[0],
        setPacCtgData = _useState82[1];

    var _useState83 = (0, _react.useState)([]),
        _useState84 = _slicedToArray(_useState83, 2),
        pacPostData = _useState84[0],
        setPacPostData = _useState84[1];

    var _useState85 = (0, _react.useState)([]),
        _useState86 = _slicedToArray(_useState85, 2),
        websiteReport = _useState86[0],
        setWebsiteReport = _useState86[1];

    var _useState87 = (0, _react.useState)(),
        _useState88 = _slicedToArray(_useState87, 2),
        pacTutCheckboxId = _useState88[0],
        setPacTutCheckboxId = _useState88[1];

    var _useState89 = (0, _react.useState)(),
        _useState90 = _slicedToArray(_useState89, 2),
        pacTutCheckboxVal = _useState90[0],
        setPacTutCheckboxVal = _useState90[1];

    var _useState91 = (0, _react.useState)(),
        _useState92 = _slicedToArray(_useState91, 2),
        pacTutCheckboxDefault = _useState92[0],
        setPacTutCheckboxDefault = _useState92[1];

    var _useState93 = (0, _react.useState)(''),
        _useState94 = _slicedToArray(_useState93, 2),
        newFeatureName = _useState94[0],
        setNewFeatureName = _useState94[1];

    var _useState95 = (0, _react.useState)(''),
        _useState96 = _slicedToArray(_useState95, 2),
        newFeatureTitle = _useState96[0],
        setNewFeatureTitle = _useState96[1];

    var _useState97 = (0, _react.useState)(''),
        _useState98 = _slicedToArray(_useState97, 2),
        newFeatureMessage = _useState98[0],
        setNewFeatureMessage = _useState98[1];

    var _useState99 = (0, _react.useState)(false),
        _useState100 = _slicedToArray(_useState99, 2),
        customQuickLinks = _useState100[0],
        setCustomQuickLinks = _useState100[1];

    var _useState101 = (0, _react.useState)(''),
        _useState102 = _slicedToArray(_useState101, 2),
        customQuickLinksIcon = _useState102[0],
        setCustomQuickLinksIcon = _useState102[1];

    var _useState103 = (0, _react.useState)(''),
        _useState104 = _slicedToArray(_useState103, 2),
        customQuickLinksParent = _useState104[0],
        setCustomQuickLinksParent = _useState104[1];

    var _useState105 = (0, _react.useState)('Dashboard'),
        _useState106 = _slicedToArray(_useState105, 2),
        currentTab = _useState106[0],
        setCurrentTab = _useState106[1];

    var _useState107 = (0, _react.useState)('Settings'),
        _useState108 = _slicedToArray(_useState107, 2),
        currentSubTab = _useState108[0],
        setCurrentSubTab = _useState108[1];

    var _useState109 = (0, _react.useState)({ css: false, jquery: false, php: false, runPhp: false, enableResize: false, boxHeight: false, boxHeightValue: '313px', enableResizeCe: false, boxHeightCe: false, boxHeightValueCe: "313px" }),
        _useState110 = _slicedToArray(_useState109, 2),
        codeData = _useState110[0],
        setCodeData = _useState110[1];

    var _useState111 = (0, _react.useState)([{ selector: '', customText: '' }]),
        _useState112 = _slicedToArray(_useState111, 2),
        textReplaceJson = _useState112[0],
        setTextReplaceJson = _useState112[1];

    var _useState113 = (0, _react.useState)({ svgUploads: false, svgUploadsValue: 'default', fileSize: false, fileSizeValue: '512kb', imgReplace: false, imgTitle: false, useAltText: false, ignoreAltText: false, imgAltTitleFileName: "disable", infiniteScroll: false }),
        _useState114 = _slicedToArray(_useState113, 2),
        mediaCards = _useState114[0],
        setMediaCards = _useState114[1];

    var _useState115 = (0, _react.useState)({ post: false, page: false, project: false }),
        _useState116 = _slicedToArray(_useState115, 2),
        enableVbAllPosttypeCE = _useState116[0],
        setEnableVbAllPosttypeCE = _useState116[1];

    var _useState117 = (0, _react.useState)({ post: false, page: false, project: false }),
        _useState118 = _slicedToArray(_useState117, 2),
        enableVbAllPosttype = _useState118[0],
        setEnableVbAllPosttype = _useState118[1];

    var _useState119 = (0, _react.useState)({ systemStatus: true, featureUpdate: true, blogPublic: true }),
        _useState120 = _slicedToArray(_useState119, 2),
        dashboardCardsDismiss = _useState120[0],
        setDashboardCardsDismiss = _useState120[1];

    var _useState121 = (0, _react.useState)({ post: false, page: false, project: false }),
        _useState122 = _slicedToArray(_useState121, 2),
        enableVbAllPosttypeDefault = _useState122[0],
        setEnableVbAllPosttypeDefault = _useState122[1];

    var _useState123 = (0, _react.useState)({ post: 'Posts', page: 'Pages', project: 'Projects' }),
        _useState124 = _slicedToArray(_useState123, 2),
        enableVbAllPosttypeName = _useState124[0],
        setEnableVbAllPosttypeName = _useState124[1];

    var _useState125 = (0, _react.useState)([{ label: '', url: '', child: '0', tab: 'new' }, { label: '', url: '', child: '1', tab: 'new' }]),
        _useState126 = _slicedToArray(_useState125, 2),
        customQuickLinksJson = _useState126[0],
        setCustomQuickLinksJson = _useState126[1];

    var _useState127 = (0, _react.useState)({ commingSoon: false, Maintenance: false, commingSoonPage: "none", MaintenancePage: "none", byPassCommingSoon: false, byPassLink: null, autoClearCache: "disable", clearOnExitsVB: false, clearOnUpdatePlugin: false, clearOnUpdateTheme: false }),
        _useState128 = _slicedToArray(_useState127, 2),
        maintenanceCards = _useState128[0],
        setMaintenanceCards = _useState128[1];

    var _useState129 = (0, _react.useState)({ import: true, plugin: true, theme: true, page: true, post: true, widgets: true, homepage: true, menu: true, disableComments: false, permalink: true, installPlugins: true }),
        _useState130 = _slicedToArray(_useState129, 2),
        startupCards = _useState130[0],
        setStartupCards = _useState130[1];

    var _useState131 = (0, _react.useState)({ scrollbar: false, barWidth: "17px", barBgColor: "#f1f1f1", barRaduis: "3px", barHandleColor: "#c1c1c1", barHandleHColor: "#c1c1c1" }),
        _useState132 = _slicedToArray(_useState131, 2),
        scrollBar = _useState132[0],
        setScrollBar = _useState132[1];

    var _useState133 = (0, _react.useState)({ enable: false, prodLabel: 'Production', prodClr: '#00D263', stagLabel: 'Staging', stagClr: '#7846FF', devLabel: 'Development', devClr: '#F15A24' }),
        _useState134 = _slicedToArray(_useState133, 2),
        environmentsData = _useState134[0],
        setEnvironmentsData = _useState134[1];

    var _useState135 = (0, _react.useState)({ startUp: false, maintenance: false, utility: false, visual: false, media: false, learning: false, support: false, fonts: false, styles: false, code: false, frontend: false, accessibility: false }),
        _useState136 = _slicedToArray(_useState135, 2),
        enableAddons = _useState136[0],
        setEnableAddons = _useState136[1];

    var _useState137 = (0, _react.useState)({ startUp: false, maintenance: false, utility: false, visual: false, interface: false, media: false, learning: false, support: false, fonts: false, styles: false, code: false, environments: false, scroll: false }),
        _useState138 = _slicedToArray(_useState137, 2),
        updatedAddons = _useState138[0],
        setUpdatedAddons = _useState138[1];

    var _useState139 = (0, _react.useState)({ backToTop: false, devices: "all", btnBgColor: "rgba(0,0,0,0.4)", btnBgHColor: "rgba(0,0,0,0.4)", btnRadius: "5px", right: "0px", bottom: "125px", btnTextColor: "#ffffff", btnTextHColor: "#ffffff", btnContent: "icon", btnIcon: "", btnText: "", btnIconPlacement: "left" }),
        _useState140 = _slicedToArray(_useState139, 2),
        backToTop = _useState140[0],
        setBackToTop = _useState140[1];

    var _useState141 = (0, _react.useState)({ focusable: false, outline: false, outlineColor: "#E1271A", ariaSupport: false, iconsAria: false, Underline: false, underlineHeading: false, underlineBtns: false, underlineMenu: false, skipNaviation: false, hideSkipNavigation: false, duplicateMenu: false, dropdownMenu: false, improveScreenReader: false, pinchZoom: false, Tota11y: false }),
        _useState142 = _slicedToArray(_useState141, 2),
        accessibilityHelperData = _useState142[0],
        setAccessibilityHelperData = _useState142[1];

    var _useState143 = (0, _react.useState)({ staticCss: false, localStorage: false, hardRefresh: false, quickLinks: false, tBTDetails: false, adminbarEverywhere: false, adminbarFrontend: false, adminbarHover: false, duplicateDiviLib: false, exportDiviLib: false, diviLibWidget: false, diviLibSC: false, openVisualBuilder: false, disableCommentSettings: false, duplicatePagePost: false, escKey: false, hideLayout: false, disableAi: false, disableDiviCloud: false, hideExploreBtn: false, hideLayoutsBtn: false, horizontalScroll: false, cursorHighlight: false, bgHighlight: '#3399ff', textHighlight: '#ffffff', anchorLinkOffset: false, anchorLinkOffsetVal: "100px", hideProject: false, renameProject: false, pluralName: 'Projects', singularName: 'Project', slug: 'projects', pluralCategory: 'Project Categories', singularCategory: 'Project Category', slugCategory: 'project_category', pluralTag: 'Project Tags', singularTag: 'Project Tag', slugTag: 'project_tag', menuIcon: 'dashicons-admin-post', defaultThemes: false, updateThemes: false, updatePlugins: false, fullScreen: false, edidorBtn: false, hideDiviBuilderBtn: false, stickyToolbar: false, htmlArea: false, htmlAreaValue: '400px', popupHeight: false, popupHeightValue: '500px', iconAreaHeight: false, iconAreaHeightValue: '300px', textPopover: false, rowWidth: false, swapSandGbtn: false, deleteData: false, tempLogin: false, tempLoginTime: null, tempLoginLink: null, smtpEnable: false, smtpHost: "", smtpEmail: "", smtpName: "", smtpEncryption: "none", smtpPort: "", smtpTLS: false, smtpAuthentication: false, smtpUsername: "", smtpPassword: "" }),
        _useState144 = _slicedToArray(_useState143, 2),
        utilityCards = _useState144[0],
        setUtilityCards = _useState144[1];

    var _useState145 = (0, _react.useState)({ H1: false, H1DpFF: "Initial", H1DpFW: "400", H1DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1DpUColor: "#333", H1DpUStyle: "solid", H1DpColor: "#333", H1DpTS: "30px", H1DpLS: "0px", H1DpLH: "1em", H1TbFF: "Initial", H1TbFW: "400", H1TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1TbUColor: "#333", H1TbUStyle: "solid", H1TbColor: "#333", H1TbTS: "30px", H1TbLS: "0px", H1TbLH: "1em", H1PhFF: "Initial", H1PhFW: "400", H1PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1PhUColor: "#333", H1PhUStyle: "solid", H1PhColor: "#333", H1PhTS: "30px", H1PhLS: "0px", H1PhLH: "1em" }),
        _useState146 = _slicedToArray(_useState145, 2),
        stylesH1 = _useState146[0],
        setStylesH1 = _useState146[1];

    var _useState147 = (0, _react.useState)({ H2: false, H2DpFF: "Initial", H2DpFW: "400", H2DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2DpUColor: "#333", H2DpUStyle: "solid", H2DpColor: "#333", H2DpTS: "26px", H2DpLS: "0px", H2DpLH: "1em", H2TbFF: "Initial", H2TbFW: "400", H2TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2TbUColor: "#333", H2TbUStyle: "solid", H2TbColor: "#333", H2TbTS: "26px", H2TbLS: "0px", H2TbLH: "1em", H2PhFF: "Initial", H2PhFW: "400", H2PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2PhUColor: "#333", H2PhUStyle: "solid", H2PhColor: "#333", H2PhTS: "26px", H2PhLS: "0px", H2PhLH: "1em" }),
        _useState148 = _slicedToArray(_useState147, 2),
        stylesH2 = _useState148[0],
        setStylesH2 = _useState148[1];

    var _useState149 = (0, _react.useState)({ H3: false, H3DpFF: "Initial", H3DpFW: "400", H3DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3DpUColor: "#333", H3DpUStyle: "solid", H3DpColor: "#333", H3DpTS: "22px", H3DpLS: "0px", H3DpLH: "1em", H3TbFF: "Initial", H3TbFW: "400", H3TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3TbUColor: "#333", H3TbUStyle: "solid", H3TbColor: "#333", H3TbTS: "22px", H3TbLS: "0px", H3TbLH: "1em", H3PhFF: "Initial", H3PhFW: "400", H3PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3PhUColor: "#333", H3PhUStyle: "solid", H3PhColor: "#333", H3PhTS: "22px", H3PhLS: "0px", H3PhLH: "1em" }),
        _useState150 = _slicedToArray(_useState149, 2),
        stylesH3 = _useState150[0],
        setStylesH3 = _useState150[1];

    var _useState151 = (0, _react.useState)({ H4: false, H4DpFF: "Initial", H4DpFW: "400", H4DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4DpUColor: "#333", H4DpUStyle: "solid", H4DpColor: "#333", H4DpTS: "18px", H4DpLS: "0px", H4DpLH: "1em", H4TbFF: "Initial", H4TbFW: "400", H4TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4TbUColor: "#333", H4TbUStyle: "solid", H4TbColor: "#333", H4TbTS: "18px", H4TbLS: "0px", H4TbLH: "1em", H4PhFF: "Initial", H4PhFW: "400", H4PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4PhUColor: "#333", H4PhUStyle: "solid", H4PhColor: "#333", H4PhTS: "18px", H4PhLS: "0px", H4PhLH: "1em" }),
        _useState152 = _slicedToArray(_useState151, 2),
        stylesH4 = _useState152[0],
        setStylesH4 = _useState152[1];

    var _useState153 = (0, _react.useState)({ H5: false, H5DpFF: "Initial", H5DpFW: "400", H5DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5DpUColor: "#333", H5DpUStyle: "solid", H5DpColor: "#333", H5DpTS: "16px", H5DpLS: "0px", H5DpLH: "1em", H5TbFF: "Initial", H5TbFW: "400", H5TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5TbUColor: "#333", H5TbUStyle: "solid", H5TbColor: "#333", H5TbTS: "16px", H5TbLS: "0px", H5TbLH: "1em", H5PhFF: "Initial", H5PhFW: "400", H5PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5PhUColor: "#333", H5PhUStyle: "solid", H5PhColor: "#333", H5PhTS: "16px", H5PhLS: "0px", H5PhLH: "1em" }),
        _useState154 = _slicedToArray(_useState153, 2),
        stylesH5 = _useState154[0],
        setStylesH5 = _useState154[1];

    var _useState155 = (0, _react.useState)({ H6: false, H6DpFF: "Initial", H6DpFW: "400", H6DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6DpUColor: "#333", H6DpUStyle: "solid", H6DpColor: "#333", H6DpTS: "14px", H6DpLS: "0px", H6DpLH: "1em", H6TbFF: "Initial", H6TbFW: "400", H6TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6TbUColor: "#333", H6TbUStyle: "solid", H6TbColor: "#333", H6TbTS: "14px", H6TbLS: "0px", H6TbLH: "1em", H6PhFF: "Initial", H6PhFW: "400", H6PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6PhUColor: "#333", H6PhUStyle: "solid", H6PhColor: "#333", H6PhTS: "14px", H6PhLS: "0px", H6PhLH: "1em" }),
        _useState156 = _slicedToArray(_useState155, 2),
        stylesH6 = _useState156[0],
        setStylesH6 = _useState156[1];

    var _useState157 = (0, _react.useState)({ BT: false, BTDpFF: "Initial", BTDpFW: "400", BTDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTDpUColor: "#666", BTDpUStyle: "solid", BTDpColor: "#666", BTDpTS: "14px", BTDpLS: "0px", BTDpLH: "1em", BTTbFF: "Initial", BTTbFW: "400", BTTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTTbUColor: "#666", BTTbUStyle: "solid", BTTbColor: "#666", BTTbTS: "14px", BTTbLS: "0px", BTTbLH: "1em", BTPhFF: "Initial", BTPhFW: "400", BTPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTPhUColor: "#666", BTPhUStyle: "solid", BTPhColor: "#666", BTPhTS: "14px", BTPhLS: "0px", BTPhLH: "1em" }),
        _useState158 = _slicedToArray(_useState157, 2),
        stylesBT = _useState158[0],
        setStylesBT = _useState158[1];

    var _useState159 = (0, _react.useState)({ LT: false, LTDpFF: "Initial", LTDpFW: "400", LTDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTDpUColor: "#2ea3f2", LTDpUStyle: "solid", LTDpColor: "#2ea3f2", LTDpHColor: "#2ea3f2", LTDpTS: "14px", LTDpLS: "0px", LTDpLH: "1em", LTTbFF: "Initial", LTTbFW: "400", LTTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTTbUColor: "#2ea3f2", LTTbUStyle: "solid", LTTbColor: "#2ea3f2", LTTbHColor: "#2ea3f2", LTTbTS: "14px", LTTbLS: "0px", LTTbLH: "1em", LTPhFF: "Initial", LTPhFW: "400", LTPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTPhUColor: "#2ea3f2", LTPhUStyle: "solid", LTPhColor: "#2ea3f2", LTPhHColor: "#2ea3f2", LTPhTS: "14px", LTPhLS: "0px", LTPhLH: "1em" }),
        _useState160 = _slicedToArray(_useState159, 2),
        stylesLT = _useState160[0],
        setStylesLT = _useState160[1];

    var _useState161 = (0, _react.useState)({ OL: false, OLDpFF: "Initial", OLDpFW: "400", OLDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLDpUColor: "#666", OLDpUStyle: "solid", OLDpColor: "#666", OLDpTS: "14px", OLDpLS: "0px", OLDpLH: "1em", OLDpT: "decimal", OLDpP: "outside", OLDpI: "0px", OLTbFF: "Initial", OLTbFW: "400", OLTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLTbUColor: "#666", OLTbUStyle: "solid", OLTbColor: "#666", OLTbTS: "14px", OLTbLS: "0px", OLTbLH: "1em", OLTbT: "decimal", OLTbP: "outside", OLTbI: "0px", OLPhFF: "Initial", OLPhFW: "400", OLPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLPhUColor: "#666", OLPhUStyle: "solid", OLPhColor: "#666", OLPhTS: "14px", OLPhLS: "0px", OLPhLH: "1em", OLPhT: "decimal", OLPhP: "outside", OLPhI: "0px" }),
        _useState162 = _slicedToArray(_useState161, 2),
        stylesOL = _useState162[0],
        setStylesOL = _useState162[1];

    var _useState163 = (0, _react.useState)({ UL: false, ULDpFF: "Initial", ULDpFW: "400", ULDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULDpUColor: "#666", ULDpUStyle: "solid", ULDpColor: "#666", ULDpTS: "14px", ULDpLS: "0px", ULDpLH: "1em", ULDpT: "disc", ULDpP: "outside", ULDpI: "0px", ULTbFF: "Initial", ULTbFW: "400", ULTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULTbUColor: "#666", ULTbUStyle: "solid", ULTbColor: "#666", ULTbTS: "14px", ULTbLS: "0px", ULTbLH: "1em", ULTbT: "disc", ULTbP: "outside", ULTbI: "0px", ULPhFF: "Initial", ULPhFW: "400", ULPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULPhUColor: "#666", ULPhUStyle: "solid", ULPhColor: "#666", ULPhTS: "14px", ULPhLS: "0px", ULPhLH: "1em", ULPhT: "disc", ULPhP: "outside", ULPhI: "0px" }),
        _useState164 = _slicedToArray(_useState163, 2),
        stylesUL = _useState164[0],
        setStylesUL = _useState164[1];

    // Load graphics


    var loadingSpinner = pacDaAppLocalizer.plugin_url + 'include/img/loader.gif';

    // REST API URL
    var daGetWebReport = pacDaAppLocalizer.apiUrl + '/da/v1/daGetWebReport';
    var getSideBarData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetSideBarData';
    var daGetStartupData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetStartupData';
    var daGetWPPluginsData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetWPPluginsData';
    var daGetGlobalStyles = pacDaAppLocalizer.apiUrl + '/da/v1/daGetGlobalStyles';
    var daGetDiviChangelog = pacDaAppLocalizer.apiUrl + '/da/v1/daGetDiviChangelog';
    var daGetDashboardData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetDashboardData';
    var daGetTutorialsData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetTutorialsData';
    var daGetLocalFontData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetLocalFontData';
    var daGetAllGeneralData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetAllGeneralData';
    var daGetDataToExport = pacDaAppLocalizer.apiUrl + '/da/v1/daGetDataToExport';
    var daGetMaintenanceData = pacDaAppLocalizer.apiUrl + '/da/v1/daGetMaintenanceData';
    var daGetMaintenanceCards = pacDaAppLocalizer.apiUrl + '/da/v1/daGetMaintenanceCards';
    var daGetCustomQuickLinks = pacDaAppLocalizer.apiUrl + '/da/v1/daGetCustomQuickLinks';
    var daGetStartupCardsValue = pacDaAppLocalizer.apiUrl + '/da/v1/daGetStartupCardsValue';
    var daGetDiviAssistantChangelog = pacDaAppLocalizer.apiUrl + '/da/v1/daGetDiviAssistantChangelog';

    // Get Data From API's
    (0, _react.useEffect)(function () {
        var date = new Date();
        var hour = date.getHours();

        var timeOfDay = void 0;
        if (hour >= 0 && hour < 12) {
            timeOfDay = "Morning";
        } else if (hour >= 12 && hour < 17) {
            timeOfDay = "Afternoon";
        } else if (hour >= 17 && hour <= 24) {
            timeOfDay = "Evening";
        }
        setGreeting('Good ' + timeOfDay);

        _axios2.default.get(getSideBarData).then(function (response) {
            // console.log('SideBar Data: ', response.data);
            setSideBarData(response.data);
            setGetSideBarD(false);
        });
        _axios2.default.get(daGetDashboardData).then(function (response) {
            // console.log('Dashboard Data: ', response.data);
            setDashboardData(response.data);
            setDashboardCardsDismiss(response.data.DashboardCards);
            if (response.data.notificationsData !== 'File Not Found') {
                setNotificationsData(response.data.notificationsData);
            }
            setGetDashboardD(false);
        });
        _axios2.default.get(daGetDiviChangelog).then(function (response) {
            // console.log('Divi Changelog Data: ', response.data);
            if (response.data.versions['0'] === undefined) {
                alert('Please check your internet connection and reload the page becasue the error while fetching divi theme changelog.');
            }
            setDiviChangelogOptions(response.data.options);
            setDiviChangelogVersions(response.data.versions);
            setDiviCurrentVersion(response.data.divi_version);
            setDiviLatestVersion(response.data.versions['0'] !== undefined ? response.data.versions['0']['version'] : response.data.divi_version);
            setGetChangelogD(false);
        });
        _axios2.default.get(daGetDiviAssistantChangelog).then(function (response) {
            // console.log('Divi Assistant Changelog Data: ', response.data);
            setDiviAssistantChangelog(response.data);
        });
        _axios2.default.get(daGetWebReport).then(function (response) {
            // console.log('Report Data: ', response.data);
            setWebsiteReport(response.data);
            setGetReportD(false);
        });
        _axios2.default.get(daGetStartupCardsValue).then(function (response) {
            // console.log('Startup Cards: ', response.data);
            setStartupCards(response.data);
        });
        _axios2.default.get(daGetStartupData).then(function (response) {
            // console.log('Startup Data: ', response.data);
            setStartupData(response.data);
            setGetStartupD(false);
        });
        _axios2.default.get(daGetWPPluginsData).then(function (response) {
            // console.log('Wp Plugins Data: ', response.data);
            setPluginDataToExport(response.data);
            setGetPluginD(false);
        });
        _axios2.default.get(daGetMaintenanceCards).then(function (response) {
            // console.log('Maintenance Cards: ', response.data);
            setMaintenanceCards(response.data);
        });
        _axios2.default.get(daGetMaintenanceData).then(function (response) {
            // console.log('Maintenance Data: ', response.data);
            setMaintenanceData(response.data);
            setGetMaintenanceD(false);
        });
        _axios2.default.get(daGetAllGeneralData).then(function (response) {
            // console.log('General Data: ', response.data);
            setHideTSA(response.data.hideTSA);
            setAdminsData(response.data.adminsData);
            setAllowAdmin(response.data.allowAdmin);
            setAllowAdminDefault(response.data.allowAdminDefault);
            if (response.data.diviColorPalette !== undefined) {
                setDiviColorPalette(response.data.diviColorPalette.split("|"));
            }
            setDiviGlobalColor(response.data.et_global_colors);
            setDiviGlobalColorLabel(response.data.globalLabel);
            setCountWA(response.data.countWA);
            setUtilityCards(response.data.utilityCards);
            setMediaCards(response.data.mediaCards);
            setFontCards(response.data.fontCards);
            setEnableVbAllPosttypeCE(response.data.postTypeSetting.postTypeCE);
            setEnableVbAllPosttype(response.data.postTypeSetting.postType);
            setEnableVbAllPosttypeName(response.data.postTypeSetting.postTypeNames);
            setEnableVbAllPosttypeDefault(response.data.postTypeSetting.DefaultPostType);
            setEnvironmentsData(response.data.environmentsData);
            setCodeData(response.data.codeData);
            setEnableAddons(response.data.enableAddons);
            setUpdatedAddons(response.data.enableAddons);
            setScrollBar(response.data.scrollbar);
            setBackToTop(response.data.backToTop);
            setTextReplace(response.data.textReplace);
            setTextReplaceJson(response.data.textReplaceData);
            setAccessibilityHelperData(response.data.accessibilityHelperData);
            setFontFamily(response.data.fontFamily);
            setGetGeneralD(false);
        });
        _axios2.default.get(daGetDataToExport).then(function (response) {
            // console.log('Data To Export : ',response.data);
            setDataToExport(response.data);
            setGetExportD(false);
        });
        _axios2.default.get(daGetCustomQuickLinks).then(function (response) {
            // console.log('Custom Quick Links : ',response.data);
            setCustomQuickLinks(response.data.customQuickLinks);
            setCustomQuickLinksIcon(response.data.customQuickLinksIcon);
            setCustomQuickLinksParent(response.data.customQuickLinksParent);
            setCustomQuickLinksJson(response.data.customQuickLinksData);
            setGetCustomLinkD(false);
        });
        _axios2.default.get(daGetLocalFontData).then(function (response) {
            // console.log('Local Font Data: ', response.data);
            setLocalFont(response.data);
            setGetLocalFontD(false);
        });

        _axios2.default.get(daGetTutorialsData).then(function (response) {
            // console.log('Tutorials Data: ', response.data);
            if (response.data !== null) {
                setPacPostData(response.data.posts);
                setPacCtgData(response.data.ctgS);
                setPacTutCheckboxId(response.data.checkBoxId);
                setPacTutCheckboxVal(response.data.checkBoxVal);
                setTutFilterUpdateCb(response.data.checkBoxVal);
                setPacTutCheckboxDefault(response.data.checkBoxVal);
            } else {
                alert('Please check your internet connection and reload the page becasue the error while fetching tutorials pee-aye-creative website.');
            }

            setGetTutorialsD(false);
        });

        _axios2.default.get(daGetGlobalStyles).then(function (response) {
            // console.log('Styles Data: ', response.data);
            setStylesH1(response.data.stylesH1);
            setStylesH2(response.data.stylesH2);
            setStylesH3(response.data.stylesH3);
            setStylesH4(response.data.stylesH4);
            setStylesH5(response.data.stylesH5);
            setStylesH6(response.data.stylesH6);
            setStylesBT(response.data.stylesBT);
            setStylesLT(response.data.stylesLT);
            setStylesOL(response.data.stylesOL);
            setStylesUL(response.data.stylesUL);
            setGetStylesD(false);
        });
    }, []);

    return wp.element.createElement(
        _react2.default.Fragment,
        null,
        getSideBarD || getGeneralD ? wp.element.createElement(
            'div',
            { className: 'pac_da_Spinner' },
            wp.element.createElement('img', { src: loadingSpinner })
        ) : wp.element.createElement(_Diviassistant2.default, {
            greeting: greeting,
            loadingSpinner: loadingSpinner,
            getDashboardD: getDashboardD,
            notificationsData: notificationsData,
            getReportD: getReportD,
            getStartupD: getStartupD,
            getPluginD: getPluginD,
            getMaintenanceD: getMaintenanceD,
            getGeneralD: getGeneralD,
            getExportD: getExportD,
            getCustomLinkD: getCustomLinkD,
            getLocalFontD: getLocalFontD,
            getChangelogD: getChangelogD,
            getTutorialsD: getTutorialsD,
            getStylesD: getStylesD,
            sideBarData: sideBarData,
            diviAssistantChangelog: diviAssistantChangelog,
            currentTab: currentTab,
            setCurrentTab: setCurrentTab,
            currentSubTab: currentSubTab,
            setCurrentSubTab: setCurrentSubTab,
            hideTSA: hideTSA,
            diviCurrentVersion: diviCurrentVersion,
            setDiviCurrentVersion: setDiviCurrentVersion,
            diviLatestVersion: diviLatestVersion,
            diviChangelogOptions: diviChangelogOptions,
            diviChangelogVersions: diviChangelogVersions,
            dashboardData: dashboardData,
            dashboardCardsDismiss: dashboardCardsDismiss,
            setDashboardCardsDismiss: setDashboardCardsDismiss,
            newFeatureName: newFeatureName,
            setNewFeatureName: setNewFeatureName,
            newFeatureTitle: newFeatureTitle,
            setNewFeatureTitle: setNewFeatureTitle,
            newFeatureMessage: newFeatureMessage,
            setNewFeatureMessage: setNewFeatureMessage,
            startupData: startupData,
            pluginDataToExport: pluginDataToExport,
            startupCards: startupCards,
            setStartupCards: setStartupCards,
            maintenanceData: maintenanceData,
            maintenanceCards: maintenanceCards,
            setMaintenanceCards: setMaintenanceCards,
            diviColorPalette: diviColorPalette,
            dataToExport: dataToExport,
            diviGlobalColor: diviGlobalColor,
            setDiviGlobalColor: setDiviGlobalColor,
            diviGlobalColorLabel: diviGlobalColorLabel,
            setDiviGlobalColorLabel: setDiviGlobalColorLabel,
            enableVbAllPosttypeDefault: enableVbAllPosttypeDefault,
            countWA: countWA,
            setCountWA: setCountWA,
            utilityCards: utilityCards,
            setUtilityCards: setUtilityCards,
            adminsData: adminsData,
            allowAdmin: allowAdmin,
            setAllowAdmin: setAllowAdmin,
            allowAdminDefault: allowAdminDefault,
            textReplace: textReplace,
            setTextReplace: setTextReplace,
            textReplaceJson: textReplaceJson,
            setTextReplaceJson: setTextReplaceJson,
            accessibilityHelperData: accessibilityHelperData,
            setAccessibilityHelperData: setAccessibilityHelperData,
            mediaCards: mediaCards,
            setMediaCards: setMediaCards,
            fontCards: fontCards,
            setFontCards: setFontCards,
            enableVbAllPosttypeCE: enableVbAllPosttypeCE,
            setEnableVbAllPosttypeCE: setEnableVbAllPosttypeCE,
            enableVbAllPosttype: enableVbAllPosttype,
            setEnableVbAllPosttype: setEnableVbAllPosttype,
            enableVbAllPosttypeName: enableVbAllPosttypeName,
            tutFilterUpdateCb: tutFilterUpdateCb,
            setTutFilterUpdateCb: setTutFilterUpdateCb,
            tutFilter: tutFilter,
            setTutFilter: setTutFilter,
            pacPostData: pacPostData,
            pacCtgData: pacCtgData,
            pacTutCheckboxId: pacTutCheckboxId,
            pacTutCheckboxVal: pacTutCheckboxVal,
            setPacTutCheckboxVal: setPacTutCheckboxVal,
            pacTutCheckboxDefault: pacTutCheckboxDefault,
            websiteReport: websiteReport,
            customQuickLinks: customQuickLinks,
            setCustomQuickLinks: setCustomQuickLinks,
            customQuickLinksIcon: customQuickLinksIcon,
            setCustomQuickLinksIcon: setCustomQuickLinksIcon,
            customQuickLinksParent: customQuickLinksParent,
            setCustomQuickLinksParent: setCustomQuickLinksParent,
            customQuickLinksJson: customQuickLinksJson,
            setCustomQuickLinksJson: setCustomQuickLinksJson,
            localFont: localFont,
            setLocalFont: setLocalFont,
            environmentsData: environmentsData,
            setEnvironmentsData: setEnvironmentsData,
            codeData: codeData,
            setCodeData: setCodeData,
            enableAddons: enableAddons,
            setEnableAddons: setEnableAddons,
            updatedAddons: updatedAddons,
            setUpdatedAddons: setUpdatedAddons,
            scrollBar: scrollBar,
            setScrollBar: setScrollBar,
            backToTop: backToTop,
            setBackToTop: setBackToTop,
            fontFamily: fontFamily,
            setFontFamily: setFontFamily,
            stylesH1: stylesH1,
            setStylesH1: setStylesH1,
            stylesH2: stylesH2,
            setStylesH2: setStylesH2,
            stylesH3: stylesH3,
            setStylesH3: setStylesH3,
            stylesH4: stylesH4,
            setStylesH4: setStylesH4,
            stylesH5: stylesH5,
            setStylesH5: setStylesH5,
            stylesH6: stylesH6,
            setStylesH6: setStylesH6,
            stylesBT: stylesBT,
            setStylesBT: setStylesBT,
            stylesLT: stylesLT,
            setStylesLT: setStylesLT,
            stylesOL: stylesOL,
            setStylesOL: setStylesOL,
            stylesUL: stylesUL,
            setStylesUL: setStylesUL
        })
    );
}
exports.default = App;

/***/ }),
/* 155 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);
var bind = __webpack_require__(83);
var Axios = __webpack_require__(156);
var mergeConfig = __webpack_require__(89);
var defaults = __webpack_require__(48);

/**
 * Create an instance of Axios
 *
 * @param {Object} defaultConfig The default config for the instance
 * @return {Axios} A new instance of Axios
 */
function createInstance(defaultConfig) {
  var context = new Axios(defaultConfig);
  var instance = bind(Axios.prototype.request, context);

  // Copy axios.prototype to instance
  utils.extend(instance, Axios.prototype, context);

  // Copy context to instance
  utils.extend(instance, context);

  return instance;
}

// Create the default instance to be exported
var axios = createInstance(defaults);

// Expose Axios class to allow class inheritance
axios.Axios = Axios;

// Factory for creating new instances
axios.create = function create(instanceConfig) {
  return createInstance(mergeConfig(axios.defaults, instanceConfig));
};

// Expose Cancel & CancelToken
axios.Cancel = __webpack_require__(90);
axios.CancelToken = __webpack_require__(170);
axios.isCancel = __webpack_require__(88);

// Expose all/spread
axios.all = function all(promises) {
  return Promise.all(promises);
};
axios.spread = __webpack_require__(171);

// Expose isAxiosError
axios.isAxiosError = __webpack_require__(172);

module.exports = axios;

// Allow use of default import syntax in TypeScript
module.exports.default = axios;


/***/ }),
/* 156 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);
var buildURL = __webpack_require__(84);
var InterceptorManager = __webpack_require__(157);
var dispatchRequest = __webpack_require__(158);
var mergeConfig = __webpack_require__(89);
var validator = __webpack_require__(168);

var validators = validator.validators;
/**
 * Create a new instance of Axios
 *
 * @param {Object} instanceConfig The default config for the instance
 */
function Axios(instanceConfig) {
  this.defaults = instanceConfig;
  this.interceptors = {
    request: new InterceptorManager(),
    response: new InterceptorManager()
  };
}

/**
 * Dispatch a request
 *
 * @param {Object} config The config specific for this request (merged with this.defaults)
 */
Axios.prototype.request = function request(config) {
  /*eslint no-param-reassign:0*/
  // Allow for axios('example/url'[, config]) a la fetch API
  if (typeof config === 'string') {
    config = arguments[1] || {};
    config.url = arguments[0];
  } else {
    config = config || {};
  }

  config = mergeConfig(this.defaults, config);

  // Set config.method
  if (config.method) {
    config.method = config.method.toLowerCase();
  } else if (this.defaults.method) {
    config.method = this.defaults.method.toLowerCase();
  } else {
    config.method = 'get';
  }

  var transitional = config.transitional;

  if (transitional !== undefined) {
    validator.assertOptions(transitional, {
      silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
      forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
      clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
    }, false);
  }

  // filter out skipped interceptors
  var requestInterceptorChain = [];
  var synchronousRequestInterceptors = true;
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
    if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
      return;
    }

    synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;

    requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  });

  var responseInterceptorChain = [];
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
    responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  });

  var promise;

  if (!synchronousRequestInterceptors) {
    var chain = [dispatchRequest, undefined];

    Array.prototype.unshift.apply(chain, requestInterceptorChain);
    chain = chain.concat(responseInterceptorChain);

    promise = Promise.resolve(config);
    while (chain.length) {
      promise = promise.then(chain.shift(), chain.shift());
    }

    return promise;
  }


  var newConfig = config;
  while (requestInterceptorChain.length) {
    var onFulfilled = requestInterceptorChain.shift();
    var onRejected = requestInterceptorChain.shift();
    try {
      newConfig = onFulfilled(newConfig);
    } catch (error) {
      onRejected(error);
      break;
    }
  }

  try {
    promise = dispatchRequest(newConfig);
  } catch (error) {
    return Promise.reject(error);
  }

  while (responseInterceptorChain.length) {
    promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  }

  return promise;
};

Axios.prototype.getUri = function getUri(config) {
  config = mergeConfig(this.defaults, config);
  return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
};

// Provide aliases for supported request methods
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  /*eslint func-names:0*/
  Axios.prototype[method] = function(url, config) {
    return this.request(mergeConfig(config || {}, {
      method: method,
      url: url,
      data: (config || {}).data
    }));
  };
});

utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  /*eslint func-names:0*/
  Axios.prototype[method] = function(url, data, config) {
    return this.request(mergeConfig(config || {}, {
      method: method,
      url: url,
      data: data
    }));
  };
});

module.exports = Axios;


/***/ }),
/* 157 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

function InterceptorManager() {
  this.handlers = [];
}

/**
 * Add a new interceptor to the stack
 *
 * @param {Function} fulfilled The function to handle `then` for a `Promise`
 * @param {Function} rejected The function to handle `reject` for a `Promise`
 *
 * @return {Number} An ID used to remove interceptor later
 */
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  this.handlers.push({
    fulfilled: fulfilled,
    rejected: rejected,
    synchronous: options ? options.synchronous : false,
    runWhen: options ? options.runWhen : null
  });
  return this.handlers.length - 1;
};

/**
 * Remove an interceptor from the stack
 *
 * @param {Number} id The ID that was returned by `use`
 */
InterceptorManager.prototype.eject = function eject(id) {
  if (this.handlers[id]) {
    this.handlers[id] = null;
  }
};

/**
 * Iterate over all the registered interceptors
 *
 * This method is particularly useful for skipping over any
 * interceptors that may have become `null` calling `eject`.
 *
 * @param {Function} fn The function to call for each interceptor
 */
InterceptorManager.prototype.forEach = function forEach(fn) {
  utils.forEach(this.handlers, function forEachHandler(h) {
    if (h !== null) {
      fn(h);
    }
  });
};

module.exports = InterceptorManager;


/***/ }),
/* 158 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);
var transformData = __webpack_require__(159);
var isCancel = __webpack_require__(88);
var defaults = __webpack_require__(48);

/**
 * Throws a `Cancel` if cancellation has been requested.
 */
function throwIfCancellationRequested(config) {
  if (config.cancelToken) {
    config.cancelToken.throwIfRequested();
  }
}

/**
 * Dispatch a request to the server using the configured adapter.
 *
 * @param {object} config The config that is to be used for the request
 * @returns {Promise} The Promise to be fulfilled
 */
module.exports = function dispatchRequest(config) {
  throwIfCancellationRequested(config);

  // Ensure headers exist
  config.headers = config.headers || {};

  // Transform request data
  config.data = transformData.call(
    config,
    config.data,
    config.headers,
    config.transformRequest
  );

  // Flatten headers
  config.headers = utils.merge(
    config.headers.common || {},
    config.headers[config.method] || {},
    config.headers
  );

  utils.forEach(
    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
    function cleanHeaderConfig(method) {
      delete config.headers[method];
    }
  );

  var adapter = config.adapter || defaults.adapter;

  return adapter(config).then(function onAdapterResolution(response) {
    throwIfCancellationRequested(config);

    // Transform response data
    response.data = transformData.call(
      config,
      response.data,
      response.headers,
      config.transformResponse
    );

    return response;
  }, function onAdapterRejection(reason) {
    if (!isCancel(reason)) {
      throwIfCancellationRequested(config);

      // Transform response data
      if (reason && reason.response) {
        reason.response.data = transformData.call(
          config,
          reason.response.data,
          reason.response.headers,
          config.transformResponse
        );
      }
    }

    return Promise.reject(reason);
  });
};


/***/ }),
/* 159 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);
var defaults = __webpack_require__(48);

/**
 * Transform the data for a request or a response
 *
 * @param {Object|String} data The data to be transformed
 * @param {Array} headers The headers for the request or response
 * @param {Array|Function} fns A single function or Array of functions
 * @returns {*} The resulting transformed data
 */
module.exports = function transformData(data, headers, fns) {
  var context = this || defaults;
  /*eslint no-param-reassign:0*/
  utils.forEach(fns, function transform(fn) {
    data = fn.call(context, data, headers);
  });

  return data;
};


/***/ }),
/* 160 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

module.exports = function normalizeHeaderName(headers, normalizedName) {
  utils.forEach(headers, function processHeader(value, name) {
    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
      headers[normalizedName] = value;
      delete headers[name];
    }
  });
};


/***/ }),
/* 161 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var createError = __webpack_require__(87);

/**
 * Resolve or reject a Promise based on response status.
 *
 * @param {Function} resolve A function that resolves the promise.
 * @param {Function} reject A function that rejects the promise.
 * @param {object} response The response.
 */
module.exports = function settle(resolve, reject, response) {
  var validateStatus = response.config.validateStatus;
  if (!response.status || !validateStatus || validateStatus(response.status)) {
    resolve(response);
  } else {
    reject(createError(
      'Request failed with status code ' + response.status,
      response.config,
      null,
      response.request,
      response
    ));
  }
};


/***/ }),
/* 162 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

module.exports = (
  utils.isStandardBrowserEnv() ?

  // Standard browser envs support document.cookie
    (function standardBrowserEnv() {
      return {
        write: function write(name, value, expires, path, domain, secure) {
          var cookie = [];
          cookie.push(name + '=' + encodeURIComponent(value));

          if (utils.isNumber(expires)) {
            cookie.push('expires=' + new Date(expires).toGMTString());
          }

          if (utils.isString(path)) {
            cookie.push('path=' + path);
          }

          if (utils.isString(domain)) {
            cookie.push('domain=' + domain);
          }

          if (secure === true) {
            cookie.push('secure');
          }

          document.cookie = cookie.join('; ');
        },

        read: function read(name) {
          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
          return (match ? decodeURIComponent(match[3]) : null);
        },

        remove: function remove(name) {
          this.write(name, '', Date.now() - 86400000);
        }
      };
    })() :

  // Non standard browser env (web workers, react-native) lack needed support.
    (function nonStandardBrowserEnv() {
      return {
        write: function write() {},
        read: function read() { return null; },
        remove: function remove() {}
      };
    })()
);


/***/ }),
/* 163 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var isAbsoluteURL = __webpack_require__(164);
var combineURLs = __webpack_require__(165);

/**
 * Creates a new URL by combining the baseURL with the requestedURL,
 * only when the requestedURL is not already an absolute URL.
 * If the requestURL is absolute, this function returns the requestedURL untouched.
 *
 * @param {string} baseURL The base URL
 * @param {string} requestedURL Absolute or relative URL to combine
 * @returns {string} The combined full path
 */
module.exports = function buildFullPath(baseURL, requestedURL) {
  if (baseURL && !isAbsoluteURL(requestedURL)) {
    return combineURLs(baseURL, requestedURL);
  }
  return requestedURL;
};


/***/ }),
/* 164 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Determines whether the specified URL is absolute
 *
 * @param {string} url The URL to test
 * @returns {boolean} True if the specified URL is absolute, otherwise false
 */
module.exports = function isAbsoluteURL(url) {
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  // by any combination of letters, digits, plus, period, or hyphen.
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
};


/***/ }),
/* 165 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Creates a new URL by combining the specified URLs
 *
 * @param {string} baseURL The base URL
 * @param {string} relativeURL The relative URL
 * @returns {string} The combined URL
 */
module.exports = function combineURLs(baseURL, relativeURL) {
  return relativeURL
    ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
    : baseURL;
};


/***/ }),
/* 166 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

// Headers whose duplicates are ignored by node
// c.f. https://nodejs.org/api/http.html#http_message_headers
var ignoreDuplicateOf = [
  'age', 'authorization', 'content-length', 'content-type', 'etag',
  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  'referer', 'retry-after', 'user-agent'
];

/**
 * Parse headers into an object
 *
 * ```
 * Date: Wed, 27 Aug 2014 08:58:49 GMT
 * Content-Type: application/json
 * Connection: keep-alive
 * Transfer-Encoding: chunked
 * ```
 *
 * @param {String} headers Headers needing to be parsed
 * @returns {Object} Headers parsed into an object
 */
module.exports = function parseHeaders(headers) {
  var parsed = {};
  var key;
  var val;
  var i;

  if (!headers) { return parsed; }

  utils.forEach(headers.split('\n'), function parser(line) {
    i = line.indexOf(':');
    key = utils.trim(line.substr(0, i)).toLowerCase();
    val = utils.trim(line.substr(i + 1));

    if (key) {
      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
        return;
      }
      if (key === 'set-cookie') {
        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
      } else {
        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
      }
    }
  });

  return parsed;
};


/***/ }),
/* 167 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(9);

module.exports = (
  utils.isStandardBrowserEnv() ?

  // Standard browser envs have full support of the APIs needed to test
  // whether the request URL is of the same origin as current location.
    (function standardBrowserEnv() {
      var msie = /(msie|trident)/i.test(navigator.userAgent);
      var urlParsingNode = document.createElement('a');
      var originURL;

      /**
    * Parse a URL to discover it's components
    *
    * @param {String} url The URL to be parsed
    * @returns {Object}
    */
      function resolveURL(url) {
        var href = url;

        if (msie) {
        // IE needs attribute set twice to normalize properties
          urlParsingNode.setAttribute('href', href);
          href = urlParsingNode.href;
        }

        urlParsingNode.setAttribute('href', href);

        // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
        return {
          href: urlParsingNode.href,
          protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
          host: urlParsingNode.host,
          search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
          hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
          hostname: urlParsingNode.hostname,
          port: urlParsingNode.port,
          pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
            urlParsingNode.pathname :
            '/' + urlParsingNode.pathname
        };
      }

      originURL = resolveURL(window.location.href);

      /**
    * Determine if a URL shares the same origin as the current location
    *
    * @param {String} requestURL The URL to test
    * @returns {boolean} True if URL shares the same origin, otherwise false
    */
      return function isURLSameOrigin(requestURL) {
        var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
        return (parsed.protocol === originURL.protocol &&
            parsed.host === originURL.host);
      };
    })() :

  // Non standard browser envs (web workers, react-native) lack needed support.
    (function nonStandardBrowserEnv() {
      return function isURLSameOrigin() {
        return true;
      };
    })()
);


/***/ }),
/* 168 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var pkg = __webpack_require__(169);

var validators = {};

// eslint-disable-next-line func-names
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  validators[type] = function validator(thing) {
    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  };
});

var deprecatedWarnings = {};
var currentVerArr = pkg.version.split('.');

/**
 * Compare package versions
 * @param {string} version
 * @param {string?} thanVersion
 * @returns {boolean}
 */
function isOlderVersion(version, thanVersion) {
  var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
  var destVer = version.split('.');
  for (var i = 0; i < 3; i++) {
    if (pkgVersionArr[i] > destVer[i]) {
      return true;
    } else if (pkgVersionArr[i] < destVer[i]) {
      return false;
    }
  }
  return false;
}

/**
 * Transitional option validator
 * @param {function|boolean?} validator
 * @param {string?} version
 * @param {string} message
 * @returns {function}
 */
validators.transitional = function transitional(validator, version, message) {
  var isDeprecated = version && isOlderVersion(version);

  function formatMessage(opt, desc) {
    return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  }

  // eslint-disable-next-line func-names
  return function(value, opt, opts) {
    if (validator === false) {
      throw new Error(formatMessage(opt, ' has been removed in ' + version));
    }

    if (isDeprecated && !deprecatedWarnings[opt]) {
      deprecatedWarnings[opt] = true;
      // eslint-disable-next-line no-console
      console.warn(
        formatMessage(
          opt,
          ' has been deprecated since v' + version + ' and will be removed in the near future'
        )
      );
    }

    return validator ? validator(value, opt, opts) : true;
  };
};

/**
 * Assert object's properties type
 * @param {object} options
 * @param {object} schema
 * @param {boolean?} allowUnknown
 */

function assertOptions(options, schema, allowUnknown) {
  if (typeof options !== 'object') {
    throw new TypeError('options must be an object');
  }
  var keys = Object.keys(options);
  var i = keys.length;
  while (i-- > 0) {
    var opt = keys[i];
    var validator = schema[opt];
    if (validator) {
      var value = options[opt];
      var result = value === undefined || validator(value, opt, options);
      if (result !== true) {
        throw new TypeError('option ' + opt + ' must be ' + result);
      }
      continue;
    }
    if (allowUnknown !== true) {
      throw Error('Unknown option ' + opt);
    }
  }
}

module.exports = {
  isOlderVersion: isOlderVersion,
  assertOptions: assertOptions,
  validators: validators
};


/***/ }),
/* 169 */
/***/ (function(module, exports) {

module.exports = {"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}

/***/ }),
/* 170 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var Cancel = __webpack_require__(90);

/**
 * A `CancelToken` is an object that can be used to request cancellation of an operation.
 *
 * @class
 * @param {Function} executor The executor function.
 */
function CancelToken(executor) {
  if (typeof executor !== 'function') {
    throw new TypeError('executor must be a function.');
  }

  var resolvePromise;
  this.promise = new Promise(function promiseExecutor(resolve) {
    resolvePromise = resolve;
  });

  var token = this;
  executor(function cancel(message) {
    if (token.reason) {
      // Cancellation has already been requested
      return;
    }

    token.reason = new Cancel(message);
    resolvePromise(token.reason);
  });
}

/**
 * Throws a `Cancel` if cancellation has been requested.
 */
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  if (this.reason) {
    throw this.reason;
  }
};

/**
 * Returns an object that contains a new `CancelToken` and a function that, when called,
 * cancels the `CancelToken`.
 */
CancelToken.source = function source() {
  var cancel;
  var token = new CancelToken(function executor(c) {
    cancel = c;
  });
  return {
    token: token,
    cancel: cancel
  };
};

module.exports = CancelToken;


/***/ }),
/* 171 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Syntactic sugar for invoking a function and expanding an array for arguments.
 *
 * Common use case would be to use `Function.prototype.apply`.
 *
 *  ```js
 *  function f(x, y, z) {}
 *  var args = [1, 2, 3];
 *  f.apply(null, args);
 *  ```
 *
 * With `spread` this example can be re-written.
 *
 *  ```js
 *  spread(function(x, y, z) {})([1, 2, 3]);
 *  ```
 *
 * @param {Function} callback
 * @returns {Function}
 */
module.exports = function spread(callback) {
  return function wrap(arr) {
    return callback.apply(null, arr);
  };
};


/***/ }),
/* 172 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


/**
 * Determines whether the payload is an error thrown by Axios
 *
 * @param {*} payload The value to test
 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
 */
module.exports = function isAxiosError(payload) {
  return (typeof payload === 'object') && (payload.isAxiosError === true);
};


/***/ }),
/* 173 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Tabs = __webpack_require__(174);

var _Tabs2 = _interopRequireDefault(_Tabs);

var _SubTabs = __webpack_require__(175);

var _SubTabs2 = _interopRequireDefault(_SubTabs);

var _Dashboard = __webpack_require__(176);

var _Dashboard2 = _interopRequireDefault(_Dashboard);

var _Newfeature = __webpack_require__(178);

var _Newfeature2 = _interopRequireDefault(_Newfeature);

var _AdminSettings = __webpack_require__(179);

var _AdminSettings2 = _interopRequireDefault(_AdminSettings);

var _About = __webpack_require__(458);

var _About2 = _interopRequireDefault(_About);

var _DiviAssistantChangelog = __webpack_require__(459);

var _DiviAssistantChangelog2 = _interopRequireDefault(_DiviAssistantChangelog);

var _OurProducts = __webpack_require__(460);

var _OurProducts2 = _interopRequireDefault(_OurProducts);

var _Addons = __webpack_require__(462);

var _Addons2 = _interopRequireDefault(_Addons);

var _Startup = __webpack_require__(464);

var _Startup2 = _interopRequireDefault(_Startup);

var _ExportPlugins = __webpack_require__(466);

var _ExportPlugins2 = _interopRequireDefault(_ExportPlugins);

var _ChildThemeGenerator = __webpack_require__(467);

var _ChildThemeGenerator2 = _interopRequireDefault(_ChildThemeGenerator);

var _InstallPlugins = __webpack_require__(142);

var _InstallPlugins2 = _interopRequireDefault(_InstallPlugins);

var _Comingsoon = __webpack_require__(468);

var _Comingsoon2 = _interopRequireDefault(_Comingsoon);

var _Maintenance = __webpack_require__(469);

var _Maintenance2 = _interopRequireDefault(_Maintenance);

var _AutoClearCache = __webpack_require__(470);

var _AutoClearCache2 = _interopRequireDefault(_AutoClearCache);

var _Divichangelog = __webpack_require__(471);

var _Divichangelog2 = _interopRequireDefault(_Divichangelog);

var _Updates = __webpack_require__(472);

var _Updates2 = _interopRequireDefault(_Updates);

var _Changediviveriosn = __webpack_require__(473);

var _Changediviveriosn2 = _interopRequireDefault(_Changediviveriosn);

var _AdminBar = __webpack_require__(474);

var _AdminBar2 = _interopRequireDefault(_AdminBar);

var _Editor = __webpack_require__(477);

var _Editor2 = _interopRequireDefault(_Editor);

var _VisualBuilder = __webpack_require__(478);

var _VisualBuilder2 = _interopRequireDefault(_VisualBuilder);

var _DiviLibrary = __webpack_require__(479);

var _DiviLibrary2 = _interopRequireDefault(_DiviLibrary);

var _PostTypes = __webpack_require__(480);

var _PostTypes2 = _interopRequireDefault(_PostTypes);

var _SMTP = __webpack_require__(481);

var _SMTP2 = _interopRequireDefault(_SMTP);

var _Media = __webpack_require__(482);

var _Media2 = _interopRequireDefault(_Media);

var _ImageAttributes = __webpack_require__(483);

var _ImageAttributes2 = _interopRequireDefault(_ImageAttributes);

var _AltText = __webpack_require__(484);

var _AltText2 = _interopRequireDefault(_AltText);

var _Library = __webpack_require__(485);

var _Library2 = _interopRequireDefault(_Library);

var _Font = __webpack_require__(486);

var _Font2 = _interopRequireDefault(_Font);

var _UploadFontFile = __webpack_require__(487);

var _UploadFontFile2 = _interopRequireDefault(_UploadFontFile);

var _Glossary = __webpack_require__(488);

var _Glossary2 = _interopRequireDefault(_Glossary);

var _Tutorials = __webpack_require__(489);

var _Tutorials2 = _interopRequireDefault(_Tutorials);

var _Courses = __webpack_require__(491);

var _Courses2 = _interopRequireDefault(_Courses);

var _WebReport = __webpack_require__(493);

var _WebReport2 = _interopRequireDefault(_WebReport);

var _Code = __webpack_require__(495);

var _Code2 = _interopRequireDefault(_Code);

var _GlobalColors = __webpack_require__(496);

var _GlobalColors2 = _interopRequireDefault(_GlobalColors);

var _HeadingStyles = __webpack_require__(497);

var _HeadingStyles2 = _interopRequireDefault(_HeadingStyles);

var _BodyStyles = __webpack_require__(499);

var _BodyStyles2 = _interopRequireDefault(_BodyStyles);

var _LinkStyles = __webpack_require__(500);

var _LinkStyles2 = _interopRequireDefault(_LinkStyles);

var _UnOrderListStyles = __webpack_require__(501);

var _UnOrderListStyles2 = _interopRequireDefault(_UnOrderListStyles);

var _OrderListStyles = __webpack_require__(502);

var _OrderListStyles2 = _interopRequireDefault(_OrderListStyles);

var _ResetPopup = __webpack_require__(503);

var _ResetPopup2 = _interopRequireDefault(_ResetPopup);

var _ImportExport = __webpack_require__(504);

var _ImportExport2 = _interopRequireDefault(_ImportExport);

var _Miscellaneous = __webpack_require__(505);

var _Miscellaneous2 = _interopRequireDefault(_Miscellaneous);

var _Scrollbar = __webpack_require__(506);

var _Scrollbar2 = _interopRequireDefault(_Scrollbar);

var _BackToTop = __webpack_require__(507);

var _BackToTop2 = _interopRequireDefault(_BackToTop);

var _ReplaceText = __webpack_require__(508);

var _ReplaceText2 = _interopRequireDefault(_ReplaceText);

var _AccessibilityHelper = __webpack_require__(509);

var _AccessibilityHelper2 = _interopRequireDefault(_AccessibilityHelper);

var _TemporaryLoginAccess = __webpack_require__(510);

var _TemporaryLoginAccess2 = _interopRequireDefault(_TemporaryLoginAccess);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Diviassistant = function Diviassistant(props) {
    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        resetPopup = _useState2[0],
        setResetPopup = _useState2[1];

    var _useState3 = (0, _react.useState)(false),
        _useState4 = _slicedToArray(_useState3, 2),
        importExportPopup = _useState4[0],
        setImportExportPopup = _useState4[1];

    var _useState5 = (0, _react.useState)(false),
        _useState6 = _slicedToArray(_useState5, 2),
        importOrExport = _useState6[0],
        setImportOrExport = _useState6[1];

    var _useState7 = (0, _react.useState)('Divi Assistant Settings'),
        _useState8 = _slicedToArray(_useState7, 2),
        exportFileName = _useState8[0],
        setExportFileName = _useState8[1];

    var _useState9 = (0, _react.useState)(''),
        _useState10 = _slicedToArray(_useState9, 2),
        importFileName = _useState10[0],
        setImportFileName = _useState10[1];

    var _useState11 = (0, _react.useState)(''),
        _useState12 = _slicedToArray(_useState11, 2),
        importFileData = _useState12[0],
        setImportFileData = _useState12[1];

    var _useState13 = (0, _react.useState)(false),
        _useState14 = _slicedToArray(_useState13, 2),
        exportGlobalColor = _useState14[0],
        setExportGlobalColor = _useState14[1];

    var _useState15 = (0, _react.useState)(false),
        _useState16 = _slicedToArray(_useState15, 2),
        exportDiviThemeOptions = _useState16[0],
        setExportdiviThemeOptions = _useState16[1];

    var _useState17 = (0, _react.useState)(false),
        _useState18 = _slicedToArray(_useState17, 2),
        exportCustomizerStg = _useState18[0],
        setExportCustomizerStg = _useState18[1];

    var _useState19 = (0, _react.useState)(false),
        _useState20 = _slicedToArray(_useState19, 2),
        exportGlobalPresets = _useState20[0],
        setExportGlobalPresets = _useState20[1];

    var _useState21 = (0, _react.useState)(false),
        _useState22 = _slicedToArray(_useState21, 2),
        exportDiviLayouts = _useState22[0],
        setExportDiviLayouts = _useState22[1];

    var _useState23 = (0, _react.useState)(false),
        _useState24 = _slicedToArray(_useState23, 2),
        exportThemeBuilderTemplates = _useState24[0],
        setExportThemeBuilderTemplates = _useState24[1];

    var _useState25 = (0, _react.useState)(false),
        _useState26 = _slicedToArray(_useState25, 2),
        importGlobalColor = _useState26[0],
        setImportGlobalColor = _useState26[1];

    var _useState27 = (0, _react.useState)(false),
        _useState28 = _slicedToArray(_useState27, 2),
        importDiviThemeOptions = _useState28[0],
        setImportDiviThemeOptions = _useState28[1];

    var _useState29 = (0, _react.useState)(false),
        _useState30 = _slicedToArray(_useState29, 2),
        importCustomizerStg = _useState30[0],
        setImportCustomizerStg = _useState30[1];

    var _useState31 = (0, _react.useState)(false),
        _useState32 = _slicedToArray(_useState31, 2),
        importGlobalPresets = _useState32[0],
        setImportGlobalPresets = _useState32[1];

    var _useState33 = (0, _react.useState)(false),
        _useState34 = _slicedToArray(_useState33, 2),
        importDiviLibraryLayout = _useState34[0],
        setImportDiviLibraryLayout = _useState34[1];

    var _useState35 = (0, _react.useState)(false),
        _useState36 = _slicedToArray(_useState35, 2),
        importDiviTBT = _useState36[0],
        setImportDiviTBT = _useState36[1];

    var _useState37 = (0, _react.useState)(false),
        _useState38 = _slicedToArray(_useState37, 2),
        importGlobalColorCb = _useState38[0],
        setImportGlobalColorCb = _useState38[1];

    var _useState39 = (0, _react.useState)(false),
        _useState40 = _slicedToArray(_useState39, 2),
        importDiviThemeOptionsCb = _useState40[0],
        setImportDiviThemeOptionsCb = _useState40[1];

    var _useState41 = (0, _react.useState)(false),
        _useState42 = _slicedToArray(_useState41, 2),
        importCustomizerStgCb = _useState42[0],
        setImportCustomizerStgCb = _useState42[1];

    var _useState43 = (0, _react.useState)(false),
        _useState44 = _slicedToArray(_useState43, 2),
        importGlobalPresetsCb = _useState44[0],
        setImportGlobalPresetsCb = _useState44[1];

    var _useState45 = (0, _react.useState)(false),
        _useState46 = _slicedToArray(_useState45, 2),
        importDiviLibraryLayoutCb = _useState46[0],
        setImportDiviLibraryLayoutCb = _useState46[1];

    var _useState47 = (0, _react.useState)(false),
        _useState48 = _slicedToArray(_useState47, 2),
        importDiviTBTCb = _useState48[0],
        setImportDiviTBTCb = _useState48[1];

    var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';
    var resetSettings = pacDaAppLocalizer.apiUrl + '/da/v1/daResetSettings';
    var ImportSettings = pacDaAppLocalizer.apiUrl + '/da/v1/daImportSettings';
    var ExportSettings = pacDaAppLocalizer.apiUrl + '/da/v1/daExportSettings';

    var openDiviChangelog = function openDiviChangelog() {
        if (props.enableAddons.maintenance === true) {
            props.setCurrentTab('Maintenance Helper');
            props.setCurrentSubTab('Divi Changelog');
        } else {
            alert('Enable Maintaince Helper Addon');
        }
    };

    var updateStyles = function updateStyles() {
        document.getElementById("pac_da_loading_spinner").style.display = 'block';
        _axios2.default.post(updateData, {
            card: 'Styles',
            value: JSON.stringify(props.stylesH1),
            H2: JSON.stringify(props.stylesH2),
            H3: JSON.stringify(props.stylesH3),
            H4: JSON.stringify(props.stylesH4),
            H5: JSON.stringify(props.stylesH5),
            H6: JSON.stringify(props.stylesH6),
            BT: JSON.stringify(props.stylesBT),
            LT: JSON.stringify(props.stylesLT),
            OL: JSON.stringify(props.stylesOL),
            UL: JSON.stringify(props.stylesUL)
        }).then(function (response) {
            document.getElementById("pac_da_loading_spinner").classList.add("saved");
            setTimeout(function () {
                document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                document.getElementById("pac_da_loading_spinner").style.display = 'none';
            }, 1000);
        });
    };

    var handleResetSettings = function handleResetSettings() {
        props.setTextReplace(false);
        props.setFontCards(false);
        props.setCustomQuickLinks(false);
        props.setCustomQuickLinksIcon('');
        props.setCustomQuickLinksParent('');
        props.setAllowAdmin(props.allowAdminDefault);
        props.setTextReplaceJson([{ selector: '', customText: '' }]);
        props.setEnableVbAllPosttype(props.enableVbAllPosttypeDefault);
        props.setEnableVbAllPosttypeCE(props.enableVbAllPosttypeDefault);
        props.setCodeData({ css: false, jquery: false, php: false, enableResize: false, boxHeight: false, boxHeightValue: '313px', enableResizeCe: false, boxHeightCe: false, boxHeightValueCe: "313px" });
        props.setMediaCards({ svgUploads: false, svgUploadsValue: 'default', fileSize: false, fileSizeValue: '512kb', imgReplace: false, imgTitle: false, useAltText: false, ignoreAltText: false, imgAltTitleFileName: "disable", infiniteScroll: false });
        props.setDashboardCardsDismiss({ systemStatus: false, featureUpdate: false, blogPublic: false });
        props.setCustomQuickLinksJson([{ label: '', url: '', child: '0' }, { label: '', url: '', child: '1' }]);
        props.setMaintenanceCards({ commingSoon: false, Maintenance: false, commingSoonPage: "none", MaintenancePage: "none", byPassCommingSoon: false, byPassLink: null, autoClearCache: "disable", clearOnExitsVB: false, clearOnUpdatePlugin: false, clearOnUpdateTheme: false });
        props.setStartupCards({ plugin: false, theme: false, page: false, post: false, widgets: false, homepage: false, menu: false, disableComments: false, permalink: false, installPlugins: false });
        props.setScrollBar({ scrollbar: false, barWidth: "17px", barBgColor: "#f1f1f1", barRaduis: "3px", barHandleColor: "#c1c1c1", barHandleHColor: "#c1c1c1" });
        props.setEnvironmentsData({ enable: false, environment: 'default', prodLabel: 'Production', prodClr: '#00D263', stagLabel: 'Staging', stagClr: '#7846FF', devLabel: 'Development', devClr: '#F15A24' });
        props.setEnableAddons({ startUp: true, maintenance: true, utility: true, visual: true, media: true, learning: true, support: true, fonts: true, styles: true, code: true, frontend: true, accessibility: true });
        props.setUpdatedAddons({ startUp: true, maintenance: true, utility: true, visual: true, interface: true, media: true, learning: true, support: true, fonts: true, styles: true, code: true, environments: true, scroll: true });
        props.setBackToTop({ backToTop: false, devices: "all", btnBgColor: "rgba(0,0,0,0.4)", btnBgHColor: "rgba(0,0,0,0.4)", btnRadius: "5px", right: "0px", bottom: "125px", btnTextColor: "#ffffff", btnTextHColor: "#ffffff", btnContent: "icon", btnIcon: "", btnText: "", btnIconPlacement: "left" });
        props.setAccessibilityHelperData({ focusable: false, outline: false, outlineColor: "#E1271A", ariaSupport: false, iconsAria: false, Underline: false, underlineHeading: false, underlineBtns: false, underlineMenu: false, skipNavigation: false, hideSkipNavigation: false, duplicateMenu: false, dropdownMenu: false, improveScreenReader: false, pinchZoom: false, Tota11y: false });
        props.setUtilityCards({ staticCss: false, localStorage: false, hardRefresh: false, quickLinks: false, tBTDetails: false, adminbarEverywhere: false, adminbarFrontend: false, adminbarHover: false, duplicateDiviLib: false, exportDiviLib: false, diviLibWidget: false, diviLibSC: false, openVisualBuilder: false, disableCommentSettings: false, duplicatePagePost: false, escKey: false, hideLayout: false, disableAi: false, disableDiviCloud: false, hideExploreBtn: false, hideLayoutsBtn: false, horizontalScroll: false, cursorHighlight: false, bgHighlight: '#3399ff', textHighlight: '#ffffff', anchorLinkOffset: false, anchorLinkOffsetVal: "100px", hideProject: false, renameProject: false, pluralName: 'Projects', singularName: 'Project', slug: 'projects', pluralCategory: 'Project Categories', singularCategory: 'Project Category', slugCategory: 'project_category', pluralTag: 'Project Tags', singularTag: 'Project Tag', slugTag: 'project_tag', menuIcon: 'dashicons-admin-post', defaultThemes: false, updateThemes: false, updatePlugins: false, fullScreen: false, edidorBtn: false, hideDiviBuilderBtn: false, stickyToolbar: false, htmlArea: false, htmlAreaValue: '400px', popupHeight: false, popupHeightValue: '500px', iconAreaHeight: false, iconAreaHeightValue: '300px', textPopover: false, rowWidth: false, swapSandGbtn: false, deleteData: false, tempLogin: false, tempLoginTime: null, tempLoginLink: null, smtpEnable: false, smtpHost: "", smtpEmail: "", smtpName: "", smtpEncryption: "none", smtpPort: "", smtpTLS: false, smtpAuthentication: false, smtpUsername: "", smtpPassword: "" });
        props.setStylesH1({ H1: false, H1DpFF: "Initial", H1DpFW: "400", H1DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1DpUColor: "#333", H1DpUStyle: "solid", H1DpColor: "#333", H1DpTS: "30px", H1DpLS: "0px", H1DpLH: "1em", H1TbFF: "Initial", H1TbFW: "400", H1TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1TbUColor: "#333", H1TbUStyle: "solid", H1TbColor: "#333", H1TbTS: "30px", H1TbLS: "0px", H1TbLH: "1em", H1PhFF: "Initial", H1PhFW: "400", H1PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H1PhUColor: "#333", H1PhUStyle: "solid", H1PhColor: "#333", H1PhTS: "30px", H1PhLS: "0px", H1PhLH: "1em" });
        props.setStylesH2({ H2: false, H2DpFF: "Initial", H2DpFW: "400", H2DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2DpUColor: "#333", H2DpUStyle: "solid", H2DpColor: "#333", H2DpTS: "26px", H2DpLS: "0px", H2DpLH: "1em", H2TbFF: "Initial", H2TbFW: "400", H2TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2TbUColor: "#333", H2TbUStyle: "solid", H2TbColor: "#333", H2TbTS: "26px", H2TbLS: "0px", H2TbLH: "1em", H2PhFF: "Initial", H2PhFW: "400", H2PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H2PhUColor: "#333", H2PhUStyle: "solid", H2PhColor: "#333", H2PhTS: "26px", H2PhLS: "0px", H2PhLH: "1em" });
        props.setStylesH3({ H3: false, H3DpFF: "Initial", H3DpFW: "400", H3DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3DpUColor: "#333", H3DpUStyle: "solid", H3DpColor: "#333", H3DpTS: "22px", H3DpLS: "0px", H3DpLH: "1em", H3TbFF: "Initial", H3TbFW: "400", H3TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3TbUColor: "#333", H3TbUStyle: "solid", H3TbColor: "#333", H3TbTS: "22px", H3TbLS: "0px", H3TbLH: "1em", H3PhFF: "Initial", H3PhFW: "400", H3PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H3PhUColor: "#333", H3PhUStyle: "solid", H3PhColor: "#333", H3PhTS: "22px", H3PhLS: "0px", H3PhLH: "1em" });
        props.setStylesH4({ H4: false, H4DpFF: "Initial", H4DpFW: "400", H4DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4DpUColor: "#333", H4DpUStyle: "solid", H4DpColor: "#333", H4DpTS: "18px", H4DpLS: "0px", H4DpLH: "1em", H4TbFF: "Initial", H4TbFW: "400", H4TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4TbUColor: "#333", H4TbUStyle: "solid", H4TbColor: "#333", H4TbTS: "18px", H4TbLS: "0px", H4TbLH: "1em", H4PhFF: "Initial", H4PhFW: "400", H4PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H4PhUColor: "#333", H4PhUStyle: "solid", H4PhColor: "#333", H4PhTS: "18px", H4PhLS: "0px", H4PhLH: "1em" });
        props.setStylesH5({ H5: false, H5DpFF: "Initial", H5DpFW: "400", H5DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5DpUColor: "#333", H5DpUStyle: "solid", H5DpColor: "#333", H5DpTS: "16px", H5DpLS: "0px", H5DpLH: "1em", H5TbFF: "Initial", H5TbFW: "400", H5TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5TbUColor: "#333", H5TbUStyle: "solid", H5TbColor: "#333", H5TbTS: "16px", H5TbLS: "0px", H5TbLH: "1em", H5PhFF: "Initial", H5PhFW: "400", H5PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H5PhUColor: "#333", H5PhUStyle: "solid", H5PhColor: "#333", H5PhTS: "16px", H5PhLS: "0px", H5PhLH: "1em" });
        props.setStylesH6({ H6: false, H6DpFF: "Initial", H6DpFW: "400", H6DpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6DpUColor: "#333", H6DpUStyle: "solid", H6DpColor: "#333", H6DpTS: "14px", H6DpLS: "0px", H6DpLH: "1em", H6TbFF: "Initial", H6TbFW: "400", H6TbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6TbUColor: "#333", H6TbUStyle: "solid", H6TbColor: "#333", H6TbTS: "14px", H6TbLS: "0px", H6TbLH: "1em", H6PhFF: "Initial", H6PhFW: "400", H6PhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, H6PhUColor: "#333", H6PhUStyle: "solid", H6PhColor: "#333", H6PhTS: "14px", H6PhLS: "0px", H6PhLH: "1em" });
        props.setStylesBT({ BT: false, BTDpFF: "Initial", BTDpFW: "400", BTDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTDpUColor: "#666", BTDpUStyle: "solid", BTDpColor: "#666", BTDpTS: "14px", BTDpLS: "0px", BTDpLH: "1em", BTTbFF: "Initial", BTTbFW: "400", BTTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTTbUColor: "#666", BTTbUStyle: "solid", BTTbColor: "#666", BTTbTS: "14px", BTTbLS: "0px", BTTbLH: "1em", BTPhFF: "Initial", BTPhFW: "400", BTPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, BTPhUColor: "#666", BTPhUStyle: "solid", BTPhColor: "#666", BTPhTS: "14px", BTPhLS: "0px", BTPhLH: "1em" });
        props.setStylesLT({ LT: false, LTDpFF: "Initial", LTDpFW: "400", LTDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTDpUColor: "#2ea3f2", LTDpUStyle: "solid", LTDpColor: "#2ea3f2", LTDpHColor: "#2ea3f2", LTDpTS: "14px", LTDpLS: "0px", LTDpLH: "1em", LTTbFF: "Initial", LTTbFW: "400", LTTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTTbUColor: "#2ea3f2", LTTbUStyle: "solid", LTTbColor: "#2ea3f2", LTTbHColor: "#2ea3f2", LTTbTS: "14px", LTTbLS: "0px", LTTbLH: "1em", LTPhFF: "Initial", LTPhFW: "400", LTPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, LTPhUColor: "#2ea3f2", LTPhUStyle: "solid", LTPhColor: "#2ea3f2", LTPhHColor: "#2ea3f2", LTPhTS: "14px", LTPhLS: "0px", LTPhLH: "1em" });
        props.setStylesOL({ OL: false, OLDpFF: "Initial", OLDpFW: "400", OLDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLDpUColor: "#666", OLDpUStyle: "solid", OLDpColor: "#666", OLDpTS: "14px", OLDpLS: "0px", OLDpLH: "1em", OLDpT: "decimal", OLDpP: "outside", OLDpI: "0px", OLTbFF: "Initial", OLTbFW: "400", OLTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLTbUColor: "#666", OLTbUStyle: "solid", OLTbColor: "#666", OLTbTS: "14px", OLTbLS: "0px", OLTbLH: "1em", OLTbT: "decimal", OLTbP: "outside", OLTbI: "0px", OLPhFF: "Initial", OLPhFW: "400", OLPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, OLPhUColor: "#666", OLPhUStyle: "solid", OLPhColor: "#666", OLPhTS: "14px", OLPhLS: "0px", OLPhLH: "1em", OLPhT: "decimal", OLPhP: "outside", OLPhI: "0px" });
        props.setStylesUL({ UL: false, ULDpFF: "Initial", ULDpFW: "400", ULDpFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULDpUColor: "#666", ULDpUStyle: "solid", ULDpColor: "#666", ULDpTS: "14px", ULDpLS: "0px", ULDpLH: "1em", ULDpT: "disc", ULDpP: "outside", ULDpI: "0px", ULTbFF: "Initial", ULTbFW: "400", ULTbFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULTbUColor: "#666", ULTbUStyle: "solid", ULTbColor: "#666", ULTbTS: "14px", ULTbLS: "0px", ULTbLH: "1em", ULTbT: "disc", ULTbP: "outside", ULTbI: "0px", ULPhFF: "Initial", ULPhFW: "400", ULPhFS: { italic: false, uppercase: false, capitalize: false, underline: false, line_through: false }, ULPhUColor: "#666", ULPhUStyle: "solid", ULPhColor: "#666", ULPhTS: "14px", ULPhLS: "0px", ULPhLH: "1em", ULPhT: "disc", ULPhP: "outside", ULPhI: "0px" });
        _axios2.default.post(resetSettings, {
            value: true
        });
    };

    var handleExportSettings = function handleExportSettings() {
        var json = {
            enableAddons: props.enableAddons,
            dashboardCardsDismiss: props.dashboardCardsDismiss,
            startupCards: props.startupCards,
            maintenanceCards: props.maintenanceCards,
            enableVbAllPosttypeCE: props.enableVbAllPosttypeCE,
            enableVbAllPosttype: props.enableVbAllPosttype,
            utilityCards: props.utilityCards,
            mediaCards: props.mediaCards,
            fontCards: props.fontCards,
            codeData: props.codeData,
            customQuickLinks: props.customQuickLinks,
            customQuickLinksIcon: props.customQuickLinksIcon,
            customQuickLinksParent: props.customQuickLinksParent,
            customQuickLinksJson: props.customQuickLinksJson,
            environmentsData: props.environmentsData,
            accessibilityHelperData: props.accessibilityHelperData,
            stylesH1: props.stylesH1,
            stylesH2: props.stylesH2,
            stylesH3: props.stylesH3,
            stylesH4: props.stylesH4,
            stylesH5: props.stylesH5,
            stylesH6: props.stylesH6,
            stylesBT: props.stylesBT,
            stylesLT: props.stylesLT,
            stylesOL: props.stylesOL,
            stylesUL: props.stylesUL,
            scrollBar: props.scrollBar,
            backToTop: props.backToTop
        };
        if (exportGlobalColor) {
            json.diviGlobalColor = props.diviGlobalColor;
        }
        if (exportDiviThemeOptions) {
            json.et_divi = props.dataToExport.et_divi;
        }
        if (exportCustomizerStg) {
            json.wp_get_custom_css_post = props.dataToExport.wp_get_custom_css_post;
        }
        if (exportGlobalPresets) {
            json.get_global_presets = props.dataToExport.get_global_presets;
        }
        if (exportThemeBuilderTemplates) {
            json.divi_theme_builder = props.dataToExport.divi_theme_builder;
        }
        if (exportDiviLayouts) {
            _axios2.default.get(ExportSettings).then(function (response) {
                if (response.data) {
                    json.divi_library_layout = response.data;
                    json = JSON.stringify(json);
                    var blob = new Blob([json], { type: 'application/json' });
                    var href = URL.createObjectURL(blob);
                    var link = document.createElement('a');
                    link.href = href;
                    link.download = exportFileName + '.json';
                    link.click();
                    setImportExportPopup(false);
                    setExportFileName('Divi Assistant Settings');
                }
            });
        } else {
            json = JSON.stringify(json);
            var blob = new Blob([json], { type: 'application/json' });
            var href = URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = href;
            link.download = exportFileName + '.json';
            link.click();
            setImportExportPopup(false);
            setExportFileName('Divi Assistant Settings');
        }
    };

    var handleImportSettings = function handleImportSettings(e) {
        if (importFileData.enableAddons !== '' && importFileData.enableAddons !== undefined) {
            props.setEnableAddons(importFileData.enableAddons);
            props.setUpdatedAddons(importFileData.enableAddons);
            props.setDashboardCardsDismiss(importFileData.dashboardCardsDismiss);
            props.setStartupCards(importFileData.startupCards);
            props.setMaintenanceCards(importFileData.maintenanceCards);
            importFileData.utilityCards.tempLogin = false;
            importFileData.utilityCards.tempLoginTime = null;
            importFileData.utilityCards.tempLoginLink = null;
            props.setUtilityCards(importFileData.utilityCards);
            props.setMediaCards(importFileData.mediaCards);
            props.setFontCards(importFileData.fontCards);
            props.setCodeData(importFileData.codeData);
            props.setCustomQuickLinks(importFileData.customQuickLinks);
            props.setCustomQuickLinksIcon(importFileData.customQuickLinksIcon);
            props.setCustomQuickLinksParent(importFileData.customQuickLinksParent);
            props.setCustomQuickLinksJson(importFileData.customQuickLinksJson);
            props.setEnvironmentsData(importFileData.environmentsData);
            props.setAccessibilityHelperData(importFileData.accessibilityHelperData);
            props.setStylesH1(importFileData.stylesH1);
            props.setStylesH2(importFileData.stylesH2);
            props.setStylesH3(importFileData.stylesH3);
            props.setStylesH4(importFileData.stylesH4);
            props.setStylesH5(importFileData.stylesH5);
            props.setStylesH6(importFileData.stylesH6);
            props.setStylesBT(importFileData.stylesBT);
            props.setStylesLT(importFileData.stylesLT);
            props.setStylesOL(importFileData.stylesOL);
            props.setStylesUL(importFileData.stylesUL);
            props.setScrollBar(importFileData.scrollBar);
            props.setBackToTop(importFileData.backToTop);

            if (importFileData.diviGlobalColor !== undefined && importGlobalColorCb === true) {
                props.setDiviGlobalColor(importFileData.diviGlobalColor);
            }

            setImportExportPopup(false);
            document.getElementById("pac_da_loading_spinner").style.display = 'block';
            _axios2.default.post(ImportSettings, {
                enableAddons: JSON.stringify(importFileData.enableAddons),
                dashboardCardsDismiss: JSON.stringify(importFileData.dashboardCardsDismiss),
                startupCards: JSON.stringify(importFileData.startupCards),
                maintenanceCards: JSON.stringify(importFileData.maintenanceCards),
                enableVbAllPosttypeCE: JSON.stringify(importFileData.enableVbAllPosttypeCE),
                enableVbAllPosttype: JSON.stringify(importFileData.enableVbAllPosttype),
                utilityCards: JSON.stringify(importFileData.utilityCards),
                mediaCards: JSON.stringify(importFileData.mediaCards),
                fontCards: importFileData.fontCards,
                codeData: JSON.stringify(importFileData.codeData),
                customQuickLinks: importFileData.customQuickLinks,
                customQuickLinksIcon: importFileData.customQuickLinksIcon,
                customQuickLinksParent: importFileData.customQuickLinksParent,
                customQuickLinksJson: JSON.stringify(importFileData.customQuickLinksJson),
                environmentsData: JSON.stringify(importFileData.environmentsData),
                accessibilityHelperData: JSON.stringify(importFileData.accessibilityHelperData),
                stylesH1: JSON.stringify(importFileData.stylesH1),
                stylesH2: JSON.stringify(importFileData.stylesH2),
                stylesH3: JSON.stringify(importFileData.stylesH3),
                stylesH4: JSON.stringify(importFileData.stylesH4),
                stylesH5: JSON.stringify(importFileData.stylesH5),
                stylesH6: JSON.stringify(importFileData.stylesH6),
                stylesBT: JSON.stringify(importFileData.stylesBT),
                stylesLT: JSON.stringify(importFileData.stylesLT),
                stylesOL: JSON.stringify(importFileData.stylesOL),
                stylesUL: JSON.stringify(importFileData.stylesUL),
                scrollBar: JSON.stringify(importFileData.scrollBar),
                backToTop: JSON.stringify(importFileData.backToTop),
                diviGlobalColor: importFileData.diviGlobalColor !== undefined && importGlobalColorCb === true ? JSON.stringify(importFileData.diviGlobalColor) : false,
                et_divi: importFileData.et_divi !== undefined && importDiviThemeOptionsCb === true ? JSON.stringify(importFileData.et_divi) : false,
                wp_get_custom_css_post: importFileData.wp_get_custom_css_post !== undefined && importCustomizerStgCb === true ? JSON.stringify(importFileData.wp_get_custom_css_post) : false,
                get_global_presets: importFileData.get_global_presets !== undefined && importGlobalPresetsCb === true ? JSON.stringify(importFileData.get_global_presets) : false,
                divi_library_layout: importFileData.divi_library_layout !== undefined && importDiviLibraryLayoutCb === true ? JSON.stringify(importFileData.divi_library_layout) : false,
                divi_theme_builder: importFileData.divi_theme_builder !== undefined && importDiviTBTCb === true ? JSON.stringify(importFileData.divi_theme_builder) : false
            }).then(function (response) {
                if (response.data !== false) {
                    props.setEnableVbAllPosttypeCE(response.data.updatePostTypesCE);
                    props.setEnableVbAllPosttype(response.data.updatePostTypes);
                    document.getElementById("pac_da_loading_spinner").classList.add("saved");
                    setTimeout(function () {
                        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                        document.getElementById("pac_da_loading_spinner").style.display = 'none';
                    }, 1000);
                } else {
                    alert('Error occured. Please reload!');
                }
            });
        } else {
            alert('Upload Correct File');
        }
        setImportFileName('');
    };

    var handleImportFile = function handleImportFile(event) {
        setImportFileName(event.target.value);
        var file = event.target.files[0];
        if (file && file.type === 'application/json') {
            var reader = new FileReader();
            reader.onload = function (e) {
                setImportFileData(JSON.parse(e.target.result));
                if (JSON.parse(e.target.result).diviGlobalColor !== undefined) {
                    setImportGlobalColor(true);
                }
                if (JSON.parse(e.target.result).et_divi !== undefined) {
                    setImportDiviThemeOptions(true);
                }
                if (JSON.parse(e.target.result).wp_get_custom_css_post !== undefined) {
                    setImportCustomizerStg(true);
                }
                if (JSON.parse(e.target.result).get_global_presets !== undefined) {
                    setImportGlobalPresets(true);
                }
                if (JSON.parse(e.target.result).divi_library_layout !== undefined) {
                    setImportDiviLibraryLayout(true);
                }
                if (JSON.parse(e.target.result).divi_theme_builder !== undefined) {
                    setImportDiviTBT(true);
                }
            };
            reader.readAsText(file);
        } else {
            alert('Please select a valid JSON file');
        }
    };
    var openImportSettingPopup = function openImportSettingPopup() {
        setImportExportPopup(true);
        setImportOrExport(true);
    };
    var linkToSupport = function linkToSupport() {
        window.open('https://www.peeayecreative.com/support/', '_blank');
    };

    var hidePopup = function hidePopup() {
        setImportExportPopup(false);
        setExportGlobalColor(false);
        setExportdiviThemeOptions(false);
        setExportCustomizerStg(false);
        setExportGlobalPresets(false);
        setExportDiviLayouts(false);
        setExportThemeBuilderTemplates(false);
    };

    return wp.element.createElement(
        'div',
        { id: 'pac_da_main_panel' },
        wp.element.createElement(
            'div',
            { id: 'pac_da_loading_spinner' },
            wp.element.createElement('img', { src: props.loadingSpinner })
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_header' },
            wp.element.createElement(
                'svg',
                { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 20.79', className: 'logo' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement(
                        'g',
                        null,
                        wp.element.createElement(
                            'g',
                            null,
                            wp.element.createElement('path', { d: 'M19.11,15.05c.67-1.55,.97-3.26,.87-4.95-.02-.39-.36-.69-.75-.67s-.69,.36-.67,.75c.09,1.47-.17,2.95-.76,4.3-.12,.28-.05,.58,.15,.78,.06,.06,.14,.11,.22,.15,.37,.15,.78-.01,.94-.37h0Z' }),
                            wp.element.createElement('path', { d: 'M6.22,.23c-.26-.29-.71-.31-1.01-.05-1.41,1.28-2.47,2.91-3.05,4.74-.1,.34,.04,.69,.35,.85,.04,.02,.07,.03,.12,.05,.37,.12,.77-.09,.89-.46,.51-1.58,1.42-3.01,2.65-4.12,.29-.27,.32-.72,.05-1.01h0Z' })
                        ),
                        wp.element.createElement('path', { d: 'M6.21,20.15c-1.62-.52-3.16-1.01-4.33-4.35L.11,10.72h0c-.11-.29-.14-.6-.08-.91,.06-.3,.2-.58,.41-.81,.24-.23,.54-.38,.86-.45,.32-.07,.66-.04,.97,.07,.46,.18,.87,.47,1.21,.83,.34,.36,.59,.8,.74,1.27l.55,1.21,1.65-7.44c.1-.44,.37-.82,.75-1.06,.4-.25,.88-.33,1.34-.22,.05,0,.1,.02,.15,.04,.34,.11,.64,.31,.86,.59,.14-.33,.38-.61,.69-.79,.45-.25,.98-.3,1.47-.15,.45,.13,.83,.44,1.05,.86,.22,.41,.27,.9,.13,1.35h0c.42-.2,.9-.24,1.35-.09,.44,.14,.81,.44,1.02,.85,.22,.41,.26,.88,.13,1.32h0l-.5,1.47c.2-.01,.4,.02,.59,.08,.41,.13,.75,.41,.94,.78,.2,.38,.24,.81,.12,1.22h0s-1.01,3.03-2.12,5.93c-.26,.9-.73,1.72-1.37,2.4-.64,.68-1.43,1.2-2.3,1.52-1.18,.33-2.43,.28-3.59-.12l-.91-.3ZM15.49,10.4c.04-.14,.02-.29-.05-.41-.07-.12-.19-.22-.32-.25-.13-.05-.28-.04-.41,.02s-.23,.17-.28,.31v.02l-.95,2.55c-.05,.13-.15,.24-.27,.3-.13,.06-.27,.07-.4,.02-.13-.05-.24-.14-.3-.27-.06-.13-.07-.27-.02-.4h0l1.86-5.43c.05-.17,.03-.35-.06-.51-.09-.15-.23-.27-.4-.32-.17-.06-.35-.05-.51,.03-.16,.08-.28,.21-.34,.38h0v.02l-1.71,4.77c-.05,.13-.14,.23-.26,.3-.12,.06-.26,.07-.39,.03-.13-.04-.24-.13-.31-.25-.07-.12-.09-.26-.05-.39l1.53-6.06c.06-.17,.06-.37-.01-.53-.07-.17-.21-.3-.38-.37h-.03c-.21-.08-.45-.06-.65,.04-.15,.1-.26,.25-.29,.43h0l-1.67,6.19c-.04,.13-.12,.25-.24,.32-.12,.07-.26,.09-.4,.06-.13-.03-.25-.11-.33-.23-.07-.12-.1-.26-.07-.39h0l1.07-5.29h0c.03-.18,0-.35-.09-.49-.09-.14-.22-.25-.39-.3l-.06-.02c-.18-.04-.37-.01-.53,.09-.14,.09-.24,.23-.28,.39h0l-2,8.99c-.03,.11-.08,.21-.17,.28-.08,.07-.19,.12-.3,.13-.11,.01-.22-.01-.32-.07-.1-.06-.17-.14-.22-.24h0l-1.22-2.67v-.03c-.21-.66-.68-1.2-1.3-1.48-.12-.05-.26-.07-.39-.05-.13,.02-.26,.08-.36,.16-.07,.08-.12,.19-.13,.3s0,.22,.05,.32l1.78,5.07c1,2.84,2.17,3.22,3.65,3.69l.91,.29c3.48,1.11,5.15-1.11,5.94-3.17,1.08-2.83,2.06-5.75,2.1-5.87h0Z' })
                    )
                )
            ),
            wp.element.createElement(
                'h1',
                { className: 'title' },
                'Divi Assistant'
            ),
            wp.element.createElement(
                'h3',
                { className: 'currentVersion' },
                'Current Version: 1.2.0'
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'Enable More Helpers' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return props.setCurrentTab('Enable More Helpers');
                        }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M19.4818 13H16.3707V10C16.3707 9.73478 16.2614 9.48043 16.0669 9.29289C15.8724 9.10536 15.6087 9 15.3336 9C15.0586 9 14.7948 9.10536 14.6003 9.29289C14.4058 9.48043 14.2966 9.73478 14.2966 10V13H11.1855C10.9104 13 10.6467 13.1054 10.4522 13.2929C10.2577 13.4804 10.1484 13.7348 10.1484 14C10.1484 14.2652 10.2577 14.5196 10.4522 14.7071C10.6467 14.8946 10.9104 15 11.1855 15H14.2966V18C14.2966 18.2652 14.4058 18.5196 14.6003 18.7071C14.7948 18.8946 15.0586 19 15.3336 19C15.6087 19 15.8724 18.8946 16.0669 18.7071C16.2614 18.5196 16.3707 18.2652 16.3707 18V15H19.4818C19.7568 15 20.0206 14.8946 20.2151 14.7071C20.4095 14.5196 20.5188 14.2652 20.5188 14C20.5188 13.7348 20.4095 13.4804 20.2151 13.2929C20.0206 13.1054 19.7568 13 19.4818 13Z' })
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'Reset Settings' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return setResetPopup(true);
                        }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M22.3342 13.5C22.3342 17.0832 19.3094 20 15.5934 20C13.7983 20 12.1064 19.3249 10.8318 18.0959C10.5671 17.8449 10.5671 17.4338 10.8274 17.1784C11.0921 16.9231 11.514 16.9231 11.7788 17.1784C12.802 18.1608 14.1573 18.7017 15.5934 18.7017C18.5689 18.7017 20.9878 16.3692 20.9878 13.5C20.9878 10.6308 18.5689 8.29827 15.5934 8.29827C13.5605 8.29827 11.8147 9.4018 10.9396 11.1804H12.1288C12.5013 11.1804 12.802 11.4704 12.802 11.8296C12.802 12.1887 12.5013 12.4787 12.1288 12.4787H9.09505C8.72256 12.4787 8.42188 12.1887 8.42188 11.8296V8.90413C8.42188 8.54494 8.72256 8.25499 9.09505 8.25499C9.46754 8.25499 9.76823 8.54494 9.76823 8.90413V10.5313C10.8767 8.3502 13.0578 7 15.5934 7C19.3094 7 22.3342 9.91678 22.3342 13.5Z' })
                ),
                resetPopup === true ? wp.element.createElement(_ResetPopup2.default, { setResetPopup: setResetPopup, handleResetSettings: handleResetSettings }) : ''
            ),
            props.getExportD === false ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { 'data-tip': 'Import Export' },
                    wp.element.createElement(
                        'svg',
                        { onClick: function onClick() {
                                return setImportExportPopup(true);
                            }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M14.6747 11.7668C14.5139 11.9239 14.2974 12.0122 14.0717 12.0128C13.8494 12.0117 13.6365 11.9232 13.4799 11.7668L12.1723 10.4696V19.6283C12.1723 19.8507 12.0832 20.064 11.9247 20.2213C11.7661 20.3786 11.5511 20.467 11.3269 20.467C11.1027 20.467 10.8876 20.3786 10.7291 20.2213C10.5706 20.064 10.4815 19.8507 10.4815 19.6283V10.4696L9.16828 11.7668C9.00905 11.9225 8.79444 12.0098 8.57086 12.0098C8.34727 12.0098 8.13267 11.9225 7.97344 11.7668C7.81876 11.6065 7.73242 11.3932 7.73242 11.1713C7.73242 10.9494 7.81876 10.7361 7.97344 10.5758L10.7295 7.85278C10.8051 7.77394 10.8975 7.71281 11 7.67386C11.2172 7.58853 11.4591 7.58853 11.6763 7.67386C11.7788 7.71281 11.8712 7.77394 11.9469 7.85278L14.7029 10.5758C14.7803 10.6556 14.841 10.7498 14.8816 10.853C14.9221 10.9562 14.9416 11.0664 14.939 11.1771C14.9364 11.2878 14.9117 11.3969 14.8663 11.4982C14.8209 11.5994 14.7558 11.6907 14.6747 11.7668Z' }),
                        wp.element.createElement('path', { d: 'M23.038 17.3524L20.282 20.081C20.2073 20.1611 20.1146 20.2224 20.0114 20.2599C19.9775 20.2761 19.9415 20.2874 19.9043 20.2935C19.8333 20.3159 19.7591 20.3273 19.6845 20.327C19.5744 20.3268 19.4654 20.3049 19.3638 20.2627C19.2623 20.2205 19.1701 20.1587 19.0927 20.081L16.3423 17.3524C16.2639 17.2742 16.2017 17.1814 16.1594 17.0794C16.1171 16.9774 16.0954 16.8681 16.0957 16.7577C16.0962 16.5349 16.186 16.3214 16.3452 16.1642C16.5044 16.007 16.72 15.919 16.9446 15.9195C17.0558 15.9198 17.1659 15.9418 17.2685 15.9842C17.3712 16.0267 17.4644 16.0888 17.5428 16.167L18.8391 17.4642V8.30551C18.8391 8.08307 18.9282 7.86974 19.0867 7.71245C19.2453 7.55516 19.4603 7.4668 19.6845 7.4668C19.9087 7.4668 20.1238 7.55516 20.2823 7.71245C20.4409 7.86974 20.5299 8.08307 20.5299 8.30551V17.4642L21.8206 16.167C21.979 16.0091 22.1942 15.9201 22.4188 15.9195C22.6435 15.919 22.8591 16.007 23.0183 16.1642C23.1775 16.3214 23.2672 16.5349 23.2677 16.7577C23.2682 16.9805 23.1795 17.1945 23.0211 17.3524H23.038Z' })
                    ),
                    importExportPopup === true ? wp.element.createElement(_ImportExport2.default, {
                        hidePopup: hidePopup,
                        importOrExport: importOrExport,
                        setImportOrExport: setImportOrExport,
                        exportFileName: exportFileName,
                        setExportFileName: setExportFileName,
                        handleExportSettings: handleExportSettings,
                        handleImportFile: handleImportFile,
                        handleImportSettings: handleImportSettings,
                        importFileName: importFileName,
                        setImportFileName: setImportFileName,
                        exportGlobalColor: exportGlobalColor,
                        setExportGlobalColor: setExportGlobalColor,
                        exportDiviThemeOptions: exportDiviThemeOptions,
                        setExportdiviThemeOptions: setExportdiviThemeOptions,
                        exportCustomizerStg: exportCustomizerStg,
                        setExportCustomizerStg: setExportCustomizerStg,
                        exportGlobalPresets: exportGlobalPresets,
                        setExportGlobalPresets: setExportGlobalPresets,
                        exportDiviLayouts: exportDiviLayouts,
                        setExportDiviLayouts: setExportDiviLayouts,
                        exportThemeBuilderTemplates: exportThemeBuilderTemplates,
                        setExportThemeBuilderTemplates: setExportThemeBuilderTemplates,
                        importGlobalColor: importGlobalColor,
                        setImportGlobalColor: setImportGlobalColor,
                        importDiviThemeOptions: importDiviThemeOptions,
                        setImportDiviThemeOptions: setImportDiviThemeOptions,
                        setImportCustomizerStg: setImportCustomizerStg,
                        setImportGlobalPresets: setImportGlobalPresets,
                        importDiviLibraryLayout: importDiviLibraryLayout,
                        setImportDiviLibraryLayout: setImportDiviLibraryLayout,
                        importDiviTBT: importDiviTBT,
                        setImportDiviTBT: setImportDiviTBT,
                        importCustomizerStg: importCustomizerStg,
                        importGlobalPresets: importGlobalPresets,
                        importGlobalColorCb: importGlobalColorCb,
                        setImportGlobalColorCb: setImportGlobalColorCb,
                        importDiviThemeOptionsCb: importDiviThemeOptionsCb,
                        setImportDiviThemeOptionsCb: setImportDiviThemeOptionsCb,
                        importCustomizerStgCb: importCustomizerStgCb,
                        setImportCustomizerStgCb: setImportCustomizerStgCb,
                        importGlobalPresetsCb: importGlobalPresetsCb,
                        setImportGlobalPresetsCb: setImportGlobalPresetsCb,
                        importDiviLibraryLayoutCb: importDiviLibraryLayoutCb,
                        setImportDiviLibraryLayoutCb: setImportDiviLibraryLayoutCb,
                        importDiviTBTCb: importDiviTBTCb,
                        setImportDiviTBTCb: setImportDiviTBTCb
                    }) : ''
                )
            ) : wp.element.createElement(
                'div',
                { 'data-tip': 'Loading...' },
                wp.element.createElement(
                    'svg',
                    { width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M14.6747 11.7668C14.5139 11.9239 14.2974 12.0122 14.0717 12.0128C13.8494 12.0117 13.6365 11.9232 13.4799 11.7668L12.1723 10.4696V19.6283C12.1723 19.8507 12.0832 20.064 11.9247 20.2213C11.7661 20.3786 11.5511 20.467 11.3269 20.467C11.1027 20.467 10.8876 20.3786 10.7291 20.2213C10.5706 20.064 10.4815 19.8507 10.4815 19.6283V10.4696L9.16828 11.7668C9.00905 11.9225 8.79444 12.0098 8.57086 12.0098C8.34727 12.0098 8.13267 11.9225 7.97344 11.7668C7.81876 11.6065 7.73242 11.3932 7.73242 11.1713C7.73242 10.9494 7.81876 10.7361 7.97344 10.5758L10.7295 7.85278C10.8051 7.77394 10.8975 7.71281 11 7.67386C11.2172 7.58853 11.4591 7.58853 11.6763 7.67386C11.7788 7.71281 11.8712 7.77394 11.9469 7.85278L14.7029 10.5758C14.7803 10.6556 14.841 10.7498 14.8816 10.853C14.9221 10.9562 14.9416 11.0664 14.939 11.1771C14.9364 11.2878 14.9117 11.3969 14.8663 11.4982C14.8209 11.5994 14.7558 11.6907 14.6747 11.7668Z' }),
                    wp.element.createElement('path', { d: 'M23.038 17.3524L20.282 20.081C20.2073 20.1611 20.1146 20.2224 20.0114 20.2599C19.9775 20.2761 19.9415 20.2874 19.9043 20.2935C19.8333 20.3159 19.7591 20.3273 19.6845 20.327C19.5744 20.3268 19.4654 20.3049 19.3638 20.2627C19.2623 20.2205 19.1701 20.1587 19.0927 20.081L16.3423 17.3524C16.2639 17.2742 16.2017 17.1814 16.1594 17.0794C16.1171 16.9774 16.0954 16.8681 16.0957 16.7577C16.0962 16.5349 16.186 16.3214 16.3452 16.1642C16.5044 16.007 16.72 15.919 16.9446 15.9195C17.0558 15.9198 17.1659 15.9418 17.2685 15.9842C17.3712 16.0267 17.4644 16.0888 17.5428 16.167L18.8391 17.4642V8.30551C18.8391 8.08307 18.9282 7.86974 19.0867 7.71245C19.2453 7.55516 19.4603 7.4668 19.6845 7.4668C19.9087 7.4668 20.1238 7.55516 20.2823 7.71245C20.4409 7.86974 20.5299 8.08307 20.5299 8.30551V17.4642L21.8206 16.167C21.979 16.0091 22.1942 15.9201 22.4188 15.9195C22.6435 15.919 22.8591 16.007 23.0183 16.1642C23.1775 16.3214 23.2672 16.5349 23.2677 16.7577C23.2682 16.9805 23.1795 17.1945 23.0211 17.3524H23.038Z' })
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'Admin Settings' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return props.setCurrentTab('Admin Settings');
                        }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M15.7848 17.3718C15.168 17.3718 14.565 17.1954 14.0521 16.865C13.5392 16.5345 13.1395 16.0648 12.9034 15.5153C12.6674 14.9657 12.6056 14.361 12.7259 13.7776C12.8463 13.1943 13.1433 12.6584 13.5795 12.2378C14.0157 11.8172 14.5714 11.5308 15.1764 11.4147C15.7814 11.2987 16.4085 11.3582 16.9784 11.5859C17.5483 11.8135 18.0353 12.199 18.378 12.6935C18.7207 13.1881 18.9037 13.7696 18.9037 14.3644C18.9022 15.1615 18.5731 15.9257 17.9885 16.4894C17.404 17.053 16.6115 17.3704 15.7848 17.3718ZM15.7848 12.9974C15.5045 12.9974 15.2304 13.0775 14.9972 13.2277C14.7641 13.3779 14.5824 13.5914 14.4751 13.8412C14.3678 14.091 14.3397 14.3659 14.3944 14.6311C14.4491 14.8962 14.5842 15.1398 14.7824 15.331C14.9807 15.5222 15.2333 15.6524 15.5083 15.7051C15.7833 15.7579 16.0683 15.7308 16.3273 15.6273C16.5864 15.5239 16.8078 15.3486 16.9636 15.1238C17.1193 14.899 17.2025 14.6347 17.2025 14.3644C17.2025 14.0018 17.0531 13.6541 16.7873 13.3977C16.5214 13.1414 16.1608 12.9974 15.7848 12.9974Z' }),
                    wp.element.createElement('path', { d: 'M15.785 23.1134H15.5355C14.9675 23.0423 14.4453 22.7757 14.065 22.3628C13.6847 21.9498 13.4719 21.4183 13.4657 20.8661V20.7786C13.4616 20.705 13.4352 20.6343 13.3899 20.575C13.3445 20.5157 13.2822 20.4705 13.2105 20.445L13.1425 20.3794C13.0719 20.3542 12.9956 20.348 12.9217 20.3615C12.8477 20.375 12.779 20.4076 12.7229 20.456L12.5868 20.5817L12.4564 20.6911C12.2204 20.8764 11.9482 21.014 11.6559 21.0957C11.3637 21.1774 11.0573 21.2016 10.7552 21.1668C10.4549 21.1417 10.1629 21.0591 9.89613 20.9239C9.62935 20.7887 9.39319 20.6036 9.20144 20.3794C8.85158 19.9429 8.67724 19.3991 8.71059 18.8484C8.74394 18.2977 8.98273 17.7772 9.3829 17.3829L9.45095 17.3173C9.49986 17.2613 9.53162 17.1932 9.54264 17.1208C9.55365 17.0483 9.5435 16.9744 9.51332 16.9072C9.48872 16.8275 9.43991 16.7568 9.37319 16.7042C9.30647 16.6515 9.22492 16.6194 9.13907 16.6119H8.98029H8.81017C8.50136 16.5854 8.20118 16.4995 7.92739 16.3593C7.6536 16.219 7.41175 16.0272 7.21615 15.7953C7.02054 15.5633 6.87515 15.2959 6.78857 15.0088C6.70198 14.7218 6.67597 14.4209 6.71205 14.1239C6.78583 13.5763 7.06229 13.0727 7.49053 12.706C7.91876 12.3393 8.46996 12.134 9.04267 12.1281H9.13339C9.21012 12.123 9.28366 12.0965 9.34507 12.0518C9.40648 12.0072 9.45311 11.9463 9.4793 11.8766C9.48032 11.8583 9.48032 11.8401 9.4793 11.8219C9.50935 11.754 9.51838 11.6791 9.5053 11.6063C9.49222 11.5336 9.45759 11.466 9.40558 11.4118L9.27516 11.2805C9.23547 11.2423 9.20144 11.1985 9.16742 11.1602C8.97731 10.9301 8.83628 10.666 8.75245 10.3831C8.66862 10.1003 8.64364 9.80418 8.67896 9.51195C8.71427 9.21972 8.80917 8.93711 8.95821 8.68039C9.10724 8.42367 9.30747 8.19791 9.54735 8.01611C10 7.67874 10.5639 7.51063 11.135 7.54279C11.7062 7.57495 12.246 7.80521 12.6548 8.19109L12.7229 8.25123C12.78 8.29988 12.8504 8.33188 12.9257 8.34349C13.0009 8.35511 13.0781 8.34587 13.1482 8.31685C13.2308 8.29148 13.304 8.24322 13.3584 8.17807C13.4129 8.11293 13.4462 8.03379 13.4544 7.95049V7.77004C13.4544 7.72083 13.4544 7.66615 13.4544 7.61147C13.4861 7.31585 13.5784 7.02926 13.726 6.76836C13.8736 6.50746 14.0735 6.27746 14.3141 6.09174C14.5547 5.90603 14.8313 5.76829 15.1276 5.68655C15.4239 5.60482 15.7341 5.58071 16.0402 5.61563C16.6076 5.68689 17.1291 5.95367 17.5085 6.36673C17.8879 6.7798 18.0995 7.31125 18.1043 7.863V7.95049C18.1091 8.02385 18.1357 8.09431 18.181 8.15346C18.2262 8.2126 18.2882 8.25794 18.3594 8.28404H18.4161C18.4871 8.31046 18.5641 8.31779 18.639 8.30527C18.7139 8.29275 18.7839 8.26084 18.8414 8.21296L18.9775 8.08719L19.108 7.97783C19.3469 7.79482 19.6211 7.6592 19.9147 7.5788C20.2083 7.4984 20.5154 7.4748 20.8185 7.50936C21.1216 7.54392 21.4146 7.63596 21.6806 7.78018C21.9466 7.92439 22.1804 8.11794 22.3685 8.34966C22.7188 8.78701 22.8934 9.33171 22.86 9.88337C22.8267 10.435 22.5877 10.9565 22.1871 11.3516L22.119 11.4172C22.0701 11.4732 22.0384 11.5413 22.0273 11.6137C22.0163 11.6862 22.0265 11.7602 22.0567 11.8273C22.0836 11.9067 22.1338 11.9768 22.2013 12.0292C22.2687 12.0817 22.3504 12.1141 22.4366 12.1226H22.5273C23.0973 12.1256 23.647 12.3269 24.0752 12.6896C24.5034 13.0523 24.7814 13.552 24.8579 14.0966C24.8579 14.1786 24.8579 14.2388 24.8579 14.2934C24.8763 14.8848 24.6509 15.4591 24.2311 15.8906C23.8113 16.322 23.2312 16.5755 22.618 16.5955H22.4366C22.3587 16.5988 22.2835 16.6238 22.2201 16.6674C22.1567 16.7111 22.1078 16.7716 22.0793 16.8416L22.051 16.8962C22.0231 16.9649 22.0157 17.0398 22.0297 17.1123C22.0438 17.1848 22.0786 17.252 22.1304 17.3064L22.2551 17.4376C22.2938 17.4753 22.3298 17.5155 22.3629 17.5579C22.5562 17.7862 22.7009 18.0492 22.7884 18.3316C22.876 18.6141 22.9048 18.9104 22.8732 19.2037C22.8416 19.4969 22.7502 19.7812 22.6042 20.0402C22.4582 20.2992 22.2606 20.5279 22.0226 20.713C21.5691 21.0507 21.0042 21.219 20.4321 21.1869C19.86 21.1547 19.3193 20.9243 18.9095 20.538L18.8414 20.4724C18.7834 20.4252 18.7128 20.3946 18.6377 20.3839C18.5625 20.3733 18.4858 20.3831 18.4161 20.4122C18.3335 20.4359 18.2602 20.483 18.2056 20.5473C18.151 20.6117 18.1177 20.6903 18.1099 20.7731V20.9536C18.1131 21.0082 18.1131 21.063 18.1099 21.1176C18.0481 21.6691 17.7759 22.1787 17.3463 22.5475C16.9166 22.9163 16.3602 23.118 15.785 23.1134ZM13.0007 18.739C13.2897 18.7382 13.5756 18.796 13.84 18.9085C14.2161 19.0511 14.5412 19.296 14.7758 19.6135C15.0103 19.9309 15.1442 20.3071 15.1612 20.6966V20.8168C15.1578 20.9738 15.2133 21.1266 15.3175 21.2472C15.4217 21.3678 15.5676 21.448 15.7283 21.473C15.8822 21.483 16.0343 21.4361 16.1536 21.3418C16.2176 21.2937 16.2708 21.2334 16.3098 21.1648C16.3488 21.0962 16.3728 21.0205 16.3804 20.9426V20.7075C16.4036 20.3144 16.5418 19.9356 16.7791 19.6152C17.0163 19.2947 17.3429 19.0457 17.721 18.8969C18.099 18.7481 18.5131 18.7056 18.9151 18.7745C19.3172 18.8433 19.6907 19.0206 19.9926 19.2858L20.0776 19.3678C20.1938 19.4808 20.3484 19.5497 20.5129 19.5617C20.6775 19.5738 20.841 19.5282 20.9736 19.4334C21.093 19.3331 21.1669 19.1917 21.1796 19.0394C21.1923 18.8872 21.1428 18.7362 21.0416 18.6187L20.8885 18.4273C20.6203 18.1357 20.4423 17.7774 20.3747 17.3931C20.3071 17.0088 20.3527 16.6139 20.5063 16.2533C20.6599 15.8927 20.9153 15.581 21.2435 15.3534C21.5717 15.1258 21.9595 14.9916 22.3629 14.966H22.5613C22.7223 14.9603 22.8746 14.8943 22.9858 14.7819C23.097 14.6696 23.1583 14.5198 23.1568 14.3645C23.1388 14.2079 23.0619 14.063 22.9407 13.9572C22.8196 13.8514 22.6624 13.7921 22.499 13.7904H22.3685C21.9604 13.769 21.5669 13.6364 21.2338 13.408C20.9006 13.1796 20.6415 12.8647 20.4866 12.5C20.3316 12.1353 20.2871 11.7356 20.3582 11.3475C20.4294 10.9593 20.6133 10.5986 20.8885 10.3072L20.9736 10.2197C21.0925 10.1098 21.1653 9.96145 21.1778 9.80304C21.1904 9.64463 21.1419 9.48733 21.0416 9.36125C20.9405 9.25263 20.801 9.18437 20.6504 9.16987C20.5698 9.15819 20.4876 9.16337 20.4093 9.18507C20.331 9.20677 20.2585 9.24448 20.1967 9.29564L19.9982 9.44327C19.6978 9.71004 19.3234 9.88673 18.9206 9.95178C18.5179 10.0168 18.1042 9.96745 17.73 9.80963C17.3572 9.66547 17.0347 9.42164 16.8007 9.10683C16.5666 8.79201 16.4307 8.4193 16.4088 8.03251V7.91221C16.4122 7.75528 16.3567 7.60244 16.2525 7.48185C16.1483 7.36127 16.0024 7.28107 15.8417 7.25605C15.7653 7.24903 15.6882 7.25704 15.6151 7.2796C15.542 7.30215 15.4744 7.33879 15.4164 7.38728C15.2903 7.48486 15.2089 7.62619 15.1896 7.78098V8.02158C15.1721 8.41436 15.0369 8.79383 14.8004 9.11407C14.5639 9.43432 14.2362 9.68161 13.857 9.82604C13.4828 9.98385 13.0691 10.0332 12.6664 9.96819C12.2636 9.90313 11.8892 9.72644 11.5888 9.45968L11.498 9.37766C11.384 9.26295 11.2302 9.19282 11.0659 9.18072C10.9016 9.16861 10.7385 9.21537 10.6077 9.31204C10.4875 9.41165 10.4125 9.55267 10.3987 9.70493C10.385 9.85719 10.4335 10.0086 10.534 10.1268L10.6815 10.3018C10.9581 10.5914 11.1413 10.9525 11.2088 11.3409C11.2763 11.7293 11.2251 12.1282 11.0614 12.489C10.9131 12.8493 10.6605 13.1609 10.3338 13.3868C10.0071 13.6126 9.61994 13.7432 9.21845 13.763H9.0937C8.93096 13.7597 8.77245 13.8132 8.6474 13.9137C8.52235 14.0142 8.43918 14.1549 8.41323 14.3099C8.40381 14.4653 8.45788 14.6182 8.56385 14.7357C8.66983 14.8532 8.81931 14.9261 8.98029 14.9387H9.20711C9.61471 14.9574 10.0081 15.0891 10.34 15.318C10.6719 15.5469 10.9283 15.8632 11.0784 16.2291C11.2435 16.5897 11.2955 16.9889 11.228 17.3776C11.1605 17.7663 10.9764 18.1274 10.6985 18.4164L10.6134 18.5093C10.496 18.619 10.4242 18.7662 10.4117 18.9234C10.3992 19.0805 10.4467 19.2367 10.5454 19.3623C10.5943 19.4193 10.6547 19.4662 10.7229 19.5C10.7911 19.5339 10.8658 19.554 10.9423 19.5592C11.0219 19.5678 11.1025 19.5611 11.1793 19.5395C11.2562 19.5179 11.3279 19.4819 11.3903 19.4334L11.5717 19.2858C11.9598 18.9367 12.47 18.7414 13.0007 18.739Z' })
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'New Feature Idea' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return props.setCurrentTab('New Feature Idea');
                        }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement(
                        'g',
                        null,
                        wp.element.createElement('path', { d: 'M15.4659 8.22092C15.1128 8.22092 14.8262 7.94454 14.8262 7.604V6.61692C14.8262 6.27638 15.1128 6 15.4659 6C15.8191 6 16.1057 6.27638 16.1057 6.61692V7.604C16.1057 7.94454 15.8191 8.22092 15.4659 8.22092Z' }),
                        wp.element.createElement('path', { d: 'M10.7574 10.0965C10.5936 10.0965 10.4298 10.0372 10.307 9.91386L9.59044 9.22291C9.33965 8.98107 9.33965 8.59118 9.59044 8.34934C9.84123 8.10751 10.2456 8.10751 10.4964 8.34934L11.2129 9.0403C11.4637 9.28213 11.4637 9.67203 11.2129 9.91386C11.0901 10.0323 10.9263 10.0965 10.7625 10.0965H10.7574Z' }),
                        wp.element.createElement('path', { d: 'M8.81185 14.6372H7.78821C7.43506 14.6372 7.14844 14.3608 7.14844 14.0202C7.14844 13.6797 7.43506 13.4033 7.78821 13.4033H8.81185C9.165 13.4033 9.45162 13.6797 9.45162 14.0202C9.45162 14.3608 9.165 14.6372 8.81185 14.6372Z' }),
                        wp.element.createElement('path', { d: 'M10.0408 19.8684C9.87705 19.8684 9.71327 19.8092 9.59044 19.6858C9.33965 19.444 9.33965 19.0541 9.59044 18.8123L10.307 18.1213C10.5578 17.8795 10.9621 17.8795 11.2129 18.1213C11.4637 18.3632 11.4637 18.753 11.2129 18.9949L10.4964 19.6858C10.3735 19.8043 10.2097 19.8684 10.046 19.8684H10.0408Z' }),
                        wp.element.createElement('path', { d: 'M20.8902 19.8684C20.7264 19.8684 20.5626 19.8092 20.4398 19.6858L19.7232 18.9949C19.4725 18.753 19.4725 18.3632 19.7232 18.1213C19.974 17.8795 20.3784 17.8795 20.6292 18.1213L21.3457 18.8123C21.5965 19.0541 21.5965 19.444 21.3457 19.6858C21.2229 19.8043 21.0591 19.8684 20.8953 19.8684H20.8902Z' }),
                        wp.element.createElement('path', { d: 'M23.1419 14.6372H22.1183C21.7651 14.6372 21.4785 14.3608 21.4785 14.0202C21.4785 13.6797 21.7651 13.4033 22.1183 13.4033H23.1419C23.4951 13.4033 23.7817 13.6797 23.7817 14.0202C23.7817 14.3608 23.4951 14.6372 23.1419 14.6372Z' }),
                        wp.element.createElement('path', { d: 'M20.1736 10.0965C20.0099 10.0965 19.8461 10.0372 19.7232 9.91386C19.4725 9.67203 19.4725 9.28213 19.7232 9.0403L20.4398 8.34934C20.6906 8.10751 21.0949 8.10751 21.3457 8.34934C21.5965 8.59118 21.5965 8.98107 21.3457 9.22291L20.6292 9.91386C20.5063 10.0323 20.3425 10.0965 20.1788 10.0965H20.1736Z' }),
                        wp.element.createElement('path', { d: 'M15.4653 8.96143H15.2861C12.4763 9.07494 10.2294 11.2712 10.168 13.9708C10.168 15.4811 10.8794 16.937 12.0668 17.8797C12.2152 18.0327 12.2152 18.1314 12.2152 18.1659V18.7828C12.1538 20.3918 13.4129 21.7984 15.0917 21.9859C15.2043 22.0007 15.322 22.0056 15.4397 22.0056C16.1511 22.0056 16.8472 21.7687 17.4153 21.3246C18.096 20.8014 18.5157 20.0512 18.613 19.2172V18.1659C18.613 18.1314 18.613 18.0376 18.7563 17.8895C19.9846 17.0061 20.7114 15.565 20.7114 14.0202C20.7114 11.2317 18.3571 8.96143 15.4653 8.96143ZM16.6169 20.3622C16.2177 20.6731 15.7263 20.8113 15.235 20.7619C14.5082 20.683 13.9042 20.2042 13.6381 19.5725H17.2157C17.0929 19.8785 16.8881 20.1499 16.6169 20.3622ZM17.9578 16.9271L17.8811 16.9864C17.5228 17.3318 17.3334 17.7415 17.3334 18.1659V18.3387H13.4948V18.1659C13.4948 17.7415 13.3054 17.3318 12.9523 16.9864C12.9369 16.9716 12.9164 16.9567 12.9011 16.9469C11.99 16.2362 11.4475 15.1257 11.4475 13.9807C11.4936 11.9424 13.203 10.2792 15.3117 10.1953H15.4653C17.6917 10.1953 19.4319 11.8733 19.4319 14.0202C19.4319 15.1899 18.8791 16.2757 17.9578 16.9271Z' })
                    )
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'About' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return props.setCurrentTab('About');
                        }, width: '30', height: '28', viewBox: '0 0 30 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement(
                        'g',
                        null,
                        wp.element.createElement('path', { d: 'M15.4818 22C10.9063 22 7.18555 18.4121 7.18555 14C7.18555 9.58788 10.9063 6 15.4818 6C20.0574 6 23.7781 9.58788 23.7781 14C23.7781 18.4121 20.0574 22 15.4818 22ZM15.4818 7.45455C11.741 7.45455 8.69396 10.3927 8.69396 14C8.69396 17.6073 11.741 20.5455 15.4818 20.5455C19.2227 20.5455 22.2697 17.6073 22.2697 14C22.2697 10.3927 19.2227 7.45455 15.4818 7.45455Z' }),
                        wp.element.createElement('path', { d: 'M15.4827 18.1214C15.0654 18.1214 14.7285 17.7966 14.7285 17.3942V14.0002C14.7285 13.5978 15.0654 13.2729 15.4827 13.2729C15.9001 13.2729 16.2369 13.5978 16.2369 14.0002V17.3942C16.2369 17.7966 15.9001 18.1214 15.4827 18.1214Z' }),
                        wp.element.createElement('path', { d: 'M15.4822 12.0605C16.0376 12.0605 16.4878 11.6263 16.4878 11.0908C16.4878 10.5552 16.0376 10.1211 15.4822 10.1211C14.9268 10.1211 14.4766 10.5552 14.4766 11.0908C14.4766 11.6263 14.9268 12.0605 15.4822 12.0605Z' })
                    )
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'Changelog' },
                wp.element.createElement(
                    'svg',
                    { onClick: function onClick() {
                            return props.setCurrentTab('diviAssistantChangelog');
                        }, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M20.238 10.0818H11.6604C11.4534 10.0669 11.2597 9.97548 11.1184 9.82592C10.977 9.67635 10.8984 9.47971 10.8984 9.27551C10.8984 9.0713 10.977 8.87466 11.1184 8.72509C11.2597 8.57553 11.4534 8.48412 11.6604 8.46924H20.238C20.4451 8.48412 20.6388 8.57553 20.7801 8.72509C20.9215 8.87466 21 9.0713 21 9.27551C21 9.47971 20.9215 9.67635 20.7801 9.82592C20.6388 9.97548 20.4451 10.0669 20.238 10.0818Z' }),
                    wp.element.createElement('path', { d: 'M20.238 14.3H11.6604C11.4534 14.2852 11.2597 14.1937 11.1184 14.0442C10.977 13.8946 10.8984 13.698 10.8984 13.4938C10.8984 13.2896 10.977 13.0929 11.1184 12.9434C11.2597 12.7938 11.4534 12.7024 11.6604 12.6875H20.238C20.4451 12.7024 20.6388 12.7938 20.7801 12.9434C20.9215 13.0929 21 13.2896 21 13.4938C21 13.698 20.9215 13.8946 20.7801 14.0442C20.6388 14.1937 20.4451 14.2852 20.238 14.3Z' }),
                    wp.element.createElement('path', { d: 'M20.238 18.5183H11.6604C11.4534 18.5034 11.2597 18.412 11.1184 18.2624C10.977 18.1129 10.8984 17.9162 10.8984 17.712C10.8984 17.5078 10.977 17.3112 11.1184 17.1616C11.2597 17.0121 11.4534 16.9206 11.6604 16.9058H20.238C20.4451 16.9206 20.6388 17.0121 20.7801 17.1616C20.9215 17.3112 21 17.5078 21 17.712C21 17.9162 20.9215 18.1129 20.7801 18.2624C20.6388 18.412 20.4451 18.5034 20.238 18.5183Z' }),
                    wp.element.createElement('path', { d: 'M9.62312 9.29038C9.62305 9.54679 9.54529 9.79736 9.39978 10.0101C9.25426 10.2229 9.04759 10.3881 8.80614 10.4848C8.5647 10.5815 8.29944 10.6052 8.04422 10.553C7.789 10.5007 7.55541 10.3748 7.37327 10.1914C7.19112 10.0079 7.06868 9.77528 7.02158 9.52309C6.97449 9.2709 7.00486 9.01063 7.10884 8.77549C7.21282 8.54036 7.38568 8.34104 7.60535 8.20298C7.82502 8.06491 8.08154 7.99437 8.34216 8.00035C8.68468 8.00821 9.01047 8.14759 9.24985 8.38867C9.48924 8.62975 9.62321 8.9534 9.62312 9.29038Z' }),
                    wp.element.createElement('path', { d: 'M9.62312 13.4961C9.62312 13.7512 9.5462 14.0006 9.40208 14.2128C9.25796 14.4249 9.05313 14.5903 8.81347 14.6879C8.57381 14.7856 8.3101 14.8111 8.05569 14.7613C7.80127 14.7115 7.56757 14.5887 7.38415 14.4083C7.20072 14.2279 7.07581 13.998 7.0252 13.7478C6.9746 13.4975 7.00057 13.2381 7.09984 13.0024C7.19911 12.7667 7.36721 12.5652 7.5829 12.4235C7.79858 12.2817 8.05216 12.2061 8.31156 12.2061C8.65941 12.2061 8.99301 12.342 9.23897 12.5839C9.48494 12.8258 9.62312 13.1539 9.62312 13.4961Z' }),
                    wp.element.createElement('path', { d: 'M9.62312 17.71C9.62312 17.9651 9.5462 18.2145 9.40208 18.4267C9.25796 18.6388 9.05313 18.8041 8.81347 18.9018C8.57381 18.9994 8.3101 19.025 8.05569 18.9752C7.80127 18.9254 7.56757 18.8026 7.38415 18.6221C7.20072 18.4417 7.07581 18.2119 7.0252 17.9616C6.9746 17.7114 7.00057 17.452 7.09984 17.2163C7.19911 16.9806 7.36721 16.7791 7.5829 16.6373C7.79858 16.4956 8.05216 16.4199 8.31156 16.4199C8.65941 16.4199 8.99301 16.5558 9.23897 16.7978C9.48494 17.0397 9.62312 17.3678 9.62312 17.71Z' })
                )
            ),
            wp.element.createElement(
                'div',
                { 'data-tip': 'Support' },
                wp.element.createElement(
                    'svg',
                    { onClick: linkToSupport, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M21.0475 10.1048C21.219 9.8799 21.3115 9.60744 21.3115 9.32758C21.3115 9.04772 21.219 8.77526 21.0475 8.55038C21.0114 8.50478 20.9722 8.46151 20.9302 8.42084L19.512 7.04779C19.2866 6.82795 18.987 6.69479 18.6685 6.67288C18.35 6.65098 18.0341 6.74181 17.7791 6.92862C16.6178 6.31912 15.3187 6 13.9989 6C12.679 6 11.3799 6.31912 10.2186 6.92862C9.98757 6.76125 9.70707 6.67084 9.41887 6.67084C9.13068 6.67084 8.85018 6.76125 8.6191 6.92862L8.47515 7.04779L7.06755 8.42084C6.84392 8.64169 6.70955 8.93337 6.68899 9.24256C6.66843 9.55175 6.76306 9.85781 6.95558 10.1048C6.32839 11.2333 6 12.4958 6 13.7784C6 15.061 6.32839 16.3234 6.95558 17.4519C6.78335 17.6765 6.69032 17.9491 6.69032 18.2291C6.69032 18.5092 6.78335 18.7818 6.95558 19.0063C6.98805 19.0517 7.02561 19.0934 7.06755 19.1307L8.48048 20.5193C8.73146 20.7575 9.06806 20.8913 9.41887 20.8923C9.70586 20.899 9.98644 20.8094 10.2133 20.6385C11.3786 21.2415 12.6787 21.5565 13.9989 21.5556C15.3192 21.5552 16.6185 21.2346 17.7791 20.6229C17.961 20.7585 18.176 20.8459 18.403 20.8768H18.5789C18.8711 20.8749 19.1551 20.7824 19.3893 20.6125C19.4372 20.5804 19.4818 20.544 19.5226 20.5037L20.9302 19.1462C21.1563 18.925 21.293 18.6322 21.3155 18.3212C21.338 18.0102 21.2448 17.7017 21.0529 17.4519C21.6756 16.3218 22.0009 15.0596 22 13.7777C21.9991 12.4958 21.6719 11.234 21.0475 10.1048ZM19.576 9.31204L19.5013 9.36903L17.4219 10.9234C17.2786 10.7626 17.1255 10.6104 16.9634 10.4675L18.5629 8.45193L18.6162 8.37939L19.576 9.31204ZM16.7394 8.17214L15.5984 9.63846C15.0855 9.45871 14.5442 9.36752 13.9989 9.36903C13.4642 9.36944 12.9337 9.46063 12.4313 9.63846L11.2583 8.17214C12.1143 7.77543 13.0506 7.56956 13.9989 7.56956C14.9472 7.56956 15.8835 7.77543 16.7394 8.17214ZM8.20856 11.1151L9.73345 12.255C9.3498 13.2489 9.3498 14.3441 9.73345 15.3379L8.20322 16.4778C7.79392 15.6395 7.58292 14.7227 7.58569 13.7947C7.58845 12.8668 7.80492 11.9512 8.21922 11.1151H8.20856ZM9.4562 19.1307L9.39222 19.198L8.42716 18.255L8.49647 18.198L10.5759 16.6436C10.7182 16.807 10.8732 16.9595 11.0397 17.0996L9.4562 19.1307ZM10.5759 10.9079L8.49647 9.35349L8.42716 9.29649L9.39222 8.36385L9.4562 8.43639L11.0557 10.4519C10.8824 10.5901 10.7219 10.7426 10.5759 10.9079ZM11.2583 19.3949L12.4313 17.9286C12.9331 18.1077 13.4644 18.1955 13.9989 18.1877C14.544 18.1983 15.0864 18.1104 15.5984 17.9286L16.7661 19.4157C15.905 19.8132 14.9631 20.0177 14.0098 20.0141C13.0565 20.0105 12.1162 19.7989 11.2583 19.3949ZM13.9989 16.6333C13.4911 16.6354 12.992 16.5048 12.554 16.255C12.0912 16.0075 11.7103 15.6374 11.4556 15.1877C11.4388 15.176 11.4258 15.1598 11.4183 15.141C11.1873 14.7238 11.0664 14.2574 11.0664 13.7835C11.0664 13.3097 11.1873 12.8433 11.4183 12.426C11.4268 12.4049 11.4395 12.3855 11.4556 12.369C11.7114 11.9342 12.0807 11.5726 12.5261 11.3207C12.9715 11.0687 13.4774 10.9353 13.9928 10.9338C14.5081 10.9323 15.0148 11.0629 15.4617 11.3123C15.9087 11.5617 16.2801 11.9212 16.5385 12.3545C16.797 12.7879 16.9333 13.2797 16.9339 13.7806C16.9344 14.2814 16.7991 14.7735 16.5416 15.2074C16.2841 15.6412 15.9135 16.0015 15.4671 16.2518C15.0207 16.5021 14.5143 16.6337 13.9989 16.6333ZM18.6002 19.198L18.5469 19.1307L16.9474 17.1151C17.1082 16.9709 17.2613 16.8188 17.4059 16.6592L19.4693 18.1877L19.56 18.255L18.6002 19.198ZM19.7786 16.4519L18.2643 15.3379C18.6413 14.3519 18.6413 13.267 18.2643 12.2809L19.7946 11.1411C20.1935 11.9731 20.3988 12.8803 20.3961 13.7982C20.3933 14.7161 20.1825 15.6222 19.7786 16.4519Z' })
                )
            )
        ),
        wp.element.createElement(
            'div',
            { id: 'pac_da_main_panel_inner' },
            wp.element.createElement(
                'div',
                { className: 'sidebar' },
                wp.element.createElement(
                    'div',
                    { className: 'welcome_msg' },
                    wp.element.createElement('img', { className: 'avatar', src: props.sideBarData.avatar }),
                    wp.element.createElement(
                        'div',
                        { className: 'details' },
                        wp.element.createElement(
                            'div',
                            { className: 'name' },
                            props.greeting,
                            ', ',
                            props.sideBarData.name,
                            '!'
                        ),
                        wp.element.createElement(
                            'div',
                            { className: 'des' },
                            'Welcome to Divi Assistant!'
                        )
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_tabs' },
                    wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Dashboard' }),
                    props.enableAddons.startUp === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Startup Helper' }),
                        props.currentTab === 'Startup Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Actions' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Import/Export Plugins' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Generate/Export Child Theme' })
                        ) : ''
                    ) : '',
                    props.enableAddons.utility === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Utility Helper' }),
                        props.currentTab === 'Utility Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Admin Bar' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Editor' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Divi Library' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Post Types' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'SMTP' })
                        ) : ''
                    ) : '',
                    props.enableAddons.visual !== false ? wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Visual Builder Helper' }) : '',
                    props.enableAddons.styles === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Styles Helper' }),
                        props.currentTab === 'Styles Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Global Colors Manager' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Heading Text' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Body Text' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Link Text' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Bullet List Text' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Number List Text' })
                        ) : ''
                    ) : '',
                    props.enableAddons.fonts === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Fonts Helper' }),
                        props.currentTab === 'Fonts Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Allow More Font Types' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Local Fonts' })
                        ) : ''
                    ) : '',
                    props.enableAddons.media === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Media Helper' }),
                        props.currentTab === 'Media Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Uploads' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Image Attributes' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Alt Text' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Library' })
                        ) : ''
                    ) : '',
                    props.enableAddons.code === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Code Helper' }),
                        props.currentTab === 'Code Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Settings' })
                        ) : ''
                    ) : '',
                    props.enableAddons.frontend === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Frontend Helper' }),
                        props.currentTab === 'Frontend Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Miscellaneous' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Scrollbar' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Back To Top Button' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Replace Text' })
                        ) : ''
                    ) : '',
                    props.enableAddons.accessibility === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Accessibility Helper' }),
                        props.currentTab === 'Accessibility Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Settings' })
                        ) : ''
                    ) : '',
                    props.enableAddons.learning === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Learning Helper' }),
                        props.currentTab === 'Learning Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Glossary' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Tutorials' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Courses' })
                        ) : ''
                    ) : '',
                    props.enableAddons.maintenance === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Maintenance Helper' }),
                        props.currentTab === 'Maintenance Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Coming Soon Mode' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Maintenance Mode' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Clear Divi Cache' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Divi Changelog' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Updates' }),
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Change Divi Version' })
                        ) : ''
                    ) : '',
                    props.enableAddons.support === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Support Helper' }),
                        props.currentTab === 'Support Helper' ? wp.element.createElement(
                            'div',
                            { className: 'pac_da_subtabs' },
                            wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Share System Report' }),
                            props.hideTSA !== true ? wp.element.createElement(_SubTabs2.default, { currentSubTab: props.currentSubTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Temporary Support Access' }) : ''
                        ) : ''
                    ) : '',
                    wp.element.createElement(_Tabs2.default, { currentTab: props.currentTab, setCurrentTab: props.setCurrentTab, setCurrentSubTab: props.setCurrentSubTab, title: 'Enable More Helpers' })
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'pac_da_panel', className: 'pac_da_body' },
                props.currentTab == 'Dashboard' && props.getDashboardD === false && props.getChangelogD === false && props.getReportD === false ? wp.element.createElement(_Dashboard2.default, {
                    diviCurrentVersion: props.diviCurrentVersion,
                    setDiviCurrentVersion: props.setDiviCurrentVersion,
                    diviLatestVersion: props.diviLatestVersion,
                    diviChangelogOptions: props.diviChangelogOptions,
                    diviChangelogVersions: props.diviChangelogVersions,
                    websiteReport: props.websiteReport,
                    dashboardData: props.dashboardData,
                    dashboardCardsDismiss: props.dashboardCardsDismiss,
                    setDashboardCardsDismiss: props.setDashboardCardsDismiss,
                    openDiviChangelog: openDiviChangelog,
                    notificationsData: props.notificationsData
                }) : props.currentTab == 'Admin Settings' ? wp.element.createElement(_AdminSettings2.default, {
                    adminsData: props.adminsData,
                    allowAdmin: props.allowAdmin,
                    setAllowAdmin: props.setAllowAdmin,
                    allowAdminDefault: props.allowAdminDefault,
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'New Feature Idea' ? wp.element.createElement(_Newfeature2.default, {
                    newFeatureName: props.newFeatureName,
                    setNewFeatureName: props.setNewFeatureName,
                    newFeatureTitle: props.newFeatureTitle,
                    setNewFeatureTitle: props.setNewFeatureTitle,
                    newFeatureMessage: props.newFeatureMessage,
                    setNewFeatureMessage: props.setNewFeatureMessage
                }) : props.currentTab == 'About' ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(_About2.default, null),
                    wp.element.createElement(_OurProducts2.default, null)
                ) : props.currentTab == 'diviAssistantChangelog' ? wp.element.createElement(_DiviAssistantChangelog2.default, { diviAssistantChangelog: props.diviAssistantChangelog }) : props.currentTab == 'Enable More Helpers' && props.getGeneralD === false ? wp.element.createElement(_Addons2.default, { enableAddons: props.enableAddons, setEnableAddons: props.setEnableAddons, updatedAddons: props.updatedAddons, setUpdatedAddons: props.setUpdatedAddons }) : props.currentTab == 'Startup Helper' && props.currentSubTab == 'Actions' && props.getStartupD === false && props.enableAddons.startUp === true ? wp.element.createElement(_Startup2.default, { startupData: props.startupData, startupCards: props.startupCards, setStartupCards: props.setStartupCards, openImportSettingPopup: openImportSettingPopup }) : props.currentTab == 'Startup Helper' && props.currentSubTab == 'Import/Export Plugins' && props.enableAddons.startUp === true ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(_ExportPlugins2.default, { allPlugins: props.pluginDataToExport, getPluginD: props.getPluginD, loadingSpinner: props.loadingSpinner }),
                    wp.element.createElement(_InstallPlugins2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'installPlugins', showDissmissBtn: false })
                ) : props.currentTab == 'Startup Helper' && props.currentSubTab == 'Generate/Export Child Theme' && props.getStartupD === false ? wp.element.createElement(_ChildThemeGenerator2.default, { websiteReport: props.websiteReport }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Coming Soon Mode' && props.getMaintenanceD === false && props.enableAddons.maintenance === true ? wp.element.createElement(_Comingsoon2.default, { maintenanceData: props.maintenanceData, maintenanceCards: props.maintenanceCards, setMaintenanceCards: props.setMaintenanceCards }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Maintenance Mode' && props.getMaintenanceD === false && props.enableAddons.maintenance === true ? wp.element.createElement(_Maintenance2.default, { maintenanceData: props.maintenanceData, maintenanceCards: props.maintenanceCards, setMaintenanceCards: props.setMaintenanceCards }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Clear Divi Cache' && props.getMaintenanceD === false && props.enableAddons.maintenance === true ? wp.element.createElement(_AutoClearCache2.default, {
                    maintenanceCards: props.maintenanceCards,
                    setMaintenanceCards: props.setMaintenanceCards,
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Divi Changelog' && props.getChangelogD === false && props.enableAddons.maintenance === true ? wp.element.createElement(_Divichangelog2.default, { diviChangelogOptions: props.diviChangelogOptions, diviChangelogVersions: props.diviChangelogVersions }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Updates' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_Updates2.default, { utilityCards: props.utilityCards, setUtilityCards: props.setUtilityCards }) : props.currentTab == 'Maintenance Helper' && props.currentSubTab == 'Change Divi Version' && props.getChangelogD === false && props.getDashboardD === false && props.enableAddons.maintenance === true ? wp.element.createElement(_Changediviveriosn2.default, {
                    diviChangelogOptions: props.diviChangelogOptions,
                    diviChangelogVersions: props.diviChangelogVersions,
                    diviCurrentVersion: props.diviCurrentVersion,
                    setDiviCurrentVersion: props.setDiviCurrentVersion,
                    usernameApikey: props.dashboardData.divi_credentials
                }) : props.currentTab == 'Utility Helper' && props.currentSubTab == 'Admin Bar' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_AdminBar2.default, {
                    diviColorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards,
                    customQuickLinks: props.customQuickLinks,
                    setCustomQuickLinks: props.setCustomQuickLinks,
                    customQuickLinksIcon: props.customQuickLinksIcon,
                    setCustomQuickLinksIcon: props.setCustomQuickLinksIcon,
                    customQuickLinksParent: props.customQuickLinksParent,
                    setCustomQuickLinksParent: props.setCustomQuickLinksParent,
                    customQuickLinksJson: props.customQuickLinksJson,
                    setCustomQuickLinksJson: props.setCustomQuickLinksJson,
                    environmentsData: props.environmentsData,
                    setEnvironmentsData: props.setEnvironmentsData
                }) : props.currentTab == 'Utility Helper' && props.currentSubTab == 'Editor' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_Editor2.default, {
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards,
                    enableVbAllPosttypeCE: props.enableVbAllPosttypeCE,
                    setEnableVbAllPosttypeCE: props.setEnableVbAllPosttypeCE,
                    enableVbAllPosttype: props.enableVbAllPosttype,
                    setEnableVbAllPosttype: props.setEnableVbAllPosttype,
                    enableVbAllPosttypeName: props.enableVbAllPosttypeName
                }) : props.currentTab == 'Visual Builder Helper' && props.getGeneralD === false && props.enableAddons.visual !== false ? wp.element.createElement(_VisualBuilder2.default, {
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Utility Helper' && props.currentSubTab == 'Divi Library' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_DiviLibrary2.default, {
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Utility Helper' && props.currentSubTab == 'Post Types' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_PostTypes2.default, {
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Utility Helper' && props.currentSubTab == 'SMTP' && props.getGeneralD === false && props.enableAddons.utility === true ? wp.element.createElement(_SMTP2.default, {
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Frontend Helper' && props.currentSubTab == 'Replace Text' && props.getCustomLinkD === false && props.enableAddons.frontend === true ? wp.element.createElement(_ReplaceText2.default, {
                    textReplace: props.textReplace,
                    setTextReplace: props.setTextReplace,
                    textReplaceJson: props.textReplaceJson,
                    setTextReplaceJson: props.setTextReplaceJson
                }) : props.currentTab == 'Media Helper' && props.currentSubTab == 'Uploads' && props.getGeneralD === false && props.enableAddons.media === true ? wp.element.createElement(_Media2.default, { mediaCards: props.mediaCards, setMediaCards: props.setMediaCards }) : props.currentTab == 'Media Helper' && props.currentSubTab == 'Image Attributes' && props.getGeneralD === false && props.enableAddons.media === true ? wp.element.createElement(_ImageAttributes2.default, { mediaCards: props.mediaCards, setMediaCards: props.setMediaCards }) : props.currentTab == 'Media Helper' && props.currentSubTab == 'Alt Text' && props.getGeneralD === false && props.enableAddons.media === true ? wp.element.createElement(_AltText2.default, { mediaCards: props.mediaCards, setMediaCards: props.setMediaCards }) : props.currentTab == 'Media Helper' && props.currentSubTab == 'Library' && props.getGeneralD === false && props.enableAddons.media === true ? wp.element.createElement(_Library2.default, { mediaCards: props.mediaCards, setMediaCards: props.setMediaCards }) : props.currentTab == 'Fonts Helper' && props.currentSubTab == 'Allow More Font Types' && props.getGeneralD === false && props.enableAddons.fonts === true ? wp.element.createElement(_Font2.default, { fontCards: props.fontCards, setFontCards: props.setFontCards }) : props.currentTab == 'Fonts Helper' && props.currentSubTab == 'Local Fonts' && props.getGeneralD === false && props.getLocalFontD === false && props.enableAddons.fonts === true ? wp.element.createElement(_UploadFontFile2.default, { localFont: props.localFont, setLocalFont: props.setLocalFont, fontFamily: props.fontFamily, setFontFamily: props.setFontFamily }) : props.currentTab == 'Learning Helper' && props.currentSubTab == 'Glossary' && props.enableAddons.learning === true ? wp.element.createElement(_Glossary2.default, null) : props.currentTab == 'Learning Helper' && props.currentSubTab == 'Tutorials' && props.getTutorialsD === false && props.enableAddons.learning === true ? wp.element.createElement(_Tutorials2.default, { tutFilterUpdateCb: props.tutFilterUpdateCb,
                    setTutFilterUpdateCb: props.setTutFilterUpdateCb,
                    tutFilter: props.tutFilter,
                    setTutFilter: props.setTutFilter,
                    pacPostData: props.pacPostData,
                    pacCtgData: props.pacCtgData,
                    pacTutCheckboxId: props.pacTutCheckboxId,
                    pacTutCheckboxVal: props.pacTutCheckboxVal,
                    setPacTutCheckboxVal: props.setPacTutCheckboxVal,
                    pacTutCheckboxDefault: props.pacTutCheckboxDefault
                }) : props.currentTab == 'Learning Helper' && props.currentSubTab == 'Courses' && props.enableAddons.learning === true ? wp.element.createElement(_Courses2.default, null) : props.currentTab == 'Support Helper' && props.currentSubTab == 'Share System Report' && props.getReportD === false && props.enableAddons.support === true ? wp.element.createElement(_WebReport2.default, { websiteReport: props.websiteReport }) : props.currentTab == 'Support Helper' && props.currentSubTab == 'Temporary Support Access' && props.getReportD === false && props.enableAddons.support === true ? wp.element.createElement(_TemporaryLoginAccess2.default, { utilityCards: props.utilityCards, setUtilityCards: props.setUtilityCards, countWA: props.countWA, setCountWA: props.setCountWA }) : props.currentTab == 'Code Helper' && props.currentSubTab == 'Settings' && props.getGeneralD === false && props.enableAddons.code === true ? wp.element.createElement(_Code2.default, { codeData: props.codeData, setCodeData: props.setCodeData }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Global Colors Manager' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_GlobalColors2.default, { diviGlobalColor: props.diviGlobalColor, setDiviGlobalColor: props.setDiviGlobalColor, diviGlobalColorLabel: props.diviGlobalColorLabel, setDiviGlobalColorLabel: props.setDiviGlobalColorLabel }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Heading Text' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_HeadingStyles2.default, {
                    fontFamily: props.fontFamily,
                    stylesH1: props.stylesH1,
                    setStylesH1: props.setStylesH1,
                    stylesH2: props.stylesH2,
                    setStylesH2: props.setStylesH2,
                    stylesH3: props.stylesH3,
                    setStylesH3: props.setStylesH3,
                    stylesH4: props.stylesH4,
                    setStylesH4: props.setStylesH4,
                    stylesH5: props.stylesH5,
                    setStylesH5: props.setStylesH5,
                    stylesH6: props.stylesH6,
                    setStylesH6: props.setStylesH6,
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    updateStyles: updateStyles
                }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Body Text' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_BodyStyles2.default, {
                    fontFamily: props.fontFamily,
                    stylesBT: props.stylesBT,
                    setStylesBT: props.setStylesBT,
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    updateStyles: updateStyles
                }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Link Text' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_LinkStyles2.default, {
                    fontFamily: props.fontFamily,
                    stylesLT: props.stylesLT,
                    setStylesLT: props.setStylesLT,
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    updateStyles: updateStyles
                }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Bullet List Text' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_UnOrderListStyles2.default, {
                    fontFamily: props.fontFamily,
                    stylesUL: props.stylesUL,
                    setStylesUL: props.setStylesUL,
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    updateStyles: updateStyles
                }) : props.currentTab == 'Styles Helper' && props.currentSubTab == 'Number List Text' && props.getGeneralD === false && props.getStylesD === false && props.enableAddons.styles === true ? wp.element.createElement(_OrderListStyles2.default, {
                    fontFamily: props.fontFamily,
                    stylesOL: props.stylesOL,
                    setStylesOL: props.setStylesOL,
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    updateStyles: updateStyles
                }) : props.currentTab == 'Frontend Helper' && props.currentSubTab == 'Miscellaneous' && props.getGeneralD === false && props.enableAddons.frontend === true ? wp.element.createElement(_Miscellaneous2.default, {
                    colorPalette: props.diviColorPalette,
                    diviGlobalColor: props.diviGlobalColor,
                    utilityCards: props.utilityCards,
                    setUtilityCards: props.setUtilityCards
                }) : props.currentTab == 'Frontend Helper' && props.currentSubTab == 'Scrollbar' && props.getGeneralD === false && props.enableAddons.frontend === true ? wp.element.createElement(_Scrollbar2.default, { scrollBar: props.scrollBar, setScrollBar: props.setScrollBar, colorPalette: props.diviColorPalette, diviGlobalColor: props.diviGlobalColor }) : props.currentTab == 'Frontend Helper' && props.currentSubTab == 'Back To Top Button' && props.getGeneralD === false && props.enableAddons.frontend === true ? wp.element.createElement(_BackToTop2.default, { backToTop: props.backToTop, setBackToTop: props.setBackToTop, colorPalette: props.diviColorPalette, diviGlobalColor: props.diviGlobalColor }) : props.currentTab == 'Accessibility Helper' && props.currentSubTab == 'Settings' && props.getGeneralD === false && props.enableAddons.accessibility === true ? wp.element.createElement(_AccessibilityHelper2.default, { accessibilityHelperData: props.accessibilityHelperData, setAccessibilityHelperData: props.setAccessibilityHelperData, colorPalette: props.diviColorPalette, diviGlobalColor: props.diviGlobalColor }) : wp.element.createElement(
                    'div',
                    { className: 'pac_da_Spinner' },
                    wp.element.createElement('img', { src: props.loadingSpinner })
                )
            )
        )
    );
};
exports.default = Diviassistant;

/***/ }),
/* 174 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Tabs = function Tabs(props) {
    var handleTabChange = function handleTabChange(e) {
        props.setCurrentTab(props.title);
        if (props.title === 'Dashboard' || props.title === 'Visual Builder Helper') {
            props.setCurrentSubTab(null);
        } else if (props.title === 'Startup Helper') {
            props.setCurrentSubTab('Actions');
        } else if (props.title === 'Maintenance Helper') {
            props.setCurrentSubTab('Coming Soon Mode');
        } else if (props.title === 'Utility Helper') {
            props.setCurrentSubTab('Admin Bar');
        } else if (props.title === 'Media Helper') {
            props.setCurrentSubTab('Uploads');
        } else if (props.title === 'Learning Helper') {
            props.setCurrentSubTab('Glossary');
        } else if (props.title === 'Support Helper') {
            props.setCurrentSubTab('Share System Report');
        } else if (props.title === 'Fonts Helper') {
            props.setCurrentSubTab('Allow More Font Types');
        } else if (props.title === 'Styles Helper') {
            props.setCurrentSubTab('Global Colors Manager');
        } else if (props.title === 'Code Helper') {
            props.setCurrentSubTab('Settings');
        } else if (props.title === 'Frontend Helper') {
            props.setCurrentSubTab('Miscellaneous');
        } else if (props.title === 'Accessibility Helper') {
            props.setCurrentSubTab('Settings');
        }
    };
    return wp.element.createElement(
        'div',
        { className: 'pac_da_tab ' + (props.title == props.currentTab ? "active" : ""), 'data-tab': props.title },
        wp.element.createElement('div', { className: 'pac_da_tab_overlay', onClick: handleTabChange }),
        props.title == 'Dashboard' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.8248 11.9469L15.3406 6.84303C14.9568 6.54577 14.4849 6.385 13.9995 6.38619C13.5135 6.37612 13.0392 6.53595 12.6584 6.83812L6.17424 11.9469C6.02135 12.0686 5.92268 12.2458 5.89969 12.4399C5.87669 12.634 5.93122 12.8293 6.05143 12.9834C6.12128 13.0701 6.20952 13.1402 6.30976 13.1886C6.41001 13.237 6.51976 13.2626 6.63108 13.2634C6.79633 13.2616 6.95657 13.2065 7.08792 13.1062L7.99178 12.3939V19.836C7.99178 20.292 8.17292 20.7293 8.49535 21.0517C8.81778 21.3742 9.25509 21.5553 9.71108 21.5553H18.5532C18.779 21.5553 19.0025 21.5108 19.2111 21.4244C19.4197 21.338 19.6093 21.2114 19.7689 21.0517C19.9286 20.8921 20.0552 20.7026 20.1416 20.494C20.228 20.2854 20.2725 20.0618 20.2725 19.836V12.6051L20.9111 13.0964C21.0648 13.2175 21.2604 13.2727 21.4548 13.2496C21.551 13.2382 21.6441 13.208 21.7286 13.1606C21.8132 13.1132 21.8876 13.0497 21.9476 12.9736C22.0076 12.8974 22.052 12.8102 22.0783 12.717C22.1046 12.6237 22.1122 12.5261 22.1008 12.4299C22.0894 12.3336 22.0592 12.2406 22.0118 12.156C21.9644 12.0715 21.9009 11.9971 21.8248 11.9371V11.9469ZM18.7988 19.836C18.7975 19.9008 18.7713 19.9625 18.7255 20.0083C18.6797 20.0541 18.6179 20.0804 18.5532 20.0816H9.71108C9.64633 20.0804 9.58459 20.0541 9.5388 20.0083C9.493 19.9625 9.46672 19.9008 9.46547 19.836V11.2395L13.582 7.99251C13.7011 7.90044 13.849 7.85347 13.9995 7.85988C14.1529 7.85949 14.3025 7.90763 14.4269 7.99742L18.7988 11.436V19.836Z' })
        ) : props.title == 'Startup Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M15.1985 22C15.1091 22 15.0149 21.9812 14.9255 21.9435C14.5679 21.7929 14.3985 21.3788 14.5491 21.0212L17.4667 14.0424H6.70905C6.41729 14.0424 6.15847 13.8635 6.05023 13.5953C5.94199 13.3271 6.01258 13.0165 6.22435 12.8188L9.72552 9.55294L7.79141 7.14824C7.62199 6.93647 7.58905 6.64471 7.7067 6.4C7.82435 6.15529 8.07376 6 8.34199 6H21.2973C21.5326 6 21.7538 6.11765 21.8855 6.31529C22.0173 6.51294 22.0408 6.76235 21.9467 6.97882L15.8479 21.5671C15.7349 21.84 15.4714 22 15.1985 22ZM8.50199 12.6306H18.0549L20.2385 7.41176H9.81494L11.2408 9.18118C11.4714 9.46824 11.4432 9.88706 11.1702 10.1412L8.50199 12.6306Z' })
        ) : props.title == 'Maintenance Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M8.91967 22.0798C9.3409 22.2096 9.77888 22.2769 10.2197 22.2797C11.1891 22.2812 12.1334 21.9709 12.9131 21.3947C13.6928 20.8185 14.2665 20.007 14.5496 19.0798C14.7609 18.3794 14.7987 17.6379 14.6597 16.9196L16.7496 14.8298C17.46 15.1258 18.2407 15.2105 18.9981 15.0739C19.7555 14.9373 20.4574 14.5853 21.0196 14.0598C21.5916 13.4166 21.9915 12.6393 22.1821 11.8C22.3726 10.9607 22.3477 10.0868 22.1096 9.2597C22.0791 9.13728 22.0183 9.02447 21.9326 8.93182C21.847 8.83918 21.7393 8.76967 21.6196 8.72967C21.4988 8.69391 21.3711 8.68796 21.2474 8.71234C21.1238 8.73672 21.0079 8.79085 20.9097 8.86981L19.3096 10.2097L18.1096 9.90961L17.8096 8.70965L19.1496 7.1098C19.2293 7.01194 19.2829 6.89553 19.3057 6.77142C19.3284 6.64732 19.3195 6.51932 19.2797 6.3996C19.2422 6.2802 19.1747 6.17241 19.0837 6.08661C18.9926 6.0008 18.881 5.93987 18.7596 5.90961C17.9329 5.66771 17.0582 5.64098 16.2182 5.83172C15.3782 6.02247 14.6008 6.42447 13.9596 6.99969C13.4341 7.56193 13.0819 8.26379 12.9454 9.02118C12.8088 9.77856 12.8936 10.5593 13.1896 11.2697L11.0997 13.3598C10.0779 13.1512 9.01526 13.3105 8.09966 13.8098C7.57765 14.0859 7.11595 14.4634 6.74163 14.9201C6.3673 15.3768 6.08788 15.9036 5.91967 16.4697C5.74664 17.035 5.68671 17.6289 5.74334 18.2175C5.79996 18.806 5.97198 19.3776 6.24962 19.8996C6.52913 20.4209 6.90891 20.8819 7.36712 21.256C7.82532 21.6302 8.35296 21.9102 8.91967 22.0798ZM8.43523 15.3666C8.95187 14.985 9.57735 14.7793 10.2197 14.7797C10.5138 14.7795 10.8065 14.8198 11.0897 14.8996C11.2191 14.9415 11.3576 14.947 11.4899 14.9152C11.6222 14.8835 11.7433 14.8157 11.8397 14.7197L14.5796 11.9797C14.687 11.8715 14.759 11.7333 14.7858 11.5832C14.8126 11.4331 14.793 11.2783 14.7297 11.1396C14.4634 10.6575 14.3469 10.1071 14.3949 9.55853C14.443 9.00992 14.6535 8.48814 14.9996 8.05975C15.5689 7.53924 16.3084 7.24406 17.0796 7.22967L16.3996 8.04974C16.3217 8.13858 16.2672 8.24552 16.241 8.36078C16.2148 8.47603 16.2177 8.59585 16.2496 8.70965L16.7496 10.7097C16.7788 10.8418 16.8452 10.9629 16.9408 11.0585C17.0365 11.1542 17.1576 11.2205 17.2897 11.2497L19.2897 11.7497C19.4035 11.7816 19.5234 11.7847 19.6387 11.7585C19.7539 11.7323 19.8608 11.6778 19.9496 11.5998L20.7696 10.9196C20.749 11.6896 20.4547 12.4271 19.9396 12.9997C19.51 13.3433 18.9885 13.5522 18.4405 13.6003C17.8925 13.6483 17.3424 13.5334 16.8596 13.2697C16.7209 13.2064 16.5663 13.1868 16.4163 13.2136C16.2662 13.2404 16.1278 13.3122 16.0196 13.4196L13.2797 16.1596C13.1846 16.2546 13.1168 16.3734 13.0834 16.5036C13.0499 16.6338 13.0521 16.7705 13.0897 16.8996C13.2699 17.469 13.2699 18.0802 13.0897 18.6496C12.8587 19.4106 12.335 20.049 11.6337 20.424C10.9323 20.799 10.1108 20.88 9.34966 20.6496C8.58951 20.4167 7.95288 19.8916 7.57964 19.1896C7.39245 18.8419 7.27579 18.4605 7.23632 18.0676C7.19685 17.6746 7.23537 17.2777 7.34966 16.8996C7.53807 16.2855 7.91859 15.7483 8.43523 15.3666ZM10.3603 19.7802C10.4266 19.7899 10.494 19.7899 10.5603 19.7802C10.7546 19.786 10.944 19.7182 11.0903 19.5902L12.0003 18.6701C12.0936 18.578 12.1612 18.4631 12.1963 18.3368C12.2314 18.2105 12.2328 18.0771 12.2003 17.9501L11.8603 16.7001C11.8262 16.573 11.7593 16.4572 11.6662 16.3642C11.5732 16.2711 11.4574 16.2042 11.3303 16.1701L10.0803 15.8302C9.95333 15.7967 9.81974 15.7975 9.69321 15.8327C9.56668 15.8678 9.45173 15.9359 9.36026 16.0302L8.44028 16.9401C8.3478 17.0326 8.28152 17.1481 8.24814 17.2746C8.21476 17.401 8.21548 17.534 8.25028 17.6601L8.58029 18.9101C8.61439 19.0371 8.6813 19.153 8.77432 19.246C8.86735 19.339 8.98319 19.406 9.11026 19.4401L10.3603 19.7802ZM10.3303 18.1901L9.92032 18.0802L9.81027 17.6601L10.1103 17.3602L10.5303 17.4701L10.6403 17.89L10.3303 18.1901Z' })
        ) : props.title == 'Utility Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M18.1018 13.7382C20.2109 13.7382 21.9273 12.0364 21.9467 9.93212C22.0097 9.24848 21.8545 8.72 21.6945 8.28848C21.6073 8.06061 21.4085 7.88606 21.1661 7.83273C20.9236 7.77939 20.6715 7.85697 20.497 8.03152L18.9358 9.59758L18.4024 9.06424L19.9685 7.50303C20.143 7.32848 20.2158 7.07636 20.1624 6.83394C20.1139 6.59152 19.9394 6.39273 19.7115 6.30545C19.1539 6.09697 18.6594 6 18.1552 6C16.0364 6 14.3103 7.72606 14.3103 9.84485C14.3103 10.0776 14.3345 10.3006 14.3782 10.5139L12.9624 11.9345L8.02182 6.99394C7.73576 6.70788 7.27515 6.70788 6.99394 6.99394C6.70788 7.27515 6.70788 7.73576 6.99394 8.02182L11.9345 12.9624L10.5285 14.3685C10.3055 14.3345 10.0824 14.3103 9.84485 14.3103C7.72606 14.3103 6 16.0364 6 18.1552C6 18.6594 6.09697 19.1539 6.30545 19.7115C6.39273 19.9394 6.59152 20.1139 6.83394 20.1673C7.07152 20.2206 7.32364 20.143 7.49818 19.9685L9.06424 18.4024L9.59273 18.9358L8.03152 20.497C7.85697 20.6715 7.77939 20.9236 7.83273 21.1661C7.88606 21.4085 8.05576 21.6073 8.28848 21.6945C8.84606 21.903 9.34061 22 9.84485 22C11.9636 22 13.6897 20.2739 13.6897 18.1552C13.6897 17.9224 13.6655 17.6994 13.6218 17.4861L14 17.1079L17.6412 20.7491C18.0679 21.1758 18.6303 21.3891 19.1927 21.3891C19.7552 21.3891 20.3176 21.1758 20.7491 20.7491C21.6024 19.8909 21.6024 18.4994 20.7491 17.6412L17.1079 14L17.4327 13.6752C17.6461 13.7188 17.8691 13.7382 18.1018 13.7382ZM19.7164 18.6691C20.0073 18.96 20.0073 19.4303 19.7212 19.7212C19.4303 20.0073 18.96 20.0073 18.6691 19.7212L15.0279 16.08L16.08 15.0327L19.7164 18.6691ZM16.7055 12.3418L15.5612 13.4861L13.4861 15.5661L12.2885 16.7588C12.0848 16.9624 12.0218 17.2727 12.1285 17.5442C12.1964 17.7091 12.2352 17.9273 12.2352 18.1552C12.2352 19.4061 11.2703 20.4339 10.0485 20.5358L11.1345 19.4497C11.4206 19.1636 11.4206 18.703 11.1345 18.4218L9.57818 16.8606C9.43758 16.72 9.24848 16.6473 9.06424 16.6473C8.88 16.6473 8.69091 16.72 8.5503 16.8606L7.46424 17.9515C7.56606 16.7297 8.59394 15.7648 9.84485 15.7648C10.0921 15.7648 10.3685 15.8133 10.6594 15.8618C10.8921 15.9006 11.1248 15.823 11.2945 15.6582L13.4667 13.4861L13.4764 13.4764L13.4861 13.4667L15.7067 11.2412C15.9152 11.0376 15.9782 10.7273 15.8715 10.4558C15.8036 10.2909 15.7648 10.0727 15.7648 9.84485C15.7648 8.59394 16.7297 7.56606 17.9515 7.46424L16.8606 8.5503C16.7248 8.68606 16.6473 8.8703 16.6473 9.06424C16.6473 9.25818 16.7248 9.44242 16.8606 9.57818L18.4218 11.1394C18.6933 11.4109 19.1782 11.4109 19.4497 11.1394L20.4824 10.1018C20.3806 11.3236 19.3527 12.2836 18.1018 12.2836C17.8739 12.2836 17.6558 12.2497 17.4909 12.1818C17.2194 12.0752 16.9091 12.1382 16.7055 12.3418Z' })
        ) : props.title == 'Visual Builder Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M14.0005 20.1212C8.74471 20.1212 6.17017 14.5988 6.0635 14.3612C5.97623 14.1721 5.97623 13.9491 6.0635 13.76C6.17017 13.5224 8.74471 8 14.0005 8C19.2562 8 21.8308 13.5224 21.9374 13.76C22.0247 13.9491 22.0247 14.1721 21.9374 14.3612C21.8308 14.5988 19.2611 20.1212 14.0005 20.1212ZM7.54229 14.0606C8.11926 15.1273 10.3205 18.6667 14.0005 18.6667C17.6805 18.6667 19.8768 15.1273 20.4587 14.0606C19.8817 12.9939 17.6805 9.45455 14.0005 9.45455C10.3205 9.45455 8.12411 12.9939 7.54229 14.0606Z' }),
                wp.element.createElement('path', { d: 'M13.9996 17.697C11.9924 17.697 10.3633 16.068 10.3633 14.0607C10.3633 12.0534 11.9924 10.4243 13.9996 10.4243C16.0069 10.4243 17.636 12.0534 17.636 14.0607C17.636 16.068 16.0069 17.697 13.9996 17.697ZM13.9996 11.8789C12.7972 11.8789 11.8178 12.8583 11.8178 14.0607C11.8178 15.2631 12.7972 16.2425 13.9996 16.2425C15.2021 16.2425 16.1815 15.2631 16.1815 14.0607C16.1815 12.8583 15.2021 11.8789 13.9996 11.8789Z' })
            )
        ) : props.title == 'Media Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M9 6.75H19C19.7285 6.75263 20.4265 7.04319 20.9417 7.55835C21.4568 8.0735 21.7474 8.77147 21.75 9.5V18.5C21.75 19.2293 21.4603 19.9287 20.9446 20.4445C20.4289 20.9602 19.7293 21.25 19 21.25H9C8.27065 21.25 7.57121 20.9602 7.05548 20.4445C6.53976 19.9287 6.25 19.2293 6.25 18.5V9.5C6.25 8.77065 6.53976 8.07114 7.05548 7.55542C7.57121 7.03969 8.27065 6.75 9 6.75ZM8.11615 8.61609C7.88173 8.85051 7.75 9.16848 7.75 9.5V16.6899L10.15 14.2999C10.3195 14.1267 10.5217 13.9889 10.7449 13.8945C10.968 13.8001 11.2077 13.751 11.45 13.75H11.54C11.7839 13.7503 12.0254 13.799 12.2502 13.8934C12.4751 13.9879 12.679 14.126 12.85 14.2999L15.25 16.6899L16.15 15.7999C16.3195 15.6267 16.5217 15.4889 16.7449 15.3945C16.968 15.3001 17.2077 15.251 17.45 15.25H17.54C17.7839 15.2503 18.0254 15.299 18.2502 15.3934C18.4751 15.4879 18.679 15.626 18.85 15.7999L20.25 17.1899V9.5C20.25 9.16848 20.1183 8.85051 19.8839 8.61609C19.6495 8.38167 19.3315 8.25 19 8.25H9C8.66848 8.25 8.35057 8.38167 8.11615 8.61609ZM8.21051 19.469C8.4331 19.6514 8.71219 19.7508 9 19.75L16.19 19.72L11.79 15.33C11.7244 15.2619 11.6346 15.2224 11.54 15.22H11.45C11.4045 15.2202 11.3595 15.2301 11.3181 15.249C11.2767 15.268 11.2399 15.2956 11.21 15.33L7.78003 18.75C7.83573 19.0324 7.98792 19.2865 8.21051 19.469ZM18.31 19.75H19C19.2164 19.7524 19.4296 19.6972 19.6176 19.59C19.8056 19.4828 19.9618 19.3275 20.07 19.14L17.79 16.86C17.7244 16.7919 17.6346 16.7524 17.54 16.75H17.45C17.4045 16.7502 17.3595 16.7601 17.3181 16.7791C17.2767 16.798 17.2399 16.8256 17.21 16.86L16.31 17.75L18.31 19.75ZM14.409 13.601C14.831 14.0229 15.4033 14.26 16 14.26C16.5967 14.26 17.169 14.0229 17.591 13.601C18.013 13.179 18.25 12.6067 18.25 12.01C18.25 11.4133 18.013 10.8409 17.591 10.4189C17.169 9.99699 16.5967 9.76001 16 9.76001C15.4033 9.76001 14.831 9.99699 14.409 10.4189C13.987 10.8409 13.75 11.4133 13.75 12.01C13.75 12.6067 13.987 13.179 14.409 13.601ZM15.7114 11.3143C15.803 11.2771 15.9011 11.2587 16 11.26C16.1989 11.26 16.3897 11.339 16.5303 11.4796C16.671 11.6203 16.75 11.8111 16.75 12.01C16.7474 12.2081 16.6676 12.3974 16.5275 12.5375C16.3874 12.6776 16.1981 12.7574 16 12.76C15.8011 12.76 15.6103 12.6809 15.4697 12.5403C15.329 12.3996 15.25 12.2089 15.25 12.01C15.2487 11.9111 15.2672 11.8129 15.3044 11.7213C15.3416 11.6297 15.3968 11.5466 15.4667 11.4767C15.5366 11.4068 15.6198 11.3515 15.7114 11.3143Z' })
        ) : props.title == 'Learning Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.3806 12.8098C21.6433 12.6995 21.8668 12.5129 22.0219 12.2739C22.1771 12.035 22.2567 11.7548 22.2506 11.47C22.2601 11.1778 22.1773 10.8901 22.0139 10.6477C21.8506 10.4053 21.615 10.2206 21.3406 10.1199L14.6406 6.94995C14.4371 6.84867 14.2129 6.7959 13.9856 6.7959C13.7583 6.7959 13.5341 6.84867 13.3306 6.94995L6.62058 10.1299C6.35624 10.2408 6.13169 10.4292 5.97641 10.6702C5.82113 10.9111 5.74239 11.1934 5.75058 11.48C5.74319 11.7704 5.82704 12.0558 5.99027 12.2961C6.15349 12.5365 6.38792 12.7196 6.66061 12.8198L9.38059 14.1099L8.76059 18.3699C8.73567 18.5331 8.76527 18.6998 8.84482 18.8445C8.92437 18.9891 9.04944 19.1036 9.20059 19.1699C9.81059 19.4299 12.9006 20.73 14.0006 20.73C15.1006 20.73 18.1906 19.4299 18.8006 19.1699C18.9517 19.1036 19.0768 18.9891 19.1563 18.8445C19.2359 18.6998 19.2655 18.5331 19.2406 18.3699L18.6206 14.1299L19.7506 13.5999V18.98C19.5942 19.0953 19.4673 19.2459 19.3804 19.4197C19.2935 19.5935 19.249 19.7856 19.2506 19.98C19.2506 20.3115 19.3823 20.6293 19.6167 20.8638C19.8512 21.0982 20.1691 21.23 20.5006 21.23C20.8321 21.23 21.1501 21.0982 21.3845 20.8638C21.6189 20.6293 21.7506 20.3115 21.7506 19.98C21.7498 19.7861 21.7043 19.5948 21.6176 19.4214C21.5309 19.2479 21.4053 19.0969 21.2506 18.98V12.8799L21.3806 12.8098ZM14.0006 19.22C12.737 18.9463 11.5066 18.537 10.3306 17.9998L10.8006 14.7698L13.3606 15.9897C13.57 16.0889 13.7989 16.1403 14.0306 16.1399C14.2514 16.1388 14.4695 16.0909 14.6706 15.9998L17.2106 14.7898L17.6706 17.9998C16.4947 18.537 15.2642 18.9463 14.0006 19.22ZM17.5606 12.96L17.3806 13.0498L14.0206 14.6399L7.30057 11.46L13.9806 8.2998L20.7006 11.48L17.5606 12.96Z' })
        ) : props.title == 'Support Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.0475 10.1048C21.219 9.8799 21.3115 9.60744 21.3115 9.32758C21.3115 9.04772 21.219 8.77526 21.0475 8.55038C21.0114 8.50478 20.9722 8.46151 20.9302 8.42084L19.512 7.04779C19.2866 6.82795 18.987 6.69479 18.6685 6.67288C18.35 6.65098 18.0341 6.74181 17.7791 6.92862C16.6178 6.31912 15.3187 6 13.9989 6C12.679 6 11.3799 6.31912 10.2186 6.92862C9.98757 6.76125 9.70707 6.67084 9.41887 6.67084C9.13068 6.67084 8.85018 6.76125 8.6191 6.92862L8.47515 7.04779L7.06755 8.42084C6.84392 8.64169 6.70955 8.93337 6.68899 9.24256C6.66843 9.55175 6.76306 9.85781 6.95558 10.1048C6.32839 11.2333 6 12.4958 6 13.7784C6 15.061 6.32839 16.3234 6.95558 17.4519C6.78335 17.6765 6.69032 17.9491 6.69032 18.2291C6.69032 18.5092 6.78335 18.7818 6.95558 19.0063C6.98805 19.0517 7.02561 19.0934 7.06755 19.1307L8.48048 20.5193C8.73146 20.7575 9.06806 20.8913 9.41887 20.8923C9.70586 20.899 9.98644 20.8094 10.2133 20.6385C11.3786 21.2415 12.6787 21.5565 13.9989 21.5556C15.3192 21.5552 16.6185 21.2346 17.7791 20.6229C17.961 20.7585 18.176 20.8459 18.403 20.8768H18.5789C18.8711 20.8749 19.1551 20.7824 19.3893 20.6125C19.4372 20.5804 19.4818 20.544 19.5226 20.5037L20.9302 19.1462C21.1563 18.925 21.293 18.6322 21.3155 18.3212C21.338 18.0102 21.2448 17.7017 21.0529 17.4519C21.6756 16.3218 22.0009 15.0596 22 13.7777C21.9991 12.4958 21.6719 11.234 21.0475 10.1048ZM19.576 9.31204L19.5013 9.36903L17.4219 10.9234C17.2786 10.7626 17.1255 10.6104 16.9634 10.4675L18.5629 8.45193L18.6162 8.37939L19.576 9.31204ZM16.7394 8.17214L15.5984 9.63846C15.0855 9.45871 14.5442 9.36752 13.9989 9.36903C13.4642 9.36944 12.9337 9.46063 12.4313 9.63846L11.2583 8.17214C12.1143 7.77543 13.0506 7.56956 13.9989 7.56956C14.9472 7.56956 15.8835 7.77543 16.7394 8.17214ZM8.20856 11.1151L9.73345 12.255C9.3498 13.2489 9.3498 14.3441 9.73345 15.3379L8.20322 16.4778C7.79392 15.6395 7.58292 14.7227 7.58569 13.7947C7.58845 12.8668 7.80492 11.9512 8.21922 11.1151H8.20856ZM9.4562 19.1307L9.39222 19.198L8.42716 18.255L8.49647 18.198L10.5759 16.6436C10.7182 16.807 10.8732 16.9595 11.0397 17.0996L9.4562 19.1307ZM10.5759 10.9079L8.49647 9.35349L8.42716 9.29649L9.39222 8.36385L9.4562 8.43639L11.0557 10.4519C10.8824 10.5901 10.7219 10.7426 10.5759 10.9079ZM11.2583 19.3949L12.4313 17.9286C12.9331 18.1077 13.4644 18.1955 13.9989 18.1877C14.544 18.1983 15.0864 18.1104 15.5984 17.9286L16.7661 19.4157C15.905 19.8132 14.9631 20.0177 14.0098 20.0141C13.0565 20.0105 12.1162 19.7989 11.2583 19.3949ZM13.9989 16.6333C13.4911 16.6354 12.992 16.5048 12.554 16.255C12.0912 16.0075 11.7103 15.6374 11.4556 15.1877C11.4388 15.176 11.4258 15.1598 11.4183 15.141C11.1873 14.7238 11.0664 14.2574 11.0664 13.7835C11.0664 13.3097 11.1873 12.8433 11.4183 12.426C11.4268 12.4049 11.4395 12.3855 11.4556 12.369C11.7114 11.9342 12.0807 11.5726 12.5261 11.3207C12.9715 11.0687 13.4774 10.9353 13.9928 10.9338C14.5081 10.9323 15.0148 11.0629 15.4617 11.3123C15.9087 11.5617 16.2801 11.9212 16.5385 12.3545C16.797 12.7879 16.9333 13.2797 16.9339 13.7806C16.9344 14.2814 16.7991 14.7735 16.5416 15.2074C16.2841 15.6412 15.9135 16.0015 15.4671 16.2518C15.0207 16.5021 14.5143 16.6337 13.9989 16.6333ZM18.6002 19.198L18.5469 19.1307L16.9474 17.1151C17.1082 16.9709 17.2613 16.8188 17.4059 16.6592L19.4693 18.1877L19.56 18.255L18.6002 19.198ZM19.7786 16.4519L18.2643 15.3379C18.6413 14.3519 18.6413 13.267 18.2643 12.2809L19.7946 11.1411C20.1935 11.9731 20.3988 12.8803 20.3961 13.7982C20.3933 14.7161 20.1825 15.6222 19.7786 16.4519Z' })
        ) : props.title == 'Fonts Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M14.6722 18.2006L13.7054 14.3335C13.7078 14.3175 13.7078 14.3011 13.7054 14.2851L11.7719 6.55089C11.7349 6.39407 11.646 6.25438 11.5196 6.15436C11.3933 6.05435 11.2369 6.00005 11.0758 6H10.109C9.94708 6.00125 9.79011 6.05589 9.66248 6.15554C9.53486 6.2552 9.44374 6.39411 9.40326 6.55089L7.46971 14.2851L6.50293 18.1522C6.45891 18.3393 6.48992 18.5363 6.58931 18.7008C6.68871 18.8652 6.84857 18.9842 7.03464 19.0322C7.12672 19.0552 7.22248 19.0595 7.31629 19.0451C7.4101 19.0308 7.50008 18.9979 7.58105 18.9484C7.66203 18.8989 7.73236 18.8339 7.78793 18.7569C7.84351 18.68 7.88323 18.5928 7.90477 18.5004L8.73618 15.1844H12.4196L13.251 18.5004C13.2915 18.6572 13.3826 18.7961 13.5102 18.8957C13.6379 18.9954 13.7949 19.0503 13.9568 19.0515H14.1308C14.3151 19.0099 14.4754 18.897 14.5769 18.7376C14.6783 18.5782 14.7126 18.3852 14.6722 18.2006ZM9.10356 13.7824L10.5924 7.82711L12.0813 13.7824H9.10356ZM22.1935 22H6.72508C6.53278 22 6.34835 21.9238 6.21237 21.7878C6.07639 21.6518 6 21.4672 6 21.2749C6 21.0826 6.07639 20.8982 6.21237 20.7623C6.34835 20.6263 6.53278 20.5498 6.72508 20.5498H22.1935C22.3851 20.5523 22.568 20.6297 22.7035 20.7651C22.8389 20.9005 22.9161 21.0834 22.9186 21.2749C22.9161 21.4664 22.8389 21.6495 22.7035 21.785C22.568 21.9204 22.3851 21.9975 22.1935 22ZM21.9805 17.4081C21.9704 17.5045 21.9704 17.6017 21.9805 17.6981C22.1354 17.7393 22.272 17.8312 22.3684 17.9592C22.4648 18.0872 22.5154 18.2437 22.5122 18.4039C22.5097 18.5954 22.4325 18.7785 22.2971 18.9139C22.1617 19.0494 21.9787 19.1265 21.7872 19.129C21.5424 19.1151 21.3079 19.0259 21.1158 18.8736C20.9237 18.7213 20.7834 18.5134 20.714 18.2783C20.0675 18.8242 19.2496 19.1252 18.4034 19.129C17.6983 19.129 17.0221 18.8489 16.5235 18.3503C16.0249 17.8517 15.7448 17.1754 15.7448 16.4703C15.7448 15.7652 16.0249 15.0889 16.5235 14.5903C17.0221 14.0917 17.6983 13.8117 18.4034 13.8117H20.5787V13.0866C20.569 12.8449 20.424 11.8781 18.8868 11.8781C18.5333 11.8368 18.1758 11.908 17.8651 12.0816C17.5544 12.2551 17.3064 12.5222 17.1563 12.8449C17.1263 12.9407 17.0767 13.0293 17.0107 13.105C16.9447 13.1807 16.8636 13.2419 16.7728 13.2846C16.6819 13.3273 16.5831 13.3508 16.4827 13.3533C16.3823 13.3558 16.2825 13.3373 16.1895 13.2993C16.0937 13.2693 16.0051 13.2196 15.9294 13.1536C15.8537 13.0876 15.7926 13.0066 15.7499 12.9157C15.7071 12.8248 15.6838 12.726 15.6812 12.6256C15.6787 12.5252 15.697 12.4254 15.7351 12.3325C15.9835 11.7249 16.4171 11.2112 16.9742 10.8641C17.5313 10.517 18.1836 10.3542 18.8385 10.3989C19.2219 10.3534 19.6105 10.3874 19.9803 10.4985C20.35 10.6097 20.6929 10.7955 20.9877 11.0449C21.2824 11.2943 21.5226 11.6017 21.6935 11.948C21.8643 12.2942 21.962 12.6719 21.9805 13.0576V17.4081ZM17.4716 17.3443C17.6982 17.571 18.0056 17.6981 18.3261 17.6981V17.6498C18.7762 17.6137 19.2104 17.4669 19.59 17.2223C19.9695 16.9777 20.2826 16.643 20.5013 16.248V15.2812H18.3261C18.0056 15.2812 17.6982 15.4086 17.4716 15.6352C17.245 15.8619 17.1176 16.1692 17.1176 16.4897C17.1176 16.8102 17.245 17.1177 17.4716 17.3443Z' })
        ) : props.title == 'Styles Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.2727 13.3032H12.6618C12.3612 12.4547 11.5515 11.8486 10.6061 11.8486C9.66061 11.8486 8.85091 12.4547 8.5503 13.3032H6.72727C6.32485 13.3032 6 13.628 6 14.0305C6 14.4329 6.32485 14.7577 6.72727 14.7577H8.5503C8.85091 15.6062 9.66061 16.2123 10.6061 16.2123C11.5515 16.2123 12.3612 15.6062 12.6618 14.7577H21.2727C21.6752 14.7577 22 14.4329 22 14.0305C22 13.628 21.6752 13.3032 21.2727 13.3032ZM10.6061 14.7577C10.2036 14.7577 9.87879 14.4329 9.87879 14.0305C9.87879 13.628 10.2036 13.3032 10.6061 13.3032C11.0085 13.3032 11.3333 13.628 11.3333 14.0305C11.3333 14.4329 11.0085 14.7577 10.6061 14.7577Z' }),
            wp.element.createElement('path', { d: 'M21.2727 18.1513H19.4497C19.1491 17.3028 18.3394 16.6968 17.3939 16.6968C16.4485 16.6968 15.6388 17.3028 15.3382 18.1513H6.72727C6.32485 18.1513 6 18.4762 6 18.8786C6 19.281 6.32485 19.6059 6.72727 19.6059H15.3382C15.6388 20.4544 16.4485 21.0604 17.3939 21.0604C18.3394 21.0604 19.1491 20.4544 19.4497 19.6059H21.2727C21.6752 19.6059 22 19.281 22 18.8786C22 18.4762 21.6752 18.1513 21.2727 18.1513ZM17.3939 19.6059C16.9915 19.6059 16.6667 19.281 16.6667 18.8786C16.6667 18.4762 16.9915 18.1513 17.3939 18.1513C17.7964 18.1513 18.1212 18.4762 18.1212 18.8786C18.1212 19.281 17.7964 19.6059 17.3939 19.6059Z' }),
            wp.element.createElement('path', { d: 'M21.2727 8.45455H19.4497C19.1491 7.60606 18.3394 7 17.3939 7C16.4485 7 15.6388 7.60606 15.3382 8.45455H6.72727C6.32485 8.45455 6 8.77939 6 9.18182C6 9.58424 6.32485 9.90909 6.72727 9.90909H15.3382C15.6388 10.7576 16.4485 11.3636 17.3939 11.3636C18.3394 11.3636 19.1491 10.7576 19.4497 9.90909H21.2727C21.6752 9.90909 22 9.58424 22 9.18182C22 8.77939 21.6752 8.45455 21.2727 8.45455ZM17.3939 9.90909C16.9915 9.90909 16.6667 9.58424 16.6667 9.18182C16.6667 8.77939 16.9915 8.45455 17.3939 8.45455C17.7964 8.45455 18.1212 8.77939 18.1212 9.18182C18.1212 9.58424 17.7964 9.90909 17.3939 9.90909Z' })
        ) : props.title == 'Code Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M11.0514 17.4167C10.8744 17.4158 10.7025 17.3574 10.5614 17.2505L7.25392 14.7698C7.15243 14.6932 7.07011 14.594 7.01343 14.4801C6.95675 14.3662 6.92725 14.2408 6.92725 14.1136C6.92725 13.9864 6.95675 13.8609 7.01343 13.7471C7.07011 13.6332 7.15243 13.534 7.25392 13.4573L10.5614 10.9811C10.6473 10.9164 10.7451 10.8693 10.8492 10.8424C10.9533 10.8155 11.0616 10.8094 11.1681 10.8244C11.2746 10.8395 11.377 10.8753 11.4696 10.93C11.5622 10.9847 11.6431 11.057 11.7077 11.143C11.8374 11.3175 11.8932 11.5361 11.8629 11.7515C11.8326 11.9669 11.7187 12.1616 11.5458 12.2936L9.1133 14.1136L11.5458 15.938C11.6832 16.0418 11.7846 16.1862 11.8356 16.3507C11.8866 16.5152 11.8847 16.6916 11.83 16.855C11.7754 17.0184 11.6709 17.1605 11.5312 17.2612C11.3915 17.362 11.2237 17.4164 11.0514 17.4167Z' }),
            wp.element.createElement('path', { d: 'M12.705 19.4817C12.631 19.482 12.5573 19.4717 12.4862 19.4511C12.2773 19.3928 12.0999 19.2544 11.9926 19.0659C11.8852 18.8775 11.8567 18.6543 11.9131 18.4449L14.3937 9.35361C14.4224 9.2499 14.4713 9.15287 14.5375 9.06806C14.6038 8.98324 14.6861 8.9123 14.7797 8.85928C14.9688 8.75221 15.1927 8.72465 15.4022 8.78267C15.5059 8.8114 15.6029 8.86027 15.6877 8.92649C15.7725 8.99272 15.8435 9.075 15.8965 9.16864C15.9495 9.26229 15.9836 9.36545 15.9967 9.47226C16.0098 9.57906 16.0018 9.6874 15.9731 9.79111L13.4881 18.878C13.44 19.0496 13.3378 19.201 13.1967 19.3098C13.0556 19.4186 12.8831 19.4789 12.705 19.4817Z' }),
            wp.element.createElement('path', { d: 'M16.8351 17.4167C16.6632 17.4154 16.496 17.3604 16.357 17.2593C16.218 17.1582 16.1142 17.016 16.0601 16.8529C16.006 16.6897 16.0045 16.5137 16.0556 16.3496C16.1067 16.1855 16.2079 16.0415 16.3451 15.9379L18.7732 14.1135L16.3451 12.2935C16.2499 12.2325 16.1684 12.1524 16.1055 12.0584C16.0427 11.9644 15.9999 11.8585 15.9798 11.7472C15.9598 11.636 15.9629 11.5218 15.9889 11.4117C16.015 11.3017 16.0635 11.1983 16.1313 11.1078C16.1991 11.0174 16.2849 10.9419 16.3832 10.886C16.4815 10.8302 16.5903 10.7953 16.7027 10.7834C16.8152 10.7715 16.9289 10.7829 17.0367 10.8169C17.1445 10.8509 17.2442 10.9068 17.3294 10.981L20.6326 13.4573C20.7348 13.5334 20.8179 13.6324 20.8751 13.7463C20.9324 13.8603 20.9622 13.986 20.9622 14.1135C20.9622 14.241 20.9324 14.3668 20.8751 14.4807C20.8179 14.5947 20.7348 14.6936 20.6326 14.7698L17.3294 17.2504C17.1865 17.3569 17.0133 17.4151 16.8351 17.4167Z' })
        ) : props.title == 'Frontend Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M9.11506 10.3224C9.50491 10.3224 9.82094 10.0064 9.82094 9.61653C9.82094 9.22668 9.50491 8.91064 9.11506 8.91064C8.72521 8.91064 8.40918 9.22668 8.40918 9.61653C8.40918 10.0064 8.72521 10.3224 9.11506 10.3224Z' }),
                wp.element.createElement('path', { d: 'M10.9979 10.3224C11.3877 10.3224 11.7038 10.0064 11.7038 9.61653C11.7038 9.22668 11.3877 8.91064 10.9979 8.91064C10.608 8.91064 10.292 9.22668 10.292 9.61653C10.292 10.0064 10.608 10.3224 10.9979 10.3224Z' }),
                wp.element.createElement('path', { d: 'M12.8797 10.3224C13.2696 10.3224 13.5856 10.0064 13.5856 9.61653C13.5856 9.22668 13.2696 8.91064 12.8797 8.91064C12.4899 8.91064 12.1738 9.22668 12.1738 9.61653C12.1738 10.0064 12.4899 10.3224 12.8797 10.3224Z' }),
                wp.element.createElement('path', { d: 'M19.0776 7H8.92706C7.31294 7 6 8.31294 6 9.92706V18.6659C6 20.2753 7.31294 21.5882 8.92706 21.5882H19.0776C20.6918 21.5882 22 20.2753 22 18.6659V9.92706C22 8.31294 20.6918 7 19.0776 7ZM7.41176 9.92706C7.41176 9.08941 8.08941 8.41176 8.92706 8.41176H19.0776C19.9106 8.41176 20.5882 9.08941 20.5882 9.92706V10.7929H7.41176V9.92706ZM20.5882 18.6659C20.5882 19.4988 19.9106 20.1765 19.0776 20.1765H8.92706C8.08941 20.1765 7.41176 19.4988 7.41176 18.6659V12.2047H20.5882V18.6659Z' })
            )
        ) : props.title == 'Accessibility Helper' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M19.5105 10.9795L14.6669 12.914V15.6437L17.1105 21.0207C17.2705 21.3698 17.1105 21.7771 16.7663 21.9371C16.6742 21.9855 16.5772 22.0001 16.4802 22.0001C16.2184 22.0001 15.9615 21.8498 15.8451 21.5928L13.9736 17.4716L12.1021 21.5928C11.9857 21.8449 11.7336 22.0001 11.4669 22.0001C11.3699 22.0001 11.273 21.9807 11.1808 21.9371C10.8318 21.7819 10.6766 21.3698 10.8366 21.0207L13.2802 15.6437V12.914L8.43661 10.9795C8.08267 10.834 7.90327 10.4316 8.04873 10.0777C8.19418 9.72373 8.59661 9.54918 8.95054 9.68979L13.9736 11.7019L18.9966 9.68979C19.3505 9.54918 19.753 9.72373 19.8984 10.0777C20.0439 10.4316 19.8645 10.834 19.5105 10.9795Z' }),
                wp.element.createElement('path', { d: 'M13.9735 10.3248C12.7807 10.3248 11.811 9.35515 11.811 8.16242C11.811 6.9697 12.7807 6 13.9735 6C15.1662 6 16.1359 6.9697 16.1359 8.16242C16.1359 9.35515 15.1662 10.3248 13.9735 10.3248ZM13.9735 7.38667C13.5468 7.38667 13.1977 7.73576 13.1977 8.16242C13.1977 8.58909 13.5468 8.93818 13.9735 8.93818C14.4001 8.93818 14.7492 8.58909 14.7492 8.16242C14.7492 7.73576 14.4001 7.38667 13.9735 7.38667Z' })
            )
        ) : props.title == 'Enable More Helpers' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('rect', { width: '28', height: '28', fill: 'white' }),
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M18 13H15V10C15 9.73478 14.8946 9.48043 14.7071 9.29289C14.5196 9.10536 14.2652 9 14 9C13.7348 9 13.4804 9.10536 13.2929 9.29289C13.1054 9.48043 13 9.73478 13 10V13H10C9.73478 13 9.48043 13.1054 9.29289 13.2929C9.10536 13.4804 9 13.7348 9 14C9 14.2652 9.10536 14.5196 9.29289 14.7071C9.48043 14.8946 9.73478 15 10 15H13V18C13 18.2652 13.1054 18.5196 13.2929 18.7071C13.4804 18.8946 13.7348 19 14 19C14.2652 19 14.5196 18.8946 14.7071 18.7071C14.8946 18.5196 15 18.2652 15 18V15H18C18.2652 15 18.5196 14.8946 18.7071 14.7071C18.8946 14.5196 19 14.2652 19 14C19 13.7348 18.8946 13.4804 18.7071 13.2929C18.5196 13.1054 18.2652 13 18 13Z' })
        ) : '',
        wp.element.createElement(
            'span',
            { className: 'title' },
            props.title
        ),
        wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M10.9525 21C10.7112 21 10.4636 20.8987 10.2795 20.7027C9.90488 20.3041 9.90488 19.6622 10.2795 19.2703L15.7017 13.5L10.2795 7.72974C9.90488 7.33785 9.90488 6.6892 10.2795 6.29731C10.6541 5.89866 11.2509 5.89866 11.6255 6.29731L17.7208 12.7838C18.0954 13.1824 18.0954 13.8243 17.7208 14.2162L11.6255 20.7027C11.4414 20.8987 11.1938 21 10.9525 21Z' })
        )
    );
};
exports.default = Tabs;

/***/ }),
/* 175 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var SubTabs = function SubTabs(props) {
    var handleSubTabChange = function handleSubTabChange(e) {
        props.setCurrentSubTab(props.title);
    };
    return wp.element.createElement(
        'div',
        { className: 'pac_da_subtab ' + (props.title == props.currentSubTab ? "active" : ""), 'data-subtab': props.title, onClick: handleSubTabChange },
        props.title == 'Actions' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M13.65 22.2498C13.2787 22.2498 12.9226 22.1023 12.6601 21.8397C12.3975 21.5772 12.25 21.221 12.25 20.8497V15.7498H9.65002C9.27872 15.7498 8.92265 15.6023 8.6601 15.3397C8.39754 15.0772 8.25 14.721 8.25 14.3497V14.1998C8.25092 13.9264 8.33083 13.659 8.48004 13.4298L13.18 6.42981C13.3082 6.23672 13.4821 6.07815 13.6862 5.96826C13.8902 5.85838 14.1183 5.80056 14.35 5.7998C14.7213 5.7998 15.0774 5.94729 15.34 6.20984C15.6025 6.47239 15.75 6.82853 15.75 7.19983V12.2998H18.35C18.7213 12.2998 19.0774 12.4473 19.34 12.7098C19.6025 12.9724 19.75 13.3285 19.75 13.6998V13.8597C19.7503 14.1349 19.6666 14.4035 19.51 14.6298L14.81 21.6298C14.6835 21.8215 14.5112 21.9786 14.3087 22.0869C14.1061 22.1952 13.8797 22.2511 13.65 22.2498ZM9.75 14.2498H13C13.1981 14.2523 13.3874 14.3322 13.5275 14.4723C13.6676 14.6124 13.7474 14.8016 13.75 14.9998V20.5198L18.25 13.7498H15C14.9011 13.7511 14.803 13.7326 14.7114 13.6954C14.6198 13.6582 14.5366 13.603 14.4667 13.5331C14.3968 13.4632 14.3416 13.3799 14.3044 13.2883C14.2672 13.1967 14.2487 13.0986 14.25 12.9998V7.47974L9.75 14.2498Z' })
        ) : props.title == 'Import/Export Plugins' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M15.3139 10.8872H6.72727C6.32485 10.8872 6 10.5623 6 10.1599C6 9.75747 6.32485 9.43262 6.72727 9.43262H15.3139C15.7164 9.43262 16.0412 9.75747 16.0412 10.1599C16.0412 10.5623 15.7164 10.8872 15.3139 10.8872Z' }),
                wp.element.createElement('path', { d: 'M15.3139 7.45455H6.72727C6.32485 7.45455 6 7.1297 6 6.72727C6 6.32485 6.32485 6 6.72727 6H15.3139C15.7164 6 16.0412 6.32485 16.0412 6.72727C16.0412 7.1297 15.7164 7.45455 15.3139 7.45455Z' }),
                wp.element.createElement('path', { d: 'M11.0182 14.3198H6.72727C6.32485 14.3198 6 13.9949 6 13.5925C6 13.1901 6.32485 12.8652 6.72727 12.8652H11.0182C11.4206 12.8652 11.7455 13.1901 11.7455 13.5925C11.7455 13.9949 11.4206 14.3198 11.0182 14.3198Z' }),
                wp.element.createElement('path', { d: 'M21.1474 15.4837L19.7995 13.7576C19.5523 13.4425 19.0965 13.3843 18.7813 13.6316L18.185 14.097L16.7886 12.3128C16.5413 11.9976 16.0807 11.9394 15.7656 12.1867C15.4504 12.434 15.3923 12.8897 15.6395 13.2097L17.0359 14.994L15.2904 16.3564L13.9086 14.5916C13.6613 14.2764 13.2056 14.2231 12.8904 14.4655C12.5704 14.7176 12.5171 15.1734 12.7644 15.4885L14.1413 17.2534L13.5692 17.7043C13.4141 17.8255 13.3171 18 13.2929 18.1891C13.2686 18.3831 13.3219 18.5722 13.4432 18.7273L14.791 20.4485C15.4504 21.297 16.4056 21.8352 17.4771 21.971C17.6468 21.9903 17.8116 22 17.9813 22C18.8735 22 19.7365 21.7043 20.4541 21.1467C22.2044 19.7746 22.5195 17.234 21.1474 15.4837ZM19.5571 19.9976C19.0141 20.4243 18.3401 20.6085 17.6565 20.5261C16.968 20.4388 16.3571 20.0946 15.9353 19.5564L15.0383 18.4025L19.1013 15.2267L20.0032 16.3758C20.8759 17.5007 20.6771 19.1249 19.5571 19.9976Z' })
            )
        ) : props.title == 'Generate/Export Child Theme' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.7762 12.7939C21.5096 12.2509 21.015 11.8388 20.438 11.6739C20.0114 10.3455 19.1677 9.16242 18.0526 8.32848C16.8987 7.4703 15.4732 7 14.0041 7H13.9944C12.5593 7 11.1387 7.48 9.99441 8.33333C8.88411 9.16242 8.04532 10.3406 7.6235 11.6545C7.01744 11.8097 6.5035 12.2218 6.22714 12.7794C5.92168 13.3806 5.92168 14.103 6.22714 14.7091C6.5035 15.2667 7.01744 15.6788 7.6235 15.8291C8.21017 17.623 9.52411 19.0921 11.2453 19.8727C12.1277 20.2703 13.0732 20.4691 14.0187 20.4691C14.9641 20.4691 15.9193 20.2703 16.8065 19.8679C18.5277 19.0824 19.8417 17.6085 20.4235 15.8145C21.015 15.6497 21.5047 15.2473 21.7762 14.6897C22.072 14.0885 22.072 13.3952 21.7762 12.7939ZM20.6514 13.9042C20.569 14.1855 20.2877 14.3891 19.9726 14.3988H19.9532C19.6235 14.4036 19.3374 14.6267 19.255 14.9467C18.8671 16.5273 17.8053 17.8315 16.3362 18.5248C14.8671 19.223 13.1847 19.223 11.7205 18.5248C10.2514 17.8315 9.18956 16.5273 8.79683 14.9467C8.71441 14.6218 8.42835 14.3988 8.09865 14.3988H8.03562C7.71077 14.3988 7.42471 14.1952 7.33259 13.9042C7.25987 13.6715 7.29865 13.4291 7.43926 13.24C7.57987 13.0509 7.7932 12.9394 8.02593 12.9394H8.06471C8.41865 12.9345 8.70956 12.7212 8.79683 12.3915C9.07805 11.2279 9.74714 10.1758 10.6877 9.42909C11.6283 8.68727 12.8065 8.27515 13.9896 8.2703C14.1787 8.28485 14.3241 8.43515 14.3241 8.62424C14.3241 8.81333 14.1787 8.96848 14.0041 8.97818C13.7762 8.97818 13.5629 9.08 13.4223 9.26424C13.2865 9.44848 13.238 9.68121 13.3011 9.90909C13.3835 10.2048 13.7035 10.423 14.0235 10.4327C14.5811 10.4279 15.095 10.1709 15.4344 9.7297C15.6914 9.4 15.8174 8.98788 15.8077 8.57576C16.5932 8.84727 17.3108 9.30788 17.8926 9.90424C18.5617 10.5976 19.0368 11.4606 19.2599 12.4012C19.3423 12.7212 19.6332 12.9442 19.9629 12.9442C20.1956 12.9442 20.409 13.0509 20.5447 13.24C20.6853 13.4242 20.7241 13.6667 20.6514 13.9042Z' }),
                wp.element.createElement('path', { d: 'M16.2399 16.3333C16.2399 16.3964 16.2302 16.4594 16.2157 16.5224C15.9781 17.3661 15.0666 17.9479 13.9999 17.9479C13.0302 17.9479 12.1672 17.4582 11.852 16.7261C11.7114 16.3527 11.8811 15.9503 12.2399 15.8C12.5938 15.6448 13.0011 15.8 13.1708 16.1442C13.2387 16.2945 13.5054 16.5079 13.9999 16.5079C14.4945 16.5079 14.7902 16.2945 14.829 16.1491C14.9405 15.7661 15.3381 15.543 15.7211 15.6497C16.0363 15.7418 16.2399 16.023 16.2399 16.3333Z' }),
                wp.element.createElement('path', { d: 'M11.5812 13.473C11.5618 13.4197 11.5133 13.3906 11.4551 13.3906C11.4212 13.3906 11.3872 13.4052 11.3582 13.4294C11.3388 13.4488 11.3242 13.4876 11.3242 13.5215C11.3242 13.5797 11.3533 13.6282 11.4066 13.6476C11.4551 13.667 11.5133 13.6573 11.5521 13.6185C11.5909 13.5797 11.6006 13.5215 11.5812 13.473ZM11.5327 13.5991C11.5327 13.5991 11.4842 13.633 11.4551 13.633C11.4115 13.633 11.3727 13.604 11.3582 13.5652C11.3388 13.5264 11.3485 13.4779 11.3824 13.4488C11.4115 13.4149 11.46 13.4052 11.4988 13.4246C11.5376 13.4391 11.5666 13.4779 11.5666 13.5215C11.5666 13.5506 11.5521 13.5797 11.5327 13.5991Z' }),
                wp.element.createElement('path', { d: 'M11.8764 12.5126C11.4643 12.3429 10.9988 12.435 10.6837 12.7501C10.3734 13.0605 10.2764 13.5308 10.4461 13.938C10.6158 14.3453 11.0134 14.612 11.4546 14.612C12.0558 14.612 12.5455 14.1223 12.5455 13.5259C12.5503 13.0798 12.2837 12.6823 11.8764 12.5126ZM11.4061 13.6471C11.3527 13.6277 11.3237 13.5792 11.3237 13.5211C11.3237 13.4871 11.3382 13.4483 11.3576 13.4289C11.3867 13.4047 11.4206 13.3901 11.4546 13.3901C11.5127 13.3901 11.5612 13.4192 11.5806 13.4726C11.6 13.5211 11.5903 13.5792 11.5515 13.618C11.5127 13.6568 11.4546 13.6665 11.4061 13.6471Z' }),
                wp.element.createElement('path', { d: 'M16.6329 13.473C16.6135 13.4246 16.565 13.3906 16.5117 13.3906H16.5069C16.4729 13.3906 16.439 13.4003 16.4147 13.4246C16.3856 13.4537 16.3711 13.4876 16.3711 13.5215C16.3711 13.5797 16.405 13.6282 16.4584 13.6476C16.5069 13.667 16.565 13.6573 16.6038 13.6185C16.6426 13.5797 16.6523 13.5215 16.6329 13.473ZM16.5844 13.5991C16.5844 13.5991 16.5359 13.633 16.5069 13.633C16.4632 13.6282 16.4244 13.604 16.4099 13.5652C16.3905 13.5215 16.4002 13.4779 16.4341 13.444C16.4535 13.4246 16.4826 13.4149 16.5117 13.4149C16.5262 13.4149 16.5359 13.4197 16.5505 13.4246C16.5893 13.4391 16.6135 13.4779 16.6135 13.5215C16.6135 13.5506 16.6038 13.5797 16.5844 13.5991Z' }),
                wp.element.createElement('path', { d: 'M17.2773 12.7507C17.0737 12.547 16.7973 12.4307 16.5064 12.4307C16.0652 12.4307 15.6676 12.6973 15.4979 13.1046C15.3282 13.5167 15.4203 13.9822 15.7355 14.2973C15.944 14.5058 16.2203 14.6125 16.5064 14.6125C16.647 14.6125 16.7876 14.5882 16.9234 14.5301C17.3307 14.3604 17.5973 13.9676 17.5973 13.5216C17.5973 13.2307 17.4858 12.9591 17.2773 12.7507ZM16.4579 13.6476C16.4046 13.6282 16.3707 13.5798 16.3707 13.5216C16.3707 13.4876 16.3852 13.4537 16.4143 13.4246C16.4385 13.4004 16.4725 13.3907 16.5064 13.3907H16.5113C16.5646 13.3907 16.6131 13.4246 16.6325 13.4731C16.6519 13.5216 16.6422 13.5798 16.6034 13.6185C16.5646 13.6573 16.5064 13.667 16.4579 13.6476Z' })
            )
        ) : props.title == 'Coming Soon Mode' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M18.5806 20.4516H17.8168C17.6929 18.191 16.7535 16.0748 15.1381 14.4594L14.7716 14.0929L15.1639 13.7006C16.8155 12.049 17.7548 9.87613 17.8271 7.54839H18.5806C19.009 7.54839 19.3548 7.20258 19.3548 6.77419C19.3548 6.34581 19.009 6 18.5806 6H8.77419C8.34581 6 8 6.34581 8 6.77419C8 7.20258 8.34581 7.54839 8.77419 7.54839H9.52258C9.59484 9.87613 10.5394 12.049 12.191 13.7006L12.5832 14.0929L12.2168 14.4594C10.6013 16.0748 9.65677 18.191 9.5329 20.4516H8.77419C8.34581 20.4516 8 20.7974 8 21.2258C8 21.6542 8.34581 22 8.77419 22H18.5806C19.009 22 19.3548 21.6542 19.3548 21.2258C19.3548 20.7974 19.009 20.4516 18.5806 20.4516ZM11.0761 7.54839H16.2735C16.2065 9.46323 15.4271 11.249 14.0697 12.6065L13.6774 12.9987L13.2852 12.6065C11.9277 11.249 11.1432 9.46323 11.0761 7.54839ZM11.0865 20.4516C11.2052 18.5987 11.9897 16.8748 13.311 15.5535L13.6774 15.1871L14.0439 15.5535C15.3652 16.8748 16.1445 18.5987 16.2632 20.4516H11.0865Z' }),
                wp.element.createElement('path', { d: 'M14.7098 19.9356H12.6453C12.2169 19.9356 11.8711 19.5898 11.8711 19.1614C11.8711 18.733 12.2169 18.3872 12.6453 18.3872H14.7098C15.1382 18.3872 15.484 18.733 15.484 19.1614C15.484 19.5898 15.1382 19.9356 14.7098 19.9356Z' })
            )
        ) : props.title == 'Maintenance Mode' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M20.75 20.5H19.82L16.215 7.435C15.965 6.6 15.16 6 14.295 6H13.2C12.3 6 11.505 6.595 11.275 7.45L7.675 20.5H6.75C6.335 20.5 6 20.835 6 21.25C6 21.665 6.335 22 6.75 22H20.75C21.16 22 21.5 21.66 21.5 21.25C21.5 20.84 21.16 20.5 20.75 20.5ZM12.72 7.845C12.785 7.605 13.01 7.5 13.2 7.5H14.295C14.5 7.5 14.72 7.665 14.775 7.85L15.78 11.5H11.715L12.72 7.845ZM11.3 13H16.195L17.02 16H10.47L11.3 13ZM9.23 20.5L10.06 17.5H17.435L18.265 20.5H9.23Z' })
            )
        ) : props.title == 'Divi Changelog' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M20.238 10.0818H11.6604C11.4534 10.0669 11.2597 9.97548 11.1184 9.82592C10.977 9.67635 10.8984 9.47971 10.8984 9.27551C10.8984 9.0713 10.977 8.87466 11.1184 8.72509C11.2597 8.57553 11.4534 8.48412 11.6604 8.46924H20.238C20.4451 8.48412 20.6388 8.57553 20.7801 8.72509C20.9215 8.87466 21 9.0713 21 9.27551C21 9.47971 20.9215 9.67635 20.7801 9.82592C20.6388 9.97548 20.4451 10.0669 20.238 10.0818Z' }),
            wp.element.createElement('path', { d: 'M20.238 14.3H11.6604C11.4534 14.2852 11.2597 14.1937 11.1184 14.0442C10.977 13.8946 10.8984 13.698 10.8984 13.4938C10.8984 13.2896 10.977 13.0929 11.1184 12.9434C11.2597 12.7938 11.4534 12.7024 11.6604 12.6875H20.238C20.4451 12.7024 20.6388 12.7938 20.7801 12.9434C20.9215 13.0929 21 13.2896 21 13.4938C21 13.698 20.9215 13.8946 20.7801 14.0442C20.6388 14.1937 20.4451 14.2852 20.238 14.3Z' }),
            wp.element.createElement('path', { d: 'M20.238 18.5183H11.6604C11.4534 18.5034 11.2597 18.412 11.1184 18.2624C10.977 18.1129 10.8984 17.9162 10.8984 17.712C10.8984 17.5078 10.977 17.3112 11.1184 17.1616C11.2597 17.0121 11.4534 16.9206 11.6604 16.9058H20.238C20.4451 16.9206 20.6388 17.0121 20.7801 17.1616C20.9215 17.3112 21 17.5078 21 17.712C21 17.9162 20.9215 18.1129 20.7801 18.2624C20.6388 18.412 20.4451 18.5034 20.238 18.5183Z' }),
            wp.element.createElement('path', { d: 'M9.62312 9.29038C9.62305 9.54679 9.54529 9.79736 9.39978 10.0101C9.25426 10.2229 9.04759 10.3881 8.80614 10.4848C8.5647 10.5815 8.29944 10.6052 8.04422 10.553C7.789 10.5007 7.55541 10.3748 7.37327 10.1914C7.19112 10.0079 7.06868 9.77528 7.02158 9.52309C6.97449 9.2709 7.00486 9.01063 7.10884 8.77549C7.21282 8.54036 7.38568 8.34104 7.60535 8.20298C7.82502 8.06491 8.08154 7.99437 8.34216 8.00035C8.68468 8.00821 9.01047 8.14759 9.24985 8.38867C9.48924 8.62975 9.62321 8.9534 9.62312 9.29038Z' }),
            wp.element.createElement('path', { d: 'M9.62312 13.4961C9.62312 13.7512 9.5462 14.0006 9.40208 14.2128C9.25796 14.4249 9.05313 14.5903 8.81347 14.6879C8.57381 14.7856 8.3101 14.8111 8.05569 14.7613C7.80127 14.7115 7.56757 14.5887 7.38415 14.4083C7.20072 14.2279 7.07581 13.998 7.0252 13.7478C6.9746 13.4975 7.00057 13.2381 7.09984 13.0024C7.19911 12.7667 7.36721 12.5652 7.5829 12.4235C7.79858 12.2817 8.05216 12.2061 8.31156 12.2061C8.65941 12.2061 8.99301 12.342 9.23897 12.5839C9.48494 12.8258 9.62312 13.1539 9.62312 13.4961Z' }),
            wp.element.createElement('path', { d: 'M9.62312 17.71C9.62312 17.9651 9.5462 18.2145 9.40208 18.4267C9.25796 18.6388 9.05313 18.8041 8.81347 18.9018C8.57381 18.9994 8.3101 19.025 8.05569 18.9752C7.80127 18.9254 7.56757 18.8026 7.38415 18.6221C7.20072 18.4417 7.07581 18.2119 7.0252 17.9616C6.9746 17.7114 7.00057 17.452 7.09984 17.2163C7.19911 16.9806 7.36721 16.7791 7.5829 16.6373C7.79858 16.4956 8.05216 16.4199 8.31156 16.4199C8.65941 16.4199 8.99301 16.5558 9.23897 16.7978C9.48494 17.0397 9.62312 17.3678 9.62312 17.71Z' })
        ) : props.title == 'Updates' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.7932 14.6635L20.1696 16.2871C20.1414 16.3153 20.1085 16.3435 20.0755 16.3671C20.0285 16.4 19.9814 16.4235 19.9296 16.4471C19.8873 16.4612 19.8496 16.4706 19.8073 16.48C19.7602 16.4894 19.7179 16.4941 19.6708 16.4941C19.6285 16.4941 19.5908 16.4894 19.5485 16.48C19.412 16.4612 19.2802 16.3953 19.172 16.2871L17.8214 14.9365C17.5438 14.6588 17.5438 14.2118 17.8214 13.9388C18.0991 13.6612 18.5461 13.6612 18.8191 13.9388L19.0826 14.2024C18.9838 12.9835 18.4426 11.7741 17.5532 10.8847C15.5908 8.92235 12.4049 8.92235 10.4473 10.8847C10.1696 11.1576 9.72259 11.1576 9.44494 10.8847C9.172 10.6071 9.172 10.16 9.44494 9.88235C10.6638 8.66824 12.2779 8 14.0002 8C15.7226 8 17.3367 8.66824 18.5508 9.88235C19.6661 11.0024 20.3438 12.4659 20.4849 13.9765L20.7955 13.6659C21.0685 13.3929 21.5155 13.3929 21.7932 13.6659C22.0661 13.9435 22.0661 14.3906 21.7932 14.6635Z' }),
                wp.element.createElement('path', { d: 'M18.5498 18.9884C17.3357 20.2025 15.7169 20.8708 13.9992 20.8708C12.2816 20.8708 10.6628 20.2025 9.44393 18.9884C8.32864 17.8684 7.65569 16.4049 7.51452 14.8943L7.20393 15.2049C7.06275 15.3414 6.88393 15.4119 6.70511 15.4119C6.52628 15.4119 6.34275 15.3414 6.20628 15.2049C5.92864 14.9319 5.92864 14.4849 6.20628 14.2072L7.82511 12.5884L7.83452 12.579C7.86275 12.5508 7.89099 12.5272 7.92393 12.5084C7.92864 12.5084 7.93334 12.499 7.94275 12.4943C8.17334 12.3484 8.48864 12.3531 8.71452 12.499C8.75216 12.5225 8.78981 12.5555 8.82275 12.5884L8.87922 12.6496L10.1733 13.939C10.451 14.2119 10.451 14.659 10.1733 14.9366C9.9004 15.2096 9.45334 15.2096 9.17569 14.9366L8.91687 14.6778C9.01569 15.8919 9.55687 17.0966 10.4463 17.9908C11.3922 18.9366 12.6533 19.459 13.9992 19.459C15.3451 19.459 16.6016 18.9366 17.5522 17.9908C17.8251 17.7131 18.2722 17.7131 18.5498 17.9908C18.8228 18.2637 18.8228 18.7108 18.5498 18.9884Z' })
            )
        ) : props.title == 'Clear Divi Cache' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M12.1518 20.4512L12.1208 20.4821L12.0898 20.4512H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4512L12.1208 20.4821L12.0898 20.4512H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4513H12.1879C12.2137 20.4203 12.2344 20.3894 12.2447 20.3584L12.1518 20.4513ZM12.1208 20.4823L12.1518 20.4513H12.0898L12.1208 20.4823Z' }),
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M10.1048 11.4126C10.1048 11.9809 9.64136 12.4443 9.0786 12.4443C8.51584 12.4443 8.04688 11.9809 8.04688 11.4126C8.04688 10.8443 8.51032 10.3809 9.0786 10.3809C9.64687 10.3809 10.1048 10.8443 10.1048 11.4126Z' }),
                wp.element.createElement('path', { d: 'M8.05793 13.73C8.05793 14.2927 7.59448 14.7562 7.02621 14.7562C6.45793 14.7562 6 14.2927 6 13.73C6 13.1672 6.45793 12.6982 7.02621 12.6982C7.59448 12.6982 8.05793 13.1617 8.05793 13.73Z' }),
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M21.1729 7.41282C21.0074 6.8942 20.6543 6.47489 20.1798 6.22661C19.6998 5.98385 19.1536 5.9342 18.6405 6.09971C18.1274 6.25971 17.7081 6.61282 17.4653 7.09282L15.5784 10.7232C14.6184 10.7452 13.675 11.1921 13.0295 11.948C12.3895 12.6983 11.4571 13.697 10.6571 14.1935C9.58671 14.8611 8.70395 15.0983 8.15223 15.1866C7.73844 15.2473 7.38533 15.5121 7.20878 15.8873C7.00464 16.3176 7.07637 16.8087 7.39085 17.1618C7.99223 17.8239 9.15085 18.8942 11.2584 20.2294C12.7481 21.1783 14.0888 21.697 14.7564 21.9232C14.9164 21.9783 15.0764 22.0004 15.2364 22.0004C15.7274 22.0004 16.2019 21.7576 16.4888 21.3273C16.8584 20.7811 17.5646 19.6501 18.166 18.2763C18.6129 17.2556 18.9936 16.2128 19.3357 15.2418C19.6391 14.3811 19.5509 13.4542 19.0984 12.6652L21.035 8.94661C21.2833 8.46661 21.3329 7.92592 21.1729 7.41282ZM17.7743 11.4128L17.1729 11.1039L18.8777 7.82109C18.9826 7.61696 19.2364 7.5342 19.446 7.64454C19.5453 7.6942 19.6171 7.78247 19.6557 7.8873C19.6888 7.99765 19.6777 8.11351 19.6281 8.21282L17.9177 11.4901C17.8736 11.4625 17.824 11.4349 17.7743 11.4128ZM16.7095 17.6418C16.1798 18.8501 15.5509 19.8652 15.1977 20.3949C14.9936 20.3232 14.7067 20.2183 14.3702 20.0749C14.5853 19.8211 14.8391 19.479 15.0819 19.0652C15.1867 18.8832 15.2198 18.668 15.1646 18.4639C15.1095 18.2597 14.9771 18.0887 14.7895 17.9839C14.4088 17.7687 13.9233 17.9011 13.7026 18.2763C13.4488 18.7121 13.1729 19.0707 12.8915 19.3521C12.6267 19.2032 12.3674 19.0487 12.1136 18.8887C11.9646 18.7949 11.8212 18.7011 11.6833 18.6073C11.7164 18.5797 11.7495 18.5521 11.7881 18.519C11.9481 18.3811 12.0474 18.188 12.0584 17.9728C12.075 17.7632 12.0033 17.559 11.8598 17.4045C11.5674 17.079 11.0653 17.0514 10.7343 17.3328C10.5522 17.4873 10.4088 17.5811 10.3095 17.6363C9.84602 17.2832 9.43775 16.9411 9.08464 16.6101C9.71913 16.4445 10.5577 16.1301 11.4957 15.5452C11.9315 15.2749 12.4226 14.8776 12.9522 14.3645L17.1509 16.5714C17.0019 16.9466 16.8529 17.3107 16.7095 17.6418ZM17.835 14.7121C17.7909 14.828 17.7522 14.9494 17.7081 15.0652L14.0833 13.1618C14.1384 13.1011 14.1881 13.0404 14.2433 12.9797C14.784 12.3397 15.6888 12.1356 16.3895 12.4887L17.0571 12.8307C17.5977 13.1066 17.9177 13.6528 17.9177 14.2211C17.9177 14.3866 17.8902 14.5521 17.835 14.7121Z' })
            )
        ) : props.title == 'Change Divi Version' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M20.8473 9.66423L18.423 12.0885C18.2824 12.2291 18.0933 12.3018 17.9091 12.3018C17.7248 12.3018 17.5358 12.2291 17.3951 12.0885C17.1091 11.8073 17.1091 11.3418 17.3951 11.0606L18.5782 9.87756H9.66666C8.99757 9.87756 8.45454 10.4206 8.45454 11.0897V14.9685C8.45454 15.3709 8.1297 15.6957 7.72727 15.6957C7.32485 15.6957 7 15.3709 7 14.9685V11.0897C7 9.62059 8.19757 8.42301 9.66666 8.42301H18.5782L17.3951 7.23998C17.1091 6.95877 17.1091 6.49332 17.3951 6.2121C17.6812 5.92604 18.137 5.92604 18.423 6.2121L20.8473 8.63635C21.1333 8.91756 21.1333 9.38301 20.8473 9.66423Z' }),
                wp.element.createElement('path', { d: 'M21.0618 13.0305V16.9093C21.0618 18.3784 19.8642 19.5759 18.3951 19.5759H9.48363L10.6667 20.759C10.9527 21.0402 10.9527 21.5056 10.6667 21.7869C10.5261 21.9275 10.337 22.0002 10.1527 22.0002C9.96848 22.0002 9.77939 21.9275 9.63879 21.7869L7.21455 19.3626C6.92848 19.0814 6.92848 18.6159 7.21455 18.3347L9.63879 15.9105C9.92485 15.6244 10.3806 15.6244 10.6667 15.9105C10.9527 16.1917 10.9527 16.6572 10.6667 16.9384L9.48363 18.1214H18.3951C19.0642 18.1214 19.6073 17.5784 19.6073 16.9093V13.0305C19.6073 12.6281 19.9321 12.3032 20.3345 12.3032C20.737 12.3032 21.0618 12.6281 21.0618 13.0305Z' })
            )
        ) : props.title == 'Settings' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M14.3639 17.3718C13.7691 17.3718 13.1876 17.1954 12.693 16.865C12.1985 16.5345 11.813 16.0648 11.5854 15.5153C11.3577 14.9657 11.2982 14.361 11.4142 13.7776C11.5303 13.1943 11.8167 12.6584 12.2373 12.2378C12.6579 11.8172 13.1938 11.5308 13.7772 11.4147C14.3605 11.2987 14.9652 11.3582 15.5148 11.5859C16.0643 11.8135 16.534 12.199 16.8645 12.6935C17.1949 13.1881 17.3713 13.7696 17.3713 14.3644C17.3699 15.1615 17.0526 15.9257 16.4889 16.4894C15.9252 17.053 15.1611 17.3704 14.3639 17.3718ZM14.3639 12.9974C14.0935 12.9974 13.8292 13.0775 13.6044 13.2277C13.3796 13.3779 13.2044 13.5914 13.1009 13.8412C12.9975 14.091 12.9704 14.3659 13.0231 14.6311C13.0759 14.8962 13.2061 15.1398 13.3973 15.331C13.5884 15.5222 13.832 15.6524 14.0972 15.7051C14.3624 15.7579 14.6372 15.7308 14.887 15.6273C15.1368 15.5239 15.3503 15.3486 15.5005 15.1238C15.6507 14.899 15.7309 14.6347 15.7309 14.3644C15.7309 14.0018 15.5869 13.6541 15.3305 13.3977C15.0741 13.1414 14.7264 12.9974 14.3639 12.9974Z' }),
            wp.element.createElement('path', { d: 'M14.3637 23.1134H14.1231C13.5754 23.0423 13.0719 22.7757 12.7052 22.3628C12.3384 21.9498 12.1332 21.4183 12.1273 20.8661V20.7786C12.1233 20.705 12.0979 20.6343 12.0542 20.575C12.0104 20.5157 11.9503 20.4705 11.8812 20.445L11.8156 20.3794C11.7476 20.3542 11.6739 20.348 11.6026 20.3615C11.5314 20.375 11.4651 20.4076 11.411 20.456L11.2797 20.5817L11.154 20.6911C10.9264 20.8764 10.6639 21.014 10.3821 21.0957C10.1003 21.1774 9.8049 21.2016 9.51354 21.1668C9.22402 21.1417 8.94241 21.0591 8.68517 20.9239C8.42792 20.7887 8.20019 20.6036 8.01529 20.3794C7.67793 19.9429 7.50982 19.3991 7.54197 18.8484C7.57413 18.2977 7.8044 17.7772 8.19027 17.3829L8.25589 17.3173C8.30306 17.2613 8.33368 17.1932 8.3443 17.1208C8.35493 17.0483 8.34514 16.9744 8.31604 16.9072C8.29231 16.8275 8.24524 16.7568 8.18091 16.7042C8.11657 16.6515 8.03793 16.6194 7.95514 16.6119H7.80204H7.638C7.34021 16.5854 7.05075 16.4995 6.78674 16.3593C6.52273 16.219 6.28952 16.0272 6.1009 15.7953C5.91228 15.5633 5.77208 15.2959 5.68859 15.0088C5.6051 14.7218 5.58001 14.4209 5.61481 14.1239C5.68596 13.5763 5.95254 13.0727 6.36548 12.706C6.77842 12.3393 7.30994 12.134 7.86219 12.1281H7.94968C8.02366 12.123 8.09458 12.0965 8.15379 12.0518C8.21301 12.0072 8.25798 11.9463 8.28323 11.8766C8.28421 11.8583 8.28421 11.8401 8.28323 11.8219C8.31221 11.754 8.32091 11.6791 8.3083 11.6063C8.29569 11.5336 8.26229 11.466 8.21214 11.4118L8.08638 11.2805C8.0481 11.2423 8.01529 11.1985 7.98248 11.1602C7.79917 10.9301 7.66318 10.666 7.58234 10.3831C7.5015 10.1003 7.47742 9.80418 7.51147 9.51195C7.54552 9.21972 7.63703 8.93711 7.78075 8.68039C7.92446 8.42367 8.11753 8.19791 8.34884 8.01611C8.78533 7.67874 9.32911 7.51063 9.87984 7.54279C10.4306 7.57495 10.9511 7.80521 11.3453 8.19109L11.411 8.25123C11.4661 8.29988 11.5339 8.33188 11.6065 8.34349C11.6791 8.35511 11.7535 8.34587 11.8211 8.31685C11.9008 8.29148 11.9713 8.24322 12.0238 8.17807C12.0763 8.11293 12.1085 8.03379 12.1163 7.95049V7.77004C12.1163 7.72083 12.1163 7.66615 12.1163 7.61147C12.1469 7.31585 12.2359 7.02926 12.3783 6.76836C12.5206 6.50746 12.7134 6.27746 12.9454 6.09174C13.1774 5.90603 13.444 5.76829 13.7298 5.68655C14.0155 5.60482 14.3146 5.58071 14.6098 5.61563C15.1569 5.68689 15.6598 5.95367 16.0257 6.36673C16.3915 6.7798 16.5955 7.31125 16.6002 7.863V7.95049C16.6048 8.02385 16.6305 8.09431 16.6741 8.15346C16.7178 8.2126 16.7775 8.25794 16.8462 8.28404H16.9009C16.9693 8.31046 17.0436 8.31779 17.1158 8.30527C17.188 8.29275 17.2555 8.26084 17.311 8.21296L17.4422 8.08719L17.568 7.97783C17.7985 7.79482 18.0628 7.6592 18.3459 7.5788C18.629 7.4984 18.9252 7.4748 19.2175 7.50936C19.5097 7.54392 19.7922 7.63596 20.0488 7.78018C20.3053 7.92439 20.5307 8.11794 20.7121 8.34966C21.0499 8.78701 21.2182 9.33171 21.1861 9.88337C21.1539 10.435 20.9234 10.9565 20.5372 11.3516L20.4715 11.4172C20.4244 11.4732 20.3938 11.5413 20.3831 11.6137C20.3725 11.6862 20.3823 11.7602 20.4114 11.8273C20.4374 11.9067 20.4858 11.9768 20.5508 12.0292C20.6159 12.0817 20.6947 12.1141 20.7778 12.1226H20.8652C21.4149 12.1256 21.9449 12.3269 22.3578 12.6896C22.7708 13.0523 23.0388 13.552 23.1126 14.0966C23.1126 14.1786 23.1126 14.2388 23.1126 14.2934C23.1303 14.8848 22.913 15.4591 22.5081 15.8906C22.1033 16.322 21.544 16.5755 20.9527 16.5955H20.7778C20.7027 16.5988 20.6302 16.6238 20.569 16.6674C20.5079 16.7111 20.4607 16.7716 20.4333 16.8416L20.4059 16.8962C20.379 16.9649 20.3719 17.0398 20.3854 17.1123C20.399 17.1848 20.4326 17.252 20.4825 17.3064L20.6028 17.4376C20.6401 17.4753 20.6748 17.5155 20.7067 17.5579C20.8931 17.7862 21.0326 18.0492 21.117 18.3316C21.2015 18.6141 21.2293 18.9104 21.1988 19.2037C21.1683 19.4969 21.0801 19.7812 20.9394 20.0402C20.7986 20.2992 20.608 20.5279 20.3786 20.713C19.9412 21.0507 19.3965 21.219 18.8449 21.1869C18.2932 21.1547 17.7718 20.9243 17.3766 20.538L17.311 20.4724C17.255 20.4252 17.187 20.3946 17.1145 20.3839C17.0421 20.3733 16.9681 20.3831 16.9009 20.4122C16.8212 20.4359 16.7505 20.483 16.6979 20.5473C16.6452 20.6117 16.6131 20.6903 16.6056 20.7731V20.9536C16.6087 21.0082 16.6087 21.063 16.6056 21.1176C16.546 21.6691 16.2835 22.1787 15.8692 22.5475C15.4549 22.9163 14.9184 23.118 14.3637 23.1134ZM11.6789 18.739C11.9575 18.7382 12.2333 18.796 12.4882 18.9085C12.8509 19.0511 13.1644 19.296 13.3905 19.6135C13.6167 19.9309 13.7458 20.3071 13.7622 20.6966V20.8168C13.7589 20.9738 13.8124 21.1266 13.9129 21.2472C14.0134 21.3678 14.1541 21.448 14.309 21.473C14.4574 21.483 14.6041 21.4361 14.7191 21.3418C14.7809 21.2937 14.8321 21.2334 14.8697 21.1648C14.9074 21.0962 14.9305 21.0205 14.9379 20.9426V20.7075C14.9602 20.3144 15.0935 19.9356 15.3223 19.6152C15.5511 19.2947 15.866 19.0457 16.2306 18.8969C16.5951 18.7481 16.9944 18.7056 17.382 18.7745C17.7697 18.8433 18.13 19.0206 18.421 19.2858L18.503 19.3678C18.6151 19.4808 18.7641 19.5497 18.9228 19.5617C19.0815 19.5738 19.2392 19.5282 19.367 19.4334C19.4821 19.3331 19.5534 19.1917 19.5657 19.0394C19.5779 18.8872 19.5302 18.7362 19.4326 18.6187L19.285 18.4273C19.0263 18.1357 18.8547 17.7774 18.7895 17.3931C18.7244 17.0088 18.7683 16.6139 18.9164 16.2533C19.0645 15.8927 19.3108 15.581 19.6273 15.3534C19.9438 15.1258 20.3177 14.9916 20.7067 14.966H20.8981C21.0533 14.9603 21.2001 14.8943 21.3073 14.7819C21.4146 14.6696 21.4737 14.5198 21.4722 14.3645C21.4548 14.2079 21.3808 14.063 21.2639 13.9572C21.147 13.8514 20.9955 13.7921 20.8379 13.7904H20.7121C20.3186 13.769 19.9391 13.6364 19.6179 13.408C19.2967 13.1796 19.0468 12.8647 18.8974 12.5C18.7479 12.1353 18.705 11.7356 18.7736 11.3475C18.8422 10.9593 19.0196 10.5986 19.285 10.3072L19.367 10.2197C19.4817 10.1098 19.5518 9.96145 19.5639 9.80304C19.576 9.64463 19.5293 9.48733 19.4326 9.36125C19.3351 9.25263 19.2006 9.18437 19.0553 9.16987C18.9776 9.15819 18.8984 9.16337 18.8229 9.18507C18.7474 9.20677 18.6775 9.24448 18.6179 9.29564L18.4265 9.44327C18.1368 9.71004 17.7758 9.88673 17.3874 9.95178C16.999 10.0168 16.6001 9.96745 16.2393 9.80963C15.8797 9.66547 15.5688 9.42164 15.3431 9.10683C15.1174 8.79201 14.9863 8.4193 14.9652 8.03251V7.91221C14.9685 7.75528 14.915 7.60244 14.8145 7.48185C14.714 7.36127 14.5734 7.28107 14.4184 7.25605C14.3447 7.24903 14.2704 7.25704 14.1999 7.2796C14.1294 7.30215 14.0642 7.33879 14.0083 7.38728C13.8867 7.48486 13.8082 7.62619 13.7896 7.78098V8.02158C13.7727 8.41436 13.6423 8.79383 13.4143 9.11407C13.1862 9.43432 12.8702 9.68161 12.5046 9.82604C12.1438 9.98385 11.7449 10.0332 11.3565 9.96819C10.9681 9.90313 10.607 9.72644 10.3173 9.45968L10.2299 9.37766C10.1199 9.26295 9.97157 9.19282 9.81316 9.18072C9.65475 9.16861 9.49745 9.21537 9.37137 9.31204C9.25546 9.41165 9.18312 9.55267 9.16984 9.70493C9.15655 9.85719 9.20337 10.0086 9.30029 10.1268L9.44246 10.3018C9.70922 10.5914 9.88591 10.9525 9.95097 11.3409C10.016 11.7293 9.96663 12.1282 9.80882 12.489C9.66579 12.8493 9.42226 13.1609 9.10721 13.3868C8.79215 13.6126 8.41884 13.7432 8.0317 13.763H7.9114C7.75447 13.7597 7.60162 13.8132 7.48104 13.9137C7.36045 14.0142 7.28026 14.1549 7.25523 14.3099C7.24615 14.4653 7.29828 14.6182 7.40048 14.7357C7.50267 14.8532 7.64681 14.9261 7.80204 14.9387H8.02076C8.41381 14.9574 8.79311 15.0891 9.11318 15.318C9.43324 15.5469 9.68048 15.8632 9.82522 16.2291C9.98444 16.5897 10.0346 16.9889 9.96948 17.3776C9.90438 17.7663 9.72686 18.1274 9.45886 18.4164L9.37684 18.5093C9.26361 18.619 9.19442 18.7662 9.18233 18.9234C9.17024 19.0805 9.21609 19.2367 9.31122 19.3623C9.35839 19.4193 9.41663 19.4662 9.48242 19.5C9.54822 19.5339 9.62019 19.554 9.69399 19.5592C9.77073 19.5678 9.84841 19.5611 9.92255 19.5395C9.99669 19.5179 10.0658 19.4819 10.126 19.4334L10.3009 19.2858C10.6751 18.9367 11.1671 18.7414 11.6789 18.739Z' })
        ) : props.title == 'Allow More Font Types' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M11.922 19.4976C11.6633 19.4976 11.4175 19.3941 11.2364 19.213L6.78622 14.7629C6.40459 14.3812 6.40459 13.7668 6.78622 13.3916C7.16785 13.01 7.78233 13.01 8.15749 13.3916L11.922 17.1561L20.2919 8.78622C20.6735 8.40459 21.288 8.40459 21.6632 8.78622C22.0448 9.16785 22.0448 9.78233 21.6632 10.1575L12.6076 19.213C12.4265 19.3941 12.1807 19.4976 11.922 19.4976Z' })
        ) : props.title == 'Uploads' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M18.9655 21.8965H9.03448C7.36276 21.8965 6 20.5337 6 18.862V14.4482C6 13.9903 6.36966 13.6206 6.82759 13.6206C7.28552 13.6206 7.65517 13.9903 7.65517 14.4482V18.862C7.65517 19.6234 8.2731 20.2413 9.03448 20.2413H18.9655C19.7269 20.2413 20.3448 19.6234 20.3448 18.862V14.4482C20.3448 13.9903 20.7145 13.6206 21.1724 13.6206C21.6303 13.6206 22 13.9903 22 14.4482V18.862C22 20.5337 20.6372 21.8965 18.9655 21.8965Z' }),
                wp.element.createElement('path', { d: 'M17.3439 11.171C17.1839 11.331 16.9742 11.4138 16.7591 11.4138C16.5439 11.4138 16.3398 11.331 16.1742 11.171L14.828 9.82483V16.6552C14.828 17.1131 14.4584 17.4828 14.0004 17.4828C13.5425 17.4828 13.1729 17.1131 13.1729 16.6552V9.82483L11.8266 11.171C11.5066 11.4966 10.9825 11.4966 10.657 11.171C10.337 10.851 10.337 10.3214 10.657 10.0014L13.4156 7.24276C13.4929 7.16552 13.5811 7.10483 13.6804 7.06621C13.7798 7.02207 13.8901 7 14.0004 7C14.0722 7 14.1439 7.01103 14.2101 7.0331C14.2487 7.03862 14.2873 7.04966 14.3204 7.06621C14.4198 7.10483 14.5135 7.16552 14.5853 7.24276L17.3439 10.0014C17.6694 10.3214 17.6694 10.851 17.3439 11.171Z' })
            )
        ) : props.title == 'Image Attributes' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M14 22C9.58788 22 6 18.4121 6 14C6 9.58788 9.58788 6 14 6C18.4121 6 22 9.58788 22 14C22 18.4121 18.4121 22 14 22ZM14 7.45455C10.3927 7.45455 7.45455 10.3927 7.45455 14C7.45455 17.6073 10.3927 20.5455 14 20.5455C17.6073 20.5455 20.5455 17.6073 20.5455 14C20.5455 10.3927 17.6073 7.45455 14 7.45455Z' }),
                wp.element.createElement('path', { d: 'M13.9997 18.1214C13.5973 18.1214 13.2725 17.7966 13.2725 17.3942V14.0002C13.2725 13.5978 13.5973 13.2729 13.9997 13.2729C14.4022 13.2729 14.727 13.5978 14.727 14.0002V17.3942C14.727 17.7966 14.4022 18.1214 13.9997 18.1214Z' }),
                wp.element.createElement('path', { d: 'M14 12.0605C14.5355 12.0605 14.9697 11.6263 14.9697 11.0908C14.9697 10.5552 14.5355 10.1211 14 10.1211C13.4644 10.1211 13.0303 10.5552 13.0303 11.0908C13.0303 11.6263 13.4644 12.0605 14 12.0605Z' })
            )
        ) : props.title == 'Alt Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M16.0337 17.6162H13.6587C13.2564 17.6162 12.9316 17.2914 12.9316 16.8891V11.7271C12.9316 11.3248 13.2564 11 13.6587 11C14.061 11 14.3857 11.3248 14.3857 11.7271V16.1621H16.0337C16.436 16.1621 16.7608 16.4868 16.7608 16.8891C16.7608 17.2914 16.436 17.6162 16.0337 17.6162Z' }),
                wp.element.createElement('path', { d: 'M21.9996 11.7271C21.9996 12.1294 21.67 12.4541 21.2725 12.4541H20.1819V16.8891C20.1819 17.2866 19.8572 17.6162 19.4549 17.6162C19.0526 17.6162 18.7278 17.2866 18.7278 16.8891V12.4541H17.6421C17.2446 12.4541 16.915 12.1294 16.915 11.7271C16.915 11.3248 17.2446 11 17.6421 11H21.2725C21.67 11 21.9996 11.3248 21.9996 11.7271Z' }),
                wp.element.createElement('path', { d: 'M11.7877 16.5984L9.53869 11.4509C9.42236 11.1843 9.16062 11.0146 8.87465 11.0146H8.8698C8.57898 11.0195 8.31724 11.194 8.20091 11.4606L6.05853 16.6081C5.90343 16.9765 6.07792 17.403 6.45114 17.5581C6.54323 17.5969 6.63533 17.6163 6.72742 17.6163C7.01339 17.6163 7.28483 17.4466 7.40116 17.1655L8.01673 15.6872H9.80528L10.4548 17.1801C10.6147 17.5484 11.0413 17.7132 11.4096 17.5533C11.778 17.3933 11.9477 16.9619 11.7877 16.5984ZM8.6226 14.2331L8.88919 13.5933L9.17032 14.2331H8.6226Z' })
            )
        ) : props.title == 'Library' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.3565 10.8985C20.9452 10.5636 20.4177 10.4436 19.9097 10.5686L18.129 11.0134V9.75383C18.129 8.78913 17.3694 8.00437 16.4355 8.00437H15.55L15.2935 6.9547C15.1629 6.38988 14.679 6 14.1226 6H11.0065C10.4452 6 9.96129 6.38988 9.83065 6.9497L9.57419 8.00437H8.69355C7.75968 8.00437 7 8.78913 7 9.75383V15.2521C7 16.2168 7.75968 17.0016 8.69355 17.0016H14.5V18.1662C14.2048 18.0612 13.8806 18.0013 13.5323 18.0013C12.1726 18.0013 11.1129 18.881 11.1129 20.0006C11.1129 21.1203 12.1726 22 13.5323 22C14.8919 22 15.9516 21.1203 15.9516 20.0006V17.0016H16.4355C17.3694 17.0016 18.129 16.2168 18.129 15.2521V12.553L20.2435 12.0281C20.3452 12.0031 20.4226 12.0481 20.4565 12.0731C20.4903 12.1031 20.5484 12.1631 20.5484 12.268V17.6664C20.2532 17.5614 19.929 17.5014 19.5806 17.5014C18.221 17.5014 17.1613 18.3811 17.1613 19.5008C17.1613 20.6204 18.221 21.5002 19.5806 21.5002C20.9403 21.5002 22 20.6204 22 19.5008V12.268C22 11.7332 21.7629 11.2334 21.3565 10.8985ZM13.5323 20.5005C12.9468 20.5005 12.5645 20.2006 12.5645 20.0006C12.5645 19.8007 12.9468 19.5008 13.5323 19.5008C14.1177 19.5008 14.5 19.8257 14.5 20.0006C14.5 20.1756 14.1323 20.5005 13.5323 20.5005ZM16.6774 15.2521C16.6774 15.3871 16.5661 15.502 16.4355 15.502H8.69355C8.55806 15.502 8.45161 15.3871 8.45161 15.2521V9.75383C8.45161 9.61887 8.55806 9.50391 8.69355 9.50391H9.76774C10.3242 9.50391 10.8081 9.11403 10.9387 8.5542L11.1952 7.49953H13.929L14.1855 8.5542C14.321 9.11403 14.8 9.50391 15.3613 9.50391H16.4355C16.5661 9.50391 16.6774 9.61887 16.6774 9.75383V15.2521ZM20.5484 19.5008C20.5484 19.6757 20.1806 20.0006 19.5806 20.0006C18.9806 20.0006 18.6129 19.7007 18.6129 19.5008C18.6129 19.3008 18.9952 19.0009 19.5806 19.0009C20.1661 19.0009 20.5435 19.3208 20.5484 19.4958V19.5008Z' }),
                wp.element.createElement('path', { d: 'M12.5641 14.5025C11.3641 14.5025 10.3867 13.4928 10.3867 12.2532C10.3867 11.0136 11.3641 10.0039 12.5641 10.0039C13.7641 10.0039 14.7416 11.0136 14.7416 12.2532C14.7416 13.4928 13.7641 14.5025 12.5641 14.5025ZM12.5641 11.5034C12.1625 11.5034 11.8383 11.8383 11.8383 12.2532C11.8383 12.6681 12.1625 13.003 12.5641 13.003C12.9658 13.003 13.2899 12.6681 13.2899 12.2532C13.2899 11.8383 12.9658 11.5034 12.5641 11.5034Z' })
            )
        ) : props.title == 'Admin Bar' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M20.2158 16.3333H7.78424C6.8 16.3333 6 15.5333 6 14.5491V12.7794C6 11.8 6.8 11 7.78424 11H20.2206C21.2048 11 22.0048 11.8 22.0048 12.7842V14.5539C22.0048 15.5382 21.2048 16.3382 20.2206 16.3382L20.2158 16.3333ZM7.78424 12.4545C7.60485 12.4545 7.45455 12.6 7.45455 12.7842V14.5539C7.45455 14.7333 7.6 14.8836 7.78424 14.8836H20.2206C20.4 14.8836 20.5503 14.7382 20.5503 14.5539V12.7842C20.5503 12.6048 20.4048 12.4545 20.2206 12.4545H7.78424Z' })
            )
        ) : props.title == 'Editor' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.1859 9.09401L20.6776 8.59048C20.16 8.07284 19.4447 7.77637 18.7106 7.77637C17.9765 7.77637 17.2706 8.06343 16.7435 8.59048L15.2 10.134L9.6094 15.7246C9.47764 15.8564 9.40234 16.0352 9.40234 16.2234V19.6634C9.40234 20.054 9.71764 20.3693 10.1082 20.3693H13.5482C13.7365 20.3693 13.9153 20.294 14.0518 20.1622L19.6423 14.5717L21.1859 13.0281C21.7082 12.5058 22 11.8046 22 11.0611C22 10.3175 21.7082 9.62107 21.1859 9.09401ZM13.2565 18.9575H10.8141V16.5152L15.6988 11.6305L18.1412 14.0728L13.2565 18.9575ZM20.1835 12.0305L19.1435 13.0752L16.7012 10.6328L17.7412 9.58813C18.2588 9.07519 19.167 9.07519 19.68 9.58813L20.1835 10.0917C20.447 10.3505 20.5882 10.694 20.5882 11.0611C20.5882 11.4281 20.447 11.7717 20.1835 12.0305Z' }),
                wp.element.createElement('path', { d: 'M14.6306 8.41176H6.70588C6.31529 8.41176 6 8.09647 6 7.70588C6 7.31529 6.31529 7 6.70588 7H14.6306C15.0212 7 15.3365 7.31529 15.3365 7.70588C15.3365 8.09647 15.0212 8.41176 14.6306 8.41176Z' }),
                wp.element.createElement('path', { d: 'M11.3129 11.4235H6.70588C6.31529 11.4235 6 11.1082 6 10.7176C6 10.327 6.31529 10.0117 6.70588 10.0117H11.3129C11.7035 10.0117 12.0188 10.327 12.0188 10.7176C12.0188 11.1082 11.7035 11.4235 11.3129 11.4235Z' })
            )
        ) : props.title == 'Divi Library' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M6.77419 21.551C6.34581 21.551 6 21.2052 6 20.7768V6.77419C6 6.34581 6.34581 6 6.77419 6C7.20258 6 7.54839 6.34581 7.54839 6.77419V20.7768C7.54839 21.2052 7.20258 21.551 6.77419 21.551Z' }),
                wp.element.createElement('path', { d: 'M11.4461 21.551C11.0177 21.551 10.6719 21.2052 10.6719 20.7768V6.77419C10.6719 6.34581 11.0177 6 11.4461 6C11.8745 6 12.2203 6.34581 12.2203 6.77419V20.7768C12.2203 21.2052 11.8745 21.551 11.4461 21.551Z' }),
                wp.element.createElement('path', { d: 'M21.2251 21.5511C20.9309 21.5511 20.6522 21.386 20.5232 21.1021L14.6445 8.38983C14.4638 8.00274 14.6342 7.54338 15.0212 7.36274C15.4083 7.18209 15.8677 7.35241 16.0483 7.73951L21.9271 20.4518C22.1077 20.8389 21.9374 21.2982 21.5503 21.4789C21.4471 21.5253 21.3335 21.5511 21.2251 21.5511Z' })
            )
        ) : props.title == 'Post Types' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.7871 12.8073L15.1883 6.20847C14.9071 5.92726 14.4465 5.92726 14.1605 6.20847C13.8793 6.49453 13.8793 6.95513 14.1605 7.23635L14.6162 7.6921L11.6877 10.6254C11.3532 10.4509 10.9847 10.3636 10.6017 10.3636C9.97138 10.3636 9.37502 10.6109 8.92411 11.057L8.14835 11.8327C8.01259 11.9685 7.93502 12.1527 7.93502 12.3466C7.93502 12.5406 8.01259 12.7248 8.14835 12.8606L11.1253 15.8376L6.20896 20.7539C5.92774 21.04 5.92774 21.5006 6.20896 21.7818C6.34956 21.9273 6.53865 21.9951 6.7229 21.9951C6.90714 21.9951 7.09623 21.9273 7.23683 21.7818L12.1532 16.8654L15.1302 19.8424C15.2708 19.9879 15.4599 20.0557 15.6441 20.0557C15.8283 20.0557 16.0174 19.9879 16.158 19.8424L16.9338 19.0666C17.6805 18.3248 17.8259 17.2 17.3702 16.3079L20.2987 13.3745L20.7544 13.8303C20.895 13.9757 21.0841 14.0436 21.2683 14.0436C21.4526 14.0436 21.6417 13.9757 21.7823 13.8303C22.0683 13.5491 22.0683 13.0885 21.7823 12.8024L21.7871 12.8073ZM15.9108 15.7163C15.6296 16.0024 15.6296 16.463 15.9108 16.7442C16.2696 17.103 16.2696 17.6848 15.9108 18.0436L15.649 18.3054L12.672 15.3285L9.69502 12.3515L9.95683 12.0897C10.3059 11.7406 10.9071 11.7406 11.2562 12.0897C11.5423 12.3757 12.0029 12.3757 12.2841 12.0897L15.649 8.72483L19.2756 12.3515L15.9108 15.7163Z' })
            )
        ) : props.title == 'SMTP' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M20.561 7.4608C20.1 7.02583 19.4946 6.77652 18.861 6.76079C18.5582 6.71501 18.2488 6.74598 17.961 6.85082L6.09103 10.9408C5.68679 11.0726 5.33503 11.3298 5.08688 11.675C4.83873 12.0203 4.70709 12.4356 4.71102 12.8608C4.70718 13.3506 4.88321 13.8248 5.20577 14.1935C5.52834 14.5621 5.97502 14.7996 6.46102 14.8608L12.331 15.6408L13.121 21.5408C13.1867 22.0231 13.4261 22.465 13.7943 22.7835C14.1625 23.102 14.6342 23.2753 15.121 23.2708C15.5373 23.2653 15.9421 23.1332 16.2815 22.8921C16.6209 22.6509 16.8789 22.3121 17.021 21.9208L21.181 10.0108C21.2629 9.77212 21.3101 9.52291 21.321 9.2708V9.22081C21.3284 8.89005 21.2643 8.5616 21.1331 8.25786C21.002 7.95412 20.8068 7.68224 20.561 7.4608ZM19.801 9.26079C19.801 9.26079 19.801 9.40079 19.741 9.51079L15.601 21.3808C15.5641 21.4861 15.4969 21.5783 15.408 21.6459C15.3192 21.7134 15.2124 21.7534 15.101 21.7608C14.9767 21.7575 14.8575 21.7107 14.7643 21.6284C14.6711 21.5461 14.6098 21.4337 14.591 21.3108L13.781 15.2208L16.981 12.0208C17.1215 11.8802 17.2003 11.6895 17.2003 11.4908C17.2003 11.292 17.1215 11.1014 16.981 10.9608C16.8375 10.8221 16.6456 10.7446 16.446 10.7446C16.2464 10.7446 16.0546 10.8221 15.911 10.9608L12.681 14.2008L6.68099 13.4008C6.55277 13.3931 6.43274 13.3352 6.3467 13.2399C6.26067 13.1445 6.21556 13.0191 6.22103 12.8908C6.21755 12.7834 6.24872 12.6778 6.30996 12.5895C6.3712 12.5013 6.45921 12.4351 6.561 12.4008L18.461 8.30077C18.529 8.27715 18.603 8.27715 18.671 8.30077H18.871C19.118 8.30932 19.3532 8.4091 19.531 8.5808C19.6109 8.66456 19.6733 8.76339 19.7145 8.87157C19.7557 8.97975 19.7749 9.09511 19.771 9.2108L19.801 9.26079Z' })
        ) : props.title == 'Documentation' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M20.0432 10.0921L16.0347 6.21333C15.9652 6.14557 15.8824 6.09182 15.7913 6.0552C15.7001 6.01858 15.6023 5.99982 15.5036 6H9.49099C9.02588 6 8.57983 6.17879 8.25095 6.49703C7.92207 6.81528 7.7373 7.24691 7.7373 7.69697V20.303C7.7373 20.7531 7.92207 21.1847 8.25095 21.503C8.57983 21.8212 9.02588 22 9.49099 22H18.5099C18.975 22 19.4211 21.8212 19.75 21.503C20.0789 21.1847 20.2636 20.7531 20.2636 20.303V10.6061C20.2638 10.5105 20.2444 10.4159 20.2066 10.3277C20.1687 10.2395 20.1132 10.1594 20.0432 10.0921ZM16.2552 8.48243L17.6982 9.87879H16.5057C16.4393 9.87879 16.3756 9.85325 16.3286 9.80778C16.2816 9.76232 16.2552 9.70066 16.2552 9.63636V8.48243ZM18.7605 20.303C18.7605 20.3673 18.7341 20.429 18.6871 20.4745C18.6401 20.5199 18.5764 20.5455 18.5099 20.5455H9.49099C9.42455 20.5455 9.36082 20.5199 9.31384 20.4745C9.26686 20.429 9.24046 20.3673 9.24046 20.303V7.69697C9.24046 7.63268 9.26686 7.57101 9.31384 7.52555C9.36082 7.48009 9.42455 7.45455 9.49099 7.45455H14.752V9.63636C14.752 10.0864 14.9368 10.5181 15.2657 10.8363C15.5946 11.1545 16.0406 11.3333 16.5057 11.3333H18.7605V20.303Z' }),
            wp.element.createElement('path', { d: 'M16.5062 13.7578H11.4957C11.2964 13.7578 11.1052 13.6811 10.9643 13.5448C10.8233 13.4084 10.7441 13.2234 10.7441 13.0305C10.7441 12.8376 10.8233 12.6526 10.9643 12.5162C11.1052 12.3798 11.2964 12.3032 11.4957 12.3032H16.5062C16.7056 12.3032 16.8967 12.3798 17.0377 12.5162C17.1786 12.6526 17.2578 12.8376 17.2578 13.0305C17.2578 13.2234 17.1786 13.4084 17.0377 13.5448C16.8967 13.6811 16.7056 13.7578 16.5062 13.7578Z' }),
            wp.element.createElement('path', { d: 'M16.5062 16.1821H11.4957C11.2964 16.1821 11.1052 16.1055 10.9643 15.9691C10.8233 15.8327 10.7441 15.6477 10.7441 15.4548C10.7441 15.2619 10.8233 15.0769 10.9643 14.9406C11.1052 14.8042 11.2964 14.7275 11.4957 14.7275H16.5062C16.7056 14.7275 16.8967 14.8042 17.0377 14.9406C17.1786 15.0769 17.2578 15.2619 17.2578 15.4548C17.2578 15.6477 17.1786 15.8327 17.0377 15.9691C16.8967 16.1055 16.7056 16.1821 16.5062 16.1821Z' }),
            wp.element.createElement('path', { d: 'M14.502 18.6059H11.4957C11.2964 18.6059 11.1052 18.5293 10.9643 18.3929C10.8233 18.2565 10.7441 18.0715 10.7441 17.8786C10.7441 17.6858 10.8233 17.5008 10.9643 17.3644C11.1052 17.228 11.2964 17.1514 11.4957 17.1514H14.502C14.7014 17.1514 14.8925 17.228 15.0335 17.3644C15.1744 17.5008 15.2536 17.6858 15.2536 17.8786C15.2536 18.0715 15.1744 18.2565 15.0335 18.3929C14.8925 18.5293 14.7014 18.6059 14.502 18.6059Z' })
        ) : props.title == 'Temporary Support Access' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M12.1518 20.4517L12.1208 20.4826L12.0898 20.4517H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4517L12.1208 20.4826L12.0898 20.4517H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4518H12.1879C12.2137 20.4208 12.2344 20.3899 12.2447 20.3589L12.1518 20.4518ZM12.1208 20.4828L12.1518 20.4518H12.0898L12.1208 20.4828Z' }),
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M17.6526 22H12.6048C10.7932 22 9.32227 20.6684 9.32227 19.0374V16.8387C9.32227 16.4103 9.66807 16.0645 10.0965 16.0645C10.5248 16.0645 10.8707 16.4103 10.8707 16.8387V19.0374C10.8707 19.8168 11.65 20.4516 12.6048 20.4516H17.6526C18.6074 20.4516 19.3868 19.8168 19.3868 19.0374V8.96258C19.3868 8.18323 18.6074 7.54839 17.6526 7.54839H12.6048C11.65 7.54839 10.8707 8.18323 10.8707 8.96258V11.1613C10.8707 11.5897 10.5248 11.9355 10.0965 11.9355C9.66807 11.9355 9.32227 11.5897 9.32227 11.1613V8.96258C9.32227 7.33161 10.7932 6 12.6048 6H17.6526C19.4642 6 20.9352 7.33161 20.9352 8.96258V19.0374C20.9352 20.6735 19.4642 22 17.6526 22Z' }),
                wp.element.createElement('path', { d: 'M16.8065 14.0002C16.8065 14.1086 16.7858 14.2066 16.7445 14.2995C16.7084 14.3924 16.6516 14.4802 16.5794 14.5473L13.9987 17.1279C13.849 17.2776 13.6477 17.355 13.4516 17.355C13.2555 17.355 13.0542 17.2776 12.9045 17.1279C12.6 16.8286 12.6 16.3331 12.9045 16.0337L14.1639 14.7744H7.77419C7.34581 14.7744 7 14.4286 7 14.0002C7 13.5718 7.34581 13.226 7.77419 13.226H14.1639L12.9045 11.9666C12.6 11.6673 12.6 11.1718 12.9045 10.8724C13.209 10.5679 13.6942 10.5679 13.9987 10.8724L16.5794 13.4531C16.6516 13.5202 16.7084 13.6079 16.7445 13.7008C16.7858 13.7937 16.8065 13.8918 16.8065 14.0002Z' }),
                wp.element.createElement('path', { d: 'M16.5791 14.5471C16.6514 14.4748 16.7081 14.3922 16.7443 14.2993C16.7081 14.3922 16.6514 14.48 16.5791 14.5471Z' }),
                wp.element.createElement('path', { d: 'M16.7443 13.7009C16.7081 13.608 16.6514 13.5254 16.5791 13.4531C16.6514 13.5202 16.7081 13.608 16.7443 13.7009Z' })
            )
        ) : props.title == 'License Key' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M6.99023 21.75H9.49023C9.58912 21.75 9.68703 21.7303 9.77814 21.6918C9.86925 21.6534 9.95171 21.5971 10.0207 21.5262C10.0897 21.4554 10.1438 21.3714 10.1797 21.2793C10.2157 21.1872 10.233 21.0888 10.2303 20.99V20.24H10.9803C11.0791 20.2413 11.1773 20.2228 11.2689 20.1856C11.3605 20.1484 11.4437 20.0932 11.5136 20.0233C11.5835 19.9534 11.6387 19.8702 11.6759 19.7786C11.7131 19.687 11.7316 19.5889 11.7303 19.49V18.74H12.4803C12.6791 18.7398 12.8697 18.6607 13.0103 18.52L14.1102 17.43C15.38 17.8708 16.7646 17.8496 18.0203 17.37C18.7275 17.1077 19.3754 16.7073 19.9265 16.1923C20.4776 15.6773 20.9208 15.0578 21.2303 14.37C21.5415 13.6826 21.714 12.9406 21.7382 12.1865C21.7623 11.4323 21.6375 10.6808 21.371 9.97491C21.1044 9.26904 20.7013 8.62269 20.1847 8.07275C19.6681 7.52282 19.0481 7.08007 18.3602 6.76996C17.6165 6.42914 16.8083 6.25186 15.9902 6.25C14.4678 6.25263 13.0083 6.85787 11.9308 7.93347C10.8534 9.00907 10.2455 10.4675 10.2402 11.99C10.2408 12.6334 10.3489 13.2723 10.5602 13.88L6.46027 17.97C6.31957 18.1105 6.24041 18.3012 6.24023 18.5V21C6.24023 21.1989 6.31925 21.3897 6.4599 21.5303C6.60055 21.671 6.79132 21.75 6.99023 21.75ZM8.74023 20.25H7.74023L7.77026 18.81L12.0002 14.59C12.1077 14.4818 12.1796 14.3435 12.2064 14.1934C12.2332 14.0434 12.2136 13.8887 12.1503 13.75C11.9005 13.1968 11.771 12.5969 11.7703 11.99C11.7755 10.8654 12.2253 9.78844 13.0215 8.99414C13.8177 8.19984 14.8956 7.75263 16.0203 7.75C16.6239 7.75185 17.2203 7.88135 17.7703 8.13C18.2816 8.35845 18.7422 8.68661 19.1251 9.09528C19.508 9.50395 19.8055 9.98492 20.0002 10.51C20.1983 11.032 20.2906 11.5881 20.2717 12.1461C20.2528 12.704 20.1232 13.2526 19.8903 13.76C19.6601 14.2707 19.33 14.7303 18.9196 15.1115C18.5091 15.4928 18.0265 15.788 17.5002 15.98C16.9783 16.178 16.4222 16.2703 15.8642 16.2515C15.3062 16.2326 14.7576 16.1029 14.2502 15.87C14.1101 15.8107 13.9555 15.7942 13.806 15.8227C13.6565 15.8512 13.5188 15.9233 13.4103 16.03L12.1802 17.25H10.9902C10.7921 17.2526 10.6029 17.3324 10.4628 17.4725C10.3227 17.6126 10.2428 17.8019 10.2402 18V18.75H9.49023C9.29213 18.7526 9.10286 18.8324 8.96277 18.9725C8.82267 19.1126 8.74282 19.3019 8.74023 19.5V20.25ZM14.8993 13.091C15.3212 13.513 15.8935 13.75 16.4902 13.75C17.087 13.75 17.6593 13.513 18.0812 13.091C18.5032 12.669 18.7402 12.0967 18.7402 11.5C18.7402 10.9033 18.5032 10.331 18.0812 9.909C17.6593 9.48704 17.087 9.25 16.4902 9.25C15.8935 9.25 15.3212 9.48704 14.8993 9.909C14.4773 10.331 14.2402 10.9033 14.2402 11.5C14.2402 12.0967 14.4773 12.669 14.8993 13.091ZM15.9628 10.9725C16.1029 10.8324 16.2921 10.7526 16.4902 10.75C16.6891 10.75 16.8799 10.829 17.0206 10.9697C17.1612 11.1103 17.2402 11.3011 17.2402 11.5C17.2416 11.5989 17.2231 11.697 17.1859 11.7886C17.1487 11.8802 17.0935 11.9634 17.0236 12.0333C16.9536 12.1032 16.8705 12.1584 16.7789 12.1956C16.6873 12.2328 16.5891 12.2513 16.4902 12.25C16.2913 12.25 16.1006 12.171 15.9599 12.0303C15.8192 11.8897 15.7402 11.6989 15.7402 11.5C15.7428 11.3019 15.8227 11.1126 15.9628 10.9725Z' })
        ) : props.title == 'Glossary' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M21.27 6.49024H21.27C21.0599 6.49024 16.37 6.49024 14 8.21021C11.62 6.51021 6.94003 6.49024 6.72003 6.49024C6.52908 6.49024 6.3459 6.5659 6.21088 6.70093C6.07585 6.83596 6 7.01925 6 7.21021V18.8501C5.99998 19.042 6.07552 19.2262 6.21027 19.3628C6.34501 19.4994 6.52816 19.5775 6.72003 19.5801C8.13003 19.5801 12.07 19.8901 13.48 21.3001C13.5478 21.3694 13.6286 21.4246 13.7179 21.4624C13.8072 21.5002 13.9031 21.5197 14 21.52C14.0596 21.5296 14.1204 21.5296 14.18 21.52H14.28C14.3677 21.4846 14.4463 21.43 14.51 21.3601C15.93 19.9501 19.87 19.6401 21.27 19.6401C21.4636 19.6401 21.6493 19.5632 21.7862 19.4263C21.9231 19.2894 22 19.1038 22 18.9102V7.27002C22.0069 7.17004 21.9931 7.06977 21.9595 6.97534C21.9259 6.88092 21.8732 6.79437 21.8047 6.72119C21.7362 6.64802 21.6534 6.58982 21.5614 6.55005C21.4694 6.51028 21.3702 6.49 21.27 6.49024ZM7.45001 7.96021C9.09001 8.05021 11.94 8.41023 13.27 9.48023V19.4102C11.4286 18.62 9.45319 18.1889 7.45001 18.1401V7.96021ZM20.54 18.1401C18.5371 18.1911 16.5621 18.6221 14.72 19.4102V9.48023C16.06 8.41023 18.9 8.05021 20.54 7.96021V18.1401ZM16.42 12.3C16.2801 12.3001 16.1432 12.2596 16.0259 12.1833C15.9087 12.1069 15.8163 11.9981 15.76 11.87C15.7152 11.7806 15.6892 11.683 15.6837 11.5832C15.6782 11.4833 15.6933 11.3835 15.728 11.2897C15.7627 11.1959 15.8163 11.1104 15.8854 11.0382C15.9546 10.966 16.0378 10.9087 16.1299 10.87C16.989 10.5011 17.9151 10.3138 18.85 10.32C19.0418 10.3226 19.2249 10.4006 19.3597 10.5373C19.4944 10.6739 19.57 10.8581 19.5699 11.05C19.57 11.2418 19.4944 11.426 19.3597 11.5626C19.2249 11.6993 19.0418 11.7773 18.85 11.7799C18.1153 11.7712 17.3868 11.9144 16.71 12.2001C16.6216 12.2539 16.5227 12.2878 16.42 12.3ZM16.0228 14.611C16.1403 14.6893 16.2787 14.731 16.42 14.7303C16.5227 14.7182 16.6216 14.684 16.71 14.6302C17.3861 14.3411 18.1146 14.1948 18.85 14.2003C19.0409 14.2003 19.224 14.1244 19.3591 13.9894C19.4941 13.8543 19.5699 13.6713 19.5699 13.4803C19.5713 13.3849 19.5537 13.29 19.5181 13.2015C19.4825 13.113 19.4296 13.0326 19.3626 12.9647C19.2956 12.8968 19.2158 12.8428 19.1278 12.806C19.0398 12.7692 18.9454 12.7501 18.85 12.7501C17.9158 12.7405 16.9896 12.9244 16.1299 13.2902C16.0378 13.3289 15.9546 13.3862 15.8854 13.4584C15.8163 13.5306 15.7627 13.6163 15.728 13.7101C15.6933 13.8038 15.6782 13.9037 15.6837 14.0035C15.6892 14.1033 15.7152 14.2008 15.76 14.2902C15.8137 14.4208 15.9052 14.5326 16.0228 14.611ZM16.42 17.12C16.2801 17.1202 16.1432 17.0797 16.0259 17.0033C15.9087 16.927 15.8163 16.8181 15.76 16.6901C15.7152 16.6007 15.6892 16.503 15.6837 16.4032C15.6782 16.3034 15.6933 16.2035 15.728 16.1098C15.7627 16.016 15.8163 15.9303 15.8854 15.8581C15.9546 15.7859 16.0378 15.7288 16.1299 15.6901C16.989 15.3212 17.9151 15.1339 18.85 15.14C19.0418 15.1427 19.2249 15.2207 19.3597 15.3573C19.4944 15.4939 19.57 15.6781 19.5699 15.87C19.57 16.0619 19.4944 16.2461 19.3597 16.3827C19.2249 16.5193 19.0418 16.5974 18.85 16.6C18.1153 16.5913 17.3868 16.7342 16.71 17.0199C16.6216 17.0737 16.5227 17.1079 16.42 17.12ZM11.3104 10.9102L12.5204 15.76C12.549 15.8539 12.5582 15.9527 12.5472 16.0503C12.5363 16.1478 12.5055 16.2422 12.4568 16.3274C12.4081 16.4126 12.3425 16.487 12.264 16.5459C12.1855 16.6048 12.0958 16.6472 12.0004 16.6702H11.8204C11.6585 16.6674 11.5019 16.6123 11.374 16.5132C11.246 16.4141 11.1535 16.2761 11.1103 16.1201L10.9404 15.4102L9.77038 15.27L9.61034 15.8801C9.56101 16.0669 9.43965 16.2265 9.27282 16.324C9.10599 16.4215 8.90736 16.4489 8.72039 16.4002C8.53358 16.3508 8.37396 16.2293 8.27648 16.0625C8.17901 15.8957 8.15162 15.697 8.20037 15.51L9.4204 10.9102C9.4601 10.7541 9.55021 10.6156 9.67681 10.5161C9.80342 10.4166 9.95936 10.3618 10.1204 10.3601H10.6004C10.7631 10.3595 10.9213 10.4133 11.05 10.5129C11.1786 10.6126 11.2702 10.7525 11.3104 10.9102ZM10.3504 13.0801L10.1504 13.8501L10.5604 13.9002L10.3504 13.0801Z' })
        ) : props.title == 'Tutorials' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M14.0202 8.22092C13.6797 8.22092 13.4033 7.94454 13.4033 7.604V6.61692C13.4033 6.27638 13.6797 6 14.0202 6C14.3608 6 14.6372 6.27638 14.6372 6.61692V7.604C14.6372 7.94454 14.3608 8.22092 14.0202 8.22092Z' }),
                wp.element.createElement('path', { d: 'M9.4795 10.0965C9.32156 10.0965 9.16363 10.0372 9.04518 9.91386L8.35423 9.22291C8.11239 8.98107 8.11239 8.59118 8.35423 8.34934C8.59606 8.10751 8.98596 8.10751 9.22779 8.34934L9.91874 9.0403C10.1606 9.28213 10.1606 9.67203 9.91874 9.91386C9.8003 10.0323 9.64236 10.0965 9.48443 10.0965H9.4795Z' }),
                wp.element.createElement('path', { d: 'M7.604 14.6372H6.61692C6.27638 14.6372 6 14.3608 6 14.0202C6 13.6797 6.27638 13.4033 6.61692 13.4033H7.604C7.94454 13.4033 8.22092 13.6797 8.22092 14.0202C8.22092 14.3608 7.94454 14.6372 7.604 14.6372Z' }),
                wp.element.createElement('path', { d: 'M8.78854 19.8684C8.63061 19.8684 8.47268 19.8092 8.35423 19.6858C8.11239 19.444 8.11239 19.0541 8.35423 18.8123L9.04518 18.1213C9.28701 17.8795 9.67691 17.8795 9.91874 18.1213C10.1606 18.3632 10.1606 18.753 9.91874 18.9949L9.22779 19.6858C9.10934 19.8043 8.95141 19.8684 8.79348 19.8684H8.78854Z' }),
                wp.element.createElement('path', { d: 'M19.251 19.8684C19.093 19.8684 18.9351 19.8092 18.8167 19.6858L18.1257 18.9949C17.8839 18.753 17.8839 18.3632 18.1257 18.1213C18.3675 17.8795 18.7574 17.8795 18.9993 18.1213L19.6902 18.8123C19.9321 19.0541 19.9321 19.444 19.6902 19.6858C19.5718 19.8043 19.4138 19.8684 19.2559 19.8684H19.251Z' }),
                wp.element.createElement('path', { d: 'M21.4233 14.6372H20.4363C20.0957 14.6372 19.8193 14.3608 19.8193 14.0202C19.8193 13.6797 20.0957 13.4033 20.4363 13.4033H21.4233C21.7639 13.4033 22.0403 13.6797 22.0403 14.0202C22.0403 14.3608 21.7639 14.6372 21.4233 14.6372Z' }),
                wp.element.createElement('path', { d: 'M18.56 10.0965C18.4021 10.0965 18.2442 10.0372 18.1257 9.91386C17.8839 9.67203 17.8839 9.28213 18.1257 9.0403L18.8167 8.34934C19.0585 8.10751 19.4484 8.10751 19.6902 8.34934C19.9321 8.59118 19.9321 8.98107 19.6902 9.22291L18.9993 9.91386C18.8808 10.0323 18.7229 10.0965 18.565 10.0965H18.56Z' }),
                wp.element.createElement('path', { d: 'M14.0202 8.96143H13.8475C11.138 9.07494 8.97133 11.2712 8.91211 13.9708C8.91211 15.4811 9.59813 16.937 10.7431 17.8797C10.8863 18.0327 10.8863 18.1314 10.8863 18.1659V18.7828C10.827 20.3918 12.0411 21.7984 13.6599 21.9859C13.7685 22.0007 13.882 22.0056 13.9956 22.0056C14.6816 22.0056 15.3528 21.7687 15.9006 21.3246C16.557 20.8014 16.9617 20.0512 17.0555 19.2172V18.1659C17.0555 18.1314 17.0555 18.0376 17.1937 17.8895C18.3782 17.0061 19.079 15.565 19.079 14.0202C19.079 11.2317 16.8087 8.96143 14.0202 8.96143ZM15.1307 20.3622C14.7457 20.6731 14.2719 20.8113 13.7981 20.7619C13.0973 20.683 12.5149 20.2042 12.2583 19.5725H15.7081C15.5897 19.8785 15.3923 20.1499 15.1307 20.3622ZM16.4238 16.9271L16.3497 16.9864C16.0043 17.3318 15.8216 17.7415 15.8216 18.1659V18.3387H12.1201V18.1659C12.1201 17.7415 11.9375 17.3318 11.597 16.9864C11.5822 16.9716 11.5624 16.9567 11.5476 16.9469C10.6691 16.2362 10.146 15.1257 10.146 13.9807C10.1904 11.9424 11.8388 10.2792 13.8722 10.1953H14.0202C16.1671 10.1953 17.8452 11.8733 17.8452 14.0202C17.8452 15.1899 17.3121 16.2757 16.4238 16.9271Z' })
            )
        ) : props.title == 'Courses' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.3796 12.8098C21.6423 12.6995 21.8658 12.5129 22.021 12.2739C22.1761 12.035 22.2558 11.7548 22.2496 11.47C22.2591 11.1778 22.1763 10.8901 22.013 10.6477C21.8496 10.4053 21.614 10.2206 21.3396 10.1199L14.6396 6.94995C14.4361 6.84867 14.2119 6.7959 13.9846 6.7959C13.7573 6.7959 13.5331 6.84867 13.3296 6.94995L6.6196 10.1299C6.35527 10.2408 6.13072 10.4292 5.97543 10.6702C5.82015 10.9111 5.74141 11.1934 5.7496 11.48C5.74222 11.7704 5.82607 12.0558 5.98929 12.2961C6.15251 12.5365 6.38694 12.7196 6.65964 12.8198L9.37961 14.1099L8.75961 18.3699C8.73469 18.5331 8.76429 18.6998 8.84384 18.8445C8.92339 18.9891 9.04846 19.1036 9.19962 19.1699C9.80962 19.4299 12.8996 20.73 13.9996 20.73C15.0996 20.73 18.1896 19.4299 18.7996 19.1699C18.9507 19.1036 19.0758 18.9891 19.1554 18.8445C19.2349 18.6998 19.2645 18.5331 19.2396 18.3699L18.6196 14.1299L19.7496 13.5999V18.98C19.5932 19.0953 19.4663 19.2459 19.3794 19.4197C19.2925 19.5935 19.248 19.7856 19.2496 19.98C19.2496 20.3115 19.3813 20.6293 19.6158 20.8638C19.8502 21.0982 20.1681 21.23 20.4996 21.23C20.8311 21.23 21.1491 21.0982 21.3835 20.8638C21.6179 20.6293 21.7496 20.3115 21.7496 19.98C21.7488 19.7861 21.7033 19.5948 21.6166 19.4214C21.5299 19.2479 21.4043 19.0969 21.2496 18.98V12.8799L21.3796 12.8098ZM13.9996 19.22C12.736 18.9463 11.5056 18.537 10.3296 17.9998L10.7996 14.7698L13.3596 15.9897C13.569 16.0889 13.7979 16.1403 14.0296 16.1399C14.2504 16.1388 14.4685 16.0909 14.6696 15.9998L17.2096 14.7898L17.6696 17.9998C16.4937 18.537 15.2632 18.9463 13.9996 19.22ZM17.5596 12.96L17.3796 13.0498L14.0196 14.6399L7.29959 11.46L13.9796 8.2998L20.6996 11.48L17.5596 12.96Z' })
        ) : props.title == 'Share System Report' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M17 15.25C16.5503 15.2478 16.1052 15.3401 15.6935 15.521C15.2818 15.7019 14.9126 15.9674 14.61 16.3L12.12 14.8999C12.2037 14.6071 12.2474 14.3045 12.25 14C12.2483 13.6987 12.2045 13.3993 12.12 13.1101L14.61 11.7C14.9126 12.0326 15.2818 12.2981 15.6935 12.479C16.1052 12.6599 16.5503 12.7522 17 12.75C17.8611 12.7474 18.6863 12.4041 19.2952 11.7952C19.9041 11.1862 20.2474 10.3611 20.25 9.5C20.2474 8.63886 19.9041 7.81376 19.2952 7.20483C18.6863 6.59591 17.8611 6.25264 17 6.25C16.138 6.25 15.3114 6.59241 14.7019 7.2019C14.0924 7.8114 13.75 8.63805 13.75 9.5C13.7485 9.8008 13.7889 10.1002 13.87 10.3899L11.38 11.8C11.0789 11.4681 10.7115 11.2031 10.3015 11.0222C9.89153 10.8413 9.44811 10.7486 9 10.75C8.13805 10.75 7.3114 11.0924 6.7019 11.7019C6.09241 12.3114 5.75 13.138 5.75 14C5.75 14.862 6.09241 15.6886 6.7019 16.2981C7.3114 16.9076 8.13805 17.25 9 17.25C9.44811 17.2514 9.89153 17.1587 10.3015 16.9778C10.7115 16.7969 11.0789 16.5319 11.38 16.2L13.87 17.6101C13.7889 17.8998 13.7485 18.1992 13.75 18.5C13.75 19.362 14.0924 20.1886 14.7019 20.7981C15.3114 21.4076 16.138 21.75 17 21.75C17.8611 21.7474 18.6863 21.4041 19.2952 20.7952C19.9041 20.1862 20.2474 19.3611 20.25 18.5C20.2474 17.6389 19.9041 16.8138 19.2952 16.2048C18.6863 15.5959 17.8611 15.2526 17 15.25ZM17 7.75C17.4633 7.75263 17.9069 7.93776 18.2346 8.26538C18.5622 8.593 18.7474 9.03668 18.75 9.5C18.7474 9.96332 18.5622 10.407 18.2346 10.7346C17.9069 11.0622 17.4633 11.2474 17 11.25C16.5359 11.25 16.0908 11.0657 15.7626 10.7375C15.4344 10.4094 15.25 9.96413 15.25 9.5C15.25 9.03587 15.4344 8.59064 15.7626 8.26245C16.0908 7.93426 16.5359 7.75 17 7.75ZM9 15.75C8.53587 15.75 8.09076 15.5657 7.76257 15.2375C7.43438 14.9094 7.25 14.4641 7.25 14C7.25 13.5359 7.43438 13.0906 7.76257 12.7625C8.09076 12.4343 8.53587 12.25 9 12.25C9.30942 12.2507 9.61311 12.3334 9.88013 12.4897C10.1471 12.6461 10.368 12.8704 10.52 13.1399C10.6561 13.3955 10.7282 13.6804 10.73 13.97C10.7321 14.2721 10.6526 14.5693 10.5 14.8301C10.3535 15.1022 10.1376 15.3306 9.87408 15.4922C9.61061 15.6538 9.309 15.7428 9 15.75ZM17 20.25C16.5359 20.25 16.0908 20.0657 15.7626 19.7375C15.4344 19.4094 15.25 18.9641 15.25 18.5C15.25 18.0359 15.4344 17.5906 15.7626 17.2625C16.0908 16.9343 16.5359 16.75 17 16.75C17.4633 16.7526 17.9069 16.9378 18.2346 17.2654C18.5622 17.593 18.7474 18.0367 18.75 18.5C18.7474 18.9633 18.5622 19.407 18.2346 19.7346C17.9069 20.0622 17.4633 20.2474 17 20.25Z' })
        ) : props.title == 'Custom Quick Links Builder' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17.9996 15.25C17.901 15.251 17.8032 15.232 17.7121 15.1942C17.621 15.1564 17.5386 15.1006 17.4697 15.03C17.3989 14.9611 17.3427 14.8786 17.3043 14.7876C17.2659 14.6966 17.2461 14.5988 17.2461 14.5C17.2461 14.4012 17.2659 14.3034 17.3043 14.2124C17.3427 14.1214 17.3989 14.0389 17.4697 13.97L19.5797 11.85C19.793 11.6419 19.9623 11.3931 20.0774 11.1182C20.1925 10.8433 20.2511 10.548 20.2496 10.25C20.2511 9.952 20.1925 9.65674 20.0774 9.38185C19.9623 9.10697 19.793 8.85811 19.5797 8.65004L19.3497 8.42006C19.1402 8.20851 18.8911 8.04041 18.6165 7.92543C18.3419 7.81045 18.0473 7.75082 17.7496 7.75002C17.147 7.74962 16.5686 7.98679 16.1396 8.41005L14.0297 10.53C13.889 10.6705 13.6984 10.7494 13.4996 10.7494C13.3009 10.7494 13.1103 10.6705 12.9697 10.53C12.8989 10.4611 12.8427 10.3786 12.8043 10.2876C12.7659 10.1966 12.7461 10.0988 12.7461 10C12.7461 9.90122 12.7659 9.80344 12.8043 9.71242C12.8427 9.62139 12.8989 9.53893 12.9697 9.46999L15.0797 7.34999C15.4306 7.00017 15.847 6.72294 16.3052 6.5342C16.7633 6.34545 17.2541 6.24891 17.7496 6.25002C18.2437 6.24858 18.7331 6.34503 19.1897 6.53383C19.6463 6.72263 20.0609 7.00003 20.4097 7.34999L20.6396 7.57997C20.9926 7.92907 21.2726 8.34495 21.4631 8.80336C21.6537 9.26177 21.7511 9.75357 21.7496 10.25C21.752 10.7451 21.655 11.2356 21.4643 11.6925C21.2736 12.1494 20.9932 12.5635 20.6396 12.91L18.5297 15.03C18.4604 15.1002 18.3779 15.1557 18.2869 15.1935C18.1959 15.2313 18.0982 15.2505 17.9996 15.25ZM10.25 21.7499C9.75453 21.751 9.26371 21.6544 8.80557 21.4657C8.34743 21.277 7.93097 20.9997 7.58005 20.6499L7.35007 20.4199C7.00025 20.069 6.72302 19.6525 6.53427 19.1943C6.34552 18.7362 6.24892 18.2454 6.25003 17.7499C6.24805 17.2557 6.34428 16.7661 6.53311 16.3094C6.72195 15.8528 6.99966 15.4383 7.35007 15.0898L9.47006 12.9698C9.61069 12.8294 9.80128 12.7505 10 12.7505C10.1988 12.7505 10.3894 12.8294 10.5301 12.9698C10.6705 13.1105 10.7494 13.3011 10.7494 13.4999C10.7494 13.6986 10.6705 13.8893 10.5301 14.0299L8.41006 16.1499C8.19806 16.3585 8.03031 16.6076 7.9169 16.8826C7.80349 17.1575 7.74673 17.4525 7.75003 17.7499C7.74673 18.0473 7.80349 18.3423 7.9169 18.6172C8.03031 18.8921 8.19806 19.1413 8.41006 19.3499L8.64004 19.5798C8.85066 19.7926 9.10145 19.9614 9.37784 20.0764C9.65422 20.1914 9.95067 20.2504 10.25 20.2499C10.8492 20.2477 11.4236 20.0107 11.8501 19.5898L13.9701 17.4698C14.1107 17.3294 14.3013 17.2505 14.5 17.2505C14.6988 17.2505 14.8894 17.3294 15.0301 17.4698C15.1705 17.6105 15.2494 17.8011 15.2494 17.9999C15.2494 18.1986 15.1705 18.3893 15.0301 18.5299L12.9101 20.6499C12.5613 20.9999 12.1467 21.2773 11.6901 21.4661C11.2335 21.6549 10.7441 21.7513 10.25 21.7499ZM11.2121 17.1941C11.3032 17.2319 11.401 17.2509 11.4996 17.2499C11.5982 17.2503 11.6959 17.2311 11.7869 17.1934C11.8779 17.1556 11.9604 17.1 12.0297 17.0299L17.0297 12.0299C17.1701 11.8893 17.249 11.6986 17.249 11.4999C17.249 11.3011 17.1701 11.1105 17.0297 10.9698C16.889 10.8294 16.6984 10.7505 16.4996 10.7505C16.3009 10.7505 16.1103 10.8294 15.9697 10.9698L10.9697 15.9698C10.8989 16.0388 10.8427 16.1213 10.8043 16.2123C10.7659 16.3033 10.7461 16.4011 10.7461 16.4999C10.7461 16.5987 10.7659 16.6964 10.8043 16.7875C10.8427 16.8785 10.8989 16.961 10.9697 17.0299C11.0386 17.1005 11.121 17.1563 11.2121 17.1941Z' })
        ) : props.title == 'Replace Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M16.5185 12.1219V12.7854C16.5185 13.1713 16.2032 13.4913 15.8126 13.4913C15.422 13.4913 15.135 13.1995 15.1068 12.8278H14.7068V16.1501C14.9044 16.2725 15.0362 16.4937 15.0362 16.7431C15.0362 17.1337 14.7162 17.449 14.3303 17.449H13.6668C13.2809 17.449 12.9609 17.1337 12.9609 16.7431C12.9609 16.489 13.0973 16.2678 13.295 16.1501V12.8278H12.8903C12.862 13.1995 12.5562 13.4913 12.1844 13.4913C11.7938 13.4913 11.4785 13.1713 11.4785 12.7854V12.1219C11.4785 11.736 11.7938 11.416 12.1844 11.416H15.8126C16.2032 11.416 16.5185 11.736 16.5185 12.1219Z' }),
                wp.element.createElement('path', { d: 'M21.7932 14.6633L20.1932 16.2586L20.1696 16.2822C20.1696 16.2822 20.1649 16.2822 20.1602 16.2916C20.1367 16.3151 20.1085 16.3386 20.0755 16.3622C20.0332 16.3951 19.9814 16.4233 19.9296 16.4422C19.892 16.4563 19.8496 16.4704 19.8073 16.4751C19.7649 16.4845 19.7179 16.4892 19.6708 16.4892C19.6238 16.4892 19.5767 16.4845 19.5344 16.4751C19.4873 16.4657 19.4402 16.4563 19.4026 16.4374H19.3979C19.3555 16.4186 19.3179 16.3951 19.2802 16.3716C19.2426 16.348 19.2049 16.3151 19.172 16.2822L19.1579 16.268L17.8214 14.9316C17.5438 14.6586 17.5438 14.2116 17.8214 13.9339C18.0991 13.661 18.5461 13.661 18.8191 13.9339L19.0826 14.1974C18.9838 12.9786 18.4426 11.7692 17.5532 10.8798C15.5908 8.92215 12.4049 8.92215 10.4426 10.8798C10.1696 11.1574 9.72259 11.1574 9.44494 10.8798C9.172 10.6069 9.172 10.1598 9.44494 9.88215C11.9579 7.37392 16.0379 7.37392 18.5508 9.88215C19.6661 11.0022 20.3391 12.4657 20.4802 13.9763L20.7908 13.6657C21.0685 13.388 21.5155 13.388 21.7932 13.6657C22.0661 13.9386 22.0661 14.3857 21.7932 14.6633Z' }),
                wp.element.createElement('path', { d: 'M19.4023 16.4375C19.44 16.4563 19.487 16.4657 19.5341 16.4751H19.5153C19.4776 16.4657 19.44 16.4516 19.4023 16.4375Z' }),
                wp.element.createElement('path', { d: 'M8.48374 12.3952C8.52138 12.4046 8.55903 12.414 8.59197 12.4328C8.38491 12.3481 8.14021 12.367 7.94727 12.4893C8.09785 12.3905 8.2908 12.3481 8.48374 12.3952Z' }),
                wp.element.createElement('path', { d: 'M8.81848 12.5785C8.74789 12.5126 8.6726 12.4656 8.58789 12.4326C8.6773 12.4609 8.7573 12.5126 8.81848 12.5785Z' }),
                wp.element.createElement('path', { d: 'M18.5549 18.9834C17.2984 20.2399 15.6514 20.8658 14.0043 20.8658C12.3572 20.8658 10.7055 20.2399 9.44901 18.9834C8.33372 17.8681 7.66078 16.3999 7.5196 14.8893L7.20901 15.2046C7.06784 15.3411 6.88901 15.4117 6.71019 15.4117C6.53136 15.4117 6.34784 15.3411 6.20666 15.2046C5.93372 14.927 5.93372 14.4799 6.20666 14.207L7.83019 12.5834C7.86313 12.5505 7.89607 12.5222 7.93372 12.4987C7.93842 12.494 7.94313 12.4893 7.94784 12.4893C8.14078 12.367 8.38548 12.3481 8.59254 12.4328C8.67725 12.4658 8.75254 12.5128 8.82313 12.5787H8.82784L8.88431 12.6446L10.1784 13.934C10.4561 14.2117 10.4561 14.6587 10.1784 14.9317C9.90078 15.2093 9.45372 15.2093 9.18078 14.9317L8.91725 14.6681C9.01607 15.887 9.55725 17.0964 10.4467 17.9858C12.409 19.9481 15.5949 19.9481 17.5572 17.9858C17.8302 17.7128 18.2772 17.7128 18.5549 17.9858C18.8278 18.2634 18.8278 18.7105 18.5549 18.9834Z' })
            )
        ) : props.title == 'Local Fonts' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M16.8231 6.78935C17.7163 7.30347 18.4589 8.05128 18.9783 8.9445C19.4924 9.83772 19.7624 10.8556 19.7624 11.8838C19.752 13.0159 19.4301 14.1168 18.8328 15.0672C17.7735 16.8277 15.0471 20.8627 14.5122 21.6521C14.3668 21.8754 14.1279 22 13.8838 22C13.6397 22 13.406 21.8754 13.271 21.6676C12.9438 21.1847 10.0409 16.89 8.93476 15.0672C8.33755 14.1168 8.01558 13.0159 8 11.8838C8 10.3103 8.61279 8.83544 9.72412 7.72412C10.8354 6.61279 12.3103 6 13.8838 6C14.912 6 15.9299 6.27524 16.8231 6.78935ZM17.5605 14.2986H17.5657C18.0227 13.5716 18.272 12.7407 18.2824 11.8838C18.2824 10.7102 17.8254 9.60402 16.9945 8.77313C16.1636 7.94223 15.0626 7.48523 13.8838 7.48523C12.705 7.48523 11.604 7.94223 10.7731 8.77313C9.94223 9.60402 9.48004 10.7102 9.48004 11.8838C9.49562 12.7407 9.74489 13.5716 10.2019 14.2986C11.0328 15.6696 12.9387 18.5206 13.8838 19.9279C14.829 18.5206 16.7348 15.6696 17.5605 14.2986ZM15.4054 9.23531C15.8676 9.50016 16.2519 9.88445 16.5219 10.3466C16.7868 10.8088 16.927 11.3385 16.927 11.8734C16.927 12.6835 16.6102 13.4469 16.0338 14.0234C15.4625 14.5998 14.6991 14.9166 13.8838 14.9166C13.0685 14.9166 12.3051 14.5998 11.7287 14.0234C11.1522 13.4469 10.8354 12.6887 10.8354 11.8734C10.8354 11.0581 11.1522 10.2947 11.7287 9.71827C12.3051 9.14184 13.0685 8.82506 13.8838 8.82506C14.4187 8.82506 14.9432 8.96527 15.4054 9.23531ZM12.3207 11.8734C12.3207 12.2889 12.4817 12.6835 12.7777 12.9796C13.3593 13.5612 14.4083 13.5612 14.9899 12.9796C15.2859 12.6835 15.4469 12.2941 15.4469 11.8734C15.4469 11.4528 15.2859 11.0581 14.9899 10.7673C14.6991 10.4765 14.2993 10.3051 13.8838 10.3051C13.4684 10.3051 13.0685 10.4765 12.7777 10.7673C12.4817 11.0581 12.3207 11.458 12.3207 11.8734Z' })
        ) : props.title == 'Global Colors Manager' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M12.1518 20.4517L12.1208 20.4826L12.0898 20.4517H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4517L12.1208 20.4826L12.0898 20.4517H12.1518Z' }),
            wp.element.createElement('path', { d: 'M12.1518 20.4518H12.1879C12.2137 20.4208 12.2344 20.3899 12.2447 20.3589L12.1518 20.4518ZM12.1208 20.4828L12.1518 20.4518H12.0898L12.1208 20.4828Z' }),
            wp.element.createElement('path', { d: 'M21.2258 15.2903H17.3445L20.6374 12.0181C20.7819 11.8735 20.8645 11.6774 20.8645 11.471C20.8645 11.2645 20.7819 11.0684 20.6374 10.9239L16.9729 7.25935C16.8284 7.11484 16.6323 7.03226 16.4258 7.03226C16.2194 7.03226 16.0232 7.11484 15.8787 7.25935L12.7097 10.4284V6.77419C12.7097 6.34581 12.3639 6 11.9355 6H6.77419C6.34581 6 6 6.34581 6 6.77419V18.6452C6 20.529 7.47097 22 9.35484 22H21.2258C21.6542 22 22 21.6542 22 21.2258V16.0645C22 15.6361 21.6542 15.2903 21.2258 15.2903ZM11.1613 18.6452C11.1613 19.6568 10.3665 20.4516 9.35484 20.4516C8.34323 20.4516 7.54839 19.6568 7.54839 18.6452V7.54839H11.1613V18.6452ZM12.7097 12.6168L16.4258 8.90065L18.991 11.471L12.7097 17.7161V12.6168ZM20.4516 20.4516H12.1523L12.1213 20.4826L12.0903 20.4516H12.1523L12.2452 20.3587L15.7858 16.8387H20.4516V20.4516Z' }),
            wp.element.createElement('path', { d: 'M9.35452 19.6773C9.92462 19.6773 10.3868 19.2152 10.3868 18.6451C10.3868 18.075 9.92462 17.6128 9.35452 17.6128C8.78442 17.6128 8.32227 18.075 8.32227 18.6451C8.32227 19.2152 8.78442 19.6773 9.35452 19.6773Z' })
        ) : props.title == 'Heading Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M20.8 21.2C20.8 21.6427 20.4373 22 20 22H17.8667C17.424 22 17.0667 21.6427 17.0667 21.2C17.0667 20.7573 17.424 20.4 17.8667 20.4H18.1333V14.2667H10.6667V20.4H10.9333C11.3707 20.4 11.7333 20.7573 11.7333 21.2C11.7333 21.6427 11.3707 22 10.9333 22H8.8C8.35733 22 8 21.6427 8 21.2C8 20.7573 8.35733 20.4 8.8 20.4H9.06667V7.6H8.8C8.35733 7.6 8 7.24267 8 6.8C8 6.35733 8.35733 6 8.8 6H10.9333C11.3707 6 11.7333 6.35733 11.7333 6.8C11.7333 7.24267 11.3707 7.6 10.9333 7.6H10.6667V12.6667H18.1333V7.6H17.8667C17.424 7.6 17.0667 7.24267 17.0667 6.8C17.0667 6.35733 17.424 6 17.8667 6H20C20.4373 6 20.8 6.35733 20.8 6.8C20.8 7.24267 20.4373 7.6 20 7.6H19.7333V20.4H20C20.4373 20.4 20.8 20.7573 20.8 21.2Z' })
        ) : props.title == 'Body Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M20.2501 7.99976V9.99976C20.2501 10.1987 20.1711 10.3895 20.0304 10.5302C19.8898 10.6708 19.699 10.7498 19.5001 10.7498C19.4012 10.7511 19.3031 10.7326 19.2115 10.6954C19.1199 10.6582 19.0367 10.603 18.9667 10.5331C18.8968 10.4632 18.8417 10.3799 18.8045 10.2883C18.7672 10.1967 18.7487 10.0986 18.7501 9.99976V8.75977H14.7501V21.2598H15.0001C15.1982 21.2624 15.3874 21.3422 15.5275 21.4823C15.6676 21.6224 15.7475 21.8117 15.7501 22.0098C15.7501 22.2087 15.6711 22.3994 15.5304 22.54C15.3898 22.6807 15.199 22.7598 15.0001 22.7598H13.0001C12.9012 22.7611 12.8031 22.7427 12.7115 22.7054C12.6199 22.6682 12.5367 22.613 12.4667 22.5431C12.3968 22.4732 12.3417 22.3899 12.3045 22.2983C12.2672 22.2067 12.2487 22.1086 12.2501 22.0098C12.2501 21.8109 12.3291 21.6201 12.4697 21.4795C12.6104 21.3388 12.8012 21.2598 13.0001 21.2598H13.2501V8.75977H9.25007V10.0098C9.25007 10.2087 9.17106 10.3994 9.0304 10.54C8.88975 10.6807 8.69898 10.7598 8.50007 10.7598C8.4012 10.7611 8.3031 10.7427 8.21149 10.7054C8.11989 10.6682 8.03666 10.613 7.96674 10.5431C7.89683 10.4732 7.84167 10.3899 7.80445 10.2983C7.76724 10.2067 7.74872 10.1086 7.75007 10.0098V8.00977C7.75007 7.81085 7.82908 7.62014 7.96973 7.47949C8.11039 7.33884 8.30116 7.25977 8.50007 7.25977H19.5001C19.6965 7.26228 19.8843 7.3408 20.0241 7.47876C20.1639 7.61672 20.2449 7.8034 20.2501 7.99976Z' })
        ) : props.title == 'Link Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17.9996 15.25C17.901 15.251 17.8032 15.232 17.7121 15.1942C17.621 15.1564 17.5386 15.1006 17.4697 15.03C17.3989 14.9611 17.3427 14.8786 17.3043 14.7876C17.2659 14.6966 17.2461 14.5988 17.2461 14.5C17.2461 14.4012 17.2659 14.3034 17.3043 14.2124C17.3427 14.1214 17.3989 14.0389 17.4697 13.97L19.5797 11.85C19.793 11.6419 19.9623 11.3931 20.0774 11.1182C20.1925 10.8433 20.2511 10.548 20.2496 10.25C20.2511 9.952 20.1925 9.65674 20.0774 9.38185C19.9623 9.10697 19.793 8.85811 19.5797 8.65004L19.3497 8.42006C19.1402 8.20851 18.8911 8.04041 18.6165 7.92543C18.3419 7.81045 18.0473 7.75082 17.7496 7.75002C17.147 7.74962 16.5686 7.98679 16.1396 8.41005L14.0297 10.53C13.889 10.6705 13.6984 10.7494 13.4996 10.7494C13.3009 10.7494 13.1103 10.6705 12.9697 10.53C12.8989 10.4611 12.8427 10.3786 12.8043 10.2876C12.7659 10.1966 12.7461 10.0988 12.7461 10C12.7461 9.90122 12.7659 9.80344 12.8043 9.71242C12.8427 9.62139 12.8989 9.53893 12.9697 9.46999L15.0797 7.34999C15.4306 7.00017 15.847 6.72294 16.3052 6.5342C16.7633 6.34545 17.2541 6.24891 17.7496 6.25002C18.2437 6.24858 18.7331 6.34503 19.1897 6.53383C19.6463 6.72263 20.0609 7.00003 20.4097 7.34999L20.6396 7.57997C20.9926 7.92907 21.2726 8.34495 21.4631 8.80336C21.6537 9.26177 21.7511 9.75357 21.7496 10.25C21.752 10.7451 21.655 11.2356 21.4643 11.6925C21.2736 12.1494 20.9932 12.5635 20.6396 12.91L18.5297 15.03C18.4604 15.1002 18.3779 15.1557 18.2869 15.1935C18.1959 15.2313 18.0982 15.2505 17.9996 15.25ZM10.25 21.7499C9.75453 21.751 9.26371 21.6544 8.80557 21.4657C8.34743 21.277 7.93097 20.9997 7.58005 20.6499L7.35007 20.4199C7.00025 20.069 6.72302 19.6525 6.53427 19.1943C6.34552 18.7362 6.24892 18.2454 6.25003 17.7499C6.24805 17.2557 6.34428 16.7661 6.53311 16.3094C6.72195 15.8528 6.99966 15.4383 7.35007 15.0898L9.47006 12.9698C9.61069 12.8294 9.80128 12.7505 10 12.7505C10.1988 12.7505 10.3894 12.8294 10.5301 12.9698C10.6705 13.1105 10.7494 13.3011 10.7494 13.4999C10.7494 13.6986 10.6705 13.8893 10.5301 14.0299L8.41006 16.1499C8.19806 16.3585 8.03031 16.6076 7.9169 16.8826C7.80349 17.1575 7.74673 17.4525 7.75003 17.7499C7.74673 18.0473 7.80349 18.3423 7.9169 18.6172C8.03031 18.8921 8.19806 19.1413 8.41006 19.3499L8.64004 19.5798C8.85066 19.7926 9.10145 19.9614 9.37784 20.0764C9.65422 20.1914 9.95067 20.2504 10.25 20.2499C10.8492 20.2477 11.4236 20.0107 11.8501 19.5898L13.9701 17.4698C14.1107 17.3294 14.3013 17.2505 14.5 17.2505C14.6988 17.2505 14.8894 17.3294 15.0301 17.4698C15.1705 17.6105 15.2494 17.8011 15.2494 17.9999C15.2494 18.1986 15.1705 18.3893 15.0301 18.5299L12.9101 20.6499C12.5613 20.9999 12.1467 21.2773 11.6901 21.4661C11.2335 21.6549 10.7441 21.7513 10.25 21.7499ZM11.2121 17.1941C11.3032 17.2319 11.401 17.2509 11.4996 17.2499C11.5982 17.2503 11.6959 17.2311 11.7869 17.1934C11.8779 17.1556 11.9604 17.1 12.0297 17.0299L17.0297 12.0299C17.1701 11.8893 17.249 11.6986 17.249 11.4999C17.249 11.3011 17.1701 11.1105 17.0297 10.9698C16.889 10.8294 16.6984 10.7505 16.4996 10.7505C16.3009 10.7505 16.1103 10.8294 15.9697 10.9698L10.9697 15.9698C10.8989 16.0388 10.8427 16.1213 10.8043 16.2123C10.7659 16.3033 10.7461 16.4011 10.7461 16.4999C10.7461 16.5987 10.7659 16.6964 10.8043 16.7875C10.8427 16.8785 10.8989 16.961 10.9697 17.0299C11.0386 17.1005 11.121 17.1563 11.2121 17.1941Z' })
        ) : props.title == 'Bullet List Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M7.11615 10.3843C7.35057 10.6187 7.66848 10.75 8 10.75C8.33152 10.75 8.64949 10.6187 8.88391 10.3843C9.11833 10.1499 9.25 9.83152 9.25 9.5C9.24739 9.16929 9.11484 8.853 8.88098 8.61914C8.64713 8.38528 8.33071 8.25261 8 8.25C7.66929 8.25261 7.35287 8.38528 7.11902 8.61914C6.88516 8.853 6.75261 9.16929 6.75 9.5C6.75 9.83152 6.88173 10.1499 7.11615 10.3843ZM7.82324 9.32324C7.87013 9.27636 7.9337 9.25 8 9.25C8.0663 9.25 8.12993 9.27636 8.17682 9.32324C8.2237 9.37013 8.25 9.4337 8.25 9.5C8.25 9.5663 8.2237 9.62987 8.17682 9.67676C8.12993 9.72364 8.0663 9.75 8 9.75C7.9337 9.75 7.87013 9.72364 7.82324 9.67676C7.77636 9.62987 7.75 9.5663 7.75 9.5C7.75 9.4337 7.77636 9.37013 7.82324 9.32324ZM11.5001 10.25H20.5001C20.699 10.25 20.8898 10.1709 21.0304 10.0303C21.1711 9.88962 21.2501 9.69891 21.2501 9.5C21.2475 9.30189 21.1676 9.11275 21.0275 8.97266C20.8874 8.83256 20.6982 8.75259 20.5001 8.75H11.5001C11.3012 8.75 11.1104 8.82907 10.9697 8.96973C10.8291 9.11038 10.7501 9.30109 10.7501 9.5C10.7487 9.59886 10.7672 9.69697 10.8045 9.78857C10.8417 9.88018 10.8968 9.96378 10.9667 10.0337C11.0367 10.1036 11.1199 10.1586 11.2115 10.1958C11.3031 10.233 11.4012 10.2513 11.5001 10.25ZM11.5001 14.75H20.5001C20.699 14.75 20.8898 14.6709 21.0304 14.5303C21.1711 14.3896 21.2501 14.1989 21.2501 14C21.2475 13.8019 21.1676 13.6128 21.0275 13.4727C20.8874 13.3326 20.6982 13.2526 20.5001 13.25H11.5001C11.3012 13.25 11.1104 13.3291 10.9697 13.4697C10.8291 13.6104 10.7501 13.8011 10.7501 14C10.7487 14.0989 10.7672 14.197 10.8045 14.2886C10.8417 14.3802 10.8968 14.4638 10.9667 14.5337C11.0367 14.6036 11.1199 14.6586 11.2115 14.6958C11.3031 14.733 11.4012 14.7513 11.5001 14.75ZM20.5001 19.25H11.5001C11.4012 19.2513 11.3031 19.233 11.2115 19.1958C11.1199 19.1586 11.0367 19.1036 10.9667 19.0337C10.8968 18.9638 10.8417 18.8802 10.8045 18.7886C10.7672 18.697 10.7487 18.5989 10.7501 18.5C10.7501 18.3011 10.8291 18.1104 10.9697 17.9697C11.1104 17.8291 11.3012 17.75 11.5001 17.75H20.5001C20.6982 17.7526 20.8874 17.8326 21.0275 17.9727C21.1676 18.1128 21.2475 18.3019 21.2501 18.5C21.2501 18.6989 21.1711 18.8896 21.0304 19.0303C20.8898 19.1709 20.699 19.25 20.5001 19.25ZM8 15.25C7.66848 15.25 7.35057 15.1187 7.11615 14.8843C6.88173 14.6499 6.75 14.3315 6.75 14C6.75261 13.6693 6.88516 13.353 7.11902 13.1191C7.35287 12.8853 7.66929 12.7526 8 12.75C8.33071 12.7526 8.64713 12.8853 8.88098 13.1191C9.11484 13.353 9.24739 13.6693 9.25 14C9.25 14.3315 9.11833 14.6499 8.88391 14.8843C8.64949 15.1187 8.33152 15.25 8 15.25ZM8 13.75C7.9337 13.75 7.87013 13.7764 7.82324 13.8232C7.77636 13.8701 7.75 13.9337 7.75 14C7.75 14.0663 7.77636 14.1299 7.82324 14.1768C7.87013 14.2236 7.9337 14.25 8 14.25C8.0663 14.25 8.12993 14.2236 8.17682 14.1768C8.2237 14.1299 8.25 14.0663 8.25 14C8.25 13.9337 8.2237 13.8701 8.17682 13.8232C8.12993 13.7764 8.0663 13.75 8 13.75ZM7.11615 19.3843C7.35057 19.6187 7.66848 19.75 8 19.75C8.33152 19.75 8.64949 19.6187 8.88391 19.3843C9.11833 19.1499 9.25 18.8315 9.25 18.5C9.24739 18.1693 9.11484 17.853 8.88098 17.6191C8.64713 17.3853 8.33071 17.2526 8 17.25C7.66929 17.2526 7.35287 17.3853 7.11902 17.6191C6.88516 17.853 6.75261 18.1693 6.75 18.5C6.75 18.8315 6.88173 19.1499 7.11615 19.3843ZM7.82324 18.3232C7.87013 18.2764 7.9337 18.25 8 18.25C8.0663 18.25 8.12993 18.2764 8.17682 18.3232C8.2237 18.3701 8.25 18.4337 8.25 18.5C8.25 18.5663 8.2237 18.6299 8.17682 18.6768C8.12993 18.7236 8.0663 18.75 8 18.75C7.9337 18.75 7.87013 18.7236 7.82324 18.6768C7.77636 18.6299 7.75 18.5663 7.75 18.5C7.75 18.4337 7.77636 18.3701 7.82324 18.3232Z' })
        ) : props.title == 'Number List Text' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M9.07814 15.5533H7.61689C7.52013 15.5486 7.42693 15.5154 7.34906 15.4577C7.27119 15.4001 7.21215 15.3207 7.17939 15.2295C7.14616 15.1361 7.14262 15.0346 7.16925 14.9391C7.19587 14.8436 7.25137 14.7586 7.32814 14.6958C7.73466 14.3952 8.08305 14.0231 8.35627 13.5977C8.35627 13.5102 8.35627 13.3614 8.23814 13.322C8.14647 13.3026 8.05136 13.3069 7.96179 13.3344C7.87223 13.362 7.79117 13.4119 7.72627 13.4795C7.68185 13.525 7.62877 13.5612 7.57017 13.5859C7.51156 13.6106 7.44861 13.6233 7.38502 13.6233C7.32142 13.6233 7.25847 13.6106 7.19987 13.5859C7.14126 13.5612 7.08819 13.525 7.04377 13.4795C6.99879 13.4348 6.9631 13.3816 6.93875 13.3231C6.91439 13.2645 6.90186 13.2017 6.90186 13.1383C6.90186 13.0749 6.91439 13.0121 6.93875 12.9535C6.9631 12.8949 6.99879 12.8417 7.04377 12.797C7.24192 12.5932 7.49449 12.4506 7.7714 12.3862C8.04831 12.3218 8.33788 12.3384 8.60564 12.4339C8.83361 12.5333 9.02485 12.7014 9.15269 12.9147C9.28053 13.1281 9.33859 13.376 9.31877 13.6239C9.27047 13.9895 9.10103 14.3284 8.83752 14.5864H9.07814C9.14549 14.58 9.21344 14.5877 9.27763 14.6091C9.34182 14.6305 9.40083 14.665 9.45089 14.7105C9.50095 14.7561 9.54094 14.8115 9.56831 14.8734C9.59567 14.9353 9.60981 15.0022 9.60981 15.0698C9.60981 15.1375 9.59567 15.2044 9.56831 15.2663C9.54094 15.3282 9.50095 15.3836 9.45089 15.4291C9.40083 15.4747 9.34182 15.5092 9.27763 15.5306C9.21344 15.552 9.14549 15.5597 9.07814 15.5533Z' }),
            wp.element.createElement('path', { d: 'M20.1686 10.3381H11.4798C11.2726 10.323 11.0788 10.23 10.9374 10.0778C10.7959 9.92564 10.7173 9.72558 10.7173 9.51781C10.7173 9.31005 10.7959 9.10998 10.9374 8.95781C11.0788 8.80564 11.2726 8.71264 11.4798 8.6975H20.1686C20.2814 8.68926 20.3946 8.70436 20.5013 8.74185C20.6079 8.77934 20.7057 8.83842 20.7885 8.9154C20.8713 8.99237 20.9374 9.0856 20.9826 9.18925C21.0277 9.2929 21.051 9.40475 21.051 9.51781C21.051 9.63088 21.0277 9.74272 20.9826 9.84637C20.9374 9.95003 20.8713 10.0433 20.7885 10.1202C20.7057 10.1972 20.6079 10.2563 20.5013 10.2938C20.3946 10.3313 20.2814 10.3464 20.1686 10.3381Z' }),
            wp.element.createElement('path', { d: 'M20.1686 14.6824H11.4798C11.2726 14.6672 11.0788 14.5742 10.9374 14.4221C10.7959 14.2699 10.7173 14.0698 10.7173 13.8621C10.7173 13.6543 10.7959 13.4542 10.9374 13.3021C11.0788 13.1499 11.2726 13.0569 11.4798 13.0417H20.1686C20.2814 13.0335 20.3946 13.0486 20.5013 13.0861C20.6079 13.1236 20.7057 13.1827 20.7885 13.2596C20.8713 13.3366 20.9374 13.4298 20.9826 13.5335C21.0277 13.6371 21.051 13.749 21.051 13.8621C21.051 13.9751 21.0277 14.087 20.9826 14.1906C20.9374 14.2943 20.8713 14.3875 20.7885 14.4645C20.7057 14.5414 20.6079 14.6005 20.5013 14.638C20.3946 14.6755 20.2814 14.6906 20.1686 14.6824Z' }),
            wp.element.createElement('path', { d: 'M20.1686 19.0271H11.4798C11.2726 19.0119 11.0788 18.9189 10.9374 18.7668C10.7959 18.6146 10.7173 18.4145 10.7173 18.2068C10.7173 17.999 10.7959 17.7989 10.9374 17.6468C11.0788 17.4946 11.2726 17.4016 11.4798 17.3865H20.1686C20.2814 17.3782 20.3946 17.3933 20.5013 17.4308C20.6079 17.4683 20.7057 17.5274 20.7885 17.6044C20.8713 17.6813 20.9374 17.7746 20.9826 17.8782C21.0277 17.9819 21.051 18.0937 21.051 18.2068C21.051 18.3198 21.0277 18.4317 20.9826 18.5353C20.9374 18.639 20.8713 18.7322 20.7885 18.8092C20.7057 18.8862 20.6079 18.9453 20.5013 18.9827C20.3946 19.0202 20.2814 19.0353 20.1686 19.0271Z' }),
            wp.element.createElement('path', { d: 'M8.57913 11.6902C8.45149 11.6902 8.32908 11.6395 8.23883 11.5493C8.14858 11.459 8.09788 11.3366 8.09788 11.209V9.27961H7.61663C7.54928 9.28602 7.48133 9.27829 7.41714 9.25692C7.35295 9.23554 7.29394 9.20099 7.24388 9.15547C7.19382 9.10995 7.15383 9.05448 7.12646 8.99261C7.0991 8.93074 7.08496 8.86383 7.08496 8.79617C7.08496 8.72852 7.0991 8.66161 7.12646 8.59973C7.15383 8.53786 7.19382 8.48239 7.24388 8.43687C7.29394 8.39136 7.35295 8.3568 7.41714 8.33543C7.48133 8.31405 7.54928 8.30632 7.61663 8.31273H8.57913C8.64363 8.31099 8.70783 8.32211 8.76799 8.34546C8.82814 8.36881 8.88304 8.40391 8.92947 8.44872C8.97591 8.49352 9.01295 8.54713 9.03843 8.60641C9.06391 8.6657 9.07732 8.72946 9.07788 8.79398V11.209C9.07732 11.2735 9.06391 11.3373 9.03843 11.3966C9.01295 11.4558 8.97591 11.5094 8.92947 11.5543C8.88304 11.5991 8.82814 11.6342 8.76799 11.6575C8.70783 11.6809 8.64363 11.692 8.57913 11.6902Z' }),
            wp.element.createElement('path', { d: 'M7.37187 20.1249C7.24424 20.1249 7.12183 20.0742 7.03158 19.984C6.94133 19.8937 6.89062 19.7713 6.89062 19.6437C6.89062 19.516 6.94133 19.3936 7.03158 19.3034C7.12183 19.2131 7.24424 19.1624 7.37187 19.1624C7.69027 19.1882 8.01075 19.1631 8.32125 19.088C8.32348 19.0545 8.32348 19.0209 8.32125 18.9874C8.19 18.9087 7.93187 18.7818 7.62125 18.6287C7.53891 18.589 7.46943 18.5269 7.42081 18.4495C7.37219 18.3721 7.3464 18.2826 7.3464 18.1912C7.3464 18.0998 7.37219 18.0102 7.42081 17.9328C7.46943 17.8554 7.53891 17.7933 7.62125 17.7537C7.94938 17.6224 8.20313 17.4999 8.33438 17.4168C8.34121 17.3821 8.34121 17.3465 8.33438 17.3118C8.02474 17.2407 7.7061 17.2171 7.38937 17.2418C7.26174 17.2418 7.13933 17.1911 7.04908 17.1008C6.95883 17.0106 6.90812 16.8882 6.90812 16.7605C6.90812 16.6329 6.95883 16.5105 7.04908 16.4203C7.13933 16.33 7.26174 16.2793 7.38937 16.2793C8.33875 16.2793 9.32313 16.2793 9.32313 17.4824C9.33613 17.6341 9.30081 17.7861 9.22223 17.9165C9.14365 18.047 9.02583 18.1492 8.88563 18.2087C9.02548 18.2673 9.14316 18.3688 9.22176 18.4985C9.30036 18.6282 9.33585 18.7794 9.32313 18.9305C9.30563 20.1249 8.32125 20.1249 7.37187 20.1249Z' })
        ) : props.title == 'Miscellaneous' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M21.6127 17.3055L18.3077 13.9971L20.3979 11.9049C21.5862 10.7207 21.5862 8.7824 20.3979 7.59288C19.8249 7.01937 19.061 6.70075 18.244 6.70075C17.4271 6.70075 16.6684 7.01937 16.0902 7.59288L14 9.68515L12.7056 8.38943L10.695 6.37682C10.1963 5.87765 9.32096 5.87765 8.82228 6.37682L6.38727 8.81426C6.13793 9.06384 6 9.39839 6 9.75418C6 10.11 6.13793 10.4392 6.38727 10.6888L9.69231 13.9971L7.60212 16.0894C7.50133 16.1956 7.42706 16.3231 7.39523 16.4611L7.38462 16.5089V16.5355L6.33422 20.7094C6.26525 20.9802 6.34483 21.267 6.54111 21.4634C6.69496 21.6174 6.89655 21.6971 7.10345 21.6971C7.16711 21.6971 7.23607 21.6918 7.29973 21.6759L11.5438 20.6138C11.5438 20.6138 11.5597 20.6032 11.5703 20.6032C11.5968 20.5926 11.6286 20.5819 11.6552 20.5713C11.7029 20.5501 11.7507 20.5288 11.7931 20.497C11.8355 20.4704 11.8727 20.4386 11.9098 20.4014L14 18.3091L17.305 21.6228C17.565 21.8777 17.9045 22.0051 18.244 22.0051C18.5836 22.0051 18.9231 21.8777 19.1777 21.6174L21.6127 19.18C21.8674 18.9304 22 18.5959 22 18.2454C22 17.8949 21.8621 17.555 21.6127 17.3055ZM17.2149 8.71867C17.7666 8.17171 18.7215 8.1664 19.2732 8.71867C19.8408 9.28688 19.8408 10.2109 19.2732 10.7791L18.7745 11.2782L16.7162 9.21784L17.2149 8.71867ZM7.70292 9.74887L9.76127 7.68847L11.0186 8.94702L9.98939 9.97722C9.6817 10.2905 9.6817 10.795 9.98939 11.103C10.1485 11.2623 10.3501 11.3367 10.5517 11.3367C10.7533 11.3367 10.9602 11.2623 11.1141 11.103L12.1432 10.0728L12.8753 10.8056L10.817 12.866L7.70292 9.74887ZM8.19629 19.8013L8.76923 17.5232C9.60212 17.7409 10.2599 18.3994 10.4721 19.2331L8.19629 19.8013ZM13.4536 16.5992L13.4218 16.6311L11.809 18.2507C11.4111 17.3267 10.6737 16.5886 9.75597 16.185L11.3793 14.5547L15.5915 10.3383L17.6499 12.3987L16.6472 13.4077L16.6313 13.4236L16.6154 13.4395L16.5995 13.4555L13.4536 16.5992ZM18.244 20.3005L15.1247 17.178L17.183 15.1176L17.9151 15.8504L16.8859 16.8806C16.5782 17.1939 16.5782 17.6984 16.8859 18.0064C17.0451 18.1657 17.2467 18.2401 17.4483 18.2401C17.6499 18.2401 17.8568 18.1657 18.0106 18.0064L19.0398 16.9762L20.3024 18.2401L18.244 20.3005Z' })
            )
        ) : props.title == 'Scrollbar' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M13.5079 6C10.4727 6 8 8.47273 8 11.5079V16.497C8 19.5321 10.4727 22 13.5079 22C16.543 22 19.0109 19.5321 19.0109 16.497V11.5079C19.0109 8.47273 16.543 6 13.5079 6ZM17.5564 16.497C17.5564 18.7321 15.7382 20.5455 13.5079 20.5455C11.2776 20.5455 9.45455 18.7321 9.45455 16.497V11.5079C9.45455 9.27273 11.2727 7.45455 13.5079 7.45455C15.743 7.45455 17.5564 9.27273 17.5564 11.5079V16.497Z' }),
                wp.element.createElement('path', { d: 'M15.977 15.3345C16.2582 15.6206 16.2582 16.0812 15.977 16.3624L14.1103 18.2339C13.9745 18.3697 13.7903 18.4424 13.5964 18.4424C13.4024 18.4424 13.2182 18.3697 13.0824 18.2339L11.2109 16.3624C10.9297 16.0812 10.9297 15.6206 11.2109 15.3345C11.497 15.0533 11.9576 15.0533 12.2436 15.3345L12.8691 15.96V11.4703L12.2436 12.0958C12.0982 12.2412 11.9139 12.3091 11.7297 12.3091C11.5455 12.3091 11.3564 12.2412 11.2109 12.0958C10.9297 11.8145 10.9297 11.3539 11.2109 11.0679L13.0824 9.20121C13.0824 9.20121 13.1212 9.17697 13.1406 9.16242C13.1745 9.13333 13.2085 9.10909 13.2473 9.0897C13.3055 9.05576 13.3636 9.03636 13.4267 9.02182C13.4412 9.01697 13.4606 9.01212 13.48 9.00727C13.5576 8.99758 13.6303 8.99758 13.7079 9.00727C13.7273 9.01212 13.7515 9.01697 13.7709 9.02182C13.8291 9.03636 13.8824 9.05576 13.9358 9.08485C13.9794 9.10909 14.0182 9.13333 14.057 9.16727C14.0715 9.18182 14.0958 9.18667 14.1103 9.20121L15.977 11.0679C16.2582 11.3539 16.2582 11.8145 15.977 12.0958C15.6909 12.3818 15.2303 12.3818 14.9491 12.0958L14.3236 11.4703V15.96L14.9491 15.3345C15.2303 15.0533 15.6909 15.0533 15.977 15.3345Z' })
            )
        ) : props.title == 'Back To Top Button' ? wp.element.createElement(
            'svg',
            { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement(
                'g',
                null,
                wp.element.createElement('path', { d: 'M19.2461 6H8.75879C7.23636 6 6 7.23636 6 8.75394V19.2461C6 20.7636 7.23636 22 8.75879 22H19.2461C20.7636 22 22 20.7636 22 19.2461V8.75394C22 7.23636 20.7636 6 19.2461 6ZM20.5455 19.2461C20.5455 19.9636 19.9636 20.5455 19.2461 20.5455H8.75879C8.04121 20.5455 7.45455 19.9636 7.45455 19.2461V8.75394C7.45455 8.04121 8.04121 7.45455 8.75879 7.45455H19.2461C19.9636 7.45455 20.5455 8.04121 20.5455 8.75394V19.2461Z' }),
                wp.element.createElement('path', { d: 'M16.9528 13.5393C16.8073 13.6799 16.6231 13.7526 16.4389 13.7526C16.2546 13.7526 16.0655 13.6799 15.9249 13.5393L14.7273 12.3465V17.4132C14.7273 17.8156 14.4025 18.1405 14.0001 18.1405C13.5976 18.1405 13.2728 17.8156 13.2728 17.4132V12.3465L12.0801 13.5393C11.794 13.8253 11.3383 13.8253 11.0522 13.5393C10.7661 13.2532 10.7661 12.7926 11.0522 12.5114L13.4861 10.0774C13.4861 10.0774 13.5346 10.0484 13.5589 10.029C13.5831 10.0096 13.6122 9.99017 13.6413 9.97562C13.6995 9.94168 13.7625 9.91744 13.8255 9.89805C13.8449 9.89805 13.8643 9.88835 13.8837 9.88835C13.9613 9.87381 14.0389 9.87381 14.1164 9.88835C14.131 9.88835 14.1504 9.8932 14.1649 9.89805C14.2328 9.91259 14.291 9.93684 14.354 9.97562C14.3879 9.99502 14.417 10.0144 14.4461 10.0387C14.4655 10.058 14.4946 10.0629 14.514 10.0823L16.9528 12.5162C17.234 12.7974 17.234 13.258 16.9528 13.5441V13.5393Z' })
            )
        ) : '',
        wp.element.createElement(
            'span',
            { className: 'title' },
            props.title
        )
    );
};
exports.default = SubTabs;

/***/ }),
/* 176 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _Dashboardcards = __webpack_require__(177);

var _Dashboardcards2 = _interopRequireDefault(_Dashboardcards);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Dashboard = function Dashboard(props) {
    return wp.element.createElement(
        'div',
        { className: 'dashboard' },
        props.diviCurrentVersion !== props.diviLatestVersion && props.diviLatestVersion !== 'x.x.x' ? wp.element.createElement(_Dashboardcards2.default, {
            key: 'update-divi' // Add a unique key here
            , left_svg: 'cross',
            title: 'A new version of Divi is Available!',
            description: 'Your current Divi version is outdated. Version ' + props.diviLatestVersion + ' is available!',
            btn_text: 'Update Divi',
            card: 'update divi',
            setDiviCurrentVersion: props.setDiviCurrentVersion,
            diviLatestVersion: props.diviLatestVersion,
            diviCredentials: props.dashboardData.divi_credentials,
            openDiviChangelog: props.openDiviChangelog
        }) : "",
        props.diviCurrentVersion === props.diviLatestVersion & props.diviLatestVersion !== 'x.x.x' ? wp.element.createElement(_Dashboardcards2.default, {
            key: 'latest-divi' // Add a unique key here
            , left_svg: 'tick',
            title: 'Great, you Are On The latest version of Divi!',
            description: 'You are running the latest version ' + props.diviLatestVersion + '!',
            card: null
        }) : "",
        props.dashboardCardsDismiss !== undefined && props.dashboardCardsDismiss.systemStatus !== true && props.dashboardCardsDismiss.systemStatus !== '1' && parseInt(props.websiteReport.memory_limit) < 128 && parseInt(props.websiteReport.max_execute_time) < 120 && parseInt(props.websiteReport.max_input_time) < 60 ? wp.element.createElement(_Dashboardcards2.default, {
            key: 'server-settings' // Add a unique key here
            , left_svg: 'cross',
            title: 'Some Server Settings Do Not Meet The Minimum Recommendations',
            description: 'Please go to Divi>Support Center and check the System Status report to learn more.',
            url: pacDaAppLocalizer.site_url + '/wp-admin/admin.php?page=et_support_center_divi',
            btn_text: 'Go To System Status',
            card: 'system status',
            dashboardCardsDismiss: props.dashboardCardsDismiss,
            setDashboardCardsDismiss: props.setDashboardCardsDismiss
        }) : '',
        props.dashboardCardsDismiss !== undefined && props.dashboardCardsDismiss.blogPublic !== true && props.dashboardCardsDismiss.blogPublic !== '1' && props.dashboardData.blog_public === '0' ? wp.element.createElement(_Dashboardcards2.default, {
            key: 'blogPublic' // Add a unique key here
            , left_svg: 'cross',
            title: 'FYI: Your site Is Blocked From Search Engine Visibility',
            description: 'WordPress has a setting called “Discourage search engines from indexing this site” which is currently enabled. If your site is live or you wish to disable this block, please go to WordPress>Settings>Reading and deselect the checkbox.',
            url: pacDaAppLocalizer.site_url + '/wp-admin/options-reading.php',
            btn_text: 'Go To Setting',
            card: 'blogPublic',
            dashboardCardsDismiss: props.dashboardCardsDismiss,
            setDashboardCardsDismiss: props.setDashboardCardsDismiss
        }) : '',
        props.dashboardCardsDismiss !== undefined && props.dashboardCardsDismiss.featureUpdate !== true && props.dashboardCardsDismiss.featureUpdate !== '1' && props.dashboardData !== undefined ? wp.element.createElement(_Dashboardcards2.default, {
            key: 'feature-update' // Add a unique key here
            , left_svg: 'hint',
            title: 'New Divi Feature Update!',
            description: props.dashboardData.new_divi_feature_update !== undefined && props.dashboardData.new_divi_feature_update.title !== undefined ? props.dashboardData.new_divi_feature_update.title : 'Introducing Divi Code AI, Your Personal Divi Coding Assistant',
            url: props.dashboardData.new_divi_feature_update !== undefined && props.dashboardData.new_divi_feature_update.url !== undefined ? props.dashboardData.new_divi_feature_update.url : 'https://www.elegantthemes.com/blog/theme-releases/introducing-divi-code-ai',
            btn_text: 'Go To Release Post',
            card: 'featureUpdate',
            dashboardCardsDismiss: props.dashboardCardsDismiss,
            setDashboardCardsDismiss: props.setDashboardCardsDismiss
        }) : '',
        props.notificationsData !== null && props.notificationsData !== undefined ? Object.keys(props.notificationsData).map(function (key) {
            return wp.element.createElement(
                _react2.default.Fragment,
                { key: key },
                ' ',
                props.dashboardData !== undefined && props.dashboardCardsDismiss !== undefined && props.dashboardCardsDismiss[props.notificationsData[key].ID] !== true && props.dashboardCardsDismiss[props.notificationsData[key].ID] !== '1' ? wp.element.createElement(_Dashboardcards2.default, {
                    key: "notification-" + key // Add a unique key here
                    , left_svg: 'hint',
                    title: props.notificationsData[key].title,
                    description: props.notificationsData[key].description ? props.notificationsData[key].description : 'Notification Description',
                    url: props.notificationsData[key].button_link,
                    btn_text: props.notificationsData[key].button_label,
                    card: 'notification',
                    slug: props.notificationsData[key].ID,
                    dashboardCardsDismiss: props.dashboardCardsDismiss,
                    setDashboardCardsDismiss: props.setDashboardCardsDismiss
                }) : ''
            );
        }) : ''
    );
};
exports.default = Dashboard;

/***/ }),
/* 177 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var Dashboardcards = function Dashboardcards(props) {
    var daUpdateDashboardCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateDashboardCards';

    var hideCard = function hideCard(slug) {
        if (slug === 'notification') {
            slug = props.slug;
        }
        props.setDashboardCardsDismiss(Object.assign({}, props.dashboardCardsDismiss, _defineProperty({}, slug, true)));
        _axios2.default.post(daUpdateDashboardCards, {
            card: slug
        }).catch(function (error) {
            console.log(error);
        });
    };

    var requestParams = new URLSearchParams({
        action: 'update-theme',
        slug: 'Divi',
        _ajax_nonce: pacDaAppLocalizer.ajaxNonce
    }).toString();

    var updateDivi = function updateDivi(e) {
        if (props.diviCredentials.status === 'active' & props.diviCredentials.api_key !== '' & props.diviCredentials.username !== '') {
            document.getElementById("pac_da_loading_spinner").style.display = 'block';
            _axios2.default.post(ajaxurl, requestParams).then(function (response) {
                document.getElementById("pac_da_loading_spinner").style.display = 'none';
                if (response.data.success) {
                    props.setDiviCurrentVersion(props.diviLatestVersion);
                } else {
                    alert(response.data.errorMessage);
                }
            }).catch(function (err) {
                console.error(err);
            });
        } else {
            alert('Please Enter Username and API Key in : Divi -> Theme Options -> Updates');
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'card' },
        wp.element.createElement(
            _react2.default.Fragment,
            null,
            props.left_svg == 'cross' ? wp.element.createElement(
                'svg',
                { className: 'cross', width: '28', height: '28', viewBox: '0 0 28 28', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('circle', { cx: '14', cy: '14', r: '14', fill: '#EF5555' }),
                wp.element.createElement('path', { d: 'M20.0308 18.9698C20.1712 19.1104 20.2501 19.301 20.2501 19.4998C20.2501 19.6985 20.1712 19.8892 20.0308 20.0298C19.9615 20.0999 19.879 20.1555 19.788 20.1932C19.697 20.231 19.5993 20.2502 19.5007 20.2498C19.4022 20.2502 19.3046 20.231 19.2136 20.1932C19.1226 20.1555 19.04 20.0999 18.9708 20.0298L13.9708 15.0298L8.97076 20.0298C8.90152 20.0999 8.81898 20.1555 8.72797 20.1932C8.63695 20.231 8.53928 20.2502 8.44073 20.2498C8.34219 20.2502 8.24458 20.231 8.15356 20.1932C8.06255 20.1555 7.98001 20.0999 7.91077 20.0298C7.77032 19.8892 7.69141 19.6985 7.69141 19.4998C7.69141 19.301 7.77032 19.1104 7.91077 18.9698L12.9108 13.9698L7.91077 8.96979C7.77032 8.82916 7.69141 8.63851 7.69141 8.43976C7.69141 8.24101 7.77032 8.05042 7.91077 7.90979C8.05139 7.76934 8.24198 7.69043 8.44073 7.69043C8.63949 7.69043 8.83014 7.76934 8.97076 7.90979L13.9708 12.9098L18.9708 7.90979C19.1114 7.76934 19.302 7.69043 19.5007 7.69043C19.6995 7.69043 19.8901 7.76934 20.0308 7.90979C20.1712 8.05042 20.2501 8.24101 20.2501 8.43976C20.2501 8.63851 20.1712 8.82916 20.0308 8.96979L15.0308 13.9698L20.0308 18.9698Z', fill: 'white' })
            ) : props.left_svg == 'hint' ? wp.element.createElement(
                'svg',
                { className: 'hint', width: '28', height: '28', viewBox: '0 0 28 28', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('circle', { cx: '14', cy: '14', r: '14', fill: '#6C2EB9' }),
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M14.0193 8.22092C13.6787 8.22092 13.4023 7.94454 13.4023 7.604V6.61692C13.4023 6.27638 13.6787 6 14.0193 6C14.3598 6 14.6362 6.27638 14.6362 6.61692V7.604C14.6362 7.94454 14.3598 8.22092 14.0193 8.22092Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M9.47852 10.0965C9.32059 10.0965 9.16265 10.0372 9.0442 9.91386L8.35325 9.22291C8.11142 8.98107 8.11142 8.59118 8.35325 8.34934C8.59508 8.10751 8.98498 8.10751 9.22681 8.34934L9.91777 9.0403C10.1596 9.28213 10.1596 9.67203 9.91777 9.91386C9.79932 10.0323 9.64139 10.0965 9.48345 10.0965H9.47852Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M7.604 14.6372H6.61692C6.27638 14.6372 6 14.3608 6 14.0202C6 13.6797 6.27638 13.4033 6.61692 13.4033H7.604C7.94454 13.4033 8.22092 13.6797 8.22092 14.0202C8.22092 14.3608 7.94454 14.6372 7.604 14.6372Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M8.78756 19.8684C8.62963 19.8684 8.4717 19.8092 8.35325 19.6858C8.11142 19.444 8.11142 19.0541 8.35325 18.8123L9.0442 18.1213C9.28604 17.8795 9.67593 17.8795 9.91777 18.1213C10.1596 18.3632 10.1596 18.753 9.91777 18.9949L9.22681 19.6858C9.10836 19.8043 8.95043 19.8684 8.7925 19.8684H8.78756Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M19.252 19.8684C19.094 19.8684 18.9361 19.8092 18.8176 19.6858L18.1267 18.9949C17.8849 18.753 17.8849 18.3632 18.1267 18.1213C18.3685 17.8795 18.7584 17.8795 19.0003 18.1213L19.6912 18.8123C19.933 19.0541 19.933 19.444 19.6912 19.6858C19.5728 19.8043 19.4148 19.8684 19.2569 19.8684H19.252Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M21.4224 14.6372H20.4353C20.0947 14.6372 19.8184 14.3608 19.8184 14.0202C19.8184 13.6797 20.0947 13.4033 20.4353 13.4033H21.4224C21.7629 13.4033 22.0393 13.6797 22.0393 14.0202C22.0393 14.3608 21.7629 14.6372 21.4224 14.6372Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M18.561 10.0965C18.4031 10.0965 18.2451 10.0372 18.1267 9.91386C17.8849 9.67203 17.8849 9.28213 18.1267 9.0403L18.8176 8.34934C19.0595 8.10751 19.4494 8.10751 19.6912 8.34934C19.933 8.59118 19.933 8.98107 19.6912 9.22291L19.0003 9.91386C18.8818 10.0323 18.7239 10.0965 18.5659 10.0965H18.561Z', fill: 'white' }),
                    wp.element.createElement('path', { d: 'M14.0202 8.96143H13.8475C11.138 9.07494 8.97133 11.2712 8.91211 13.9708C8.91211 15.4811 9.59813 16.937 10.7431 17.8797C10.8863 18.0327 10.8863 18.1314 10.8863 18.1659V18.7828C10.827 20.3918 12.0411 21.7984 13.6599 21.9859C13.7685 22.0007 13.882 22.0056 13.9956 22.0056C14.6816 22.0056 15.3528 21.7687 15.9006 21.3246C16.557 20.8014 16.9617 20.0512 17.0555 19.2172V18.1659C17.0555 18.1314 17.0555 18.0376 17.1937 17.8895C18.3782 17.0061 19.079 15.565 19.079 14.0202C19.079 11.2317 16.8087 8.96143 14.0202 8.96143ZM15.1307 20.3622C14.7457 20.6731 14.2719 20.8113 13.7981 20.7619C13.0973 20.683 12.5149 20.2042 12.2583 19.5725H15.7081C15.5897 19.8785 15.3923 20.1499 15.1307 20.3622ZM16.4238 16.9271L16.3497 16.9864C16.0043 17.3318 15.8216 17.7415 15.8216 18.1659V18.3387H12.1201V18.1659C12.1201 17.7415 11.9375 17.3318 11.597 16.9864C11.5822 16.9716 11.5624 16.9567 11.5476 16.9469C10.6691 16.2362 10.146 15.1257 10.146 13.9807C10.1904 11.9424 11.8388 10.2792 13.8722 10.1953H14.0202C16.1671 10.1953 17.8452 11.8733 17.8452 14.0202C17.8452 15.1899 17.3121 16.2757 16.4238 16.9271Z', fill: 'white' })
                ),
                wp.element.createElement(
                    'defs',
                    null,
                    wp.element.createElement(
                        'clipPath',
                        null,
                        wp.element.createElement('rect', { width: '16.04', height: '16.0054', fill: 'white', transform: 'translate(6 6)' })
                    )
                )
            ) : props.left_svg == 'tick' ? wp.element.createElement(
                'svg',
                { className: 'tick', width: '28', height: '28', viewBox: '0 0 28 28', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('circle', { cx: '14', cy: '14', r: '14', fill: '#29C4A9' }),
                wp.element.createElement('path', { d: 'M12.2209 18.2502C12.0221 18.2501 11.8314 18.171 11.6909 18.0303L8.25092 14.5903C8.18016 14.5214 8.12391 14.4389 8.08551 14.3479C8.04711 14.2569 8.02734 14.1591 8.02734 14.0603C8.02734 13.9615 8.04711 13.8637 8.08551 13.7727C8.12391 13.6817 8.18016 13.5992 8.25092 13.5303C8.39154 13.3898 8.58219 13.3108 8.78094 13.3108C8.9797 13.3108 9.17029 13.3898 9.31091 13.5303L12.2209 16.4402L18.6909 9.97021C18.8315 9.82976 19.0222 9.75098 19.2209 9.75098C19.4197 9.75098 19.6103 9.82976 19.7509 9.97021C19.8914 10.1108 19.9703 10.3015 19.9703 10.5002C19.9703 10.699 19.8914 10.8896 19.7509 11.0303L12.7509 18.0303C12.6104 18.171 12.4198 18.2501 12.2209 18.2502Z', fill: 'white' })
            ) : ''
        ),
        wp.element.createElement(
            'div',
            { className: 'details' },
            wp.element.createElement(
                'div',
                { className: 'title' },
                props.title
            ),
            wp.element.createElement(
                'div',
                { className: 'descrition' },
                props.description
            ),
            wp.element.createElement(
                _react2.default.Fragment,
                null,
                props.card === 'system status' || props.card === 'featureUpdate' || props.card === 'notification' || props.card === 'blogPublic' ? wp.element.createElement(
                    'a',
                    { className: props.card === 'system status' || props.card === 'blogPublic' ? 'btn green' : 'btn', href: props.url, target: '_blank' },
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17.0884 9.0357V5.49998C17.0884 5.3437 17.0264 5.19381 16.9158 5.08329C16.8053 4.97278 16.6554 4.9107 16.4992 4.9107H12.9634C12.8858 4.90964 12.8087 4.92414 12.7367 4.95338C12.6647 4.98262 12.5993 5.02601 12.5444 5.08094C12.4895 5.13588 12.4461 5.20123 12.4169 5.2732C12.3876 5.34517 12.3731 5.42231 12.3742 5.49998C12.3742 5.65627 12.4362 5.80616 12.5467 5.91668C12.6573 6.02719 12.8072 6.08927 12.9634 6.08927H15.077L9.79704 11.3692C9.74144 11.4234 9.69724 11.4882 9.66708 11.5597C9.63691 11.6312 9.62137 11.7081 9.62137 11.7857C9.62137 11.8633 9.63691 11.9401 9.66708 12.0117C9.69724 12.0832 9.74144 12.1479 9.79704 12.2021C9.90839 12.3112 10.0575 12.3732 10.2134 12.375C10.369 12.3716 10.5177 12.3099 10.6299 12.2021L15.9099 6.92213V9.0357C15.9099 9.19199 15.972 9.34188 16.0825 9.45239C16.193 9.5629 16.3429 9.62498 16.4992 9.62498C16.6548 9.62295 16.8035 9.56021 16.9136 9.45014C17.0237 9.34006 17.0864 9.19135 17.0884 9.0357ZM7.07087 17.0892H13.7494C14.3219 17.0871 14.8703 16.8588 15.275 16.454C15.6798 16.0493 15.9081 15.5009 15.9102 14.9285V11.3928C15.9102 11.2365 15.8481 11.0866 15.7376 10.9761C15.627 10.8656 15.4772 10.8035 15.3209 10.8035C15.2432 10.8024 15.1661 10.8169 15.0941 10.8462C15.0222 10.8754 14.9568 10.9188 14.9018 10.9737C14.8469 11.0287 14.8036 11.094 14.7743 11.166C14.7451 11.238 14.7305 11.3151 14.7316 11.3928V14.9285C14.7295 15.1883 14.6254 15.437 14.4416 15.6207C14.2579 15.8044 14.0093 15.9086 13.7494 15.9106H7.07087C6.81103 15.9086 6.56241 15.8044 6.37867 15.6207C6.19493 15.437 6.09078 15.1883 6.08873 14.9285V8.24993C6.08873 7.98945 6.19223 7.73962 6.37642 7.55543C6.5606 7.37124 6.81039 7.26779 7.07087 7.26779H10.6066C10.7622 7.26575 10.9109 7.20301 11.021 7.09294C11.1311 6.98286 11.1938 6.83416 11.1959 6.6785C11.1959 6.52221 11.1338 6.37232 11.0233 6.26181C10.9128 6.1513 10.7629 6.08922 10.6066 6.08922H7.07087C6.49781 6.08922 5.94825 6.31683 5.54303 6.72205C5.13782 7.12726 4.91016 7.67687 4.91016 8.24993V14.9285C4.91016 15.5016 5.13782 16.0511 5.54303 16.4563C5.94825 16.8615 6.49781 17.0892 7.07087 17.0892Z', fill: 'white' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        props.btn_text
                    )
                ) : props.card === 'update divi' ? wp.element.createElement(
                    'div',
                    { className: 'btns' },
                    wp.element.createElement(
                        'div',
                        { id: props.id, onClick: updateDivi, className: 'btn green' },
                        wp.element.createElement(
                            'svg',
                            { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                            wp.element.createElement(
                                'g',
                                { clipPath: 'url(#clip0_716_1329)' },
                                wp.element.createElement('path', { d: 'M16.2709 7.32591L13.8377 4.89273C13.7241 4.77918 13.57 4.71429 13.4078 4.71429H6.91935C6.13668 4.71429 5.5 5.35098 5.5 6.13365V15.8664C5.5 16.649 6.13668 17.2857 6.91935 17.2857H15.03C15.8126 17.2857 16.4493 16.649 16.4493 15.8664V7.75577C16.4493 7.59356 16.3844 7.43946 16.2709 7.32591ZM9.5553 5.93088H12.394V7.95853H9.5553V5.93088ZM12.394 16.0691H9.5553V12.4194H12.394V16.0691ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0691 15.03 16.0691H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0691H6.91935C6.80986 16.0691 6.71659 15.9759 6.71659 15.8664V6.13365C6.71659 6.02416 6.80986 5.93088 6.91935 5.93088H8.33871V8.56683C8.33871 8.90342 8.61041 9.17512 8.947 9.17512H13.0023C13.3389 9.17512 13.6106 8.90342 13.6106 8.56683V6.38508L15.2327 8.0072V15.8664Z', fill: 'white' })
                            )
                        ),
                        wp.element.createElement(
                            'span',
                            null,
                            props.btn_text
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { id: props.id, onClick: props.openDiviChangelog, className: 'btn changelog' },
                        wp.element.createElement(
                            'svg',
                            { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                            wp.element.createElement('path', { d: 'M11.1867 16.5C6.41708 16.5 4.08068 11.4884 3.98388 11.2728C3.94684 11.1866 3.92773 11.0938 3.92773 11C3.92773 10.9062 3.94684 10.8134 3.98388 10.7272C4.08068 10.5116 6.41708 5.5 11.1867 5.5C15.9563 5.5 18.2927 10.5116 18.3895 10.7272C18.4265 10.8134 18.4456 10.9062 18.4456 11C18.4456 11.0938 18.4265 11.1866 18.3895 11.2728C18.2927 11.4884 15.9563 16.5 11.1867 16.5ZM5.32588 11C5.85388 11.968 7.84708 15.18 11.1867 15.18C14.5263 15.18 16.5195 11.968 17.0475 11C16.5195 10.032 14.5263 6.82 11.1867 6.82C7.84708 6.82 5.85388 10.032 5.32588 11Z', fill: '#A4AFC0' }),
                            wp.element.createElement('path', { d: 'M11.1867 14.3002C10.534 14.3002 9.89602 14.1067 9.35334 13.744C8.81066 13.3814 8.38769 12.866 8.13792 12.2631C7.88815 11.6601 7.8228 10.9965 7.95013 10.3564C8.07746 9.71626 8.39175 9.12826 8.85327 8.66674C9.31478 8.20523 9.90278 7.89094 10.5429 7.76361C11.1831 7.63627 11.8466 7.70163 12.4496 7.95139C13.0526 8.20116 13.568 8.62413 13.9306 9.16682C14.2932 9.7095 14.4867 10.3475 14.4867 11.0002C14.4867 11.8754 14.139 12.7148 13.5202 13.3336C12.9013 13.9525 12.0619 14.3002 11.1867 14.3002ZM11.1867 9.0202C10.7951 9.0202 10.4123 9.13632 10.0867 9.35389C9.76108 9.57145 9.5073 9.88069 9.35744 10.2425C9.20758 10.6043 9.16837 11.0024 9.24477 11.3865C9.32116 11.7706 9.50974 12.1234 9.78665 12.4003C10.0636 12.6772 10.4164 12.8658 10.8004 12.9422C11.1845 13.0186 11.5826 12.9793 11.9444 12.8295C12.3062 12.6796 12.6155 12.4258 12.833 12.1002C13.0506 11.7746 13.1667 11.3918 13.1667 11.0002C13.1656 10.4754 12.9566 9.97248 12.5855 9.60141C12.2144 9.23034 11.7115 9.02136 11.1867 9.0202Z', fill: '#A4AFC0' })
                        ),
                        wp.element.createElement(
                            'span',
                            null,
                            'View Changelog'
                        )
                    )
                ) : ''
            )
        ),
        props.card === 'system status' || props.card === 'featureUpdate' || props.card === 'notification' || props.card === 'blogPublic' ? wp.element.createElement(
            'div',
            { className: 'dismiss', onClick: function onClick() {
                    return hideCard(props.card);
                } },
            wp.element.createElement(
                'span',
                { className: 'text' },
                'Dismiss'
            ),
            wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M20.0298 18.97C20.1702 19.1107 20.2491 19.3012 20.2491 19.5C20.2491 19.6988 20.1702 19.8894 20.0298 20.03C19.9605 20.1001 19.878 20.1557 19.787 20.1935C19.696 20.2313 19.5983 20.2505 19.4998 20.25C19.4012 20.2505 19.3036 20.2313 19.2126 20.1935C19.1216 20.1557 19.039 20.1001 18.9698 20.03L13.9698 15.03L8.96979 20.03C8.90054 20.1001 8.818 20.1557 8.72699 20.1935C8.63598 20.2313 8.5383 20.2505 8.43976 20.25C8.34122 20.2505 8.2436 20.2313 8.15259 20.1935C8.06158 20.1557 7.97903 20.1001 7.90979 20.03C7.76934 19.8894 7.69043 19.6988 7.69043 19.5C7.69043 19.3012 7.76934 19.1107 7.90979 18.97L12.9098 13.97L7.90979 8.97003C7.76934 8.82941 7.69043 8.63875 7.69043 8.44C7.69043 8.24125 7.76934 8.05066 7.90979 7.91003C8.05042 7.76958 8.24101 7.69067 8.43976 7.69067C8.63851 7.69067 8.82916 7.76958 8.96979 7.91003L13.9698 12.91L18.9698 7.91003C19.1104 7.76958 19.301 7.69067 19.4998 7.69067C19.6985 7.69067 19.8892 7.76958 20.0298 7.91003C20.1702 8.05066 20.2491 8.24125 20.2491 8.44C20.2491 8.63875 20.1702 8.82941 20.0298 8.97003L15.0298 13.97L20.0298 18.97Z' })
            )
        ) : ''
    );
};

exports.default = Dashboardcards;

/***/ }),
/* 178 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Newfeature = function Newfeature(props) {

    var daSendNewFeatuteSuggestion = pacDaAppLocalizer.apiUrl + '/da/v1/daSendNewFeatuteSuggestion';

    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        newFeatureSent = _useState2[0],
        setNewFeatureSent = _useState2[1];

    var handleNewFeature = function handleNewFeature() {
        if (props.newFeatureName !== '' && props.newFeatureTitle !== '' && props.newFeatureMessage !== '') {
            _axios2.default.post(daSendNewFeatuteSuggestion, {
                name: props.newFeatureName,
                title: props.newFeatureTitle,
                message: props.newFeatureMessage
            }).then(function (res) {
                if (res.data === true) {
                    setNewFeatureSent(true);
                    props.setNewFeatureName('');
                    props.setNewFeatureTitle('');
                    props.setNewFeatureMessage('');
                    setTimeout(function () {
                        setNewFeatureSent(false);
                    }, 3000);
                }
            });
        }
    };

    var handleNewFeatureName = function handleNewFeatureName(e) {
        props.setNewFeatureName(e.target.value);
    };
    var handleNewFeatureTitle = function handleNewFeatureTitle(e) {
        props.setNewFeatureTitle(e.target.value);
    };
    var handleNewFeatureMessage = function handleNewFeatureMessage(e) {
        props.setNewFeatureMessage(e.target.value);
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_newfeature' },
        newFeatureSent === true ? wp.element.createElement(
            'span',
            { className: 'confirmation' },
            'Email Sent Successfully'
        ) : wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
                'div',
                { className: 'title' },
                'New Feature Idea?'
            ),
            wp.element.createElement(
                'div',
                { className: 'description' },
                'If you have a feature suggestion or improvement idea for the Divi Assistant plugin, we would love to hear it! Or maybe you have a totally new addon idea - send us a message to let us know, and we will consider it!'
            ),
            wp.element.createElement(
                'div',
                { className: 'input_fields' },
                wp.element.createElement(
                    'span',
                    { className: 'field_title' },
                    'Your Name'
                ),
                wp.element.createElement('input', { name: 'Title', type: 'text', placeholder: 'Write Your Name Here', value: props.newFeatureName, autoComplete: 'off', onChange: handleNewFeatureName }),
                wp.element.createElement(
                    'span',
                    { className: 'field_title' },
                    'Message Subject'
                ),
                wp.element.createElement('input', { name: 'Title', type: 'text', placeholder: 'Write Title Here', value: props.newFeatureTitle, autoComplete: 'off', onChange: handleNewFeatureTitle }),
                wp.element.createElement(
                    'span',
                    { className: 'field_title' },
                    'Message'
                ),
                wp.element.createElement('textarea', { name: 'Message', placeholder: 'Write Message Here', rows: '4', spellCheck: false, value: props.newFeatureMessage, onChange: handleNewFeatureMessage }),
                wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: handleNewFeature },
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M16.1543 5.86133C15.7921 5.51956 15.3164 5.32368 14.8186 5.31132C14.5807 5.27535 14.3375 5.29968 14.1115 5.38205L4.78504 8.5956C4.46742 8.69915 4.19104 8.90124 3.99607 9.17251C3.80109 9.44378 3.69766 9.7701 3.70075 10.1042C3.69773 10.489 3.83604 10.8616 4.08948 11.1513C4.34293 11.4409 4.69389 11.6275 5.07575 11.6756L9.68789 12.2885L10.3086 16.9241C10.3602 17.3032 10.5483 17.6503 10.8376 17.9006C11.1269 18.1508 11.4975 18.287 11.88 18.2835C12.2071 18.2792 12.5252 18.1754 12.7919 17.9859C13.0585 17.7964 13.2612 17.5302 13.3729 17.2227L16.6414 7.86489C16.7058 7.67736 16.7429 7.48155 16.7515 7.28347V7.24419C16.7572 6.98431 16.7069 6.72624 16.6038 6.48759C16.5008 6.24894 16.3474 6.03532 16.1543 5.86133ZM15.5572 7.2756C15.5572 7.2756 15.5572 7.3856 15.51 7.47203L12.2572 16.7985C12.2281 16.8812 12.1754 16.9537 12.1056 17.0067C12.0357 17.0598 11.9519 17.0912 11.8643 17.097C11.7667 17.0945 11.673 17.0576 11.5998 16.993C11.5265 16.9284 11.4783 16.84 11.4636 16.7435L10.8272 11.9585L13.3415 9.44418C13.4518 9.33369 13.5138 9.18389 13.5138 9.02773C13.5138 8.87157 13.4518 8.72182 13.3415 8.61133C13.2287 8.50235 13.0779 8.44142 12.9211 8.44142C12.7643 8.44142 12.6136 8.50235 12.5008 8.61133L9.96287 11.157L5.24858 10.5285C5.14784 10.5224 5.05353 10.477 4.98593 10.402C4.91833 10.3271 4.88288 10.2286 4.88719 10.1277C4.88445 10.0434 4.90894 9.96038 4.95706 9.89104C5.00517 9.8217 5.07433 9.76972 5.1543 9.74276L14.5043 6.5213C14.5578 6.50274 14.6159 6.50274 14.6693 6.5213H14.8264C15.0206 6.52802 15.2053 6.60642 15.345 6.74132C15.4078 6.80714 15.4568 6.88479 15.4892 6.96979C15.5216 7.05478 15.5367 7.14542 15.5336 7.23633L15.5572 7.2756Z', fill: 'white' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Send Message'
                    )
                )
            )
        )
    );
};
exports.default = Newfeature;

/***/ }),
/* 179 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var AdminSettings = function AdminSettings(props) {

    var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

    var saveData = function saveData() {
        document.getElementById("pac_da_loading_spinner").style.display = 'block';
        _axios2.default.post(updateData, {
            card: 'adminSettings',
            value: JSON.stringify(props.allowAdmin),
            utilityCards: JSON.stringify(props.utilityCards)
        }).then(function (response) {
            document.getElementById("pac_da_loading_spinner").classList.add("saved");
            setTimeout(function () {
                document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                document.getElementById("pac_da_loading_spinner").style.display = 'none';
            }, 1000);
        });
    };

    var toggleValue = function toggleValue(ind, val) {
        props.setAllowAdmin(Object.assign({}, props.allowAdmin, _defineProperty({}, ind, val)));
    };

    var handleDeleteData = function handleDeleteData(val) {
        props.setUtilityCards(Object.assign({}, props.utilityCards, { deleteData: val }));
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_maintaince' },
        wp.element.createElement(
            'div',
            { className: 'save', onClick: saveData },
            wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
                )
            ),
            wp.element.createElement(
                'span',
                null,
                'Save Changes'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'adminSettingsTitle' },
            wp.element.createElement(
                'span',
                { className: 'title' },
                'Divi Assistant Plugin Settings'
            ),
            wp.element.createElement(
                'p',
                { className: 'description' },
                'This page contains any settings related to the Divi Assistant plugin itself.'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'adminSettings' },
            wp.element.createElement(
                'span',
                { className: 'subtitle' },
                'Admin user Access'
            ),
            wp.element.createElement(
                'p',
                { className: 'description' },
                'The Divi Assistant menu item, user interface, and settings only appear to users with the WordPress Administrator role. However, sometimes you may wish to restrict certain administrator users from accessing Divi Assistant settings. This feature allows you to control who can access the Divi Assistant interface and settings. The checkboxes below are used to grant or restrict access. By default, all admin users will have access, but you can deselect the checkmark next to any username to restrict their access by hiding the Divi Assistant menu and settings from them.'
            ),
            wp.element.createElement(
                'div',
                { className: 'pac_da_admin_settings_CB' },
                props.adminsData !== undefined ? Object.keys(props.adminsData).map(function (key) {
                    return wp.element.createElement(
                        'div',
                        { className: 'innerCB', key: key },
                        wp.element.createElement('input', { type: 'checkbox', value: props.allowAdmin[props.adminsData[key].id], checked: props.allowAdmin[props.adminsData[key].id] === true ? true : false, onChange: function onChange() {
                                return toggleValue(props.adminsData[key].id, !props.allowAdmin[props.adminsData[key].id]);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            props.adminsData[key].first_name !== '' || props.adminsData[key].last_name !== '' ? props.adminsData[key].display_name + ' (' + props.adminsData[key].first_name + ' ' + props.adminsData[key].last_name + ')' : props.adminsData[key].display_name
                        )
                    );
                }) : ''
            )
        ),
        wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.utilityCards.deleteData, setBtnValue: handleDeleteData, title: 'Remove Plugin Data When Uninstalled', description: 'This setting will remove all plugin data and saved settings when you uninstall the plugin. Please use this setting carefully with the understanding that if you enable the setting you will lose all saved settings if you uninstall the plugin.' })
    );
};
exports.default = AdminSettings;

/***/ }),
/* 180 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export AlphaPicker */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AlphaPointer__ = __webpack_require__(377);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };







var AlphaPicker = function AlphaPicker(_ref) {
  var rgb = _ref.rgb,
      hsl = _ref.hsl,
      width = _ref.width,
      height = _ref.height,
      onChange = _ref.onChange,
      direction = _ref.direction,
      style = _ref.style,
      renderers = _ref.renderers,
      pointer = _ref.pointer,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        position: 'relative',
        width: width,
        height: height
      },
      alpha: {
        radius: '2px',
        style: style
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'alpha-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["a" /* Alpha */], _extends({}, styles.alpha, {
      rgb: rgb,
      hsl: hsl,
      pointer: pointer,
      renderers: renderers,
      onChange: onChange,
      direction: direction
    }))
  );
};

AlphaPicker.defaultProps = {
  width: '316px',
  height: '16px',
  direction: 'horizontal',
  pointer: __WEBPACK_IMPORTED_MODULE_3__AlphaPointer__["a" /* default */]
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_2__common__["c" /* ColorWrap */])(AlphaPicker));

/***/ }),
/* 181 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.flattenNames = undefined;

var _isString2 = __webpack_require__(182);

var _isString3 = _interopRequireDefault(_isString2);

var _forOwn2 = __webpack_require__(49);

var _forOwn3 = _interopRequireDefault(_forOwn2);

var _isPlainObject2 = __webpack_require__(194);

var _isPlainObject3 = _interopRequireDefault(_isPlainObject2);

var _map2 = __webpack_require__(195);

var _map3 = _interopRequireDefault(_map2);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var flattenNames = exports.flattenNames = function flattenNames() {
  var things = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

  var names = [];

  (0, _map3.default)(things, function (thing) {
    if (Array.isArray(thing)) {
      flattenNames(thing).map(function (name) {
        return names.push(name);
      });
    } else if ((0, _isPlainObject3.default)(thing)) {
      (0, _forOwn3.default)(thing, function (value, key) {
        value === true && names.push(key);
        names.push(key + '-' + value);
      });
    } else if ((0, _isString3.default)(thing)) {
      names.push(thing);
    }
  });

  return names;
};

exports.default = flattenNames;

/***/ }),
/* 182 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    isArray = __webpack_require__(10),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var stringTag = '[object String]';

/**
 * Checks if `value` is classified as a `String` primitive or object.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
 * @example
 *
 * _.isString('abc');
 * // => true
 *
 * _.isString(1);
 * // => false
 */
function isString(value) {
  return typeof value == 'string' ||
    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
}

module.exports = isString;


/***/ }),
/* 183 */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(26);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

module.exports = getRawTag;


/***/ }),
/* 184 */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

module.exports = objectToString;


/***/ }),
/* 185 */
/***/ (function(module, exports, __webpack_require__) {

var createBaseFor = __webpack_require__(186);

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = createBaseFor();

module.exports = baseFor;


/***/ }),
/* 186 */
/***/ (function(module, exports) {

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

module.exports = createBaseFor;


/***/ }),
/* 187 */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

module.exports = baseTimes;


/***/ }),
/* 188 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return isObjectLike(value) && baseGetTag(value) == argsTag;
}

module.exports = baseIsArguments;


/***/ }),
/* 189 */
/***/ (function(module, exports) {

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

module.exports = stubFalse;


/***/ }),
/* 190 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    isLength = __webpack_require__(51),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return isObjectLike(value) &&
    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}

module.exports = baseIsTypedArray;


/***/ }),
/* 191 */
/***/ (function(module, exports, __webpack_require__) {

var isPrototype = __webpack_require__(54),
    nativeKeys = __webpack_require__(192);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!isPrototype(object)) {
    return nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeys;


/***/ }),
/* 192 */
/***/ (function(module, exports, __webpack_require__) {

var overArg = __webpack_require__(98);

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);

module.exports = nativeKeys;


/***/ }),
/* 193 */
/***/ (function(module, exports, __webpack_require__) {

var identity = __webpack_require__(100);

/**
 * Casts `value` to `identity` if it's not a function.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Function} Returns cast function.
 */
function castFunction(value) {
  return typeof value == 'function' ? value : identity;
}

module.exports = castFunction;


/***/ }),
/* 194 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetTag = __webpack_require__(17),
    getPrototype = __webpack_require__(55),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
    return false;
  }
  var proto = getPrototype(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

module.exports = isPlainObject;


/***/ }),
/* 195 */
/***/ (function(module, exports, __webpack_require__) {

var arrayMap = __webpack_require__(101),
    baseIteratee = __webpack_require__(196),
    baseMap = __webpack_require__(254),
    isArray = __webpack_require__(10);

/**
 * Creates an array of values by running each element in `collection` thru
 * `iteratee`. The iteratee is invoked with three arguments:
 * (value, index|key, collection).
 *
 * Many lodash methods are guarded to work as iteratees for methods like
 * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
 *
 * The guarded methods are:
 * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
 * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
 * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * _.map([4, 8], square);
 * // => [16, 64]
 *
 * _.map({ 'a': 4, 'b': 8 }, square);
 * // => [16, 64] (iteration order is not guaranteed)
 *
 * var users = [
 *   { 'user': 'barney' },
 *   { 'user': 'fred' }
 * ];
 *
 * // The `_.property` iteratee shorthand.
 * _.map(users, 'user');
 * // => ['barney', 'fred']
 */
function map(collection, iteratee) {
  var func = isArray(collection) ? arrayMap : baseMap;
  return func(collection, baseIteratee(iteratee, 3));
}

module.exports = map;


/***/ }),
/* 196 */
/***/ (function(module, exports, __webpack_require__) {

var baseMatches = __webpack_require__(197),
    baseMatchesProperty = __webpack_require__(241),
    identity = __webpack_require__(100),
    isArray = __webpack_require__(10),
    property = __webpack_require__(251);

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == 'object') {
    return isArray(value)
      ? baseMatchesProperty(value[0], value[1])
      : baseMatches(value);
  }
  return property(value);
}

module.exports = baseIteratee;


/***/ }),
/* 197 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMatch = __webpack_require__(198),
    getMatchData = __webpack_require__(240),
    matchesStrictComparable = __webpack_require__(111);

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || baseIsMatch(object, source, matchData);
  };
}

module.exports = baseMatches;


/***/ }),
/* 198 */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(56),
    baseIsEqual = __webpack_require__(103);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new Stack;
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

module.exports = baseIsMatch;


/***/ }),
/* 199 */
/***/ (function(module, exports) {

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

module.exports = listCacheClear;


/***/ }),
/* 200 */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(34);

/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

module.exports = listCacheDelete;


/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(34);

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  return index < 0 ? undefined : data[index][1];
}

module.exports = listCacheGet;


/***/ }),
/* 202 */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(34);

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return assocIndexOf(this.__data__, key) > -1;
}

module.exports = listCacheHas;


/***/ }),
/* 203 */
/***/ (function(module, exports, __webpack_require__) {

var assocIndexOf = __webpack_require__(34);

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = assocIndexOf(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

module.exports = listCacheSet;


/***/ }),
/* 204 */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(33);

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new ListCache;
  this.size = 0;
}

module.exports = stackClear;


/***/ }),
/* 205 */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

module.exports = stackDelete;


/***/ }),
/* 206 */
/***/ (function(module, exports) {

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

module.exports = stackGet;


/***/ }),
/* 207 */
/***/ (function(module, exports) {

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

module.exports = stackHas;


/***/ }),
/* 208 */
/***/ (function(module, exports, __webpack_require__) {

var ListCache = __webpack_require__(33),
    Map = __webpack_require__(58),
    MapCache = __webpack_require__(59);

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof ListCache) {
    var pairs = data.__data__;
    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new MapCache(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

module.exports = stackSet;


/***/ }),
/* 209 */
/***/ (function(module, exports, __webpack_require__) {

var isFunction = __webpack_require__(99),
    isMasked = __webpack_require__(210),
    isObject = __webpack_require__(22),
    toSource = __webpack_require__(102);

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!isObject(value) || isMasked(value)) {
    return false;
  }
  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource(value));
}

module.exports = baseIsNative;


/***/ }),
/* 210 */
/***/ (function(module, exports, __webpack_require__) {

var coreJsData = __webpack_require__(211);

/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

module.exports = isMasked;


/***/ }),
/* 211 */
/***/ (function(module, exports, __webpack_require__) {

var root = __webpack_require__(15);

/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];

module.exports = coreJsData;


/***/ }),
/* 212 */
/***/ (function(module, exports) {

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

module.exports = getValue;


/***/ }),
/* 213 */
/***/ (function(module, exports, __webpack_require__) {

var Hash = __webpack_require__(214),
    ListCache = __webpack_require__(33),
    Map = __webpack_require__(58);

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;


/***/ }),
/* 214 */
/***/ (function(module, exports, __webpack_require__) {

var hashClear = __webpack_require__(215),
    hashDelete = __webpack_require__(216),
    hashGet = __webpack_require__(217),
    hashHas = __webpack_require__(218),
    hashSet = __webpack_require__(219);

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;

module.exports = Hash;


/***/ }),
/* 215 */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(35);

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = nativeCreate ? nativeCreate(null) : {};
  this.size = 0;
}

module.exports = hashClear;


/***/ }),
/* 216 */
/***/ (function(module, exports) {

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = hashDelete;


/***/ }),
/* 217 */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(35);

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

module.exports = hashGet;


/***/ }),
/* 218 */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(35);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

module.exports = hashHas;


/***/ }),
/* 219 */
/***/ (function(module, exports, __webpack_require__) {

var nativeCreate = __webpack_require__(35);

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

module.exports = hashSet;


/***/ }),
/* 220 */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(36);

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

module.exports = mapCacheDelete;


/***/ }),
/* 221 */
/***/ (function(module, exports) {

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

module.exports = isKeyable;


/***/ }),
/* 222 */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(36);

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return getMapData(this, key).get(key);
}

module.exports = mapCacheGet;


/***/ }),
/* 223 */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(36);

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return getMapData(this, key).has(key);
}

module.exports = mapCacheHas;


/***/ }),
/* 224 */
/***/ (function(module, exports, __webpack_require__) {

var getMapData = __webpack_require__(36);

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = getMapData(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

module.exports = mapCacheSet;


/***/ }),
/* 225 */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(56),
    equalArrays = __webpack_require__(104),
    equalByTag = __webpack_require__(231),
    equalObjects = __webpack_require__(234),
    getTag = __webpack_require__(37),
    isArray = __webpack_require__(10),
    isBuffer = __webpack_require__(50),
    isTypedArray = __webpack_require__(97);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray(object),
      othIsArr = isArray(other),
      objTag = objIsArr ? arrayTag : getTag(object),
      othTag = othIsArr ? arrayTag : getTag(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && isBuffer(object)) {
    if (!isBuffer(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack);
    return (objIsArr || isTypedArray(object))
      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new Stack);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack);
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}

module.exports = baseIsEqualDeep;


/***/ }),
/* 226 */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(59),
    setCacheAdd = __webpack_require__(227),
    setCacheHas = __webpack_require__(228);

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new MapCache;
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;

module.exports = SetCache;


/***/ }),
/* 227 */
/***/ (function(module, exports) {

/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

module.exports = setCacheAdd;


/***/ }),
/* 228 */
/***/ (function(module, exports) {

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

module.exports = setCacheHas;


/***/ }),
/* 229 */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

module.exports = arraySome;


/***/ }),
/* 230 */
/***/ (function(module, exports) {

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

module.exports = cacheHas;


/***/ }),
/* 231 */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(26),
    Uint8Array = __webpack_require__(105),
    eq = __webpack_require__(57),
    equalArrays = __webpack_require__(104),
    mapToArray = __webpack_require__(232),
    setToArray = __webpack_require__(233);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return eq(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = mapToArray;

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = setToArray);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

module.exports = equalByTag;


/***/ }),
/* 232 */
/***/ (function(module, exports) {

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

module.exports = mapToArray;


/***/ }),
/* 233 */
/***/ (function(module, exports) {

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

module.exports = setToArray;


/***/ }),
/* 234 */
/***/ (function(module, exports, __webpack_require__) {

var getAllKeys = __webpack_require__(106);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = getAllKeys(object),
      objLength = objProps.length,
      othProps = getAllKeys(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Check that cyclic values are equal.
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);

  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
        othValue = other[key];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, objValue, key, other, object, stack)
        : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined
          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
          : compared
        )) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
        othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor &&
        ('constructor' in object && 'constructor' in other) &&
        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}

module.exports = equalObjects;


/***/ }),
/* 235 */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

module.exports = arrayFilter;


/***/ }),
/* 236 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18),
    root = __webpack_require__(15);

/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');

module.exports = DataView;


/***/ }),
/* 237 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18),
    root = __webpack_require__(15);

/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');

module.exports = Promise;


/***/ }),
/* 238 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18),
    root = __webpack_require__(15);

/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');

module.exports = Set;


/***/ }),
/* 239 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18),
    root = __webpack_require__(15);

/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');

module.exports = WeakMap;


/***/ }),
/* 240 */
/***/ (function(module, exports, __webpack_require__) {

var isStrictComparable = __webpack_require__(110),
    keys = __webpack_require__(27);

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = keys(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, isStrictComparable(value)];
  }
  return result;
}

module.exports = getMatchData;


/***/ }),
/* 241 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsEqual = __webpack_require__(103),
    get = __webpack_require__(242),
    hasIn = __webpack_require__(248),
    isKey = __webpack_require__(61),
    isStrictComparable = __webpack_require__(110),
    matchesStrictComparable = __webpack_require__(111),
    toKey = __webpack_require__(38);

/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? hasIn(object, path)
      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

module.exports = baseMatchesProperty;


/***/ }),
/* 242 */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(112);

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : baseGet(object, path);
  return result === undefined ? defaultValue : result;
}

module.exports = get;


/***/ }),
/* 243 */
/***/ (function(module, exports, __webpack_require__) {

var memoizeCapped = __webpack_require__(244);

/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = memoizeCapped(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

module.exports = stringToPath;


/***/ }),
/* 244 */
/***/ (function(module, exports, __webpack_require__) {

var memoize = __webpack_require__(245);

/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = memoize(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

module.exports = memoizeCapped;


/***/ }),
/* 245 */
/***/ (function(module, exports, __webpack_require__) {

var MapCache = __webpack_require__(59);

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || MapCache);
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = MapCache;

module.exports = memoize;


/***/ }),
/* 246 */
/***/ (function(module, exports, __webpack_require__) {

var baseToString = __webpack_require__(247);

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : baseToString(value);
}

module.exports = toString;


/***/ }),
/* 247 */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(26),
    arrayMap = __webpack_require__(101),
    isArray = __webpack_require__(10),
    isSymbol = __webpack_require__(62);

/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (isArray(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return arrayMap(value, baseToString) + '';
  }
  if (isSymbol(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

module.exports = baseToString;


/***/ }),
/* 248 */
/***/ (function(module, exports, __webpack_require__) {

var baseHasIn = __webpack_require__(249),
    hasPath = __webpack_require__(250);

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && hasPath(object, path, baseHasIn);
}

module.exports = hasIn;


/***/ }),
/* 249 */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

module.exports = baseHasIn;


/***/ }),
/* 250 */
/***/ (function(module, exports, __webpack_require__) {

var castPath = __webpack_require__(113),
    isArguments = __webpack_require__(95),
    isArray = __webpack_require__(10),
    isIndex = __webpack_require__(96),
    isLength = __webpack_require__(51),
    toKey = __webpack_require__(38);

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = castPath(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && isLength(length) && isIndex(key, length) &&
    (isArray(object) || isArguments(object));
}

module.exports = hasPath;


/***/ }),
/* 251 */
/***/ (function(module, exports, __webpack_require__) {

var baseProperty = __webpack_require__(252),
    basePropertyDeep = __webpack_require__(253),
    isKey = __webpack_require__(61),
    toKey = __webpack_require__(38);

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}

module.exports = property;


/***/ }),
/* 252 */
/***/ (function(module, exports) {

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;


/***/ }),
/* 253 */
/***/ (function(module, exports, __webpack_require__) {

var baseGet = __webpack_require__(112);

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return baseGet(object, path);
  };
}

module.exports = basePropertyDeep;


/***/ }),
/* 254 */
/***/ (function(module, exports, __webpack_require__) {

var baseEach = __webpack_require__(255),
    isArrayLike = __webpack_require__(32);

/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function baseMap(collection, iteratee) {
  var index = -1,
      result = isArrayLike(collection) ? Array(collection.length) : [];

  baseEach(collection, function(value, key, collection) {
    result[++index] = iteratee(value, key, collection);
  });
  return result;
}

module.exports = baseMap;


/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {

var baseForOwn = __webpack_require__(93),
    createBaseEach = __webpack_require__(256);

/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */
var baseEach = createBaseEach(baseForOwn);

module.exports = baseEach;


/***/ }),
/* 256 */
/***/ (function(module, exports, __webpack_require__) {

var isArrayLike = __webpack_require__(32);

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseEach(eachFunc, fromRight) {
  return function(collection, iteratee) {
    if (collection == null) {
      return collection;
    }
    if (!isArrayLike(collection)) {
      return eachFunc(collection, iteratee);
    }
    var length = collection.length,
        index = fromRight ? length : -1,
        iterable = Object(collection);

    while ((fromRight ? index-- : ++index < length)) {
      if (iteratee(iterable[index], index, iterable) === false) {
        break;
      }
    }
    return collection;
  };
}

module.exports = createBaseEach;


/***/ }),
/* 257 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mergeClasses = undefined;

var _forOwn2 = __webpack_require__(49);

var _forOwn3 = _interopRequireDefault(_forOwn2);

var _cloneDeep2 = __webpack_require__(258);

var _cloneDeep3 = _interopRequireDefault(_cloneDeep2);

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var mergeClasses = exports.mergeClasses = function mergeClasses(classes) {
  var activeNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

  var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
  activeNames.map(function (name) {
    var toMerge = classes[name];
    if (toMerge) {
      (0, _forOwn3.default)(toMerge, function (value, key) {
        if (!styles[key]) {
          styles[key] = {};
        }

        styles[key] = _extends({}, styles[key], toMerge[key]);
      });
    }

    return name;
  });
  return styles;
};

exports.default = mergeClasses;

/***/ }),
/* 258 */
/***/ (function(module, exports, __webpack_require__) {

var baseClone = __webpack_require__(259);

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}

module.exports = cloneDeep;


/***/ }),
/* 259 */
/***/ (function(module, exports, __webpack_require__) {

var Stack = __webpack_require__(56),
    arrayEach = __webpack_require__(260),
    assignValue = __webpack_require__(114),
    baseAssign = __webpack_require__(262),
    baseAssignIn = __webpack_require__(263),
    cloneBuffer = __webpack_require__(266),
    copyArray = __webpack_require__(267),
    copySymbols = __webpack_require__(268),
    copySymbolsIn = __webpack_require__(269),
    getAllKeys = __webpack_require__(106),
    getAllKeysIn = __webpack_require__(270),
    getTag = __webpack_require__(37),
    initCloneArray = __webpack_require__(271),
    initCloneByTag = __webpack_require__(272),
    initCloneObject = __webpack_require__(277),
    isArray = __webpack_require__(10),
    isBuffer = __webpack_require__(50),
    isMap = __webpack_require__(279),
    isObject = __webpack_require__(22),
    isSet = __webpack_require__(281),
    keys = __webpack_require__(27),
    keysIn = __webpack_require__(63);

/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
    CLONE_FLAT_FLAG = 2,
    CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    genTag = '[object GeneratorFunction]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
      isDeep = bitmask & CLONE_DEEP_FLAG,
      isFlat = bitmask & CLONE_FLAT_FLAG,
      isFull = bitmask & CLONE_SYMBOLS_FLAG;

  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!isObject(value)) {
    return value;
  }
  var isArr = isArray(value);
  if (isArr) {
    result = initCloneArray(value);
    if (!isDeep) {
      return copyArray(value, result);
    }
  } else {
    var tag = getTag(value),
        isFunc = tag == funcTag || tag == genTag;

    if (isBuffer(value)) {
      return cloneBuffer(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
      result = (isFlat || isFunc) ? {} : initCloneObject(value);
      if (!isDeep) {
        return isFlat
          ? copySymbolsIn(value, baseAssignIn(result, value))
          : copySymbols(value, baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new Stack);
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);

  if (isSet(value)) {
    value.forEach(function(subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (isMap(value)) {
    value.forEach(function(subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }

  var keysFunc = isFull
    ? (isFlat ? getAllKeysIn : getAllKeys)
    : (isFlat ? keysIn : keys);

  var props = isArr ? undefined : keysFunc(value);
  arrayEach(props || value, function(subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}

module.exports = baseClone;


/***/ }),
/* 260 */
/***/ (function(module, exports) {

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

module.exports = arrayEach;


/***/ }),
/* 261 */
/***/ (function(module, exports, __webpack_require__) {

var getNative = __webpack_require__(18);

var defineProperty = (function() {
  try {
    var func = getNative(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}());

module.exports = defineProperty;


/***/ }),
/* 262 */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(39),
    keys = __webpack_require__(27);

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && copyObject(source, keys(source), object);
}

module.exports = baseAssign;


/***/ }),
/* 263 */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(39),
    keysIn = __webpack_require__(63);

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && copyObject(source, keysIn(source), object);
}

module.exports = baseAssignIn;


/***/ }),
/* 264 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(22),
    isPrototype = __webpack_require__(54),
    nativeKeysIn = __webpack_require__(265);

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!isObject(object)) {
    return nativeKeysIn(object);
  }
  var isProto = isPrototype(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

module.exports = baseKeysIn;


/***/ }),
/* 265 */
/***/ (function(module, exports) {

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

module.exports = nativeKeysIn;


/***/ }),
/* 266 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(15);

/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

module.exports = cloneBuffer;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)(module)))

/***/ }),
/* 267 */
/***/ (function(module, exports) {

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

module.exports = copyArray;


/***/ }),
/* 268 */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(39),
    getSymbols = __webpack_require__(60);

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return copyObject(source, getSymbols(source), object);
}

module.exports = copySymbols;


/***/ }),
/* 269 */
/***/ (function(module, exports, __webpack_require__) {

var copyObject = __webpack_require__(39),
    getSymbolsIn = __webpack_require__(116);

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return copyObject(source, getSymbolsIn(source), object);
}

module.exports = copySymbolsIn;


/***/ }),
/* 270 */
/***/ (function(module, exports, __webpack_require__) {

var baseGetAllKeys = __webpack_require__(107),
    getSymbolsIn = __webpack_require__(116),
    keysIn = __webpack_require__(63);

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return baseGetAllKeys(object, keysIn, getSymbolsIn);
}

module.exports = getAllKeysIn;


/***/ }),
/* 271 */
/***/ (function(module, exports) {

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
      result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}

module.exports = initCloneArray;


/***/ }),
/* 272 */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(64),
    cloneDataView = __webpack_require__(273),
    cloneRegExp = __webpack_require__(274),
    cloneSymbol = __webpack_require__(275),
    cloneTypedArray = __webpack_require__(276);

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return cloneArrayBuffer(object);

    case boolTag:
    case dateTag:
      return new Ctor(+object);

    case dataViewTag:
      return cloneDataView(object, isDeep);

    case float32Tag: case float64Tag:
    case int8Tag: case int16Tag: case int32Tag:
    case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
      return cloneTypedArray(object, isDeep);

    case mapTag:
      return new Ctor;

    case numberTag:
    case stringTag:
      return new Ctor(object);

    case regexpTag:
      return cloneRegExp(object);

    case setTag:
      return new Ctor;

    case symbolTag:
      return cloneSymbol(object);
  }
}

module.exports = initCloneByTag;


/***/ }),
/* 273 */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(64);

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}

module.exports = cloneDataView;


/***/ }),
/* 274 */
/***/ (function(module, exports) {

/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}

module.exports = cloneRegExp;


/***/ }),
/* 275 */
/***/ (function(module, exports, __webpack_require__) {

var Symbol = __webpack_require__(26);

/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}

module.exports = cloneSymbol;


/***/ }),
/* 276 */
/***/ (function(module, exports, __webpack_require__) {

var cloneArrayBuffer = __webpack_require__(64);

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

module.exports = cloneTypedArray;


/***/ }),
/* 277 */
/***/ (function(module, exports, __webpack_require__) {

var baseCreate = __webpack_require__(278),
    getPrototype = __webpack_require__(55),
    isPrototype = __webpack_require__(54);

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !isPrototype(object))
    ? baseCreate(getPrototype(object))
    : {};
}

module.exports = initCloneObject;


/***/ }),
/* 278 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(22);

/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!isObject(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

module.exports = baseCreate;


/***/ }),
/* 279 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsMap = __webpack_require__(280),
    baseUnary = __webpack_require__(52),
    nodeUtil = __webpack_require__(53);

/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;

module.exports = isMap;


/***/ }),
/* 280 */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(37),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return isObjectLike(value) && getTag(value) == mapTag;
}

module.exports = baseIsMap;


/***/ }),
/* 281 */
/***/ (function(module, exports, __webpack_require__) {

var baseIsSet = __webpack_require__(282),
    baseUnary = __webpack_require__(52),
    nodeUtil = __webpack_require__(53);

/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;

module.exports = isSet;


/***/ }),
/* 282 */
/***/ (function(module, exports, __webpack_require__) {

var getTag = __webpack_require__(37),
    isObjectLike = __webpack_require__(16);

/** `Object#toString` result references. */
var setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return isObjectLike(value) && getTag(value) == setTag;
}

module.exports = baseIsSet;


/***/ }),
/* 283 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.autoprefix = undefined;

var _forOwn2 = __webpack_require__(49);

var _forOwn3 = _interopRequireDefault(_forOwn2);

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var transforms = {
  borderRadius: function borderRadius(value) {
    return {
      msBorderRadius: value,
      MozBorderRadius: value,
      OBorderRadius: value,
      WebkitBorderRadius: value,
      borderRadius: value
    };
  },
  boxShadow: function boxShadow(value) {
    return {
      msBoxShadow: value,
      MozBoxShadow: value,
      OBoxShadow: value,
      WebkitBoxShadow: value,
      boxShadow: value
    };
  },
  userSelect: function userSelect(value) {
    return {
      WebkitTouchCallout: value,
      KhtmlUserSelect: value,
      MozUserSelect: value,
      msUserSelect: value,
      WebkitUserSelect: value,
      userSelect: value
    };
  },

  flex: function flex(value) {
    return {
      WebkitBoxFlex: value,
      MozBoxFlex: value,
      WebkitFlex: value,
      msFlex: value,
      flex: value
    };
  },
  flexBasis: function flexBasis(value) {
    return {
      WebkitFlexBasis: value,
      flexBasis: value
    };
  },
  justifyContent: function justifyContent(value) {
    return {
      WebkitJustifyContent: value,
      justifyContent: value
    };
  },

  transition: function transition(value) {
    return {
      msTransition: value,
      MozTransition: value,
      OTransition: value,
      WebkitTransition: value,
      transition: value
    };
  },

  transform: function transform(value) {
    return {
      msTransform: value,
      MozTransform: value,
      OTransform: value,
      WebkitTransform: value,
      transform: value
    };
  },
  absolute: function absolute(value) {
    var direction = value && value.split(' ');
    return {
      position: 'absolute',
      top: direction && direction[0],
      right: direction && direction[1],
      bottom: direction && direction[2],
      left: direction && direction[3]
    };
  },
  extend: function extend(name, otherElementStyles) {
    var otherStyle = otherElementStyles[name];
    if (otherStyle) {
      return otherStyle;
    }
    return {
      'extend': name
    };
  }
};

var autoprefix = exports.autoprefix = function autoprefix(elements) {
  var prefixed = {};
  (0, _forOwn3.default)(elements, function (styles, element) {
    var expanded = {};
    (0, _forOwn3.default)(styles, function (value, key) {
      var transform = transforms[key];
      if (transform) {
        expanded = _extends({}, expanded, transform(value));
      } else {
        expanded[key] = value;
      }
    });
    prefixed[element] = expanded;
  });
  return prefixed;
};

exports.default = autoprefix;

/***/ }),
/* 284 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hover = undefined;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var hover = exports.hover = function hover(Component) {
  var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';

  return function (_React$Component) {
    _inherits(Hover, _React$Component);

    function Hover() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, Hover);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function () {
        return _this.setState({ hover: true });
      }, _this.handleMouseOut = function () {
        return _this.setState({ hover: false });
      }, _this.render = function () {
        return _react2.default.createElement(
          Span,
          { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut },
          _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
        );
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    return Hover;
  }(_react2.default.Component);
};

exports.default = hover;

/***/ }),
/* 285 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.active = undefined;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var active = exports.active = function active(Component) {
  var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';

  return function (_React$Component) {
    _inherits(Active, _React$Component);

    function Active() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, Active);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function () {
        return _this.setState({ active: true });
      }, _this.handleMouseUp = function () {
        return _this.setState({ active: false });
      }, _this.render = function () {
        return _react2.default.createElement(
          Span,
          { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp },
          _react2.default.createElement(Component, _extends({}, _this.props, _this.state))
        );
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    return Active;
  }(_react2.default.Component);
};

exports.default = active;

/***/ }),
/* 286 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var loopable = function loopable(i, length) {
  var props = {};
  var setProp = function setProp(name) {
    var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

    props[name] = value;
  };

  i === 0 && setProp('first-child');
  i === length - 1 && setProp('last-child');
  (i === 0 || i % 2 === 0) && setProp('even');
  Math.abs(i % 2) === 1 && setProp('odd');
  setProp('nth-child', i);

  return props;
};

exports.default = loopable;

/***/ }),
/* 287 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Alpha */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_alpha__ = __webpack_require__(288);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Checkboard__ = __webpack_require__(65);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }







var Alpha = function (_ref) {
  _inherits(Alpha, _ref);

  function Alpha() {
    var _ref2;

    var _temp, _this, _ret;

    _classCallCheck(this, Alpha);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Alpha.__proto__ || Object.getPrototypeOf(Alpha)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
      var change = __WEBPACK_IMPORTED_MODULE_2__helpers_alpha__["a" /* calculateChange */](e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
      change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
    }, _this.handleMouseDown = function (e) {
      _this.handleChange(e);
      window.addEventListener('mousemove', _this.handleChange);
      window.addEventListener('mouseup', _this.handleMouseUp);
    }, _this.handleMouseUp = function () {
      _this.unbindEventListeners();
    }, _this.unbindEventListeners = function () {
      window.removeEventListener('mousemove', _this.handleChange);
      window.removeEventListener('mouseup', _this.handleMouseUp);
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Alpha, [{
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.unbindEventListeners();
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var rgb = this.props.rgb;
      var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
        'default': {
          alpha: {
            absolute: '0px 0px 0px 0px',
            borderRadius: this.props.radius
          },
          checkboard: {
            absolute: '0px 0px 0px 0px',
            overflow: 'hidden',
            borderRadius: this.props.radius
          },
          gradient: {
            absolute: '0px 0px 0px 0px',
            background: 'linear-gradient(to right, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n           rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)',
            boxShadow: this.props.shadow,
            borderRadius: this.props.radius
          },
          container: {
            position: 'relative',
            height: '100%',
            margin: '0 3px'
          },
          pointer: {
            position: 'absolute',
            left: rgb.a * 100 + '%'
          },
          slider: {
            width: '4px',
            borderRadius: '1px',
            height: '8px',
            boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
            background: '#fff',
            marginTop: '1px',
            transform: 'translateX(-2px)'
          }
        },
        'vertical': {
          gradient: {
            background: 'linear-gradient(to bottom, rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 0) 0%,\n           rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ', 1) 100%)'
          },
          pointer: {
            left: 0,
            top: rgb.a * 100 + '%'
          }
        },
        'overwrite': _extends({}, this.props.style)
      }, {
        vertical: this.props.direction === 'vertical',
        overwrite: true
      });

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.alpha },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.checkboard },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__Checkboard__["a" /* default */], { renderers: this.props.renderers })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.gradient }),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          {
            style: styles.container,
            ref: function ref(container) {
              return _this2.container = container;
            },
            onMouseDown: this.handleMouseDown,
            onTouchMove: this.handleChange,
            onTouchStart: this.handleChange
          },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.pointer },
            this.props.pointer ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(this.props.pointer, this.props) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.slider })
          )
        )
      );
    }
  }]);

  return Alpha;
}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);

/* harmony default export */ __webpack_exports__["a"] = (Alpha);

/***/ }),
/* 288 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return calculateChange; });
var calculateChange = function calculateChange(e, hsl, direction, initialA, container) {
  var containerWidth = container.clientWidth;
  var containerHeight = container.clientHeight;
  var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  var top = y - (container.getBoundingClientRect().top + window.pageYOffset);

  if (direction === 'vertical') {
    var a = void 0;
    if (top < 0) {
      a = 0;
    } else if (top > containerHeight) {
      a = 1;
    } else {
      a = Math.round(top * 100 / containerHeight) / 100;
    }

    if (hsl.a !== a) {
      return {
        h: hsl.h,
        s: hsl.s,
        l: hsl.l,
        a: a,
        source: 'rgb'
      };
    }
  } else {
    var _a = void 0;
    if (left < 0) {
      _a = 0;
    } else if (left > containerWidth) {
      _a = 1;
    } else {
      _a = Math.round(left * 100 / containerWidth) / 100;
    }

    if (initialA !== _a) {
      return {
        h: hsl.h,
        s: hsl.s,
        l: hsl.l,
        a: _a,
        source: 'rgb'
      };
    }
  }
  return null;
};

/***/ }),
/* 289 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export render */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return get; });
var checkboardCache = {};

var render = function render(c1, c2, size, serverCanvas) {
  if (typeof document === 'undefined' && !serverCanvas) {
    return null;
  }
  var canvas = serverCanvas ? new serverCanvas() : document.createElement('canvas');
  canvas.width = size * 2;
  canvas.height = size * 2;
  var ctx = canvas.getContext('2d');
  if (!ctx) {
    return null;
  } // If no context can be found, return early.
  ctx.fillStyle = c1;
  ctx.fillRect(0, 0, canvas.width, canvas.height);
  ctx.fillStyle = c2;
  ctx.fillRect(0, 0, size, size);
  ctx.translate(size, size);
  ctx.fillRect(0, 0, size, size);
  return canvas.toDataURL();
};

var get = function get(c1, c2, size, serverCanvas) {
  var key = c1 + '-' + c2 + '-' + size + (serverCanvas ? '-server' : '');

  if (checkboardCache[key]) {
    return checkboardCache[key];
  }

  var checkboard = render(c1, c2, size, serverCanvas);
  checkboardCache[key] = checkboard;
  return checkboard;
};

/***/ }),
/* 290 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export EditableInput */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }




var DEFAULT_ARROW_OFFSET = 1;

var UP_KEY_CODE = 38;
var DOWN_KEY_CODE = 40;
var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE];
var isValidKeyCode = function isValidKeyCode(keyCode) {
  return VALID_KEY_CODES.indexOf(keyCode) > -1;
};
var getNumberValue = function getNumberValue(value) {
  return Number(String(value).replace(/%/g, ''));
};

var idCounter = 1;

var EditableInput = function (_ref) {
  _inherits(EditableInput, _ref);

  function EditableInput(props) {
    _classCallCheck(this, EditableInput);

    var _this = _possibleConstructorReturn(this, (EditableInput.__proto__ || Object.getPrototypeOf(EditableInput)).call(this));

    _this.handleBlur = function () {
      if (_this.state.blurValue) {
        _this.setState({ value: _this.state.blurValue, blurValue: null });
      }
    };

    _this.handleChange = function (e) {
      _this.setUpdatedValue(e.target.value, e);
    };

    _this.handleKeyDown = function (e) {
      // In case `e.target.value` is a percentage remove the `%` character
      // and update accordingly with a percentage
      // https://github.com/casesandberg/react-color/issues/383
      var value = getNumberValue(e.target.value);
      if (!isNaN(value) && isValidKeyCode(e.keyCode)) {
        var offset = _this.getArrowOffset();
        var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset;

        _this.setUpdatedValue(updatedValue, e);
      }
    };

    _this.handleDrag = function (e) {
      if (_this.props.dragLabel) {
        var newValue = Math.round(_this.props.value + e.movementX);
        if (newValue >= 0 && newValue <= _this.props.dragMax) {
          _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e);
        }
      }
    };

    _this.handleMouseDown = function (e) {
      if (_this.props.dragLabel) {
        e.preventDefault();
        _this.handleDrag(e);
        window.addEventListener('mousemove', _this.handleDrag);
        window.addEventListener('mouseup', _this.handleMouseUp);
      }
    };

    _this.handleMouseUp = function () {
      _this.unbindEventListeners();
    };

    _this.unbindEventListeners = function () {
      window.removeEventListener('mousemove', _this.handleDrag);
      window.removeEventListener('mouseup', _this.handleMouseUp);
    };

    _this.state = {
      value: String(props.value).toUpperCase(),
      blurValue: String(props.value).toUpperCase()
    };

    _this.inputId = 'rc-editable-input-' + idCounter++;
    return _this;
  }

  _createClass(EditableInput, [{
    key: 'componentDidUpdate',
    value: function componentDidUpdate(prevProps, prevState) {
      if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
        if (this.input === document.activeElement) {
          this.setState({ blurValue: String(this.props.value).toUpperCase() });
        } else {
          this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() });
        }
      }
    }
  }, {
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.unbindEventListeners();
    }
  }, {
    key: 'getValueObjectWithLabel',
    value: function getValueObjectWithLabel(value) {
      return _defineProperty({}, this.props.label, value);
    }
  }, {
    key: 'getArrowOffset',
    value: function getArrowOffset() {
      return this.props.arrowOffset || DEFAULT_ARROW_OFFSET;
    }
  }, {
    key: 'setUpdatedValue',
    value: function setUpdatedValue(value, e) {
      var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value;
      this.props.onChange && this.props.onChange(onChangeValue, e);

      this.setState({ value: value });
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
        'default': {
          wrap: {
            position: 'relative'
          }
        },
        'user-override': {
          wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
          input: this.props.style && this.props.style.input ? this.props.style.input : {},
          label: this.props.style && this.props.style.label ? this.props.style.label : {}
        },
        'dragLabel-true': {
          label: {
            cursor: 'ew-resize'
          }
        }
      }, {
        'user-override': true
      }, this.props);

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.wrap },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('input', {
          id: this.inputId,
          style: styles.input,
          ref: function ref(input) {
            return _this2.input = input;
          },
          value: this.state.value,
          onKeyDown: this.handleKeyDown,
          onChange: this.handleChange,
          onBlur: this.handleBlur,
          placeholder: this.props.placeholder,
          spellCheck: 'false'
        }),
        this.props.label && !this.props.hideLabel ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'label',
          {
            htmlFor: this.inputId,
            style: styles.label,
            onMouseDown: this.handleMouseDown
          },
          this.props.label
        ) : null
      );
    }
  }]);

  return EditableInput;
}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);

/* harmony default export */ __webpack_exports__["a"] = (EditableInput);

/***/ }),
/* 291 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Hue */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_hue__ = __webpack_require__(292);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }





var Hue = function (_ref) {
  _inherits(Hue, _ref);

  function Hue() {
    var _ref2;

    var _temp, _this, _ret;

    _classCallCheck(this, Hue);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref2 = Hue.__proto__ || Object.getPrototypeOf(Hue)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function (e) {
      var change = __WEBPACK_IMPORTED_MODULE_2__helpers_hue__["a" /* calculateChange */](e, _this.props.direction, _this.props.hsl, _this.container);
      change && typeof _this.props.onChange === 'function' && _this.props.onChange(change, e);
    }, _this.handleMouseDown = function (e) {
      _this.handleChange(e);
      window.addEventListener('mousemove', _this.handleChange);
      window.addEventListener('mouseup', _this.handleMouseUp);
    }, _this.handleMouseUp = function () {
      _this.unbindEventListeners();
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

  _createClass(Hue, [{
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.unbindEventListeners();
    }
  }, {
    key: 'unbindEventListeners',
    value: function unbindEventListeners() {
      window.removeEventListener('mousemove', this.handleChange);
      window.removeEventListener('mouseup', this.handleMouseUp);
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _props$direction = this.props.direction,
          direction = _props$direction === undefined ? 'horizontal' : _props$direction;


      var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
        'default': {
          hue: {
            absolute: '0px 0px 0px 0px',
            borderRadius: this.props.radius,
            boxShadow: this.props.shadow
          },
          container: {
            padding: '0 2px',
            position: 'relative',
            height: '100%',
            borderRadius: this.props.radius
          },
          pointer: {
            position: 'absolute',
            left: this.props.hsl.h * 100 / 360 + '%'
          },
          slider: {
            marginTop: '1px',
            width: '4px',
            borderRadius: '1px',
            height: '8px',
            boxShadow: '0 0 2px rgba(0, 0, 0, .6)',
            background: '#fff',
            transform: 'translateX(-2px)'
          }
        },
        'vertical': {
          pointer: {
            left: '0px',
            top: -(this.props.hsl.h * 100 / 360) + 100 + '%'
          }
        }
      }, { vertical: direction === 'vertical' });

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.hue },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          {
            className: 'hue-' + direction,
            style: styles.container,
            ref: function ref(container) {
              return _this2.container = container;
            },
            onMouseDown: this.handleMouseDown,
            onTouchMove: this.handleChange,
            onTouchStart: this.handleChange
          },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'style',
            null,
            '\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          '
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.pointer },
            this.props.pointer ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(this.props.pointer, this.props) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.slider })
          )
        )
      );
    }
  }]);

  return Hue;
}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);

/* harmony default export */ __webpack_exports__["a"] = (Hue);

/***/ }),
/* 292 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return calculateChange; });
var calculateChange = function calculateChange(e, direction, hsl, container) {
  var containerWidth = container.clientWidth;
  var containerHeight = container.clientHeight;
  var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  var top = y - (container.getBoundingClientRect().top + window.pageYOffset);

  if (direction === 'vertical') {
    var h = void 0;
    if (top < 0) {
      h = 359;
    } else if (top > containerHeight) {
      h = 0;
    } else {
      var percent = -(top * 100 / containerHeight) + 100;
      h = 360 * percent / 100;
    }

    if (hsl.h !== h) {
      return {
        h: h,
        s: hsl.s,
        l: hsl.l,
        a: hsl.a,
        source: 'hsl'
      };
    }
  } else {
    var _h = void 0;
    if (left < 0) {
      _h = 0;
    } else if (left > containerWidth) {
      _h = 359;
    } else {
      var _percent = left * 100 / containerWidth;
      _h = 360 * _percent / 100;
    }

    if (hsl.h !== _h) {
      return {
        h: _h,
        s: hsl.s,
        l: hsl.l,
        a: hsl.a,
        source: 'hsl'
      };
    }
  }
  return null;
};

/***/ }),
/* 293 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Raised */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);





var Raised = function Raised(_ref) {
  var zDepth = _ref.zDepth,
      radius = _ref.radius,
      background = _ref.background,
      children = _ref.children,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      wrap: {
        position: 'relative',
        display: 'inline-block'
      },
      content: {
        position: 'relative'
      },
      bg: {
        absolute: '0px 0px 0px 0px',
        boxShadow: '0 ' + zDepth + 'px ' + zDepth * 4 + 'px rgba(0,0,0,.24)',
        borderRadius: radius,
        background: background
      }
    },
    'zDepth-0': {
      bg: {
        boxShadow: 'none'
      }
    },

    'zDepth-1': {
      bg: {
        boxShadow: '0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)'
      }
    },
    'zDepth-2': {
      bg: {
        boxShadow: '0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)'
      }
    },
    'zDepth-3': {
      bg: {
        boxShadow: '0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)'
      }
    },
    'zDepth-4': {
      bg: {
        boxShadow: '0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)'
      }
    },
    'zDepth-5': {
      bg: {
        boxShadow: '0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)'
      }
    },
    'square': {
      bg: {
        borderRadius: '0'
      }
    },
    'circle': {
      bg: {
        borderRadius: '50%'
      }
    }
  }, passedStyles), { 'zDepth-1': zDepth === 1 });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.wrap },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.bg }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.content },
      children
    )
  );
};

Raised.propTypes = {
  background: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
  zDepth: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([0, 1, 2, 3, 4, 5]),
  radius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Raised.defaultProps = {
  background: '#fff',
  zDepth: 1,
  radius: 2,
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Raised);

/***/ }),
/* 294 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;


/***/ }),
/* 295 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */





if (process.env.NODE_ENV !== "production") {
  (function() {
'use strict';

// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// (unstable) APIs that have been removed. Can we remove the symbols?

var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;

function isValidElementType(type) {
  return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
}

function typeOf(object) {
  if (typeof object === 'object' && object !== null) {
    var $$typeof = object.$$typeof;

    switch ($$typeof) {
      case REACT_ELEMENT_TYPE:
        var type = object.type;

        switch (type) {
          case REACT_ASYNC_MODE_TYPE:
          case REACT_CONCURRENT_MODE_TYPE:
          case REACT_FRAGMENT_TYPE:
          case REACT_PROFILER_TYPE:
          case REACT_STRICT_MODE_TYPE:
          case REACT_SUSPENSE_TYPE:
            return type;

          default:
            var $$typeofType = type && type.$$typeof;

            switch ($$typeofType) {
              case REACT_CONTEXT_TYPE:
              case REACT_FORWARD_REF_TYPE:
              case REACT_LAZY_TYPE:
              case REACT_MEMO_TYPE:
              case REACT_PROVIDER_TYPE:
                return $$typeofType;

              default:
                return $$typeof;
            }

        }

      case REACT_PORTAL_TYPE:
        return $$typeof;
    }
  }

  return undefined;
} // AsyncMode is deprecated along with isAsyncMode

var AsyncMode = REACT_ASYNC_MODE_TYPE;
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
var ContextConsumer = REACT_CONTEXT_TYPE;
var ContextProvider = REACT_PROVIDER_TYPE;
var Element = REACT_ELEMENT_TYPE;
var ForwardRef = REACT_FORWARD_REF_TYPE;
var Fragment = REACT_FRAGMENT_TYPE;
var Lazy = REACT_LAZY_TYPE;
var Memo = REACT_MEMO_TYPE;
var Portal = REACT_PORTAL_TYPE;
var Profiler = REACT_PROFILER_TYPE;
var StrictMode = REACT_STRICT_MODE_TYPE;
var Suspense = REACT_SUSPENSE_TYPE;
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated

function isAsyncMode(object) {
  {
    if (!hasWarnedAboutDeprecatedIsAsyncMode) {
      hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint

      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
    }
  }

  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
}
function isConcurrentMode(object) {
  return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
}
function isContextConsumer(object) {
  return typeOf(object) === REACT_CONTEXT_TYPE;
}
function isContextProvider(object) {
  return typeOf(object) === REACT_PROVIDER_TYPE;
}
function isElement(object) {
  return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function isForwardRef(object) {
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
}
function isFragment(object) {
  return typeOf(object) === REACT_FRAGMENT_TYPE;
}
function isLazy(object) {
  return typeOf(object) === REACT_LAZY_TYPE;
}
function isMemo(object) {
  return typeOf(object) === REACT_MEMO_TYPE;
}
function isPortal(object) {
  return typeOf(object) === REACT_PORTAL_TYPE;
}
function isProfiler(object) {
  return typeOf(object) === REACT_PROFILER_TYPE;
}
function isStrictMode(object) {
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
}
function isSuspense(object) {
  return typeOf(object) === REACT_SUSPENSE_TYPE;
}

exports.AsyncMode = AsyncMode;
exports.ConcurrentMode = ConcurrentMode;
exports.ContextConsumer = ContextConsumer;
exports.ContextProvider = ContextProvider;
exports.Element = Element;
exports.ForwardRef = ForwardRef;
exports.Fragment = Fragment;
exports.Lazy = Lazy;
exports.Memo = Memo;
exports.Portal = Portal;
exports.Profiler = Profiler;
exports.StrictMode = StrictMode;
exports.Suspense = Suspense;
exports.isAsyncMode = isAsyncMode;
exports.isConcurrentMode = isConcurrentMode;
exports.isContextConsumer = isContextConsumer;
exports.isContextProvider = isContextProvider;
exports.isElement = isElement;
exports.isForwardRef = isForwardRef;
exports.isFragment = isFragment;
exports.isLazy = isLazy;
exports.isMemo = isMemo;
exports.isPortal = isPortal;
exports.isProfiler = isProfiler;
exports.isStrictMode = isStrictMode;
exports.isSuspense = isSuspense;
exports.isValidElementType = isValidElementType;
exports.typeOf = typeOf;
  })();
}

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 296 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactIs = __webpack_require__(117);
var assign = __webpack_require__(297);

var ReactPropTypesSecret = __webpack_require__(66);
var has = __webpack_require__(118);
var checkPropTypes = __webpack_require__(298);

var printWarning = function() {};

if (process.env.NODE_ENV !== 'production') {
  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) {}
  };
}

function emptyFunctionThatReturnsNull() {
  return null;
}

module.exports = function(isValidElement, throwOnDirectAccess) {
  /* global Symbol */
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.

  /**
   * Returns the iterator method function contained on the iterable object.
   *
   * Be sure to invoke the function with the iterable as context:
   *
   *     var iteratorFn = getIteratorFn(myIterable);
   *     if (iteratorFn) {
   *       var iterator = iteratorFn.call(myIterable);
   *       ...
   *     }
   *
   * @param {?object} maybeIterable
   * @return {?function}
   */
  function getIteratorFn(maybeIterable) {
    var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
    if (typeof iteratorFn === 'function') {
      return iteratorFn;
    }
  }

  /**
   * Collection of methods that allow declaration and validation of props that are
   * supplied to React components. Example usage:
   *
   *   var Props = require('ReactPropTypes');
   *   var MyArticle = React.createClass({
   *     propTypes: {
   *       // An optional string prop named "description".
   *       description: Props.string,
   *
   *       // A required enum prop named "category".
   *       category: Props.oneOf(['News','Photos']).isRequired,
   *
   *       // A prop named "dialog" that requires an instance of Dialog.
   *       dialog: Props.instanceOf(Dialog).isRequired
   *     },
   *     render: function() { ... }
   *   });
   *
   * A more formal specification of how these methods are used:
   *
   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
   *   decl := ReactPropTypes.{type}(.isRequired)?
   *
   * Each and every declaration produces a function with the same signature. This
   * allows the creation of custom validation functions. For example:
   *
   *  var MyLink = React.createClass({
   *    propTypes: {
   *      // An optional string or URI prop named "href".
   *      href: function(props, propName, componentName) {
   *        var propValue = props[propName];
   *        if (propValue != null && typeof propValue !== 'string' &&
   *            !(propValue instanceof URI)) {
   *          return new Error(
   *            'Expected a string or an URI for ' + propName + ' in ' +
   *            componentName
   *          );
   *        }
   *      }
   *    },
   *    render: function() {...}
   *  });
   *
   * @internal
   */

  var ANONYMOUS = '<<anonymous>>';

  // Important!
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  var ReactPropTypes = {
    array: createPrimitiveTypeChecker('array'),
    bigint: createPrimitiveTypeChecker('bigint'),
    bool: createPrimitiveTypeChecker('boolean'),
    func: createPrimitiveTypeChecker('function'),
    number: createPrimitiveTypeChecker('number'),
    object: createPrimitiveTypeChecker('object'),
    string: createPrimitiveTypeChecker('string'),
    symbol: createPrimitiveTypeChecker('symbol'),

    any: createAnyTypeChecker(),
    arrayOf: createArrayOfTypeChecker,
    element: createElementTypeChecker(),
    elementType: createElementTypeTypeChecker(),
    instanceOf: createInstanceTypeChecker,
    node: createNodeChecker(),
    objectOf: createObjectOfTypeChecker,
    oneOf: createEnumTypeChecker,
    oneOfType: createUnionTypeChecker,
    shape: createShapeTypeChecker,
    exact: createStrictShapeTypeChecker,
  };

  /**
   * inlined Object.is polyfill to avoid requiring consumers ship their own
   * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
   */
  /*eslint-disable no-self-compare*/
  function is(x, y) {
    // SameValue algorithm
    if (x === y) {
      // Steps 1-5, 7-10
      // Steps 6.b-6.e: +0 != -0
      return x !== 0 || 1 / x === 1 / y;
    } else {
      // Step 6.a: NaN == NaN
      return x !== x && y !== y;
    }
  }
  /*eslint-enable no-self-compare*/

  /**
   * We use an Error-like object for backward compatibility as people may call
   * PropTypes directly and inspect their output. However, we don't use real
   * Errors anymore. We don't inspect their stack anyway, and creating them
   * is prohibitively expensive if they are created too often, such as what
   * happens in oneOfType() for any type before the one that matched.
   */
  function PropTypeError(message, data) {
    this.message = message;
    this.data = data && typeof data === 'object' ? data: {};
    this.stack = '';
  }
  // Make `instanceof Error` still work for returned errors.
  PropTypeError.prototype = Error.prototype;

  function createChainableTypeChecker(validate) {
    if (process.env.NODE_ENV !== 'production') {
      var manualPropTypeCallCache = {};
      var manualPropTypeWarningCount = 0;
    }
    function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
      componentName = componentName || ANONYMOUS;
      propFullName = propFullName || propName;

      if (secret !== ReactPropTypesSecret) {
        if (throwOnDirectAccess) {
          // New behavior only for users of `prop-types` package
          var err = 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'
          );
          err.name = 'Invariant Violation';
          throw err;
        } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
          // Old behavior for people using React.PropTypes
          var cacheKey = componentName + ':' + propName;
          if (
            !manualPropTypeCallCache[cacheKey] &&
            // Avoid spamming the console because they are often not actionable except for lib authors
            manualPropTypeWarningCount < 3
          ) {
            printWarning(
              'You are manually calling a React.PropTypes validation ' +
              'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
              'and will throw in the standalone `prop-types` package. ' +
              'You may be seeing this warning due to a third-party PropTypes ' +
              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
            );
            manualPropTypeCallCache[cacheKey] = true;
            manualPropTypeWarningCount++;
          }
        }
      }
      if (props[propName] == null) {
        if (isRequired) {
          if (props[propName] === null) {
            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
          }
          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
        }
        return null;
      } else {
        return validate(props, propName, componentName, location, propFullName);
      }
    }

    var chainedCheckType = checkType.bind(null, false);
    chainedCheckType.isRequired = checkType.bind(null, true);

    return chainedCheckType;
  }

  function createPrimitiveTypeChecker(expectedType) {
    function validate(props, propName, componentName, location, propFullName, secret) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== expectedType) {
        // `propValue` being instance of, say, date/regexp, pass the 'object'
        // check, but we can offer a more precise error message here rather than
        // 'of type `object`'.
        var preciseType = getPreciseType(propValue);

        return new PropTypeError(
          'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
          {expectedType: expectedType}
        );
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createAnyTypeChecker() {
    return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  }

  function createArrayOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
      }
      var propValue = props[propName];
      if (!Array.isArray(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
      }
      for (var i = 0; i < propValue.length; i++) {
        var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
        if (error instanceof Error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createElementTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!isValidElement(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createElementTypeTypeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      if (!ReactIs.isValidElementType(propValue)) {
        var propType = getPropType(propValue);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createInstanceTypeChecker(expectedClass) {
    function validate(props, propName, componentName, location, propFullName) {
      if (!(props[propName] instanceof expectedClass)) {
        var expectedClassName = expectedClass.name || ANONYMOUS;
        var actualClassName = getClassName(props[propName]);
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createEnumTypeChecker(expectedValues) {
    if (!Array.isArray(expectedValues)) {
      if (process.env.NODE_ENV !== 'production') {
        if (arguments.length > 1) {
          printWarning(
            'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
            'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
          );
        } else {
          printWarning('Invalid argument supplied to oneOf, expected an array.');
        }
      }
      return emptyFunctionThatReturnsNull;
    }

    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      for (var i = 0; i < expectedValues.length; i++) {
        if (is(propValue, expectedValues[i])) {
          return null;
        }
      }

      var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
        var type = getPreciseType(value);
        if (type === 'symbol') {
          return String(value);
        }
        return value;
      });
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createObjectOfTypeChecker(typeChecker) {
    function validate(props, propName, componentName, location, propFullName) {
      if (typeof typeChecker !== 'function') {
        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
      }
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
      }
      for (var key in propValue) {
        if (has(propValue, key)) {
          var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
          if (error instanceof Error) {
            return error;
          }
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createUnionTypeChecker(arrayOfTypeCheckers) {
    if (!Array.isArray(arrayOfTypeCheckers)) {
      process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
      return emptyFunctionThatReturnsNull;
    }

    for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
      var checker = arrayOfTypeCheckers[i];
      if (typeof checker !== 'function') {
        printWarning(
          'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
          'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
        );
        return emptyFunctionThatReturnsNull;
      }
    }

    function validate(props, propName, componentName, location, propFullName) {
      var expectedTypes = [];
      for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
        var checker = arrayOfTypeCheckers[i];
        var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
        if (checkerResult == null) {
          return null;
        }
        if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
          expectedTypes.push(checkerResult.data.expectedType);
        }
      }
      var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
    }
    return createChainableTypeChecker(validate);
  }

  function createNodeChecker() {
    function validate(props, propName, componentName, location, propFullName) {
      if (!isNode(props[propName])) {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function invalidValidatorError(componentName, location, propFullName, key, type) {
    return new PropTypeError(
      (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
      'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
    );
  }

  function createShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      for (var key in shapeTypes) {
        var checker = shapeTypes[key];
        if (typeof checker !== 'function') {
          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }
    return createChainableTypeChecker(validate);
  }

  function createStrictShapeTypeChecker(shapeTypes) {
    function validate(props, propName, componentName, location, propFullName) {
      var propValue = props[propName];
      var propType = getPropType(propValue);
      if (propType !== 'object') {
        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
      }
      // We need to check all keys in case some are required but missing from props.
      var allKeys = assign({}, props[propName], shapeTypes);
      for (var key in allKeys) {
        var checker = shapeTypes[key];
        if (has(shapeTypes, key) && typeof checker !== 'function') {
          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
        }
        if (!checker) {
          return new PropTypeError(
            'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
            '\nBad object: ' + JSON.stringify(props[propName], null, '  ') +
            '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, '  ')
          );
        }
        var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
        if (error) {
          return error;
        }
      }
      return null;
    }

    return createChainableTypeChecker(validate);
  }

  function isNode(propValue) {
    switch (typeof propValue) {
      case 'number':
      case 'string':
      case 'undefined':
        return true;
      case 'boolean':
        return !propValue;
      case 'object':
        if (Array.isArray(propValue)) {
          return propValue.every(isNode);
        }
        if (propValue === null || isValidElement(propValue)) {
          return true;
        }

        var iteratorFn = getIteratorFn(propValue);
        if (iteratorFn) {
          var iterator = iteratorFn.call(propValue);
          var step;
          if (iteratorFn !== propValue.entries) {
            while (!(step = iterator.next()).done) {
              if (!isNode(step.value)) {
                return false;
              }
            }
          } else {
            // Iterator will provide entry [k,v] tuples rather than values.
            while (!(step = iterator.next()).done) {
              var entry = step.value;
              if (entry) {
                if (!isNode(entry[1])) {
                  return false;
                }
              }
            }
          }
        } else {
          return false;
        }

        return true;
      default:
        return false;
    }
  }

  function isSymbol(propType, propValue) {
    // Native Symbol.
    if (propType === 'symbol') {
      return true;
    }

    // falsy value can't be a Symbol
    if (!propValue) {
      return false;
    }

    // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
    if (propValue['@@toStringTag'] === 'Symbol') {
      return true;
    }

    // Fallback for non-spec compliant Symbols which are polyfilled.
    if (typeof Symbol === 'function' && propValue instanceof Symbol) {
      return true;
    }

    return false;
  }

  // Equivalent of `typeof` but with special handling for array and regexp.
  function getPropType(propValue) {
    var propType = typeof propValue;
    if (Array.isArray(propValue)) {
      return 'array';
    }
    if (propValue instanceof RegExp) {
      // Old webkits (at least until Android 4.0) return 'function' rather than
      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
      // passes PropTypes.object.
      return 'object';
    }
    if (isSymbol(propType, propValue)) {
      return 'symbol';
    }
    return propType;
  }

  // This handles more types than `getPropType`. Only used for error messages.
  // See `createPrimitiveTypeChecker`.
  function getPreciseType(propValue) {
    if (typeof propValue === 'undefined' || propValue === null) {
      return '' + propValue;
    }
    var propType = getPropType(propValue);
    if (propType === 'object') {
      if (propValue instanceof Date) {
        return 'date';
      } else if (propValue instanceof RegExp) {
        return 'regexp';
      }
    }
    return propType;
  }

  // Returns a string that is postfixed to a warning about an invalid type.
  // For example, "undefined" or "of type array"
  function getPostfixForTypeWarning(value) {
    var type = getPreciseType(value);
    switch (type) {
      case 'array':
      case 'object':
        return 'an ' + type;
      case 'boolean':
      case 'date':
      case 'regexp':
        return 'a ' + type;
      default:
        return type;
    }
  }

  // Returns class name of the object, if any.
  function getClassName(propValue) {
    if (!propValue.constructor || !propValue.constructor.name) {
      return ANONYMOUS;
    }
    return propValue.constructor.name;
  }

  ReactPropTypes.checkPropTypes = checkPropTypes;
  ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
  ReactPropTypes.PropTypes = ReactPropTypes;

  return ReactPropTypes;
};

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 297 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/


/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;

function toObject(val) {
	if (val === null || val === undefined) {
		throw new TypeError('Object.assign cannot be called with null or undefined');
	}

	return Object(val);
}

function shouldUseNative() {
	try {
		if (!Object.assign) {
			return false;
		}

		// Detect buggy property enumeration order in older V8 versions.

		// https://bugs.chromium.org/p/v8/issues/detail?id=4118
		var test1 = new String('abc');  // eslint-disable-line no-new-wrappers
		test1[5] = 'de';
		if (Object.getOwnPropertyNames(test1)[0] === '5') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test2 = {};
		for (var i = 0; i < 10; i++) {
			test2['_' + String.fromCharCode(i)] = i;
		}
		var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
			return test2[n];
		});
		if (order2.join('') !== '0123456789') {
			return false;
		}

		// https://bugs.chromium.org/p/v8/issues/detail?id=3056
		var test3 = {};
		'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
			test3[letter] = letter;
		});
		if (Object.keys(Object.assign({}, test3)).join('') !==
				'abcdefghijklmnopqrst') {
			return false;
		}

		return true;
	} catch (err) {
		// We don't expect any of the above to throw, but better to be safe.
		return false;
	}
}

module.exports = shouldUseNative() ? Object.assign : function (target, source) {
	var from;
	var to = toObject(target);
	var symbols;

	for (var s = 1; s < arguments.length; s++) {
		from = Object(arguments[s]);

		for (var key in from) {
			if (hasOwnProperty.call(from, key)) {
				to[key] = from[key];
			}
		}

		if (getOwnPropertySymbols) {
			symbols = getOwnPropertySymbols(from);
			for (var i = 0; i < symbols.length; i++) {
				if (propIsEnumerable.call(from, symbols[i])) {
					to[symbols[i]] = from[symbols[i]];
				}
			}
		}
	}

	return to;
};


/***/ }),
/* 298 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(process) {/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var printWarning = function() {};

if (process.env.NODE_ENV !== 'production') {
  var ReactPropTypesSecret = __webpack_require__(66);
  var loggedTypeFailures = {};
  var has = __webpack_require__(118);

  printWarning = function(text) {
    var message = 'Warning: ' + text;
    if (typeof console !== 'undefined') {
      console.error(message);
    }
    try {
      // --- Welcome to debugging React ---
      // This error was thrown as a convenience so that you can use this stack
      // to find the callsite that caused this warning to fire.
      throw new Error(message);
    } catch (x) { /**/ }
  };
}

/**
 * Assert that the values match with the type specs.
 * Error messages are memorized and will only be shown once.
 *
 * @param {object} typeSpecs Map of name to a ReactPropType
 * @param {object} values Runtime values that need to be type-checked
 * @param {string} location e.g. "prop", "context", "child context"
 * @param {string} componentName Name of the component for error messages.
 * @param {?Function} getStack Returns the component stack.
 * @private
 */
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  if (process.env.NODE_ENV !== 'production') {
    for (var typeSpecName in typeSpecs) {
      if (has(typeSpecs, typeSpecName)) {
        var error;
        // Prop type validation may throw. In case they do, we don't want to
        // fail the render phase where it didn't fail before. So we log it.
        // After these have been cleaned up, we'll let them throw.
        try {
          // This is intentionally an invariant that gets caught. It's the same
          // behavior as without this statement except with a better message.
          if (typeof typeSpecs[typeSpecName] !== 'function') {
            var err = Error(
              (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
              'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
              'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
            );
            err.name = 'Invariant Violation';
            throw err;
          }
          error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
        } catch (ex) {
          error = ex;
        }
        if (error && !(error instanceof Error)) {
          printWarning(
            (componentName || 'React class') + ': type specification of ' +
            location + ' `' + typeSpecName + '` is invalid; the type checker ' +
            'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
            'You may have forgotten to pass an argument to the type checker ' +
            'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
            'shape all require an argument).'
          );
        }
        if (error instanceof Error && !(error.message in loggedTypeFailures)) {
          // Only monitor this failure once because there tends to be a lot of the
          // same error.
          loggedTypeFailures[error.message] = true;

          var stack = getStack ? getStack() : '';

          printWarning(
            'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
          );
        }
      }
    }
  }
}

/**
 * Resets warning cache when testing.
 *
 * @private
 */
checkPropTypes.resetWarningCache = function() {
  if (process.env.NODE_ENV !== 'production') {
    loggedTypeFailures = {};
  }
}

module.exports = checkPropTypes;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))

/***/ }),
/* 299 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = __webpack_require__(66);

function emptyFunction() {}
function emptyFunctionWithReset() {}
emptyFunctionWithReset.resetWarningCache = emptyFunction;

module.exports = function() {
  function shim(props, propName, componentName, location, propFullName, secret) {
    if (secret === ReactPropTypesSecret) {
      // It is still safe when called from React.
      return;
    }
    var err = 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'
    );
    err.name = 'Invariant Violation';
    throw err;
  };
  shim.isRequired = shim;
  function getShim() {
    return shim;
  };
  // Important!
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
  var ReactPropTypes = {
    array: shim,
    bigint: shim,
    bool: shim,
    func: shim,
    number: shim,
    object: shim,
    string: shim,
    symbol: shim,

    any: shim,
    arrayOf: getShim,
    element: shim,
    elementType: shim,
    instanceOf: getShim,
    node: shim,
    objectOf: getShim,
    oneOf: getShim,
    oneOfType: getShim,
    shape: getShim,
    exact: getShim,

    checkPropTypes: emptyFunctionWithReset,
    resetWarningCache: emptyFunction
  };

  ReactPropTypes.PropTypes = ReactPropTypes;

  return ReactPropTypes;
};


/***/ }),
/* 300 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stack_js__ = __webpack_require__(67);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assignMergeValue_js__ = __webpack_require__(121);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseFor_js__ = __webpack_require__(123);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__baseMergeDeep_js__ = __webpack_require__(330);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__keysIn_js__ = __webpack_require__(128);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__safeGet_js__ = __webpack_require__(127);








/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  Object(__WEBPACK_IMPORTED_MODULE_2__baseFor_js__["a" /* default */])(source, function(srcValue, key) {
    stack || (stack = new __WEBPACK_IMPORTED_MODULE_0__Stack_js__["a" /* default */]);
    if (Object(__WEBPACK_IMPORTED_MODULE_4__isObject_js__["a" /* default */])(srcValue)) {
      Object(__WEBPACK_IMPORTED_MODULE_3__baseMergeDeep_js__["a" /* default */])(object, source, key, srcIndex, baseMerge, customizer, stack);
    }
    else {
      var newValue = customizer
        ? customizer(Object(__WEBPACK_IMPORTED_MODULE_6__safeGet_js__["a" /* default */])(object, key), srcValue, (key + ''), object, source, stack)
        : undefined;

      if (newValue === undefined) {
        newValue = srcValue;
      }
      Object(__WEBPACK_IMPORTED_MODULE_1__assignMergeValue_js__["a" /* default */])(object, key, newValue);
    }
  }, __WEBPACK_IMPORTED_MODULE_5__keysIn_js__["a" /* default */]);
}

/* harmony default export */ __webpack_exports__["a"] = (baseMerge);


/***/ }),
/* 301 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}

/* harmony default export */ __webpack_exports__["a"] = (listCacheClear);


/***/ }),
/* 302 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__ = __webpack_require__(41);


/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
      index = Object(__WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__["a" /* default */])(data, key);

  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}

/* harmony default export */ __webpack_exports__["a"] = (listCacheDelete);


/***/ }),
/* 303 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__ = __webpack_require__(41);


/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
      index = Object(__WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__["a" /* default */])(data, key);

  return index < 0 ? undefined : data[index][1];
}

/* harmony default export */ __webpack_exports__["a"] = (listCacheGet);


/***/ }),
/* 304 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__ = __webpack_require__(41);


/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__["a" /* default */])(this.__data__, key) > -1;
}

/* harmony default export */ __webpack_exports__["a"] = (listCacheHas);


/***/ }),
/* 305 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__ = __webpack_require__(41);


/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
      index = Object(__WEBPACK_IMPORTED_MODULE_0__assocIndexOf_js__["a" /* default */])(data, key);

  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}

/* harmony default export */ __webpack_exports__["a"] = (listCacheSet);


/***/ }),
/* 306 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(40);


/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */];
  this.size = 0;
}

/* harmony default export */ __webpack_exports__["a"] = (stackClear);


/***/ }),
/* 307 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
      result = data['delete'](key);

  this.size = data.size;
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (stackDelete);


/***/ }),
/* 308 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}

/* harmony default export */ __webpack_exports__["a"] = (stackGet);


/***/ }),
/* 309 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}

/* harmony default export */ __webpack_exports__["a"] = (stackHas);


/***/ }),
/* 310 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Map_js__ = __webpack_require__(68);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MapCache_js__ = __webpack_require__(70);




/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */]) {
    var pairs = data.__data__;
    if (!__WEBPACK_IMPORTED_MODULE_1__Map_js__["a" /* default */] || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_2__MapCache_js__["a" /* default */](pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}

/* harmony default export */ __webpack_exports__["a"] = (stackSet);


/***/ }),
/* 311 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isMasked_js__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toSource_js__ = __webpack_require__(120);





/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_2__isObject_js__["a" /* default */])(value) || Object(__WEBPACK_IMPORTED_MODULE_1__isMasked_js__["a" /* default */])(value)) {
    return false;
  }
  var pattern = Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value) ? reIsNative : reIsHostCtor;
  return pattern.test(Object(__WEBPACK_IMPORTED_MODULE_3__toSource_js__["a" /* default */])(value));
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsNative);


/***/ }),
/* 312 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(42);


/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag),
      tag = value[symToStringTag];

  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}

  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (getRawTag);


/***/ }),
/* 313 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return nativeObjectToString.call(value);
}

/* harmony default export */ __webpack_exports__["a"] = (objectToString);


/***/ }),
/* 314 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__coreJsData_js__ = __webpack_require__(315);


/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
  var uid = /[^.]+$/.exec(__WEBPACK_IMPORTED_MODULE_0__coreJsData_js__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_0__coreJsData_js__["a" /* default */].keys && __WEBPACK_IMPORTED_MODULE_0__coreJsData_js__["a" /* default */].keys.IE_PROTO || '');
  return uid ? ('Symbol(src)_1.' + uid) : '';
}());

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && (maskSrcKey in func);
}

/* harmony default export */ __webpack_exports__["a"] = (isMasked);


/***/ }),
/* 315 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);


/** Used to detect overreaching core-js shims. */
var coreJsData = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */]['__core-js_shared__'];

/* harmony default export */ __webpack_exports__["a"] = (coreJsData);


/***/ }),
/* 316 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}

/* harmony default export */ __webpack_exports__["a"] = (getValue);


/***/ }),
/* 317 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Hash_js__ = __webpack_require__(318);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ListCache_js__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Map_js__ = __webpack_require__(68);




/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new __WEBPACK_IMPORTED_MODULE_0__Hash_js__["a" /* default */],
    'map': new (__WEBPACK_IMPORTED_MODULE_2__Map_js__["a" /* default */] || __WEBPACK_IMPORTED_MODULE_1__ListCache_js__["a" /* default */]),
    'string': new __WEBPACK_IMPORTED_MODULE_0__Hash_js__["a" /* default */]
  };
}

/* harmony default export */ __webpack_exports__["a"] = (mapCacheClear);


/***/ }),
/* 318 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__hashClear_js__ = __webpack_require__(319);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__hashDelete_js__ = __webpack_require__(320);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__hashGet_js__ = __webpack_require__(321);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__hashHas_js__ = __webpack_require__(322);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__hashSet_js__ = __webpack_require__(323);






/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
      length = entries == null ? 0 : entries.length;

  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__hashClear_js__["a" /* default */];
Hash.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__hashDelete_js__["a" /* default */];
Hash.prototype.get = __WEBPACK_IMPORTED_MODULE_2__hashGet_js__["a" /* default */];
Hash.prototype.has = __WEBPACK_IMPORTED_MODULE_3__hashHas_js__["a" /* default */];
Hash.prototype.set = __WEBPACK_IMPORTED_MODULE_4__hashSet_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (Hash);


/***/ }),
/* 319 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__ = __webpack_require__(43);


/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__["a" /* default */] ? Object(__WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__["a" /* default */])(null) : {};
  this.size = 0;
}

/* harmony default export */ __webpack_exports__["a"] = (hashClear);


/***/ }),
/* 320 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (hashDelete);


/***/ }),
/* 321 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__ = __webpack_require__(43);


/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (__WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__["a" /* default */]) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return hasOwnProperty.call(data, key) ? data[key] : undefined;
}

/* harmony default export */ __webpack_exports__["a"] = (hashGet);


/***/ }),
/* 322 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__ = __webpack_require__(43);


/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__["a" /* default */] ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}

/* harmony default export */ __webpack_exports__["a"] = (hashHas);


/***/ }),
/* 323 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__ = __webpack_require__(43);


/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = (__WEBPACK_IMPORTED_MODULE_0__nativeCreate_js__["a" /* default */] && value === undefined) ? HASH_UNDEFINED : value;
  return this;
}

/* harmony default export */ __webpack_exports__["a"] = (hashSet);


/***/ }),
/* 324 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getMapData_js__ = __webpack_require__(44);


/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = Object(__WEBPACK_IMPORTED_MODULE_0__getMapData_js__["a" /* default */])(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (mapCacheDelete);


/***/ }),
/* 325 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
    ? (value !== '__proto__')
    : (value === null);
}

/* harmony default export */ __webpack_exports__["a"] = (isKeyable);


/***/ }),
/* 326 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getMapData_js__ = __webpack_require__(44);


/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__getMapData_js__["a" /* default */])(this, key).get(key);
}

/* harmony default export */ __webpack_exports__["a"] = (mapCacheGet);


/***/ }),
/* 327 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getMapData_js__ = __webpack_require__(44);


/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__getMapData_js__["a" /* default */])(this, key).has(key);
}

/* harmony default export */ __webpack_exports__["a"] = (mapCacheHas);


/***/ }),
/* 328 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getMapData_js__ = __webpack_require__(44);


/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = Object(__WEBPACK_IMPORTED_MODULE_0__getMapData_js__["a" /* default */])(this, key),
      size = data.size;

  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}

/* harmony default export */ __webpack_exports__["a"] = (mapCacheSet);


/***/ }),
/* 329 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function(object, iteratee, keysFunc) {
    var index = -1,
        iterable = Object(object),
        props = keysFunc(object),
        length = props.length;

    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}

/* harmony default export */ __webpack_exports__["a"] = (createBaseFor);


/***/ }),
/* 330 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assignMergeValue_js__ = __webpack_require__(121);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__cloneBuffer_js__ = __webpack_require__(331);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cloneTypedArray_js__ = __webpack_require__(332);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__copyArray_js__ = __webpack_require__(334);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__initCloneObject_js__ = __webpack_require__(335);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isArguments_js__ = __webpack_require__(74);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__isArrayLikeObject_js__ = __webpack_require__(338);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__isBuffer_js__ = __webpack_require__(76);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__isFunction_js__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__isPlainObject_js__ = __webpack_require__(340);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__isTypedArray_js__ = __webpack_require__(77);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__safeGet_js__ = __webpack_require__(127);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__toPlainObject_js__ = __webpack_require__(344);
















/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = Object(__WEBPACK_IMPORTED_MODULE_13__safeGet_js__["a" /* default */])(object, key),
      srcValue = Object(__WEBPACK_IMPORTED_MODULE_13__safeGet_js__["a" /* default */])(source, key),
      stacked = stack.get(srcValue);

  if (stacked) {
    Object(__WEBPACK_IMPORTED_MODULE_0__assignMergeValue_js__["a" /* default */])(object, key, stacked);
    return;
  }
  var newValue = customizer
    ? customizer(objValue, srcValue, (key + ''), object, source, stack)
    : undefined;

  var isCommon = newValue === undefined;

  if (isCommon) {
    var isArr = Object(__WEBPACK_IMPORTED_MODULE_6__isArray_js__["a" /* default */])(srcValue),
        isBuff = !isArr && Object(__WEBPACK_IMPORTED_MODULE_8__isBuffer_js__["a" /* default */])(srcValue),
        isTyped = !isArr && !isBuff && Object(__WEBPACK_IMPORTED_MODULE_12__isTypedArray_js__["a" /* default */])(srcValue);

    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if (Object(__WEBPACK_IMPORTED_MODULE_6__isArray_js__["a" /* default */])(objValue)) {
        newValue = objValue;
      }
      else if (Object(__WEBPACK_IMPORTED_MODULE_7__isArrayLikeObject_js__["a" /* default */])(objValue)) {
        newValue = Object(__WEBPACK_IMPORTED_MODULE_3__copyArray_js__["a" /* default */])(objValue);
      }
      else if (isBuff) {
        isCommon = false;
        newValue = Object(__WEBPACK_IMPORTED_MODULE_1__cloneBuffer_js__["a" /* default */])(srcValue, true);
      }
      else if (isTyped) {
        isCommon = false;
        newValue = Object(__WEBPACK_IMPORTED_MODULE_2__cloneTypedArray_js__["a" /* default */])(srcValue, true);
      }
      else {
        newValue = [];
      }
    }
    else if (Object(__WEBPACK_IMPORTED_MODULE_11__isPlainObject_js__["a" /* default */])(srcValue) || Object(__WEBPACK_IMPORTED_MODULE_5__isArguments_js__["a" /* default */])(srcValue)) {
      newValue = objValue;
      if (Object(__WEBPACK_IMPORTED_MODULE_5__isArguments_js__["a" /* default */])(objValue)) {
        newValue = Object(__WEBPACK_IMPORTED_MODULE_14__toPlainObject_js__["a" /* default */])(objValue);
      }
      else if (!Object(__WEBPACK_IMPORTED_MODULE_10__isObject_js__["a" /* default */])(objValue) || Object(__WEBPACK_IMPORTED_MODULE_9__isFunction_js__["a" /* default */])(objValue)) {
        newValue = Object(__WEBPACK_IMPORTED_MODULE_4__initCloneObject_js__["a" /* default */])(srcValue);
      }
    }
    else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  Object(__WEBPACK_IMPORTED_MODULE_0__assignMergeValue_js__["a" /* default */])(object, key, newValue);
}

/* harmony default export */ __webpack_exports__["a"] = (baseMergeDeep);


/***/ }),
/* 331 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);


/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Buffer : undefined,
    allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
      result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);

  buffer.copy(result);
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (cloneBuffer);

/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(72)(module)))

/***/ }),
/* 332 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cloneArrayBuffer_js__ = __webpack_require__(333);


/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? Object(__WEBPACK_IMPORTED_MODULE_0__cloneArrayBuffer_js__["a" /* default */])(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}

/* harmony default export */ __webpack_exports__["a"] = (cloneTypedArray);


/***/ }),
/* 333 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Uint8Array_js__ = __webpack_require__(124);


/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new __WEBPACK_IMPORTED_MODULE_0__Uint8Array_js__["a" /* default */](result).set(new __WEBPACK_IMPORTED_MODULE_0__Uint8Array_js__["a" /* default */](arrayBuffer));
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (cloneArrayBuffer);


/***/ }),
/* 334 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
      length = source.length;

  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}

/* harmony default export */ __webpack_exports__["a"] = (copyArray);


/***/ }),
/* 335 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseCreate_js__ = __webpack_require__(336);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getPrototype_js__ = __webpack_require__(125);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isPrototype_js__ = __webpack_require__(73);




/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return (typeof object.constructor == 'function' && !Object(__WEBPACK_IMPORTED_MODULE_2__isPrototype_js__["a" /* default */])(object))
    ? Object(__WEBPACK_IMPORTED_MODULE_0__baseCreate_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__getPrototype_js__["a" /* default */])(object))
    : {};
}

/* harmony default export */ __webpack_exports__["a"] = (initCloneObject);


/***/ }),
/* 336 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(12);


/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = (function() {
  function object() {}
  return function(proto) {
    if (!Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object;
    object.prototype = undefined;
    return result;
  };
}());

/* harmony default export */ __webpack_exports__["a"] = (baseCreate);


/***/ }),
/* 337 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(20);



/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == argsTag;
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsArguments);


/***/ }),
/* 338 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArrayLike_js__ = __webpack_require__(24);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(20);



/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__isArrayLike_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (isArrayLikeObject);


/***/ }),
/* 339 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}

/* harmony default export */ __webpack_exports__["a"] = (stubFalse);


/***/ }),
/* 340 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getPrototype_js__ = __webpack_require__(125);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__ = __webpack_require__(20);




/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
    objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__["a" /* default */])(value) || Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) != objectTag) {
    return false;
  }
  var proto = Object(__WEBPACK_IMPORTED_MODULE_1__getPrototype_js__["a" /* default */])(value);
  if (proto === null) {
    return true;
  }
  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
    funcToString.call(Ctor) == objectCtorString;
}

/* harmony default export */ __webpack_exports__["a"] = (isPlainObject);


/***/ }),
/* 341 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(75);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__ = __webpack_require__(20);




/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    funcTag = '[object Function]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    objectTag = '[object Object]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    weakMapTag = '[object WeakMap]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]',
    float32Tag = '[object Float32Array]',
    float64Tag = '[object Float64Array]',
    int8Tag = '[object Int8Array]',
    int16Tag = '[object Int16Array]',
    int32Tag = '[object Int32Array]',
    uint8Tag = '[object Uint8Array]',
    uint8ClampedTag = '[object Uint8ClampedArray]',
    uint16Tag = '[object Uint16Array]',
    uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return Object(__WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__["a" /* default */])(value) &&
    Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !!typedArrayTags[Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value)];
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsTypedArray);


/***/ }),
/* 342 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (baseUnary);


/***/ }),
/* 343 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(119);


/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */].process;

/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;

    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}());

/* harmony default export */ __webpack_exports__["a"] = (nodeUtil);

/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(72)(module)))

/***/ }),
/* 344 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__copyObject_js__ = __webpack_require__(345);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__keysIn_js__ = __webpack_require__(128);



/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__copyObject_js__["a" /* default */])(value, Object(__WEBPACK_IMPORTED_MODULE_1__keysIn_js__["a" /* default */])(value));
}

/* harmony default export */ __webpack_exports__["a"] = (toPlainObject);


/***/ }),
/* 345 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assignValue_js__ = __webpack_require__(346);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseAssignValue_js__ = __webpack_require__(71);



/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});

  var index = -1,
      length = props.length;

  while (++index < length) {
    var key = props[index];

    var newValue = customizer
      ? customizer(object[key], source[key], key, object, source)
      : undefined;

    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      Object(__WEBPACK_IMPORTED_MODULE_1__baseAssignValue_js__["a" /* default */])(object, key, newValue);
    } else {
      Object(__WEBPACK_IMPORTED_MODULE_0__assignValue_js__["a" /* default */])(object, key, newValue);
    }
  }
  return object;
}

/* harmony default export */ __webpack_exports__["a"] = (copyObject);


/***/ }),
/* 346 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__eq_js__ = __webpack_require__(28);



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && Object(__WEBPACK_IMPORTED_MODULE_1__eq_js__["a" /* default */])(objValue, value)) ||
      (value === undefined && !(key in object))) {
    Object(__WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__["a" /* default */])(object, key, value);
  }
}

/* harmony default export */ __webpack_exports__["a"] = (assignValue);


/***/ }),
/* 347 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
      result = Array(n);

  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (baseTimes);


/***/ }),
/* 348 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isPrototype_js__ = __webpack_require__(73);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nativeKeysIn_js__ = __webpack_require__(349);




/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(object)) {
    return Object(__WEBPACK_IMPORTED_MODULE_2__nativeKeysIn_js__["a" /* default */])(object);
  }
  var isProto = Object(__WEBPACK_IMPORTED_MODULE_1__isPrototype_js__["a" /* default */])(object),
      result = [];

  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (baseKeysIn);


/***/ }),
/* 349 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (nativeKeysIn);


/***/ }),
/* 350 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseRest_js__ = __webpack_require__(351);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isIterateeCall_js__ = __webpack_require__(358);



/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__baseRest_js__["a" /* default */])(function(object, sources) {
    var index = -1,
        length = sources.length,
        customizer = length > 1 ? sources[length - 1] : undefined,
        guard = length > 2 ? sources[2] : undefined;

    customizer = (assigner.length > 3 && typeof customizer == 'function')
      ? (length--, customizer)
      : undefined;

    if (guard && Object(__WEBPACK_IMPORTED_MODULE_1__isIterateeCall_js__["a" /* default */])(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}

/* harmony default export */ __webpack_exports__["a"] = (createAssigner);


/***/ }),
/* 351 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__identity_js__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__overRest_js__ = __webpack_require__(352);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__setToString_js__ = __webpack_require__(354);




/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return Object(__WEBPACK_IMPORTED_MODULE_2__setToString_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_1__overRest_js__["a" /* default */])(func, start, __WEBPACK_IMPORTED_MODULE_0__identity_js__["a" /* default */]), func + '');
}

/* harmony default export */ __webpack_exports__["a"] = (baseRest);


/***/ }),
/* 352 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__apply_js__ = __webpack_require__(353);


/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  return function() {
    var args = arguments,
        index = -1,
        length = nativeMax(args.length - start, 0),
        array = Array(length);

    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return Object(__WEBPACK_IMPORTED_MODULE_0__apply_js__["a" /* default */])(func, this, otherArgs);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (overRest);


/***/ }),
/* 353 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0: return func.call(thisArg);
    case 1: return func.call(thisArg, args[0]);
    case 2: return func.call(thisArg, args[0], args[1]);
    case 3: return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}

/* harmony default export */ __webpack_exports__["a"] = (apply);


/***/ }),
/* 354 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseSetToString_js__ = __webpack_require__(355);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__shortOut_js__ = __webpack_require__(357);



/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = Object(__WEBPACK_IMPORTED_MODULE_1__shortOut_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__baseSetToString_js__["a" /* default */]);

/* harmony default export */ __webpack_exports__["a"] = (setToString);


/***/ }),
/* 355 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constant_js__ = __webpack_require__(356);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__defineProperty_js__ = __webpack_require__(122);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__identity_js__ = __webpack_require__(45);




/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !__WEBPACK_IMPORTED_MODULE_1__defineProperty_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_2__identity_js__["a" /* default */] : function(func, string) {
  return Object(__WEBPACK_IMPORTED_MODULE_1__defineProperty_js__["a" /* default */])(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': Object(__WEBPACK_IMPORTED_MODULE_0__constant_js__["a" /* default */])(string),
    'writable': true
  });
};

/* harmony default export */ __webpack_exports__["a"] = (baseSetToString);


/***/ }),
/* 356 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function() {
    return value;
  };
}

/* harmony default export */ __webpack_exports__["a"] = (constant);


/***/ }),
/* 357 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
    HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
      lastCalled = 0;

  return function() {
    var stamp = nativeNow(),
        remaining = HOT_SPAN - (stamp - lastCalled);

    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (shortOut);


/***/ }),
/* 358 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArrayLike_js__ = __webpack_require__(24);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isIndex_js__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isObject_js__ = __webpack_require__(12);





/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_3__isObject_js__["a" /* default */])(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number'
        ? (Object(__WEBPACK_IMPORTED_MODULE_1__isArrayLike_js__["a" /* default */])(object) && Object(__WEBPACK_IMPORTED_MODULE_2__isIndex_js__["a" /* default */])(index, object.length))
        : (type == 'string' && index in object)
      ) {
    return Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(object[index], value);
  }
  return false;
}

/* harmony default export */ __webpack_exports__["a"] = (isIterateeCall);


/***/ }),
/* 359 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Saturation */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_es_throttle__ = __webpack_require__(360);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__helpers_saturation__ = __webpack_require__(365);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }






var Saturation = function (_ref) {
  _inherits(Saturation, _ref);

  function Saturation(props) {
    _classCallCheck(this, Saturation);

    var _this = _possibleConstructorReturn(this, (Saturation.__proto__ || Object.getPrototypeOf(Saturation)).call(this, props));

    _this.handleChange = function (e) {
      typeof _this.props.onChange === 'function' && _this.throttle(_this.props.onChange, __WEBPACK_IMPORTED_MODULE_3__helpers_saturation__["a" /* calculateChange */](e, _this.props.hsl, _this.container), e);
    };

    _this.handleMouseDown = function (e) {
      _this.handleChange(e);
      var renderWindow = _this.getContainerRenderWindow();
      renderWindow.addEventListener('mousemove', _this.handleChange);
      renderWindow.addEventListener('mouseup', _this.handleMouseUp);
    };

    _this.handleMouseUp = function () {
      _this.unbindEventListeners();
    };

    _this.throttle = Object(__WEBPACK_IMPORTED_MODULE_2_lodash_es_throttle__["a" /* default */])(function (fn, data, e) {
      fn(data, e);
    }, 50);
    return _this;
  }

  _createClass(Saturation, [{
    key: 'componentWillUnmount',
    value: function componentWillUnmount() {
      this.throttle.cancel();
      this.unbindEventListeners();
    }
  }, {
    key: 'getContainerRenderWindow',
    value: function getContainerRenderWindow() {
      var container = this.container;

      var renderWindow = window;
      while (!renderWindow.document.contains(container) && renderWindow.parent !== renderWindow) {
        renderWindow = renderWindow.parent;
      }
      return renderWindow;
    }
  }, {
    key: 'unbindEventListeners',
    value: function unbindEventListeners() {
      var renderWindow = this.getContainerRenderWindow();
      renderWindow.removeEventListener('mousemove', this.handleChange);
      renderWindow.removeEventListener('mouseup', this.handleMouseUp);
    }
  }, {
    key: 'render',
    value: function render() {
      var _this2 = this;

      var _ref2 = this.props.style || {},
          color = _ref2.color,
          white = _ref2.white,
          black = _ref2.black,
          pointer = _ref2.pointer,
          circle = _ref2.circle;

      var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
        'default': {
          color: {
            absolute: '0px 0px 0px 0px',
            background: 'hsl(' + this.props.hsl.h + ',100%, 50%)',
            borderRadius: this.props.radius
          },
          white: {
            absolute: '0px 0px 0px 0px',
            borderRadius: this.props.radius
          },
          black: {
            absolute: '0px 0px 0px 0px',
            boxShadow: this.props.shadow,
            borderRadius: this.props.radius
          },
          pointer: {
            position: 'absolute',
            top: -(this.props.hsv.v * 100) + 100 + '%',
            left: this.props.hsv.s * 100 + '%',
            cursor: 'default'
          },
          circle: {
            width: '4px',
            height: '4px',
            boxShadow: '0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)',
            borderRadius: '50%',
            cursor: 'hand',
            transform: 'translate(-2px, -2px)'
          }
        },
        'custom': {
          color: color,
          white: white,
          black: black,
          pointer: pointer,
          circle: circle
        }
      }, { 'custom': !!this.props.style });

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        {
          style: styles.color,
          ref: function ref(container) {
            return _this2.container = container;
          },
          onMouseDown: this.handleMouseDown,
          onTouchMove: this.handleChange,
          onTouchStart: this.handleChange
        },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'style',
          null,
          '\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        '
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.white, className: 'saturation-white' },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.black, className: 'saturation-black' }),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.pointer },
            this.props.pointer ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(this.props.pointer, this.props) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.circle })
          )
        )
      );
    }
  }]);

  return Saturation;
}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);

/* harmony default export */ __webpack_exports__["a"] = (Saturation);

/***/ }),
/* 360 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__debounce_js__ = __webpack_require__(130);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(12);



/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */
function throttle(func, wait, options) {
  var leading = true,
      trailing = true;

  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  if (Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(options)) {
    leading = 'leading' in options ? !!options.leading : leading;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }
  return Object(__WEBPACK_IMPORTED_MODULE_0__debounce_js__["a" /* default */])(func, wait, {
    'leading': leading,
    'maxWait': wait,
    'trailing': trailing
  });
}

/* harmony default export */ __webpack_exports__["a"] = (throttle);


/***/ }),
/* 361 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(11);


/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function() {
  return __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Date.now();
};

/* harmony default export */ __webpack_exports__["a"] = (now);


/***/ }),
/* 362 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseTrim_js__ = __webpack_require__(363);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isSymbol_js__ = __webpack_require__(46);




/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if (Object(__WEBPACK_IMPORTED_MODULE_2__isSymbol_js__["a" /* default */])(value)) {
    return NAN;
  }
  if (Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(other) ? (other + '') : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = Object(__WEBPACK_IMPORTED_MODULE_0__baseTrim_js__["a" /* default */])(value);
  var isBinary = reIsBinary.test(value);
  return (isBinary || reIsOctal.test(value))
    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
    : (reIsBadHex.test(value) ? NAN : +value);
}

/* harmony default export */ __webpack_exports__["a"] = (toNumber);


/***/ }),
/* 363 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__trimmedEndIndex_js__ = __webpack_require__(364);


/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string
    ? string.slice(0, Object(__WEBPACK_IMPORTED_MODULE_0__trimmedEndIndex_js__["a" /* default */])(string) + 1).replace(reTrimStart, '')
    : string;
}

/* harmony default export */ __webpack_exports__["a"] = (baseTrim);


/***/ }),
/* 364 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used to match a single whitespace character. */
var reWhitespace = /\s/;

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function trimmedEndIndex(string) {
  var index = string.length;

  while (index-- && reWhitespace.test(string.charAt(index))) {}
  return index;
}

/* harmony default export */ __webpack_exports__["a"] = (trimmedEndIndex);


/***/ }),
/* 365 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return calculateChange; });
var calculateChange = function calculateChange(e, hsl, container) {
  var _container$getBoundin = container.getBoundingClientRect(),
      containerWidth = _container$getBoundin.width,
      containerHeight = _container$getBoundin.height;

  var x = typeof e.pageX === 'number' ? e.pageX : e.touches[0].pageX;
  var y = typeof e.pageY === 'number' ? e.pageY : e.touches[0].pageY;
  var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
  var top = y - (container.getBoundingClientRect().top + window.pageYOffset);

  if (left < 0) {
    left = 0;
  } else if (left > containerWidth) {
    left = containerWidth;
  }

  if (top < 0) {
    top = 0;
  } else if (top > containerHeight) {
    top = containerHeight;
  }

  var saturation = left / containerWidth;
  var bright = 1 - top / containerHeight;

  return {
    h: hsl.h,
    s: saturation,
    v: bright,
    a: hsl.a,
    source: 'hsv'
  };
};

/***/ }),
/* 366 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__forEach_js__ = __webpack_require__(367);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__forEach_js__["a"]; });



/***/ }),
/* 367 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayEach_js__ = __webpack_require__(368);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseEach_js__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__castFunction_js__ = __webpack_require__(373);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(13);





/**
 * Iterates over elements of `collection` and invokes `iteratee` for each element.
 * The iteratee is invoked with three arguments: (value, index|key, collection).
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * **Note:** As with other "Collections" methods, objects with a "length"
 * property are iterated like arrays. To avoid this behavior use `_.forIn`
 * or `_.forOwn` for object iteration.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @alias each
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 * @see _.forEachRight
 * @example
 *
 * _.forEach([1, 2], function(value) {
 *   console.log(value);
 * });
 * // => Logs `1` then `2`.
 *
 * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
 */
function forEach(collection, iteratee) {
  var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayEach_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_1__baseEach_js__["a" /* default */];
  return func(collection, Object(__WEBPACK_IMPORTED_MODULE_2__castFunction_js__["a" /* default */])(iteratee));
}

/* harmony default export */ __webpack_exports__["a"] = (forEach);


/***/ }),
/* 368 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}

/* harmony default export */ __webpack_exports__["a"] = (arrayEach);


/***/ }),
/* 369 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseFor_js__ = __webpack_require__(123);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__keys_js__ = __webpack_require__(79);



/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */
function baseForOwn(object, iteratee) {
  return object && Object(__WEBPACK_IMPORTED_MODULE_0__baseFor_js__["a" /* default */])(object, iteratee, __WEBPACK_IMPORTED_MODULE_1__keys_js__["a" /* default */]);
}

/* harmony default export */ __webpack_exports__["a"] = (baseForOwn);


/***/ }),
/* 370 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isPrototype_js__ = __webpack_require__(73);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__nativeKeys_js__ = __webpack_require__(371);



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!Object(__WEBPACK_IMPORTED_MODULE_0__isPrototype_js__["a" /* default */])(object)) {
    return Object(__WEBPACK_IMPORTED_MODULE_1__nativeKeys_js__["a" /* default */])(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (baseKeys);


/***/ }),
/* 371 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(126);


/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__["a" /* default */])(Object.keys, Object);

/* harmony default export */ __webpack_exports__["a"] = (nativeKeys);


/***/ }),
/* 372 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArrayLike_js__ = __webpack_require__(24);


/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseEach(eachFunc, fromRight) {
  return function(collection, iteratee) {
    if (collection == null) {
      return collection;
    }
    if (!Object(__WEBPACK_IMPORTED_MODULE_0__isArrayLike_js__["a" /* default */])(collection)) {
      return eachFunc(collection, iteratee);
    }
    var length = collection.length,
        index = fromRight ? length : -1,
        iterable = Object(collection);

    while ((fromRight ? index-- : ++index < length)) {
      if (iteratee(iterable[index], index, iterable) === false) {
        break;
      }
    }
    return collection;
  };
}

/* harmony default export */ __webpack_exports__["a"] = (createBaseEach);


/***/ }),
/* 373 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__identity_js__ = __webpack_require__(45);


/**
 * Casts `value` to `identity` if it's not a function.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Function} Returns cast function.
 */
function castFunction(value) {
  return typeof value == 'function' ? value : __WEBPACK_IMPORTED_MODULE_0__identity_js__["a" /* default */];
}

/* harmony default export */ __webpack_exports__["a"] = (castFunction);


/***/ }),
/* 374 */
/***/ (function(module, exports, __webpack_require__) {

// This file is autogenerated. It's used to publish CJS to npm.
(function (global, factory) {
   true ? module.exports = factory() :
  typeof define === 'function' && define.amd ? define(factory) :
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tinycolor = factory());
})(this, (function () { 'use strict';

  function _typeof(obj) {
    "@babel/helpers - typeof";

    return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
      return typeof obj;
    } : function (obj) {
      return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
    }, _typeof(obj);
  }

  // https://github.com/bgrins/TinyColor
  // Brian Grinstead, MIT License

  var trimLeft = /^\s+/;
  var trimRight = /\s+$/;
  function tinycolor(color, opts) {
    color = color ? color : "";
    opts = opts || {};

    // If input is already a tinycolor, return itself
    if (color instanceof tinycolor) {
      return color;
    }
    // If we are called as a function, call using new instead
    if (!(this instanceof tinycolor)) {
      return new tinycolor(color, opts);
    }
    var rgb = inputToRGB(color);
    this._originalInput = color, this._r = rgb.r, this._g = rgb.g, this._b = rgb.b, this._a = rgb.a, this._roundA = Math.round(100 * this._a) / 100, this._format = opts.format || rgb.format;
    this._gradientType = opts.gradientType;

    // Don't let the range of [0,255] come back in [0,1].
    // Potentially lose a little bit of precision here, but will fix issues where
    // .5 gets interpreted as half of the total, instead of half of 1
    // If it was supposed to be 128, this was already taken care of by `inputToRgb`
    if (this._r < 1) this._r = Math.round(this._r);
    if (this._g < 1) this._g = Math.round(this._g);
    if (this._b < 1) this._b = Math.round(this._b);
    this._ok = rgb.ok;
  }
  tinycolor.prototype = {
    isDark: function isDark() {
      return this.getBrightness() < 128;
    },
    isLight: function isLight() {
      return !this.isDark();
    },
    isValid: function isValid() {
      return this._ok;
    },
    getOriginalInput: function getOriginalInput() {
      return this._originalInput;
    },
    getFormat: function getFormat() {
      return this._format;
    },
    getAlpha: function getAlpha() {
      return this._a;
    },
    getBrightness: function getBrightness() {
      //http://www.w3.org/TR/AERT#color-contrast
      var rgb = this.toRgb();
      return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
    },
    getLuminance: function getLuminance() {
      //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
      var rgb = this.toRgb();
      var RsRGB, GsRGB, BsRGB, R, G, B;
      RsRGB = rgb.r / 255;
      GsRGB = rgb.g / 255;
      BsRGB = rgb.b / 255;
      if (RsRGB <= 0.03928) R = RsRGB / 12.92;else R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
      if (GsRGB <= 0.03928) G = GsRGB / 12.92;else G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
      if (BsRGB <= 0.03928) B = BsRGB / 12.92;else B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
      return 0.2126 * R + 0.7152 * G + 0.0722 * B;
    },
    setAlpha: function setAlpha(value) {
      this._a = boundAlpha(value);
      this._roundA = Math.round(100 * this._a) / 100;
      return this;
    },
    toHsv: function toHsv() {
      var hsv = rgbToHsv(this._r, this._g, this._b);
      return {
        h: hsv.h * 360,
        s: hsv.s,
        v: hsv.v,
        a: this._a
      };
    },
    toHsvString: function toHsvString() {
      var hsv = rgbToHsv(this._r, this._g, this._b);
      var h = Math.round(hsv.h * 360),
        s = Math.round(hsv.s * 100),
        v = Math.round(hsv.v * 100);
      return this._a == 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this._roundA + ")";
    },
    toHsl: function toHsl() {
      var hsl = rgbToHsl(this._r, this._g, this._b);
      return {
        h: hsl.h * 360,
        s: hsl.s,
        l: hsl.l,
        a: this._a
      };
    },
    toHslString: function toHslString() {
      var hsl = rgbToHsl(this._r, this._g, this._b);
      var h = Math.round(hsl.h * 360),
        s = Math.round(hsl.s * 100),
        l = Math.round(hsl.l * 100);
      return this._a == 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this._roundA + ")";
    },
    toHex: function toHex(allow3Char) {
      return rgbToHex(this._r, this._g, this._b, allow3Char);
    },
    toHexString: function toHexString(allow3Char) {
      return "#" + this.toHex(allow3Char);
    },
    toHex8: function toHex8(allow4Char) {
      return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
    },
    toHex8String: function toHex8String(allow4Char) {
      return "#" + this.toHex8(allow4Char);
    },
    toRgb: function toRgb() {
      return {
        r: Math.round(this._r),
        g: Math.round(this._g),
        b: Math.round(this._b),
        a: this._a
      };
    },
    toRgbString: function toRgbString() {
      return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
    },
    toPercentageRgb: function toPercentageRgb() {
      return {
        r: Math.round(bound01(this._r, 255) * 100) + "%",
        g: Math.round(bound01(this._g, 255) * 100) + "%",
        b: Math.round(bound01(this._b, 255) * 100) + "%",
        a: this._a
      };
    },
    toPercentageRgbString: function toPercentageRgbString() {
      return this._a == 1 ? "rgb(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(bound01(this._r, 255) * 100) + "%, " + Math.round(bound01(this._g, 255) * 100) + "%, " + Math.round(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
    },
    toName: function toName() {
      if (this._a === 0) {
        return "transparent";
      }
      if (this._a < 1) {
        return false;
      }
      return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
    },
    toFilter: function toFilter(secondColor) {
      var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a);
      var secondHex8String = hex8String;
      var gradientType = this._gradientType ? "GradientType = 1, " : "";
      if (secondColor) {
        var s = tinycolor(secondColor);
        secondHex8String = "#" + rgbaToArgbHex(s._r, s._g, s._b, s._a);
      }
      return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
    },
    toString: function toString(format) {
      var formatSet = !!format;
      format = format || this._format;
      var formattedString = false;
      var hasAlpha = this._a < 1 && this._a >= 0;
      var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
      if (needsAlphaFormat) {
        // Special case for "transparent", all other non-alpha formats
        // will return rgba when there is transparency.
        if (format === "name" && this._a === 0) {
          return this.toName();
        }
        return this.toRgbString();
      }
      if (format === "rgb") {
        formattedString = this.toRgbString();
      }
      if (format === "prgb") {
        formattedString = this.toPercentageRgbString();
      }
      if (format === "hex" || format === "hex6") {
        formattedString = this.toHexString();
      }
      if (format === "hex3") {
        formattedString = this.toHexString(true);
      }
      if (format === "hex4") {
        formattedString = this.toHex8String(true);
      }
      if (format === "hex8") {
        formattedString = this.toHex8String();
      }
      if (format === "name") {
        formattedString = this.toName();
      }
      if (format === "hsl") {
        formattedString = this.toHslString();
      }
      if (format === "hsv") {
        formattedString = this.toHsvString();
      }
      return formattedString || this.toHexString();
    },
    clone: function clone() {
      return tinycolor(this.toString());
    },
    _applyModification: function _applyModification(fn, args) {
      var color = fn.apply(null, [this].concat([].slice.call(args)));
      this._r = color._r;
      this._g = color._g;
      this._b = color._b;
      this.setAlpha(color._a);
      return this;
    },
    lighten: function lighten() {
      return this._applyModification(_lighten, arguments);
    },
    brighten: function brighten() {
      return this._applyModification(_brighten, arguments);
    },
    darken: function darken() {
      return this._applyModification(_darken, arguments);
    },
    desaturate: function desaturate() {
      return this._applyModification(_desaturate, arguments);
    },
    saturate: function saturate() {
      return this._applyModification(_saturate, arguments);
    },
    greyscale: function greyscale() {
      return this._applyModification(_greyscale, arguments);
    },
    spin: function spin() {
      return this._applyModification(_spin, arguments);
    },
    _applyCombination: function _applyCombination(fn, args) {
      return fn.apply(null, [this].concat([].slice.call(args)));
    },
    analogous: function analogous() {
      return this._applyCombination(_analogous, arguments);
    },
    complement: function complement() {
      return this._applyCombination(_complement, arguments);
    },
    monochromatic: function monochromatic() {
      return this._applyCombination(_monochromatic, arguments);
    },
    splitcomplement: function splitcomplement() {
      return this._applyCombination(_splitcomplement, arguments);
    },
    // Disabled until https://github.com/bgrins/TinyColor/issues/254
    // polyad: function (number) {
    //   return this._applyCombination(polyad, [number]);
    // },
    triad: function triad() {
      return this._applyCombination(polyad, [3]);
    },
    tetrad: function tetrad() {
      return this._applyCombination(polyad, [4]);
    }
  };

  // If input is an object, force 1 into "1.0" to handle ratios properly
  // String input requires "1.0" as input, so 1 will be treated as 1
  tinycolor.fromRatio = function (color, opts) {
    if (_typeof(color) == "object") {
      var newColor = {};
      for (var i in color) {
        if (color.hasOwnProperty(i)) {
          if (i === "a") {
            newColor[i] = color[i];
          } else {
            newColor[i] = convertToPercentage(color[i]);
          }
        }
      }
      color = newColor;
    }
    return tinycolor(color, opts);
  };

  // Given a string or object, convert that input to RGB
  // Possible string inputs:
  //
  //     "red"
  //     "#f00" or "f00"
  //     "#ff0000" or "ff0000"
  //     "#ff000000" or "ff000000"
  //     "rgb 255 0 0" or "rgb (255, 0, 0)"
  //     "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  //     "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  //     "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  //     "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  //     "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  //     "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  //
  function inputToRGB(color) {
    var rgb = {
      r: 0,
      g: 0,
      b: 0
    };
    var a = 1;
    var s = null;
    var v = null;
    var l = null;
    var ok = false;
    var format = false;
    if (typeof color == "string") {
      color = stringInputToObject(color);
    }
    if (_typeof(color) == "object") {
      if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
        rgb = rgbToRgb(color.r, color.g, color.b);
        ok = true;
        format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
      } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
        s = convertToPercentage(color.s);
        v = convertToPercentage(color.v);
        rgb = hsvToRgb(color.h, s, v);
        ok = true;
        format = "hsv";
      } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
        s = convertToPercentage(color.s);
        l = convertToPercentage(color.l);
        rgb = hslToRgb(color.h, s, l);
        ok = true;
        format = "hsl";
      }
      if (color.hasOwnProperty("a")) {
        a = color.a;
      }
    }
    a = boundAlpha(a);
    return {
      ok: ok,
      format: color.format || format,
      r: Math.min(255, Math.max(rgb.r, 0)),
      g: Math.min(255, Math.max(rgb.g, 0)),
      b: Math.min(255, Math.max(rgb.b, 0)),
      a: a
    };
  }

  // Conversion Functions
  // --------------------

  // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>

  // `rgbToRgb`
  // Handle bounds / percentage checking to conform to CSS color spec
  // <http://www.w3.org/TR/css3-color/>
  // *Assumes:* r, g, b in [0, 255] or [0, 1]
  // *Returns:* { r, g, b } in [0, 255]
  function rgbToRgb(r, g, b) {
    return {
      r: bound01(r, 255) * 255,
      g: bound01(g, 255) * 255,
      b: bound01(b, 255) * 255
    };
  }

  // `rgbToHsl`
  // Converts an RGB color value to HSL.
  // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  // *Returns:* { h, s, l } in [0,1]
  function rgbToHsl(r, g, b) {
    r = bound01(r, 255);
    g = bound01(g, 255);
    b = bound01(b, 255);
    var max = Math.max(r, g, b),
      min = Math.min(r, g, b);
    var h,
      s,
      l = (max + min) / 2;
    if (max == min) {
      h = s = 0; // achromatic
    } else {
      var d = max - min;
      s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
      switch (max) {
        case r:
          h = (g - b) / d + (g < b ? 6 : 0);
          break;
        case g:
          h = (b - r) / d + 2;
          break;
        case b:
          h = (r - g) / d + 4;
          break;
      }
      h /= 6;
    }
    return {
      h: h,
      s: s,
      l: l
    };
  }

  // `hslToRgb`
  // Converts an HSL color value to RGB.
  // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  // *Returns:* { r, g, b } in the set [0, 255]
  function hslToRgb(h, s, l) {
    var r, g, b;
    h = bound01(h, 360);
    s = bound01(s, 100);
    l = bound01(l, 100);
    function hue2rgb(p, q, t) {
      if (t < 0) t += 1;
      if (t > 1) t -= 1;
      if (t < 1 / 6) return p + (q - p) * 6 * t;
      if (t < 1 / 2) return q;
      if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
      return p;
    }
    if (s === 0) {
      r = g = b = l; // achromatic
    } else {
      var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
      var p = 2 * l - q;
      r = hue2rgb(p, q, h + 1 / 3);
      g = hue2rgb(p, q, h);
      b = hue2rgb(p, q, h - 1 / 3);
    }
    return {
      r: r * 255,
      g: g * 255,
      b: b * 255
    };
  }

  // `rgbToHsv`
  // Converts an RGB color value to HSV
  // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  // *Returns:* { h, s, v } in [0,1]
  function rgbToHsv(r, g, b) {
    r = bound01(r, 255);
    g = bound01(g, 255);
    b = bound01(b, 255);
    var max = Math.max(r, g, b),
      min = Math.min(r, g, b);
    var h,
      s,
      v = max;
    var d = max - min;
    s = max === 0 ? 0 : d / max;
    if (max == min) {
      h = 0; // achromatic
    } else {
      switch (max) {
        case r:
          h = (g - b) / d + (g < b ? 6 : 0);
          break;
        case g:
          h = (b - r) / d + 2;
          break;
        case b:
          h = (r - g) / d + 4;
          break;
      }
      h /= 6;
    }
    return {
      h: h,
      s: s,
      v: v
    };
  }

  // `hsvToRgb`
  // Converts an HSV color value to RGB.
  // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  // *Returns:* { r, g, b } in the set [0, 255]
  function hsvToRgb(h, s, v) {
    h = bound01(h, 360) * 6;
    s = bound01(s, 100);
    v = bound01(v, 100);
    var i = Math.floor(h),
      f = h - i,
      p = v * (1 - s),
      q = v * (1 - f * s),
      t = v * (1 - (1 - f) * s),
      mod = i % 6,
      r = [v, q, p, p, t, v][mod],
      g = [t, v, v, q, p, p][mod],
      b = [p, p, t, v, v, q][mod];
    return {
      r: r * 255,
      g: g * 255,
      b: b * 255
    };
  }

  // `rgbToHex`
  // Converts an RGB color to hex
  // Assumes r, g, and b are contained in the set [0, 255]
  // Returns a 3 or 6 character hex
  function rgbToHex(r, g, b, allow3Char) {
    var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];

    // Return a 3 character hex if possible
    if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
      return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
    }
    return hex.join("");
  }

  // `rgbaToHex`
  // Converts an RGBA color plus alpha transparency to hex
  // Assumes r, g, b are contained in the set [0, 255] and
  // a in [0, 1]. Returns a 4 or 8 character rgba hex
  function rgbaToHex(r, g, b, a, allow4Char) {
    var hex = [pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16)), pad2(convertDecimalToHex(a))];

    // Return a 4 character hex if possible
    if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
      return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
    }
    return hex.join("");
  }

  // `rgbaToArgbHex`
  // Converts an RGBA color to an ARGB Hex8 string
  // Rarely used, but required for "toFilter()"
  function rgbaToArgbHex(r, g, b, a) {
    var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
    return hex.join("");
  }

  // `equals`
  // Can be called with any tinycolor input
  tinycolor.equals = function (color1, color2) {
    if (!color1 || !color2) return false;
    return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
  };
  tinycolor.random = function () {
    return tinycolor.fromRatio({
      r: Math.random(),
      g: Math.random(),
      b: Math.random()
    });
  };

  // Modification Functions
  // ----------------------
  // Thanks to less.js for some of the basics here
  // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>

  function _desaturate(color, amount) {
    amount = amount === 0 ? 0 : amount || 10;
    var hsl = tinycolor(color).toHsl();
    hsl.s -= amount / 100;
    hsl.s = clamp01(hsl.s);
    return tinycolor(hsl);
  }
  function _saturate(color, amount) {
    amount = amount === 0 ? 0 : amount || 10;
    var hsl = tinycolor(color).toHsl();
    hsl.s += amount / 100;
    hsl.s = clamp01(hsl.s);
    return tinycolor(hsl);
  }
  function _greyscale(color) {
    return tinycolor(color).desaturate(100);
  }
  function _lighten(color, amount) {
    amount = amount === 0 ? 0 : amount || 10;
    var hsl = tinycolor(color).toHsl();
    hsl.l += amount / 100;
    hsl.l = clamp01(hsl.l);
    return tinycolor(hsl);
  }
  function _brighten(color, amount) {
    amount = amount === 0 ? 0 : amount || 10;
    var rgb = tinycolor(color).toRgb();
    rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
    rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
    rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
    return tinycolor(rgb);
  }
  function _darken(color, amount) {
    amount = amount === 0 ? 0 : amount || 10;
    var hsl = tinycolor(color).toHsl();
    hsl.l -= amount / 100;
    hsl.l = clamp01(hsl.l);
    return tinycolor(hsl);
  }

  // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  // Values outside of this range will be wrapped into this range.
  function _spin(color, amount) {
    var hsl = tinycolor(color).toHsl();
    var hue = (hsl.h + amount) % 360;
    hsl.h = hue < 0 ? 360 + hue : hue;
    return tinycolor(hsl);
  }

  // Combination Functions
  // ---------------------
  // Thanks to jQuery xColor for some of the ideas behind these
  // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>

  function _complement(color) {
    var hsl = tinycolor(color).toHsl();
    hsl.h = (hsl.h + 180) % 360;
    return tinycolor(hsl);
  }
  function polyad(color, number) {
    if (isNaN(number) || number <= 0) {
      throw new Error("Argument to polyad must be a positive number");
    }
    var hsl = tinycolor(color).toHsl();
    var result = [tinycolor(color)];
    var step = 360 / number;
    for (var i = 1; i < number; i++) {
      result.push(tinycolor({
        h: (hsl.h + i * step) % 360,
        s: hsl.s,
        l: hsl.l
      }));
    }
    return result;
  }
  function _splitcomplement(color) {
    var hsl = tinycolor(color).toHsl();
    var h = hsl.h;
    return [tinycolor(color), tinycolor({
      h: (h + 72) % 360,
      s: hsl.s,
      l: hsl.l
    }), tinycolor({
      h: (h + 216) % 360,
      s: hsl.s,
      l: hsl.l
    })];
  }
  function _analogous(color, results, slices) {
    results = results || 6;
    slices = slices || 30;
    var hsl = tinycolor(color).toHsl();
    var part = 360 / slices;
    var ret = [tinycolor(color)];
    for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results;) {
      hsl.h = (hsl.h + part) % 360;
      ret.push(tinycolor(hsl));
    }
    return ret;
  }
  function _monochromatic(color, results) {
    results = results || 6;
    var hsv = tinycolor(color).toHsv();
    var h = hsv.h,
      s = hsv.s,
      v = hsv.v;
    var ret = [];
    var modification = 1 / results;
    while (results--) {
      ret.push(tinycolor({
        h: h,
        s: s,
        v: v
      }));
      v = (v + modification) % 1;
    }
    return ret;
  }

  // Utility Functions
  // ---------------------

  tinycolor.mix = function (color1, color2, amount) {
    amount = amount === 0 ? 0 : amount || 50;
    var rgb1 = tinycolor(color1).toRgb();
    var rgb2 = tinycolor(color2).toRgb();
    var p = amount / 100;
    var rgba = {
      r: (rgb2.r - rgb1.r) * p + rgb1.r,
      g: (rgb2.g - rgb1.g) * p + rgb1.g,
      b: (rgb2.b - rgb1.b) * p + rgb1.b,
      a: (rgb2.a - rgb1.a) * p + rgb1.a
    };
    return tinycolor(rgba);
  };

  // Readability Functions
  // ---------------------
  // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)

  // `contrast`
  // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
  tinycolor.readability = function (color1, color2) {
    var c1 = tinycolor(color1);
    var c2 = tinycolor(color2);
    return (Math.max(c1.getLuminance(), c2.getLuminance()) + 0.05) / (Math.min(c1.getLuminance(), c2.getLuminance()) + 0.05);
  };

  // `isReadable`
  // Ensure that foreground and background color combinations meet WCAG2 guidelines.
  // The third argument is an optional Object.
  //      the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
  //      the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
  // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.

  // *Example*
  //    tinycolor.isReadable("#000", "#111") => false
  //    tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
  tinycolor.isReadable = function (color1, color2, wcag2) {
    var readability = tinycolor.readability(color1, color2);
    var wcag2Parms, out;
    out = false;
    wcag2Parms = validateWCAG2Parms(wcag2);
    switch (wcag2Parms.level + wcag2Parms.size) {
      case "AAsmall":
      case "AAAlarge":
        out = readability >= 4.5;
        break;
      case "AAlarge":
        out = readability >= 3;
        break;
      case "AAAsmall":
        out = readability >= 7;
        break;
    }
    return out;
  };

  // `mostReadable`
  // Given a base color and a list of possible foreground or background
  // colors for that base, returns the most readable color.
  // Optionally returns Black or White if the most readable color is unreadable.
  // *Example*
  //    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
  //    tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString();  // "#ffffff"
  //    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
  //    tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
  tinycolor.mostReadable = function (baseColor, colorList, args) {
    var bestColor = null;
    var bestScore = 0;
    var readability;
    var includeFallbackColors, level, size;
    args = args || {};
    includeFallbackColors = args.includeFallbackColors;
    level = args.level;
    size = args.size;
    for (var i = 0; i < colorList.length; i++) {
      readability = tinycolor.readability(baseColor, colorList[i]);
      if (readability > bestScore) {
        bestScore = readability;
        bestColor = tinycolor(colorList[i]);
      }
    }
    if (tinycolor.isReadable(baseColor, bestColor, {
      level: level,
      size: size
    }) || !includeFallbackColors) {
      return bestColor;
    } else {
      args.includeFallbackColors = false;
      return tinycolor.mostReadable(baseColor, ["#fff", "#000"], args);
    }
  };

  // Big List of Colors
  // ------------------
  // <https://www.w3.org/TR/css-color-4/#named-colors>
  var names = tinycolor.names = {
    aliceblue: "f0f8ff",
    antiquewhite: "faebd7",
    aqua: "0ff",
    aquamarine: "7fffd4",
    azure: "f0ffff",
    beige: "f5f5dc",
    bisque: "ffe4c4",
    black: "000",
    blanchedalmond: "ffebcd",
    blue: "00f",
    blueviolet: "8a2be2",
    brown: "a52a2a",
    burlywood: "deb887",
    burntsienna: "ea7e5d",
    cadetblue: "5f9ea0",
    chartreuse: "7fff00",
    chocolate: "d2691e",
    coral: "ff7f50",
    cornflowerblue: "6495ed",
    cornsilk: "fff8dc",
    crimson: "dc143c",
    cyan: "0ff",
    darkblue: "00008b",
    darkcyan: "008b8b",
    darkgoldenrod: "b8860b",
    darkgray: "a9a9a9",
    darkgreen: "006400",
    darkgrey: "a9a9a9",
    darkkhaki: "bdb76b",
    darkmagenta: "8b008b",
    darkolivegreen: "556b2f",
    darkorange: "ff8c00",
    darkorchid: "9932cc",
    darkred: "8b0000",
    darksalmon: "e9967a",
    darkseagreen: "8fbc8f",
    darkslateblue: "483d8b",
    darkslategray: "2f4f4f",
    darkslategrey: "2f4f4f",
    darkturquoise: "00ced1",
    darkviolet: "9400d3",
    deeppink: "ff1493",
    deepskyblue: "00bfff",
    dimgray: "696969",
    dimgrey: "696969",
    dodgerblue: "1e90ff",
    firebrick: "b22222",
    floralwhite: "fffaf0",
    forestgreen: "228b22",
    fuchsia: "f0f",
    gainsboro: "dcdcdc",
    ghostwhite: "f8f8ff",
    gold: "ffd700",
    goldenrod: "daa520",
    gray: "808080",
    green: "008000",
    greenyellow: "adff2f",
    grey: "808080",
    honeydew: "f0fff0",
    hotpink: "ff69b4",
    indianred: "cd5c5c",
    indigo: "4b0082",
    ivory: "fffff0",
    khaki: "f0e68c",
    lavender: "e6e6fa",
    lavenderblush: "fff0f5",
    lawngreen: "7cfc00",
    lemonchiffon: "fffacd",
    lightblue: "add8e6",
    lightcoral: "f08080",
    lightcyan: "e0ffff",
    lightgoldenrodyellow: "fafad2",
    lightgray: "d3d3d3",
    lightgreen: "90ee90",
    lightgrey: "d3d3d3",
    lightpink: "ffb6c1",
    lightsalmon: "ffa07a",
    lightseagreen: "20b2aa",
    lightskyblue: "87cefa",
    lightslategray: "789",
    lightslategrey: "789",
    lightsteelblue: "b0c4de",
    lightyellow: "ffffe0",
    lime: "0f0",
    limegreen: "32cd32",
    linen: "faf0e6",
    magenta: "f0f",
    maroon: "800000",
    mediumaquamarine: "66cdaa",
    mediumblue: "0000cd",
    mediumorchid: "ba55d3",
    mediumpurple: "9370db",
    mediumseagreen: "3cb371",
    mediumslateblue: "7b68ee",
    mediumspringgreen: "00fa9a",
    mediumturquoise: "48d1cc",
    mediumvioletred: "c71585",
    midnightblue: "191970",
    mintcream: "f5fffa",
    mistyrose: "ffe4e1",
    moccasin: "ffe4b5",
    navajowhite: "ffdead",
    navy: "000080",
    oldlace: "fdf5e6",
    olive: "808000",
    olivedrab: "6b8e23",
    orange: "ffa500",
    orangered: "ff4500",
    orchid: "da70d6",
    palegoldenrod: "eee8aa",
    palegreen: "98fb98",
    paleturquoise: "afeeee",
    palevioletred: "db7093",
    papayawhip: "ffefd5",
    peachpuff: "ffdab9",
    peru: "cd853f",
    pink: "ffc0cb",
    plum: "dda0dd",
    powderblue: "b0e0e6",
    purple: "800080",
    rebeccapurple: "663399",
    red: "f00",
    rosybrown: "bc8f8f",
    royalblue: "4169e1",
    saddlebrown: "8b4513",
    salmon: "fa8072",
    sandybrown: "f4a460",
    seagreen: "2e8b57",
    seashell: "fff5ee",
    sienna: "a0522d",
    silver: "c0c0c0",
    skyblue: "87ceeb",
    slateblue: "6a5acd",
    slategray: "708090",
    slategrey: "708090",
    snow: "fffafa",
    springgreen: "00ff7f",
    steelblue: "4682b4",
    tan: "d2b48c",
    teal: "008080",
    thistle: "d8bfd8",
    tomato: "ff6347",
    turquoise: "40e0d0",
    violet: "ee82ee",
    wheat: "f5deb3",
    white: "fff",
    whitesmoke: "f5f5f5",
    yellow: "ff0",
    yellowgreen: "9acd32"
  };

  // Make it easy to access colors via `hexNames[hex]`
  var hexNames = tinycolor.hexNames = flip(names);

  // Utilities
  // ---------

  // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
  function flip(o) {
    var flipped = {};
    for (var i in o) {
      if (o.hasOwnProperty(i)) {
        flipped[o[i]] = i;
      }
    }
    return flipped;
  }

  // Return a valid alpha value [0,1] with all invalid values being set to 1
  function boundAlpha(a) {
    a = parseFloat(a);
    if (isNaN(a) || a < 0 || a > 1) {
      a = 1;
    }
    return a;
  }

  // Take input from [0, n] and return it as [0, 1]
  function bound01(n, max) {
    if (isOnePointZero(n)) n = "100%";
    var processPercent = isPercentage(n);
    n = Math.min(max, Math.max(0, parseFloat(n)));

    // Automatically convert percentage into number
    if (processPercent) {
      n = parseInt(n * max, 10) / 100;
    }

    // Handle floating point rounding errors
    if (Math.abs(n - max) < 0.000001) {
      return 1;
    }

    // Convert into [0, 1] range if it isn't already
    return n % max / parseFloat(max);
  }

  // Force a number between 0 and 1
  function clamp01(val) {
    return Math.min(1, Math.max(0, val));
  }

  // Parse a base-16 hex value into a base-10 integer
  function parseIntFromHex(val) {
    return parseInt(val, 16);
  }

  // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  function isOnePointZero(n) {
    return typeof n == "string" && n.indexOf(".") != -1 && parseFloat(n) === 1;
  }

  // Check to see if string passed in is a percentage
  function isPercentage(n) {
    return typeof n === "string" && n.indexOf("%") != -1;
  }

  // Force a hex value to have 2 characters
  function pad2(c) {
    return c.length == 1 ? "0" + c : "" + c;
  }

  // Replace a decimal with it's percentage value
  function convertToPercentage(n) {
    if (n <= 1) {
      n = n * 100 + "%";
    }
    return n;
  }

  // Converts a decimal to a hex value
  function convertDecimalToHex(d) {
    return Math.round(parseFloat(d) * 255).toString(16);
  }
  // Converts a hex value to a decimal
  function convertHexToDecimal(h) {
    return parseIntFromHex(h) / 255;
  }
  var matchers = function () {
    // <http://www.w3.org/TR/css3-values/#integers>
    var CSS_INTEGER = "[-\\+]?\\d+%?";

    // <http://www.w3.org/TR/css3-values/#number-value>
    var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";

    // Allow positive/negative integer/number.  Don't capture the either/or, just the entire outcome.
    var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";

    // Actual matching.
    // Parentheses and commas are optional, but not required.
    // Whitespace can take the place of commas or opening paren
    var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
    var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
    return {
      CSS_UNIT: new RegExp(CSS_UNIT),
      rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
      rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
      hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
      hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
      hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
      hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
      hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
      hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
      hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
      hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
    };
  }();

  // `isValidCSSUnit`
  // Take in a single string / number and check to see if it looks like a CSS unit
  // (see `matchers` above for definition).
  function isValidCSSUnit(color) {
    return !!matchers.CSS_UNIT.exec(color);
  }

  // `stringInputToObject`
  // Permissive string parsing.  Take in a number of formats, and output an object
  // based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  function stringInputToObject(color) {
    color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase();
    var named = false;
    if (names[color]) {
      color = names[color];
      named = true;
    } else if (color == "transparent") {
      return {
        r: 0,
        g: 0,
        b: 0,
        a: 0,
        format: "name"
      };
    }

    // Try to match string input using regular expressions.
    // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
    // Just return an object and let the conversion functions handle that.
    // This way the result will be the same whether the tinycolor is initialized with string or object.
    var match;
    if (match = matchers.rgb.exec(color)) {
      return {
        r: match[1],
        g: match[2],
        b: match[3]
      };
    }
    if (match = matchers.rgba.exec(color)) {
      return {
        r: match[1],
        g: match[2],
        b: match[3],
        a: match[4]
      };
    }
    if (match = matchers.hsl.exec(color)) {
      return {
        h: match[1],
        s: match[2],
        l: match[3]
      };
    }
    if (match = matchers.hsla.exec(color)) {
      return {
        h: match[1],
        s: match[2],
        l: match[3],
        a: match[4]
      };
    }
    if (match = matchers.hsv.exec(color)) {
      return {
        h: match[1],
        s: match[2],
        v: match[3]
      };
    }
    if (match = matchers.hsva.exec(color)) {
      return {
        h: match[1],
        s: match[2],
        v: match[3],
        a: match[4]
      };
    }
    if (match = matchers.hex8.exec(color)) {
      return {
        r: parseIntFromHex(match[1]),
        g: parseIntFromHex(match[2]),
        b: parseIntFromHex(match[3]),
        a: convertHexToDecimal(match[4]),
        format: named ? "name" : "hex8"
      };
    }
    if (match = matchers.hex6.exec(color)) {
      return {
        r: parseIntFromHex(match[1]),
        g: parseIntFromHex(match[2]),
        b: parseIntFromHex(match[3]),
        format: named ? "name" : "hex"
      };
    }
    if (match = matchers.hex4.exec(color)) {
      return {
        r: parseIntFromHex(match[1] + "" + match[1]),
        g: parseIntFromHex(match[2] + "" + match[2]),
        b: parseIntFromHex(match[3] + "" + match[3]),
        a: convertHexToDecimal(match[4] + "" + match[4]),
        format: named ? "name" : "hex8"
      };
    }
    if (match = matchers.hex3.exec(color)) {
      return {
        r: parseIntFromHex(match[1] + "" + match[1]),
        g: parseIntFromHex(match[2] + "" + match[2]),
        b: parseIntFromHex(match[3] + "" + match[3]),
        format: named ? "name" : "hex"
      };
    }
    return false;
  }
  function validateWCAG2Parms(parms) {
    // return valid WCAG2 parms for isReadable.
    // If input parms are invalid, return {"level":"AA", "size":"small"}
    var level, size;
    parms = parms || {
      level: "AA",
      size: "small"
    };
    level = (parms.level || "AA").toUpperCase();
    size = (parms.size || "small").toLowerCase();
    if (level !== "AA" && level !== "AAA") {
      level = "AA";
    }
    if (size !== "small" && size !== "large") {
      size = "small";
    }
    return {
      level: level,
      size: size
    };
  }

  return tinycolor;

}));


/***/ }),
/* 375 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Swatch */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_interaction__ = __webpack_require__(376);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Checkboard__ = __webpack_require__(65);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };







var ENTER = 13;

var Swatch = function Swatch(_ref) {
  var color = _ref.color,
      style = _ref.style,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
      onHover = _ref.onHover,
      _ref$title = _ref.title,
      title = _ref$title === undefined ? color : _ref$title,
      children = _ref.children,
      focus = _ref.focus,
      _ref$focusStyle = _ref.focusStyle,
      focusStyle = _ref$focusStyle === undefined ? {} : _ref$focusStyle;

  var transparent = color === 'transparent';
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    default: {
      swatch: _extends({
        background: color,
        height: '100%',
        width: '100%',
        cursor: 'pointer',
        position: 'relative',
        outline: 'none'
      }, style, focus ? focusStyle : {})
    }
  });

  var handleClick = function handleClick(e) {
    return onClick(color, e);
  };
  var handleKeyDown = function handleKeyDown(e) {
    return e.keyCode === ENTER && onClick(color, e);
  };
  var handleHover = function handleHover(e) {
    return onHover(color, e);
  };

  var optionalEvents = {};
  if (onHover) {
    optionalEvents.onMouseOver = handleHover;
  }

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    _extends({
      style: styles.swatch,
      onClick: handleClick,
      title: title,
      tabIndex: 0,
      onKeyDown: handleKeyDown
    }, optionalEvents),
    children,
    transparent && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__Checkboard__["a" /* default */], {
      borderRadius: styles.swatch.borderRadius,
      boxShadow: 'inset 0 0 0 1px rgba(0,0,0,0.1)'
    })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_2__helpers_interaction__["a" /* handleFocus */])(Swatch));

/***/ }),
/* 376 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return handleFocus; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/* eslint-disable no-invalid-this */


var handleFocus = function handleFocus(Component) {
  var Span = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'span';
  return function (_React$Component) {
    _inherits(Focus, _React$Component);

    function Focus() {
      var _ref;

      var _temp, _this, _ret;

      _classCallCheck(this, Focus);

      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }

      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.state = { focus: false }, _this.handleFocus = function () {
        return _this.setState({ focus: true });
      }, _this.handleBlur = function () {
        return _this.setState({ focus: false });
      }, _temp), _possibleConstructorReturn(_this, _ret);
    }

    _createClass(Focus, [{
      key: 'render',
      value: function render() {
        return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          Span,
          { onFocus: this.handleFocus, onBlur: this.handleBlur },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Component, _extends({}, this.props, this.state))
        );
      }
    }]);

    return Focus;
  }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
};

/***/ }),
/* 377 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export AlphaPointer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var AlphaPointer = function AlphaPointer(_ref) {
  var direction = _ref.direction;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '18px',
        height: '18px',
        borderRadius: '50%',
        transform: 'translate(-9px, -1px)',
        backgroundColor: 'rgb(248, 248, 248)',
        boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
      }
    },
    'vertical': {
      picker: {
        transform: 'translate(-3px, -9px)'
      }
    }
  }, { vertical: direction === 'vertical' });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (AlphaPointer);

/***/ }),
/* 378 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Block */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__BlockSwatches__ = __webpack_require__(379);









var Block = function Block(_ref) {
  var onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      hex = _ref.hex,
      colors = _ref.colors,
      width = _ref.width,
      triangle = _ref.triangle,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var transparent = hex === 'transparent';
  var handleChange = function handleChange(hexCode, e) {
    __WEBPACK_IMPORTED_MODULE_4__helpers_color__["b" /* isValidHex */](hexCode) && onChange({
      hex: hexCode,
      source: 'hex'
    }, e);
  };

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      card: {
        width: width,
        background: '#fff',
        boxShadow: '0 1px rgba(0,0,0,.1)',
        borderRadius: '6px',
        position: 'relative'
      },
      head: {
        height: '110px',
        background: hex,
        borderRadius: '6px 6px 0 0',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        position: 'relative'
      },
      body: {
        padding: '10px'
      },
      label: {
        fontSize: '18px',
        color: __WEBPACK_IMPORTED_MODULE_4__helpers_color__["a" /* getContrastingColor */](hex),
        position: 'relative'
      },
      triangle: {
        width: '0px',
        height: '0px',
        borderStyle: 'solid',
        borderWidth: '0 10px 10px 10px',
        borderColor: 'transparent transparent ' + hex + ' transparent',
        position: 'absolute',
        top: '-10px',
        left: '50%',
        marginLeft: '-10px'
      },
      input: {
        width: '100%',
        fontSize: '12px',
        color: '#666',
        border: '0px',
        outline: 'none',
        height: '22px',
        boxShadow: 'inset 0 0 0 1px #ddd',
        borderRadius: '4px',
        padding: '0 7px',
        boxSizing: 'border-box'
      }
    },
    'hide-triangle': {
      triangle: {
        display: 'none'
      }
    }
  }, passedStyles), { 'hide-triangle': triangle === 'hide' });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.card, className: 'block-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.triangle }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.head },
      transparent && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__common__["b" /* Checkboard */], { borderRadius: '6px 6px 0 0' }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.label },
        hex
      )
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.body },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__BlockSwatches__["a" /* default */], { colors: colors, onClick: handleChange, onSwatchHover: onSwatchHover }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__common__["d" /* EditableInput */], {
        style: { input: styles.input },
        value: hex,
        onChange: handleChange
      })
    )
  );
};

Block.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),
  triangle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['top', 'hide']),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Block.defaultProps = {
  width: 170,
  colors: ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8'],
  triangle: 'top',
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_5__common__["c" /* ColorWrap */])(Block));

/***/ }),
/* 379 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export BlockSwatches */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);






var BlockSwatches = function BlockSwatches(_ref) {
  var colors = _ref.colors,
      onClick = _ref.onClick,
      onSwatchHover = _ref.onSwatchHover;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatches: {
        marginRight: '-10px'
      },
      swatch: {
        width: '22px',
        height: '22px',
        float: 'left',
        marginRight: '10px',
        marginBottom: '10px',
        borderRadius: '4px'
      },
      clear: {
        clear: 'both'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.swatches },
    Object(__WEBPACK_IMPORTED_MODULE_2_lodash_es_map__["a" /* default */])(colors, function (c) {
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["h" /* Swatch */], {
        key: c,
        color: c,
        style: styles.swatch,
        onClick: onClick,
        onHover: onSwatchHover,
        focusStyle: {
          boxShadow: '0 0 4px ' + c
        }
      });
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.clear })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (BlockSwatches);

/***/ }),
/* 380 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMatches_js__ = __webpack_require__(381);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseMatchesProperty_js__ = __webpack_require__(405);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__identity_js__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__property_js__ = __webpack_require__(415);






/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return __WEBPACK_IMPORTED_MODULE_2__identity_js__["a" /* default */];
  }
  if (typeof value == 'object') {
    return Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(value)
      ? Object(__WEBPACK_IMPORTED_MODULE_1__baseMatchesProperty_js__["a" /* default */])(value[0], value[1])
      : Object(__WEBPACK_IMPORTED_MODULE_0__baseMatches_js__["a" /* default */])(value);
  }
  return Object(__WEBPACK_IMPORTED_MODULE_4__property_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (baseIteratee);


/***/ }),
/* 381 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsMatch_js__ = __webpack_require__(382);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getMatchData_js__ = __webpack_require__(404);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__matchesStrictComparable_js__ = __webpack_require__(137);




/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = Object(__WEBPACK_IMPORTED_MODULE_1__getMatchData_js__["a" /* default */])(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return Object(__WEBPACK_IMPORTED_MODULE_2__matchesStrictComparable_js__["a" /* default */])(matchData[0][0], matchData[0][1]);
  }
  return function(object) {
    return object === source || Object(__WEBPACK_IMPORTED_MODULE_0__baseIsMatch_js__["a" /* default */])(object, source, matchData);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (baseMatches);


/***/ }),
/* 382 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stack_js__ = __webpack_require__(67);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIsEqual_js__ = __webpack_require__(134);



/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
      length = index,
      noCustomizer = !customizer;

  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if ((noCustomizer && data[2])
          ? data[1] !== object[data[0]]
          : !(data[0] in object)
        ) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
        objValue = object[key],
        srcValue = data[1];

    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new __WEBPACK_IMPORTED_MODULE_0__Stack_js__["a" /* default */];
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined
            ? Object(__WEBPACK_IMPORTED_MODULE_1__baseIsEqual_js__["a" /* default */])(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
            : result
          )) {
        return false;
      }
    }
  }
  return true;
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsMatch);


/***/ }),
/* 383 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stack_js__ = __webpack_require__(67);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__equalArrays_js__ = __webpack_require__(135);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__equalByTag_js__ = __webpack_require__(389);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__equalObjects_js__ = __webpack_require__(392);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getTag_js__ = __webpack_require__(399);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__isBuffer_js__ = __webpack_require__(76);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__isTypedArray_js__ = __webpack_require__(77);









/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
    arrayTag = '[object Array]',
    objectTag = '[object Object]';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = Object(__WEBPACK_IMPORTED_MODULE_5__isArray_js__["a" /* default */])(object),
      othIsArr = Object(__WEBPACK_IMPORTED_MODULE_5__isArray_js__["a" /* default */])(other),
      objTag = objIsArr ? arrayTag : Object(__WEBPACK_IMPORTED_MODULE_4__getTag_js__["a" /* default */])(object),
      othTag = othIsArr ? arrayTag : Object(__WEBPACK_IMPORTED_MODULE_4__getTag_js__["a" /* default */])(other);

  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;

  var objIsObj = objTag == objectTag,
      othIsObj = othTag == objectTag,
      isSameTag = objTag == othTag;

  if (isSameTag && Object(__WEBPACK_IMPORTED_MODULE_6__isBuffer_js__["a" /* default */])(object)) {
    if (!Object(__WEBPACK_IMPORTED_MODULE_6__isBuffer_js__["a" /* default */])(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new __WEBPACK_IMPORTED_MODULE_0__Stack_js__["a" /* default */]);
    return (objIsArr || Object(__WEBPACK_IMPORTED_MODULE_7__isTypedArray_js__["a" /* default */])(object))
      ? Object(__WEBPACK_IMPORTED_MODULE_1__equalArrays_js__["a" /* default */])(object, other, bitmask, customizer, equalFunc, stack)
      : Object(__WEBPACK_IMPORTED_MODULE_2__equalByTag_js__["a" /* default */])(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
          othUnwrapped = othIsWrapped ? other.value() : other;

      stack || (stack = new __WEBPACK_IMPORTED_MODULE_0__Stack_js__["a" /* default */]);
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new __WEBPACK_IMPORTED_MODULE_0__Stack_js__["a" /* default */]);
  return Object(__WEBPACK_IMPORTED_MODULE_3__equalObjects_js__["a" /* default */])(object, other, bitmask, customizer, equalFunc, stack);
}

/* harmony default export */ __webpack_exports__["a"] = (baseIsEqualDeep);


/***/ }),
/* 384 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MapCache_js__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setCacheAdd_js__ = __webpack_require__(385);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__setCacheHas_js__ = __webpack_require__(386);




/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
      length = values == null ? 0 : values.length;

  this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__MapCache_js__["a" /* default */];
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = __WEBPACK_IMPORTED_MODULE_1__setCacheAdd_js__["a" /* default */];
SetCache.prototype.has = __WEBPACK_IMPORTED_MODULE_2__setCacheHas_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (SetCache);


/***/ }),
/* 385 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}

/* harmony default export */ __webpack_exports__["a"] = (setCacheAdd);


/***/ }),
/* 386 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}

/* harmony default export */ __webpack_exports__["a"] = (setCacheHas);


/***/ }),
/* 387 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length;

  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}

/* harmony default export */ __webpack_exports__["a"] = (arraySome);


/***/ }),
/* 388 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}

/* harmony default export */ __webpack_exports__["a"] = (cacheHas);


/***/ }),
/* 389 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(42);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Uint8Array_js__ = __webpack_require__(124);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__eq_js__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__equalArrays_js__ = __webpack_require__(135);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapToArray_js__ = __webpack_require__(390);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__setToArray_js__ = __webpack_require__(391);







/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
    dateTag = '[object Date]',
    errorTag = '[object Error]',
    mapTag = '[object Map]',
    numberTag = '[object Number]',
    regexpTag = '[object RegExp]',
    setTag = '[object Set]',
    stringTag = '[object String]',
    symbolTag = '[object Symbol]';

var arrayBufferTag = '[object ArrayBuffer]',
    dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].prototype : undefined,
    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if ((object.byteLength != other.byteLength) ||
          (object.byteOffset != other.byteOffset)) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;

    case arrayBufferTag:
      if ((object.byteLength != other.byteLength) ||
          !equalFunc(new __WEBPACK_IMPORTED_MODULE_1__Uint8Array_js__["a" /* default */](object), new __WEBPACK_IMPORTED_MODULE_1__Uint8Array_js__["a" /* default */](other))) {
        return false;
      }
      return true;

    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return Object(__WEBPACK_IMPORTED_MODULE_2__eq_js__["a" /* default */])(+object, +other);

    case errorTag:
      return object.name == other.name && object.message == other.message;

    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == (other + '');

    case mapTag:
      var convert = __WEBPACK_IMPORTED_MODULE_4__mapToArray_js__["a" /* default */];

    case setTag:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
      convert || (convert = __WEBPACK_IMPORTED_MODULE_5__setToArray_js__["a" /* default */]);

      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = Object(__WEBPACK_IMPORTED_MODULE_3__equalArrays_js__["a" /* default */])(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;

    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}

/* harmony default export */ __webpack_exports__["a"] = (equalByTag);


/***/ }),
/* 390 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
      result = Array(map.size);

  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (mapToArray);


/***/ }),
/* 391 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
      result = Array(set.size);

  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (setToArray);


/***/ }),
/* 392 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getAllKeys_js__ = __webpack_require__(393);


/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
      objProps = Object(__WEBPACK_IMPORTED_MODULE_0__getAllKeys_js__["a" /* default */])(object),
      objLength = objProps.length,
      othProps = Object(__WEBPACK_IMPORTED_MODULE_0__getAllKeys_js__["a" /* default */])(other),
      othLength = othProps.length;

  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Check that cyclic values are equal.
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);

  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
        othValue = other[key];

    if (customizer) {
      var compared = isPartial
        ? customizer(othValue, objValue, key, other, object, stack)
        : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined
          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
          : compared
        )) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
        othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor &&
        ('constructor' in object && 'constructor' in other) &&
        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
          typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (equalObjects);


/***/ }),
/* 393 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetAllKeys_js__ = __webpack_require__(394);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getSymbols_js__ = __webpack_require__(396);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__keys_js__ = __webpack_require__(79);




/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return Object(__WEBPACK_IMPORTED_MODULE_0__baseGetAllKeys_js__["a" /* default */])(object, __WEBPACK_IMPORTED_MODULE_2__keys_js__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__getSymbols_js__["a" /* default */]);
}

/* harmony default export */ __webpack_exports__["a"] = (getAllKeys);


/***/ }),
/* 394 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayPush_js__ = __webpack_require__(395);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArray_js__ = __webpack_require__(13);



/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return Object(__WEBPACK_IMPORTED_MODULE_1__isArray_js__["a" /* default */])(object) ? result : Object(__WEBPACK_IMPORTED_MODULE_0__arrayPush_js__["a" /* default */])(result, symbolsFunc(object));
}

/* harmony default export */ __webpack_exports__["a"] = (baseGetAllKeys);


/***/ }),
/* 395 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
      length = values.length,
      offset = array.length;

  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}

/* harmony default export */ __webpack_exports__["a"] = (arrayPush);


/***/ }),
/* 396 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayFilter_js__ = __webpack_require__(397);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stubArray_js__ = __webpack_require__(398);



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? __WEBPACK_IMPORTED_MODULE_1__stubArray_js__["a" /* default */] : function(object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return Object(__WEBPACK_IMPORTED_MODULE_0__arrayFilter_js__["a" /* default */])(nativeGetSymbols(object), function(symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};

/* harmony default export */ __webpack_exports__["a"] = (getSymbols);


/***/ }),
/* 397 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
      length = array == null ? 0 : array.length,
      resIndex = 0,
      result = [];

  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (arrayFilter);


/***/ }),
/* 398 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}

/* harmony default export */ __webpack_exports__["a"] = (stubArray);


/***/ }),
/* 399 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DataView_js__ = __webpack_require__(400);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Map_js__ = __webpack_require__(68);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Promise_js__ = __webpack_require__(401);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Set_js__ = __webpack_require__(402);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__WeakMap_js__ = __webpack_require__(403);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__baseGetTag_js__ = __webpack_require__(23);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__toSource_js__ = __webpack_require__(120);








/** `Object#toString` result references. */
var mapTag = '[object Map]',
    objectTag = '[object Object]',
    promiseTag = '[object Promise]',
    setTag = '[object Set]',
    weakMapTag = '[object WeakMap]';

var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__DataView_js__["a" /* default */]),
    mapCtorString = Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__Map_js__["a" /* default */]),
    promiseCtorString = Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_2__Promise_js__["a" /* default */]),
    setCtorString = Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_3__Set_js__["a" /* default */]),
    weakMapCtorString = Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_4__WeakMap_js__["a" /* default */]);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = __WEBPACK_IMPORTED_MODULE_5__baseGetTag_js__["a" /* default */];

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((__WEBPACK_IMPORTED_MODULE_0__DataView_js__["a" /* default */] && getTag(new __WEBPACK_IMPORTED_MODULE_0__DataView_js__["a" /* default */](new ArrayBuffer(1))) != dataViewTag) ||
    (__WEBPACK_IMPORTED_MODULE_1__Map_js__["a" /* default */] && getTag(new __WEBPACK_IMPORTED_MODULE_1__Map_js__["a" /* default */]) != mapTag) ||
    (__WEBPACK_IMPORTED_MODULE_2__Promise_js__["a" /* default */] && getTag(__WEBPACK_IMPORTED_MODULE_2__Promise_js__["a" /* default */].resolve()) != promiseTag) ||
    (__WEBPACK_IMPORTED_MODULE_3__Set_js__["a" /* default */] && getTag(new __WEBPACK_IMPORTED_MODULE_3__Set_js__["a" /* default */]) != setTag) ||
    (__WEBPACK_IMPORTED_MODULE_4__WeakMap_js__["a" /* default */] && getTag(new __WEBPACK_IMPORTED_MODULE_4__WeakMap_js__["a" /* default */]) != weakMapTag)) {
  getTag = function(value) {
    var result = Object(__WEBPACK_IMPORTED_MODULE_5__baseGetTag_js__["a" /* default */])(value),
        Ctor = result == objectTag ? value.constructor : undefined,
        ctorString = Ctor ? Object(__WEBPACK_IMPORTED_MODULE_6__toSource_js__["a" /* default */])(Ctor) : '';

    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString: return dataViewTag;
        case mapCtorString: return mapTag;
        case promiseCtorString: return promiseTag;
        case setCtorString: return setTag;
        case weakMapCtorString: return weakMapTag;
      }
    }
    return result;
  };
}

/* harmony default export */ __webpack_exports__["a"] = (getTag);


/***/ }),
/* 400 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(11);



/* Built-in method references that are verified to be native. */
var DataView = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'DataView');

/* harmony default export */ __webpack_exports__["a"] = (DataView);


/***/ }),
/* 401 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(11);



/* Built-in method references that are verified to be native. */
var Promise = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Promise');

/* harmony default export */ __webpack_exports__["a"] = (Promise);


/***/ }),
/* 402 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(11);



/* Built-in method references that are verified to be native. */
var Set = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Set');

/* harmony default export */ __webpack_exports__["a"] = (Set);


/***/ }),
/* 403 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(11);



/* Built-in method references that are verified to be native. */
var WeakMap = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'WeakMap');

/* harmony default export */ __webpack_exports__["a"] = (WeakMap);


/***/ }),
/* 404 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isStrictComparable_js__ = __webpack_require__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__keys_js__ = __webpack_require__(79);



/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = Object(__WEBPACK_IMPORTED_MODULE_1__keys_js__["a" /* default */])(object),
      length = result.length;

  while (length--) {
    var key = result[length],
        value = object[key];

    result[length] = [key, value, Object(__WEBPACK_IMPORTED_MODULE_0__isStrictComparable_js__["a" /* default */])(value)];
  }
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (getMatchData);


/***/ }),
/* 405 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsEqual_js__ = __webpack_require__(134);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__get_js__ = __webpack_require__(406);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__hasIn_js__ = __webpack_require__(412);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isKey_js__ = __webpack_require__(80);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isStrictComparable_js__ = __webpack_require__(136);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__matchesStrictComparable_js__ = __webpack_require__(137);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__toKey_js__ = __webpack_require__(47);








/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
    COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (Object(__WEBPACK_IMPORTED_MODULE_3__isKey_js__["a" /* default */])(path) && Object(__WEBPACK_IMPORTED_MODULE_4__isStrictComparable_js__["a" /* default */])(srcValue)) {
    return Object(__WEBPACK_IMPORTED_MODULE_5__matchesStrictComparable_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_6__toKey_js__["a" /* default */])(path), srcValue);
  }
  return function(object) {
    var objValue = Object(__WEBPACK_IMPORTED_MODULE_1__get_js__["a" /* default */])(object, path);
    return (objValue === undefined && objValue === srcValue)
      ? Object(__WEBPACK_IMPORTED_MODULE_2__hasIn_js__["a" /* default */])(object, path)
      : Object(__WEBPACK_IMPORTED_MODULE_0__baseIsEqual_js__["a" /* default */])(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (baseMatchesProperty);


/***/ }),
/* 406 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGet_js__ = __webpack_require__(138);


/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : Object(__WEBPACK_IMPORTED_MODULE_0__baseGet_js__["a" /* default */])(object, path);
  return result === undefined ? defaultValue : result;
}

/* harmony default export */ __webpack_exports__["a"] = (get);


/***/ }),
/* 407 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__memoizeCapped_js__ = __webpack_require__(408);


/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = Object(__WEBPACK_IMPORTED_MODULE_0__memoizeCapped_js__["a" /* default */])(function(string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function(match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  });
  return result;
});

/* harmony default export */ __webpack_exports__["a"] = (stringToPath);


/***/ }),
/* 408 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__memoize_js__ = __webpack_require__(409);


/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = Object(__WEBPACK_IMPORTED_MODULE_0__memoize_js__["a" /* default */])(func, function(key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });

  var cache = result.cache;
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (memoizeCapped);


/***/ }),
/* 409 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MapCache_js__ = __webpack_require__(70);


/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function() {
    var args = arguments,
        key = resolver ? resolver.apply(this, args) : args[0],
        cache = memoized.cache;

    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || __WEBPACK_IMPORTED_MODULE_0__MapCache_js__["a" /* default */]);
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = __WEBPACK_IMPORTED_MODULE_0__MapCache_js__["a" /* default */];

/* harmony default export */ __webpack_exports__["a"] = (memoize);


/***/ }),
/* 410 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseToString_js__ = __webpack_require__(411);


/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : Object(__WEBPACK_IMPORTED_MODULE_0__baseToString_js__["a" /* default */])(value);
}

/* harmony default export */ __webpack_exports__["a"] = (toString);


/***/ }),
/* 411 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(42);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__arrayMap_js__ = __webpack_require__(133);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isSymbol_js__ = __webpack_require__(46);





/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].prototype : undefined,
    symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if (Object(__WEBPACK_IMPORTED_MODULE_2__isArray_js__["a" /* default */])(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return Object(__WEBPACK_IMPORTED_MODULE_1__arrayMap_js__["a" /* default */])(value, baseToString) + '';
  }
  if (Object(__WEBPACK_IMPORTED_MODULE_3__isSymbol_js__["a" /* default */])(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = (value + '');
  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}

/* harmony default export */ __webpack_exports__["a"] = (baseToString);


/***/ }),
/* 412 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseHasIn_js__ = __webpack_require__(413);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__hasPath_js__ = __webpack_require__(414);



/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && Object(__WEBPACK_IMPORTED_MODULE_1__hasPath_js__["a" /* default */])(object, path, __WEBPACK_IMPORTED_MODULE_0__baseHasIn_js__["a" /* default */]);
}

/* harmony default export */ __webpack_exports__["a"] = (hasIn);


/***/ }),
/* 413 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}

/* harmony default export */ __webpack_exports__["a"] = (baseHasIn);


/***/ }),
/* 414 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__castPath_js__ = __webpack_require__(139);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArguments_js__ = __webpack_require__(74);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArray_js__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isIndex_js__ = __webpack_require__(78);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isLength_js__ = __webpack_require__(75);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__toKey_js__ = __webpack_require__(47);







/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = Object(__WEBPACK_IMPORTED_MODULE_0__castPath_js__["a" /* default */])(path, object);

  var index = -1,
      length = path.length,
      result = false;

  while (++index < length) {
    var key = Object(__WEBPACK_IMPORTED_MODULE_5__toKey_js__["a" /* default */])(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && Object(__WEBPACK_IMPORTED_MODULE_4__isLength_js__["a" /* default */])(length) && Object(__WEBPACK_IMPORTED_MODULE_3__isIndex_js__["a" /* default */])(key, length) &&
    (Object(__WEBPACK_IMPORTED_MODULE_2__isArray_js__["a" /* default */])(object) || Object(__WEBPACK_IMPORTED_MODULE_1__isArguments_js__["a" /* default */])(object));
}

/* harmony default export */ __webpack_exports__["a"] = (hasPath);


/***/ }),
/* 415 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseProperty_js__ = __webpack_require__(416);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basePropertyDeep_js__ = __webpack_require__(417);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isKey_js__ = __webpack_require__(80);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toKey_js__ = __webpack_require__(47);





/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return Object(__WEBPACK_IMPORTED_MODULE_2__isKey_js__["a" /* default */])(path) ? Object(__WEBPACK_IMPORTED_MODULE_0__baseProperty_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__toKey_js__["a" /* default */])(path)) : Object(__WEBPACK_IMPORTED_MODULE_1__basePropertyDeep_js__["a" /* default */])(path);
}

/* harmony default export */ __webpack_exports__["a"] = (property);


/***/ }),
/* 416 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

/* harmony default export */ __webpack_exports__["a"] = (baseProperty);


/***/ }),
/* 417 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGet_js__ = __webpack_require__(138);


/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function(object) {
    return Object(__WEBPACK_IMPORTED_MODULE_0__baseGet_js__["a" /* default */])(object, path);
  };
}

/* harmony default export */ __webpack_exports__["a"] = (basePropertyDeep);


/***/ }),
/* 418 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseEach_js__ = __webpack_require__(132);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArrayLike_js__ = __webpack_require__(24);



/**
 * The base implementation of `_.map` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function baseMap(collection, iteratee) {
  var index = -1,
      result = Object(__WEBPACK_IMPORTED_MODULE_1__isArrayLike_js__["a" /* default */])(collection) ? Array(collection.length) : [];

  Object(__WEBPACK_IMPORTED_MODULE_0__baseEach_js__["a" /* default */])(collection, function(value, key, collection) {
    result[++index] = iteratee(value, key, collection);
  });
  return result;
}

/* harmony default export */ __webpack_exports__["a"] = (baseMap);


/***/ }),
/* 419 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Circle */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_material_colors__ = __webpack_require__(140);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__CircleSwatch__ = __webpack_require__(420);










var Circle = function Circle(_ref) {
  var width = _ref.width,
      onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      colors = _ref.colors,
      hex = _ref.hex,
      circleSize = _ref.circleSize,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      circleSpacing = _ref.circleSpacing,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__["a" /* default */])({
    'default': {
      card: {
        width: width,
        display: 'flex',
        flexWrap: 'wrap',
        marginRight: -circleSpacing,
        marginBottom: -circleSpacing
      }
    }
  }, passedStyles));

  var handleChange = function handleChange(hexCode, e) {
    return onChange({ hex: hexCode, source: 'hex' }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.card, className: 'circle-picker ' + className },
    Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_map__["a" /* default */])(colors, function (c) {
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__CircleSwatch__["a" /* default */], {
        key: c,
        color: c,
        onClick: handleChange,
        onSwatchHover: onSwatchHover,
        active: hex === c.toLowerCase(),
        circleSize: circleSize,
        circleSpacing: circleSpacing
      });
    })
  );
};

Circle.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  circleSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,
  circleSpacing: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number,
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Circle.defaultProps = {
  width: 252,
  circleSize: 28,
  circleSpacing: 14,
  colors: [__WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["h" /* green */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['500']],
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__common__["c" /* ColorWrap */])(Circle));

/***/ }),
/* 420 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export CircleSwatch */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common__ = __webpack_require__(3);





var CircleSwatch = function CircleSwatch(_ref) {
  var color = _ref.color,
      onClick = _ref.onClick,
      onSwatchHover = _ref.onSwatchHover,
      hover = _ref.hover,
      active = _ref.active,
      circleSize = _ref.circleSize,
      circleSpacing = _ref.circleSpacing;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatch: {
        width: circleSize,
        height: circleSize,
        marginRight: circleSpacing,
        marginBottom: circleSpacing,
        transform: 'scale(1)',
        transition: '100ms transform ease'
      },
      Swatch: {
        borderRadius: '50%',
        background: 'transparent',
        boxShadow: 'inset 0 0 0 ' + (circleSize / 2 + 1) + 'px ' + color,
        transition: '100ms box-shadow ease'
      }
    },
    'hover': {
      swatch: {
        transform: 'scale(1.2)'
      }
    },
    'active': {
      Swatch: {
        boxShadow: 'inset 0 0 0 3px ' + color
      }
    }
  }, { hover: hover, active: active });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.swatch },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["h" /* Swatch */], {
      style: styles.Swatch,
      color: color,
      onClick: onClick,
      onHover: onSwatchHover,
      focusStyle: { boxShadow: styles.Swatch.boxShadow + ', 0 0 5px ' + color }
    })
  );
};

CircleSwatch.defaultProps = {
  circleSize: 28,
  circleSpacing: 14
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1_reactcss__["handleHover"])(CircleSwatch));

/***/ }),
/* 421 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export ChromeFields */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_isUndefined__ = __webpack_require__(422);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__icons_material_UnfoldMoreHorizontalIcon__ = __webpack_require__(423);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__icons_material_UnfoldMoreHorizontalIcon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__icons_material_UnfoldMoreHorizontalIcon__);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

/* eslint-disable react/no-did-mount-set-state, no-param-reassign */









var ChromeFields = function (_React$Component) {
  _inherits(ChromeFields, _React$Component);

  function ChromeFields(props) {
    _classCallCheck(this, ChromeFields);

    var _this = _possibleConstructorReturn(this, (ChromeFields.__proto__ || Object.getPrototypeOf(ChromeFields)).call(this));

    _this.toggleViews = function () {
      if (_this.state.view === 'hex') {
        _this.setState({ view: 'rgb' });
      } else if (_this.state.view === 'rgb') {
        _this.setState({ view: 'hsl' });
      } else if (_this.state.view === 'hsl') {
        if (_this.props.hsl.a === 1) {
          _this.setState({ view: 'hex' });
        } else {
          _this.setState({ view: 'rgb' });
        }
      }
    };

    _this.handleChange = function (data, e) {
      if (data.hex) {
        __WEBPACK_IMPORTED_MODULE_2__helpers_color__["b" /* isValidHex */](data.hex) && _this.props.onChange({
          hex: data.hex,
          source: 'hex'
        }, e);
      } else if (data.r || data.g || data.b) {
        _this.props.onChange({
          r: data.r || _this.props.rgb.r,
          g: data.g || _this.props.rgb.g,
          b: data.b || _this.props.rgb.b,
          source: 'rgb'
        }, e);
      } else if (data.a) {
        if (data.a < 0) {
          data.a = 0;
        } else if (data.a > 1) {
          data.a = 1;
        }

        _this.props.onChange({
          h: _this.props.hsl.h,
          s: _this.props.hsl.s,
          l: _this.props.hsl.l,
          a: Math.round(data.a * 100) / 100,
          source: 'rgb'
        }, e);
      } else if (data.h || data.s || data.l) {
        // Remove any occurances of '%'.
        if (typeof data.s === 'string' && data.s.includes('%')) {
          data.s = data.s.replace('%', '');
        }
        if (typeof data.l === 'string' && data.l.includes('%')) {
          data.l = data.l.replace('%', '');
        }

        // We store HSL as a unit interval so we need to override the 1 input to 0.01
        if (data.s == 1) {
          data.s = 0.01;
        } else if (data.l == 1) {
          data.l = 0.01;
        }

        _this.props.onChange({
          h: data.h || _this.props.hsl.h,
          s: Number(!Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_isUndefined__["a" /* default */])(data.s) ? data.s : _this.props.hsl.s),
          l: Number(!Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_isUndefined__["a" /* default */])(data.l) ? data.l : _this.props.hsl.l),
          source: 'hsl'
        }, e);
      }
    };

    _this.showHighlight = function (e) {
      e.currentTarget.style.background = '#eee';
    };

    _this.hideHighlight = function (e) {
      e.currentTarget.style.background = 'transparent';
    };

    if (props.hsl.a !== 1 && props.view === "hex") {
      _this.state = {
        view: "rgb"
      };
    } else {
      _this.state = {
        view: props.view
      };
    }
    return _this;
  }

  _createClass(ChromeFields, [{
    key: 'render',
    value: function render() {
      var _this2 = this;

      var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
        'default': {
          wrap: {
            paddingTop: '16px',
            display: 'flex'
          },
          fields: {
            flex: '1',
            display: 'flex',
            marginLeft: '-6px'
          },
          field: {
            paddingLeft: '6px',
            width: '100%'
          },
          alpha: {
            paddingLeft: '6px',
            width: '100%'
          },
          toggle: {
            width: '32px',
            textAlign: 'right',
            position: 'relative'
          },
          icon: {
            marginRight: '-4px',
            marginTop: '12px',
            cursor: 'pointer',
            position: 'relative'
          },
          iconHighlight: {
            position: 'absolute',
            width: '24px',
            height: '28px',
            background: '#eee',
            borderRadius: '4px',
            top: '10px',
            left: '12px',
            display: 'none'
          },
          input: {
            fontSize: '11px',
            color: '#333',
            width: '100%',
            borderRadius: '2px',
            border: 'none',
            boxShadow: 'inset 0 0 0 1px #dadada',
            height: '21px',
            textAlign: 'center'
          },
          label: {
            textTransform: 'uppercase',
            fontSize: '11px',
            lineHeight: '11px',
            color: '#969696',
            textAlign: 'center',
            display: 'block',
            marginTop: '12px'
          },
          svg: {
            fill: '#333',
            width: '24px',
            height: '24px',
            border: '1px transparent solid',
            borderRadius: '5px'
          }
        },
        'disableAlpha': {
          alpha: {
            display: 'none'
          }
        }
      }, this.props, this.state);

      var fields = void 0;
      if (this.state.view === 'hex') {
        fields = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.fields, className: 'flexbox-fix' },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'hex', value: this.props.hex,
              onChange: this.handleChange
            })
          )
        );
      } else if (this.state.view === 'rgb') {
        fields = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.fields, className: 'flexbox-fix' },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'r',
              value: this.props.rgb.r,
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'g',
              value: this.props.rgb.g,
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'b',
              value: this.props.rgb.b,
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.alpha },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'a',
              value: this.props.rgb.a,
              arrowOffset: 0.01,
              onChange: this.handleChange
            })
          )
        );
      } else if (this.state.view === 'hsl') {
        fields = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.fields, className: 'flexbox-fix' },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'h',
              value: Math.round(this.props.hsl.h),
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 's',
              value: Math.round(this.props.hsl.s * 100) + '%',
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.field },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'l',
              value: Math.round(this.props.hsl.l * 100) + '%',
              onChange: this.handleChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.alpha },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
              style: { input: styles.input, label: styles.label },
              label: 'a',
              value: this.props.hsl.a,
              arrowOffset: 0.01,
              onChange: this.handleChange
            })
          )
        );
      }

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.wrap, className: 'flexbox-fix' },
        fields,
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.toggle },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) {
                return _this2.icon = icon;
              } },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__icons_material_UnfoldMoreHorizontalIcon___default.a, {
              style: styles.svg,
              onMouseOver: this.showHighlight,
              onMouseEnter: this.showHighlight,
              onMouseOut: this.hideHighlight
            })
          )
        )
      );
    }
  }], [{
    key: 'getDerivedStateFromProps',
    value: function getDerivedStateFromProps(nextProps, state) {
      if (nextProps.hsl.a !== 1 && state.view === 'hex') {
        return { view: 'rgb' };
      }
      return null;
    }
  }]);

  return ChromeFields;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);

ChromeFields.defaultProps = {
  view: "hex"
};

/* harmony default export */ __webpack_exports__["a"] = (ChromeFields);

/***/ }),
/* 422 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/**
 * Checks if `value` is `undefined`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 * @example
 *
 * _.isUndefined(void 0);
 * // => true
 *
 * _.isUndefined(null);
 * // => false
 */
function isUndefined(value) {
  return value === undefined;
}

/* harmony default export */ __webpack_exports__["a"] = (isUndefined);


/***/ }),
/* 423 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var DEFAULT_SIZE = 24;

exports.default = function (_ref) {
  var _ref$fill = _ref.fill,
      fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
      _ref$width = _ref.width,
      width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
      _ref$height = _ref.height,
      height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
      _ref$style = _ref.style,
      style = _ref$style === undefined ? {} : _ref$style,
      props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);

  return _react2.default.createElement(
    'svg',
    _extends({
      viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
      style: _extends({ fill: fill, width: width, height: height }, style)
    }, props),
    _react2.default.createElement('path', { d: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z' })
  );
};

/***/ }),
/* 424 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export ChromePointer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var ChromePointer = function ChromePointer() {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '12px',
        height: '12px',
        borderRadius: '6px',
        transform: 'translate(-6px, -1px)',
        backgroundColor: 'rgb(248, 248, 248)',
        boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (ChromePointer);

/***/ }),
/* 425 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export ChromePointerCircle */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var ChromePointerCircle = function ChromePointerCircle() {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '12px',
        height: '12px',
        borderRadius: '6px',
        boxShadow: 'inset 0 0 0 1px #fff',
        transform: 'translate(-6px, -6px)'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (ChromePointerCircle);

/***/ }),
/* 426 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Compact */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__CompactColor__ = __webpack_require__(427);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__CompactFields__ = __webpack_require__(428);











var Compact = function Compact(_ref) {
  var onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      colors = _ref.colors,
      hex = _ref.hex,
      rgb = _ref.rgb,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__["a" /* default */])({
    'default': {
      Compact: {
        background: '#f6f6f6',
        radius: '4px'
      },
      compact: {
        paddingTop: '5px',
        paddingLeft: '5px',
        boxSizing: 'initial',
        width: '240px'
      },
      clear: {
        clear: 'both'
      }
    }
  }, passedStyles));

  var handleChange = function handleChange(data, e) {
    if (data.hex) {
      __WEBPACK_IMPORTED_MODULE_5__helpers_color__["b" /* isValidHex */](data.hex) && onChange({
        hex: data.hex,
        source: 'hex'
      }, e);
    } else {
      onChange(data, e);
    }
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    __WEBPACK_IMPORTED_MODULE_6__common__["f" /* Raised */],
    { style: styles.Compact, styles: passedStyles },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.compact, className: 'compact-picker ' + className },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        null,
        Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_map__["a" /* default */])(colors, function (c) {
          return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__CompactColor__["a" /* default */], {
            key: c,
            color: c,
            active: c.toLowerCase() === hex,
            onClick: handleChange,
            onSwatchHover: onSwatchHover
          });
        }),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.clear })
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__CompactFields__["a" /* default */], { hex: hex, rgb: rgb, onChange: handleChange })
    )
  );
};

Compact.propTypes = {
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Compact.defaultProps = {
  colors: ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E'],
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__common__["c" /* ColorWrap */])(Compact));

/***/ }),
/* 427 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export CompactColor */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);






var CompactColor = function CompactColor(_ref) {
  var color = _ref.color,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
      onSwatchHover = _ref.onSwatchHover,
      active = _ref.active;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      color: {
        background: color,
        width: '15px',
        height: '15px',
        float: 'left',
        marginRight: '5px',
        marginBottom: '5px',
        position: 'relative',
        cursor: 'pointer'
      },
      dot: {
        absolute: '5px 5px 5px 5px',
        background: __WEBPACK_IMPORTED_MODULE_2__helpers_color__["a" /* getContrastingColor */](color),
        borderRadius: '50%',
        opacity: '0'
      }
    },
    'active': {
      dot: {
        opacity: '1'
      }
    },
    'color-#FFFFFF': {
      color: {
        boxShadow: 'inset 0 0 0 1px #ddd'
      },
      dot: {
        background: '#000'
      }
    },
    'transparent': {
      dot: {
        background: '#000'
      }
    }
  }, { active: active, 'color-#FFFFFF': color === '#FFFFFF', 'transparent': color === 'transparent' });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    __WEBPACK_IMPORTED_MODULE_3__common__["h" /* Swatch */],
    {
      style: styles.color,
      color: color,
      onClick: onClick,
      onHover: onSwatchHover,
      focusStyle: { boxShadow: '0 0 4px ' + color }
    },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.dot })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (CompactColor);

/***/ }),
/* 428 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export CompactFields */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common__ = __webpack_require__(3);





var CompactFields = function CompactFields(_ref) {
  var hex = _ref.hex,
      rgb = _ref.rgb,
      onChange = _ref.onChange;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      fields: {
        display: 'flex',
        paddingBottom: '6px',
        paddingRight: '5px',
        position: 'relative'
      },
      active: {
        position: 'absolute',
        top: '6px',
        left: '5px',
        height: '9px',
        width: '9px',
        background: hex
      },
      HEXwrap: {
        flex: '6',
        position: 'relative'
      },
      HEXinput: {
        width: '80%',
        padding: '0px',
        paddingLeft: '20%',
        border: 'none',
        outline: 'none',
        background: 'none',
        fontSize: '12px',
        color: '#333',
        height: '16px'
      },
      HEXlabel: {
        display: 'none'
      },
      RGBwrap: {
        flex: '3',
        position: 'relative'
      },
      RGBinput: {
        width: '70%',
        padding: '0px',
        paddingLeft: '30%',
        border: 'none',
        outline: 'none',
        background: 'none',
        fontSize: '12px',
        color: '#333',
        height: '16px'
      },
      RGBlabel: {
        position: 'absolute',
        top: '3px',
        left: '0px',
        lineHeight: '16px',
        textTransform: 'uppercase',
        fontSize: '12px',
        color: '#999'
      }
    }
  });

  var handleChange = function handleChange(data, e) {
    if (data.r || data.g || data.b) {
      onChange({
        r: data.r || rgb.r,
        g: data.g || rgb.g,
        b: data.b || rgb.b,
        source: 'rgb'
      }, e);
    } else {
      onChange({
        hex: data.hex,
        source: 'hex'
      }, e);
    }
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.fields, className: 'flexbox-fix' },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.active }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["d" /* EditableInput */], {
      style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
      label: 'hex',
      value: hex,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'r',
      value: rgb.r,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'g',
      value: rgb.g,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'b',
      value: rgb.b,
      onChange: handleChange
    })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (CompactFields);

/***/ }),
/* 429 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Github */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__GithubSwatch__ = __webpack_require__(430);









var Github = function Github(_ref) {
  var width = _ref.width,
      colors = _ref.colors,
      onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      triangle = _ref.triangle,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__["a" /* default */])({
    'default': {
      card: {
        width: width,
        background: '#fff',
        border: '1px solid rgba(0,0,0,0.2)',
        boxShadow: '0 3px 12px rgba(0,0,0,0.15)',
        borderRadius: '4px',
        position: 'relative',
        padding: '5px',
        display: 'flex',
        flexWrap: 'wrap'
      },
      triangle: {
        position: 'absolute',
        border: '7px solid transparent',
        borderBottomColor: '#fff'
      },
      triangleShadow: {
        position: 'absolute',
        border: '8px solid transparent',
        borderBottomColor: 'rgba(0,0,0,0.15)'
      }
    },
    'hide-triangle': {
      triangle: {
        display: 'none'
      },
      triangleShadow: {
        display: 'none'
      }
    },
    'top-left-triangle': {
      triangle: {
        top: '-14px',
        left: '10px'
      },
      triangleShadow: {
        top: '-16px',
        left: '9px'
      }
    },
    'top-right-triangle': {
      triangle: {
        top: '-14px',
        right: '10px'
      },
      triangleShadow: {
        top: '-16px',
        right: '9px'
      }
    },
    'bottom-left-triangle': {
      triangle: {
        top: '35px',
        left: '10px',
        transform: 'rotate(180deg)'
      },
      triangleShadow: {
        top: '37px',
        left: '9px',
        transform: 'rotate(180deg)'
      }
    },
    'bottom-right-triangle': {
      triangle: {
        top: '35px',
        right: '10px',
        transform: 'rotate(180deg)'
      },
      triangleShadow: {
        top: '37px',
        right: '9px',
        transform: 'rotate(180deg)'
      }
    }
  }, passedStyles), {
    'hide-triangle': triangle === 'hide',
    'top-left-triangle': triangle === 'top-left',
    'top-right-triangle': triangle === 'top-right',
    'bottom-left-triangle': triangle === 'bottom-left',
    'bottom-right-triangle': triangle === 'bottom-right'
  });

  var handleChange = function handleChange(hex, e) {
    return onChange({ hex: hex, source: 'hex' }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.card, className: 'github-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.triangleShadow }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.triangle }),
    Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_map__["a" /* default */])(colors, function (c) {
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__GithubSwatch__["a" /* default */], {
        color: c,
        key: c,
        onClick: handleChange,
        onSwatchHover: onSwatchHover
      });
    })
  );
};

Github.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),
  triangle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['hide', 'top-left', 'top-right', 'bottom-left', 'bottom-right']),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Github.defaultProps = {
  width: 200,
  colors: ['#B80000', '#DB3E00', '#FCCB00', '#008B02', '#006B76', '#1273DE', '#004DCF', '#5300EB', '#EB9694', '#FAD0C3', '#FEF3BD', '#C1E1C5', '#BEDADC', '#C4DEF6', '#BED3F3', '#D4C4FB'],
  triangle: 'top-left',
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_5__common__["c" /* ColorWrap */])(Github));

/***/ }),
/* 430 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export GithubSwatch */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common__ = __webpack_require__(3);





var GithubSwatch = function GithubSwatch(_ref) {
  var hover = _ref.hover,
      color = _ref.color,
      onClick = _ref.onClick,
      onSwatchHover = _ref.onSwatchHover;

  var hoverSwatch = {
    position: 'relative',
    zIndex: '2',
    outline: '2px solid #fff',
    boxShadow: '0 0 5px 2px rgba(0,0,0,0.25)'
  };

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatch: {
        width: '25px',
        height: '25px',
        fontSize: '0'
      }
    },
    'hover': {
      swatch: hoverSwatch
    }
  }, { hover: hover });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.swatch },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__common__["h" /* Swatch */], {
      color: color,
      onClick: onClick,
      onHover: onSwatchHover,
      focusStyle: hoverSwatch
    })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1_reactcss__["handleHover"])(GithubSwatch));

/***/ }),
/* 431 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export HuePicker */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__HuePointer__ = __webpack_require__(432);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };









var HuePicker = function HuePicker(_ref) {
  var width = _ref.width,
      height = _ref.height,
      onChange = _ref.onChange,
      hsl = _ref.hsl,
      direction = _ref.direction,
      pointer = _ref.pointer,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      picker: {
        position: 'relative',
        width: width,
        height: height
      },
      hue: {
        radius: '2px'
      }
    }
  }, passedStyles));

  // Overwrite to provide pure hue color
  var handleChange = function handleChange(data) {
    return onChange({ a: 1, h: data.h, l: 0.5, s: 1 });
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'hue-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], _extends({}, styles.hue, {
      hsl: hsl,
      pointer: pointer,
      onChange: handleChange,
      direction: direction
    }))
  );
};

HuePicker.propTypes = {
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};
HuePicker.defaultProps = {
  width: '316px',
  height: '16px',
  direction: 'horizontal',
  pointer: __WEBPACK_IMPORTED_MODULE_5__HuePointer__["a" /* default */],
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(HuePicker));

/***/ }),
/* 432 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SliderPointer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var SliderPointer = function SliderPointer(_ref) {
  var direction = _ref.direction;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '18px',
        height: '18px',
        borderRadius: '50%',
        transform: 'translate(-9px, -1px)',
        backgroundColor: 'rgb(248, 248, 248)',
        boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
      }
    },
    'vertical': {
      picker: {
        transform: 'translate(-3px, -9px)'
      }
    }
  }, { vertical: direction === 'vertical' });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (SliderPointer);

/***/ }),
/* 433 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Material */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);







var Material = function Material(_ref) {
  var onChange = _ref.onChange,
      hex = _ref.hex,
      rgb = _ref.rgb,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_2_lodash_es_merge__["a" /* default */])({
    'default': {
      material: {
        width: '98px',
        height: '98px',
        padding: '16px',
        fontFamily: 'Roboto'
      },
      HEXwrap: {
        position: 'relative'
      },
      HEXinput: {
        width: '100%',
        marginTop: '12px',
        fontSize: '15px',
        color: '#333',
        padding: '0px',
        border: '0px',
        borderBottom: '2px solid ' + hex,
        outline: 'none',
        height: '30px'
      },
      HEXlabel: {
        position: 'absolute',
        top: '0px',
        left: '0px',
        fontSize: '11px',
        color: '#999999',
        textTransform: 'capitalize'
      },
      Hex: {
        style: {}
      },
      RGBwrap: {
        position: 'relative'
      },
      RGBinput: {
        width: '100%',
        marginTop: '12px',
        fontSize: '15px',
        color: '#333',
        padding: '0px',
        border: '0px',
        borderBottom: '1px solid #eee',
        outline: 'none',
        height: '30px'
      },
      RGBlabel: {
        position: 'absolute',
        top: '0px',
        left: '0px',
        fontSize: '11px',
        color: '#999999',
        textTransform: 'capitalize'
      },
      split: {
        display: 'flex',
        marginRight: '-10px',
        paddingTop: '11px'
      },
      third: {
        flex: '1',
        paddingRight: '10px'
      }
    }
  }, passedStyles));

  var handleChange = function handleChange(data, e) {
    if (data.hex) {
      __WEBPACK_IMPORTED_MODULE_3__helpers_color__["b" /* isValidHex */](data.hex) && onChange({
        hex: data.hex,
        source: 'hex'
      }, e);
    } else if (data.r || data.g || data.b) {
      onChange({
        r: data.r || rgb.r,
        g: data.g || rgb.g,
        b: data.b || rgb.b,
        source: 'rgb'
      }, e);
    }
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    __WEBPACK_IMPORTED_MODULE_4__common__["f" /* Raised */],
    { styles: passedStyles },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.material, className: 'material-picker ' + className },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
        style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
        label: 'hex',
        value: hex,
        onChange: handleChange
      }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.split, className: 'flexbox-fix' },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.third },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
            style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
            label: 'r', value: rgb.r,
            onChange: handleChange
          })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.third },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
            style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
            label: 'g',
            value: rgb.g,
            onChange: handleChange
          })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.third },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["d" /* EditableInput */], {
            style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
            label: 'b',
            value: rgb.b,
            onChange: handleChange
          })
        )
      )
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Material));

/***/ }),
/* 434 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Photoshop */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__PhotoshopFields__ = __webpack_require__(435);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__PhotoshopPointerCircle__ = __webpack_require__(436);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__PhotoshopPointer__ = __webpack_require__(437);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__PhotoshopButton__ = __webpack_require__(438);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__PhotoshopPreviews__ = __webpack_require__(439);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }













var Photoshop = function (_React$Component) {
  _inherits(Photoshop, _React$Component);

  function Photoshop(props) {
    _classCallCheck(this, Photoshop);

    var _this = _possibleConstructorReturn(this, (Photoshop.__proto__ || Object.getPrototypeOf(Photoshop)).call(this));

    _this.state = {
      currentColor: props.hex
    };
    return _this;
  }

  _createClass(Photoshop, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          _props$styles = _props.styles,
          passedStyles = _props$styles === undefined ? {} : _props$styles,
          _props$className = _props.className,
          className = _props$className === undefined ? '' : _props$className;

      var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
        'default': {
          picker: {
            background: '#DCDCDC',
            borderRadius: '4px',
            boxShadow: '0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)',
            boxSizing: 'initial',
            width: '513px'
          },
          head: {
            backgroundImage: 'linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)',
            borderBottom: '1px solid #B1B1B1',
            boxShadow: 'inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)',
            height: '23px',
            lineHeight: '24px',
            borderRadius: '4px 4px 0 0',
            fontSize: '13px',
            color: '#4D4D4D',
            textAlign: 'center'
          },
          body: {
            padding: '15px 15px 0',
            display: 'flex'
          },
          saturation: {
            width: '256px',
            height: '256px',
            position: 'relative',
            border: '2px solid #B3B3B3',
            borderBottom: '2px solid #F0F0F0',
            overflow: 'hidden'
          },
          hue: {
            position: 'relative',
            height: '256px',
            width: '19px',
            marginLeft: '10px',
            border: '2px solid #B3B3B3',
            borderBottom: '2px solid #F0F0F0'
          },
          controls: {
            width: '180px',
            marginLeft: '10px'
          },
          top: {
            display: 'flex'
          },
          previews: {
            width: '60px'
          },
          actions: {
            flex: '1',
            marginLeft: '20px'
          }
        }
      }, passedStyles));

      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.picker, className: 'photoshop-picker ' + className },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.head },
          this.props.header
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.body, className: 'flexbox-fix' },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.saturation },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
              hsl: this.props.hsl,
              hsv: this.props.hsv,
              pointer: __WEBPACK_IMPORTED_MODULE_6__PhotoshopPointerCircle__["a" /* default */],
              onChange: this.props.onChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.hue },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
              direction: 'vertical',
              hsl: this.props.hsl,
              pointer: __WEBPACK_IMPORTED_MODULE_7__PhotoshopPointer__["a" /* default */],
              onChange: this.props.onChange
            })
          ),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
            'div',
            { style: styles.controls },
            __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
              'div',
              { style: styles.top, className: 'flexbox-fix' },
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { style: styles.previews },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__PhotoshopPreviews__["a" /* default */], {
                  rgb: this.props.rgb,
                  currentColor: this.state.currentColor
                })
              ),
              __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
                'div',
                { style: styles.actions },
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__PhotoshopButton__["a" /* default */], { label: 'OK', onClick: this.props.onAccept, active: true }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__PhotoshopButton__["a" /* default */], { label: 'Cancel', onClick: this.props.onCancel }),
                __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__PhotoshopFields__["a" /* default */], {
                  onChange: this.props.onChange,
                  rgb: this.props.rgb,
                  hsv: this.props.hsv,
                  hex: this.props.hex
                })
              )
            )
          )
        )
      );
    }
  }]);

  return Photoshop;
}(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);

Photoshop.propTypes = {
  header: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Photoshop.defaultProps = {
  header: 'Color Picker',
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Photoshop));

/***/ }),
/* 435 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export PhotoshopPicker */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);






var PhotoshopPicker = function PhotoshopPicker(_ref) {
  var onChange = _ref.onChange,
      rgb = _ref.rgb,
      hsv = _ref.hsv,
      hex = _ref.hex;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      fields: {
        paddingTop: '5px',
        paddingBottom: '9px',
        width: '80px',
        position: 'relative'
      },
      divider: {
        height: '5px'
      },
      RGBwrap: {
        position: 'relative'
      },
      RGBinput: {
        marginLeft: '40%',
        width: '40%',
        height: '18px',
        border: '1px solid #888888',
        boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
        marginBottom: '5px',
        fontSize: '13px',
        paddingLeft: '3px',
        marginRight: '10px'
      },
      RGBlabel: {
        left: '0px',
        top: '0px',
        width: '34px',
        textTransform: 'uppercase',
        fontSize: '13px',
        height: '18px',
        lineHeight: '22px',
        position: 'absolute'
      },
      HEXwrap: {
        position: 'relative'
      },
      HEXinput: {
        marginLeft: '20%',
        width: '80%',
        height: '18px',
        border: '1px solid #888888',
        boxShadow: 'inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC',
        marginBottom: '6px',
        fontSize: '13px',
        paddingLeft: '3px'
      },
      HEXlabel: {
        position: 'absolute',
        top: '0px',
        left: '0px',
        width: '14px',
        textTransform: 'uppercase',
        fontSize: '13px',
        height: '18px',
        lineHeight: '22px'
      },
      fieldSymbols: {
        position: 'absolute',
        top: '5px',
        right: '-7px',
        fontSize: '13px'
      },
      symbol: {
        height: '20px',
        lineHeight: '22px',
        paddingBottom: '7px'
      }
    }
  });

  var handleChange = function handleChange(data, e) {
    if (data['#']) {
      __WEBPACK_IMPORTED_MODULE_2__helpers_color__["b" /* isValidHex */](data['#']) && onChange({
        hex: data['#'],
        source: 'hex'
      }, e);
    } else if (data.r || data.g || data.b) {
      onChange({
        r: data.r || rgb.r,
        g: data.g || rgb.g,
        b: data.b || rgb.b,
        source: 'rgb'
      }, e);
    } else if (data.h || data.s || data.v) {
      onChange({
        h: data.h || hsv.h,
        s: data.s || hsv.s,
        v: data.v || hsv.v,
        source: 'hsv'
      }, e);
    }
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.fields },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'h',
      value: Math.round(hsv.h),
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 's',
      value: Math.round(hsv.s * 100),
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'v',
      value: Math.round(hsv.v * 100),
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.divider }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'r',
      value: rgb.r,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'g',
      value: rgb.g,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
      label: 'b',
      value: rgb.b,
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.divider }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
      style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
      label: '#',
      value: hex.replace('#', ''),
      onChange: handleChange
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.fieldSymbols },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.symbol },
        '\xB0'
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.symbol },
        '%'
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.symbol },
        '%'
      )
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (PhotoshopPicker);

/***/ }),
/* 436 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export PhotoshopPointerCircle */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var PhotoshopPointerCircle = function PhotoshopPointerCircle(_ref) {
  var hsl = _ref.hsl;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '12px',
        height: '12px',
        borderRadius: '6px',
        boxShadow: 'inset 0 0 0 1px #fff',
        transform: 'translate(-6px, -6px)'
      }
    },
    'black-outline': {
      picker: {
        boxShadow: 'inset 0 0 0 1px #000'
      }
    }
  }, { 'black-outline': hsl.l > 0.5 });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (PhotoshopPointerCircle);

/***/ }),
/* 437 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export PhotoshopPointerCircle */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var PhotoshopPointerCircle = function PhotoshopPointerCircle() {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      triangle: {
        width: 0,
        height: 0,
        borderStyle: 'solid',
        borderWidth: '4px 0 4px 6px',
        borderColor: 'transparent transparent transparent #fff',
        position: 'absolute',
        top: '1px',
        left: '1px'
      },
      triangleBorder: {
        width: 0,
        height: 0,
        borderStyle: 'solid',
        borderWidth: '5px 0 5px 8px',
        borderColor: 'transparent transparent transparent #555'
      },

      left: {
        Extend: 'triangleBorder',
        transform: 'translate(-13px, -4px)'
      },
      leftInside: {
        Extend: 'triangle',
        transform: 'translate(-8px, -5px)'
      },

      right: {
        Extend: 'triangleBorder',
        transform: 'translate(20px, -14px) rotate(180deg)'
      },
      rightInside: {
        Extend: 'triangle',
        transform: 'translate(-8px, -5px)'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.pointer },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.left },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.leftInside })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.right },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.rightInside })
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (PhotoshopPointerCircle);

/***/ }),
/* 438 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export PhotoshopButton */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var PhotoshopButton = function PhotoshopButton(_ref) {
  var onClick = _ref.onClick,
      label = _ref.label,
      children = _ref.children,
      active = _ref.active;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      button: {
        backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)',
        border: '1px solid #878787',
        borderRadius: '2px',
        height: '20px',
        boxShadow: '0 1px 0 0 #EAEAEA',
        fontSize: '14px',
        color: '#000',
        lineHeight: '20px',
        textAlign: 'center',
        marginBottom: '10px',
        cursor: 'pointer'
      }
    },
    'active': {
      button: {
        boxShadow: '0 0 0 1px #878787'
      }
    }
  }, { active: active });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.button, onClick: onClick },
    label || children
  );
};

/* harmony default export */ __webpack_exports__["a"] = (PhotoshopButton);

/***/ }),
/* 439 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export PhotoshopPreviews */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var PhotoshopPreviews = function PhotoshopPreviews(_ref) {
  var rgb = _ref.rgb,
      currentColor = _ref.currentColor;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatches: {
        border: '1px solid #B3B3B3',
        borderBottom: '1px solid #F0F0F0',
        marginBottom: '2px',
        marginTop: '1px'
      },
      new: {
        height: '34px',
        background: 'rgb(' + rgb.r + ',' + rgb.g + ', ' + rgb.b + ')',
        boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000'
      },
      current: {
        height: '34px',
        background: currentColor,
        boxShadow: 'inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000'
      },
      label: {
        fontSize: '14px',
        color: '#000',
        textAlign: 'center'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    null,
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.label },
      'new'
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatches },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.new }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.current })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.label },
      'current'
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (PhotoshopPreviews);

/***/ }),
/* 440 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Sketch */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__SketchFields__ = __webpack_require__(441);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__SketchPresetColors__ = __webpack_require__(442);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };










var Sketch = function Sketch(_ref) {
  var width = _ref.width,
      rgb = _ref.rgb,
      hex = _ref.hex,
      hsv = _ref.hsv,
      hsl = _ref.hsl,
      onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      disableAlpha = _ref.disableAlpha,
      presetColors = _ref.presetColors,
      renderers = _ref.renderers,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': _extends({
      picker: {
        width: width,
        padding: '10px 10px 0',
        boxSizing: 'initial',
        background: '#fff',
        borderRadius: '4px',
        boxShadow: '0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)'
      },
      saturation: {
        width: '100%',
        paddingBottom: '75%',
        position: 'relative',
        overflow: 'hidden'
      },
      Saturation: {
        radius: '3px',
        shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
      },
      controls: {
        display: 'flex'
      },
      sliders: {
        padding: '4px 0',
        flex: '1'
      },
      color: {
        width: '24px',
        height: '24px',
        position: 'relative',
        marginTop: '4px',
        marginLeft: '4px',
        borderRadius: '3px'
      },
      activeColor: {
        absolute: '0px 0px 0px 0px',
        borderRadius: '2px',
        background: 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + rgb.a + ')',
        boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
      },
      hue: {
        position: 'relative',
        height: '10px',
        overflow: 'hidden'
      },
      Hue: {
        radius: '2px',
        shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
      },

      alpha: {
        position: 'relative',
        height: '10px',
        marginTop: '4px',
        overflow: 'hidden'
      },
      Alpha: {
        radius: '2px',
        shadow: 'inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)'
      }
    }, passedStyles),
    'disableAlpha': {
      color: {
        height: '10px'
      },
      hue: {
        height: '10px'
      },
      alpha: {
        display: 'none'
      }
    }
  }, passedStyles), { disableAlpha: disableAlpha });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'sketch-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.saturation },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
        style: styles.Saturation,
        hsl: hsl,
        hsv: hsv,
        onChange: onChange
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.controls, className: 'flexbox-fix' },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.sliders },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.hue },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
            style: styles.Hue,
            hsl: hsl,
            onChange: onChange
          })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.alpha },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["a" /* Alpha */], {
            style: styles.Alpha,
            rgb: rgb,
            hsl: hsl,
            renderers: renderers,
            onChange: onChange
          })
        )
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.color },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["b" /* Checkboard */], null),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.activeColor })
      )
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__SketchFields__["a" /* default */], {
      rgb: rgb,
      hsl: hsl,
      hex: hex,
      onChange: onChange,
      disableAlpha: disableAlpha
    }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__SketchPresetColors__["a" /* default */], {
      colors: presetColors,
      onClick: onChange,
      onSwatchHover: onSwatchHover
    })
  );
};

Sketch.propTypes = {
  disableAlpha: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Sketch.defaultProps = {
  disableAlpha: false,
  width: 200,
  styles: {},
  presetColors: ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', '#BD10E0', '#9013FE', '#4A90E2', '#50E3C2', '#B8E986', '#000000', '#4A4A4A', '#9B9B9B', '#FFFFFF']
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Sketch));

/***/ }),
/* 441 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SketchFields */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);
/* eslint-disable no-param-reassign */







var SketchFields = function SketchFields(_ref) {
  var onChange = _ref.onChange,
      rgb = _ref.rgb,
      hsl = _ref.hsl,
      hex = _ref.hex,
      disableAlpha = _ref.disableAlpha;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      fields: {
        display: 'flex',
        paddingTop: '4px'
      },
      single: {
        flex: '1',
        paddingLeft: '6px'
      },
      alpha: {
        flex: '1',
        paddingLeft: '6px'
      },
      double: {
        flex: '2'
      },
      input: {
        width: '80%',
        padding: '4px 10% 3px',
        border: 'none',
        boxShadow: 'inset 0 0 0 1px #ccc',
        fontSize: '11px'
      },
      label: {
        display: 'block',
        textAlign: 'center',
        fontSize: '11px',
        color: '#222',
        paddingTop: '3px',
        paddingBottom: '4px',
        textTransform: 'capitalize'
      }
    },
    'disableAlpha': {
      alpha: {
        display: 'none'
      }
    }
  }, { disableAlpha: disableAlpha });

  var handleChange = function handleChange(data, e) {
    if (data.hex) {
      __WEBPACK_IMPORTED_MODULE_2__helpers_color__["b" /* isValidHex */](data.hex) && onChange({
        hex: data.hex,
        source: 'hex'
      }, e);
    } else if (data.r || data.g || data.b) {
      onChange({
        r: data.r || rgb.r,
        g: data.g || rgb.g,
        b: data.b || rgb.b,
        a: rgb.a,
        source: 'rgb'
      }, e);
    } else if (data.a) {
      if (data.a < 0) {
        data.a = 0;
      } else if (data.a > 100) {
        data.a = 100;
      }

      data.a /= 100;
      onChange({
        h: hsl.h,
        s: hsl.s,
        l: hsl.l,
        a: data.a,
        source: 'rgb'
      }, e);
    }
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.fields, className: 'flexbox-fix' },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.double },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
        style: { input: styles.input, label: styles.label },
        label: 'hex',
        value: hex.replace('#', ''),
        onChange: handleChange
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.single },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
        style: { input: styles.input, label: styles.label },
        label: 'r',
        value: rgb.r,
        onChange: handleChange,
        dragLabel: 'true',
        dragMax: '255'
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.single },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
        style: { input: styles.input, label: styles.label },
        label: 'g',
        value: rgb.g,
        onChange: handleChange,
        dragLabel: 'true',
        dragMax: '255'
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.single },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
        style: { input: styles.input, label: styles.label },
        label: 'b',
        value: rgb.b,
        onChange: handleChange,
        dragLabel: 'true',
        dragMax: '255'
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.alpha },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
        style: { input: styles.input, label: styles.label },
        label: 'a',
        value: Math.round(rgb.a * 100),
        onChange: handleChange,
        dragLabel: 'true',
        dragMax: '100'
      })
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (SketchFields);

/***/ }),
/* 442 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SketchPresetColors */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };







var SketchPresetColors = function SketchPresetColors(_ref) {
  var colors = _ref.colors,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
      onSwatchHover = _ref.onSwatchHover;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()({
    'default': {
      colors: {
        margin: '0 -10px',
        padding: '10px 0 0 10px',
        borderTop: '1px solid #eee',
        display: 'flex',
        flexWrap: 'wrap',
        position: 'relative'
      },
      swatchWrap: {
        width: '16px',
        height: '16px',
        margin: '0 10px 10px 0'
      },
      swatch: {
        borderRadius: '3px',
        boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15)'
      }
    },
    'no-presets': {
      colors: {
        display: 'none'
      }
    }
  }, {
    'no-presets': !colors || !colors.length
  });

  var handleClick = function handleClick(hex, e) {
    onClick({
      hex: hex,
      source: 'hex'
    }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.colors, className: 'flexbox-fix' },
    colors.map(function (colorObjOrString) {
      var c = typeof colorObjOrString === 'string' ? { color: colorObjOrString } : colorObjOrString;
      var key = '' + c.color + (c.title || '');
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { key: key, style: styles.swatchWrap },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["h" /* Swatch */], _extends({}, c, {
          style: styles.swatch,
          onClick: handleClick,
          onHover: onSwatchHover,
          focusStyle: {
            boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ' + c.color
          }
        }))
      );
    })
  );
};

SketchPresetColors.propTypes = {
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({
    color: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
    title: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string
  })])).isRequired
};

/* harmony default export */ __webpack_exports__["a"] = (SketchPresetColors);

/***/ }),
/* 443 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Slider */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__SliderSwatches__ = __webpack_require__(444);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__SliderPointer__ = __webpack_require__(446);









var Slider = function Slider(_ref) {
  var hsl = _ref.hsl,
      onChange = _ref.onChange,
      pointer = _ref.pointer,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      hue: {
        height: '12px',
        position: 'relative'
      },
      Hue: {
        radius: '2px'
      }
    }
  }, passedStyles));

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.wrap || {}, className: 'slider-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.hue },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
        style: styles.Hue,
        hsl: hsl,
        pointer: pointer,
        onChange: onChange
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatches },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__SliderSwatches__["a" /* default */], { hsl: hsl, onClick: onChange })
    )
  );
};

Slider.propTypes = {
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};
Slider.defaultProps = {
  pointer: __WEBPACK_IMPORTED_MODULE_6__SliderPointer__["a" /* default */],
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Slider));

/***/ }),
/* 444 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SliderSwatches */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SliderSwatch__ = __webpack_require__(445);





var SliderSwatches = function SliderSwatches(_ref) {
  var onClick = _ref.onClick,
      hsl = _ref.hsl;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatches: {
        marginTop: '20px'
      },
      swatch: {
        boxSizing: 'border-box',
        width: '20%',
        paddingRight: '1px',
        float: 'left'
      },
      clear: {
        clear: 'both'
      }
    }
  });

  // Acceptible difference in floating point equality
  var epsilon = 0.1;

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.swatches },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatch },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SliderSwatch__["a" /* default */], {
        hsl: hsl,
        offset: '.80',
        active: Math.abs(hsl.l - 0.80) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
        onClick: onClick,
        first: true
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatch },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SliderSwatch__["a" /* default */], {
        hsl: hsl,
        offset: '.65',
        active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
        onClick: onClick
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatch },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SliderSwatch__["a" /* default */], {
        hsl: hsl,
        offset: '.50',
        active: Math.abs(hsl.l - 0.50) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
        onClick: onClick
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatch },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SliderSwatch__["a" /* default */], {
        hsl: hsl,
        offset: '.35',
        active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
        onClick: onClick
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.swatch },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SliderSwatch__["a" /* default */], {
        hsl: hsl,
        offset: '.20',
        active: Math.abs(hsl.l - 0.20) < epsilon && Math.abs(hsl.s - 0.50) < epsilon,
        onClick: onClick,
        last: true
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.clear })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (SliderSwatches);

/***/ }),
/* 445 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SliderSwatch */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var SliderSwatch = function SliderSwatch(_ref) {
  var hsl = _ref.hsl,
      offset = _ref.offset,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
      active = _ref.active,
      first = _ref.first,
      last = _ref.last;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      swatch: {
        height: '12px',
        background: 'hsl(' + hsl.h + ', 50%, ' + offset * 100 + '%)',
        cursor: 'pointer'
      }
    },
    'first': {
      swatch: {
        borderRadius: '2px 0 0 2px'
      }
    },
    'last': {
      swatch: {
        borderRadius: '0 2px 2px 0'
      }
    },
    'active': {
      swatch: {
        transform: 'scaleY(1.8)',
        borderRadius: '3.6px/2px'
      }
    }
  }, { active: active, first: first, last: last });

  var handleClick = function handleClick(e) {
    return onClick({
      h: hsl.h,
      s: 0.5,
      l: offset,
      source: 'hsl'
    }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.swatch, onClick: handleClick });
};

/* harmony default export */ __webpack_exports__["a"] = (SliderSwatch);

/***/ }),
/* 446 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SliderPointer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);



var SliderPointer = function SliderPointer() {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '14px',
        height: '14px',
        borderRadius: '6px',
        transform: 'translate(-7px, -1px)',
        backgroundColor: 'rgb(248, 248, 248)',
        boxShadow: '0 1px 4px 0 rgba(0, 0, 0, 0.37)'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

/* harmony default export */ __webpack_exports__["a"] = (SliderPointer);

/***/ }),
/* 447 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Swatches */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_material_colors__ = __webpack_require__(140);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__SwatchesGroup__ = __webpack_require__(448);










var Swatches = function Swatches(_ref) {
  var width = _ref.width,
      height = _ref.height,
      onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      colors = _ref.colors,
      hex = _ref.hex,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__["a" /* default */])({
    'default': {
      picker: {
        width: width,
        height: height
      },
      overflow: {
        height: height,
        overflowY: 'scroll'
      },
      body: {
        padding: '16px 0 6px 16px'
      },
      clear: {
        clear: 'both'
      }
    }
  }, passedStyles));

  var handleChange = function handleChange(data, e) {
    return onChange({ hex: data, source: 'hex' }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'swatches-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      __WEBPACK_IMPORTED_MODULE_6__common__["f" /* Raised */],
      null,
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.overflow },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.body },
          Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_map__["a" /* default */])(colors, function (group) {
            return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__SwatchesGroup__["a" /* default */], {
              key: group.toString(),
              group: group,
              active: hex,
              onClick: handleChange,
              onSwatchHover: onSwatchHover
            });
          }),
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.clear })
        )
      )
    )
  );
};

Swatches.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string)),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object

  /* eslint-disable max-len */
};Swatches.defaultProps = {
  width: 320,
  height: 240,
  colors: [[__WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["p" /* red */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["n" /* pink */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["o" /* purple */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["g" /* deepPurple */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["i" /* indigo */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["b" /* blue */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["j" /* lightBlue */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["e" /* cyan */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["q" /* teal */]['100']], ['#194D33', __WEBPACK_IMPORTED_MODULE_5_material_colors__["h" /* green */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["h" /* green */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["h" /* green */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["h" /* green */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["k" /* lightGreen */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["l" /* lime */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["r" /* yellow */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["a" /* amber */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["m" /* orange */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["f" /* deepOrange */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["d" /* brown */]['100']], [__WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['900'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['700'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['500'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['300'], __WEBPACK_IMPORTED_MODULE_5_material_colors__["c" /* blueGrey */]['100']], ['#000000', '#525252', '#969696', '#D9D9D9', '#FFFFFF']],
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__common__["c" /* ColorWrap */])(Swatches));

/***/ }),
/* 448 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SwatchesGroup */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__SwatchesColor__ = __webpack_require__(449);






var SwatchesGroup = function SwatchesGroup(_ref) {
  var onClick = _ref.onClick,
      onSwatchHover = _ref.onSwatchHover,
      group = _ref.group,
      active = _ref.active;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      group: {
        paddingBottom: '10px',
        width: '40px',
        float: 'left',
        marginRight: '10px'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.group },
    Object(__WEBPACK_IMPORTED_MODULE_2_lodash_es_map__["a" /* default */])(group, function (color, i) {
      return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__SwatchesColor__["a" /* default */], {
        key: color,
        color: color,
        active: color.toLowerCase() === active,
        first: i === 0,
        last: i === group.length - 1,
        onClick: onClick,
        onSwatchHover: onSwatchHover
      });
    })
  );
};

/* harmony default export */ __webpack_exports__["a"] = (SwatchesGroup);

/***/ }),
/* 449 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export SwatchesColor */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icons_material_CheckIcon__ = __webpack_require__(450);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__icons_material_CheckIcon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__icons_material_CheckIcon__);







var SwatchesColor = function SwatchesColor(_ref) {
  var color = _ref.color,
      _ref$onClick = _ref.onClick,
      onClick = _ref$onClick === undefined ? function () {} : _ref$onClick,
      onSwatchHover = _ref.onSwatchHover,
      first = _ref.first,
      last = _ref.last,
      active = _ref.active;

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      color: {
        width: '40px',
        height: '24px',
        cursor: 'pointer',
        background: color,
        marginBottom: '1px'
      },
      check: {
        color: __WEBPACK_IMPORTED_MODULE_2__helpers_color__["a" /* getContrastingColor */](color),
        marginLeft: '8px',
        display: 'none'
      }
    },
    'first': {
      color: {
        overflow: 'hidden',
        borderRadius: '2px 2px 0 0'
      }
    },
    'last': {
      color: {
        overflow: 'hidden',
        borderRadius: '0 0 2px 2px'
      }
    },
    'active': {
      check: {
        display: 'block'
      }
    },
    'color-#FFFFFF': {
      color: {
        boxShadow: 'inset 0 0 0 1px #ddd'
      },
      check: {
        color: '#333'
      }
    },
    'transparent': {
      check: {
        color: '#333'
      }
    }
  }, {
    first: first,
    last: last,
    active: active,
    'color-#FFFFFF': color === '#FFFFFF',
    'transparent': color === 'transparent'
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    __WEBPACK_IMPORTED_MODULE_3__common__["h" /* Swatch */],
    {
      color: color,
      style: styles.color,
      onClick: onClick,
      onHover: onSwatchHover,
      focusStyle: { boxShadow: '0 0 4px ' + color }
    },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.check },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__icons_material_CheckIcon___default.a, null)
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (SwatchesColor);

/***/ }),
/* 450 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

var DEFAULT_SIZE = 24;

exports.default = function (_ref) {
  var _ref$fill = _ref.fill,
      fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
      _ref$width = _ref.width,
      width = _ref$width === undefined ? DEFAULT_SIZE : _ref$width,
      _ref$height = _ref.height,
      height = _ref$height === undefined ? DEFAULT_SIZE : _ref$height,
      _ref$style = _ref.style,
      style = _ref$style === undefined ? {} : _ref$style,
      props = _objectWithoutProperties(_ref, ['fill', 'width', 'height', 'style']);

  return _react2.default.createElement(
    'svg',
    _extends({
      viewBox: '0 0 ' + DEFAULT_SIZE + ' ' + DEFAULT_SIZE,
      style: _extends({ fill: fill, width: width, height: height }, style)
    }, props),
    _react2.default.createElement('path', { d: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' })
  );
};

/***/ }),
/* 451 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Twitter */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_map__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common__ = __webpack_require__(3);









var Twitter = function Twitter(_ref) {
  var onChange = _ref.onChange,
      onSwatchHover = _ref.onSwatchHover,
      hex = _ref.hex,
      colors = _ref.colors,
      width = _ref.width,
      triangle = _ref.triangle,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_4_lodash_es_merge__["a" /* default */])({
    'default': {
      card: {
        width: width,
        background: '#fff',
        border: '0 solid rgba(0,0,0,0.25)',
        boxShadow: '0 1px 4px rgba(0,0,0,0.25)',
        borderRadius: '4px',
        position: 'relative'
      },
      body: {
        padding: '15px 9px 9px 15px'
      },
      label: {
        fontSize: '18px',
        color: '#fff'
      },
      triangle: {
        width: '0px',
        height: '0px',
        borderStyle: 'solid',
        borderWidth: '0 9px 10px 9px',
        borderColor: 'transparent transparent #fff transparent',
        position: 'absolute'
      },
      triangleShadow: {
        width: '0px',
        height: '0px',
        borderStyle: 'solid',
        borderWidth: '0 9px 10px 9px',
        borderColor: 'transparent transparent rgba(0,0,0,.1) transparent',
        position: 'absolute'
      },
      hash: {
        background: '#F0F0F0',
        height: '30px',
        width: '30px',
        borderRadius: '4px 0 0 4px',
        float: 'left',
        color: '#98A1A4',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center'
      },
      input: {
        width: '100px',
        fontSize: '14px',
        color: '#666',
        border: '0px',
        outline: 'none',
        height: '28px',
        boxShadow: 'inset 0 0 0 1px #F0F0F0',
        boxSizing: 'content-box',
        borderRadius: '0 4px 4px 0',
        float: 'left',
        paddingLeft: '8px'
      },
      swatch: {
        width: '30px',
        height: '30px',
        float: 'left',
        borderRadius: '4px',
        margin: '0 6px 6px 0'
      },
      clear: {
        clear: 'both'
      }
    },
    'hide-triangle': {
      triangle: {
        display: 'none'
      },
      triangleShadow: {
        display: 'none'
      }
    },
    'top-left-triangle': {
      triangle: {
        top: '-10px',
        left: '12px'
      },
      triangleShadow: {
        top: '-11px',
        left: '12px'
      }
    },
    'top-right-triangle': {
      triangle: {
        top: '-10px',
        right: '12px'
      },
      triangleShadow: {
        top: '-11px',
        right: '12px'
      }
    }
  }, passedStyles), {
    'hide-triangle': triangle === 'hide',
    'top-left-triangle': triangle === 'top-left',
    'top-right-triangle': triangle === 'top-right'
  });

  var handleChange = function handleChange(hexcode, e) {
    __WEBPACK_IMPORTED_MODULE_5__helpers_color__["b" /* isValidHex */](hexcode) && onChange({
      hex: hexcode,
      source: 'hex'
    }, e);
  };

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.card, className: 'twitter-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.triangleShadow }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.triangle }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.body },
      Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_map__["a" /* default */])(colors, function (c, i) {
        return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__common__["h" /* Swatch */], {
          key: i,
          color: c,
          hex: c,
          style: styles.swatch,
          onClick: handleChange,
          onHover: onSwatchHover,
          focusStyle: {
            boxShadow: '0 0 4px ' + c
          }
        });
      }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.hash },
        '#'
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__common__["d" /* EditableInput */], {
        label: null,
        style: { input: styles.input },
        value: hex.replace('#', ''),
        onChange: handleChange
      }),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.clear })
    )
  );
};

Twitter.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  triangle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['hide', 'top-left', 'top-right']),
  colors: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
};

Twitter.defaultProps = {
  width: 276,
  colors: ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF'],
  triangle: 'top-left',
  styles: {}
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__common__["c" /* ColorWrap */])(Twitter));

/***/ }),
/* 452 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Google */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__GooglePointerCircle__ = __webpack_require__(453);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__GooglePointer__ = __webpack_require__(454);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__GoogleFields__ = __webpack_require__(455);










var Google = function Google(_ref) {
  var width = _ref.width,
      onChange = _ref.onChange,
      rgb = _ref.rgb,
      hsl = _ref.hsl,
      hsv = _ref.hsv,
      hex = _ref.hex,
      header = _ref.header,
      _ref$styles = _ref.styles,
      passedStyles = _ref$styles === undefined ? {} : _ref$styles,
      _ref$className = _ref.className,
      className = _ref$className === undefined ? '' : _ref$className;

  var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
    'default': {
      picker: {
        width: width,
        background: '#fff',
        border: '1px solid #dfe1e5',
        boxSizing: 'initial',
        display: 'flex',
        flexWrap: 'wrap',
        borderRadius: '8px 8px 0px 0px'
      },
      head: {
        height: '57px',
        width: '100%',
        paddingTop: '16px',
        paddingBottom: '16px',
        paddingLeft: '16px',
        fontSize: '20px',
        boxSizing: 'border-box',
        fontFamily: 'Roboto-Regular,HelveticaNeue,Arial,sans-serif'
      },
      saturation: {
        width: '70%',
        padding: '0px',
        position: 'relative',
        overflow: 'hidden'
      },
      swatch: {
        width: '30%',
        height: '228px',
        padding: '0px',
        background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', 1)',
        position: 'relative',
        overflow: 'hidden'
      },
      body: {
        margin: 'auto',
        width: '95%'
      },
      controls: {
        display: 'flex',
        boxSizing: 'border-box',
        height: '52px',
        paddingTop: '22px'
      },
      color: {
        width: '32px'
      },
      hue: {
        height: '8px',
        position: 'relative',
        margin: '0px 16px 0px 16px',
        width: '100%'
      },
      Hue: {
        radius: '2px'
      }
    }
  }, passedStyles));
  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.picker, className: 'google-picker ' + className },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.head },
      header
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.swatch }),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.saturation },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
        hsl: hsl,
        hsv: hsv,
        pointer: __WEBPACK_IMPORTED_MODULE_5__GooglePointerCircle__["a" /* default */],
        onChange: onChange
      })
    ),
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.body },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.controls, className: 'flexbox-fix' },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.hue },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
            style: styles.Hue,
            hsl: hsl,
            radius: '4px',
            pointer: __WEBPACK_IMPORTED_MODULE_6__GooglePointer__["a" /* default */],
            onChange: onChange
          })
        )
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__GoogleFields__["a" /* default */], {
        rgb: rgb,
        hsl: hsl,
        hex: hex,
        hsv: hsv,
        onChange: onChange
      })
    )
  );
};

Google.propTypes = {
  width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
  styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
  header: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string

};

Google.defaultProps = {
  width: 652,
  styles: {},
  header: 'Color picker'
};

/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Google));

/***/ }),
/* 453 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export GooglePointerCircle */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);




var GooglePointerCircle = function GooglePointerCircle(props) {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '20px',
        height: '20px',
        borderRadius: '22px',
        border: '2px #fff solid',
        transform: 'translate(-12px, -13px)',
        background: 'hsl(' + Math.round(props.hsl.h) + ', ' + Math.round(props.hsl.s * 100) + '%, ' + Math.round(props.hsl.l * 100) + '%)'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

GooglePointerCircle.propTypes = {
  hsl: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
    h: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    s: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    l: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    a: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number
  })
};

GooglePointerCircle.defaultProps = {
  hsl: { a: 1, h: 249.94, l: 0.2, s: 0.50 }
};

/* harmony default export */ __webpack_exports__["a"] = (GooglePointerCircle);

/***/ }),
/* 454 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export GooglePointer */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);




var GooglePointer = function GooglePointer(props) {
  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      picker: {
        width: '20px',
        height: '20px',
        borderRadius: '22px',
        transform: 'translate(-10px, -7px)',
        background: 'hsl(' + Math.round(props.hsl.h) + ', 100%, 50%)',
        border: '2px white solid'
      }
    }
  });

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.picker });
};

GooglePointer.propTypes = {
  hsl: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
    h: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    s: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    l: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
    a: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number
  })
};

GooglePointer.defaultProps = {
  hsl: { a: 1, h: 249.94, l: 0.2, s: 0.50 }
};

/* harmony default export */ __webpack_exports__["a"] = (GooglePointer);

/***/ }),
/* 455 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export GoogleFields */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(14);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common__ = __webpack_require__(3);





var GoogleFields = function GoogleFields(_ref) {
  var onChange = _ref.onChange,
      rgb = _ref.rgb,
      hsl = _ref.hsl,
      hex = _ref.hex,
      hsv = _ref.hsv;


  var handleChange = function handleChange(data, e) {
    if (data.hex) {
      __WEBPACK_IMPORTED_MODULE_2__helpers_color__["b" /* isValidHex */](data.hex) && onChange({
        hex: data.hex,
        source: 'hex'
      }, e);
    } else if (data.rgb) {
      var values = data.rgb.split(',');
      __WEBPACK_IMPORTED_MODULE_2__helpers_color__["c" /* isvalidColorString */](data.rgb, 'rgb') && onChange({
        r: values[0],
        g: values[1],
        b: values[2],
        a: 1,
        source: 'rgb'
      }, e);
    } else if (data.hsv) {
      var _values = data.hsv.split(',');
      if (__WEBPACK_IMPORTED_MODULE_2__helpers_color__["c" /* isvalidColorString */](data.hsv, 'hsv')) {
        _values[2] = _values[2].replace('%', '');
        _values[1] = _values[1].replace('%', '');
        _values[0] = _values[0].replace('°', '');
        if (_values[1] == 1) {
          _values[1] = 0.01;
        } else if (_values[2] == 1) {
          _values[2] = 0.01;
        }
        onChange({
          h: Number(_values[0]),
          s: Number(_values[1]),
          v: Number(_values[2]),
          source: 'hsv'
        }, e);
      }
    } else if (data.hsl) {
      var _values2 = data.hsl.split(',');
      if (__WEBPACK_IMPORTED_MODULE_2__helpers_color__["c" /* isvalidColorString */](data.hsl, 'hsl')) {
        _values2[2] = _values2[2].replace('%', '');
        _values2[1] = _values2[1].replace('%', '');
        _values2[0] = _values2[0].replace('°', '');
        if (hsvValue[1] == 1) {
          hsvValue[1] = 0.01;
        } else if (hsvValue[2] == 1) {
          hsvValue[2] = 0.01;
        }
        onChange({
          h: Number(_values2[0]),
          s: Number(_values2[1]),
          v: Number(_values2[2]),
          source: 'hsl'
        }, e);
      }
    }
  };

  var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
    'default': {
      wrap: {
        display: 'flex',
        height: '100px',
        marginTop: '4px'
      },
      fields: {
        width: '100%'
      },
      column: {
        paddingTop: '10px',
        display: 'flex',
        justifyContent: 'space-between'
      },
      double: {
        padding: '0px 4.4px',
        boxSizing: 'border-box'
      },
      input: {
        width: '100%',
        height: '38px',
        boxSizing: 'border-box',
        padding: '4px 10% 3px',
        textAlign: 'center',
        border: '1px solid #dadce0',
        fontSize: '11px',
        textTransform: 'lowercase',
        borderRadius: '5px',
        outline: 'none',
        fontFamily: 'Roboto,Arial,sans-serif'
      },
      input2: {
        height: '38px',
        width: '100%',
        border: '1px solid #dadce0',
        boxSizing: 'border-box',
        fontSize: '11px',
        textTransform: 'lowercase',
        borderRadius: '5px',
        outline: 'none',
        paddingLeft: '10px',
        fontFamily: 'Roboto,Arial,sans-serif'
      },
      label: {
        textAlign: 'center',
        fontSize: '12px',
        background: '#fff',
        position: 'absolute',
        textTransform: 'uppercase',
        color: '#3c4043',
        width: '35px',
        top: '-6px',
        left: '0',
        right: '0',
        marginLeft: 'auto',
        marginRight: 'auto',
        fontFamily: 'Roboto,Arial,sans-serif'
      },
      label2: {
        left: '10px',
        textAlign: 'center',
        fontSize: '12px',
        background: '#fff',
        position: 'absolute',
        textTransform: 'uppercase',
        color: '#3c4043',
        width: '32px',
        top: '-6px',
        fontFamily: 'Roboto,Arial,sans-serif'
      },
      single: {
        flexGrow: '1',
        margin: '0px 4.4px'
      }
    }
  });

  var rgbValue = rgb.r + ', ' + rgb.g + ', ' + rgb.b;
  var hslValue = Math.round(hsl.h) + '\xB0, ' + Math.round(hsl.s * 100) + '%, ' + Math.round(hsl.l * 100) + '%';
  var hsvValue = Math.round(hsv.h) + '\xB0, ' + Math.round(hsv.s * 100) + '%, ' + Math.round(hsv.v * 100) + '%';

  return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
    'div',
    { style: styles.wrap, className: 'flexbox-fix' },
    __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
      'div',
      { style: styles.fields },
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.double },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
          style: { input: styles.input, label: styles.label },
          label: 'hex',
          value: hex,
          onChange: handleChange
        })
      ),
      __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
        'div',
        { style: styles.column },
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.single },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
            style: { input: styles.input2, label: styles.label2 },
            label: 'rgb',
            value: rgbValue,
            onChange: handleChange
          })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.single },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
            style: { input: styles.input2, label: styles.label2 },
            label: 'hsv',
            value: hsvValue,
            onChange: handleChange
          })
        ),
        __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
          'div',
          { style: styles.single },
          __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3__common__["d" /* EditableInput */], {
            style: { input: styles.input2, label: styles.label2 },
            label: 'hsl',
            value: hslValue,
            onChange: handleChange
          })
        )
      )
    )
  );
};

/* harmony default export */ __webpack_exports__["a"] = (GoogleFields);

/***/ }),
/* 456 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CircleColorPicker = function CircleColorPicker(props) {

    var updateColor = function updateColor(e) {
        props.onChange(e.target.style.backgroundColor);
    };
    return wp.element.createElement(
        'div',
        { className: 'pac_da_defined_color' },
        props.colors.map(function (color) {
            return wp.element.createElement(
                'div',
                { key: color, className: 'circle', onClick: updateColor },
                wp.element.createElement('div', { style: { backgroundColor: color } })
            );
        })
    );
};
exports.default = CircleColorPicker;

/***/ }),
/* 457 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var GlobalColorPicker = function GlobalColorPicker(props) {

    var updateColor = function updateColor(e) {
        props.onChange(e.target.getAttribute('data-gcid'));
    };
    return wp.element.createElement(
        _react2.default.Fragment,
        null,
        Object.keys(props.diviGlobalColor).map(function (key) {
            return wp.element.createElement(
                _react2.default.Fragment,
                { key: key },
                props.diviGlobalColor[key].active === 'yes' ? wp.element.createElement(
                    'div',
                    { key: key, className: 'circle global', onClick: updateColor },
                    wp.element.createElement('div', { 'data-gcid': key, style: { backgroundColor: props.diviGlobalColor[key].color } })
                ) : ''
            );
        })
    );
};
exports.default = GlobalColorPicker;

/***/ }),
/* 458 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var About = function About(props) {
    var Paclogo = pacDaAppLocalizer.plugin_url + 'include/img/Pee-Aye-Creative-Logo.png';
    return wp.element.createElement(
        'div',
        { className: 'pac_da_about' },
        wp.element.createElement(
            'div',
            { className: 'plugin' },
            wp.element.createElement(
                'div',
                { className: 'title' },
                'What is Divi Assistant?'
            ),
            wp.element.createElement(
                'div',
                { className: 'description' },
                'The Divi Assistant plugin is a collection of handy features and tools to make your life easier when working on your Divi website. The features are presented as addons unified interface grouped by their similarities. Several free addons are included in the core Divi Assistant plugin like startup actions, maintenance tools, general utilities, interface hacks, learning resources, and help getting technical support.',
                wp.element.createElement('br', null),
                wp.element.createElement('br', null),
                'We also offer a pro version which includes a huge suite of additional features that modify, extend, and improve various aspects of Divi. There is nothing else like this plugin on the market, and truly is a game-changer. With so much to offer like global styling, local fonts, a code editor for CSS, JS, and PHP, and so much more! Visit our website to learn more and to purchase Divi Assistant.'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'Pee_Aye' },
            wp.element.createElement(
                'div',
                { className: 'header' },
                wp.element.createElement('img', { className: 'logo', src: Paclogo, alt: 'Pee-Aye Creative logo' }),
                wp.element.createElement(
                    'div',
                    { className: 'company' },
                    wp.element.createElement(
                        'div',
                        { className: 'name' },
                        'About Pee-Aye Creative'
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'creator' },
                        'Creators Of Divi Assistant'
                    )
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'description' },
                'We are a small family business from Pennsylvania with a passion for creating helpful and innovative tools for Divi and WordPress users. As a leading 3rd party Divi creator, we pride ourselves in creating quality products that promote the Divi ecosystem by adding missing features, solving problems, improving workflows, and making website building with Divi more efficient and enjoyable.'
            ),
            wp.element.createElement(
                'div',
                { className: 'pac_da_links' },
                wp.element.createElement(
                    'a',
                    { href: 'https://www.peeayecreative.com/', target: '_blank', className: 'pac_link' },
                    wp.element.createElement(
                        'svg',
                        { width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M12 4.92859C10.1253 4.93086 8.32794 5.67663 7.00228 7.00228C5.67663 8.32794 4.93086 10.1253 4.92859 12C4.93086 13.8748 5.67663 15.6721 7.00228 16.9977C8.32794 18.3234 10.1253 19.0692 12 19.0714C13.8748 19.0692 15.6721 18.3234 16.9978 16.9977C18.3235 15.6721 19.0692 13.8748 19.0714 12C19.0692 10.1253 18.3235 8.32794 16.9978 7.00228C15.6721 5.67663 13.8748 4.93086 12 4.92859V4.92859ZM17.0658 9.2143H14.9572C14.795 8.32082 14.5063 7.45499 14.1 6.64287C15.3505 7.13348 16.3925 8.04214 17.0486 9.2143H17.0658ZM12 17.7857C11.4429 17.7857 10.7143 16.6714 10.3372 14.7857H13.6629C13.2772 16.6714 12.5486 17.7857 12 17.7857ZM12 6.2143C12.5486 6.2143 13.2772 7.32859 13.6629 9.2143H10.3372C10.7143 7.32859 11.4429 6.2143 12 6.2143ZM10.14 10.5H13.8515C13.9044 10.9982 13.9301 11.499 13.9286 12C13.9301 12.501 13.9044 13.0018 13.8515 13.5H10.14C10.0972 13.0286 10.0714 12.5314 10.0714 12C10.0714 11.4686 10.0972 10.9714 10.14 10.5ZM9.85716 6.62571C9.45084 7.43783 9.16223 8.30366 9.00002 9.19714H6.89148C7.55412 8.0238 8.60176 7.11542 9.85716 6.62571ZM6.2143 12C6.21378 11.4935 6.2801 10.9892 6.41148 10.5H8.85432C8.81146 10.9972 8.78573 11.4943 8.78573 12C8.78573 12.5057 8.78575 13.0029 8.85432 13.5H6.41148C6.28059 13.0108 6.21428 12.5065 6.2143 12ZM6.92575 14.7857H9.03434C9.19789 15.6789 9.48644 16.5445 9.89148 17.3572C8.63608 16.8675 7.58839 15.9591 6.92575 14.7857ZM14.1343 17.3572C14.5393 16.5445 14.8279 15.6789 14.9914 14.7857H17.0486C16.4041 15.9584 15.3748 16.8727 14.1343 17.3743V17.3572ZM15.1372 13.4829C15.1885 12.9845 15.2143 12.4838 15.2143 11.9829C15.2144 11.4819 15.1887 10.9812 15.1372 10.4829H17.58C17.7185 10.9708 17.7877 11.4757 17.7857 11.9829C17.7872 12.49 17.7179 12.9948 17.58 13.4829H15.1372Z', fill: '#2B87DA' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Visit Our Website'
                    )
                ),
                wp.element.createElement(
                    'a',
                    { href: 'https://www.facebook.com/groups/thediviteacher', target: '_blank', className: 'pac_link' },
                    wp.element.createElement(
                        'svg',
                        { width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M10.052 11.4156C9.47403 11.4156 8.90908 11.2442 8.42854 10.9231C7.94801 10.602 7.57348 10.1457 7.35231 9.61172C7.13115 9.07778 7.07328 8.49025 7.18603 7.92342C7.29878 7.35659 7.57708 6.83593 7.98574 6.42727C8.3944 6.01861 8.91507 5.74031 9.48189 5.62756C10.0487 5.51481 10.6363 5.57268 11.1702 5.79384C11.7041 6.01501 12.1605 6.38954 12.4816 6.87007C12.8027 7.3506 12.974 7.91556 12.974 8.49349C12.974 9.26847 12.6662 10.0117 12.1182 10.5597C11.5702 11.1077 10.8269 11.4156 10.052 11.4156ZM10.052 6.74024C9.7052 6.74024 9.36623 6.84307 9.07791 7.03572C8.78959 7.22837 8.56487 7.50219 8.43217 7.82255C8.29947 8.14292 8.26475 8.49544 8.3324 8.83553C8.40005 9.17563 8.56703 9.48803 8.81223 9.73322C9.05743 9.97842 9.36982 10.1454 9.70992 10.213C10.05 10.2807 10.4025 10.246 10.7229 10.1133C11.0433 9.98058 11.3171 9.75586 11.5097 9.46754C11.7024 9.17922 11.8052 8.84025 11.8052 8.49349C11.8042 8.02882 11.6191 7.58347 11.2906 7.25489C10.962 6.92632 10.5166 6.74127 10.052 6.74024Z', fill: '#2B87DA' }),
                        wp.element.createElement('path', { d: 'M15.5065 12.1948C15.0827 12.1948 14.6684 12.0691 14.316 11.8336C13.9636 11.5982 13.689 11.2635 13.5268 10.872C13.3646 10.4804 13.3221 10.0495 13.4048 9.63386C13.4875 9.21819 13.6916 8.83637 13.9913 8.53669C14.291 8.237 14.6728 8.03292 15.0885 7.95023C15.5041 7.86755 15.935 7.90999 16.3265 8.07217C16.7181 8.23436 17.0528 8.50902 17.2882 8.86141C17.5237 9.2138 17.6494 9.6281 17.6494 10.0519C17.6483 10.6199 17.4222 11.1644 17.0206 11.566C16.619 11.9676 16.0745 12.1937 15.5065 12.1948ZM15.5065 9.07789C15.3139 9.07789 15.1255 9.13502 14.9654 9.24204C14.8052 9.34907 14.6803 9.50119 14.6066 9.67917C14.5329 9.85715 14.5136 10.053 14.5512 10.2419C14.5888 10.4309 14.6815 10.6044 14.8178 10.7407C14.954 10.8769 15.1275 10.9696 15.3165 11.0072C15.5054 11.0448 15.7013 11.0255 15.8792 10.9518C16.0572 10.8781 16.2094 10.7532 16.3164 10.5931C16.4234 10.4329 16.4805 10.2446 16.4805 10.0519C16.4805 9.79359 16.3779 9.54584 16.1952 9.36318C16.0126 9.18051 15.7648 9.07789 15.5065 9.07789Z', fill: '#2B87DA' }),
                        wp.element.createElement('path', { d: 'M15.5065 17.6493C15.3515 17.6493 15.2028 17.5878 15.0932 17.4782C14.9836 17.3686 14.922 17.2199 14.922 17.0649C14.922 16.9099 14.9836 16.7613 15.0932 16.6517C15.2028 16.5421 15.3515 16.4805 15.5065 16.4805C16.161 16.4805 17.2597 16.3558 17.2597 15.5065C17.2597 14.6571 16.3519 14.1428 15.5065 14.1428C15.3757 14.1444 15.2453 14.1575 15.1168 14.1818C14.9683 14.2039 14.8169 14.1679 14.6941 14.0813C14.5713 13.9948 14.4866 13.8642 14.4575 13.7168C14.4284 13.5695 14.4572 13.4165 14.5379 13.2898C14.6186 13.1631 14.745 13.0723 14.8909 13.0363C15.0924 12.9964 15.2972 12.9755 15.5026 12.974C16.913 12.974 18.4285 13.9441 18.4285 15.5065C18.4285 16.8272 17.3104 17.6493 15.5065 17.6493Z', fill: '#2B87DA' }),
                        wp.element.createElement('path', { d: 'M10.0519 18.4286C7.8857 18.4286 5.57141 17.7624 5.57141 15.8961C5.57141 14.4039 6.99739 12.1948 10.0519 12.1948C13.1065 12.1948 14.5325 14.4039 14.5325 15.8961C14.5325 17.7624 12.2182 18.4286 10.0519 18.4286ZM10.0519 13.3637C7.57401 13.3637 6.74024 15.1013 6.74024 15.8961C6.74024 16.9714 8.82076 17.2598 10.0519 17.2598C11.2831 17.2598 13.3636 16.9714 13.3636 15.8961C13.3636 15.1013 12.5299 13.3637 10.0519 13.3637Z', fill: '#2B87DA' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Join Our Facebook Group'
                    )
                ),
                wp.element.createElement(
                    'a',
                    { href: 'https://www.youtube.com/channel/UCXKnzrWvbMTJTfvLS8-7cfA?sub_confirmation=1', target: '_blank', className: 'pac_link' },
                    wp.element.createElement(
                        'svg',
                        { width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M4.92856 11.9996C4.92856 16.7567 6.17999 17.7853 12 17.7853C17.8114 17.7853 19.0714 16.7567 19.0714 11.9996C19.0714 7.24244 17.82 6.21387 12 6.21387C6.17999 6.21387 4.92856 7.24244 4.92856 11.9996ZM6.21427 11.9996C6.21427 8.1853 6.64284 7.49958 12 7.49958C17.3571 7.49958 17.7857 8.17672 17.7857 11.9996C17.7857 15.8224 17.3571 16.4996 12 16.4996C6.64284 16.4996 6.21427 15.8139 6.21427 11.9996ZM10.4057 15.1369C10.5007 15.1873 10.6067 15.2137 10.7143 15.2139C10.8425 15.2043 10.9649 15.1566 11.0657 15.0768L14.9229 12.5054C15.0115 12.4457 15.0844 12.3655 15.1351 12.2714C15.1859 12.1774 15.2131 12.0724 15.2143 11.9655C15.2131 11.8598 15.186 11.7558 15.1351 11.6631C15.0843 11.5704 15.0114 11.4917 14.9229 11.4339L11.0657 8.86251C10.9657 8.80374 10.8518 8.77274 10.7357 8.77274C10.6197 8.77274 10.5058 8.80374 10.4057 8.86251C10.3049 8.91872 10.2208 9.00083 10.162 9.10024C10.1033 9.19964 10.072 9.31269 10.0714 9.42815V14.571C10.0711 14.6867 10.102 14.8004 10.1608 14.9C10.2197 14.9995 10.3043 15.0813 10.4057 15.1369ZM11.3571 13.3711V10.6283L13.4143 11.9996L11.3571 13.3711Z', fill: '#2B87DA' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Subscribe To Our Youtube Channel'
                    )
                )
            )
        )
    );
};
exports.default = About;

/***/ }),
/* 459 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var DiviAssistantChangelog = function DiviAssistantChangelog(props) {

    return wp.element.createElement(
        'div',
        { className: 'pac_da_daChangelog' },
        wp.element.createElement(
            'span',
            null,
            'Divi Assistant Changelog'
        ),
        props.diviAssistantChangelog.map(function (val) {
            return wp.element.createElement(
                'div',
                { key: Math.random(1, 9999999), className: 'pac_da_daChangelog_details' },
                wp.element.createElement(
                    'span',
                    null,
                    val.version,
                    ' - ',
                    val.date
                ),
                wp.element.createElement(
                    'div',
                    { className: 'points' },
                    val.points.map(function (point, index) {
                        return wp.element.createElement(
                            'p',
                            { key: index },
                            point
                        );
                    })
                )
            );
        })
    );
};
exports.default = DiviAssistantChangelog;

/***/ }),
/* 460 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _ProductCard = __webpack_require__(461);

var _ProductCard2 = _interopRequireDefault(_ProductCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var OurProducts = function OurProducts() {
    var diviAdventureClub = pacDaAppLocalizer.plugin_url + 'include/img/Divi Adventure Club.png';
    var diviSearchHelper = pacDaAppLocalizer.plugin_url + 'include/img/Divi Search Helper.jpg';
    var diviEventsCalendar = pacDaAppLocalizer.plugin_url + 'include/img/Divi Events Calendar.jpg';
    var diviResponsiveHelper = pacDaAppLocalizer.plugin_url + 'include/img/Divi Responsive Helper.jpg';
    var diviDynamicHelper = pacDaAppLocalizer.plugin_url + 'include/img/Divi Dynamic Helper.png';
    var diviCarouselMaker = pacDaAppLocalizer.plugin_url + 'include/img/Divi Carousel Maker.jpg';
    var diviContactFormHelper = pacDaAppLocalizer.plugin_url + 'include/img/Divi Contact Form Helper.jpg';
    var diviSocialSharingButtons = pacDaAppLocalizer.plugin_url + 'include/img/Divi Social Sharing Buttons.jpg';
    var diviTableOfContentsMaker = pacDaAppLocalizer.plugin_url + 'include/img/Divi Table of Contents Maker.jpg';
    var diviTabsMaker = pacDaAppLocalizer.plugin_url + 'include/img/Divi Tabs Maker.jpg';
    var diviTaxonomyHelper = pacDaAppLocalizer.plugin_url + 'include/img/Divi Taxonomy Helper.jpg';
    var diviTimerPro = pacDaAppLocalizer.plugin_url + 'include/img/Divi Timer Pro.jpg';
    var diviPavingCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Paving CT.jpg';
    var diviExcavatingCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Excavating CT.jpg';
    var diviConstructionCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Construction CT.jpg';
    var diviMowingCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Mowing CT.jpg';
    var diviElectricianCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Electrician CT.jpg';
    var diviHandmadeCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Handmade CT.jpg';
    var diviPhotographerCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Photographer CT.jpg';
    var diviLMSLearnDashCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi LMS LearnDash CT.jpg';
    var diviLMSLifterLMS = pacDaAppLocalizer.plugin_url + 'include/img/Divi LMS CT.jpg';
    var diviPizzaCT = pacDaAppLocalizer.plugin_url + 'include/img/Divi Pizza CT.jpg';
    var diviBeginnerCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Beginner Course.jpg';
    var diviThemeBuilderCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Theme Builder Course.jpg';
    var diviResponsiveCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Responsive Course.jpg';
    var diviWebsiteDesignCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Website Design Course.jpg';

    return wp.element.createElement(
        'div',
        { className: 'pac_da_about_products' },
        wp.element.createElement(
            'div',
            { className: 'details' },
            wp.element.createElement(
                'span',
                null,
                'Explore Our other Divi Products'
            ),
            wp.element.createElement(
                'p',
                null,
                'We invite you to shop our popular Divi plugins, child themes, and courses! As a top-rated Divi product creator and community leader, we have a proven track record of continuous feature updates and improvements. And our products come with thorough and helpful documentation to help you get started and use the features. We hope you will join the tens of thousands of happy customers who love and trust our products!'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_our_products' },
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Adventure Club', url: 'https://www.peeayecreative.com/product/divi-adventure-club/', thumbnail: diviAdventureClub, description: 'Gain access to every product and resource by Pee-Aye Creative! Whether you are new to Divi or an experienced user, you can count on incredible helpful tools and resources from the Divi Adventure Club to help you succeed and grow.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Search Helper', url: 'https://www.peeayecreative.com/product/divi-search-helper/', thumbnail: diviSearchHelper, description: 'Upgrade the existing Divi Search module with all the missing features provided by our addon with new design settings, advanced search criteria options, and improved search result pages.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Events Calendar', url: 'https://www.peeayecreative.com/product/divi-events-calendar/', thumbnail: diviEventsCalendar, description: 'Easily integrate The Events Calendar plugin with Divi and display and customize your events using beautiful Divi modules!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Responsive Helper', url: 'https://www.peeayecreative.com/product/divi-responsive-helper/', thumbnail: diviResponsiveHelper, description: 'Make your website look awesome on all devices with a huge suite of features in this ultimate Divi responsive toolkit!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Dynamic Helper', url: 'https://www.peeayecreative.com/product/divi-dynamic-helper/', thumbnail: diviDynamicHelper, description: 'Enables the missing dynamic content feature in the existing Divi Video, Audio, Gallery, Map, and Code modules, colors, and all text areas in order to display videos, audio, images, maps, code, colors, and Divi Library layouts in the modules from data in custom fields.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Carousel Maker', url: 'https://www.peeayecreative.com/product/divi-carousel-maker/', thumbnail: diviCarouselMaker, description: 'Create beautiful carousels of any Divi modules by turning on a switch and adjusting the design settings!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Contact Form Helper', url: 'https://www.peeayecreative.com/product/divi-contact-form-helper/', thumbnail: diviContactFormHelper, description: 'Upgrade the Divi Contact Form with tons of new settings and premium features like file uploads, date & time picker, custom subject line, confirmation emails, Zapier integration, save submissions to database, SMTP, icons, new merge tags, dashboard stats, and so much more!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Social Sharing Buttons', url: 'https://www.peeayecreative.com/product/divi-social-sharing-buttons/', thumbnail: diviSocialSharingButtons, description: 'Encourage users to share and engage with your Divi content by adding highly-customizable social sharing buttons!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Table Of Contents Maker', url: 'https://www.peeayecreative.com/product/divi-table-of-contents-maker/', thumbnail: diviTableOfContentsMaker, description: 'Improve your blog post navigation, readability, and SEO with the first and only table of contents module for Divi! Includes hundreds of customization settings and design styling options.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Tabs Maker', url: 'https://www.peeayecreative.com/product/divi-tabs-maker/', thumbnail: diviTabsMaker, description: 'Easily create beautiful and functional advanced tabs in Divi with hundreds of custom content and design settings!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Taxonomy Helper', url: 'https://www.peeayecreative.com/product/divi-taxonomy-helper/', thumbnail: diviTaxonomyHelper, description: 'Add images to taxonomy terms, display images in theme builder templates as featured images, and display taxonomies in a grid with a custom module.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Timer Pro', url: 'https://www.peeayecreative.com/product/divi-timer-pro/', thumbnail: diviTimerPro, description: 'A unique new Divi countdown timer module that includes auto-restart and evergreen functionalities with helpful expiry actions that are essential for your marketing to increase sales and drive conversions!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Paving', url: 'https://www.peeayecreative.com/product/divi-paving-child-theme/', thumbnail: diviPavingCT, description: 'Seal the deal with this well-designed template perfect for starting a paving, asphalt, sealcoating, blacktop, construction, or industrial contractor website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Excavating', url: 'https://www.peeayecreative.com/product/divi-excavating-child-theme/', thumbnail: diviExcavatingCT, description: 'Showcase your groundbreaking abilities with this practical template perfect for starting an excavating, earthwork, site work, or construction contractor website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Construction', url: 'https://www.peeayecreative.com/product/divi-construction-child-theme/', thumbnail: diviConstructionCT, description: 'Build a great future with this carefully crafted template perfect for starting a construction, handyman, home building, renovation, or remodeling contractor website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Mowing', url: 'https://www.peeayecreative.com/product/divi-mowing-child-theme/', thumbnail: diviMowingCT, description: 'Cut to the chase with this gorgeous template perfect for starting a mowing, landscaping, gardening, and lawn care professional website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Electrician', url: 'https://www.peeayecreative.com/product/divi-electrician-child-theme/', thumbnail: diviElectricianCT, description: 'Light things up with this shocking template perfectly designed for starting an electrical, lighting, wiring, power, or industrial contractor website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Handmade', url: 'https://www.peeayecreative.com/product/divi-handmade-child-theme/', thumbnail: diviHandmadeCT, description: 'A beautiful and versatile Divi website template with everything you need to start a crafts, collectibles, antiques, DIY, or arts website, blog, or store in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Photographer', url: 'https://www.peeayecreative.com/product/divi-photographer-child-theme/', thumbnail: diviPhotographerCT, description: 'A beautiful and versatile Divi website template with everything you need to start a beautiful modern and minimalist photography or videography website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi LMS For LearnDash', url: 'https://www.peeayecreative.com/product/divi-lms-child-theme-for-learndash/', thumbnail: diviLMSLearnDashCT, description: 'Save tons of time and effort building an e-learning and courses website with this custom template created specifically with styling and layouts for using Divi and LearnDash LMS together.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi LMS For LifterLMS', url: 'https://www.peeayecreative.com/product/divi-lms-child-theme-for-lifterlms/', thumbnail: diviLMSLifterLMS, description: 'Give yourself a major jumpstart creating an e-learning and courses website with this custom template created specifically with styling and layouts for using Divi and LifterLMS together.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Pizza', url: 'https://www.peeayecreative.com/product/divi-pizza-child-theme/', thumbnail: diviPizzaCT, description: 'A bold and versatile Divi website template with everything you need to easily start a pizzeria, pizza shop, restaurant, café, diner, sub shop, or catering website in Divi!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Beginner Course', url: 'https://www.peeayecreative.com/product/divi-beginner-course/', thumbnail: diviBeginnerCourse, description: 'If you are new to Divi and want to learn how to use this incredible tool with training from The Divi Teacher, then this Divi Beginner course is perfect for you! Includes 4.5 hours of video AND written training!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Divi Theme Builder', url: 'https://www.peeayecreative.com/product/divi-theme-builder-course/', thumbnail: diviThemeBuilderCourse, description: 'If you are a Divi user ready to take your websites to the next level with the incredibly powerful template tool from Elegant Themes, then this Divi Theme Builder mini-course is perfect for you!' }),
            wp.element.createElement(_ProductCard2.default, { title: 'How To Make Divi Responsive', url: 'https://www.peeayecreative.com/product/make-divi-responsive-course/', thumbnail: diviResponsiveCourse, description: 'You know that it is important to make your Divi website responsive. But what does that even mean? How do you go about that? Is it difficult and time consuming? This free course will show you exactly how easy it is to make your Divi websites responsive.' }),
            wp.element.createElement(_ProductCard2.default, { title: 'Beyond The Builder', url: 'https://www.peeayecreative.com/product/beyond-the-builder-ultimate-divi-website-course/', thumbnail: diviWebsiteDesignCourse, description: 'Hey, Divi lovers. If you are new to building websites, or your current website is struggling to go beyond the basics, then this Beyond The Builder Divi website course is perfect for you! This is a complete full website design guide from start to finish!' })
        )
    );
};

exports.default = OurProducts;

/***/ }),
/* 461 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ProductCard = function ProductCard(props) {
  return wp.element.createElement(
    'div',
    { className: 'product_card' },
    wp.element.createElement('img', { className: 'img', src: props.thumbnail, alt: props.title }),
    wp.element.createElement(
      'div',
      { className: 'title' },
      props.title
    ),
    wp.element.createElement(
      'div',
      { className: 'description' },
      props.description
    ),
    wp.element.createElement(
      'a',
      { className: 'btn', target: '_blank', href: props.url },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement('path', { d: 'M11.1874 16.5C6.41781 16.5 4.08141 11.4884 3.98461 11.2728C3.94757 11.1866 3.92847 11.0938 3.92847 11C3.92847 10.9062 3.94757 10.8134 3.98461 10.7272C4.08141 10.5116 6.41781 5.5 11.1874 5.5C15.957 5.5 18.2934 10.5116 18.3902 10.7272C18.4273 10.8134 18.4464 10.9062 18.4464 11C18.4464 11.0938 18.4273 11.1866 18.3902 11.2728C18.2934 11.4884 15.957 16.5 11.1874 16.5ZM5.32661 11C5.85461 11.968 7.84781 15.18 11.1874 15.18C14.527 15.18 16.5202 11.968 17.0482 11C16.5202 10.032 14.527 6.82 11.1874 6.82C7.84781 6.82 5.85461 10.032 5.32661 11Z' }),
        wp.element.createElement('path', { d: 'M11.1875 14.3C10.5348 14.3 9.89675 14.1064 9.35407 13.7438C8.81139 13.3812 8.38842 12.8658 8.13865 12.2628C7.88888 11.6598 7.82353 10.9963 7.95086 10.3562C8.07819 9.71602 8.39249 9.12801 8.854 8.6665C9.31551 8.20499 9.90352 7.89069 10.5437 7.76336C11.1838 7.63603 11.8473 7.70138 12.4503 7.95115C13.0533 8.20092 13.5687 8.62389 13.9313 9.16657C14.2939 9.70925 14.4875 10.3473 14.4875 11C14.4875 11.8752 14.1398 12.7145 13.5209 13.3334C12.902 13.9523 12.0627 14.3 11.1875 14.3ZM11.1875 9.01995C10.7958 9.01995 10.413 9.13608 10.0874 9.35364C9.76181 9.57121 9.50803 9.88044 9.35817 10.2422C9.20831 10.604 9.1691 11.0021 9.2455 11.3862C9.3219 11.7703 9.51047 12.1231 9.78738 12.4C10.0643 12.6769 10.4171 12.8655 10.8012 12.9419C11.1853 13.0183 11.5834 12.9791 11.9452 12.8292C12.307 12.6794 12.6162 12.4256 12.8338 12.1C13.0513 11.7744 13.1675 11.3916 13.1675 11C13.1663 10.4752 12.9573 9.97224 12.5862 9.60117C12.2152 9.23009 11.7122 9.02112 11.1875 9.01995Z' })
      ),
      'View Product'
    )
  );
};
exports.default = ProductCard;

/***/ }),
/* 462 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Addoncard = __webpack_require__(463);

var _Addoncard2 = _interopRequireDefault(_Addoncard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Addons = function Addons(props) {

    var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

    var handleStartUp = function handleStartUp(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { startUp: val }));
    };
    var handleMaintenance = function handleMaintenance(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { maintenance: val }));
    };
    var handleUtility = function handleUtility(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { utility: val }));
    };
    var handleVisual = function handleVisual(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { visual: val }));
    };
    var handleInterface = function handleInterface(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { interface: val }));
    };
    var handleMedia = function handleMedia(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { media: val }));
    };
    var handleLearning = function handleLearning(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { learning: val }));
    };
    var handleSupport = function handleSupport(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { support: val }));
    };
    var handleFonts = function handleFonts(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { fonts: val }));
    };
    var handleStyles = function handleStyles(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { styles: val }));
    };
    var handleCode = function handleCode(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { code: val }));
    };
    var handleFrontend = function handleFrontend(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { frontend: val }));
    };
    var handleAccessibility = function handleAccessibility(val) {
        props.setUpdatedAddons(Object.assign({}, props.updatedAddons, { accessibility: val }));
    };

    var saveData = function saveData() {
        document.getElementById("pac_da_loading_spinner").style.display = 'block';
        props.setEnableAddons(props.updatedAddons);
        _axios2.default.post(updateData, {
            card: 'Addons',
            value: JSON.stringify(props.updatedAddons)
        }).then(function (response) {
            document.getElementById("pac_da_loading_spinner").classList.add("saved");
            setTimeout(function () {
                document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                document.getElementById("pac_da_loading_spinner").style.display = 'none';
            }, 1000);
        });
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_addons' },
        wp.element.createElement(
            'div',
            { className: 'save', onClick: saveData },
            wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
                )
            ),
            wp.element.createElement(
                'span',
                null,
                'Save Changes'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'inner' },
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.startUp, setBtn: handleStartUp, title: 'Startup Helper', description: 'The Divi Startup Helper features in Divi Assistant allow admins to quickly set up a new Divi website by automating repetitive tasks with one-click actions, generating a child theme, installing plugins from a saved list, and importing Divi Assistant settings.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.utility, setBtn: handleUtility, title: 'Utility Helper', description: 'The Divi Utility Helper features in Divi Assistant provide a huge list of helpful settings and tools that everyone needs to make their life easier when working with Divi and WordPress like clearing cache, convenient quick links, and so much more!' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.visual, setBtn: handleVisual, title: 'Visual Builder Helper', description: 'The Divi Visual Builder Helper features in Divi Assistant provide settings to adjust or fix quirks in the user interface (UI), add helpful hacks, improve existing features, add new features, and hide unwanted features!' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.styles, setBtn: handleStyles, title: 'Styles Helper', description: 'The Divi Styles Helper features in Divi Assistant enable you to style all the text and fonts globally throughout your website using settings for adjusting the H1-H6 heading text, paragraph text, link text, bullet list text, and number list text.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.fonts, setBtn: handleFonts, title: 'Fonts Helper', description: 'The Divi Fonts Helper features in Divi Assistant add support for uploading additional font formats and font weights to use in the Divi Builder, and also allow you to upload and manage your own local fonts for GDPR compliance.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.media, setBtn: handleMedia, title: 'Media Helper', description: 'The Divi Media Helper features in Divi Assistant provide settings to allow admins to upload SVGs, configure their preferences for image sizes, and automatically add or override the alt text in Divi modules from the WordPress Media Library.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.code, setBtn: handleCode, title: 'Code Helper', description: 'The Divi Code Helper features in Divi Assistant add code editing improvements and provides a convenient new way to view and edit any custom CSS, jQuery, JavaScript, or PHP code directly in a code editor window inside the Divi Visual Builder!' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.frontend, setBtn: handleFrontend, title: 'Frontend Helper', description: 'The Divi Frontend Helper features in Divi Assistant give you various options to affect the frontend experience on your site, such as styling the scrollbars, back to top button, text selection colors, fixes, and a tool to easily replace any text.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.accessibility, setBtn: handleAccessibility, title: 'Accessibility Helper', description: 'The Divi Accessibility Helper features in Divi Assistant provide critical improvements to the Divi code structure to ensure compliance with web accessibility guidelines and ensure visitors with disabilities have a good experience accessing and using your site.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.learning, setBtn: handleLearning, title: 'Learning Helper', description: 'The Divi Learning Helper features in Divi Assistant provide a glossary of terms to help you get familiar with Divi and WordPress terminology, links to our popular tutorials on our website, and links to the WordPress and Divi courses we offer.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.maintenance, setBtn: handleMaintenance, title: 'Maintenance Helper', description: 'The Divi Maintenance Helper features in Divi Assistant allow you to set a page or Divi Library layout as the coming soon mode screen or maintenance mode screen, view a simplified Divi Theme changelog, and install any version of Divi.' }),
            wp.element.createElement(_Addoncard2.default, { btn: props.updatedAddons.support, setBtn: handleSupport, title: 'Support Helper', description: 'The Divi Support Helper features in Divi Assistant enable you to get support faster and solve common problems by sharing a convenient system report of the most important website and server information with technical support agents or community members.' })
        ),
        wp.element.createElement(
            'div',
            { className: 'save bottom', onClick: saveData },
            wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
                )
            ),
            wp.element.createElement(
                'span',
                null,
                'Save Changes'
            )
        )
    );
};
exports.default = Addons;

/***/ }),
/* 463 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Addoncard = function Addoncard(props) {

    return wp.element.createElement(
        'div',
        { className: 'pac_da_addon_card' },
        wp.element.createElement(
            'div',
            { className: 'logo' },
            props.title == 'Startup Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M15.1985 22C15.1091 22 15.0149 21.9812 14.9255 21.9435C14.5679 21.7929 14.3985 21.3788 14.5491 21.0212L17.4667 14.0424H6.70905C6.41729 14.0424 6.15847 13.8635 6.05023 13.5953C5.94199 13.3271 6.01258 13.0165 6.22435 12.8188L9.72552 9.55294L7.79141 7.14824C7.62199 6.93647 7.58905 6.64471 7.7067 6.4C7.82435 6.15529 8.07376 6 8.34199 6H21.2973C21.5326 6 21.7538 6.11765 21.8855 6.31529C22.0173 6.51294 22.0408 6.76235 21.9467 6.97882L15.8479 21.5671C15.7349 21.84 15.4714 22 15.1985 22ZM8.50199 12.6306H18.0549L20.2385 7.41176H9.81494L11.2408 9.18118C11.4714 9.46824 11.4432 9.88706 11.1702 10.1412L8.50199 12.6306Z' })
            ) : props.title == 'Maintenance Helper' ? wp.element.createElement(
                'svg',
                { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M9.41976 22.0798C9.84099 22.2096 10.279 22.2769 10.7197 22.2797C11.6892 22.2812 12.6335 21.9709 13.4132 21.3947C14.1928 20.8185 14.7666 20.007 15.0497 19.0798C15.261 18.3793 15.2988 17.6379 15.1598 16.9196L17.2497 14.8298C17.9601 15.1258 18.7408 15.2105 19.4982 15.0739C20.2556 14.9373 20.9575 14.5853 21.5197 14.0597C22.0917 13.4166 22.4916 12.6393 22.6822 11.8C22.8727 10.9607 22.8478 10.0868 22.6097 9.25969C22.5792 9.13727 22.5184 9.02446 22.4327 8.93181C22.347 8.83917 22.2394 8.76966 22.1197 8.72966C21.9989 8.6939 21.8712 8.68795 21.7475 8.71233C21.6239 8.73671 21.508 8.79084 21.4098 8.8698L19.8097 10.2096L18.6097 9.9096L18.3097 8.70965L19.6497 7.10979C19.7294 7.01193 19.783 6.89552 19.8057 6.77141C19.8285 6.64731 19.8195 6.51931 19.7797 6.39959C19.7423 6.2802 19.6748 6.1724 19.5838 6.0866C19.4927 6.00079 19.3811 5.93986 19.2597 5.9096C18.433 5.6677 17.5583 5.64097 16.7183 5.83172C15.8783 6.02246 15.1009 6.42446 14.4597 6.99968C13.9342 7.56192 13.582 8.26379 13.4455 9.02117C13.3089 9.77855 13.3937 10.5593 13.6897 11.2697L11.5998 13.3598C10.578 13.1512 9.51536 13.3105 8.59975 13.8097C8.07775 14.0859 7.61605 14.4633 7.24172 14.9201C6.8674 15.3768 6.58798 15.9036 6.41976 16.4697C6.24674 17.035 6.18681 17.6289 6.24343 18.2175C6.30005 18.806 6.47208 19.3776 6.74972 19.8996C7.02922 20.4209 7.40901 20.8819 7.86721 21.256C8.32542 21.6301 8.85305 21.9102 9.41976 22.0798ZM8.93533 15.3666C9.45197 14.985 10.0774 14.7793 10.7197 14.7797C11.0139 14.7795 11.3066 14.8198 11.5897 14.8996C11.7192 14.9414 11.8577 14.947 11.99 14.9152C12.1223 14.8835 12.2434 14.8157 12.3397 14.7197L15.0797 11.9797C15.1871 11.8715 15.2591 11.7333 15.2859 11.5832C15.3126 11.4331 15.2931 11.2782 15.2298 11.1396C14.9635 10.6575 14.847 10.1071 14.895 9.55852C14.9431 9.00991 15.1536 8.48813 15.4997 8.05974C16.069 7.53923 16.8085 7.24405 17.5797 7.22966L16.8997 8.04973C16.8218 8.13857 16.7672 8.24552 16.7411 8.36077C16.7149 8.47602 16.7178 8.59584 16.7497 8.70965L17.2497 10.7096C17.2789 10.8418 17.3453 10.9629 17.4409 11.0585C17.5366 11.1542 17.6577 11.2205 17.7898 11.2497L19.7898 11.7497C19.9036 11.7816 20.0235 11.7847 20.1388 11.7585C20.254 11.7323 20.3609 11.6777 20.4497 11.5998L21.2697 10.9196C21.2491 11.6896 20.9548 12.427 20.4397 12.9997C20.0101 13.3433 19.4886 13.5522 18.9406 13.6003C18.3926 13.6483 17.8425 13.5334 17.3597 13.2697C17.221 13.2064 17.0664 13.1868 16.9163 13.2136C16.7663 13.2403 16.6279 13.3122 16.5197 13.4196L13.7797 16.1596C13.6847 16.2546 13.6169 16.3734 13.5835 16.5036C13.55 16.6338 13.5522 16.7705 13.5897 16.8996C13.7699 17.469 13.7699 18.0802 13.5897 18.6496C13.3588 19.4106 12.8351 20.049 12.1338 20.424C11.4324 20.799 10.6109 20.88 9.84975 20.6496C9.08961 20.4167 8.45297 19.8916 8.07974 19.1896C7.89254 18.8419 7.77588 18.4605 7.73641 18.0676C7.69694 17.6746 7.73546 17.2776 7.84975 16.8996C8.03816 16.2855 8.41869 15.7483 8.93533 15.3666ZM10.8604 19.7802C10.9267 19.7899 10.9941 19.7899 11.0604 19.7802C11.2547 19.786 11.444 19.7182 11.5904 19.5902L12.5004 18.6701C12.5937 18.578 12.6613 18.4631 12.6964 18.3368C12.7315 18.2105 12.7329 18.0771 12.7004 17.9501L12.3604 16.7001C12.3263 16.573 12.2594 16.4572 12.1663 16.3641C12.0733 16.2711 11.9575 16.2041 11.8304 16.1701L10.5804 15.8302C10.4534 15.7967 10.3198 15.7975 10.1933 15.8327C10.0668 15.8678 9.95183 15.9359 9.86035 16.0302L8.94037 16.9401C8.84789 17.0326 8.78161 17.1481 8.74823 17.2745C8.71486 17.401 8.71558 17.5339 8.75037 17.66L9.08039 18.91C9.11448 19.0371 9.18139 19.153 9.27442 19.246C9.36744 19.339 9.48329 19.406 9.61035 19.4401L10.8604 19.7802ZM10.8304 18.1901L10.4204 18.0802L10.3104 17.66L10.6104 17.3602L11.0304 17.4701L11.1404 17.89L10.8304 18.1901Z' })
            ) : props.title == 'Utility Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M18.1018 13.7382C20.2109 13.7382 21.9273 12.0364 21.9467 9.93212C22.0097 9.24848 21.8545 8.72 21.6945 8.28848C21.6073 8.06061 21.4085 7.88606 21.1661 7.83273C20.9236 7.77939 20.6715 7.85697 20.497 8.03152L18.9358 9.59758L18.4024 9.06424L19.9685 7.50303C20.143 7.32848 20.2158 7.07636 20.1624 6.83394C20.1139 6.59152 19.9394 6.39273 19.7115 6.30545C19.1539 6.09697 18.6594 6 18.1552 6C16.0364 6 14.3103 7.72606 14.3103 9.84485C14.3103 10.0776 14.3345 10.3006 14.3782 10.5139L12.9624 11.9345L8.02182 6.99394C7.73576 6.70788 7.27515 6.70788 6.99394 6.99394C6.70788 7.27515 6.70788 7.73576 6.99394 8.02182L11.9345 12.9624L10.5285 14.3685C10.3055 14.3345 10.0824 14.3103 9.84485 14.3103C7.72606 14.3103 6 16.0364 6 18.1552C6 18.6594 6.09697 19.1539 6.30545 19.7115C6.39273 19.9394 6.59152 20.1139 6.83394 20.1673C7.07152 20.2206 7.32364 20.143 7.49818 19.9685L9.06424 18.4024L9.59273 18.9358L8.03152 20.497C7.85697 20.6715 7.77939 20.9236 7.83273 21.1661C7.88606 21.4085 8.05576 21.6073 8.28848 21.6945C8.84606 21.903 9.34061 22 9.84485 22C11.9636 22 13.6897 20.2739 13.6897 18.1552C13.6897 17.9224 13.6655 17.6994 13.6218 17.4861L14 17.1079L17.6412 20.7491C18.0679 21.1758 18.6303 21.3891 19.1927 21.3891C19.7552 21.3891 20.3176 21.1758 20.7491 20.7491C21.6024 19.8909 21.6024 18.4994 20.7491 17.6412L17.1079 14L17.4327 13.6752C17.6461 13.7188 17.8691 13.7382 18.1018 13.7382ZM19.7164 18.6691C20.0073 18.96 20.0073 19.4303 19.7212 19.7212C19.4303 20.0073 18.96 20.0073 18.6691 19.7212L15.0279 16.08L16.08 15.0327L19.7164 18.6691ZM16.7055 12.3418L15.5612 13.4861L13.4861 15.5661L12.2885 16.7588C12.0848 16.9624 12.0218 17.2727 12.1285 17.5442C12.1964 17.7091 12.2352 17.9273 12.2352 18.1552C12.2352 19.4061 11.2703 20.4339 10.0485 20.5358L11.1345 19.4497C11.4206 19.1636 11.4206 18.703 11.1345 18.4218L9.57818 16.8606C9.43758 16.72 9.24848 16.6473 9.06424 16.6473C8.88 16.6473 8.69091 16.72 8.5503 16.8606L7.46424 17.9515C7.56606 16.7297 8.59394 15.7648 9.84485 15.7648C10.0921 15.7648 10.3685 15.8133 10.6594 15.8618C10.8921 15.9006 11.1248 15.823 11.2945 15.6582L13.4667 13.4861L13.4764 13.4764L13.4861 13.4667L15.7067 11.2412C15.9152 11.0376 15.9782 10.7273 15.8715 10.4558C15.8036 10.2909 15.7648 10.0727 15.7648 9.84485C15.7648 8.59394 16.7297 7.56606 17.9515 7.46424L16.8606 8.5503C16.7248 8.68606 16.6473 8.8703 16.6473 9.06424C16.6473 9.25818 16.7248 9.44242 16.8606 9.57818L18.4218 11.1394C18.6933 11.4109 19.1782 11.4109 19.4497 11.1394L20.4824 10.1018C20.3806 11.3236 19.3527 12.2836 18.1018 12.2836C17.8739 12.2836 17.6558 12.2497 17.4909 12.1818C17.2194 12.0752 16.9091 12.1382 16.7055 12.3418Z' })
            ) : props.title == 'Visual Builder Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M14.2387 21C8.16826 21 5.19466 14.6216 5.07146 14.3472C5.02431 14.2375 5 14.1194 5 14C5 13.8806 5.02431 13.7625 5.07146 13.6528C5.19466 13.3784 8.16826 7 14.2387 7C20.3091 7 23.2827 13.3784 23.4059 13.6528C23.453 13.7625 23.4773 13.8806 23.4773 14C23.4773 14.1194 23.453 14.2375 23.4059 14.3472C23.2827 14.6216 20.3091 21 14.2387 21ZM6.77946 14C7.45146 15.232 9.98826 19.32 14.2387 19.32C18.4891 19.32 21.0259 15.232 21.6979 14C21.0259 12.768 18.4891 8.68 14.2387 8.68C9.98826 8.68 7.45146 12.768 6.77946 14Z' }),
                wp.element.createElement('path', { d: 'M14.2391 18.2001C13.4084 18.2001 12.5964 17.9537 11.9057 17.4922C11.215 17.0307 10.6767 16.3748 10.3588 15.6073C10.0409 14.8399 9.95771 13.9954 10.1198 13.1807C10.2818 12.366 10.6818 11.6176 11.2692 11.0302C11.8566 10.4428 12.605 10.0428 13.4197 9.88075C14.2344 9.71869 15.0789 9.80187 15.8463 10.1198C16.6138 10.4376 17.2697 10.976 17.7312 11.6667C18.1927 12.3573 18.4391 13.1694 18.4391 14.0001C18.4391 15.114 17.9966 16.1822 17.2089 16.9699C16.4213 17.7576 15.353 18.2001 14.2391 18.2001ZM14.2391 11.4801C13.7407 11.4801 13.2534 11.6278 12.839 11.9047C12.4246 12.1816 12.1016 12.5752 11.9109 13.0357C11.7202 13.4962 11.6703 14.0028 11.7675 14.4917C11.8647 14.9805 12.1047 15.4295 12.4572 15.782C12.8096 16.1344 13.2586 16.3744 13.7474 16.4716C14.2363 16.5689 14.743 16.519 15.2034 16.3282C15.6639 16.1375 16.0575 15.8145 16.3344 15.4001C16.6113 14.9857 16.7591 14.4985 16.7591 14.0001C16.7576 13.3322 16.4916 12.692 16.0193 12.2198C15.5471 11.7475 14.907 11.4815 14.2391 11.4801Z' })
            ) : props.title == 'Media Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M9 6.75H19C19.7285 6.75263 20.4265 7.04319 20.9417 7.55835C21.4568 8.0735 21.7474 8.77147 21.75 9.5V18.5C21.75 19.2293 21.4603 19.9287 20.9446 20.4445C20.4289 20.9602 19.7293 21.25 19 21.25H9C8.27065 21.25 7.57121 20.9602 7.05548 20.4445C6.53976 19.9287 6.25 19.2293 6.25 18.5V9.5C6.25 8.77065 6.53976 8.07114 7.05548 7.55542C7.57121 7.03969 8.27065 6.75 9 6.75ZM8.11615 8.61609C7.88173 8.85051 7.75 9.16848 7.75 9.5V16.6899L10.15 14.2999C10.3195 14.1267 10.5217 13.9889 10.7449 13.8945C10.968 13.8001 11.2077 13.751 11.45 13.75H11.54C11.7839 13.7503 12.0254 13.799 12.2502 13.8934C12.4751 13.9879 12.679 14.126 12.85 14.2999L15.25 16.6899L16.15 15.7999C16.3195 15.6267 16.5217 15.4889 16.7449 15.3945C16.968 15.3001 17.2077 15.251 17.45 15.25H17.54C17.7839 15.2503 18.0254 15.299 18.2502 15.3934C18.4751 15.4879 18.679 15.626 18.85 15.7999L20.25 17.1899V9.5C20.25 9.16848 20.1183 8.85051 19.8839 8.61609C19.6495 8.38167 19.3315 8.25 19 8.25H9C8.66848 8.25 8.35057 8.38167 8.11615 8.61609ZM8.21051 19.469C8.4331 19.6514 8.71219 19.7508 9 19.75L16.19 19.72L11.79 15.33C11.7244 15.2619 11.6346 15.2224 11.54 15.22H11.45C11.4045 15.2202 11.3595 15.2301 11.3181 15.249C11.2767 15.268 11.2399 15.2956 11.21 15.33L7.78003 18.75C7.83573 19.0324 7.98792 19.2865 8.21051 19.469ZM18.31 19.75H19C19.2164 19.7524 19.4296 19.6972 19.6176 19.59C19.8056 19.4828 19.9618 19.3275 20.07 19.14L17.79 16.86C17.7244 16.7919 17.6346 16.7524 17.54 16.75H17.45C17.4045 16.7502 17.3595 16.7601 17.3181 16.7791C17.2767 16.798 17.2399 16.8256 17.21 16.86L16.31 17.75L18.31 19.75ZM14.409 13.601C14.831 14.0229 15.4033 14.26 16 14.26C16.5967 14.26 17.169 14.0229 17.591 13.601C18.013 13.179 18.25 12.6067 18.25 12.01C18.25 11.4133 18.013 10.8409 17.591 10.4189C17.169 9.99699 16.5967 9.76001 16 9.76001C15.4033 9.76001 14.831 9.99699 14.409 10.4189C13.987 10.8409 13.75 11.4133 13.75 12.01C13.75 12.6067 13.987 13.179 14.409 13.601ZM15.7114 11.3143C15.803 11.2771 15.9011 11.2587 16 11.26C16.1989 11.26 16.3897 11.339 16.5303 11.4796C16.671 11.6203 16.75 11.8111 16.75 12.01C16.7474 12.2081 16.6676 12.3974 16.5275 12.5375C16.3874 12.6776 16.1981 12.7574 16 12.76C15.8011 12.76 15.6103 12.6809 15.4697 12.5403C15.329 12.3996 15.25 12.2089 15.25 12.01C15.2487 11.9111 15.2672 11.8129 15.3044 11.7213C15.3416 11.6297 15.3968 11.5466 15.4667 11.4767C15.5366 11.4068 15.6198 11.3515 15.7114 11.3143Z' })
            ) : props.title == 'Learning Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M21.3806 12.8098C21.6433 12.6995 21.8668 12.5129 22.0219 12.2739C22.1771 12.035 22.2567 11.7548 22.2506 11.47C22.2601 11.1778 22.1773 10.8901 22.0139 10.6477C21.8506 10.4053 21.615 10.2206 21.3406 10.1199L14.6406 6.94995C14.4371 6.84867 14.2129 6.7959 13.9856 6.7959C13.7583 6.7959 13.5341 6.84867 13.3306 6.94995L6.62058 10.1299C6.35624 10.2408 6.13169 10.4292 5.97641 10.6702C5.82113 10.9111 5.74239 11.1934 5.75058 11.48C5.74319 11.7704 5.82704 12.0558 5.99027 12.2961C6.15349 12.5365 6.38792 12.7196 6.66061 12.8198L9.38059 14.1099L8.76059 18.3699C8.73567 18.5331 8.76527 18.6998 8.84482 18.8445C8.92437 18.9891 9.04944 19.1036 9.20059 19.1699C9.81059 19.4299 12.9006 20.73 14.0006 20.73C15.1006 20.73 18.1906 19.4299 18.8006 19.1699C18.9517 19.1036 19.0768 18.9891 19.1563 18.8445C19.2359 18.6998 19.2655 18.5331 19.2406 18.3699L18.6206 14.1299L19.7506 13.5999V18.98C19.5942 19.0953 19.4673 19.2459 19.3804 19.4197C19.2935 19.5935 19.249 19.7856 19.2506 19.98C19.2506 20.3115 19.3823 20.6293 19.6167 20.8638C19.8512 21.0982 20.1691 21.23 20.5006 21.23C20.8321 21.23 21.1501 21.0982 21.3845 20.8638C21.6189 20.6293 21.7506 20.3115 21.7506 19.98C21.7498 19.7861 21.7043 19.5948 21.6176 19.4214C21.5309 19.2479 21.4053 19.0969 21.2506 18.98V12.8799L21.3806 12.8098ZM14.0006 19.22C12.737 18.9463 11.5066 18.537 10.3306 17.9998L10.8006 14.7698L13.3606 15.9897C13.57 16.0889 13.7989 16.1403 14.0306 16.1399C14.2514 16.1388 14.4695 16.0909 14.6706 15.9998L17.2106 14.7898L17.6706 17.9998C16.4947 18.537 15.2642 18.9463 14.0006 19.22ZM17.5606 12.96L17.3806 13.0498L14.0206 14.6399L7.30057 11.46L13.9806 8.2998L20.7006 11.48L17.5606 12.96Z' })
            ) : props.title == 'Support Helper' ? wp.element.createElement(
                'svg',
                { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M21.5475 10.1048C21.719 9.8799 21.8115 9.60744 21.8115 9.32758C21.8115 9.04772 21.719 8.77526 21.5475 8.55038C21.5114 8.50478 21.4722 8.46151 21.4302 8.42084L20.012 7.04779C19.7866 6.82795 19.487 6.69479 19.1685 6.67288C18.85 6.65098 18.5341 6.74181 18.2791 6.92862C17.1178 6.31912 15.8187 6 14.4989 6C13.179 6 11.8799 6.31912 10.7186 6.92862C10.4876 6.76125 10.2071 6.67084 9.91887 6.67084C9.63068 6.67084 9.35018 6.76125 9.1191 6.92862L8.97515 7.04779L7.56755 8.42084C7.34392 8.64169 7.20955 8.93337 7.18899 9.24256C7.16843 9.55175 7.26306 9.85781 7.45558 10.1048C6.82839 11.2333 6.5 12.4958 6.5 13.7784C6.5 15.061 6.82839 16.3234 7.45558 17.4519C7.28335 17.6765 7.19032 17.9491 7.19032 18.2291C7.19032 18.5092 7.28335 18.7818 7.45558 19.0063C7.48805 19.0517 7.52561 19.0934 7.56755 19.1307L8.98048 20.5193C9.23146 20.7575 9.56806 20.8913 9.91887 20.8923C10.2059 20.899 10.4864 20.8094 10.7133 20.6385C11.8786 21.2415 13.1787 21.5565 14.4989 21.5556C15.8192 21.5552 17.1185 21.2346 18.2791 20.6229C18.461 20.7585 18.676 20.8459 18.903 20.8768H19.0789C19.3711 20.8749 19.6551 20.7824 19.8893 20.6125C19.9372 20.5804 19.9818 20.544 20.0226 20.5037L21.4302 19.1462C21.6563 18.925 21.793 18.6322 21.8155 18.3212C21.838 18.0102 21.7448 17.7017 21.5529 17.4519C22.1756 16.3218 22.5009 15.0596 22.5 13.7777C22.4991 12.4958 22.1719 11.234 21.5475 10.1048ZM20.076 9.31204L20.0013 9.36903L17.9219 10.9234C17.7786 10.7626 17.6255 10.6104 17.4634 10.4675L19.0629 8.45193L19.1162 8.37939L20.076 9.31204ZM17.2394 8.17214L16.0984 9.63846C15.5855 9.45871 15.0442 9.36752 14.4989 9.36903C13.9642 9.36944 13.4337 9.46063 12.9313 9.63846L11.7583 8.17214C12.6143 7.77543 13.5506 7.56956 14.4989 7.56956C15.4472 7.56956 16.3835 7.77543 17.2394 8.17214ZM8.70856 11.1151L10.2335 12.255C9.8498 13.2489 9.8498 14.3441 10.2335 15.3379L8.70322 16.4778C8.29392 15.6395 8.08292 14.7227 8.08569 13.7947C8.08845 12.8668 8.30492 11.9512 8.71922 11.1151H8.70856ZM9.9562 19.1307L9.89222 19.198L8.92716 18.255L8.99647 18.198L11.0759 16.6436C11.2182 16.807 11.3732 16.9595 11.5397 17.0996L9.9562 19.1307ZM11.0759 10.9079L8.99647 9.35349L8.92716 9.29649L9.89222 8.36385L9.9562 8.43639L11.5557 10.4519C11.3824 10.5901 11.2219 10.7426 11.0759 10.9079ZM11.7583 19.3949L12.9313 17.9286C13.4331 18.1077 13.9644 18.1955 14.4989 18.1877C15.044 18.1983 15.5864 18.1104 16.0984 17.9286L17.2661 19.4157C16.405 19.8132 15.4631 20.0177 14.5098 20.0141C13.5565 20.0105 12.6162 19.7989 11.7583 19.3949ZM14.4989 16.6333C13.9911 16.6354 13.492 16.5048 13.054 16.255C12.5912 16.0075 12.2103 15.6374 11.9556 15.1877C11.9388 15.176 11.9258 15.1598 11.9183 15.141C11.6873 14.7238 11.5664 14.2574 11.5664 13.7835C11.5664 13.3097 11.6873 12.8433 11.9183 12.426C11.9268 12.4049 11.9395 12.3855 11.9556 12.369C12.2114 11.9342 12.5807 11.5726 13.0261 11.3207C13.4715 11.0687 13.9774 10.9353 14.4928 10.9338C15.0081 10.9323 15.5148 11.0629 15.9617 11.3123C16.4087 11.5617 16.7801 11.9212 17.0385 12.3545C17.297 12.7879 17.4333 13.2797 17.4339 13.7806C17.4344 14.2814 17.2991 14.7735 17.0416 15.2074C16.7841 15.6412 16.4135 16.0015 15.9671 16.2518C15.5207 16.5021 15.0143 16.6337 14.4989 16.6333ZM19.1002 19.198L19.0469 19.1307L17.4474 17.1151C17.6082 16.9709 17.7613 16.8188 17.9059 16.6592L19.9693 18.1877L20.06 18.255L19.1002 19.198ZM20.2786 16.4519L18.7643 15.3379C19.1413 14.3519 19.1413 13.267 18.7643 12.2809L20.2946 11.1411C20.6935 11.9731 20.8988 12.8803 20.8961 13.7982C20.8933 14.7161 20.6825 15.6222 20.2786 16.4519Z' })
            ) : props.title == 'Fonts Helper' ? wp.element.createElement(
                'svg',
                { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M15.1722 18.2006L14.2054 14.3335C14.2078 14.3175 14.2078 14.3011 14.2054 14.2851L12.2719 6.55089C12.2349 6.39407 12.146 6.25438 12.0196 6.15436C11.8933 6.05435 11.7369 6.00005 11.5758 6H10.609C10.4471 6.00125 10.2901 6.05589 10.1625 6.15554C10.0349 6.2552 9.94374 6.39411 9.90326 6.55089L7.96971 14.2851L7.00293 18.1522C6.95891 18.3393 6.98992 18.5363 7.08931 18.7008C7.18871 18.8652 7.34857 18.9842 7.53464 19.0322C7.62672 19.0552 7.72248 19.0595 7.81629 19.0451C7.9101 19.0308 8.00008 18.9979 8.08105 18.9484C8.16203 18.8989 8.23236 18.8339 8.28793 18.7569C8.34351 18.68 8.38323 18.5928 8.40477 18.5004L9.23618 15.1844H12.9196L13.751 18.5004C13.7915 18.6572 13.8826 18.7961 14.0102 18.8957C14.1379 18.9954 14.2949 19.0503 14.4568 19.0515H14.6308C14.8151 19.0099 14.9754 18.897 15.0769 18.7376C15.1783 18.5782 15.2126 18.3852 15.1722 18.2006ZM9.60356 13.7824L11.0924 7.82711L12.5813 13.7824H9.60356ZM22.6935 22H7.22508C7.03278 22 6.84835 21.9238 6.71237 21.7878C6.57639 21.6518 6.5 21.4672 6.5 21.2749C6.5 21.0826 6.57639 20.8982 6.71237 20.7623C6.84835 20.6263 7.03278 20.5498 7.22508 20.5498H22.6935C22.8851 20.5523 23.068 20.6297 23.2035 20.7651C23.3389 20.9005 23.4161 21.0834 23.4186 21.2749C23.4161 21.4664 23.3389 21.6495 23.2035 21.785C23.068 21.9204 22.8851 21.9975 22.6935 22ZM22.4805 17.4081C22.4704 17.5045 22.4704 17.6017 22.4805 17.6981C22.6354 17.7393 22.772 17.8312 22.8684 17.9592C22.9648 18.0872 23.0154 18.2437 23.0122 18.4039C23.0097 18.5954 22.9325 18.7785 22.7971 18.9139C22.6617 19.0494 22.4787 19.1265 22.2872 19.129C22.0424 19.1151 21.8079 19.0259 21.6158 18.8736C21.4237 18.7213 21.2834 18.5134 21.214 18.2783C20.5675 18.8242 19.7496 19.1252 18.9034 19.129C18.1983 19.129 17.5221 18.8489 17.0235 18.3503C16.5249 17.8517 16.2448 17.1754 16.2448 16.4703C16.2448 15.7652 16.5249 15.0889 17.0235 14.5903C17.5221 14.0917 18.1983 13.8117 18.9034 13.8117H21.0787V13.0866C21.069 12.8449 20.924 11.8781 19.3868 11.8781C19.0333 11.8368 18.6758 11.908 18.3651 12.0816C18.0544 12.2551 17.8064 12.5222 17.6563 12.8449C17.6263 12.9407 17.5767 13.0293 17.5107 13.105C17.4447 13.1807 17.3636 13.2419 17.2728 13.2846C17.1819 13.3273 17.0831 13.3508 16.9827 13.3533C16.8823 13.3558 16.7825 13.3373 16.6895 13.2993C16.5937 13.2693 16.5051 13.2196 16.4294 13.1536C16.3537 13.0876 16.2926 13.0066 16.2499 12.9157C16.2071 12.8248 16.1838 12.726 16.1812 12.6256C16.1787 12.5252 16.197 12.4254 16.2351 12.3325C16.4835 11.7249 16.9171 11.2112 17.4742 10.8641C18.0313 10.517 18.6836 10.3542 19.3385 10.3989C19.7219 10.3534 20.1105 10.3874 20.4803 10.4985C20.85 10.6097 21.1929 10.7955 21.4877 11.0449C21.7824 11.2943 22.0226 11.6017 22.1935 11.948C22.3643 12.2942 22.462 12.6719 22.4805 13.0576V17.4081ZM17.9716 17.3443C18.1982 17.571 18.5056 17.6981 18.8261 17.6981V17.6498C19.2762 17.6137 19.7104 17.4669 20.09 17.2223C20.4695 16.9777 20.7826 16.643 21.0013 16.248V15.2812H18.8261C18.5056 15.2812 18.1982 15.4086 17.9716 15.6352C17.745 15.8619 17.6176 16.1692 17.6176 16.4897C17.6176 16.8102 17.745 17.1177 17.9716 17.3443Z' })
            ) : props.title == 'Styles Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M21.2727 13.3032H12.6618C12.3612 12.4547 11.5515 11.8486 10.6061 11.8486C9.66061 11.8486 8.85091 12.4547 8.5503 13.3032H6.72727C6.32485 13.3032 6 13.628 6 14.0305C6 14.4329 6.32485 14.7577 6.72727 14.7577H8.5503C8.85091 15.6062 9.66061 16.2123 10.6061 16.2123C11.5515 16.2123 12.3612 15.6062 12.6618 14.7577H21.2727C21.6752 14.7577 22 14.4329 22 14.0305C22 13.628 21.6752 13.3032 21.2727 13.3032ZM10.6061 14.7577C10.2036 14.7577 9.87879 14.4329 9.87879 14.0305C9.87879 13.628 10.2036 13.3032 10.6061 13.3032C11.0085 13.3032 11.3333 13.628 11.3333 14.0305C11.3333 14.4329 11.0085 14.7577 10.6061 14.7577Z' }),
                wp.element.createElement('path', { d: 'M21.2727 18.1513H19.4497C19.1491 17.3028 18.3394 16.6968 17.3939 16.6968C16.4485 16.6968 15.6388 17.3028 15.3382 18.1513H6.72727C6.32485 18.1513 6 18.4762 6 18.8786C6 19.281 6.32485 19.6059 6.72727 19.6059H15.3382C15.6388 20.4544 16.4485 21.0604 17.3939 21.0604C18.3394 21.0604 19.1491 20.4544 19.4497 19.6059H21.2727C21.6752 19.6059 22 19.281 22 18.8786C22 18.4762 21.6752 18.1513 21.2727 18.1513ZM17.3939 19.6059C16.9915 19.6059 16.6667 19.281 16.6667 18.8786C16.6667 18.4762 16.9915 18.1513 17.3939 18.1513C17.7964 18.1513 18.1212 18.4762 18.1212 18.8786C18.1212 19.281 17.7964 19.6059 17.3939 19.6059Z' }),
                wp.element.createElement('path', { d: 'M21.2727 8.45455H19.4497C19.1491 7.60606 18.3394 7 17.3939 7C16.4485 7 15.6388 7.60606 15.3382 8.45455H6.72727C6.32485 8.45455 6 8.77939 6 9.18182C6 9.58424 6.32485 9.90909 6.72727 9.90909H15.3382C15.6388 10.7576 16.4485 11.3636 17.3939 11.3636C18.3394 11.3636 19.1491 10.7576 19.4497 9.90909H21.2727C21.6752 9.90909 22 9.58424 22 9.18182C22 8.77939 21.6752 8.45455 21.2727 8.45455ZM17.3939 9.90909C16.9915 9.90909 16.6667 9.58424 16.6667 9.18182C16.6667 8.77939 16.9915 8.45455 17.3939 8.45455C17.7964 8.45455 18.1212 8.77939 18.1212 9.18182C18.1212 9.58424 17.7964 9.90909 17.3939 9.90909Z' })
            ) : props.title == 'Code Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M11.0519 17.4167C10.8749 17.4158 10.703 17.3574 10.5619 17.2505L7.25441 14.7698C7.15292 14.6932 7.0706 14.594 7.01392 14.4801C6.95724 14.3662 6.92773 14.2408 6.92773 14.1136C6.92773 13.9864 6.95724 13.8609 7.01392 13.7471C7.0706 13.6332 7.15292 13.534 7.25441 13.4573L10.5619 10.9811C10.6478 10.9164 10.7456 10.8693 10.8497 10.8424C10.9538 10.8155 11.0621 10.8094 11.1686 10.8244C11.275 10.8395 11.3775 10.8753 11.4701 10.93C11.5627 10.9847 11.6436 11.057 11.7082 11.143C11.8379 11.3175 11.8937 11.5361 11.8634 11.7515C11.8331 11.9669 11.7192 12.1616 11.5463 12.2936L9.11378 14.1136L11.5463 15.938C11.6837 16.0418 11.7851 16.1862 11.8361 16.3507C11.8871 16.5152 11.8851 16.6916 11.8305 16.855C11.7759 17.0184 11.6714 17.1605 11.5317 17.2612C11.392 17.362 11.2242 17.4164 11.0519 17.4167Z' }),
                wp.element.createElement('path', { d: 'M12.705 19.4817C12.631 19.482 12.5573 19.4717 12.4862 19.4511C12.2773 19.3928 12.0999 19.2544 11.9926 19.0659C11.8852 18.8775 11.8567 18.6543 11.9131 18.4449L14.3937 9.35361C14.4224 9.2499 14.4713 9.15287 14.5375 9.06806C14.6038 8.98324 14.6861 8.9123 14.7797 8.85928C14.9688 8.75221 15.1927 8.72465 15.4022 8.78267C15.5059 8.8114 15.6029 8.86027 15.6877 8.92649C15.7725 8.99272 15.8435 9.075 15.8965 9.16864C15.9495 9.26229 15.9836 9.36545 15.9967 9.47226C16.0098 9.57906 16.0018 9.6874 15.9731 9.79111L13.4881 18.878C13.44 19.0496 13.3378 19.201 13.1967 19.3098C13.0556 19.4186 12.8831 19.4789 12.705 19.4817Z' }),
                wp.element.createElement('path', { d: 'M16.8351 17.4167C16.6632 17.4154 16.496 17.3604 16.357 17.2593C16.218 17.1582 16.1142 17.016 16.0601 16.8529C16.006 16.6897 16.0045 16.5137 16.0556 16.3496C16.1067 16.1855 16.2079 16.0415 16.3451 15.9379L18.7732 14.1135L16.3451 12.2935C16.2499 12.2325 16.1684 12.1524 16.1055 12.0584C16.0427 11.9644 15.9999 11.8585 15.9798 11.7472C15.9598 11.636 15.9629 11.5218 15.9889 11.4117C16.015 11.3017 16.0635 11.1983 16.1313 11.1078C16.1991 11.0174 16.2849 10.9419 16.3832 10.886C16.4815 10.8302 16.5903 10.7953 16.7027 10.7834C16.8152 10.7715 16.9289 10.7829 17.0367 10.8169C17.1445 10.8509 17.2442 10.9068 17.3294 10.981L20.6326 13.4573C20.7348 13.5334 20.8179 13.6324 20.8751 13.7463C20.9324 13.8603 20.9622 13.986 20.9622 14.1135C20.9622 14.241 20.9324 14.3668 20.8751 14.4807C20.8179 14.5947 20.7348 14.6936 20.6326 14.7698L17.3294 17.2504C17.1865 17.3569 17.0133 17.4151 16.8351 17.4167Z' })
            ) : props.title == 'Frontend Helper' ? wp.element.createElement(
                'svg',
                { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M9.61604 10.3224C10.0059 10.3224 10.3219 10.0064 10.3219 9.61653C10.3219 9.22668 10.0059 8.91064 9.61604 8.91064C9.22619 8.91064 8.91016 9.22668 8.91016 9.61653C8.91016 10.0064 9.22619 10.3224 9.61604 10.3224Z' }),
                    wp.element.createElement('path', { d: 'M11.4969 10.3224C11.8867 10.3224 12.2028 10.0064 12.2028 9.61653C12.2028 9.22668 11.8867 8.91064 11.4969 8.91064C11.107 8.91064 10.791 9.22668 10.791 9.61653C10.791 10.0064 11.107 10.3224 11.4969 10.3224Z' }),
                    wp.element.createElement('path', { d: 'M13.3797 10.3224C13.7696 10.3224 14.0856 10.0064 14.0856 9.61653C14.0856 9.22668 13.7696 8.91064 13.3797 8.91064C12.9899 8.91064 12.6738 9.22668 12.6738 9.61653C12.6738 10.0064 12.9899 10.3224 13.3797 10.3224Z' }),
                    wp.element.createElement('path', { d: 'M19.5776 7H9.42706C7.81294 7 6.5 8.31294 6.5 9.92706V18.6659C6.5 20.2753 7.81294 21.5882 9.42706 21.5882H19.5776C21.1918 21.5882 22.5 20.2753 22.5 18.6659V9.92706C22.5 8.31294 21.1918 7 19.5776 7ZM7.91176 9.92706C7.91176 9.08941 8.58941 8.41176 9.42706 8.41176H19.5776C20.4106 8.41176 21.0882 9.08941 21.0882 9.92706V10.7929H7.91176V9.92706ZM21.0882 18.6659C21.0882 19.4988 20.4106 20.1765 19.5776 20.1765H9.42706C8.58941 20.1765 7.91176 19.4988 7.91176 18.6659V12.2047H21.0882V18.6659Z' })
                )
            ) : props.title == 'Accessibility Helper' ? wp.element.createElement(
                'svg',
                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M19.5105 10.9795L14.6669 12.914V15.6437L17.1105 21.0207C17.2705 21.3698 17.1105 21.7771 16.7663 21.9371C16.6742 21.9855 16.5772 22.0001 16.4802 22.0001C16.2184 22.0001 15.9615 21.8498 15.8451 21.5928L13.9736 17.4716L12.1021 21.5928C11.9857 21.8449 11.7336 22.0001 11.4669 22.0001C11.3699 22.0001 11.273 21.9807 11.1808 21.9371C10.8318 21.7819 10.6766 21.3698 10.8366 21.0207L13.2802 15.6437V12.914L8.43661 10.9795C8.08267 10.834 7.90327 10.4316 8.04873 10.0777C8.19418 9.72373 8.59661 9.54918 8.95054 9.68979L13.9736 11.7019L18.9966 9.68979C19.3505 9.54918 19.753 9.72373 19.8984 10.0777C20.0439 10.4316 19.8645 10.834 19.5105 10.9795Z' }),
                    wp.element.createElement('path', { d: 'M13.973 10.3248C12.7802 10.3248 11.8105 9.35515 11.8105 8.16242C11.8105 6.9697 12.7802 6 13.973 6C15.1657 6 16.1354 6.9697 16.1354 8.16242C16.1354 9.35515 15.1657 10.3248 13.973 10.3248ZM13.973 7.38667C13.5463 7.38667 13.1972 7.73576 13.1972 8.16242C13.1972 8.58909 13.5463 8.93818 13.973 8.93818C14.3996 8.93818 14.7487 8.58909 14.7487 8.16242C14.7487 7.73576 14.3996 7.38667 13.973 7.38667Z' })
                )
            ) : wp.element.createElement(
                'svg',
                { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#2B87DA', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M21.4011 9.63648C21.1172 9.3526 20.6522 9.3526 20.3635 9.63648L18.0679 11.932L15.655 9.51901L17.926 7.24798C18.2148 6.9641 18.2148 6.49913 17.926 6.21035C17.6372 5.92158 17.1772 5.92648 16.8884 6.21035L14.6174 8.48139L13.7657 7.62975C13.4916 7.35566 13.0071 7.35566 12.7281 7.62975L10.6724 9.68542C8.85167 11.5111 8.69015 14.3743 10.1928 16.381L9.30196 17.2718C8.23007 18.3486 8.23007 20.0274 9.30196 21.0993L9.98719 21.7845C10.134 21.9314 10.32 21.9999 10.506 21.9999C10.692 21.9999 10.8829 21.9314 11.0248 21.7845C11.3136 21.5007 11.3136 21.0357 11.0248 20.7469L10.3396 20.0617C9.84035 19.5625 9.84035 18.8087 10.3396 18.3095L11.2304 17.4236C12.1359 18.1039 13.2175 18.4416 14.2992 18.4416C15.6158 18.4416 16.9275 17.9424 17.926 16.939L19.9817 14.8833C20.1236 14.7463 20.197 14.5603 20.197 14.3645C20.197 14.1688 20.1236 13.9828 19.9817 13.8457L19.1056 12.9696L21.4011 10.6741C21.6899 10.3902 21.6899 9.92525 21.4011 9.63648ZM16.8884 15.9014C15.4641 17.3306 13.1392 17.3306 11.7149 15.9014C10.2857 14.4771 10.2857 12.1522 11.7149 10.723L13.2469 9.19108L18.4252 14.3645L16.8884 15.9014Z' })
                )
            )
        ),
        wp.element.createElement(
            'span',
            null,
            props.title
        ),
        wp.element.createElement(
            'p',
            null,
            props.description
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: props.btn === undefined || props.btn === true ? true : false, setBtnValue: props.setBtn })
    );
};
exports.default = Addoncard;

/***/ }),
/* 464 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _ActionCard = __webpack_require__(465);

var _ActionCard2 = _interopRequireDefault(_ActionCard);

var _InstallPlugins = __webpack_require__(142);

var _InstallPlugins2 = _interopRequireDefault(_InstallPlugins);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Startup = function Startup(props) {
  return wp.element.createElement(
    'div',
    { className: 'pac_da_startup_cards' },
    props.startupCards.import !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, openImportSettingPopup: props.openImportSettingPopup, card: 'import', title: 'Import Divi Assistant Settings From Previous Website', description: 'Want to configure your site quickly? If you exported the Divi Assistant settings from another site in the past, you can import the settings here on this site to get started even faster. All Divi Assistant settings used in the export website will become active here in this website. (You can also import and export the settings from the icon in the top bar at any time.)' }) : '',
    props.startupCards.plugin !== true && (props.startupData.defaultPlugins.Akismet_Anti_Spam === true || props.startupData.defaultPlugins.Hello_Dolly === true) ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, data: props.startupData.defaultPlugins, card: 'plugin', title: 'Remove Default Plugins', description: 'Clicking this startup action will automatically deactivate and delete any of the (often spammy) plugins that are installed by default by your hosting provider.', notice: 'Default Plugins Successfully Removed!' }) : '',
    props.startupCards.theme !== true && Object.keys(props.startupData.allThemes).length > 0 ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, data: props.startupData.allThemes, card: 'theme', title: 'Remove Default Themes', description: 'Clicking this startup action will automatically delete any of the WordPress themes which come installed by default or were previously installed, but will keep the Divi theme or any active Divi child theme.', notice: 'Default Themes Successfully Removed!' }) : '',
    props.startupCards.page !== true && props.startupData.defaultPages.privacy_policy === true | props.startupData.defaultPages.sample_page === true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, data: props.startupData.defaultPages, card: 'page', title: 'Remove Default Pages', description: 'Clicking this startup action will automatically delete any default pages added by WordPress, such as the "Sample Page."', notice: 'Default Pages Successfully Removed!' }) : '',
    props.startupCards.post !== true && props.startupData.defaultPosts.hello_world === true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, data: props.startupData.defaultPosts, card: 'post', title: 'Remove Default Posts', description: 'Clicking this startup action will automatically delete any default posts added by WordPress, such as the "Hello world!" post.', notice: 'Default Posts Successfully Removed!' }) : '',
    props.startupCards.widgets !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'widgets', title: 'Remove Default Widgets', description: 'Clicking this startup action will automatically delete any default widgets added by WordPress.', notice: 'Default Widgets Delete Successfully!' }) : '',
    props.startupCards.homepage !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'homepage', title: 'Create And Assign Home Page', description: 'Clicking this startup action will automatically create a new page called “Home” and automatically set this page as the static homepage in the WordPress>Reading>Settings.', notice: 'Home Page Created And Assigned Successfully!' }) : '',
    props.startupCards.menu !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'menu', title: 'Create Primary Menu', description: 'Clicking this startup action will automatically create a new WordPress navigation menu called “Main Menu” and will also add the new Home page to the menu.', notice: 'Primary Menu Created Successfully!' }) : '',
    props.startupCards.permalink !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'permalink', title: 'Set Permalinks To Post Name', description: 'Clicking this startup action will automatically set the WordPress permalinks to “Post Name” by default.', notice: 'Permalinks Successfully Set To Post Name!' }) : '',
    props.startupCards.disableComments !== true ? wp.element.createElement(_ActionCard2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'disableComments', title: 'Disable Comments', description: 'Clicking this startup action will automatically disable new comments by deselecting the checkbox in  WordPress>Settings>Discussion>Allow people to submit comments on new posts. It will also deselect the checkbox on all existing posts, pages, and media.', notice: 'Comments Disabled Successfully!' }) : '',
    props.startupCards.installPlugins !== true ? wp.element.createElement(_InstallPlugins2.default, { startupCards: props.startupCards, setStartupCards: props.setStartupCards, card: 'installPlugins', showDissmissBtn: true }) : ''
  );
};
exports.default = Startup;

/***/ }),
/* 465 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ActionCard = function ActionCard(props) {
  var _useState = (0, _react.useState)(false),
      _useState2 = _slicedToArray(_useState, 2),
      showSuccessMsg = _useState2[0],
      setShowSuccessMsg = _useState2[1];

  var daPerformStartupAction = pacDaAppLocalizer.apiUrl + '/da/v1/daPerformStartupAction';
  var daUpdateStartupCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateStartupCards';

  var hideCard = function hideCard() {
    props.card === 'import' ? props.setStartupCards(Object.assign({}, props.startupCards, { import: true })) : '';
    props.card === 'plugin' ? props.setStartupCards(Object.assign({}, props.startupCards, { plugin: true })) : '';
    props.card === 'theme' ? props.setStartupCards(Object.assign({}, props.startupCards, { theme: true })) : '';
    props.card === 'page' ? props.setStartupCards(Object.assign({}, props.startupCards, { page: true })) : '';
    props.card === 'post' ? props.setStartupCards(Object.assign({}, props.startupCards, { post: true })) : '';
    props.card === 'widgets' ? props.setStartupCards(Object.assign({}, props.startupCards, { widgets: true })) : '';
    props.card === 'homepage' ? props.setStartupCards(Object.assign({}, props.startupCards, { homepage: true })) : '';
    props.card === 'menu' ? props.setStartupCards(Object.assign({}, props.startupCards, { menu: true })) : '';
    props.card === 'permalink' ? props.setStartupCards(Object.assign({}, props.startupCards, { permalink: true })) : '';
    props.card === 'disableComments' ? props.setStartupCards(Object.assign({}, props.startupCards, { disableComments: true })) : '';
    _axios2.default.post(daUpdateStartupCards, {
      card: props.card
    });
  };

  var runAction = function runAction(e) {
    var id = void 0;
    if (props.card === 'plugin' | props.card === 'theme' | props.card === 'post' | props.card === 'page') {
      var checkboxes = void 0;
      var data = {};
      if (e.target.id !== props.card) {
        checkboxes = e.target.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
        id = e.target.parentElement.id;
      } else {
        checkboxes = e.target.previousElementSibling.querySelectorAll('input[type="checkbox"]');
        id = e.target.id;
      }
      checkboxes.forEach(function (checkbox) {
        var name = checkbox.getAttribute('name');
        var value = checkbox.checked;
        data[name] = value;
      });
      document.getElementById("pac_da_loading_spinner").style.display = 'block';
      _axios2.default.post(daPerformStartupAction, {
        action: id,
        data: JSON.stringify(data)
      }).then(function (res) {
        console.log(res.data);
        if (res.data) {
          setShowSuccessMsg(true);
          document.getElementById("pac_da_loading_spinner").style.display = 'none';
          setTimeout(function () {
            hideCard();
            setShowSuccessMsg(false);
          }, 3000);
        }
      });
    } else {
      if (e.target.id !== props.card) {
        id = e.target.parentElement.id;
      } else {
        id = e.target.id;
      }
      document.getElementById("pac_da_loading_spinner").style.display = 'block';
      _axios2.default.post(daPerformStartupAction, {
        action: id
      }).then(function (res) {
        if (res.data) {
          setShowSuccessMsg(true);
          document.getElementById("pac_da_loading_spinner").style.display = 'none';
          setTimeout(function () {
            hideCard();
            setShowSuccessMsg(false);
          }, 3000);
        }
      });
    }
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_action_card' },
    wp.element.createElement(
      'svg',
      { width: '28', height: '28', viewBox: '0 0 28 28', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
      wp.element.createElement('circle', { cx: '14', cy: '14', r: '14', fill: '#2B87DA' }),
      wp.element.createElement('path', { d: 'M13.65 22.25C13.2787 22.25 12.9226 22.1025 12.6601 21.84C12.3975 21.5774 12.25 21.2213 12.25 20.85V15.75H9.65002C9.27872 15.75 8.92265 15.6025 8.6601 15.34C8.39754 15.0774 8.25 14.7213 8.25 14.35V14.2001C8.25092 13.9266 8.33083 13.6592 8.48004 13.4301L13.18 6.43005C13.3082 6.23697 13.4821 6.07839 13.6862 5.96851C13.8902 5.85862 14.1183 5.80081 14.35 5.80005C14.7213 5.80005 15.0774 5.94753 15.34 6.21008C15.6025 6.47263 15.75 6.82877 15.75 7.20007V12.3H18.35C18.7213 12.3 19.0774 12.4475 19.34 12.7101C19.6025 12.9726 19.75 13.3288 19.75 13.7001V13.86C19.7503 14.1351 19.6666 14.4038 19.51 14.63L14.81 21.63C14.6835 21.8217 14.5112 21.9789 14.3087 22.0872C14.1061 22.1954 13.8797 22.2514 13.65 22.25ZM9.75 14.25H13C13.1981 14.2526 13.3874 14.3324 13.5275 14.4725C13.6676 14.6126 13.7474 14.8019 13.75 15V20.52L18.25 13.75H15C14.9011 13.7513 14.803 13.7329 14.7114 13.6957C14.6198 13.6585 14.5366 13.6032 14.4667 13.5333C14.3968 13.4634 14.3416 13.3802 14.3044 13.2886C14.2672 13.197 14.2487 13.0989 14.25 13V7.47998L9.75 14.25Z', fill: 'white' })
    ),
    wp.element.createElement(
      'div',
      { className: 'details' },
      wp.element.createElement(
        'span',
        null,
        props.title
      ),
      wp.element.createElement(
        'p',
        null,
        props.description
      ),
      showSuccessMsg === true ? wp.element.createElement(
        'div',
        { className: 'notice' },
        props.notice
      ) : wp.element.createElement(
        _react2.default.Fragment,
        null,
        props.card === 'plugin' | props.card === 'post' | props.card === 'page' ? wp.element.createElement(
          'div',
          { className: 'pac_da_checkboxs' },
          Object.keys(props.data).map(function (key) {
            return props.data[key] === true ? wp.element.createElement(
              'div',
              { key: key, className: 'checkbox' },
              wp.element.createElement('input', { type: 'checkbox', name: key }),
              wp.element.createElement(
                'span',
                null,
                key.replace(/_/g, " ")
              )
            ) : '';
          })
        ) : '',
        props.card === 'theme' ? wp.element.createElement(
          'div',
          { className: 'pac_da_checkboxs' },
          Object.keys(props.data).map(function (key) {
            return wp.element.createElement(
              'div',
              { key: key, className: 'checkbox' },
              wp.element.createElement('input', { type: 'checkbox', name: key }),
              wp.element.createElement(
                'span',
                null,
                props.data[key].replace(/[_-]/g, ' ')
              )
            );
          })
        ) : '',
        props.card === 'import' ? wp.element.createElement(
          'div',
          { id: props.card, className: 'btn', onClick: props.openImportSettingPopup },
          wp.element.createElement(
            'svg',
            { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M13.1894 8.01704C13.2609 7.98736 13.3257 7.9437 13.3801 7.88861C13.4384 7.83354 13.4848 7.76716 13.5165 7.69353C13.5482 7.6199 13.5646 7.54056 13.5646 7.46039C13.5646 7.38022 13.5482 7.3009 13.5165 7.22727C13.4848 7.15364 13.4384 7.08726 13.3801 7.03219L11.4159 5.0679C11.3614 5.01464 11.2974 4.972 11.2273 4.94218H11.1487C11.0992 4.93464 11.0489 4.93464 10.9994 4.94218C10.921 4.94194 10.8434 4.95799 10.7716 4.98932C10.7014 5.01914 10.6375 5.06178 10.583 5.11504L8.61871 7.07933C8.50836 7.18982 8.44636 7.33959 8.44636 7.49575C8.44636 7.65192 8.50836 7.80169 8.61871 7.91218C8.67289 7.96778 8.73763 8.01197 8.80915 8.04214C8.88067 8.07231 8.95749 8.08785 9.03512 8.08785C9.11274 8.08785 9.18957 8.07231 9.26109 8.04214C9.33261 8.01197 9.3974 7.96778 9.45157 7.91218L10.4101 6.95361V11.8172C10.4101 11.9735 10.4722 12.1234 10.5827 12.2339C10.6932 12.3444 10.8431 12.4065 10.9994 12.4065C11.1557 12.4065 11.3056 12.3444 11.4161 12.2339C11.5266 12.1234 11.5887 11.9735 11.5887 11.8172V6.93004L12.5473 7.88861C12.6017 7.9437 12.6665 7.98736 12.7381 8.01704C12.8096 8.04672 12.8863 8.06184 12.9637 8.06147C13.0411 8.06184 13.1179 8.04672 13.1894 8.01704ZM7.46345 15.518H14.5349C15.1079 15.518 15.6575 15.2903 16.0628 14.8851C16.468 14.4799 16.6956 13.9303 16.6956 13.3572V10.2144C16.6936 10.0587 16.6308 9.91003 16.5207 9.79995C16.4107 9.68988 16.262 9.62714 16.1063 9.6251C15.95 9.6251 15.8001 9.68719 15.6896 9.7977C15.5791 9.90821 15.517 10.0581 15.517 10.2144V13.3572C15.517 13.6177 15.4136 13.8675 15.2294 14.0517C15.0452 14.2359 14.7954 14.3394 14.5349 14.3394H7.46345C7.20297 14.3394 6.95318 14.2359 6.76899 14.0517C6.58481 13.8675 6.48131 13.6177 6.48131 13.3572V10.2144C6.47927 10.0587 6.41653 9.91003 6.30646 9.79995C6.19638 9.68988 6.04768 9.62714 5.89202 9.6251C5.73573 9.6251 5.58584 9.68719 5.47533 9.7977C5.36482 9.90821 5.30273 10.0581 5.30273 10.2144V13.3572C5.30273 13.9303 5.5304 14.4799 5.93561 14.8851C6.34082 15.2903 6.89039 15.518 7.46345 15.518Z' })
          ),
          wp.element.createElement(
            'span',
            null,
            'Import Settings'
          )
        ) : wp.element.createElement(
          'div',
          { id: props.card, className: 'btn', onClick: showSuccessMsg === false ? runAction : '' },
          wp.element.createElement(
            'svg',
            { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M17.089 9.03582V5.50011C17.089 5.34382 17.0269 5.19393 16.9164 5.08341C16.8059 4.9729 16.656 4.91082 16.4997 4.91082H12.964C12.8863 4.90976 12.8092 4.92426 12.7373 4.9535C12.6653 4.98274 12.5999 5.02613 12.545 5.08107C12.49 5.136 12.4467 5.20135 12.4174 5.27332C12.3882 5.34529 12.3737 5.42243 12.3747 5.50011C12.3747 5.65639 12.4368 5.80629 12.5473 5.9168C12.6578 6.02731 12.8077 6.08939 12.964 6.08939H15.0776L9.7976 11.3694C9.74201 11.4235 9.69781 11.4883 9.66764 11.5598C9.63747 11.6313 9.62194 11.7082 9.62194 11.7858C9.62194 11.8634 9.63747 11.9403 9.66764 12.0118C9.69781 12.0833 9.74201 12.1481 9.7976 12.2022C9.90895 12.3113 10.0581 12.3733 10.214 12.3751C10.3696 12.3717 10.5182 12.31 10.6305 12.2022L15.9104 6.92225V9.03582C15.9104 9.19211 15.9725 9.342 16.083 9.45251C16.1935 9.56302 16.3434 9.62511 16.4997 9.62511C16.6554 9.62307 16.8041 9.56033 16.9142 9.45026C17.0242 9.34018 17.087 9.19148 17.089 9.03582ZM7.07143 17.0893H13.75C14.3224 17.0873 14.8708 16.8589 15.2756 16.4542C15.6804 16.0494 15.9087 15.501 15.9107 14.9286V11.3929C15.9107 11.2366 15.8486 11.0867 15.7381 10.9762C15.6276 10.8657 15.4777 10.8036 15.3214 10.8036C15.2438 10.8026 15.1667 10.8171 15.0947 10.8463C15.0227 10.8755 14.9573 10.9189 14.9024 10.9739C14.8475 11.0288 14.8041 11.0942 14.7749 11.1661C14.7456 11.2381 14.7311 11.3152 14.7321 11.3929V14.9286C14.7301 15.1885 14.6259 15.4371 14.4422 15.6208C14.2585 15.8046 14.0099 15.9087 13.75 15.9108H7.07143C6.81159 15.9087 6.56298 15.8046 6.37924 15.6208C6.19549 15.4371 6.09135 15.1885 6.08929 14.9286V8.25005C6.08929 7.98957 6.19279 7.73974 6.37698 7.55555C6.56117 7.37136 6.81095 7.26791 7.07143 7.26791H10.6071C10.7628 7.26587 10.9115 7.20314 11.0216 7.09306C11.1317 6.98299 11.1944 6.83428 11.1964 6.67862C11.1964 6.52234 11.1344 6.37245 11.0238 6.26193C10.9133 6.15142 10.7634 6.08934 10.6071 6.08934H7.07143C6.49838 6.08934 5.94881 6.31696 5.5436 6.72217C5.13839 7.12738 4.91072 7.677 4.91072 8.25005V14.9286C4.91072 15.5017 5.13839 16.0512 5.5436 16.4565C5.94881 16.8617 6.49838 17.0893 7.07143 17.0893Z' })
          ),
          wp.element.createElement(
            'span',
            null,
            'Run Action'
          )
        )
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'dismiss', onClick: hideCard },
      wp.element.createElement(
        'span',
        { className: 'text' },
        'Dismiss'
      ),
      wp.element.createElement(
        'svg',
        { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement('path', { d: 'M20.0298 18.97C20.1702 19.1107 20.2491 19.3012 20.2491 19.5C20.2491 19.6988 20.1702 19.8894 20.0298 20.03C19.9605 20.1001 19.878 20.1557 19.787 20.1935C19.696 20.2313 19.5983 20.2505 19.4998 20.25C19.4012 20.2505 19.3036 20.2313 19.2126 20.1935C19.1216 20.1557 19.039 20.1001 18.9698 20.03L13.9698 15.03L8.96979 20.03C8.90054 20.1001 8.818 20.1557 8.72699 20.1935C8.63598 20.2313 8.5383 20.2505 8.43976 20.25C8.34122 20.2505 8.2436 20.2313 8.15259 20.1935C8.06158 20.1557 7.97903 20.1001 7.90979 20.03C7.76934 19.8894 7.69043 19.6988 7.69043 19.5C7.69043 19.3012 7.76934 19.1107 7.90979 18.97L12.9098 13.97L7.90979 8.97003C7.76934 8.82941 7.69043 8.63875 7.69043 8.44C7.69043 8.24125 7.76934 8.05066 7.90979 7.91003C8.05042 7.76958 8.24101 7.69067 8.43976 7.69067C8.63851 7.69067 8.82916 7.76958 8.96979 7.91003L13.9698 12.91L18.9698 7.91003C19.1104 7.76958 19.301 7.69067 19.4998 7.69067C19.6985 7.69067 19.8892 7.76958 20.0298 7.91003C20.1702 8.05066 20.2491 8.24125 20.2491 8.44C20.2491 8.63875 20.1702 8.82941 20.0298 8.97003L15.0298 13.97L20.0298 18.97Z' })
      )
    )
  );
};
exports.default = ActionCard;

/***/ }),
/* 466 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ExportPlugins = function ExportPlugins(props) {

    var exportPluginList = function exportPluginList(e) {
        var pluginArray = {};
        var checkboxes = void 0;
        if (e.target.id !== 'export') {
            checkboxes = e.target.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
        } else {
            checkboxes = e.target.previousElementSibling.querySelectorAll('input[type="checkbox"]');
        }
        checkboxes.forEach(function (checkbox) {
            if (checkbox.checked) {
                var pluginDetails = {};
                pluginDetails['Title'] = checkbox.previousElementSibling.textContent;
                pluginDetails['icon'] = checkbox.previousElementSibling.previousElementSibling.src;
                pluginArray[checkbox.getAttribute('name')] = pluginDetails;
            }
        });
        if (Object.keys(pluginArray).length > 0) {
            var json = JSON.stringify(pluginArray);
            var blob = new Blob([json], { type: 'application/json' });
            var href = URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = href;
            link.download = 'Divi Assistant Plugin List Export.json';
            link.click();
        } else {
            alert('Warning: Select at least one plugin');
        }
    };

    var checkAllCheckbox = function checkAllCheckbox(e) {
        var checkboxes = e.target.parentElement.parentElement.querySelectorAll('input[type="checkbox"]');
        var allChecked = true;

        checkboxes.forEach(function (checkbox) {
            if (!checkbox.checked) {
                allChecked = false;
                return;
            }
        });
        if (allChecked === true) {
            var allCheckbox = e.target.parentElement.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            allCheckbox.forEach(function (checkbox) {
                checkbox.checked = true;
            });
        } else {
            var _allCheckbox = e.target.parentElement.parentElement.previousElementSibling.querySelectorAll('input[type="checkbox"]');
            _allCheckbox.forEach(function (checkbox) {
                if (checkbox.checked === true) {
                    checkbox.checked = false;
                }
            });
        }
    };

    var selectAllPlugin = function selectAllPlugin(e) {
        var checkboxes = e.target.parentElement.nextElementSibling.querySelectorAll('input[type="checkbox"]');
        if (e.target.checked === false) {
            checkboxes.forEach(function (checkbox) {
                checkbox.checked = false;
            });
        } else {
            var allChecked = true;
            checkboxes.forEach(function (checkbox) {
                if (!checkbox.checked) {
                    allChecked = false;
                    return;
                }
            });
            checkboxes.forEach(function (checkbox) {
                checkbox.checked = !allChecked;
            });
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_action_card' },
        wp.element.createElement(
            'div',
            { className: 'details fw' },
            wp.element.createElement(
                'span',
                null,
                'Export List Of Currently Installed Plugins On This website'
            ),
            wp.element.createElement(
                'p',
                null,
                'This is a list of all the plugins from the WordPress plugin repository currently installed on this website. With this tool you can select any of the plugins below and export the list as a saved template. You can use then import this list and install these plugins on another website in the future. Note that this does not include any premium plugins that are not available in the WordPress repository.'
            ),
            props.allPlugins === null | props.allPlugins === undefined | (props.allPlugins !== null && props.allPlugins !== undefined && Object.keys(props.allPlugins).length > 0) ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_select_all_checkbox' },
                    wp.element.createElement('input', { type: 'checkbox', name: 'selectAll', onClick: selectAllPlugin }),
                    wp.element.createElement(
                        'span',
                        null,
                        'Select/Deselect All'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_checkboxs', key: 'plugins_to_export' },
                    props.getPluginD === false && props.allPlugins !== null && props.allPlugins !== undefined ? Object.keys(props.allPlugins).map(function (key) {
                        return wp.element.createElement(
                            'div',
                            { key: key, className: 'checkbox rightSide' },
                            wp.element.createElement('img', { className: 'img', src: props.allPlugins[key].icon, alt: "Plugin Image" }),
                            wp.element.createElement(
                                'span',
                                null,
                                props.allPlugins[key].Title
                            ),
                            wp.element.createElement('input', { type: 'checkbox', name: key, onClick: checkAllCheckbox })
                        );
                    }) : wp.element.createElement(
                        'div',
                        { className: 'pac_da_Spinner' },
                        wp.element.createElement('img', { src: props.loadingSpinner })
                    )
                ),
                wp.element.createElement(
                    'div',
                    { id: 'export', className: 'btn', onClick: exportPluginList },
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M15.2015 17.1114H6.79835C6.11775 17.1103 5.46538 16.8516 4.98412 16.3921C4.50286 15.9327 4.23195 15.3098 4.23071 14.66V11.0943C4.23071 10.917 4.30449 10.747 4.43582 10.6216C4.56714 10.4962 4.74526 10.4258 4.93098 10.4258C5.1167 10.4258 5.29482 10.4962 5.42614 10.6216C5.55747 10.747 5.63124 10.917 5.63124 11.0943V14.66C5.63124 14.8064 5.66143 14.9513 5.72008 15.0864C5.77874 15.2216 5.86471 15.3445 5.97308 15.4479C6.08146 15.5514 6.21012 15.6335 6.35172 15.6895C6.49332 15.7455 6.64509 15.7743 6.79835 15.7743H15.2015C15.3548 15.7743 15.5066 15.7455 15.6482 15.6895C15.7898 15.6335 15.9184 15.5514 16.0268 15.4479C16.1352 15.3445 16.2211 15.2216 16.2798 15.0864C16.3385 14.9513 16.3686 14.8064 16.3686 14.66V11.0943C16.3686 10.917 16.4424 10.747 16.5737 10.6216C16.7051 10.4962 16.8832 10.4258 17.0689 10.4258C17.2546 10.4258 17.4327 10.4962 17.5641 10.6216C17.6954 10.747 17.7692 10.917 17.7692 11.0943V14.66C17.7679 15.3098 17.497 15.9327 17.0158 16.3921C16.5345 16.8516 15.8821 17.1103 15.2015 17.1114Z' }),
                        wp.element.createElement('path', { d: 'M13.8293 11.121L11.4951 13.3495C11.4324 13.4124 11.3559 13.4611 11.271 13.4922C11.2415 13.5058 11.21 13.5148 11.1776 13.5189C11.1204 13.5368 11.0605 13.5458 11.0002 13.5456C10.8148 13.5445 10.6371 13.4741 10.5054 13.3495L8.17115 11.121C8.04114 10.9951 7.96826 10.8253 7.96826 10.6485C7.96826 10.4717 8.04114 10.302 8.17115 10.1761C8.23585 10.1135 8.3129 10.0639 8.39785 10.03C8.48279 9.99614 8.57394 9.97869 8.666 9.97869C8.75806 9.97869 8.84921 9.99614 8.93416 10.03C9.0191 10.0639 9.09616 10.1135 9.16086 10.1761L10.3 11.2636V5.74571C10.3 5.5684 10.3737 5.39835 10.5051 5.27297C10.6364 5.14759 10.8145 5.07715 11.0002 5.07715C11.1859 5.07715 11.3641 5.14759 11.4954 5.27297C11.6267 5.39835 11.7005 5.5684 11.7005 5.74571V11.2636L12.8396 10.1761C12.9723 10.058 13.1479 9.99369 13.3293 9.99675C13.5107 9.9998 13.6838 10.07 13.8121 10.1925C13.9404 10.315 14.0139 10.4802 14.0171 10.6534C14.0203 10.8266 13.953 10.9942 13.8293 11.121Z' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Export Plugins List'
                    )
                )
            ) : wp.element.createElement(
                'div',
                { className: 'noPlugins' },
                wp.element.createElement(
                    'span',
                    null,
                    'No Plugins Found'
                ),
                wp.element.createElement(
                    'p',
                    null,
                    'Please be sure to have some plugins installed from the WordPress repository first in order to use this feature.'
                )
            )
        )
    );
};
exports.default = ExportPlugins;

/***/ }),
/* 467 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ChildThemeGenerator = function ChildThemeGenerator(props) {

    var daExportChildTheme = pacDaAppLocalizer.apiUrl + '/da/v1/daExportChildTheme';
    var daCreateChildTheme = pacDaAppLocalizer.apiUrl + '/da/v1/daCreateChildTheme';
    var daGetChildThemeImagePath = pacDaAppLocalizer.apiUrl + '/da/v1/daGetChildThemeImagePath';

    var _useState = (0, _react.useState)('Divi Assistant Child Theme'),
        _useState2 = _slicedToArray(_useState, 2),
        name = _useState2[0],
        setName = _useState2[1];

    var _useState3 = (0, _react.useState)('A child theme for Divi created by Divi Assistant.'),
        _useState4 = _slicedToArray(_useState3, 2),
        description = _useState4[0],
        setDescription = _useState4[1];

    var _useState5 = (0, _react.useState)('Pee-Aye Creative'),
        _useState6 = _slicedToArray(_useState5, 2),
        companyName = _useState6[0],
        setCompanyName = _useState6[1];

    var _useState7 = (0, _react.useState)('https://www.peeayecreative.com/'),
        _useState8 = _slicedToArray(_useState7, 2),
        companyWebsite = _useState8[0],
        setCompanyWebsite = _useState8[1];

    var _useState9 = (0, _react.useState)('1.0.0'),
        _useState10 = _slicedToArray(_useState9, 2),
        version = _useState10[0],
        setVersion = _useState10[1];

    var _useState11 = (0, _react.useState)(null),
        _useState12 = _slicedToArray(_useState11, 2),
        image = _useState12[0],
        setImage = _useState12[1];

    var _useState13 = (0, _react.useState)(false),
        _useState14 = _slicedToArray(_useState13, 2),
        themeCreated = _useState14[0],
        setThemeCreated = _useState14[1];

    var createChildTheme = function createChildTheme() {
        var firstDotIndex = version.indexOf(".");
        var secondDotIndex = version.indexOf(".", firstDotIndex + 1);
        if (name.trim() !== '' && description.trim() !== '' && companyName.trim() !== '' && companyWebsite.trim() !== '' && version.trim() !== '' && companyWebsite.includes('https') && firstDotIndex !== -1 && secondDotIndex !== -1) {
            document.getElementById("pac_da_loading_spinner").style.display = 'block';
            setImage(null);
            _axios2.default.post(daCreateChildTheme, {
                Theme_Name: name,
                Theme_Description: description,
                Author: companyName,
                Author_URI: companyWebsite,
                Version: version,
                Image: image === null ? 'default_image' : image
            }).then(function (response) {
                if (response.data) {
                    if (response.data === 'already-exists') {
                        document.getElementById("pac_da_loading_spinner").classList.add("error");
                        setTimeout(function () {
                            document.getElementById("pac_da_loading_spinner").classList.remove("error");
                            document.getElementById("pac_da_loading_spinner").style.display = 'none';
                            alert('Theme with the same name already exists!');
                        }, 1500);
                    } else {
                        setThemeCreated(true);
                        setTimeout(function () {
                            setThemeCreated(false);
                        }, 2000);
                        document.getElementById("pac_da_loading_spinner").classList.add("saved");
                        setTimeout(function () {
                            document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                            document.getElementById("pac_da_loading_spinner").style.display = 'none';
                        }, 1500);
                    }
                }
            });
        } else {
            if (name.trim() === '') {
                alert('Please fill the name field properly.');
            } else if (description.trim() === '') {
                alert('Please fill the description field properly.');
            } else if (companyName.trim() === '') {
                alert('Please fill the company name field properly.');
            } else if (version.trim() === '' || firstDotIndex === -1) {
                alert('Please fill the version field properly.');
            } else if (secondDotIndex === -1) {
                alert('Please fill the version field properly like 1.0.0');
            } else if (!companyWebsite.includes('https')) {
                alert('Please add a full URL including https:// to the beginning of the Company Website.');
            } else {
                alert('Please Fill the input fields properly.');
            }
        }
    };

    var uploadImage = function uploadImage(e) {
        if (e.target.classList.contains('btn')) {
            setImage(null);
            var inputElement = document.createElement('input');
            inputElement.type = 'file';
            inputElement.accept = 'image/*';
            inputElement.addEventListener('change', function (event) {
                var file = event.target.files[0];
                var formData = new FormData();
                formData.append('file', file);
                if (file && (file.type === 'image/png' || file.type === 'image/jpeg')) {
                    _axios2.default.post(daGetChildThemeImagePath, formData).then(function (response) {
                        if (response.data !== false) {
                            setImage(response.data);
                        }
                    });
                } else {
                    alert('Please select a valid image');
                }
            });
            inputElement.click();
        }
    };

    var exportChildTheme = function exportChildTheme(e) {
        _axios2.default.post(daExportChildTheme).then(function (response) {
            var a = document.createElement('a');
            a.href = response.data.data;
            a.download = props.websiteReport.child_theme.toLowerCase().replace(/\s+/g, '-').concat('.zip');
            a.click();
            setTimeout(function () {
                _axios2.default.post(daDeleteChildThemeZip, {
                    link: response.data.data
                });
            }, 20000);
        });
    };

    var updateImagePathToUrl = function updateImagePathToUrl(img_path) {
        var startIndex = img_path.indexOf('wp-content');
        var img_url = window.location.origin + '/' + img_path.substring(startIndex);
        return img_url;
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_child_theme' },
        props.websiteReport.child_theme !== 'None' ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
                'div',
                { className: 'pac_da_export_child_theme' },
                wp.element.createElement(
                    'span',
                    null,
                    'Export Active Child Theme'
                ),
                wp.element.createElement(
                    'p',
                    null,
                    'Want to install your active child theme on your next Divi site? This tool allows you to export the currently active child theme, such as your Divi Assistant Child Theme generated below, and download it to your computer. This will include any code customizations you have added to the child theme, and allow you to quickly install it using the standard theme installation process from Appearance>Themes>Add New>Upload Theme on your next site.'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: exportChildTheme },
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'white', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M15.2013 17.1114H6.79811C6.11751 17.1103 5.46513 16.8516 4.98388 16.3921C4.50262 15.9327 4.2317 15.3098 4.23047 14.66V11.0943C4.23047 10.917 4.30425 10.747 4.43557 10.6216C4.5669 10.4962 4.74501 10.4258 4.93073 10.4258C5.11646 10.4258 5.29457 10.4962 5.4259 10.6216C5.55722 10.747 5.631 10.917 5.631 11.0943V14.66C5.631 14.8064 5.66119 14.9513 5.71984 15.0864C5.77849 15.2216 5.86446 15.3445 5.97284 15.4479C6.08121 15.5514 6.20987 15.6335 6.35147 15.6895C6.49307 15.7455 6.64484 15.7743 6.79811 15.7743H15.2013C15.3546 15.7743 15.5063 15.7455 15.6479 15.6895C15.7895 15.6335 15.9182 15.5514 16.0266 15.4479C16.1349 15.3445 16.2209 15.2216 16.2796 15.0864C16.3382 14.9513 16.3684 14.8064 16.3684 14.66V11.0943C16.3684 10.917 16.4422 10.747 16.5735 10.6216C16.7048 10.4962 16.8829 10.4258 17.0687 10.4258C17.2544 10.4258 17.4325 10.4962 17.5638 10.6216C17.6952 10.747 17.7689 10.917 17.7689 11.0943V14.66C17.7677 15.3098 17.4968 15.9327 17.0155 16.3921C16.5343 16.8516 15.8819 17.1103 15.2013 17.1114Z' }),
                        wp.element.createElement('path', { d: 'M13.8298 11.121L11.4956 13.3495C11.4329 13.4124 11.3563 13.4611 11.2715 13.4922C11.242 13.5058 11.2105 13.5148 11.1781 13.5189C11.1208 13.5368 11.061 13.5458 11.0007 13.5456C10.8153 13.5445 10.6376 13.4741 10.5059 13.3495L8.17164 11.121C8.04163 10.9951 7.96875 10.8253 7.96875 10.6485C7.96875 10.4717 8.04163 10.302 8.17164 10.1761C8.23634 10.1135 8.31339 10.0639 8.39834 10.03C8.48328 9.99614 8.57443 9.97869 8.66649 9.97869C8.75855 9.97869 8.8497 9.99614 8.93464 10.03C9.01959 10.0639 9.09665 10.1135 9.16134 10.1761L10.3004 11.2636V5.74571C10.3004 5.5684 10.3742 5.39835 10.5055 5.27297C10.6369 5.14759 10.815 5.07715 11.0007 5.07715C11.1864 5.07715 11.3645 5.14759 11.4959 5.27297C11.6272 5.39835 11.701 5.5684 11.701 5.74571V11.2636L12.8401 10.1761C12.9728 10.058 13.1484 9.99369 13.3298 9.99675C13.5112 9.9998 13.6843 10.07 13.8126 10.1925C13.9409 10.315 14.0144 10.4802 14.0176 10.6534C14.0208 10.8266 13.9535 10.9942 13.8298 11.121Z' })
                    ),
                    wp.element.createElement(
                        'span',
                        null,
                        'Export Active Child Theme'
                    )
                )
            )
        ) : '',
        wp.element.createElement(
            'div',
            { className: 'pac_da_generate_theme' },
            wp.element.createElement(
                'span',
                null,
                'Generate A Divi Child Theme'
            ),
            wp.element.createElement(
                'p',
                null,
                'A Divi child theme is a great way to customize your website without editing the parent Divi Theme files or worrying about updates. A child theme inherits all the functionality and styling of the parent, but enables you to add your own custom code like PHP, CSS, and JavaScript to modify your website without directly affecting the parent theme. This feature allows you to generate a child theme based on your own details and activate it on the current site.'
            ),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Name'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '', value: name, autoComplete: 'off', onChange: function onChange(e) {
                    return setName(e.target.value);
                } }),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Description'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '', value: description, autoComplete: 'off', onChange: function onChange(e) {
                    return setDescription(e.target.value);
                } }),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Company Name'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '', value: companyName, autoComplete: 'off', onChange: function onChange(e) {
                    return setCompanyName(e.target.value);
                } }),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Company Website'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '', value: companyWebsite, autoComplete: 'off', onChange: function onChange(e) {
                    return setCompanyWebsite(e.target.value);
                } }),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Version'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '', value: version, autoComplete: 'off', onChange: function onChange(e) {
                    return setVersion(e.target.value);
                } }),
            wp.element.createElement(
                'div',
                { className: 'heading' },
                'Upload Image ',
                wp.element.createElement(
                    'p',
                    { className: 'description' },
                    '(Recommended image size is 880x660)'
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'uploadImage' },
                wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: uploadImage },
                    'Choose an Image'
                ),
                image !== null ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement('img', { src: updateImagePathToUrl(image) + '?rand=' + Math.random() }),
                    wp.element.createElement(
                        'div',
                        { className: 'image' },
                        image.split("/").slice(-1)[0]
                    )
                ) : ''
            ),
            wp.element.createElement(
                'div',
                { className: 'btn', onClick: createChildTheme },
                themeCreated ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M9.36757 15.3196C9.1643 15.3196 8.97117 15.2382 8.82888 15.0959L5.33231 11.5994C5.03246 11.2995 5.03246 10.8168 5.33231 10.522C5.63216 10.2222 6.11497 10.2222 6.40974 10.522L9.36757 13.4798L15.9439 6.90348C16.2437 6.60363 16.7266 6.60363 17.0214 6.90348C17.3212 7.20333 17.3212 7.68614 17.0214 7.98091L9.90625 15.0959C9.76396 15.2382 9.57083 15.3196 9.36757 15.3196Z' })
                    ),
                    'Child Theme Generated & Activated'
                ) : wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', style: { marginRight: '4px' }, xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M10.7253 17.4826C10.4336 17.4826 10.1538 17.3667 9.9475 17.1604C9.74121 16.9541 9.62528 16.6743 9.62528 16.3826V12.3754H7.58244C7.2907 12.3754 7.01093 12.2596 6.80464 12.0533C6.59835 11.847 6.48242 11.5672 6.48242 11.2754V11.1576C6.48315 10.9428 6.54593 10.7327 6.66317 10.5526L10.356 5.05262C10.4567 4.90091 10.5933 4.77632 10.7537 4.68998C10.914 4.60364 11.0932 4.55821 11.2753 4.55762C11.567 4.55762 11.8468 4.6735 12.0531 4.87979C12.2594 5.08608 12.3753 5.3659 12.3753 5.65764V9.66476H14.4182C14.7099 9.66476 14.9897 9.78064 15.196 9.98693C15.4023 10.1932 15.5181 10.473 15.5181 10.7648V10.8904C15.5184 11.1066 15.4526 11.3177 15.3296 11.4954L11.6367 16.9954C11.5373 17.1461 11.4019 17.2696 11.2428 17.3546C11.0836 17.4397 10.9058 17.4836 10.7253 17.4826ZM7.66099 11.1969H10.2146C10.3702 11.1989 10.5189 11.2616 10.629 11.3717C10.7391 11.4818 10.8018 11.6305 10.8039 11.7861V16.1233L14.3396 10.804H11.786C11.7083 10.8051 11.6312 10.7906 11.5593 10.7613C11.4873 10.7321 11.4219 10.6887 11.367 10.6338C11.312 10.5788 11.2687 10.5134 11.2394 10.4415C11.2102 10.3695 11.1957 10.2924 11.1967 10.2147V5.87756L7.66099 11.1969Z' })
                    ),
                    'Generate & Activate Child Theme'
                )
            )
        )
    );
};
exports.default = ChildThemeGenerator;

/***/ }),
/* 468 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

var _Selectoption = __webpack_require__(143);

var _Selectoption2 = _interopRequireDefault(_Selectoption);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Comingsoon = function Comingsoon(props) {

  var daUpdateMaintenanceCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateMaintenanceCards';

  var setCommingSoonValue = function setCommingSoonValue(val) {
    if (val == true) {
      props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, {
        commingSoon: val,
        Maintenance: !val
      }));
    } else {
      props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { commingSoon: val }));
    }
  };

  var setCommingSoonPage = function setCommingSoonPage(val) {
    props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { commingSoonPage: val }));
  };

  var setByPassCommingSoon = function setByPassCommingSoon(val) {
    props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { byPassCommingSoon: val }));
  };

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(daUpdateMaintenanceCards, {
      value: JSON.stringify(props.maintenanceCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var copyLinkToClipBoard = function copyLinkToClipBoard() {
    if (window.location.protocol === 'https:') {
      navigator.clipboard.writeText(pacDaAppLocalizer.site_url + '/?pacbpcsm_token=' + props.maintenanceCards.byPassLink);
    } else {
      alert('This Feature only works on Live sites');
    }
  };

  var regenerateLink = function regenerateLink() {
    var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    var newPassword = '';
    for (var i = 0; i < 128; i++) {
      var randomIndex = Math.floor(Math.random() * charset.length);
      newPassword += charset[randomIndex];
    }
    props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { byPassLink: newPassword }));
  };

  (0, _react.useEffect)(function () {
    if (props.maintenanceCards.byPassLink === null || props.maintenanceCards.byPassLink === undefined || props.maintenanceCards.byPassLink === '') {
      var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
      var newPassword = '';
      for (var i = 0; i < 128; i++) {
        var randomIndex = Math.floor(Math.random() * charset.length);
        newPassword += charset[randomIndex];
      }
      props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { byPassLink: newPassword }));
    }
  }, []);

  return wp.element.createElement(
    'div',
    { className: 'pac_da_maintaince' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'commingSoon' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/comingSoon.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'details' },
        wp.element.createElement(
          'span',
          { className: 'title' },
          'Coming Soon Mode'
        ),
        wp.element.createElement(
          'p',
          { className: 'description' },
          'Choose to enable or disable the website coming soon mode when your site is being developed and not yet ready for the public to see. If this is enabled, visitors to your site will not be able to view your website, but will instead see the coming soon layout or page that you select below. Logged in users will not be affected by coming soon mode.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: Boolean(props.maintenanceCards.commingSoon), setBtnValue: function setBtnValue(val) {
            return setCommingSoonValue(val);
          } }),
        Boolean(props.maintenanceCards.commingSoon) ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'subtitle' },
            'Select Divi Library Layout Or Page For Coming soon Mode'
          ),
          wp.element.createElement(
            'p',
            { className: 'subdescription' },
            'Select a Divi Library layout or page to use as the screen your website visitors will see when trying to access your site whenever the coming soon mode is enabled.'
          ),
          wp.element.createElement(_Selectoption2.default, { firstOption: 'Select Divi Library Layout Or Page', optionValue: props.maintenanceCards.commingSoonPage, setOptionValue: function setOptionValue(page) {
              return setCommingSoonPage(page);
            }, options: props.maintenanceData }),
          props.maintenanceCards.commingSoonPage !== 'none' ? wp.element.createElement(
            'a',
            { href: pacDaAppLocalizer.site_url + '/wp-admin/post.php?post=' + props.maintenanceCards.commingSoonPage + '&action=edit', target: '_blank', className: 'edit_selected' },
            wp.element.createElement(
              'svg',
              { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
              wp.element.createElement('path', { d: 'M15.9649 6.51359L15.5013 6.05005C15.2711 5.82035 14.9978 5.63822 14.6972 5.51418C14.3965 5.39015 14.0744 5.32661 13.7492 5.32715C13.09 5.32571 12.4571 5.58568 11.9892 6.05005L10.5828 7.46427L5.47562 12.5714C5.36507 12.6818 5.30287 12.8316 5.30273 12.9879V16.1307C5.30273 16.287 5.36482 16.437 5.47533 16.5475C5.58584 16.658 5.73573 16.72 5.89202 16.72H9.03488C9.19077 16.7182 9.33998 16.6563 9.45133 16.5472L14.5427 11.4479L15.9335 10.0572C16.1656 9.82837 16.3499 9.55552 16.4753 9.25467C16.6008 8.95382 16.665 8.63101 16.6642 8.30504C16.6735 7.97483 16.6164 7.64607 16.4963 7.33834C16.3762 7.03061 16.1954 6.75017 15.9649 6.51359ZM8.79131 15.5414H6.48131V13.2315L10.9992 8.71363L13.3092 11.0236L8.79131 15.5414ZM15.132 9.1929L14.142 10.1908L11.832 7.88073L12.822 6.88285C13.0715 6.6469 13.4018 6.51541 13.7452 6.51541C14.0886 6.51541 14.419 6.6469 14.6685 6.88285L15.132 7.33863C15.3775 7.58491 15.5158 7.91803 15.517 8.26572C15.5113 8.60557 15.3732 8.92979 15.132 9.16931V9.1929Z', fill: 'white' })
            ),
            'Edit Selected Layout Or Page'
          ) : ''
        ) : ''
      )
    ),
    Boolean(props.maintenanceCards.commingSoon) ? wp.element.createElement(
      _react2.default.Fragment,
      null,
      wp.element.createElement(
        'div',
        { className: 'commingSoon' },
        wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/bypass CommingSoon.png', alt: 'Setting Image' }),
        wp.element.createElement(
          'div',
          { className: 'details' },
          wp.element.createElement(
            'span',
            { className: 'title' },
            'Bypass Coming Soon Mode With Special Link'
          ),
          wp.element.createElement(
            'p',
            { className: 'description' },
            'If you have a client or colleague who you want to grant access to view the site without logging in, you can enable this setting and share a special link with them. Anyone with this link will be able to view any page on the site like normal, even when Coming Soon mode is enabled.'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: Boolean(props.maintenanceCards.byPassCommingSoon), setBtnValue: function setBtnValue(val) {
              return setByPassCommingSoon(val);
            } }),
          Boolean(props.maintenanceCards.byPassCommingSoon) ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'span',
              { className: 'subtitle' },
              'Copy And Share Bypass Link'
            ),
            wp.element.createElement(
              'p',
              { className: 'subdescription' },
              'A unique URL has been generated for you. You can copy this link and share it with anyone who you want to bypass the Coming Soon mode.'
            ),
            wp.element.createElement(
              'div',
              { className: 'linkToCopy' },
              wp.element.createElement(
                'span',
                null,
                props.maintenanceCards.byPassLink !== null ? pacDaAppLocalizer.site_url + '/?pacbpcsm_token=' + props.maintenanceCards.byPassLink : 'Please regenerate the link'
              ),
              wp.element.createElement(
                'svg',
                { onClick: regenerateLink, width: '29', height: '28', viewBox: '0 0 29 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M21.2162 13.5C21.2162 17.0832 18.2994 20 14.7162 20C12.9852 20 11.3537 19.3249 10.1247 18.0959C9.86936 17.8449 9.86936 17.4338 10.1204 17.1784C10.3757 16.9231 10.7825 16.9231 11.0378 17.1784C12.0245 18.1608 13.3314 18.7017 14.7162 18.7017C17.5854 18.7017 19.918 16.3692 19.918 13.5C19.918 10.6308 17.5854 8.29827 14.7162 8.29827C12.7558 8.29827 11.0724 9.4018 10.2285 11.1804H11.3753C11.7345 11.1804 12.0245 11.4704 12.0245 11.8296C12.0245 12.1887 11.7345 12.4787 11.3753 12.4787H8.44992C8.09073 12.4787 7.80078 12.1887 7.80078 11.8296V8.90413C7.80078 8.54494 8.09073 8.25499 8.44992 8.25499C8.8091 8.25499 9.09905 8.54494 9.09905 8.90413V10.5313C10.168 8.3502 12.2712 7 14.7162 7C18.2994 7 21.2162 9.91678 21.2162 13.5Z' })
              )
            ),
            wp.element.createElement(
              'div',
              { className: 'copyLink', onClick: copyLinkToClipBoard },
              wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'white', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement('path', { d: 'M15.6566 6.50014H13.5614V5.42871C13.5614 5.03089 13.3897 4.64936 13.0841 4.36805C12.7785 4.08675 12.364 3.92871 11.9318 3.92871H6.34447C5.91227 3.92871 5.49777 4.08675 5.19215 4.36805C4.88654 4.64936 4.71484 5.03089 4.71484 5.42871V14.0001C4.71484 14.398 4.88654 14.7795 5.19215 15.0608C5.49777 15.3421 5.91227 15.5001 6.34447 15.5001H8.43971V16.5716C8.43971 16.9694 8.6114 17.3509 8.91702 17.6322C9.22263 17.9135 9.63714 18.0716 10.0693 18.0716H15.6566C16.0888 18.0716 16.5034 17.9135 16.809 17.6322C17.1146 17.3509 17.2863 16.9694 17.2863 16.5716V8.00014C17.2863 7.60231 17.1146 7.22078 16.809 6.93948C16.5034 6.65817 16.0888 6.50014 15.6566 6.50014ZM6.34447 14.2144C6.28273 14.2144 6.22352 14.1918 6.17986 14.1517C6.1362 14.1115 6.11167 14.057 6.11167 14.0001V5.42871C6.11167 5.37188 6.1362 5.31737 6.17986 5.27719C6.22352 5.237 6.28273 5.21443 6.34447 5.21443H11.9318C11.9935 5.21443 12.0527 5.237 12.0964 5.27719C12.1401 5.31737 12.1646 5.37188 12.1646 5.42871V6.50014H10.0693C9.63714 6.50014 9.22263 6.65817 8.91702 6.93948C8.6114 7.22078 8.43971 7.60231 8.43971 8.00014V14.2144H6.34447ZM15.8894 16.5716C15.8894 16.6284 15.8649 16.6829 15.8213 16.7231C15.7776 16.7633 15.7184 16.7859 15.6566 16.7859H10.0693C10.0076 16.7859 9.94838 16.7633 9.90472 16.7231C9.86106 16.6829 9.83654 16.6284 9.83654 16.5716V8.00014C9.83654 7.94331 9.86106 7.8888 9.90472 7.84862C9.94838 7.80843 10.0076 7.78585 10.0693 7.78585H15.6566C15.7184 7.78585 15.7776 7.80843 15.8213 7.84862C15.8649 7.8888 15.8894 7.94331 15.8894 8.00014V16.5716Z' })
              ),
              wp.element.createElement(
                'span',
                null,
                'Copy Bypass Link'
              )
            )
          ) : ''
        )
      )
    ) : ''
  );
};
exports.default = Comingsoon;

/***/ }),
/* 469 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

var _Selectoption = __webpack_require__(143);

var _Selectoption2 = _interopRequireDefault(_Selectoption);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Maintenance = function Maintenance(props) {

  var daUpdateMaintenanceCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateMaintenanceCards';

  var setMaintenanceValue = function setMaintenanceValue(val) {
    if (val == true) {
      props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, {
        commingSoon: !val,
        Maintenance: val
      }));
    } else {
      props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { Maintenance: val }));
    }
  };

  var setMaintenancePage = function setMaintenancePage(val) {
    props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { MaintenancePage: val }));
  };

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(daUpdateMaintenanceCards, {
      value: JSON.stringify(props.maintenanceCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_maintaince' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'commingSoon' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/Maintenance Mode.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'details' },
        wp.element.createElement(
          'span',
          { className: 'title' },
          'Maintenance Mode'
        ),
        wp.element.createElement(
          'p',
          { className: 'description' },
          'Choose to enable or disable the website maintenance mode feature. If this is enabled, anyone who visits your site while you are performing any maintenance such as updates to plugins or themes will see your nicely designed Divi layout or page that you select below rather than the boring default message. This will reassure visitors that the site will be back soon, and help prevent them from thinking your site is broken.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: Boolean(props.maintenanceCards.Maintenance), setBtnValue: function setBtnValue(val) {
            return setMaintenanceValue(val);
          } }),
        Boolean(props.maintenanceCards.Maintenance) ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'subtitle' },
            'Select Divi Library Layout Or Page For Maintenance Mode'
          ),
          wp.element.createElement(
            'p',
            { className: 'subdescription' },
            'Select a Divi Library layout or page to use as the screen your website visitors will see when trying to access your site whenever the maintenance mode is enabled.'
          ),
          wp.element.createElement(_Selectoption2.default, { firstOption: 'Select Divi Library Layout Or Page', optionValue: props.maintenanceCards.MaintenancePage, setOptionValue: function setOptionValue(page) {
              return setMaintenancePage(page);
            }, options: props.maintenanceData }),
          props.maintenanceCards.MaintenancePage !== 'none' ? wp.element.createElement(
            'a',
            { href: pacDaAppLocalizer.site_url + '/wp-admin/post.php?post=' + props.maintenanceCards.MaintenancePage + '&action=edit', target: '_blank', className: 'edit_selected' },
            wp.element.createElement(
              'svg',
              { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
              wp.element.createElement('path', { d: 'M15.9649 6.51359L15.5013 6.05005C15.2711 5.82035 14.9978 5.63822 14.6972 5.51418C14.3965 5.39015 14.0744 5.32661 13.7492 5.32715C13.09 5.32571 12.4571 5.58568 11.9892 6.05005L10.5828 7.46427L5.47562 12.5714C5.36507 12.6818 5.30287 12.8316 5.30273 12.9879V16.1307C5.30273 16.287 5.36482 16.437 5.47533 16.5475C5.58584 16.658 5.73573 16.72 5.89202 16.72H9.03488C9.19077 16.7182 9.33998 16.6563 9.45133 16.5472L14.5427 11.4479L15.9335 10.0572C16.1656 9.82837 16.3499 9.55552 16.4753 9.25467C16.6008 8.95382 16.665 8.63101 16.6642 8.30504C16.6735 7.97483 16.6164 7.64607 16.4963 7.33834C16.3762 7.03061 16.1954 6.75017 15.9649 6.51359ZM8.79131 15.5414H6.48131V13.2315L10.9992 8.71363L13.3092 11.0236L8.79131 15.5414ZM15.132 9.1929L14.142 10.1908L11.832 7.88073L12.822 6.88285C13.0715 6.6469 13.4018 6.51541 13.7452 6.51541C14.0886 6.51541 14.419 6.6469 14.6685 6.88285L15.132 7.33863C15.3775 7.58491 15.5158 7.91803 15.517 8.26572C15.5113 8.60557 15.3732 8.92979 15.132 9.16931V9.1929Z', fill: 'white' })
            ),
            'Edit Selected Layout Or Page'
          ) : ''
        ) : ''
      )
    )
  );
};
exports.default = Maintenance;

/***/ }),
/* 470 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var AutoClearCache = function AutoClearCache(props) {

    var daUpdateMaintenanceCards = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateMaintenanceCards';

    var autoClearCache = pacDaAppLocalizer.plugin_url + 'include/img/Auto Clear Cache.png';
    var clearCacheOnAction = pacDaAppLocalizer.plugin_url + 'include/img/Clear Cache On Action.png';
    var clearStaticCSS = pacDaAppLocalizer.plugin_url + 'include/img/Clear Static CSS.png';
    var clearLocalStorage = pacDaAppLocalizer.plugin_url + 'include/img/Clear Local Storage.png';
    var hardRefreshBrowser = pacDaAppLocalizer.plugin_url + 'include/img/Hard Refresh Browser.png';

    var saveData = function saveData() {
        document.getElementById("pac_da_loading_spinner").style.display = 'block';
        _axios2.default.post(daUpdateMaintenanceCards, {
            value: JSON.stringify(props.maintenanceCards),
            utilityStg: JSON.stringify(props.utilityCards)
        }).then(function (response) {
            document.getElementById("pac_da_loading_spinner").classList.add("saved");
            setTimeout(function () {
                document.getElementById("pac_da_loading_spinner").classList.remove("saved");
                document.getElementById("pac_da_loading_spinner").style.display = 'none';
            }, 1000);
        });
    };

    var toggleValue = function toggleValue(ind, val) {
        props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, _defineProperty({}, ind, val)));
    };

    var handleAutoClearCache = function handleAutoClearCache(e) {
        props.setMaintenanceCards(Object.assign({}, props.maintenanceCards, { autoClearCache: e.target.value }));
    };

    var handleStaticCss = function handleStaticCss(val) {
        props.setUtilityCards(Object.assign({}, props.utilityCards, { staticCss: val }));
    };
    var handleLocalStorage = function handleLocalStorage(val) {
        props.setUtilityCards(Object.assign({}, props.utilityCards, { localStorage: val }));
    };
    var handleHardRefresh = function handleHardRefresh(val) {
        props.setUtilityCards(Object.assign({}, props.utilityCards, { hardRefresh: val }));
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_utility' },
        wp.element.createElement(
            'div',
            { className: 'save', onClick: saveData },
            wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
                )
            ),
            wp.element.createElement(
                'span',
                null,
                'Save Changes'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_setting_cards' },
            wp.element.createElement(_SettingCard2.default, { inputField: 'autoClearCache', settingImg: autoClearCache, btnValue: props.maintenanceCards.autoClearCache, setBtnValue: handleAutoClearCache, title: 'Automatically Clear The Divi Static CSS Cache Based On A Schedule', description: 'Divi has a feature that takes the custom design styles created using the Divi Builder and compiles and minifies them into static CSS files in order to serve them more efficiently as cached files within your visitor’s browser. However, whenever you make a change to your website design, these cached files need to be cleared so that visitors see the updated design. To do this, you can go to your WordPress dashboard to Divi>Theme Options>Builder>Advanced and clear the Static CSS Generation button. But this is a hassle and major inconvenience, so instead we have created this convenient feature which provides options to automatically clear the Divi static CSS cache on a predefined schedule.' }),
            wp.element.createElement(_SettingCard2.default, { inputField: 'clearCacheOnAction', settingImg: clearCacheOnAction, maintenanceCards: props.maintenanceCards, toggleValue: toggleValue, title: 'Automatically Clear the Divi Static CSS Cache Based on An action', description: 'Divi has a feature that takes the custom design styles created using the Divi Builder and compiles and minifies them into static CSS files in order to serve them more efficiently as cached files within your visitor’s browser. However, whenever you make a change to your website design, these cached files need to be cleared so that visitors see the updated design. To do this, you can go to your WordPress dashboard to Divi>Theme Options>Builder>Advanced and clear the Static CSS Generation button. But this is a hassle and major inconvenience, so instead we have solved this by adding triggers based on common scenarios that require clearing the cache which you can enable below to automatically clear the Divi static CSS cache based on the selection action.' }),
            wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: clearStaticCSS, btnValue: props.utilityCards.staticCss, setBtnValue: handleStaticCss, title: 'Add Button To Clear Static CSS To Admin Bar', description: 'Divi has a feature that takes the custom design styles created using the Divi Builder and compiles and minifies them into static CSS files in order to serve them more efficiently as cached files within your visitor’s browser. However, whenever you make a change to your website design, these cached files need to be cleared so that visitors see the updated design. To do this, you can go to your WordPress dashboard to Divi>Theme Options>Builder>Advanced and clear the Static CSS Generation button. But since this cache needs cleared every time you make a change, why it is so difficult to find? Why not move the button to a more convenient location so you can clear it easier? Now you can! Enabling this setting will add new buttons to the WordPress admin bar (after reloading the page) to clear the Divi static CSS cache quickly with one convenient click!' }),
            wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: clearLocalStorage, btnValue: props.utilityCards.localStorage, setBtnValue: handleLocalStorage, title: 'Add Button To Clear Local Storage to Admin Bar', description: 'Local storage is an internal memory storage used by your website to store objects locally in your computer browser. Local storage only affects you since it is associated with your browser sessions, and does not affect other users. This data does not expire and remains stored on your computer until the application that put it there deletes it, or when you manually clear it. Various plugins may utilize this local storage feature, but Divi specifically uses this for things like copy and paste modules, copy and paste styles, and for displaying and managing modules and Divi Builder settings. Clearing the local storage should be a maintenance step you perform every time you clear update Divi or any 3rd party Divi plugin, and also when clearing your browser and other cache. This can potentially solve some issues faced when using Divi. Enabling this feature will add a new button to the WordPress admin bar (after reloading the page) to clear the local storage.' }),
            wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hardRefreshBrowser, btnValue: props.utilityCards.hardRefresh, setBtnValue: handleHardRefresh, title: 'Add Button To Hard Refresh Browser To Admin Bar', description: 'When building your website, sometimes you may face issues in the Divi Builder or frontend with outdated or broken content, design, or functionality. In some situations these issues are caused by browser cache, which needs to be cleared often when building a website. But a regular page refresh does not clear the cache, but rather uses cached files to improve the loading performance. Instead, you need to do a hard refresh, which sends a request to the server asking for fresh copies of its resources. The server then responds by providing the latest version, potentially including changes made since the previous cached versions were stored. Enabling this setting will add new buttons to the WordPress admin bar (after reloading the page) to perform a hard browser refresh on the page to ensure you receive and are viewing the most recent version of all resources!' })
        ),
        wp.element.createElement(
            'div',
            { className: 'save bottom', onClick: saveData },
            wp.element.createElement(
                'svg',
                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
                )
            ),
            wp.element.createElement(
                'span',
                null,
                'Save Changes'
            )
        )
    );
};
exports.default = AutoClearCache;

/***/ }),
/* 471 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.Divichangelog = undefined;

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Divichangelog = exports.Divichangelog = function Divichangelog(props) {
    var _useState = (0, _react.useState)('None'),
        _useState2 = _slicedToArray(_useState, 2),
        view = _useState2[0],
        setView = _useState2[1];

    var updateDiviChangelog = function updateDiviChangelog(e) {
        if (e.target.value !== 'None') {
            setView(e.target.value);
            var card = document.getElementById(e.target.value);
            card.scrollIntoView({ behavior: 'smooth' });
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_diviChangelog' },
        wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/diviChangelog.png', alt: 'Setting Image' }),
        wp.element.createElement(
            'div',
            { className: 'pac_da_diviChangelog_inner' },
            wp.element.createElement(
                'span',
                { className: 'title' },
                'View An Easy-To-Read Divi Changelog'
            ),
            wp.element.createElement(
                'p',
                { className: 'descrption' },
                'On this page, you can view any version of the Divi Theme changelog in a simplified format! A changelog is a list of new features, settings, and bug fixes that are included when software is updated. It is a great idea to keep up to date on new features and fixes that Elegant Themes releases for their Divi Theme.'
            ),
            wp.element.createElement(
                'div',
                { id: 'pac_da_diviChangelogDetails' },
                wp.element.createElement(
                    'select',
                    { className: 'options', onChange: updateDiviChangelog, value: view },
                    wp.element.createElement(
                        'option',
                        { className: 'option', value: 'None' },
                        'Select the Version'
                    ),
                    props.diviChangelogOptions.map(function (opt) {
                        return wp.element.createElement(
                            'option',
                            { key: opt.value, className: 'option', value: opt.value },
                            opt.label
                        );
                    })
                ),
                wp.element.createElement(
                    'div',
                    { className: 'details' },
                    props.diviChangelogVersions.map(function (val) {
                        return wp.element.createElement(
                            'div',
                            { key: val.id, id: val.id, className: 'card' },
                            wp.element.createElement(
                                'div',
                                { className: 'version' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M7.70846 16.4774C7.93051 16.5669 8.16827 16.611 8.40766 16.6072C8.64584 16.6175 8.88367 16.5798 9.107 16.4964C9.33032 16.4129 9.53459 16.2855 9.70767 16.1215L14.6362 11.1929C14.8243 11.0064 14.9726 10.7836 15.072 10.538C15.1715 10.2925 15.2201 10.0292 15.2148 9.76437V6.07148C15.2129 5.74053 15.0806 5.42371 14.8466 5.18969C14.6126 4.95568 14.2957 4.82335 13.9648 4.82148H10.2719C10.0073 4.81784 9.74456 4.86721 9.49923 4.96657C9.2539 5.06592 9.03091 5.21331 8.84337 5.40009L3.91482 10.3287C3.74544 10.4995 3.61201 10.7026 3.52245 10.9259C3.43289 11.1492 3.38899 11.3881 3.39336 11.6286C3.3931 11.8622 3.43907 12.0935 3.52856 12.3093C3.61804 12.525 3.74932 12.721 3.91482 12.8858L7.11481 16.0858C7.28457 16.2546 7.48641 16.3878 7.70846 16.4774ZM9.89165 5.96083C10.0008 5.91544 10.118 5.89229 10.2362 5.89291H13.9291C13.9764 5.89291 14.0219 5.91173 14.0554 5.94522C14.0889 5.97871 14.1076 6.02412 14.1076 6.07148V9.76437C14.1083 9.8826 14.0852 9.99977 14.0398 10.109C13.9944 10.2181 13.9276 10.3171 13.8434 10.4001L8.91482 15.3287C8.8439 15.3993 8.75893 15.4542 8.66541 15.4899C8.57189 15.5256 8.47191 15.5412 8.37196 15.5358C8.18457 15.535 8.00499 15.4606 7.87195 15.3287L4.67196 12.1287C4.60224 12.0586 4.54779 11.9748 4.51214 11.8825C4.47648 11.7903 4.46036 11.6917 4.46479 11.593C4.46425 11.499 4.48226 11.4058 4.51781 11.3188C4.55335 11.2317 4.60576 11.1525 4.67196 11.0858L9.60051 6.15719C9.68347 6.07293 9.78246 6.00622 9.89165 5.96083ZM10.6495 9.35062C10.9509 9.65202 11.3597 9.82129 11.7859 9.82129C12.2122 9.82129 12.621 9.65202 12.9224 9.35062C13.2238 9.04922 13.3931 8.64039 13.3931 8.21415C13.3931 7.7879 13.2238 7.37916 12.9224 7.07776C12.621 6.77636 12.2122 6.607 11.7859 6.607C11.3597 6.607 10.9509 6.77636 10.6495 7.07776C10.3481 7.37916 10.1788 7.7879 10.1788 8.21415C10.1788 8.64039 10.3481 9.04922 10.6495 9.35062ZM11.4071 7.83538C11.5076 7.73491 11.6438 7.67843 11.7859 7.67843C11.9274 7.68028 12.0626 7.73732 12.1627 7.83738C12.2628 7.93745 12.3198 8.07264 12.3216 8.21415C12.3198 8.35565 12.2628 8.49084 12.1627 8.59091C12.0626 8.69097 11.9274 8.74801 11.7859 8.74986C11.6438 8.74986 11.5076 8.69347 11.4071 8.593C11.3066 8.49253 11.2502 8.35623 11.2502 8.21415C11.2502 8.07207 11.3066 7.93584 11.4071 7.83538Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Version ',
                                    val['version']
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'date' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M12.6786 5.5143H13.5715C14.0925 5.5143 14.5921 5.72122 14.9605 6.0896C15.3289 6.45797 15.5358 6.95762 15.5358 7.47859V13.55C15.5358 14.071 15.3289 14.5706 14.9605 14.939C14.5921 15.3074 14.0925 15.5143 13.5715 15.5143H6.42864C5.90768 15.5143 5.40807 15.3074 5.0397 14.939C4.67132 14.5706 4.46436 14.071 4.46436 13.55V7.47859C4.46436 6.95762 4.67132 6.45797 5.0397 6.0896C5.40807 5.72122 5.90768 5.5143 6.42864 5.5143H7.3215V4.97859C7.3215 4.83651 7.37794 4.70028 7.4784 4.59982C7.57887 4.49935 7.71513 4.44287 7.85721 4.44287C7.99872 4.44472 8.13391 4.50176 8.23397 4.60182C8.33404 4.70189 8.39108 4.83708 8.39293 4.97859V5.5143H11.6072V4.97859C11.6072 4.83651 11.6637 4.70028 11.7641 4.59982C11.8646 4.49935 12.0008 4.44287 12.1429 4.44287C12.2844 4.44472 12.4196 4.50176 12.5197 4.60182C12.6198 4.70189 12.6768 4.83708 12.6786 4.97859V5.5143ZM14.2029 14.1814C14.3703 14.0139 14.4644 13.7868 14.4644 13.55V9.80001H5.53578V13.55C5.53578 13.7868 5.62988 14.0139 5.79732 14.1814C5.96476 14.3488 6.19184 14.4429 6.42864 14.4429H13.5715C13.8083 14.4429 14.0354 14.3488 14.2029 14.1814ZM5.53578 8.72859H14.4644V7.47859C14.4644 7.24178 14.3703 7.01466 14.2029 6.84722C14.0354 6.67978 13.8083 6.58573 13.5715 6.58573H12.6786V7.12144C12.6768 7.26295 12.6198 7.39814 12.5197 7.4982C12.4196 7.59827 12.2844 7.65531 12.1429 7.65716C12.0008 7.65716 11.8646 7.60068 11.7641 7.50021C11.6637 7.39974 11.6072 7.26352 11.6072 7.12144V6.58573H8.39293V7.12144C8.39108 7.26295 8.33404 7.39814 8.23397 7.4982C8.13391 7.59827 7.99872 7.65531 7.85721 7.65716C7.71513 7.65716 7.57887 7.60068 7.4784 7.50021C7.37794 7.39974 7.3215 7.26352 7.3215 7.12144V6.58573H6.42864C6.19184 6.58573 5.96476 6.67978 5.79732 6.84722C5.62988 7.01466 5.53578 7.24178 5.53578 7.47859V8.72859ZM7.14293 10.8929H7.85721C8.15308 10.8929 8.39293 11.1327 8.39293 11.4286V12.1429C8.39293 12.4388 8.15308 12.6786 7.85721 12.6786H7.14293C6.84706 12.6786 6.60721 12.4388 6.60721 12.1429V11.4286C6.60721 11.1327 6.84706 10.8929 7.14293 10.8929Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Updated ',
                                    val['date']
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'changes' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { d: 'M14.5142 5.92136L14.0927 5.49995C13.8834 5.29114 13.635 5.12556 13.3617 5.01281C13.0884 4.90005 12.7955 4.84229 12.4999 4.84278C11.9006 4.84146 11.3252 5.0778 10.8999 5.49995L9.62131 6.78562L4.97845 11.4285C4.87796 11.5288 4.82141 11.665 4.82129 11.8071V14.6642C4.82129 14.8063 4.87773 14.9426 4.97819 15.0431C5.07866 15.1435 5.21492 15.1999 5.357 15.1999H8.21415C8.35587 15.1983 8.49151 15.142 8.59274 15.0428L13.2213 10.4071L14.4856 9.14279C14.6967 8.93479 14.8641 8.68675 14.9782 8.41325C15.0923 8.13975 15.1506 7.84628 15.1499 7.54995C15.1583 7.24976 15.1064 6.95088 14.9972 6.67113C14.888 6.39138 14.7237 6.13643 14.5142 5.92136ZM7.99272 14.1285H5.89272V12.0285L9.99986 7.92139L12.0999 10.0214L7.99272 14.1285ZM13.757 8.3571L12.857 9.26425L10.757 7.16421L11.657 6.25705C11.8838 6.04255 12.1841 5.92301 12.4963 5.92301C12.8085 5.92301 13.1088 6.04255 13.3356 6.25705L13.757 6.67139C13.9801 6.89528 14.1059 7.19812 14.107 7.5142C14.1018 7.82316 13.9763 8.1179 13.757 8.33565V8.3571Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Changes'
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'points' },
                                val.points.map(function (point) {
                                    return wp.element.createElement(
                                        'p',
                                        { key: Math.random(1, 999999) },
                                        point.replace(/^[-\s]+/, '')
                                    );
                                })
                            )
                        );
                    })
                )
            )
        )
    );
};
exports.default = Divichangelog;

/***/ }),
/* 472 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Updates = function Updates(props) {

  // Load graphics
  var disableDefaultWpThemes = pacDaAppLocalizer.plugin_url + 'include/img/Disable Default WP Themes.png';
  var automaticPluginUpdates = pacDaAppLocalizer.plugin_url + 'include/img/Automatic Plugin Updates.png';
  var automaticThemeUpdates = pacDaAppLocalizer.plugin_url + 'include/img/Automatic Theme Updates.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Updates',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleDefaultThemes = function handleDefaultThemes(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { defaultThemes: val }));
  };
  var handleUpdateThemes = function handleUpdateThemes(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { updateThemes: val }));
  };
  var handleUpdatePlugins = function handleUpdatePlugins(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { updatePlugins: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: disableDefaultWpThemes, btnValue: props.utilityCards.defaultThemes, setBtnValue: handleDefaultThemes, title: 'Disable New Default WordPress Themes', description: 'Each year WordPress released their own default theme. Since you are using the Divi Theme, you can ignore it. However, for some unknown reason, WordPress automatically installs the new default theme on every website automatically! This is obviously very annoying, and it requires you to manually delete it each year. To stop this madness, you can enable this setting to prevent WordPress from installing the new default theme each year!' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: automaticThemeUpdates, btnValue: props.utilityCards.updateThemes, setBtnValue: handleUpdateThemes, title: 'Disable & Hide Automatic Theme Updates', description: 'Divi Theme updates are usually great and helpful with new features, fixes, and improvements, but they can also cause unwanted issues. This is why you should never have automatic theme updates enabled. It is always best to test theme updates on a staging site, and always have backups in case something goes wrong. Enabling this setting will disable the theme automatic update feature and completely hide it, which means you will need to manually click update whenever Elegant Themes releases new Divi updates.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: automaticPluginUpdates, btnValue: props.utilityCards.updatePlugins, setBtnValue: handleUpdatePlugins, title: 'Disable & Hide Automatic Plugin Updates', description: 'Plugin updates are usually great and helpful with new features, fixes, and improvements, but they can also cause unwanted issues. This is why you should never have automatic plugin updates enabled. It is always best to test plugin updates on a staging site, and always have backups in case something goes wrong. Enabling this setting will disable the plugin automatic update feature in WordPress and completely hide it, which means you will need to manually click update whenever plugin developers release new updates.' })
    )
  );
};
exports.default = Updates;

/***/ }),
/* 473 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.Changediviveriosn = undefined;

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Changediviveriosn = exports.Changediviveriosn = function Changediviveriosn(props) {
    var _useState = (0, _react.useState)('None'),
        _useState2 = _slicedToArray(_useState, 2),
        selectedVersion = _useState2[0],
        setSelectedVersion = _useState2[1];

    var _useState3 = (0, _react.useState)(false),
        _useState4 = _slicedToArray(_useState3, 2),
        status = _useState4[0],
        setStatus = _useState4[1];

    var changeDiviVersion = function changeDiviVersion(e) {
        setSelectedVersion(e.target.value);
        if (e.target.value !== 'None') {
            var card = document.getElementById(e.target.value);
            document.querySelectorAll('#pac_da_diviChangelogDetails>.details>.card').forEach(function (el) {
                el.style.display = 'none';
            });
            card.style.display = "block";
        } else {
            document.querySelectorAll('#pac_da_diviChangelogDetails>.details>.card').forEach(function (el) {
                el.style.display = 'none';
            });
        }
    };

    var installSelectedVersion = function installSelectedVersion(e) {
        e.target.id = e.target.id.endsWith('0') ? e.target.id.slice(0, e.target.id.lastIndexOf('_')) : e.target.id;
        var requestParams = new URLSearchParams({
            action: 'pac_da_change_divi_version',
            _ajax_nonce: pacDaAppLocalizer.ajaxNonceRollback,
            product_name: 'Divi',
            product_shortname: 'divi',
            version: e.target.id.split("_").join(".")
        }).toString();
        document.getElementById("pac_da_loading_spinner").style.display = 'block';
        _axios2.default.post(ajaxurl, requestParams).then(function (response) {
            props.setDiviCurrentVersion(selectedVersion.split("_").join("."));
            setSelectedVersion('None');
            document.querySelectorAll('#pac_da_diviChangelogDetails>.details>.card').forEach(function (el) {
                el.style.display = 'none';
            });
            document.getElementById("pac_da_loading_spinner").style.display = 'none';
            setStatus(true);
            setTimeout(function () {
                setStatus(false);
            }, 5000);
        }).catch(function (err) {
            document.getElementById("pac_da_loading_spinner").style.display = 'none';
        });
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_diviChangelog' },
        wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/change divi version.png', alt: 'Setting Image' }),
        wp.element.createElement(
            'div',
            { className: 'pac_da_diviChangelog_inner' },
            wp.element.createElement(
                'span',
                { className: 'title' },
                'Install Any Version Of The Divi Theme'
            ),
            wp.element.createElement(
                'p',
                { className: 'descrption' },
                'This tool allows you to select and install any version of the Divi Theme. This tool is useful for troubleshooting or when your site is affected by a known issue in a specific version. Make sure you have a full site backup before proceeding. To begin, select a version below and review the details. Then continue to install the selected version.'
            ),
            wp.element.createElement(
                'div',
                { className: 'currentVersion' },
                'Current Version ',
                props.diviCurrentVersion
            ),
            props.usernameApikey.username !== null & props.usernameApikey.username !== "" & props.usernameApikey.status === "active" ? wp.element.createElement(
                'div',
                { id: 'pac_da_diviChangelogDetails' },
                wp.element.createElement(
                    'select',
                    { className: 'options', onChange: changeDiviVersion, value: selectedVersion },
                    wp.element.createElement(
                        'option',
                        { className: 'option', value: 'None' },
                        'Select Version To Install'
                    ),
                    props.diviChangelogOptions.map(function (opt) {
                        return !(parseInt(opt['value'].split("_")[0]) === parseInt(props.diviCurrentVersion.split(".")[0]) & parseInt(opt['value'].split("_")[1]) === parseInt(props.diviCurrentVersion.split(".")[1]) & parseInt(opt['value'].split("_")[2]) === parseInt(props.diviCurrentVersion.split(".")[2])) ? wp.element.createElement(
                            'option',
                            { key: opt.value, className: 'option', value: opt.value },
                            opt.label
                        ) : "";
                    })
                ),
                wp.element.createElement(
                    'div',
                    { className: 'details' },
                    props.diviChangelogVersions.map(function (val) {
                        return wp.element.createElement(
                            'div',
                            { key: val.id, id: val.id, className: 'card', style: { display: 'none' } },
                            wp.element.createElement(
                                'div',
                                { className: 'version' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M7.70846 16.4774C7.93051 16.5669 8.16827 16.611 8.40766 16.6072C8.64584 16.6175 8.88367 16.5798 9.107 16.4964C9.33032 16.4129 9.53459 16.2855 9.70767 16.1215L14.6362 11.1929C14.8243 11.0064 14.9726 10.7836 15.072 10.538C15.1715 10.2925 15.2201 10.0292 15.2148 9.76437V6.07148C15.2129 5.74053 15.0806 5.42371 14.8466 5.18969C14.6126 4.95568 14.2957 4.82335 13.9648 4.82148H10.2719C10.0073 4.81784 9.74456 4.86721 9.49923 4.96657C9.2539 5.06592 9.03091 5.21331 8.84337 5.40009L3.91482 10.3287C3.74544 10.4995 3.61201 10.7026 3.52245 10.9259C3.43289 11.1492 3.38899 11.3881 3.39336 11.6286C3.3931 11.8622 3.43907 12.0935 3.52856 12.3093C3.61804 12.525 3.74932 12.721 3.91482 12.8858L7.11481 16.0858C7.28457 16.2546 7.48641 16.3878 7.70846 16.4774ZM9.89165 5.96083C10.0008 5.91544 10.118 5.89229 10.2362 5.89291H13.9291C13.9764 5.89291 14.0219 5.91173 14.0554 5.94522C14.0889 5.97871 14.1076 6.02412 14.1076 6.07148V9.76437C14.1083 9.8826 14.0852 9.99977 14.0398 10.109C13.9944 10.2181 13.9276 10.3171 13.8434 10.4001L8.91482 15.3287C8.8439 15.3993 8.75893 15.4542 8.66541 15.4899C8.57189 15.5256 8.47191 15.5412 8.37196 15.5358C8.18457 15.535 8.00499 15.4606 7.87195 15.3287L4.67196 12.1287C4.60224 12.0586 4.54779 11.9748 4.51214 11.8825C4.47648 11.7903 4.46036 11.6917 4.46479 11.593C4.46425 11.499 4.48226 11.4058 4.51781 11.3188C4.55335 11.2317 4.60576 11.1525 4.67196 11.0858L9.60051 6.15719C9.68347 6.07293 9.78246 6.00622 9.89165 5.96083ZM10.6495 9.35062C10.9509 9.65202 11.3597 9.82129 11.7859 9.82129C12.2122 9.82129 12.621 9.65202 12.9224 9.35062C13.2238 9.04922 13.3931 8.64039 13.3931 8.21415C13.3931 7.7879 13.2238 7.37916 12.9224 7.07776C12.621 6.77636 12.2122 6.607 11.7859 6.607C11.3597 6.607 10.9509 6.77636 10.6495 7.07776C10.3481 7.37916 10.1788 7.7879 10.1788 8.21415C10.1788 8.64039 10.3481 9.04922 10.6495 9.35062ZM11.4071 7.83538C11.5076 7.73491 11.6438 7.67843 11.7859 7.67843C11.9274 7.68028 12.0626 7.73732 12.1627 7.83738C12.2628 7.93745 12.3198 8.07264 12.3216 8.21415C12.3198 8.35565 12.2628 8.49084 12.1627 8.59091C12.0626 8.69097 11.9274 8.74801 11.7859 8.74986C11.6438 8.74986 11.5076 8.69347 11.4071 8.593C11.3066 8.49253 11.2502 8.35623 11.2502 8.21415C11.2502 8.07207 11.3066 7.93584 11.4071 7.83538Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Version ',
                                    val['version']
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'date' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M12.6786 5.5143H13.5715C14.0925 5.5143 14.5921 5.72122 14.9605 6.0896C15.3289 6.45797 15.5358 6.95762 15.5358 7.47859V13.55C15.5358 14.071 15.3289 14.5706 14.9605 14.939C14.5921 15.3074 14.0925 15.5143 13.5715 15.5143H6.42864C5.90768 15.5143 5.40807 15.3074 5.0397 14.939C4.67132 14.5706 4.46436 14.071 4.46436 13.55V7.47859C4.46436 6.95762 4.67132 6.45797 5.0397 6.0896C5.40807 5.72122 5.90768 5.5143 6.42864 5.5143H7.3215V4.97859C7.3215 4.83651 7.37794 4.70028 7.4784 4.59982C7.57887 4.49935 7.71513 4.44287 7.85721 4.44287C7.99872 4.44472 8.13391 4.50176 8.23397 4.60182C8.33404 4.70189 8.39108 4.83708 8.39293 4.97859V5.5143H11.6072V4.97859C11.6072 4.83651 11.6637 4.70028 11.7641 4.59982C11.8646 4.49935 12.0008 4.44287 12.1429 4.44287C12.2844 4.44472 12.4196 4.50176 12.5197 4.60182C12.6198 4.70189 12.6768 4.83708 12.6786 4.97859V5.5143ZM14.2029 14.1814C14.3703 14.0139 14.4644 13.7868 14.4644 13.55V9.80001H5.53578V13.55C5.53578 13.7868 5.62988 14.0139 5.79732 14.1814C5.96476 14.3488 6.19184 14.4429 6.42864 14.4429H13.5715C13.8083 14.4429 14.0354 14.3488 14.2029 14.1814ZM5.53578 8.72859H14.4644V7.47859C14.4644 7.24178 14.3703 7.01466 14.2029 6.84722C14.0354 6.67978 13.8083 6.58573 13.5715 6.58573H12.6786V7.12144C12.6768 7.26295 12.6198 7.39814 12.5197 7.4982C12.4196 7.59827 12.2844 7.65531 12.1429 7.65716C12.0008 7.65716 11.8646 7.60068 11.7641 7.50021C11.6637 7.39974 11.6072 7.26352 11.6072 7.12144V6.58573H8.39293V7.12144C8.39108 7.26295 8.33404 7.39814 8.23397 7.4982C8.13391 7.59827 7.99872 7.65531 7.85721 7.65716C7.71513 7.65716 7.57887 7.60068 7.4784 7.50021C7.37794 7.39974 7.3215 7.26352 7.3215 7.12144V6.58573H6.42864C6.19184 6.58573 5.96476 6.67978 5.79732 6.84722C5.62988 7.01466 5.53578 7.24178 5.53578 7.47859V8.72859ZM7.14293 10.8929H7.85721C8.15308 10.8929 8.39293 11.1327 8.39293 11.4286V12.1429C8.39293 12.4388 8.15308 12.6786 7.85721 12.6786H7.14293C6.84706 12.6786 6.60721 12.4388 6.60721 12.1429V11.4286C6.60721 11.1327 6.84706 10.8929 7.14293 10.8929Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Updated ',
                                    val['date']
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'changes' },
                                wp.element.createElement(
                                    'svg',
                                    { width: '20', height: '20', viewBox: '0 0 20 20', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                    wp.element.createElement('path', { d: 'M14.5142 5.92136L14.0927 5.49995C13.8834 5.29114 13.635 5.12556 13.3617 5.01281C13.0884 4.90005 12.7955 4.84229 12.4999 4.84278C11.9006 4.84146 11.3252 5.0778 10.8999 5.49995L9.62131 6.78562L4.97845 11.4285C4.87796 11.5288 4.82141 11.665 4.82129 11.8071V14.6642C4.82129 14.8063 4.87773 14.9426 4.97819 15.0431C5.07866 15.1435 5.21492 15.1999 5.357 15.1999H8.21415C8.35587 15.1983 8.49151 15.142 8.59274 15.0428L13.2213 10.4071L14.4856 9.14279C14.6967 8.93479 14.8641 8.68675 14.9782 8.41325C15.0923 8.13975 15.1506 7.84628 15.1499 7.54995C15.1583 7.24976 15.1064 6.95088 14.9972 6.67113C14.888 6.39138 14.7237 6.13643 14.5142 5.92136ZM7.99272 14.1285H5.89272V12.0285L9.99986 7.92139L12.0999 10.0214L7.99272 14.1285ZM13.757 8.3571L12.857 9.26425L10.757 7.16421L11.657 6.25705C11.8838 6.04255 12.1841 5.92301 12.4963 5.92301C12.8085 5.92301 13.1088 6.04255 13.3356 6.25705L13.757 6.67139C13.9801 6.89528 14.1059 7.19812 14.107 7.5142C14.1018 7.82316 13.9763 8.1179 13.757 8.33565V8.3571Z' })
                                ),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    'Changes'
                                )
                            ),
                            wp.element.createElement(
                                'div',
                                { className: 'points' },
                                val.points.map(function (point) {
                                    return wp.element.createElement(
                                        'p',
                                        { key: Math.random(1, 99999) },
                                        point.replace(/^[-\s]+/, '')
                                    );
                                })
                            )
                        );
                    })
                ),
                selectedVersion !== 'None' ? wp.element.createElement(
                    'div',
                    { id: selectedVersion, className: 'btn', onClick: installSelectedVersion },
                    'Install Version ',
                    selectedVersion.split("_").join(".")
                ) : '',
                status === true ? wp.element.createElement(
                    'span',
                    { className: 'title' },
                    ' Version ',
                    props.diviCurrentVersion,
                    ' Successfully Installed!'
                ) : ''
            ) : wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'span',
                    { className: 'authTitle' },
                    'Authentication Required'
                ),
                wp.element.createElement(
                    'p',
                    { className: 'authDescrption' },
                    'Please add your Elegant Themes username and API key in the Divi Theme Options>Updates tab in order to use this tool.'
                )
            )
        )
    );
};
exports.default = Changediviveriosn;

/***/ }),
/* 474 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

var _CustomQuickLink = __webpack_require__(475);

var _CustomQuickLink2 = _interopRequireDefault(_CustomQuickLink);

var _Environments = __webpack_require__(476);

var _Environments2 = _interopRequireDefault(_Environments);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var AdminBar = function AdminBar(props) {

  // Load graphics
  var diviQuickLinks = pacDaAppLocalizer.plugin_url + 'include/img/Divi Quick Links.png';
  var themeBuilderTemplateDetails = pacDaAppLocalizer.plugin_url + 'include/img/Theme Builder Template Details.png';
  var hideAdminBar = pacDaAppLocalizer.plugin_url + 'include/img/Hide Admin Bar.png';
  var removeHowdy = pacDaAppLocalizer.plugin_url + 'include/img/Remove Howdy.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'AdminBar',
      value: JSON.stringify(props.utilityCards),
      environment: JSON.stringify(props.environmentsData),
      CQL: props.customQuickLinks,
      Parent: props.customQuickLinksParent,
      Icon: props.customQuickLinksIcon,
      Json: JSON.stringify(props.customQuickLinksJson)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleQuickLinks = function handleQuickLinks(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { quickLinks: val }));
  };
  var handleTBTDetails = function handleTBTDetails(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { tBTDetails: val }));
  };
  var handleRemoveHowdy = function handleRemoveHowdy(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { removeHowdy: val }));
  };
  var handleAdminbarEverywhere = function handleAdminbarEverywhere(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { adminbarEverywhere: val }));
  };
  var handleAdminbarFrontend = function handleAdminbarFrontend(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { adminbarFrontend: val }));
  };
  var handleAdminbarHover = function handleAdminbarHover(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { adminbarHover: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: diviQuickLinks, btnValue: props.utilityCards.quickLinks, setBtnValue: handleQuickLinks, title: 'Add Divi Quick Links To Admin Bar', description: 'The settings for the Divi theme are located under the Divi submenu in the WordPress dashboard sidebar menu. Often it would be nice to jump directly to the Theme Options to adjust a setting, quickly access the Theme Builder templates, or update a layout in the Divi Library. But these links are not very conveniently located, and from the frontend it requires several extra clicks to access them. Enabling this setting will add the Divi menu items to the WordPress admin bar (after reloading the page) so they can be easily accessed from anywhere.' }),
      wp.element.createElement(_CustomQuickLink2.default, {
        customQuickLinks: props.customQuickLinks,
        setCustomQuickLinks: props.setCustomQuickLinks,
        customQuickLinksIcon: props.customQuickLinksIcon,
        setCustomQuickLinksIcon: props.setCustomQuickLinksIcon,
        customQuickLinksParent: props.customQuickLinksParent,
        setCustomQuickLinksParent: props.setCustomQuickLinksParent,
        customQuickLinksJson: props.customQuickLinksJson,
        setCustomQuickLinksJson: props.setCustomQuickLinksJson
      }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: themeBuilderTemplateDetails, btnValue: props.utilityCards.tBTDetails, setBtnValue: handleTBTDetails, title: 'Show Theme Builder Template Details In Admin Bar', description: 'When viewing the frontend of your site or while working in the Divi Visual Builder, there is no way to know if the page or post is using a Divi Theme builder template, and if so, which one or any other details about it. This can be quite frustrating, as this can be very important to know while viewing or working on the site. We have resolved this issue with a very exciting feature! Enabling this setting will automatically show the details about the current Divi Theme Builder template in the WordPress admin bar at the top.' }),
      wp.element.createElement(_Environments2.default, { diviGlobalColor: props.diviGlobalColor, colorPalette: props.diviColorPalette, environmentsData: props.environmentsData, setEnvironmentsData: props.setEnvironmentsData }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: removeHowdy, btnValue: props.utilityCards.removeHowdy, setBtnValue: handleRemoveHowdy, title: 'Remove “Howdy” From Before user Name In Admin Bar', description: 'WordPress includes the greeting “Howdy” by default before the logged-in user’s name in the right side of the admin bar at the top of your site. However, some users may not like this, especially for clients. Enabling this setting will remove the word “Howdy” from before the user name for all users in the WordPress admin bar.' }),
      wp.element.createElement(_SettingCard2.default, {
        inputField: 'adminbar',
        settingImg: hideAdminBar,
        adminbarEverywhere: props.utilityCards.adminbarEverywhere,
        setAdminbarEverywhere: handleAdminbarEverywhere,
        adminbarFrontend: props.utilityCards.adminbarFrontend,
        setAdminbarFrontend: handleAdminbarFrontend,
        adminbarHover: props.utilityCards.adminbarHover,
        setAdminbarHover: handleAdminbarHover,
        title: 'Hide Admin Bar',
        description: 'WordPress has an admin bar across the top of the site which shows when a user is logged into the site. But sometimes, this is not needed and it can take up extra space, especially when working inside the Divi Visual Builder. These settings allow you to choose the visibility behavior of the admin bar, whether you want it to hide everywhere or only hide in the Divi Visual Builder, and whether you want to show it again on hover.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = AdminBar;

/***/ }),
/* 475 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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); } }

var CustomQuickLink = function CustomQuickLink(props) {

  var clickElement = null;
  var CQLData = [];

  var addNewField = function addNewField(e) {
    props.setCustomQuickLinksJson([].concat(_toConsumableArray(props.customQuickLinksJson), [{ label: "", url: "", child: "0", tab: "new" }]));
  };
  var deleteOldField = function deleteOldField(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData.splice(index, 1);
    props.setCustomQuickLinksJson(CQLData);
  };

  var childToParent = function childToParent(event) {
    var link = event.target;
    while (link.tagName !== 'svg') {
      link = link.parentNode;
    }
    clickElement = link.parentNode.dataset.index;
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[clickElement].child = '0';
    props.setCustomQuickLinksJson(CQLData);
  };
  var parentToChild = function parentToChild(event) {
    var link = event.target;
    while (link.tagName !== 'svg') {
      link = link.parentNode;
    }
    clickElement = link.parentNode.dataset.index;
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[clickElement].child = '1';
    props.setCustomQuickLinksJson(CQLData);
  };
  var moveUp = function moveUp(event) {
    var link = event.target;
    while (link.tagName !== 'svg') {
      link = link.parentNode;
    }
    clickElement = link.parentNode.dataset.index;
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[clickElement] = props.customQuickLinksJson[parseInt(clickElement) - 1];
    CQLData[parseInt(clickElement) - 1] = props.customQuickLinksJson[clickElement];
    if (clickElement === '1') {
      CQLData[0].child = '0';
    }
    props.setCustomQuickLinksJson(CQLData);
  };
  var moveDown = function moveDown(event) {
    var link = event.target;
    while (link.tagName !== 'svg') {
      link = link.parentNode;
    }
    clickElement = link.parentNode.dataset.index;
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[clickElement] = props.customQuickLinksJson[parseInt(clickElement) + 1];
    CQLData[parseInt(clickElement) + 1] = props.customQuickLinksJson[clickElement];
    if (clickElement === '0') {
      CQLData[0].child = '0';
    }
    props.setCustomQuickLinksJson(CQLData);
  };

  var handleLabel = function handleLabel(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[index].label = e.target.value;
    props.setCustomQuickLinksJson(CQLData);
  };
  var handleURL = function handleURL(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[index].url = e.target.value;
    props.setCustomQuickLinksJson(CQLData);
  };
  var handleCQLParent = function handleCQLParent(e) {
    props.setCustomQuickLinksParent(e.target.value);
  };
  var handleCQLIcon = function handleCQLIcon(e) {
    props.setCustomQuickLinksIcon(e.target.value);
  };
  var handleTab = function handleTab(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    CQLData = [].concat(_toConsumableArray(props.customQuickLinksJson));
    CQLData[index].tab = e.target.value;
    props.setCustomQuickLinksJson(CQLData);
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_custom_quick_link' },
    wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/Custom Quick Links.png', alt: 'Setting Image' }),
    wp.element.createElement(
      'div',
      { className: 'details' },
      wp.element.createElement(
        'span',
        null,
        'Build Your Own Quick Links Menu'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enabling this setting will allow you to build custom menu items and add them to the WordPress admin bar at the top of your site so they can be easily accessed from anywhere. Each menu item has a label field, URL field, and link target dropdown. You can rearrange and indent the menu items as needed using the up, down, left, and right arrows as you build the menu structure.'
      ),
      wp.element.createElement(
        'p',
        null,
        'For the parent menu icon, you can choose a dashicon ID ',
        wp.element.createElement(
          'a',
          { href: 'https://developer.wordpress.org/resource/dashicons/', target: '_blank' },
          'here'
        ),
        ' and copy and paste it into the field.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.customQuickLinks, setBtnValue: props.setCustomQuickLinks }),
      props.customQuickLinks ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'heading' },
          'Main Parent Link'
        ),
        wp.element.createElement(
          'div',
          { className: 'pac_da_quicklinks' },
          wp.element.createElement('input', { type: 'text', placeholder: 'Place dashicons slug here', value: props.customQuickLinksIcon, autoComplete: 'off', onChange: handleCQLIcon }),
          wp.element.createElement('input', { type: 'text', placeholder: 'Quick Links', value: props.customQuickLinksParent, autoComplete: 'off', onChange: handleCQLParent })
        ),
        wp.element.createElement(
          'div',
          { className: 'subheading' },
          'Custom Links'
        ),
        wp.element.createElement(
          'ul',
          { id: 'pac_da_custom_links' },
          Object.keys(props.customQuickLinksJson).map(function (key, ind) {
            return wp.element.createElement(
              'li',
              { key: key, 'data-index': ind, className: props.customQuickLinksJson[key].child === '1' ? 'pac_da_quicklinks child' : 'pac_da_quicklinks' },
              Object.keys(props.customQuickLinksJson).length > 1 ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                ind > 0 ? wp.element.createElement(
                  'svg',
                  { onClick: moveUp, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                  wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M20.9997 17.048C20.9997 17.2893 20.8984 17.5369 20.7024 17.721C20.3038 18.0956 19.6619 18.0956 19.27 17.721L13.4997 12.2988L7.72947 17.721C7.33757 18.0956 6.68893 18.0956 6.29703 17.721C5.89838 17.3464 5.89838 16.7496 6.29703 16.375L12.7835 10.2797C13.1822 9.90513 13.8241 9.90513 14.216 10.2797L20.7024 16.375C20.8984 16.5591 20.9997 16.8067 20.9997 17.048Z' })
                  )
                ) : '',
                Object.keys(props.customQuickLinksJson).length === ind + 1 ? '' : wp.element.createElement(
                  'svg',
                  { onClick: moveDown, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                  wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M7.00026 10.952C7.00026 10.7107 7.10161 10.4631 7.29756 10.279C7.69621 9.9044 8.3381 9.9044 8.72999 10.279L14.5003 15.7012L20.2705 10.279C20.6624 9.9044 21.3111 9.9044 21.703 10.279C22.1016 10.6536 22.1016 11.2504 21.703 11.625L15.2165 17.7203C14.8178 18.0949 14.1759 18.0949 13.784 17.7203L7.29756 11.625C7.10161 11.4409 7.00026 11.1933 7.00026 10.952Z' })
                  )
                )
              ) : '',
              props.customQuickLinksJson[key].child === '1' ? wp.element.createElement(
                'svg',
                { onClick: childToParent, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                wp.element.createElement(
                  'g',
                  null,
                  wp.element.createElement('path', { d: 'M17.048 7.00026C17.2893 7.00026 17.5369 7.10161 17.721 7.29756C18.0956 7.69621 18.0956 8.3381 17.721 8.72999L12.2988 14.5003L17.721 20.2705C18.0956 20.6624 18.0956 21.3111 17.721 21.703C17.3464 22.1016 16.7496 22.1016 16.375 21.703L10.2797 15.2165C9.90513 14.8178 9.90513 14.1759 10.2797 13.784L16.375 7.29756C16.5591 7.10161 16.8067 7.00026 17.048 7.00026Z' })
                )
              ) : wp.element.createElement(
                _react2.default.Fragment,
                null,
                ind !== 0 ? wp.element.createElement(
                  'svg',
                  { onClick: parentToChild, width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                  wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M10.952 20.9997C10.7107 20.9997 10.4631 20.8984 10.279 20.7024C9.9044 20.3038 9.9044 19.6619 10.279 19.27L15.7012 13.4997L10.279 7.72947C9.9044 7.33757 9.9044 6.68893 10.279 6.29703C10.6536 5.89838 11.2504 5.89838 11.625 6.29703L17.7203 12.7835C18.0949 13.1822 18.0949 13.8241 17.7203 14.216L11.625 20.7024C11.4409 20.8984 11.1933 20.9997 10.952 20.9997Z' })
                  )
                ) : ''
              ),
              wp.element.createElement('input', { type: 'text', placeholder: 'Label', value: props.customQuickLinksJson[key].label, autoComplete: 'off', onChange: handleLabel }),
              wp.element.createElement('input', { type: 'text', placeholder: 'URL', value: props.customQuickLinksJson[key].url, autoComplete: 'off', onChange: handleURL }),
              wp.element.createElement(
                'select',
                { className: 'options', onChange: handleTab, value: props.customQuickLinksJson[key].tab },
                wp.element.createElement(
                  'option',
                  { className: 'option', value: 'new' },
                  'New Tab'
                ),
                wp.element.createElement(
                  'option',
                  { className: 'option', value: 'same' },
                  'Same Tab'
                )
              ),
              wp.element.createElement('div', { className: 'delete', onClick: deleteOldField })
            );
          })
        ),
        wp.element.createElement(
          'button',
          { id: 'pac_da_add_new_link', onClick: addNewField },
          'Add New Link'
        )
      ) : ''
    )
  );
};
exports.default = CustomQuickLink;

/***/ }),
/* 476 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

var _ColorOption = __webpack_require__(25);

var _ColorOption2 = _interopRequireDefault(_ColorOption);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Environments = function Environments(props) {

  var Envirment = pacDaAppLocalizer.plugin_url + 'include/img/Envirment.png';

  var handleEnvironments = function handleEnvironments(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { enable: val }));
  };
  var handleEnvironment = function handleEnvironment(e) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { environment: e.target.value }));
  };
  var handleProdLabel = function handleProdLabel(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { prodLabel: val }));
  };
  var handleProdClr = function handleProdClr(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { prodClr: val }));
  };
  var handleStagLabel = function handleStagLabel(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { stagLabel: val }));
  };
  var handleStagClr = function handleStagClr(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { stagClr: val }));
  };
  var handleDevLabel = function handleDevLabel(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { devLabel: val }));
  };
  var handleDevClr = function handleDevClr(val) {
    props.setEnvironmentsData(Object.assign({}, props.environmentsData, { devClr: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_environment' },
    wp.element.createElement('img', { className: 'img', src: Envirment, alt: 'Envirment Graphic' }),
    wp.element.createElement(
      'div',
      { className: 'pac_da_environment_settings' },
      wp.element.createElement(
        'span',
        null,
        'Show Environment Badge In Admin Bar'
      ),
      wp.element.createElement(
        'p',
        null,
        'When working in WordPress, you may have different environments for one site such as production (live), staging or development. Each of these environments are for different purposes, but they look exactly the same! This can lead to accidental changes and errors on the wrong site, which can have crucial impacts. To help solve this problem, this setting provides a visual reminder that is always visible in the WordPress admin bar to offer website administrators the visual reminder of where exactly they are working. This simple feature reduces the risk of errors and enhancing workflow efficiency, especially when managing multiple sites or collaborating with a team. Enabling this setting will add a new badge with colored dot and text in the top right side of the WordPress admin bar to indicate the current WordPress environment. Each badge will appear automatically based on the current environment. You can adjust the name and color for each environment with the provided settings.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.environmentsData.enable, setBtnValue: handleEnvironments }),
      props.environmentsData.enable ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'setting' },
          wp.element.createElement(
            'span',
            null,
            'Override The Default Environment'
          ),
          wp.element.createElement(
            'p',
            null,
            'Some hosting providers do not properly set the WordPress environment in the wp-config.php file. This means our setting cannot provide the badge indicator, since the source code is not available. In this situation, you may choose an option from this dropdown setting to manually set the environment. Just keep in mind if you migrate the site or move environments, you would need to update this setting accordingly.'
          ),
          wp.element.createElement(
            'select',
            { className: 'options', onChange: handleEnvironment, value: props.environmentsData.environment === undefined ? 'default' : props.environmentsData.environment },
            wp.element.createElement(
              'option',
              { className: 'option', value: 'default' },
              'Default Environment'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', value: 'local' },
              'Local'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', value: 'development' },
              'Development'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', value: 'staging' },
              'Staging'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', value: 'production' },
              'Production'
            )
          ),
          wp.element.createElement(
            'span',
            null,
            'Production Label'
          ),
          wp.element.createElement(
            'p',
            null,
            'Write a custom text label for the production environment indicator badge.'
          ),
          wp.element.createElement('input', { type: 'text', placeholder: 'Production', value: props.environmentsData.prodLabel, autoComplete: 'off', onChange: function onChange(e) {
              return handleProdLabel(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            null,
            'Production Label Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the dot in the production environment indicator badge.'
          ),
          wp.element.createElement(_ColorOption2.default, { diviGlobalColor: props.diviGlobalColor, colorPalette: props.colorPalette, color: props.environmentsData.prodClr, setColor: handleProdClr })
        ),
        wp.element.createElement(
          'div',
          { className: 'setting' },
          wp.element.createElement(
            'span',
            null,
            'Staging Label'
          ),
          wp.element.createElement(
            'p',
            null,
            'Write a custom text label for the staging environment indicator badge.'
          ),
          wp.element.createElement('input', { type: 'text', placeholder: 'Staging', value: props.environmentsData.stagLabel, autoComplete: 'off', onChange: function onChange(e) {
              return handleStagLabel(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            null,
            'Staging Label Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the dot in the staging environment indicator badge.'
          ),
          wp.element.createElement(_ColorOption2.default, { diviGlobalColor: props.diviGlobalColor, colorPalette: props.colorPalette, color: props.environmentsData.stagClr, setColor: handleStagClr })
        ),
        wp.element.createElement(
          'div',
          { className: 'setting' },
          wp.element.createElement(
            'span',
            null,
            'Development Label'
          ),
          wp.element.createElement(
            'p',
            null,
            'Write a custom text label for the development environment indicator badge.'
          ),
          wp.element.createElement('input', { type: 'text', placeholder: 'Development', value: props.environmentsData.devLabel, autoComplete: 'off', onChange: function onChange(e) {
              return handleDevLabel(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            null,
            'Development Label Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the dot in the development environment indicator badge.'
          ),
          wp.element.createElement(_ColorOption2.default, { diviGlobalColor: props.diviGlobalColor, colorPalette: props.colorPalette, color: props.environmentsData.devClr, setColor: handleDevClr })
        )
      ) : ''
    )
  );
};
exports.default = Environments;

/***/ }),
/* 477 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var Editor = function Editor(props) {

  // Load graphics
  var enableClassicEditor = pacDaAppLocalizer.plugin_url + 'include/img/Enable Classic Editor.png';
  var enableDiviBuilder = pacDaAppLocalizer.plugin_url + 'include/img/Enable Divi Builder.png';
  var disableWPFullscreen = pacDaAppLocalizer.plugin_url + 'include/img/Disable WP Fullscreen.png';
  var hideWPEditorBtn = pacDaAppLocalizer.plugin_url + 'include/img/Hide WP Editor Btn.png';
  var hideDiviBuilderButton = pacDaAppLocalizer.plugin_url + 'include/img/Hide Divi Builder Button.png';
  var openInVisualBuilder = pacDaAppLocalizer.plugin_url + 'include/img/Open In Visual Builder.png';
  var duplicatePostsPages = pacDaAppLocalizer.plugin_url + 'include/img/Duplicate Posts And Pages.png';
  var disableComments = pacDaAppLocalizer.plugin_url + 'include/img/Disable Comments.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Editor',
      value: JSON.stringify(props.utilityCards),
      posttype: JSON.stringify(props.enableVbAllPosttype),
      posttypeCE: JSON.stringify(props.enableVbAllPosttypeCE)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleOpenVisualBuilder = function handleOpenVisualBuilder(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { openVisualBuilder: val }));
  };
  var handleDisableCommentSettings = function handleDisableCommentSettings(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { disableCommentSettings: val }));
  };
  var handleDuplicatePagePost = function handleDuplicatePagePost(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { duplicatePagePost: val }));
  };
  var handleFullScreen = function handleFullScreen(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { fullScreen: val }));
  };
  var handleEdidorBtn = function handleEdidorBtn(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { edidorBtn: val }));
  };
  var handleHideDiviBuilderBtn = function handleHideDiviBuilderBtn(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { hideDiviBuilderBtn: val }));
  };
  var handleEnableVbAllPosttypeCE = function handleEnableVbAllPosttypeCE(key, val) {
    props.setEnableVbAllPosttypeCE(Object.assign({}, props.enableVbAllPosttypeCE, _defineProperty({}, key, val)));
  };
  var handleEnableVbAllPosttype = function handleEnableVbAllPosttype(key, val) {
    props.setEnableVbAllPosttype(Object.assign({}, props.enableVbAllPosttype, _defineProperty({}, key, val)));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'posttypes', settingImg: enableClassicEditor, enableVbAllPosttypeName: props.enableVbAllPosttypeName, enableVbAllPosttype: props.enableVbAllPosttypeCE, handleEnableVbAllPosttype: handleEnableVbAllPosttypeCE, title: 'Enable Classic Editor Per Post Type', description: 'Divi provides a setting in Divi>Theme Options>Builder to enable the classic editor instead of the Gutenberg/block editor. However, this setting applies across the site for all post types, which is not ideal, because some post types require the block editor, and some require the classic editor. These settings allow you to choose which builder to use for each post type on your site. Enabling the setting for the associated post type will enable the Classic editor for that post type.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'posttypes', settingImg: enableDiviBuilder, enableVbAllPosttypeName: props.enableVbAllPosttypeName, enableVbAllPosttype: props.enableVbAllPosttype, handleEnableVbAllPosttype: handleEnableVbAllPosttype, title: 'Enable Divi Builder By Default For New Pages/Posts', description: null, description1: "Whenever you add a new page or post, it loads by default with the WordPress editor with a purple Use The Divi Builder button. But this requires clicking the button every time you add a new page or post. If you want to avoid the WordPress editor and always use the Divi Builder, you can enable these settings per post type to automatically activate the Divi Builder when adding new posts and pages.", description2: "Please use this feature carefully while keeping in mind that you may not want the Divi Builder to be enabled automatically for all post types. If you are using the classic editor or Gutenberg editor on any post type along with a Divi Theme Builder template, please make sure you do not enable the setting for that post type." }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: duplicatePostsPages, btnValue: props.utilityCards.duplicatePagePost, setBtnValue: handleDuplicatePagePost, title: 'Duplicate Posts And Pages', description: 'When working in Divi and WordPress, it can often save time creating new posts and pages by duplicating an existing one. This feature is not available by default, so we have added this incredibly convenient feature to our plugin to help speed up your workflow. Enabling this setting will add a new option to duplicate the page or post to a new draft when hovering over the item in the list in the All Pages and All Posts screens, or by hovering over the Edit Page or Edit Post button in the admin toolbar and clicking the Duplicate As Draft option.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hideWPEditorBtn, btnValue: props.utilityCards.edidorBtn, setBtnValue: handleEdidorBtn, title: 'Hide WordPress Editor Buttons', description: 'When you edit a page in the backend editing screen, there are two buttons that show - use the Divi/Visual Builder or use the Default/WordPress Editor. This can be very confusing, and also very scary because your client (or yourself) could accidently click the wrong button and destroy the page. If the WordPress editor button is clicked after building with Divi, the entire page design layout will be lost instantly forever. Or if the page is new, it can be confusing which button to click. To solve these serious issues, you can enable this setting to remove all of the WordPress editor buttons. When this is enabled, the only option you will see is to always edit with the Divi Builder, and you will never need to worry about accidently clicking the wrong button again!' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hideDiviBuilderButton, btnValue: props.utilityCards.hideDiviBuilderBtn, setBtnValue: handleHideDiviBuilderBtn, title: 'Hide Divi Builder Button In Classic Editor', description: 'There are some scenarios when you are using the Classic editor on a post type because you do not need the Divi Builder enabled. However, the “Use Divi Builder” button still shows, and this can cause issues if someone enables the builder. You can solve this by hiding the Divi Builder button when using the Classic editor. When this setting is enabled, the Use Divi Builder Button will be hidden from the page.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: disableWPFullscreen, btnValue: props.utilityCards.fullScreen, setBtnValue: handleFullScreen, title: 'Disable WordPress Fullscreen Editor And Keep Left Sidebar Menu Visible', description: 'When you edit or add a new page or post in WordPress, the familiar left sidebar menu is hidden and the Gutenberg editor area becomes fullwidth. But since you are using Divi, you don’t need or want this to happen. It also shows an introduction to Gutenberg modal the first time editing/adding a page or post, which is quite annoying. When this setting is enabled, you will not see the welcome modal, the editor will not become fullscreen, and the left menu will remain visible.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: openInVisualBuilder, btnValue: props.utilityCards.openVisualBuilder, setBtnValue: handleOpenVisualBuilder, title: 'Add Shortcut Link To Open Pages/Posts In Visual Builder', description: 'When you are in the backend of your WordPress dashboard and want to go to a page or post to work in the Divi Visual Builder, it can take many extra clicks. First you need to go to the list of all the pages or posts, then click edit, wait for the backend editor to load, then click the Build On The Front End button. This setting reduces the clicks by adding a shortcut link to each item in the list of pages or posts to open the front end Visual Builder directly.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: disableComments, btnValue: props.utilityCards.disableCommentSettings, setBtnValue: handleDisableCommentSettings, title: 'Completely Disable Comments', description: 'WordPress comes with a full commenting system for users to leave comments on posts or pages. However, if your website does not have a blog or does not require users to leave comments, then there is no need to have these features enabled or visible. Enabling this setting will completely disable the WordPress comments and discussion feature globally on your site.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = Editor;

/***/ }),
/* 478 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var VisualBuilder = function VisualBuilder(props) {

  // Load graphics
  var escapeKey = pacDaAppLocalizer.plugin_url + 'include/img/Escape Key.png';
  var hidePremadeLayouts = pacDaAppLocalizer.plugin_url + 'include/img/Hide Premade Layouts.png';
  var disableDiviAI = pacDaAppLocalizer.plugin_url + 'include/img/Completely Disable Divi AI.png';
  var hideDiviCloud = pacDaAppLocalizer.plugin_url + 'include/img/Hide Divi Cloud.png';
  var exploreMoreDiviModules = pacDaAppLocalizer.plugin_url + 'include/img/Explore More Divi Modules.png';
  var findMoreLayouts = pacDaAppLocalizer.plugin_url + 'include/img/Find More Layouts.png';
  var toolbarSticky = pacDaAppLocalizer.plugin_url + 'include/img/Toolbar Sticky.png';
  var hTMLTabHeight = pacDaAppLocalizer.plugin_url + 'include/img/HTML Tab Height.png';
  var popupSettingHeight = pacDaAppLocalizer.plugin_url + 'include/img/Popup Setting Height.png';
  var iconPickerHeight = pacDaAppLocalizer.plugin_url + 'include/img/Icon Picker Height.png';
  var swapPositionOfGlobalAndSaved = pacDaAppLocalizer.plugin_url + 'include/img/Swap Position Of Global And Saved.png';
  var textPopover = pacDaAppLocalizer.plugin_url + 'include/img/Text Popover.png';
  var wideRows = pacDaAppLocalizer.plugin_url + 'include/img/Wide Rows.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'VisualBuilder',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleEscKey = function handleEscKey(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { escKey: val }));
  };
  var handleHideLayout = function handleHideLayout(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { hideLayout: val }));
  };
  var handleDisableAi = function handleDisableAi(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { disableAi: val }));
  };
  var handleDisableDiviCloud = function handleDisableDiviCloud(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { disableDiviCloud: val }));
  };
  var handleHideExploreBtn = function handleHideExploreBtn(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { hideExploreBtn: val }));
  };
  var handleHideLayoutsBtn = function handleHideLayoutsBtn(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { hideLayoutsBtn: val }));
  };
  var handleStickyToolbar = function handleStickyToolbar(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { stickyToolbar: val }));
  };
  var handleHtmlArea = function handleHtmlArea(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { htmlArea: val }));
  };
  var handleHtmlAreaValue = function handleHtmlAreaValue(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { htmlAreaValue: val }));
  };
  var handlePopupHeight = function handlePopupHeight(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { popupHeight: val }));
  };
  var handlePopupHeightValue = function handlePopupHeightValue(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { popupHeightValue: val }));
  };
  var handleIconAreaHeight = function handleIconAreaHeight(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { iconAreaHeight: val }));
  };
  var handleIconAreaHeightValue = function handleIconAreaHeightValue(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { iconAreaHeightValue: val }));
  };
  var handleSwapSandGbtn = function handleSwapSandGbtn(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { swapSandGbtn: val }));
  };
  var handleTextPopover = function handleTextPopover(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { textPopover: val }));
  };
  var handleRowWidth = function handleRowWidth(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { rowWidth: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: escapeKey, btnValue: props.utilityCards.escKey, setBtnValue: handleEscKey, title: 'Use The Escape Key To Enable/Exit The Divi Builder', description: 'If you enjoy using keyboard shortcuts, then this handy feature is for you! With this setting enabled you can enable or exit the Visual Builder from the frontend by simply clicking the ESC key on your keyboard!' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hidePremadeLayouts, btnValue: props.utilityCards.hideLayout, setBtnValue: handleHideLayout, title: 'Hide Premade Layouts', description: 'Divi provides a large collection of free premade layouts which can be imported into your page very easily form the Visual Builder settings. However, there are several reasons why you may want to hide these, especially from your clients. There is no option to handle this in Divi, but thankfully now you can disable the premade layouts easily. Enabling this setting will completely hide the Premade Layouts tab from the Load From Library screen.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: disableDiviAI, btnValue: props.utilityCards.disableAi, setBtnValue: handleDisableAi, title: 'Completely Disable Divi AI', description: 'Everyone has mixed opinions about AI in general, but there are some legitimate concerns about using it related to privacy or having it available on client websites. Even though Divi provides a way to disable their AI feature in the Role Editor, this is enabled by default for all sites, and can still be accessed easily. Enabling this setting will completely hide the Divi AI features across the website for all users.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hideDiviCloud, btnValue: props.utilityCards.disableDiviCloud, setBtnValue: handleDisableDiviCloud, title: 'Hide Divi Cloud', description: 'Elegant Themes, the creator of Divi, has a great service called Divi Cloud, which is mentioned various places throughout the builder. However, in some situations you may want to hide any mention or setting related to Divi Cloud from clients or other users, or even for yourself if you are not interested in using it. Currently, there is no setting to disable or hide Divi cloud, so we have added this in Divi Assistant. Enabling this setting will completely hide the Divi Cloud features throughout the Divi builder interface.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: exploreMoreDiviModules, btnValue: props.utilityCards.hideExploreBtn, setBtnValue: handleHideExploreBtn, title: 'Hide Button To Explore More Divi Modules In the Add New Module Window', description: 'When you click the gray plus (+) icon in the Divi Visual Builder to add a new module to your layout, the window opens with the list of modules you can scroll through to choose which one you want to add. At the bottom of the list, a blue button which says “Explore More Modules” is displayed, which links to the Divi Marketplace. This is very helpful if you are looking to add 3rd party modules or plugins (we also are selling many of our other Pee-Aye Creative plugins on the Divi Marketplace). But sometimes you may not want your clients or other users to click this button, as it could be confusing to them and you may simply prefer it to be hidden. Enabling this setting will hide the explore more modules button from the add new modules window for all users.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: findMoreLayouts, btnValue: props.utilityCards.hideLayoutsBtn, setBtnValue: handleHideLayoutsBtn, title: 'Hide Promo About Finding More Layouts In The Divi marketplace', description: 'When you open the Load From Library window in the Divi Visual Builder, there is a promo in the left sidebar of the Premade Layouts tab informing users that they can download more layouts from the Divi Marketplace. While this is great for most people, you may want to hide this from some users such as clients or other users, or even for yourself if you are not interested in it. Currently, there is no setting to disable or hide this promo, so we have added this in Divi Assistant. Enabling this setting will completely hide the promo about finding more layouts in the Divi Marketplace.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: toolbarSticky, btnValue: props.utilityCards.stickyToolbar, setBtnValue: handleStickyToolbar, title: 'Make The Text Editor Toolbar Sticky Within Module Textareas', description: null, description1: 'Within each textarea in the Divi builder is the editor toolbar with options to make some words bold, change the heading level, add a link, make a bullet list, add a blockquote, etc. But if the text is getting long in the text editor toolbar, it requires scrolling up and down repeatedly just to find and use those options.', description2: 'Enabling this setting will solve this frustrating problem by adding a new feature to the Divi builder to make the text editor toolbar sticky when you scroll. This means the editor toolbar will stay at a fixed position at the top when you write and scroll within a textarea, making it super convenient to access the toolbar options.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: hTMLTabHeight, btnValue: props.utilityCards.htmlArea, setBtnValue: handleHtmlArea, fieldTitle: 'Minimum Height', fieldValue: props.utilityCards.htmlAreaValue, setFieldValue: handleHtmlAreaValue, placeholder: '400px', title: 'Increase The Height Of The Text (HTML) Tab Textarea', description: 'All the textareas in Divi modules have two tabs, the Visual tab for seeing the preview of the HTML formatting and the Text tab for editing the actual HTML code of the text. But when you switch to the Text tab, the height of the editing area is not tall enough, making it difficult to work. Enabling this setting and entering your desired minimum height in pixels into the input field will solve this annoying user experience issue by making the Text field taller by default.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: popupSettingHeight, btnValue: props.utilityCards.popupHeight, setBtnValue: handlePopupHeight, fieldTitle: 'Minimum Height', fieldValue: props.utilityCards.popupHeightValue, setFieldValue: handlePopupHeightValue, placeholder: '500px', title: 'Increase The Height Of The Divi Builder Settings Popup', description: 'This setting affects any of the inner popup setting windows within a module settings window such as when adding links or selecting dynamic content. This window by default is very short, which creates a little blue scrollbar and it requires scrolling every time. Enabling this setting and entering your desired maximum height in pixels into the input field will solve this little user experience issue by making the window taller by default.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: iconPickerHeight, btnValue: props.utilityCards.iconAreaHeight, setBtnValue: handleIconAreaHeight, fieldTitle: 'Minimum Height', fieldValue: props.utilityCards.iconAreaHeightValue, setFieldValue: handleIconAreaHeightValue, placeholder: '300px', title: 'Increase The Icon Picker Area Height', description: 'The default height of the icon picker area within modules in the Divi Builder is not very tall, which makes it difficult to select the perfect icon. Enabling this setting and entering your desired minimum height in pixels into the input field will increase the height of all icon pickers in any Divi modules, giving a nice little user experience improvement!' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: swapPositionOfGlobalAndSaved, btnValue: props.utilityCards.swapSandGbtn, setBtnValue: handleSwapSandGbtn, title: 'Swap Position Of Saved And Global Color Buttons', description: 'By default, the order of the items is Saved on the first, and Global second. For this setting, we will show Global first and Saved second.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: textPopover, btnValue: props.utilityCards.textPopover, setBtnValue: handleTextPopover, title: 'Disable The Divi Inline Text Style Editor', description: 'When you click into any text while inside the Divi Visual Builder, a gray floating bar appears just above the mouse cursor with inline text styling options like bold, italic, color, font, etc. Some users may consider this text style editor as annoying and never use it, so we have created this setting to completely disable it if you prefer not to use it.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: wideRows, btnValue: props.utilityCards.rowWidth, setBtnValue: handleRowWidth, title: 'Make Rows Inside The Post Content Module 100% wide', description: 'The default row width in Divi is 80%, which is fine and can be adjusted to your preference. However, in situations when you enable the Divi Builder on a post or page that contains a Post Content Module in the Theme Builder template, it shows the row as 80% of the parent container, which means there is an unwanted 10% space each side. To solve this, you can enable this setting to make all rows inside the post content area 100% width to fill the parent container.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = VisualBuilder;

/***/ }),
/* 479 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var DiviLibrary = function DiviLibrary(props) {

  // Load graphics
  var duplicateDiviLibraryLayouts = pacDaAppLocalizer.plugin_url + 'include/img/Duplicate Divi Library Layouts.png';
  var exportDiviLibrary = pacDaAppLocalizer.plugin_url + 'include/img/Export Divi Library.png';
  var diviLibraryWidgets = pacDaAppLocalizer.plugin_url + 'include/img/Divi Library Layouts As Widgets.png';
  var diviLibraryShortcodes = pacDaAppLocalizer.plugin_url + 'include/img/Divi Library Shortcodes.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'DiviLibrary',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleDuplicateDiviLib = function handleDuplicateDiviLib(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { duplicateDiviLib: val }));
  };
  var handleExportDiviLib = function handleExportDiviLib(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { exportDiviLib: val }));
  };
  var handleDiviLibWidget = function handleDiviLibWidget(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { diviLibWidget: val }));
  };
  var handleDiviLibSC = function handleDiviLibSC(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { diviLibSC: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: duplicateDiviLibraryLayouts, btnValue: props.utilityCards.duplicateDiviLib, setBtnValue: handleDuplicateDiviLib, title: 'Duplicate Divi Library Items', description: 'Sometimes users want to duplicate a layout, section, row, or module in the Divi Library, but there is no easy or quick way to do this by default. Enabling this setting will add a new option when hovering over each item in the Divi Library list to duplicate the item instantly.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: exportDiviLibrary, btnValue: props.utilityCards.exportDiviLib, setBtnValue: handleExportDiviLib, title: 'Add Link To Export Divi Library Items With One Click', description: 'If you want to only export one individual layout from the Divi Library, it requires many extra clicks and there is no easy way to do it. It requires clicking the export button, selecting the checkbox for the item you want to export, selecting the checkbox to only export selected items, typing the file name, and then clicking the export button. Now you can do this with one click! Enabling this setting will add a new option when hovering over each item in the Divi Library list to export the individual layout instantly.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: diviLibraryWidgets, btnValue: props.utilityCards.diviLibWidget, setBtnValue: handleDiviLibWidget, title: 'Use Divi Library Layouts As Widgets', description: 'You may want to use a Divi module, row, or section as a widget to appear in the Divi Sidebar module or the default Divi sidebar area. This is not possible by default, but enabling this setting will add the ability to show Divi Library layouts in widgets in Appearance>Widgets.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: diviLibraryShortcodes, btnValue: props.utilityCards.diviLibSC, setBtnValue: handleDiviLibSC, title: 'Use Divi Library Layouts Anywhere With Shortcodes', description: 'If you want to nest a Divi module, row, or section inside of another module, you can do it easily with this feature! Enabling this setting will add a unique shortcode next to each layout in the Divi Library which you can click to copy. Then simply add the shortcode into a textarea inside any Divi module.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = DiviLibrary;

/***/ }),
/* 480 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var PostTypes = function PostTypes(props) {

  // Load graphics
  var hideProjects = pacDaAppLocalizer.plugin_url + 'include/img/Hide Projects.png';
  var renameProjects = pacDaAppLocalizer.plugin_url + 'include/img/Rename Projects.png';
  var ShowTBTAsCPTs = pacDaAppLocalizer.plugin_url + 'include/img/Show TBT As CPTs.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'PostTypes',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleHideProject = function handleHideProject(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { hideProject: val }));
  };
  var handleRenameProject = function handleRenameProject(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { renameProject: val }));
  };
  var handlePluralName = function handlePluralName(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { pluralName: val }));
  };
  var handleSingularName = function handleSingularName(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { singularName: val }));
  };
  var handleSlug = function handleSlug(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { slug: val }));
  };
  var handlePluralCategory = function handlePluralCategory(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { pluralCategory: val }));
  };
  var handleSingularCategory = function handleSingularCategory(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { singularCategory: val }));
  };
  var handleSlugCategory = function handleSlugCategory(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { slugCategory: val }));
  };
  var handlePluralTag = function handlePluralTag(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { pluralTag: val }));
  };
  var handleSingularTag = function handleSingularTag(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { singularTag: val }));
  };
  var handleSlugTag = function handleSlugTag(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { slugTag: val }));
  };
  var handleMenuIcon = function handleMenuIcon(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { menuIcon: val }));
  };
  var handleThemeBuilderCPT = function handleThemeBuilderCPT(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { themeBuilderCPT: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hideProjects, btnValue: props.utilityCards.hideProject, setBtnValue: handleHideProject, title: 'Hide Projects Post Type', description: 'The Divi Theme comes with a default WordPress post type called “Projects” used in the Divi Portfolio modules. These are not needed on every site, so if you are not using it, simply enable this setting and the Projects post type will not show.' }),
      props.utilityCards.hideProject !== true ? wp.element.createElement(_SettingCard2.default, { inputField: 'rename', settingImg: renameProjects, btnValue: props.utilityCards.renameProject, setBtnValue: handleRenameProject, pluralName: props.utilityCards.pluralName, setPluralName: handlePluralName, singularName: props.utilityCards.singularName, setSingularName: handleSingularName, slug: props.utilityCards.slug, setSlug: handleSlug, pluralCategory: props.utilityCards.pluralCategory, setPluralCategory: handlePluralCategory, singularCategory: props.utilityCards.singularCategory, setSingularCategory: handleSingularCategory, slugCategory: props.utilityCards.slugCategory, setSlugCategory: handleSlugCategory, pluralTag: props.utilityCards.pluralTag, setPluralTag: handlePluralTag, singularTag: props.utilityCards.singularTag, setSingularTag: handleSingularTag, slugTag: props.utilityCards.slugTag, setSlugTag: handleSlugTag, menuIcon: props.utilityCards.menuIcon, setMenuIcon: handleMenuIcon, title: 'Rename Projects Post Type', description: 'If your website requires another WordPress post type besides Posts and Pages, but the default WordPress post type “Projects” that comes with Divi is not the best name for your needs, you can rename it and still use it. The settings below allow you to write your own labels and slugs which will change the Projects post type into whatever name you want. Keep in mind this post type can be used with the Divi Portfolio modules.' }) : "",
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: ShowTBTAsCPTs, btnValue: props.utilityCards.themeBuilderCPT, setBtnValue: handleThemeBuilderCPT, title: 'Show Theme Builder Templates As CPTs In Menu', description: 'Sometimes there is a very serious issue with the Divi Theme Builder that causes the templates to go missing. This can be scary, but don’t worry! This setting is here to save the day! Enabling this setting will show the Divi Theme Builder header, body, and footer templates as custom post types (CPT) in the WordPress admin menu on the left. This allows you to view and restore all the templates from the database on your site, even if they are missing from the Divi Theme Builder area. There is no need to keep this setting enabled, as you would only need to enable it temporarily if you encounter the issue.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = PostTypes;

/***/ }),
/* 481 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var SMTP = function SMTP(props) {
  var _useState = (0, _react.useState)(''),
      _useState2 = _slicedToArray(_useState, 2),
      testEmail = _useState2[0],
      setTestEmail = _useState2[1];

  var _useState3 = (0, _react.useState)(false),
      _useState4 = _slicedToArray(_useState3, 2),
      emailStatus = _useState4[0],
      setEmailStatus = _useState4[1];

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Utility',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var sendTestEmail = function sendTestEmail(e) {
    var isValidEmail = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(testEmail);
    if (isValidEmail) {
      document.getElementById("pac_da_loading_spinner").style.display = 'block';
      _axios2.default.post(updateData, {
        card: 'sendTestEmail',
        value: testEmail
      }).then(function (response) {
        if (response.data === true) {
          document.getElementById("pac_da_loading_spinner").classList.add("saved");
          setTimeout(function () {
            document.getElementById("pac_da_loading_spinner").classList.remove("saved");
            document.getElementById("pac_da_loading_spinner").style.display = 'none';
          }, 1000);
          setEmailStatus(true);
          setTimeout(function () {
            setEmailStatus(false);
          }, 2000);
        } else {
          alert('Email Not sent Successfully. Please try again.');
        }
      });
    } else {
      alert('Please enter valid email address.');
    }
  };

  var handleSmtpEnable = function handleSmtpEnable(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpEnable: val }));
  };
  var handleSmtpHost = function handleSmtpHost(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpHost: val }));
  };
  var handleSmtpEmail = function handleSmtpEmail(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpEmail: val }));
  };
  var handleSmtpEncryption = function handleSmtpEncryption(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpEncryption: val }));
  };
  var handleSmtpName = function handleSmtpName(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpName: val }));
  };
  var handleSmtpPort = function handleSmtpPort(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpPort: val }));
  };
  var handleSmtpTLS = function handleSmtpTLS(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpTLS: val }));
  };
  var handleSmtpAuthentication = function handleSmtpAuthentication(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpAuthentication: val }));
  };
  var handleSmtpUsername = function handleSmtpUsername(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpUsername: val }));
  };
  var handleSmtpPassword = function handleSmtpPassword(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { smtpPassword: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_scroll_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_scroll_setting' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/SMTP.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'pac_da_scroll_setting_inner smtp' },
        wp.element.createElement(
          'span',
          { className: 'heading' },
          'SMTP Settings'
        ),
        wp.element.createElement(
          'p',
          { className: 'description' },
          'By default, WordPress uses a PHP mail system to try to send mail from your website. However, since WordPress is not designed for natively sending emails, an SMTP (Simple Mail Transfer Protocol) server integration is essential for ensuring reliable email delivery from your WordPress website. Without this, your contact forms or other important email alerts and notifications may not send at all or may arrive in the spam folder. By configuring SMTP settings, you can bypass the limitations of PHP mail, ensuring your emails reach recipients\' inboxes instead of spam folders. We are excited to offer this essential feature directly in the Divi Assistant plugin. Enabling this setting will provide the settings needed to easily configure your SMTP email delivery settings directly within our plugin interface.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: props.utilityCards.smtpEnable, setBtnValue: handleSmtpEnable }),
        props.utilityCards.smtpEnable === true ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'SMTP Server Hostname'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'SMTP Host', value: props.utilityCards.smtpHost, autoComplete: 'off', onChange: function onChange(e) {
              return handleSmtpHost(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'SMTP From Email Address'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'SMTP From Email Address', value: props.utilityCards.smtpEmail, autoComplete: 'off', onChange: function onChange(e) {
              return handleSmtpEmail(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'SMTP From Name'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'SMTP From Name', value: props.utilityCards.smtpName, autoComplete: 'off', onChange: function onChange(e) {
              return handleSmtpName(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Encryption'
          ),
          wp.element.createElement(
            'select',
            { className: 'pac_da_select fullWidth', onChange: function onChange(e) {
                return handleSmtpEncryption(e.target.value);
              }, value: props.utilityCards.smtpEncryption },
            wp.element.createElement(
              'option',
              { className: 'option', key: 'none', value: 'none' },
              'None'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'ssl', value: 'ssl' },
              'SSL'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'tls', value: 'tls' },
              'TLS'
            )
          ),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'SMTP Port'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Port Number', value: props.utilityCards.smtpPort, autoComplete: 'off', onChange: function onChange(e) {
              return handleSmtpPort(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Auto TLS'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.utilityCards.smtpTLS, setBtnValue: handleSmtpTLS }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Authentication'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.utilityCards.smtpAuthentication, setBtnValue: handleSmtpAuthentication }),
          props.utilityCards.smtpAuthentication === true ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'span',
              { className: 'sub-heading' },
              'SMTP Username'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'SMTP Username', value: props.utilityCards.smtpUsername, autoComplete: 'off', onChange: function onChange(e) {
                return handleSmtpUsername(e.target.value);
              } }),
            wp.element.createElement(
              'span',
              { className: 'sub-heading' },
              'SMTP Password'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'SMTP Password', value: props.utilityCards.smtpPassword, autoComplete: 'off', onChange: function onChange(e) {
                return handleSmtpPassword(e.target.value);
              } })
          ) : ''
        ) : ''
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_scroll_setting' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/Test Email.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'pac_da_scroll_setting_inner smtp' },
        wp.element.createElement(
          'span',
          { className: 'heading' },
          'Test Email Sending'
        ),
        wp.element.createElement(
          'p',
          { className: 'description' },
          'If you are not sure if your website is properly sending emails, you can test it using our included email sending test tool. Simply enter your email address in the field below and click the send button. If it is successful, you will receive a test email in your inbox!'
        ),
        wp.element.createElement(
          'span',
          { className: 'sub-heading' },
          'Email Address'
        ),
        wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Email Address', value: testEmail, autoComplete: 'off', onChange: function onChange(e) {
            return setTestEmail(e.target.value);
          } }),
        wp.element.createElement(
          'div',
          { className: emailStatus === false ? 'pac_da_send_test_email' : 'pac_da_send_test_email noClick', onClick: emailStatus === false ? sendTestEmail : null },
          emailStatus === true ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'svg',
              { width: '29', height: '28', viewBox: '0 0 29 28', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
              wp.element.createElement('path', { d: 'M12.2571 18.25C12.0582 18.2498 11.8676 18.1707 11.7271 18.03L8.28705 14.5901C8.21629 14.5211 8.16004 14.4387 8.12164 14.3477C8.08325 14.2566 8.06348 14.1589 8.06348 14.0601C8.06348 13.9613 8.08325 13.8635 8.12164 13.7725C8.16004 13.6814 8.21629 13.599 8.28705 13.53C8.42767 13.3896 8.61833 13.3105 8.81708 13.3105C9.01583 13.3105 9.20642 13.3896 9.34705 13.53L12.2571 16.4399L18.7271 9.96997C18.8677 9.82952 19.0583 9.75073 19.2571 9.75073C19.4558 9.75073 19.6464 9.82952 19.787 9.96997C19.9275 10.1106 20.0064 10.3012 20.0064 10.5C20.0064 10.6988 19.9275 10.8894 19.787 11.03L12.787 18.03C12.6465 18.1707 12.4559 18.2498 12.2571 18.25Z' })
            ),
            wp.element.createElement(
              'span',
              null,
              'Test Email Sent Successfully'
            )
          ) : wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'svg',
              { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
              wp.element.createElement('path', { d: 'M16.1548 5.86108C15.7926 5.51932 15.3169 5.32343 14.8191 5.31107C14.5811 5.2751 14.338 5.29944 14.112 5.38181L4.78553 8.59535C4.46791 8.6989 4.19153 8.901 3.99655 9.17227C3.80158 9.44354 3.69815 9.76985 3.70124 10.1039C3.69822 10.4888 3.83653 10.8614 4.08997 11.151C4.34342 11.4407 4.69438 11.6272 5.07624 11.6753L9.68838 12.2882L10.3091 16.9239C10.3607 17.3029 10.5488 17.6501 10.8381 17.9003C11.1274 18.1506 11.498 18.2867 11.8805 18.2832C12.2076 18.2789 12.5257 18.1751 12.7923 17.9857C13.059 17.7962 13.2617 17.53 13.3734 17.2225L16.6419 7.86464C16.7063 7.67712 16.7434 7.48131 16.7519 7.28322V7.24395C16.7577 6.98406 16.7074 6.72599 16.6043 6.48734C16.5013 6.24869 16.3479 6.03507 16.1548 5.86108ZM15.5576 7.27536C15.5576 7.27536 15.5576 7.38536 15.5105 7.47179L12.2577 16.7982C12.2286 16.881 12.1759 16.9534 12.106 17.0065C12.0362 17.0596 11.9523 17.091 11.8648 17.0968C11.7672 17.0942 11.6735 17.0574 11.6002 16.9928C11.527 16.9281 11.4788 16.8398 11.4641 16.7432L10.8277 11.9582L13.342 9.44394C13.4523 9.33345 13.5143 9.18365 13.5143 9.02749C13.5143 8.87133 13.4523 8.72157 13.342 8.61108C13.2292 8.50211 13.0784 8.44117 12.9216 8.44117C12.7647 8.44117 12.614 8.50211 12.5012 8.61108L9.96336 11.1568L5.24907 10.5282C5.14833 10.5221 5.05402 10.4767 4.98642 10.4018C4.91882 10.3268 4.88337 10.2283 4.88768 10.1275C4.88494 10.0431 4.90943 9.96014 4.95755 9.89079C5.00566 9.82145 5.07481 9.76948 5.15479 9.74251L14.5048 6.52106C14.5582 6.5025 14.6164 6.5025 14.6698 6.52106H14.8269C15.021 6.52778 15.2058 6.60617 15.3455 6.74108C15.4083 6.80689 15.4573 6.88454 15.4897 6.96954C15.5221 7.05454 15.5372 7.14518 15.5341 7.23608L15.5576 7.27536Z' })
            ),
            wp.element.createElement(
              'span',
              null,
              'Send Test Email'
            )
          )
        )
      )
    )
  );
};
exports.default = SMTP;

/***/ }),
/* 482 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Media = function Media(props) {

  // Load graphics
  var enableSVGUploads = pacDaAppLocalizer.plugin_url + 'include/img/Enable SVG Uploads.png';
  var limitMaxUploadSize = pacDaAppLocalizer.plugin_url + 'include/img/Limit Max Upload Size.png';
  var replaceExistingImage = pacDaAppLocalizer.plugin_url + 'include/img/Replace Existing Image.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Media',
      value: JSON.stringify(props.mediaCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleSvgUploads = function handleSvgUploads(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { svgUploads: val }));
  };
  var handleFileSize = function handleFileSize(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { fileSize: val }));
  };
  var handleFileSizeValue = function handleFileSizeValue(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { fileSizeValue: val }));
  };
  var handleImgReplace = function handleImgReplace(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { imgReplace: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'temSvg', settingImg: enableSVGUploads, btnValue: props.mediaCards.svgUploads, setBtnValue: handleSvgUploads, mediaCards: props.mediaCards, setMediaCards: props.setMediaCards, title: 'Enable SVG Uploads (Admin Only)', description: 'SVG file uploads are disabled by WordPress by default due to security risks, so if you try to upload an SVG in Divi or WordPress, it will not work. We are excited to introduce a clever way to securely enable SVG file uploads! Enabling this setting will show an additional dropdown setting to choose from two important options. You can choose the option to always enable SVG uploads by default, which activates the code to allow it for Admin users whenever the setting is enabled, and disable the setting when not using it. You can also choose the option to require a confirmation button when uploading SVG files, which will only activate the code to allow SVG uploads temporarily. A button will appear when adding a file which you can click to temporarily allow the upload, then it will disable the code again when the file is uploaded. This is a very innovative solution not available anywhere else!' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: limitMaxUploadSize, btnValue: props.mediaCards.fileSize, setBtnValue: handleFileSize, fieldTitle: 'Maximum Upload Size', fieldValue: props.mediaCards.fileSizeValue, setFieldValue: handleFileSizeValue, placeholder: '512KB', title: 'Limit Maximum Media Upload Size', description: 'Some users may not be familiar with image optimization best practices and may inadvertently upload images that have a file size that is too big, causing a negative impact on the page load speed and SEO. To prevent this from happening, you can enable this setting and set your desired limit in kilobytes for the maximum file upload size.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: replaceExistingImage, btnValue: props.mediaCards.imgReplace, setBtnValue: handleImgReplace, fieldTitle: 'Maximum Upload Size', fieldValue: props.mediaCards.fileSizeValue, setFieldValue: handleFileSizeValue, placeholder: '512KB', title: 'Replace Existing Image', description: 'By default, when you want to replace an image on your site, and you upload the new file, WordPress creates a totally separate new file with its own ID, URL, filename, and publish date. Even if the filename is the same as the original, it still considers it a new separate file and adds a dash and number to the end of the filename, like filename-1 or filename-2. This is frustrating because you may be using that image multiple places, and simply want to update the image while keeping all the original details. Enabling this setting will activate a feature that allows you to easily replace an existing image in your Media Library by uploading a new file in its place. This will also update the image with the new one anywhere it is used on your site.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = Media;

/***/ }),
/* 483 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ImageAttributes = function ImageAttributes(props) {
  // Load graphics
  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';
  var hideImageTitleTooltips = pacDaAppLocalizer.plugin_url + 'include/img/Hide Image Title Tooltips.png';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Media',
      value: JSON.stringify(props.mediaCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleImgTitle = function handleImgTitle(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { imgTitle: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: hideImageTitleTooltips, btnValue: props.mediaCards.imgTitle, setBtnValue: handleImgTitle, title: 'Hide Image Title Text Tooltips On Hover', description: 'When you hover over some images on your Divi website, you will see the image title text appear in a tiny tooltip beside the mouse cursor. This feature is not related to SEO or alt text, so it is not important. There is not any good reason to have this tooltip show, and it can be annoying and unwanted for most users. Enabling this setting will automatically hide the title text from showing in the tooltip when hovering over images on your website.' })
    )
  );
};
exports.default = ImageAttributes;

/***/ }),
/* 484 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var AltText = function AltText(props) {
  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Media',
      value: JSON.stringify(props.mediaCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleUseAltText = function handleUseAltText(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { useAltText: val }));
  };
  var handleIgnoreAltText = function handleIgnoreAltText(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { ignoreAltText: val }));
  };
  var handleimgAltTitleFileName = function handleimgAltTitleFileName(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { imgAltTitleFileName: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { settingImg: 'no', inputField: 'btn', btnValue: props.mediaCards.useAltText, setBtnValue: handleUseAltText, title: 'Automatically Use Alt Text In Divi Modules From Media Library', description: 'Some modules in Divi do not automatically add or sync the alt text from the WordPress media library to the image in the module. While this has been improved over the years, there are still various scenarios where the alt text is missing when the module is added or does not update when the alt text is updated in WordPress. Enabling this setting will automatically add and update the alt text from the WordPress Media Library to the image in the module on the frontend.' }),
      wp.element.createElement(_SettingCard2.default, { settingImg: 'no', inputField: 'btn', btnValue: props.mediaCards.ignoreAltText, setBtnValue: handleIgnoreAltText, title: 'Ignore Alt Text In Divi Modules And Override From Media Library', description: 'If there is already alt text added in alt text field in the Divi module, enabling this setting will ignore that alt text and override it with the alt text set in the WordPress Media Library.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'altTitleFilename', settingImg: 'no', btnValue: props.mediaCards.imgAltTitleFileName, setBtnValue: handleimgAltTitleFileName, title: 'Use Image Title or Filename If No Alt Text Exists', description: 'If the alt text field in the Divi module is empty, you can choose to automatically use the image title or the image filename from the WordPress Media Library as the alt text in the Divi module.' })
    )
  );
};
exports.default = AltText;

/***/ }),
/* 485 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Library = function Library(props) {

  // Load graphics
  var InfiniteScroll = pacDaAppLocalizer.plugin_url + 'include/img/Infinite Scroll.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Media',
      value: JSON.stringify(props.mediaCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleInfiniteScroll = function handleInfiniteScroll(val) {
    props.setMediaCards(Object.assign({}, props.mediaCards, { infiniteScroll: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: InfiniteScroll, btnValue: props.mediaCards.infiniteScroll, setBtnValue: handleInfiniteScroll, title: 'Disable Load More button from WordPress Media Library And Restore Infinite Scroll', description: 'In the past, when you view the WordPress Media Library, it had infinite scroll and you could easily scroll through all of your images. However, WordPress changed this by adding a feature that only shows a small group of images at a time, and adds a load more button at the bottom. This can be very frustrating and cause delays if you looking for an image either directly in the library or when adding an image in the Divi Builder, requiring you to repeatedly click the load more button. Enabling this setting will disable the load more button from the WordPress Media Library and restore the infinite scroll instead.' })
    )
  );
};
exports.default = Library;

/***/ }),
/* 486 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Font = function Font(props) {

  // Load graphics
  var enableAdditionalFontFile = pacDaAppLocalizer.plugin_url + 'include/img/Enable Additional Font File.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Font',
      value: props.fontCards
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: enableAdditionalFontFile, btnValue: props.fontCards, setBtnValue: props.setFontCards, title: 'Enable Additional Font File Type Uploads (Admin Only)', description: 'By default, WordPress limits the font file types that you can upload to your site for security reasons. If you try to upload a font file type that is not supported, you will see a “Sorry, this file type is not permitted for security reasons.” message. Enabling this setting will allow any administrator to upload additional fonts to Divi. You can choose to only enable this setting when you know you will be uploading unsupported font files and then disable it again.' })
    )
  );
};
exports.default = Font;

/***/ }),
/* 487 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var UploadFontFile = function UploadFontFile(props) {

    var otherFontWeights = false;

    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        fontUploadStatus = _useState2[0],
        setFontUploadStatus = _useState2[1];

    var _useState3 = (0, _react.useState)(''),
        _useState4 = _slicedToArray(_useState3, 2),
        fontName = _useState4[0],
        setFontName = _useState4[1];

    var _useState5 = (0, _react.useState)(null),
        _useState6 = _slicedToArray(_useState5, 2),
        fontFile = _useState6[0],
        setFontFile = _useState6[1];

    var _useState7 = (0, _react.useState)(''),
        _useState8 = _slicedToArray(_useState7, 2),
        fontFileName = _useState8[0],
        setFontFileName = _useState8[1];

    var _useState9 = (0, _react.useState)(''),
        _useState10 = _slicedToArray(_useState9, 2),
        fileName = _useState10[0],
        setFileName = _useState10[1];

    var _useState11 = (0, _react.useState)({ 100: 'Thin', 200: 'Ultra Light', 300: 'Light', 400: 'Regular', 500: 'Medium', 600: 'Semi Bold', 700: 'Bold', 800: 'Ultra Bold', 900: 'Heavy' }),
        _useState12 = _slicedToArray(_useState11, 2),
        fontWeights = _useState12[0],
        setFontWeights = _useState12[1];

    var _useState13 = (0, _react.useState)({ 100: false, 200: false, 300: false, 400: false, 500: false, 600: false, 700: false, 800: false, 900: false }),
        _useState14 = _slicedToArray(_useState13, 2),
        reminFontWeights = _useState14[0],
        setReminFontWeights = _useState14[1];

    var _useState15 = (0, _react.useState)(false),
        _useState16 = _slicedToArray(_useState15, 2),
        allFontWeight = _useState16[0],
        setAllFontWeight = _useState16[1];

    var daUploadFontFile = pacDaAppLocalizer.apiUrl + '/da/v1/daUploadFontFile';
    var daUpdateInFontDb = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateInFontDb';
    var daDeleteInFontDb = pacDaAppLocalizer.apiUrl + '/da/v1/daDeleteInFontDb';

    var handleFileChangeQL = function handleFileChangeQL(event) {
        setFontFileName(event.target.value);
        setFontName(event.target.files[0].name.split('.')[0].replace(/[^a-zA-Z0-9-_ ]/g, '').replace(/[-_]/g, ' '));
        setFileName(event.target.value.split('\\').slice(-1)[0]);
        var file = event.target.files[0];
        if (file) {
            setFontFile(file);
        }
    };

    var handleReminFontWeights = function handleReminFontWeights(val, key) {
        setReminFontWeights(function (prevState) {
            return Object.assign({}, prevState, _defineProperty({}, key, val));
        });
    };

    var handleDeleteFile = function handleDeleteFile(key) {
        _axios2.default.post(daDeleteInFontDb, {
            fontName: key
        }).then(function (response) {
            if (response.data !== false) {
                var Font = Object.assign({}, props.localFont.Font);
                delete Font[key];
                props.setLocalFont(Object.assign({}, props.localFont, { Font: Font }));
                var newFamily = Object.assign({}, props.fontFamily);
                delete newFamily[key];
                props.setFontFamily(newFamily);
            }
        });
    };

    var handleUploadFF = function handleUploadFF() {
        if (fontName.trim() !== '') {
            var values = Object.values(reminFontWeights);
            otherFontWeights = values.reduce(function (acc, curr) {
                return acc || curr;
            }, false);
            if (allFontWeight | otherFontWeights) {
                if (fontFile) {
                    var formData = new FormData();
                    formData.append('file', fontFile);
                    _axios2.default.post(daUploadFontFile, formData);
                    _axios2.default.post(daUpdateInFontDb, {
                        fontName: fontName,
                        fileName: fileName,
                        fontStyleAll: allFontWeight,
                        fontStyleR: reminFontWeights
                    }).then(function (response) {
                        if (response.data !== false) {
                            var Font = Object.assign({}, props.localFont.Font);
                            Font[response.data.Front_fonts.name] = response.data.Front_fonts;
                            props.setLocalFont(Object.assign({}, props.localFont, { Font: Font }));
                            var newFamily = Object.assign({}, props.fontFamily);
                            newFamily[response.data.FF_fonts.name] = response.data.FF_fonts;
                            props.setFontFamily(newFamily);
                            setFontName('');
                            setFontFile(null);
                            setFontFileName('');
                            setFileName('');
                            setReminFontWeights({ 100: false, 200: false, 300: false, 400: false, 500: false, 600: false, 700: false, 800: false, 900: false });
                            setAllFontWeight(false);
                            setFontUploadStatus(true);
                            setTimeout(function () {
                                setFontUploadStatus(false);
                            }, 5000);
                        }
                    });
                } else {
                    alert('Please select a valid file');
                }
            } else {
                alert('Please select font weights');
            }
        } else {
            alert('Enter a valid font name');
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_upload_font' },
        props.localFont.Font && Object.keys(props.localFont.Font).length !== 0 ? wp.element.createElement(
            'div',
            { className: 'uploaded_fonts' },
            wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/Manage Fonts.png', alt: 'Setting Image' }),
            wp.element.createElement(
                'div',
                { className: 'details' },
                wp.element.createElement(
                    'span',
                    null,
                    'Manage Local Fonts'
                ),
                wp.element.createElement(
                    'p',
                    null,
                    'Here are all of the local fonts that have been uploaded to this website server.'
                ),
                Object.keys(props.localFont.Font).map(function (key) {
                    return wp.element.createElement(
                        'div',
                        { key: key, className: 'fonts', value: key },
                        wp.element.createElement(
                            'span',
                            null,
                            key
                        ),
                        wp.element.createElement(
                            'div',
                            { className: 'fontWeights' },
                            props.localFont.Font[key].styles.replace(/,/g, ', ')
                        ),
                        wp.element.createElement(
                            'div',
                            { onClick: function onClick() {
                                    return handleDeleteFile(key);
                                }, className: 'delete' },
                            wp.element.createElement(
                                'svg',
                                { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
                                wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M20.2501 9.25H17.5001V8C17.4974 7.53668 17.3122 7.093 16.9846 6.76538C16.657 6.43776 16.2134 6.25263 15.7501 6.25H12.7501C12.2859 6.25 11.8408 6.43438 11.5126 6.76257C11.1845 7.09076 11.0001 7.53587 11.0001 8V9.25H7.75007C7.55116 9.25 7.36039 9.32895 7.21973 9.4696C7.07908 9.61026 7.00007 9.80109 7.00007 10C6.99872 10.0989 7.01724 10.197 7.05445 10.2886C7.09167 10.3802 7.14683 10.4634 7.21674 10.5333C7.28666 10.6032 7.36989 10.6583 7.46149 10.6956C7.5531 10.7328 7.6512 10.7513 7.75007 10.75H8.50007L9.14008 20.12C9.17041 20.5613 9.36676 20.9747 9.68958 21.2771C10.0124 21.5795 10.4377 21.7485 10.8801 21.75H17.5201C17.9635 21.7487 18.39 21.58 18.7145 21.2778C19.0389 20.9756 19.2373 20.5622 19.2701 20.12L19.9001 10.75H20.2501C20.449 10.75 20.6398 10.6709 20.7804 10.5303C20.9211 10.3896 21.0001 10.1989 21.0001 10C20.9975 9.80189 20.9176 9.61263 20.7775 9.47253C20.6374 9.33244 20.4482 9.25259 20.2501 9.25ZM12.5001 8C12.5001 7.9337 12.5264 7.87013 12.5733 7.82324C12.6202 7.77636 12.6838 7.75 12.7501 7.75H15.7501C15.8164 7.75 15.88 7.77636 15.9269 7.82324C15.9738 7.87013 16.0001 7.9337 16.0001 8V9.25H12.5001V8ZM17.7701 20C17.765 20.0628 17.7365 20.1213 17.6901 20.1639C17.6438 20.2066 17.5831 20.2302 17.5201 20.23H10.8901C10.8586 20.2313 10.8271 20.2264 10.7974 20.2156C10.7678 20.2047 10.7406 20.1881 10.7174 20.1667C10.6942 20.1454 10.6754 20.1197 10.6621 20.0911C10.6489 20.0624 10.6414 20.0315 10.6401 20L10.0101 10.73H18.4001L17.7701 20ZM12.7501 17.75C12.6512 17.7513 12.5531 17.7328 12.4615 17.6956C12.3699 17.6583 12.2867 17.6032 12.2167 17.5333C12.1468 17.4634 12.0917 17.3802 12.0545 17.2886C12.0172 17.197 11.9987 17.0989 12.0001 17V14C12.0001 13.8011 12.0791 13.6103 12.2197 13.4696C12.3604 13.329 12.5512 13.25 12.7501 13.25C12.9482 13.2526 13.1374 13.3324 13.2775 13.4725C13.4176 13.6126 13.4975 13.8019 13.5001 14V17C13.5001 17.1989 13.4211 17.3896 13.2804 17.5303C13.1398 17.6709 12.949 17.75 12.7501 17.75ZM15.4615 17.6956C15.5531 17.7328 15.6512 17.7513 15.7501 17.75C15.949 17.75 16.1398 17.6709 16.2804 17.5303C16.4211 17.3896 16.5001 17.1989 16.5001 17V14C16.4975 13.8019 16.4176 13.6126 16.2775 13.4725C16.1374 13.3324 15.9482 13.2526 15.7501 13.25C15.5512 13.25 15.3604 13.329 15.2197 13.4696C15.0791 13.6103 15.0001 13.8011 15.0001 14V17C14.9987 17.0989 15.0172 17.197 15.0545 17.2886C15.0917 17.3802 15.1468 17.4634 15.2167 17.5333C15.2867 17.6032 15.3699 17.6583 15.4615 17.6956Z' })
                            )
                        )
                    );
                })
            )
        ) : '',
        wp.element.createElement(
            'div',
            { className: 'upload_fonts' },
            wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/Upload Fonts.png', alt: 'Setting Image' }),
            wp.element.createElement(
                'div',
                { className: 'details' },
                wp.element.createElement(
                    'span',
                    null,
                    'Upload New Local Font'
                ),
                wp.element.createElement(
                    'p',
                    null,
                    "If you want to host your font locally on your own website server rather than retrieve it from a 3rd party service such as Google Fonts, you can upload a font file here. The uploaded font file will be stored on the same server as your website. You can select the supported font weights that you want to include"
                ),
                wp.element.createElement('br', null),
                wp.element.createElement(
                    'p',
                    null,
                    "NOTE: In order to host Google Fonts locally on your server, you first need to disable the “Use Google Fonts” setting in Divi Theme Options. Otherwise, even if you upload a Google Font, it will not convert the font into a local font and will not be hosted locally."
                ),
                wp.element.createElement(
                    'div',
                    { className: 'name' },
                    'Font Name'
                ),
                wp.element.createElement('input', { className: 'file_name', type: 'text', placeholder: 'Name Your Font', autoComplete: 'off', value: fontName, onChange: function onChange(e) {
                        return setFontName(e.target.value);
                    } }),
                wp.element.createElement('input', { className: 'upload_file', type: 'file', accept: '.' + props.localFont.allowedFileTypes.join(",."), value: fontFileName, onChange: handleFileChangeQL }),
                wp.element.createElement(
                    'p',
                    null,
                    'Supported File Formats: ' + props.localFont.allowedFileTypes.join(", ")
                ),
                wp.element.createElement(
                    'div',
                    { className: 'pac_da_font_weights' },
                    wp.element.createElement(
                        'span',
                        null,
                        'Supported Font Weights'
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'font_weight all' },
                        wp.element.createElement('input', { type: 'checkbox', value: allFontWeight, checked: allFontWeight == "true" || allFontWeight == true ? true : false, onChange: function onChange() {
                                return setAllFontWeight(!allFontWeight);
                            } }),
                        wp.element.createElement(
                            'span',
                            { 'data-value': 'all' },
                            'All'
                        )
                    ),
                    Object.keys(fontWeights).map(function (key) {
                        return wp.element.createElement(
                            'div',
                            { key: key, className: 'font_weight ' + key, style: { display: allFontWeight ? "none" : 'block' } },
                            wp.element.createElement('input', { type: 'checkbox', value: reminFontWeights[key], checked: reminFontWeights[key] == "true" || reminFontWeights[key] == true ? true : false, onChange: function onChange() {
                                    return handleReminFontWeights(!reminFontWeights[key], key);
                                } }),
                            wp.element.createElement(
                                'span',
                                { 'data-value': key },
                                fontWeights[key] + ' ' + key
                            )
                        );
                    })
                ),
                wp.element.createElement(
                    'div',
                    { className: 'upload_btn', onClick: handleUploadFF },
                    'Upload Font'
                ),
                fontUploadStatus === true ? wp.element.createElement(
                    'div',
                    { className: 'sucsses_msg' },
                    'Font Uploaded Successfully!'
                ) : ''
            )
        )
    );
};
exports.default = UploadFontFile;

/***/ }),
/* 488 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Glossary = function Glossary(props) {
    var _useState = (0, _react.useState)(''),
        _useState2 = _slicedToArray(_useState, 2),
        search = _useState2[0],
        setSearch = _useState2[1];

    (0, _react.useEffect)(function () {
        var condition = true;
        var active_id = null;
        var current_ele = void 0,
            remaining_ele = void 0;
        var items = document.getElementById('pac_da_glossary_items');
        var allItem = items.querySelectorAll('.item');
        allItem.forEach(function (item, index) {
            if (isInViewport(item, items) & condition & item.id !== '') {
                current_ele = document.querySelector('[data-href=' + item.id + ']');
                active_id = item.id;
                current_ele.classList.remove("disable");
                current_ele.classList.add("active");
                condition = false;
            } else {
                if (item.id !== '' & item.id !== active_id) {
                    remaining_ele = document.querySelector('[data-href=' + item.id + ']');
                    remaining_ele.classList.remove("disable");
                    remaining_ele.classList.remove("active");
                }
            }
        });
    }, []);

    var handleSearch = function handleSearch(e) {
        setSearch(e.target.value);
        var cross = e.target.nextSibling;
        var items = document.getElementById('pac_da_glossary_items');
        var allItem = items.querySelectorAll('.item');
        allItem.forEach(function (item, index) {
            if (e.target.value !== '') {
                cross.style.display = "block";
                if (item.querySelector('.title').textContent.toLowerCase().includes(e.target.value.toLowerCase()) | item.querySelector('.description').textContent.toLowerCase().includes(e.target.value.toLowerCase())) {
                    item.style.display = "block";
                } else {
                    item.style.display = "none";
                }
            } else {
                item.style.display = "block";
                cross.style.display = "none";
            }
        });
    };
    var clearSearch = function clearSearch(e) {
        setSearch('');
        e.target.style.display = "none";
        var items = document.getElementById('pac_da_glossary_items');
        var allItem = items.querySelectorAll('.item');
        allItem.forEach(function (item, index) {
            item.style.display = "block";
        });
    };
    var moveToGlossaryItem = function moveToGlossaryItem(e) {
        var card = document.getElementById(e.target.getAttribute('data-href'));
        if (typeof card != 'undefined' && card != null) {
            card.scrollIntoView({ behavior: 'smooth' });
        }
    };
    var updateGlossaryItem = function updateGlossaryItem(e) {
        var condition = true;
        var items = document.getElementById(e.target.id);
        var allItem = items.querySelectorAll('.item');
        var active_ele = null;
        allItem.forEach(function (item, index) {
            if (condition & isInViewport(item, items) & item.id !== '') {
                var current_ele = document.querySelector('[data-href=' + item.id + ']');
                active_ele = item.id;
                current_ele.classList.add("active");
                condition = false;
            } else {
                if (item.id !== '' & item.id !== active_ele) {
                    var remaining_ele = document.querySelector('[data-href=' + item.id + ']');
                    remaining_ele.classList.remove("active");
                }
            }
        });
    };
    var isInViewport = function isInViewport(elem, container) {
        var con_boundaries = container.getBoundingClientRect();
        var distance = elem.getBoundingClientRect();
        return distance.top >= con_boundaries.top && con_boundaries.bottom >= distance.bottom && distance.left >= 0 && distance.right <= (window.innerWidth || document.documentElement.clientWidth);
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_glossary' },
        wp.element.createElement(
            'span',
            null,
            'Learn The Most Common Terminology For Divi, WordPress, and Websites'
        ),
        wp.element.createElement(
            'p',
            null,
            'This glossary tool provides the terms and meaning of common words you may encounter when using Divi, WordPress, and web design in general. You can use the search bar to find a specific term, or use the letters of the alphabet to quickly jump to a section.'
        ),
        wp.element.createElement(
            'div',
            { className: 'search' },
            wp.element.createElement('input', { type: 'text', autoComplete: 'off', placeholder: 'Search', value: search, onChange: function onChange(e) {
                    return handleSearch(e);
                } }),
            wp.element.createElement(
                'div',
                { onClick: clearSearch, style: { display: "none" } },
                '\xD7'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'alphabet' },
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_a' },
                'A'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_b' },
                'B'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_c' },
                'C'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_d' },
                'D'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_e' },
                'E'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_f' },
                'F'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_g' },
                'G'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_h' },
                'H'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_i' },
                'I'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_j' },
                'J'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_k' },
                'K'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_l' },
                'L'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_m' },
                'M'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_n' },
                'N'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_o' },
                'O'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_p' },
                'P'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_q' },
                'Q'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_r' },
                'R'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_s' },
                'S'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_t' },
                'T'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_u' },
                'U'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_v' },
                'V'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_w' },
                'W'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_x' },
                'X'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_y' },
                'Y'
            ),
            wp.element.createElement(
                'a',
                { className: 'disable', onClick: moveToGlossaryItem, 'data-href': 'glossary_item_z' },
                'Z'
            )
        ),
        wp.element.createElement(
            'div',
            { id: 'pac_da_glossary_items', className: 'items', onScroll: updateGlossaryItem },
            wp.element.createElement(
                'div',
                { className: 'no_result' },
                'No Results'
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_a', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Active Content'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder settings modal in any module contains a Filter button with several available options to filter the settings which are shown. The Active Content filter option allows you to show only settings related to content that have been added, such as images and text.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_a', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Advanced Tab'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Within each Divi Builder section, row, and module are three tabs used to organize the settings. The Advanced tab contains settings related to advanced functionality like adding custom CSS IDs and classes, changing element positions, visibility controls, adjusting z-index, making elements sticky, scroll effects, and more.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_a', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Apply Styles To Active Preset'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'When you make setting changes while a Preset is selected, you can choose to apply those changes to the active preset. When you do this, the preset will be updated, and any other module with the same preset will be affected by the changes.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_b', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Body Template'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Theme Builder allows you to create a header, body, and footer template which can be applied globally across your entire website or on selected pages. The body template is the middle area of the page between the header and footer. A body template in the Theme Builder is not used for regular pages, but only for dynamic pages such as archive pages and posts. A body template displays the content of the page or post inside the layout and usually contains a Post Content module or other dynamic content.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_b', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Builder Default Interaction Mode'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The settings in the Divi Builder Page Settings allow you to adjust basic preferences about how the Divi Builder works. One of those settings is the Interaction Mode. The default option is Hover Mode, which means the outline of each section, row, or module appears when you hover over it. Another option is Click Mode, which means the outlines only appear when you click. The final option is Grid Mode, which means the outlines show all the time without hovering or clicking.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_b', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Build From Scratch'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Theme Builder allows you to create a header, body, and footer template which can be applied globally across your entire website or on selected pages. The body template is the middle area of the page between the header and footer. A body template in the Theme Builder is not used for regular pages, but only for dynamic pages such as archive pages and posts. A body template displays the content of the page or post inside the layout and usually contains a Post Content module or other dynamic content.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Clone Existing Page'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'When you add a new page or post and enable the Divi Builder, three options called the Page Creation Flow appear to select your preferred method of creating the page content. The last of those options is Clone Existing Page, which means rather than building the page content from scratch or from a premade layout, you will instead duplicate an already existing page or post on your site as a starting point.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Column'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The structure of the Divi Builder includes sections, rows, columns, and modules. Rows are divided into columns, and modules are placed inside the columns. The number of columns can be selected to determine the structural grid of each row. Columns are color coded as light gray.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Copy Section/Row/Module'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes many helpful efficiency options in a Contextual Menu which can be accessed by right-clicking the three dots menu on any section, row, column, or module. The Copy Section/Row/Module option allows you to make a duplicate of the section, row, or module by using copy and paste. The element can be pasted anywhere else on the page or site, and works just like the clipboard on your computer.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Copy Style'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes many helpful efficiency options in a contextual menu that can be access by right-clicking the three dots menu on any section, row, column, or module. The Copy Style option allows you to copy the design settings applied to an element to replicate them on another element of the same type. This works just like the clipboard on your computer. The Paste Style option is then used to paste those settings onto another element.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Content Tab'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Within each Divi section, row, and module are three tabs used to organize the settings.  The Content tab includes settings related to adding content such as paragraph and heading text, images, and icons.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_c', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Contextual Menu'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes settings to edit, move, and duplicate elements, but it also has many other helpful settings which are available inside the Contextual Menu which can be accessed by right-clicking the three dots menu on any section, row, column, or module. You can also right-click on anywhere on tabs, setting groups, or individual settings to access the Contextual Menu. These settings include things like shortcuts to other settings and access to efficiency features.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Design Tab'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Within each Divi section, row, and module are three tabs used to organize the settings. The Design tab includes settings related to customizing the design and style of the element such as adjusting the fonts, colors, borders, spacing, box shadows, and more.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Disable'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The disable feature in Divi allows you to change the visibility of the section, row, column or module to show or hide it on Desktop, Tablet, and Phone. When an element is disabled it will not be displayed on the frontend to the website visitors, but will still be visible but grayed out within the Divi Builder.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Divi Builder'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder refers to the main function of Divi containing the sections, rows, and modules used to create the structure and design of the page. The builder can be enabled and used in either the frontend or backed of any page or post. The Divi Builder comes in two main types of views, the Visual Builder which shows all the changes live in the preview, and the Wireframe view which shows just the skeleton view of the modules, rows, and sections.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Divi Cloud'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The company behind Divi, Elegant Themes, also has a cloud server called Divi Cloud. This service allows you to connect your website to the centralized account and store and organize various parts of your website such as layouts, sections, rows, modules, settings, colors, templates, and so much more! All Elegant Themes members can use Divi Cloud for free to store up to 50 items. To unlock unlimited storage for you and your team, you can sign up for a Divi Cloud membership.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Divi Library'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Library is a place where you can store Divi Builder sections, rows, or modules to reuse later on other pages or layouts on the site. This is also closely connected with the Divi Cloud feature. Items can be saved to the Divi Library and added to any page or layout. The Divi Library is also useful for saving global sections, rows, and modules which synchronize across the site when updated.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Divi Teams'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The company behind Divi, Elegant Themes, also has a cloud server called Divi Teams. This service allows you to share your account with other team members and give them access to downloads, license keys, Divi Cloud, support, and other features. You can control what team members can and cannot do with the permissions settings.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_d', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Duplicate'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The duplicate feature in the Divi Builder allows you to make an exact copy of any section, row, column, or module.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_e', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Edit Preset Styles'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Edit Preset Styles allows you to edit and update an existing preset. Changes will be then be automatically applied to any element that has the preset applied.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_e', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Editing History'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'This panel in the Divi Builder page Settings contains a list of all the activity and changes made while editing the page within the current session. It provides the activity name along with the exact timestamp. Clicking on any particular edit state in the list acts the same as the redo and undo functions, but has the added ability to be able to jump directly to any particular point in time in the current editing session.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_e', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Extend Styles'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'One of the great features in the Contextual Menu is the option to Extend Styles. This works similar to copy and paste styles, but rather than copying and pasting the style to individual elements, this feature has the ability to extend the settings and styles of the current element to any other similar element on the page quickly with just one click.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_f', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Footer Template'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Theme Builder allows you to create a header, body, and footer template which can be applied globally across your entire website or on selected pages. The header template is the bottom part of the page that usually contains legal page links, logo, navigation menu, or other helpful items that are important to be visible to visitors on all pages.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_f', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Fullwidth Section'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes sections, rows, columns, and modules, but it also includes the option to add a different kind of section called a Fullwidth Section. These were used in the past, but are now considered depreciated and are no longer needed because now any row and section can be made fullwidth with the current settings in Divi.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_g', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Global'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The term Global applies to an element or template that one element but remains updated across of locations it is '
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_g', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Go To Layer'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'One of the features in the Contextual Menu in any section, row, column, or modules is the option to Go To Layout. Clicking this option will open up the Layers panel and link directly to the current element position within the layers.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_h', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Header Template'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Theme Builder allows you to create a header, body, and footer template which can be applied globally across your entire website or on selected pages. The header template is the top part of the page that usually contains the logo and navigation menu.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_h', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Hover Styles/Content'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder settings modal in any section, row, column, or module contains a Filter button with several available options to filter the settings which are shown. The Hover Styles/Content filter option allows you to show only settings that have the hover option enabled to modify the setting with a different value when you hover the element.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_i', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Insert Section/Row/Module'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Any layout, section, row, or module that has been imported to or saved into the Divi Library can later be inserted into the Divi Builder from the Load From Library tab in the same insert dialog box as when adding regular elements to the page.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_k', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Keyboard Shortcuts'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder is easy to use with a mouse, but it also comes with a long list of very useful keyboard shortcuts. These allow you to save a ton of time by doing almost anything with a keystroke instead of a click.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_l', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Layout'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'A Divi Layout refers to the entire page content as one group of all the sections, rows, and modules on the page. Layouts can be saved into the Divi Library, or reused by exporting and importing them.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_l', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Layers'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Layers panel is a helpful feature inside the Divi Builder to see a compact list of all the elements on the page. All the sections, rows, columns, and modules on the page are shown in the list, which makes it easy to navigate and explore the hierarchy of each element in relation to another. Each element can be edited accessed from the Layers panel, and can be edited, moved, duplicated, or deleted.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_l', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Load From Library'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The plus icon in the Page Settings has the option to Load From Library which will open a window to choose a layout saved in the Divi Library.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_l', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Load Premade Layout'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'When you add a new page or post and enable the Divi Builder, three options called the Page Creation Flow appear to select your preferred method of creating the page content. The second of those options is Load Premade Layout, which means rather than building the page content from scratch, you will instead load a premade layout which can then be customized.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_l', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Lock'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Lock feature is located in the Contextual Menu of any section, row, or module and gives users the ability to prevent the element from being accidentally being edited, moved, or duplicated. A red padlock appears over the element to prevent it from being edited, but this can bed unlocked by simply clicking on it.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_m', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Module'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The structure of the Divi Builder includes sections, rows, columns, and modules. Modules contain the actual content of the page or layout and added to columns. There are many types of modules for different purposes such as adding images, text, sliders, forms, blog posts, and so much more. Modules are color coded as dark gray.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_m', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Modified Styles'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder settings modal in any section, row, column, or module contains a Filter button with several available options to filter the settings which are shown. The Modified Styles filter option allows you to only see the settings which have been modified. This is a quick and convenient way to hide default settings and only see settings which have been changed or adjusted.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_p', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Paste Section/Row/Module'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes many helpful efficiency options in a Contextual Menu which can be accessed by right-clicking the three dots menu on any section, row, column, or module. The Paste Section/Row/Module option allows you to make a duplicate of the section, row, or module by using copy and paste. The element can be pasted anywhere on the page or site, and works just like the clipboard on your computer.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_p', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Page Settings'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'When you enable the Divi Builder, there are various settings which related to the current page. These are referred to as the Page Settings and include features such as Load From Library, Save To Library, Clear Layout, Page Settings, Editing History, and Portability. Inside the gear icon Page Settings specifically are similar features such as tabs with settings like in other elements in the Divi Builder.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_p', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Portability'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Portability feature in Divi allows you to import and export layouts, templates, and settings to your local computer. The portability feature can be accessed by clicking the up/down arrows in the Divi Builder, Theme Options, or Theme Builder. This opens a window to choose to import or export the item.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_p', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Premade Layouts'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Elegant Themes provides website layouts included for free with Divi. These are premade by their team and based on a specific niche. They include the layout, settings, images, and text. These are great starting templates which can be easily modified to fit your design style. Layouts can be imported by clicking the plus (+) icon at the bottom of the page settings.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_p', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Presets'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'A Preset is a feature of the Divi Builder which allows you to save settings of a particular section, row, or module in order to apply those same settings to other modules. A name can be given to the preset for easy identification. Presets are great for saving time when applying changes across the site.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_r', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Redo'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The redo button is located in the bottom bar of any section, row, column, or module popup settings window and allows you to apply a previously adjusted setting again after clicking undo based on the Editing History of the current session.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_r', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Reset Styles'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'All sections, rows, and modules come with default settings and design styles. If these are adjusted, but later you want to return to the default settings, you can use the Contextual Menu and click on Reset Styles to restore the section, row, or module to the original state.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_r', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Responsive Styles/Content'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder settings modal in any section, row, column, or module contains a Filter button with several available options to filter the settings which are shown. The Responsive Styles/Content filter option allows you to show only settings that have the responsive settings active to modify the values in the Desktop, Tablet, and Phone tabs.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_r', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Row'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The structure of the Divi Builder includes sections, rows, columns, and modules. The row element is located inside the section and can be divided into columns. Rows are color coded as green. All rows must contain at least one column.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_r', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Role Editor'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Role Editor gives you control over what each different WordPress User Role can do within the Divi Builder. For each role, you can enable or disable toggles which will limit which settings and features can be used for users of that role.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Safe Mode'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Safe Mode feature inside the Divi Support Center allows you to troubleshoot issues by temporarily disabling all of your plugins, child theme, and custom code. This only affects you, and not other users or visitors. Safe mode enables you to narrow down the issue and check if it is caused by third party compatibility, or if it still exists only in Divi with other plugins and code disabled.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Save to Library'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Save To Library feature allows you to save any layout, section, row, or module to the Divi Library in order to use it later on another page or site.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Section'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The structure of the Divi Builder includes sections, rows, columns, and modules. A section is the main element on a page or layout. Sections are color coded as blue. Rows are located within sections. All sections must contain at least one row.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Search Options'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder settings modal in any section, row, column, or module contains a Search Options field to narrow down which settings are shown. Typing a word or lettings in the search field automatically displays any setting within the modal that matches the keyword.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Specialty Section'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder includes sections, rows, columns, and modules, but it also includes a special kind of section called a Specialty Section. These allow you to create more advanced layouts with more options for rows and columns.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Split Test'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The settings menu within the Divi Builder sections, rows, and modules contains a Split Test feature which allows you to show different versions of your content to different visitors. This feature helps you figure out which version of the content, colors, text, etc. is most effective and gives the highest conversion rate.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Support Center'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Support Center is an interface within the Divi backend that gives you and our support team the tools they need to fix problems on your website more quickly and efficiently. This includes the System Status, Elegant Theme support access, documentation and help guides, Safe Mode, and technical logs.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_s', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'System Status'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The System Status area gives you an overview of your hosting environment configuration and can point to possible compatibility problems with Divi. When the lights are green, it means that your configuration meets the recommended value. When red, it means that the configuration does not meet the recommended value, and you should probably address it. And lastly, when, yellow, it means you may consider making adjustments to the value.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_t', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Theme Builder'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Theme Builder is an interface within Divi that allows you to use the Divi Builder to design every area of the theme. The Theme Builder uses Divi layout templates for the header, footer, and body area with options to assign them to pages, posts, and other post types across your site.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_t', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Theme Options'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'Divi comes with theme options that are used to set up various parts of your site. This is where you can control things like your logo, settings, customizations, custom code, and so much more. These options can be accessed in the WordPress Dashboard menu under Divi > Theme Options.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_u', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Undo'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The redo button is located in the bottom bar of any section, row, column, or module popup settings window and allows you to cancel and review the last setting change based on the Editing History of the current session.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_v', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Visual Builder'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder is called the Divi Visual Builder when referring to the visual editing view (as opposed to the Wireframe view). The visual builder shows the exact same design while editing that you will see on the frontend when you exit the builder, allowing you to preview all design and content changes you make.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_v', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Visibility'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Visibility feature is located in the Advanced tab of any Divi section, row, column, or module and allows you to show or hide the element on Desktop, Tablet, and Phone. When an element\u2019s visibility is disabled it will not be displayed on the frontend to the website visitors, but will still be visible but grayed out within the Divi Builder.'
                )
            ),
            wp.element.createElement(
                'div',
                { id: 'glossary_item_w', className: 'item' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Wireframe View'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'description' },
                    'The Divi Builder has an editing view that shows just the skeleton view of the modules, rows, and sections without the visual design. This can be useful to get an overview of the layout structure and easily label or move elements around.'
                )
            )
        )
    );
};
exports.default = Glossary;

/***/ }),
/* 489 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _TutorialCard = __webpack_require__(490);

var _TutorialCard2 = _interopRequireDefault(_TutorialCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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); } }

var Tutorials = function Tutorials(props) {
    var _useState = (0, _react.useState)(''),
        _useState2 = _slicedToArray(_useState, 2),
        search = _useState2[0],
        setSearch = _useState2[1];

    var updateSearch = function updateSearch(e) {
        setSearch(e.target.value);
        var cross = e.target.nextSibling;
        var cards = document.getElementById('pac_da_all_tutorials');
        var allcards = cards.querySelectorAll('.tutorial_card');
        var cardCount = 0;
        var totalCards = 0;
        allcards.forEach(function (item, index) {
            if (e.target.value !== '') {
                totalCards++;
                cross.style.display = "block";
                if (item.querySelector('.title').textContent.toLowerCase().includes(e.target.value.toLowerCase()) | item.querySelector('.description').textContent.toLowerCase().includes(e.target.value.toLowerCase())) {
                    item.style.display = "block";
                    cardCount = 0;
                } else {
                    cardCount++;
                    item.style.display = "none";
                }
            } else {
                item.style.display = "block";
                cross.style.display = "none";
            }
        });
        if (cardCount === totalCards & totalCards !== 0) {
            document.querySelector('.pac_da_tutorial_content>.no_result').style.display = "block";
        } else {
            document.querySelector('.pac_da_tutorial_content>.no_result').style.display = "none";
        }
    };
    var toggleFilter = function toggleFilter() {
        var filter = document.getElementById('pac_da_tutorials_filter');
        if (filter.style.display === "none") {
            filter.style.display = "block";
            document.addEventListener('click', closeFilter);
        } else {
            filter.style.display = "none";
            document.removeEventListener('click', closeFilter);
        }
    };

    var closeFilter = function closeFilter(e) {
        var target = e.target;
        while (target !== null) {
            if (target.id === 'pac_da_tutorials_filter') {
                return;
            }
            target = target.parentElement;
        }
        if (document.getElementById('pac_da_tutorials_filter') !== null) {
            document.getElementById('pac_da_tutorials_filter').style.display = "none";
            document.removeEventListener('click', closeFilter);
        }
    };

    var handleCheckbox = function handleCheckbox(ind, cBval) {
        var updatedCheckbox = [].concat(_toConsumableArray(props.pacTutCheckboxVal));
        updatedCheckbox[ind] = !cBval;
        props.setPacTutCheckboxVal(updatedCheckbox);
    };
    var clearFilter = function clearFilter() {
        props.setPacTutCheckboxVal(props.pacTutCheckboxDefault);
        props.setTutFilterUpdateCb(props.pacTutCheckboxDefault);
        setSearch('');
        var cards = document.getElementById('pac_da_all_tutorials');
        var allcards = cards.querySelectorAll('.tutorial_card');
        allcards.forEach(function (item, index) {
            item.style.display = "block";
        });
        props.setTutFilter(false);
    };
    var applyFilter = function applyFilter() {
        if (!props.pacTutCheckboxVal.every(function (item) {
            return item === false;
        })) {
            props.setTutFilter(true);
            props.setTutFilterUpdateCb(props.pacTutCheckboxVal);
            document.getElementById('pac_da_tutorials_filter').style.display = "none";
        } else {
            alert('Atleast select one category');
        }
    };
    function checkCategories(categories) {
        var isCategoryChecked = categories.reduce(function (accumulator, category) {
            if (props.pacTutCheckboxVal[props.pacTutCheckboxId[category]] !== undefined) {
                return accumulator | props.tutFilterUpdateCb[props.pacTutCheckboxId[category]];
            } else {
                return accumulator;
            }
        }, false);

        return isCategoryChecked;
    }

    var clearSearch = function clearSearch(e) {
        setSearch('');
        e.target.style.display = "none";
        var cards = document.getElementById('pac_da_all_tutorials');
        var allcards = cards.querySelectorAll('.tutorial_card');
        allcards.forEach(function (item, index) {
            item.style.display = "block";
        });
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_tutorials' },
        wp.element.createElement(
            'div',
            { className: 'about_search' },
            wp.element.createElement(
                'span',
                null,
                'divi Tutorials On Our Blog'
            ),
            wp.element.createElement(
                'p',
                null,
                'Below you will find all of the weekly blog posts from our blog on our website at https://www.peeayecreative.com/blog/ We believe in giving back to the community, and this is one way we can help small businesses and other web designers with advice, tutorials, code snippets, and freebies. We hope you enjoy these resources!'
            ),
            wp.element.createElement(
                'div',
                { className: 'pac_da_tutorials_search' },
                wp.element.createElement(
                    'div',
                    { className: 'search' },
                    wp.element.createElement(
                        'svg',
                        { width: '24', height: '24', viewBox: '0 0 24 24', fill: '#A3B0C2', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M16.9985 16.295L14.8349 14.1313C15.4488 13.3681 15.8171 12.3924 15.8171 11.3372C15.8171 8.86819 13.8061 6.85718 11.3372 6.85718C8.86819 6.85718 6.85718 8.86819 6.85718 11.3372C6.85718 13.8061 8.86487 15.8171 11.3372 15.8171C12.3924 15.8171 13.3648 15.4521 14.128 14.8349L16.2917 16.9985C16.3912 17.0948 16.5174 17.1446 16.6468 17.1446C16.7762 17.1446 16.899 17.0948 16.9985 16.9985C17.191 16.8061 17.191 16.4908 16.9985 16.295ZM7.85273 11.3372C7.85273 9.41575 9.41575 7.85273 11.3372 7.85273C13.2586 7.85273 14.8216 9.41575 14.8216 11.3372C14.8216 13.2586 13.2586 14.8216 11.3372 14.8216C9.41575 14.8216 7.85273 13.2586 7.85273 11.3372Z' })
                    ),
                    wp.element.createElement('input', { type: 'text', placeholder: 'Search', value: search, autoComplete: 'off', onChange: function onChange(e) {
                            return updateSearch(e);
                        } }),
                    wp.element.createElement(
                        'div',
                        { onClick: clearSearch, style: { display: "none", cursor: "pointer", position: "absolute", right: "90px", zIndex: "99", top: "calc(50% - 9px)", fontSize: "18px", fontWeight: "900" } },
                        '\xD7'
                    ),
                    wp.element.createElement(
                        'div',
                        { onClick: toggleFilter, className: 'filterBtn' },
                        wp.element.createElement(
                            'svg',
                            { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                            wp.element.createElement('path', { d: 'M16.7141 10.4524H9.9484C9.71221 9.78576 9.07602 9.30957 8.33316 9.30957C7.5903 9.30957 6.95411 9.78576 6.71792 10.4524H5.28554C4.96935 10.4524 4.71411 10.7077 4.71411 11.0239C4.71411 11.34 4.96935 11.5953 5.28554 11.5953H6.71792C6.95411 12.262 7.5903 12.7381 8.33316 12.7381C9.07602 12.7381 9.71221 12.262 9.9484 11.5953H16.7141C17.0303 11.5953 17.2855 11.34 17.2855 11.0239C17.2855 10.7077 17.0303 10.4524 16.7141 10.4524ZM8.33316 11.5953C8.01697 11.5953 7.76173 11.34 7.76173 11.0239C7.76173 10.7077 8.01697 10.4524 8.33316 10.4524C8.64935 10.4524 8.90459 10.7077 8.90459 11.0239C8.90459 11.34 8.64935 11.5953 8.33316 11.5953Z' }),
                            wp.element.createElement('path', { d: 'M16.7141 14.262H15.2817C15.0455 13.5953 14.4093 13.1191 13.6665 13.1191C12.9236 13.1191 12.2874 13.5953 12.0513 14.262H5.28554C4.96935 14.262 4.71411 14.5172 4.71411 14.8334C4.71411 15.1496 4.96935 15.4049 5.28554 15.4049H12.0513C12.2874 16.0715 12.9236 16.5477 13.6665 16.5477C14.4093 16.5477 15.0455 16.0715 15.2817 15.4049H16.7141C17.0303 15.4049 17.2855 15.1496 17.2855 14.8334C17.2855 14.5172 17.0303 14.262 16.7141 14.262ZM13.6665 15.4049C13.3503 15.4049 13.0951 15.1496 13.0951 14.8334C13.0951 14.5172 13.3503 14.262 13.6665 14.262C13.9827 14.262 14.2379 14.5172 14.2379 14.8334C14.2379 15.1496 13.9827 15.4049 13.6665 15.4049Z' }),
                            wp.element.createElement('path', { d: 'M16.7141 6.64286H15.2817C15.0455 5.97619 14.4093 5.5 13.6665 5.5C12.9236 5.5 12.2874 5.97619 12.0513 6.64286H5.28554C4.96935 6.64286 4.71411 6.89809 4.71411 7.21429C4.71411 7.53048 4.96935 7.78571 5.28554 7.78571H12.0513C12.2874 8.45238 12.9236 8.92857 13.6665 8.92857C14.4093 8.92857 15.0455 8.45238 15.2817 7.78571H16.7141C17.0303 7.78571 17.2855 7.53048 17.2855 7.21429C17.2855 6.89809 17.0303 6.64286 16.7141 6.64286ZM13.6665 7.78571C13.3503 7.78571 13.0951 7.53048 13.0951 7.21429C13.0951 6.89809 13.3503 6.64286 13.6665 6.64286C13.9827 6.64286 14.2379 6.89809 14.2379 7.21429C14.2379 7.53048 13.9827 7.78571 13.6665 7.78571Z' })
                        ),
                        'Filter'
                    )
                ),
                wp.element.createElement(
                    'div',
                    { id: 'pac_da_tutorials_filter', style: { display: 'none' } },
                    wp.element.createElement(
                        'span',
                        null,
                        'Filter'
                    ),
                    wp.element.createElement(
                        'div',
                        { id: 'pac_da_tutorials_categories' },
                        Object.keys(props.pacCtgData).map(function (postId) {
                            return wp.element.createElement(
                                'div',
                                { key: postId, className: 'category' },
                                wp.element.createElement('input', { type: 'checkbox', 'data-key': postId, value: props.pacTutCheckboxVal[props.pacTutCheckboxId[postId]], checked: props.pacTutCheckboxVal[props.pacTutCheckboxId[postId]] == "true" || props.pacTutCheckboxVal[props.pacTutCheckboxId[postId]] == true ? true : false, onChange: function onChange() {
                                        return handleCheckbox(props.pacTutCheckboxId[postId], props.pacTutCheckboxVal[props.pacTutCheckboxId[postId]]);
                                    } }),
                                wp.element.createElement(
                                    'span',
                                    null,
                                    props.pacCtgData[postId]
                                )
                            );
                        })
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'clearApply' },
                        wp.element.createElement(
                            'div',
                            { onClick: clearFilter, className: 'clearBtn' },
                            wp.element.createElement(
                                'svg',
                                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg' },
                                wp.element.createElement('path', { d: 'M15.7377 14.9051C15.848 15.0156 15.91 15.1653 15.91 15.3215C15.91 15.4776 15.848 15.6274 15.7377 15.7379C15.6833 15.793 15.6184 15.8367 15.5469 15.8664C15.4754 15.896 15.3987 15.9111 15.3212 15.9108C15.2438 15.9111 15.1671 15.896 15.0956 15.8664C15.0241 15.8367 14.9592 15.793 14.9048 15.7379L10.9763 11.8094L7.04769 15.7379C6.99328 15.793 6.92843 15.8367 6.85692 15.8664C6.78541 15.896 6.70866 15.9111 6.63124 15.9108C6.55381 15.9111 6.47711 15.896 6.4056 15.8664C6.3341 15.8367 6.26924 15.793 6.21484 15.7379C6.10448 15.6274 6.04248 15.4776 6.04248 15.3215C6.04248 15.1653 6.10448 15.0156 6.21484 14.9051L10.1434 10.9765L6.21484 7.04793C6.10448 6.93744 6.04248 6.78764 6.04248 6.63148C6.04248 6.47532 6.10448 6.32557 6.21484 6.21508C6.32533 6.10473 6.47508 6.04272 6.63124 6.04272C6.7874 6.04272 6.9372 6.10473 7.04769 6.21508L10.9763 10.1437L14.9048 6.21508C15.0153 6.10473 15.1651 6.04272 15.3212 6.04272C15.4774 6.04272 15.6272 6.10473 15.7377 6.21508C15.848 6.32557 15.91 6.47532 15.91 6.63148C15.91 6.78764 15.848 6.93744 15.7377 7.04793L11.8091 10.9765L15.7377 14.9051Z' })
                            ),
                            wp.element.createElement(
                                'span',
                                null,
                                'Clear'
                            )
                        ),
                        wp.element.createElement(
                            'div',
                            { onClick: applyFilter, className: 'applyFilterBtn' },
                            wp.element.createElement(
                                'svg',
                                { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                                wp.element.createElement('path', { d: 'M9.60161 14.3394C9.44538 14.3392 9.29557 14.2771 9.18516 14.1665L6.4823 11.4637C6.42671 11.4096 6.38251 11.3448 6.35234 11.2732C6.32217 11.2017 6.30664 11.1249 6.30664 11.0473C6.30664 10.9697 6.32217 10.8928 6.35234 10.8213C6.38251 10.7498 6.42671 10.685 6.4823 10.6308C6.5928 10.5205 6.74259 10.4584 6.89876 10.4584C7.05492 10.4584 7.20467 10.5205 7.31516 10.6308L9.60161 12.9172L14.6852 7.83364C14.7957 7.72328 14.9455 7.66138 15.1016 7.66138C15.2578 7.66138 15.4075 7.72328 15.518 7.83364C15.6284 7.94413 15.6904 8.09393 15.6904 8.25009C15.6904 8.40625 15.6284 8.55605 15.518 8.66654L10.018 14.1665C9.90761 14.2771 9.75785 14.3392 9.60161 14.3394Z' })
                            ),
                            wp.element.createElement(
                                'span',
                                null,
                                'Apply'
                            )
                        )
                    )
                )
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_tutorial_content' },
            wp.element.createElement(
                'div',
                { className: 'no_result', style: { display: 'none' } },
                'No Results'
            ),
            wp.element.createElement(
                'div',
                { id: 'pac_da_all_tutorials' },
                props.tutFilter === false ? Object.keys(props.pacPostData).map(function (ind) {
                    return wp.element.createElement(_TutorialCard2.default, { key: ind, category: props.pacPostData[ind].categories, thumbnail: props.pacPostData[ind].thumbnail, title: props.pacPostData[ind].title, url: props.pacPostData[ind].url, excerpt: props.pacPostData[ind].excerpt });
                }) : Object.keys(props.pacPostData).map(function (ind) {
                    return wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        checkCategories(props.pacPostData[ind].categories) === 1 ? wp.element.createElement(_TutorialCard2.default, { key: ind, category: props.pacPostData[ind].categories, thumbnail: props.pacPostData[ind].thumbnail, title: props.pacPostData[ind].title, url: props.pacPostData[ind].url, excerpt: props.pacPostData[ind].excerpt }) : ''
                    );
                })
            )
        )
    );
};

exports.default = Tutorials;

/***/ }),
/* 490 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var TutorialCard = function TutorialCard(props) {
  return wp.element.createElement(
    'div',
    { className: 'tutorial_card', 'data-category': props.category },
    props.thumbnail !== false ? wp.element.createElement('img', { className: 'img', src: props.thumbnail, alt: props.title }) : '',
    wp.element.createElement(
      'div',
      { className: 'title' },
      props.title !== undefined | props.title !== '' ? props.title : 'Blog Post Title'
    ),
    wp.element.createElement(
      'div',
      { className: 'description' },
      props.excerpt === undefined | props.excerpt === '' ? 'Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.' : props.excerpt
    ),
    wp.element.createElement(
      'a',
      { className: 'btn', target: '_blank', href: props.url !== undefined | props.url !== '' ? props.url : '#' },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement('path', { d: 'M11.1874 16.5C6.41781 16.5 4.08141 11.4884 3.98461 11.2728C3.94757 11.1866 3.92847 11.0938 3.92847 11C3.92847 10.9062 3.94757 10.8134 3.98461 10.7272C4.08141 10.5116 6.41781 5.5 11.1874 5.5C15.957 5.5 18.2934 10.5116 18.3902 10.7272C18.4273 10.8134 18.4464 10.9062 18.4464 11C18.4464 11.0938 18.4273 11.1866 18.3902 11.2728C18.2934 11.4884 15.957 16.5 11.1874 16.5ZM5.32661 11C5.85461 11.968 7.84781 15.18 11.1874 15.18C14.527 15.18 16.5202 11.968 17.0482 11C16.5202 10.032 14.527 6.82 11.1874 6.82C7.84781 6.82 5.85461 10.032 5.32661 11Z' }),
        wp.element.createElement('path', { d: 'M11.1875 14.3C10.5348 14.3 9.89675 14.1064 9.35407 13.7438C8.81139 13.3812 8.38842 12.8658 8.13865 12.2628C7.88888 11.6598 7.82353 10.9963 7.95086 10.3562C8.07819 9.71602 8.39249 9.12801 8.854 8.6665C9.31551 8.20499 9.90352 7.89069 10.5437 7.76336C11.1838 7.63603 11.8473 7.70138 12.4503 7.95115C13.0533 8.20092 13.5687 8.62389 13.9313 9.16657C14.2939 9.70925 14.4875 10.3473 14.4875 11C14.4875 11.8752 14.1398 12.7145 13.5209 13.3334C12.902 13.9523 12.0627 14.3 11.1875 14.3ZM11.1875 9.01995C10.7958 9.01995 10.413 9.13608 10.0874 9.35364C9.76181 9.57121 9.50803 9.88044 9.35817 10.2422C9.20831 10.604 9.1691 11.0021 9.2455 11.3862C9.3219 11.7703 9.51047 12.1231 9.78738 12.4C10.0643 12.6769 10.4171 12.8655 10.8012 12.9419C11.1853 13.0183 11.5834 12.9791 11.9452 12.8292C12.307 12.6794 12.6162 12.4256 12.8338 12.1C13.0513 11.7744 13.1675 11.3916 13.1675 11C13.1663 10.4752 12.9573 9.97224 12.5862 9.60117C12.2152 9.23009 11.7122 9.02112 11.1875 9.01995Z' })
      ),
      'View Tutorial'
    )
  );
};
exports.default = TutorialCard;

/***/ }),
/* 491 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _CourseCard = __webpack_require__(492);

var _CourseCard2 = _interopRequireDefault(_CourseCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Courses = function Courses() {

  var diviBeginnerCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Beginner Course.jpg';
  var diviThemeBuilderCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Theme Builder Course.jpg';
  var diviResponsiveCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Responsive Course.jpg';
  var diviWebsiteDesignCourse = pacDaAppLocalizer.plugin_url + 'include/img/Divi Website Design Course.jpg';

  return wp.element.createElement(
    'div',
    { className: 'pac_da_courses' },
    wp.element.createElement(
      'div',
      { className: 'about' },
      wp.element.createElement(
        'span',
        null,
        'divi Courses On Our Website'
      ),
      wp.element.createElement(
        'p',
        null,
        'Below you will find all of our paid Divi and WordPress related courses.  We create practical and easy to follow courses that are relevant to the Divi, WordPress, web design, marketing, and small business world. If you enjoy our teaching style on YouTube, you will love our courses!'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_all_course' },
      wp.element.createElement(_CourseCard2.default, { title: 'Divi Beginner Course', url: 'https://www.peeayecreative.com/product/divi-beginner-course/', thumbnail: diviBeginnerCourse, description: 'If you are new to Divi and want to learn how to use this incredible tool with training from The Divi Teacher, then this Divi Beginner course is perfect for you! Includes 4.5 hours of video AND written training!' }),
      wp.element.createElement(_CourseCard2.default, { title: 'Divi Theme Builder', url: 'https://www.peeayecreative.com/product/divi-theme-builder-course/', thumbnail: diviThemeBuilderCourse, description: 'If you are a Divi user ready to take your websites to the next level with the incredibly powerful template tool from Elegant Themes, then this Divi Theme Builder mini-course is perfect for you!' }),
      wp.element.createElement(_CourseCard2.default, { title: 'How To Make Divi Responsive', url: 'https://www.peeayecreative.com/product/make-divi-responsive-course/', thumbnail: diviResponsiveCourse, description: 'You know that it is important to make your Divi website responsive. But what does that even mean? How do you go about that? Is it difficult and time consuming? This free course will show you exactly how easy it is to make your Divi websites responsive.' }),
      wp.element.createElement(_CourseCard2.default, { title: 'Beyond The Builder', url: 'https://www.peeayecreative.com/product/beyond-the-builder-ultimate-divi-website-course/', thumbnail: diviWebsiteDesignCourse, description: 'Hey, Divi lovers. If you are new to building websites, or your current website is struggling to go beyond the basics, then this Beyond The Builder Divi website course is perfect for you! This is a complete full website design guide from start to finish!' })
    )
  );
};
exports.default = Courses;

/***/ }),
/* 492 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var CourseCard = function CourseCard(props) {
  return wp.element.createElement(
    'div',
    { className: 'course_card' },
    wp.element.createElement('img', { className: 'img', src: props.thumbnail, alt: props.title }),
    wp.element.createElement(
      'div',
      { className: 'title' },
      props.title
    ),
    wp.element.createElement(
      'div',
      { className: 'description' },
      props.description
    ),
    wp.element.createElement(
      'a',
      { className: 'btn', target: '_blank', href: props.url !== undefined | props.url !== '' ? props.url : '#' },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement('path', { d: 'M11.1874 16.5C6.41781 16.5 4.08141 11.4884 3.98461 11.2728C3.94757 11.1866 3.92847 11.0938 3.92847 11C3.92847 10.9062 3.94757 10.8134 3.98461 10.7272C4.08141 10.5116 6.41781 5.5 11.1874 5.5C15.957 5.5 18.2934 10.5116 18.3902 10.7272C18.4273 10.8134 18.4464 10.9062 18.4464 11C18.4464 11.0938 18.4273 11.1866 18.3902 11.2728C18.2934 11.4884 15.957 16.5 11.1874 16.5ZM5.32661 11C5.85461 11.968 7.84781 15.18 11.1874 15.18C14.527 15.18 16.5202 11.968 17.0482 11C16.5202 10.032 14.527 6.82 11.1874 6.82C7.84781 6.82 5.85461 10.032 5.32661 11Z' }),
        wp.element.createElement('path', { d: 'M11.1875 14.3C10.5348 14.3 9.89675 14.1064 9.35407 13.7438C8.81139 13.3812 8.38842 12.8658 8.13865 12.2628C7.88888 11.6598 7.82353 10.9963 7.95086 10.3562C8.07819 9.71602 8.39249 9.12801 8.854 8.6665C9.31551 8.20499 9.90352 7.89069 10.5437 7.76336C11.1838 7.63603 11.8473 7.70138 12.4503 7.95115C13.0533 8.20092 13.5687 8.62389 13.9313 9.16657C14.2939 9.70925 14.4875 10.3473 14.4875 11C14.4875 11.8752 14.1398 12.7145 13.5209 13.3334C12.902 13.9523 12.0627 14.3 11.1875 14.3ZM11.1875 9.01995C10.7958 9.01995 10.413 9.13608 10.0874 9.35364C9.76181 9.57121 9.50803 9.88044 9.35817 10.2422C9.20831 10.604 9.1691 11.0021 9.2455 11.3862C9.3219 11.7703 9.51047 12.1231 9.78738 12.4C10.0643 12.6769 10.4171 12.8655 10.8012 12.9419C11.1853 13.0183 11.5834 12.9791 11.9452 12.8292C12.307 12.6794 12.6162 12.4256 12.8338 12.1C13.0513 11.7744 13.1675 11.3916 13.1675 11C13.1663 10.4752 12.9573 9.97224 12.5862 9.60117C12.2152 9.23009 11.7122 9.02112 11.1875 9.01995Z' })
      ),
      'View Course'
    )
  );
};
exports.default = CourseCard;

/***/ }),
/* 493 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _html2canvas = __webpack_require__(494);

var _html2canvas2 = _interopRequireDefault(_html2canvas);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var WebReport = function WebReport(props) {

    var screenshotRef = (0, _react.useRef)(null);

    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        reportCopied = _useState2[0],
        setReportCopied = _useState2[1];

    var copyToClipboard = function copyToClipboard(e) {
        var clipboard = '';
        var details = document.querySelector(".pac_da_web_report_details");
        var data = details.querySelectorAll('.detail');
        data.forEach(function (item, index) {
            clipboard += item.querySelector(".title").innerText + ': ' + item.querySelector(".value").innerText + '\r\n';
        });
        if (window.isSecureContext && navigator.clipboard) {
            navigator.clipboard.writeText(clipboard);
            setReportCopied(true);
            setTimeout(function () {
                setReportCopied(false);
            }, 3000);
        } else {
            alert('Requires a secure connection to copy report');
        }
    };

    var downloadReport = function downloadReport() {
        if (window.isSecureContext) {
            var element = screenshotRef.current;
            (0, _html2canvas2.default)(element).then(function (canvas) {
                var link = document.createElement('a');
                link.download = 'screenshot.png';
                link.href = canvas.toDataURL('image/png');
                link.click();
            });
        } else {
            alert('Requires a secure connection to download report');
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_support_helper' },
        wp.element.createElement(
            'div',
            { className: 'pac_da_web_report' },
            wp.element.createElement(
                'span',
                null,
                'Get help with your Divi website'
            ),
            wp.element.createElement(
                'p',
                null,
                'This feature allows you to get support faster and solve common problems by sharing a convenient system report of the most important information about your server and website. When you are facing an issue, you can share this report with your community or support team to help get feedback on possible causes and solutions.'
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_web_report_details', ref: screenshotRef },
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Website Name'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.website_name
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'PHP version'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.php_version
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Website URL'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value', 'data-value': 'small-case' },
                    props.websiteReport.website_url
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'PHP Memory Limit'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.memory_limit
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Hosting Server'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.hosting_name
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'PHP Max Execution Time'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.max_execute_time
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Wordpress version'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.wp_version
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'PHP Max Input Time'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.max_input_time
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Divi Theme Version'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.divi_version
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Security'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.connection_status
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Child Theme'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.child_theme
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Cache'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.cache_size
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Active Plugins'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.plugins
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'detail' },
                wp.element.createElement(
                    'div',
                    { className: 'title' },
                    'Timestamp'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'value' },
                    props.websiteReport.time
                )
            )
        ),
        wp.element.createElement(
            'div',
            { className: 'pac_da_web_report_btns' },
            wp.element.createElement(
                'div',
                { className: 'copy', onClick: reportCopied ? null : copyToClipboard },
                reportCopied ? wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M9.19363 15.4993C8.99473 15.4991 8.80413 15.42 8.66353 15.2793L5.22357 11.8394C5.15281 11.7704 5.09656 11.688 5.05816 11.597C5.01977 11.5059 5 11.4082 5 11.3094C5 11.2106 5.01977 11.1128 5.05816 11.0218C5.09656 10.9307 5.15281 10.8483 5.22357 10.7793C5.36419 10.6389 5.55485 10.5598 5.7536 10.5598C5.95235 10.5598 6.14294 10.6389 6.28357 10.7793L9.19363 13.6892L15.6635 7.21924C15.8042 7.07879 15.9948 7 16.1936 7C16.3923 7 16.5829 7.07879 16.7235 7.21924C16.864 7.35987 16.9429 7.55047 16.9429 7.74927C16.9429 7.94807 16.864 8.13867 16.7235 8.27927L9.72353 15.2793C9.58303 15.42 9.39243 15.4991 9.19363 15.4993Z' })
                    ),
                    'Copied To Clipboard!'
                ) : wp.element.createElement(
                    _react2.default.Fragment,
                    null,
                    wp.element.createElement(
                        'svg',
                        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M15.6557 6.50014H13.5604V5.42871C13.5604 5.03089 13.3887 4.64936 13.0831 4.36805C12.7775 4.08675 12.363 3.92871 11.9308 3.92871H6.3435C5.91129 3.92871 5.49679 4.08675 5.19117 4.36805C4.88556 4.64936 4.71387 5.03089 4.71387 5.42871V14.0001C4.71387 14.398 4.88556 14.7795 5.19117 15.0608C5.49679 15.3421 5.91129 15.5001 6.3435 15.5001H8.43874V16.5716C8.43874 16.9694 8.61043 17.3509 8.91604 17.6322C9.22166 17.9135 9.63616 18.0716 10.0684 18.0716H15.6557C16.0879 18.0716 16.5024 17.9135 16.808 17.6322C17.1136 17.3509 17.2853 16.9694 17.2853 16.5716V8.00014C17.2853 7.60231 17.1136 7.22078 16.808 6.93948C16.5024 6.65817 16.0879 6.50014 15.6557 6.50014ZM6.3435 14.2144C6.28175 14.2144 6.22254 14.1918 6.17888 14.1517C6.13522 14.1115 6.11069 14.057 6.11069 14.0001V5.42871C6.11069 5.37188 6.13522 5.31737 6.17888 5.27719C6.22254 5.237 6.28175 5.21443 6.3435 5.21443H11.9308C11.9925 5.21443 12.0518 5.237 12.0954 5.27719C12.1391 5.31737 12.1636 5.37188 12.1636 5.42871V6.50014H10.0684C9.63616 6.50014 9.22166 6.65817 8.91604 6.93948C8.61043 7.22078 8.43874 7.60231 8.43874 8.00014V14.2144H6.3435ZM15.8885 16.5716C15.8885 16.6284 15.8639 16.6829 15.8203 16.7231C15.7766 16.7633 15.7174 16.7859 15.6557 16.7859H10.0684C10.0066 16.7859 9.94741 16.7633 9.90375 16.7231C9.86009 16.6829 9.83556 16.6284 9.83556 16.5716V8.00014C9.83556 7.94331 9.86009 7.8888 9.90375 7.84862C9.94741 7.80843 10.0066 7.78585 10.0684 7.78585H15.6557C15.7174 7.78585 15.7766 7.80843 15.8203 7.84862C15.8639 7.8888 15.8885 7.94331 15.8885 8.00014V16.5716Z' })
                    ),
                    'Copy Report As Text'
                )
            ),
            wp.element.createElement(
                'div',
                { className: 'download', onClick: downloadReport },
                wp.element.createElement(
                    'svg',
                    { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
                    wp.element.createElement('path', { d: 'M15.2013 17.1114H6.79811C6.11751 17.1103 5.46513 16.8516 4.98388 16.3921C4.50262 15.9327 4.2317 15.3098 4.23047 14.66V11.0943C4.23047 10.917 4.30425 10.747 4.43557 10.6216C4.5669 10.4962 4.74501 10.4258 4.93073 10.4258C5.11646 10.4258 5.29457 10.4962 5.4259 10.6216C5.55722 10.747 5.631 10.917 5.631 11.0943V14.66C5.631 14.8064 5.66119 14.9513 5.71984 15.0864C5.77849 15.2216 5.86446 15.3445 5.97284 15.4479C6.08121 15.5514 6.20987 15.6335 6.35147 15.6895C6.49307 15.7455 6.64484 15.7743 6.79811 15.7743H15.2013C15.3546 15.7743 15.5063 15.7455 15.6479 15.6895C15.7895 15.6335 15.9182 15.5514 16.0266 15.4479C16.1349 15.3445 16.2209 15.2216 16.2796 15.0864C16.3382 14.9513 16.3684 14.8064 16.3684 14.66V11.0943C16.3684 10.917 16.4422 10.747 16.5735 10.6216C16.7048 10.4962 16.8829 10.4258 17.0687 10.4258C17.2544 10.4258 17.4325 10.4962 17.5638 10.6216C17.6952 10.747 17.7689 10.917 17.7689 11.0943V14.66C17.7677 15.3098 17.4968 15.9327 17.0155 16.3921C16.5343 16.8516 15.8819 17.1103 15.2013 17.1114Z' }),
                    wp.element.createElement('path', { d: 'M13.8288 11.121L11.4946 13.3495C11.4319 13.4124 11.3554 13.4611 11.2705 13.4922C11.2411 13.5058 11.2095 13.5148 11.1771 13.5189C11.1199 13.5368 11.06 13.5458 10.9997 13.5456C10.8143 13.5445 10.6366 13.4741 10.5049 13.3495L8.17066 11.121C8.04065 10.9951 7.96777 10.8253 7.96777 10.6485C7.96777 10.4717 8.04065 10.302 8.17066 10.1761C8.23536 10.1135 8.31241 10.0639 8.39736 10.03C8.48231 9.99614 8.57345 9.97869 8.66551 9.97869C8.75758 9.97869 8.84872 9.99614 8.93367 10.03C9.01861 10.0639 9.09567 10.1135 9.16037 10.1761L10.2995 11.2636V5.74571C10.2995 5.5684 10.3732 5.39835 10.5046 5.27297C10.6359 5.14759 10.814 5.07715 10.9997 5.07715C11.1855 5.07715 11.3636 5.14759 11.4949 5.27297C11.6262 5.39835 11.7 5.5684 11.7 5.74571V11.2636L12.8391 10.1761C12.9718 10.058 13.1474 9.99369 13.3288 9.99675C13.5103 9.9998 13.6833 10.07 13.8116 10.1925C13.9399 10.315 14.0134 10.4802 14.0166 10.6534C14.0198 10.8266 13.9525 10.9942 13.8288 11.121Z' })
                ),
                'Download Report As Image'
            )
        )
    );
};
exports.default = WebReport;

/***/ }),
/* 494 */
/***/ (function(module, exports, __webpack_require__) {

/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function (global, factory) {
     true ? module.exports = factory() :
    typeof define === 'function' && define.amd ? define(factory) :
    (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.html2canvas = factory());
}(this, (function () { 'use strict';

    /*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
    /* global Reflect, Promise */

    var extendStatics = function(d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };

    function __extends(d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    }

    var __assign = function() {
        __assign = Object.assign || function __assign(t) {
            for (var s, i = 1, n = arguments.length; i < n; i++) {
                s = arguments[i];
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
            }
            return t;
        };
        return __assign.apply(this, arguments);
    };

    function __awaiter(thisArg, _arguments, P, generator) {
        function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
        return new (P || (P = Promise))(function (resolve, reject) {
            function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
            function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
            function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
            step((generator = generator.apply(thisArg, _arguments || [])).next());
        });
    }

    function __generator(thisArg, body) {
        var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
        return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
        function verb(n) { return function (v) { return step([n, v]); }; }
        function step(op) {
            if (f) throw new TypeError("Generator is already executing.");
            while (_) try {
                if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                if (y = 0, t) op = [op[0] & 2, t.value];
                switch (op[0]) {
                    case 0: case 1: t = op; break;
                    case 4: _.label++; return { value: op[1], done: false };
                    case 5: _.label++; y = op[1]; op = [0]; continue;
                    case 7: op = _.ops.pop(); _.trys.pop(); continue;
                    default:
                        if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                        if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                        if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                        if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                        if (t[2]) _.ops.pop();
                        _.trys.pop(); continue;
                }
                op = body.call(thisArg, _);
            } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
            if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
        }
    }

    function __spreadArray(to, from, pack) {
        if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
            if (ar || !(i in from)) {
                if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                ar[i] = from[i];
            }
        }
        return to.concat(ar || from);
    }

    var Bounds = /** @class */ (function () {
        function Bounds(left, top, width, height) {
            this.left = left;
            this.top = top;
            this.width = width;
            this.height = height;
        }
        Bounds.prototype.add = function (x, y, w, h) {
            return new Bounds(this.left + x, this.top + y, this.width + w, this.height + h);
        };
        Bounds.fromClientRect = function (context, clientRect) {
            return new Bounds(clientRect.left + context.windowBounds.left, clientRect.top + context.windowBounds.top, clientRect.width, clientRect.height);
        };
        Bounds.fromDOMRectList = function (context, domRectList) {
            var domRect = Array.from(domRectList).find(function (rect) { return rect.width !== 0; });
            return domRect
                ? new Bounds(domRect.left + context.windowBounds.left, domRect.top + context.windowBounds.top, domRect.width, domRect.height)
                : Bounds.EMPTY;
        };
        Bounds.EMPTY = new Bounds(0, 0, 0, 0);
        return Bounds;
    }());
    var parseBounds = function (context, node) {
        return Bounds.fromClientRect(context, node.getBoundingClientRect());
    };
    var parseDocumentSize = function (document) {
        var body = document.body;
        var documentElement = document.documentElement;
        if (!body || !documentElement) {
            throw new Error("Unable to get document size");
        }
        var width = Math.max(Math.max(body.scrollWidth, documentElement.scrollWidth), Math.max(body.offsetWidth, documentElement.offsetWidth), Math.max(body.clientWidth, documentElement.clientWidth));
        var height = Math.max(Math.max(body.scrollHeight, documentElement.scrollHeight), Math.max(body.offsetHeight, documentElement.offsetHeight), Math.max(body.clientHeight, documentElement.clientHeight));
        return new Bounds(0, 0, width, height);
    };

    /*
     * css-line-break 2.1.0 <https://github.com/niklasvh/css-line-break#readme>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var toCodePoints$1 = function (str) {
        var codePoints = [];
        var i = 0;
        var length = str.length;
        while (i < length) {
            var value = str.charCodeAt(i++);
            if (value >= 0xd800 && value <= 0xdbff && i < length) {
                var extra = str.charCodeAt(i++);
                if ((extra & 0xfc00) === 0xdc00) {
                    codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
                }
                else {
                    codePoints.push(value);
                    i--;
                }
            }
            else {
                codePoints.push(value);
            }
        }
        return codePoints;
    };
    var fromCodePoint$1 = function () {
        var codePoints = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            codePoints[_i] = arguments[_i];
        }
        if (String.fromCodePoint) {
            return String.fromCodePoint.apply(String, codePoints);
        }
        var length = codePoints.length;
        if (!length) {
            return '';
        }
        var codeUnits = [];
        var index = -1;
        var result = '';
        while (++index < length) {
            var codePoint = codePoints[index];
            if (codePoint <= 0xffff) {
                codeUnits.push(codePoint);
            }
            else {
                codePoint -= 0x10000;
                codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
            }
            if (index + 1 === length || codeUnits.length > 0x4000) {
                result += String.fromCharCode.apply(String, codeUnits);
                codeUnits.length = 0;
            }
        }
        return result;
    };
    var chars$2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$2 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$2 = 0; i$2 < chars$2.length; i$2++) {
        lookup$2[chars$2.charCodeAt(i$2)] = i$2;
    }

    /*
     * utrie 1.0.2 <https://github.com/niklasvh/utrie>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$1$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$1$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$1$1 = 0; i$1$1 < chars$1$1.length; i$1$1++) {
        lookup$1$1[chars$1$1.charCodeAt(i$1$1)] = i$1$1;
    }
    var decode$1 = function (base64) {
        var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
        if (base64[base64.length - 1] === '=') {
            bufferLength--;
            if (base64[base64.length - 2] === '=') {
                bufferLength--;
            }
        }
        var buffer = typeof ArrayBuffer !== 'undefined' &&
            typeof Uint8Array !== 'undefined' &&
            typeof Uint8Array.prototype.slice !== 'undefined'
            ? new ArrayBuffer(bufferLength)
            : new Array(bufferLength);
        var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
        for (i = 0; i < len; i += 4) {
            encoded1 = lookup$1$1[base64.charCodeAt(i)];
            encoded2 = lookup$1$1[base64.charCodeAt(i + 1)];
            encoded3 = lookup$1$1[base64.charCodeAt(i + 2)];
            encoded4 = lookup$1$1[base64.charCodeAt(i + 3)];
            bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
            bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
            bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
        }
        return buffer;
    };
    var polyUint16Array$1 = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 2) {
            bytes.push((buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };
    var polyUint32Array$1 = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 4) {
            bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };

    /** Shift size for getting the index-2 table offset. */
    var UTRIE2_SHIFT_2$1 = 5;
    /** Shift size for getting the index-1 table offset. */
    var UTRIE2_SHIFT_1$1 = 6 + 5;
    /**
     * Shift size for shifting left the index array values.
     * Increases possible data size with 16-bit index values at the cost
     * of compactability.
     * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
     */
    var UTRIE2_INDEX_SHIFT$1 = 2;
    /**
     * Difference between the two shift sizes,
     * for getting an index-1 offset from an index-2 offset. 6=11-5
     */
    var UTRIE2_SHIFT_1_2$1 = UTRIE2_SHIFT_1$1 - UTRIE2_SHIFT_2$1;
    /**
     * The part of the index-2 table for U+D800..U+DBFF stores values for
     * lead surrogate code _units_ not code _points_.
     * Values for lead surrogate code _points_ are indexed with this portion of the table.
     * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
     */
    var UTRIE2_LSCP_INDEX_2_OFFSET$1 = 0x10000 >> UTRIE2_SHIFT_2$1;
    /** Number of entries in a data block. 32=0x20 */
    var UTRIE2_DATA_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_2$1;
    /** Mask for getting the lower bits for the in-data-block offset. */
    var UTRIE2_DATA_MASK$1 = UTRIE2_DATA_BLOCK_LENGTH$1 - 1;
    var UTRIE2_LSCP_INDEX_2_LENGTH$1 = 0x400 >> UTRIE2_SHIFT_2$1;
    /** Count the lengths of both BMP pieces. 2080=0x820 */
    var UTRIE2_INDEX_2_BMP_LENGTH$1 = UTRIE2_LSCP_INDEX_2_OFFSET$1 + UTRIE2_LSCP_INDEX_2_LENGTH$1;
    /**
     * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
     * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
     */
    var UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 = UTRIE2_INDEX_2_BMP_LENGTH$1;
    var UTRIE2_UTF8_2B_INDEX_2_LENGTH$1 = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
    /**
     * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
     * Variable length, for code points up to highStart, where the last single-value range starts.
     * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
     * (For 0x100000 supplementary code points U+10000..U+10ffff.)
     *
     * The part of the index-2 table for supplementary code points starts
     * after this index-1 table.
     *
     * Both the index-1 table and the following part of the index-2 table
     * are omitted completely if there is only BMP data.
     */
    var UTRIE2_INDEX_1_OFFSET$1 = UTRIE2_UTF8_2B_INDEX_2_OFFSET$1 + UTRIE2_UTF8_2B_INDEX_2_LENGTH$1;
    /**
     * Number of index-1 entries for the BMP. 32=0x20
     * This part of the index-1 table is omitted from the serialized form.
     */
    var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 = 0x10000 >> UTRIE2_SHIFT_1$1;
    /** Number of entries in an index-2 block. 64=0x40 */
    var UTRIE2_INDEX_2_BLOCK_LENGTH$1 = 1 << UTRIE2_SHIFT_1_2$1;
    /** Mask for getting the lower bits for the in-index-2-block offset. */
    var UTRIE2_INDEX_2_MASK$1 = UTRIE2_INDEX_2_BLOCK_LENGTH$1 - 1;
    var slice16$1 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint16Array(Array.prototype.slice.call(view, start, end));
    };
    var slice32$1 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint32Array(Array.prototype.slice.call(view, start, end));
    };
    var createTrieFromBase64$1 = function (base64, _byteLength) {
        var buffer = decode$1(base64);
        var view32 = Array.isArray(buffer) ? polyUint32Array$1(buffer) : new Uint32Array(buffer);
        var view16 = Array.isArray(buffer) ? polyUint16Array$1(buffer) : new Uint16Array(buffer);
        var headerLength = 24;
        var index = slice16$1(view16, headerLength / 2, view32[4] / 2);
        var data = view32[5] === 2
            ? slice16$1(view16, (headerLength + view32[4]) / 2)
            : slice32$1(view32, Math.ceil((headerLength + view32[4]) / 4));
        return new Trie$1(view32[0], view32[1], view32[2], view32[3], index, data);
    };
    var Trie$1 = /** @class */ (function () {
        function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
            this.initialValue = initialValue;
            this.errorValue = errorValue;
            this.highStart = highStart;
            this.highValueIndex = highValueIndex;
            this.index = index;
            this.data = data;
        }
        /**
         * Get the value for a code point as stored in the Trie.
         *
         * @param codePoint the code point
         * @return the value
         */
        Trie.prototype.get = function (codePoint) {
            var ix;
            if (codePoint >= 0) {
                if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {
                    // Ordinary BMP code point, excluding leading surrogates.
                    // BMP uses a single level lookup.  BMP index starts at offset 0 in the Trie2 index.
                    // 16 bit data is stored in the index array itself.
                    ix = this.index[codePoint >> UTRIE2_SHIFT_2$1];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint <= 0xffff) {
                    // Lead Surrogate Code Point.  A Separate index section is stored for
                    // lead surrogate code units and code points.
                    //   The main index has the code unit data.
                    //   For this function, we need the code point data.
                    // Note: this expression could be refactored for slightly improved efficiency, but
                    //       surrogate code points will be so rare in practice that it's not worth it.
                    ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1 + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2$1)];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint < this.highStart) {
                    // Supplemental code point, use two-level lookup.
                    ix = UTRIE2_INDEX_1_OFFSET$1 - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1 + (codePoint >> UTRIE2_SHIFT_1$1);
                    ix = this.index[ix];
                    ix += (codePoint >> UTRIE2_SHIFT_2$1) & UTRIE2_INDEX_2_MASK$1;
                    ix = this.index[ix];
                    ix = (ix << UTRIE2_INDEX_SHIFT$1) + (codePoint & UTRIE2_DATA_MASK$1);
                    return this.data[ix];
                }
                if (codePoint <= 0x10ffff) {
                    return this.data[this.highValueIndex];
                }
            }
            // Fall through.  The code point is outside of the legal range of 0..0x10ffff.
            return this.errorValue;
        };
        return Trie;
    }());

    /*
     * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$3 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$3 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$3 = 0; i$3 < chars$3.length; i$3++) {
        lookup$3[chars$3.charCodeAt(i$3)] = i$3;
    }

    var base64$1 = ' ';

    var LETTER_NUMBER_MODIFIER = 50;
    // Non-tailorable Line Breaking Classes
    var BK = 1; //  Cause a line break (after)
    var CR$1 = 2; //  Cause a line break (after), except between CR and LF
    var LF$1 = 3; //  Cause a line break (after)
    var CM = 4; //  Prohibit a line break between the character and the preceding character
    var NL = 5; //  Cause a line break (after)
    var WJ = 7; //  Prohibit line breaks before and after
    var ZW = 8; //  Provide a break opportunity
    var GL = 9; //  Prohibit line breaks before and after
    var SP = 10; // Enable indirect line breaks
    var ZWJ$1 = 11; // Prohibit line breaks within joiner sequences
    // Break Opportunities
    var B2 = 12; //  Provide a line break opportunity before and after the character
    var BA = 13; //  Generally provide a line break opportunity after the character
    var BB = 14; //  Generally provide a line break opportunity before the character
    var HY = 15; //  Provide a line break opportunity after the character, except in numeric context
    var CB = 16; //   Provide a line break opportunity contingent on additional information
    // Characters Prohibiting Certain Breaks
    var CL = 17; //  Prohibit line breaks before
    var CP = 18; //  Prohibit line breaks before
    var EX = 19; //  Prohibit line breaks before
    var IN = 20; //  Allow only indirect line breaks between pairs
    var NS = 21; //  Allow only indirect line breaks before
    var OP = 22; //  Prohibit line breaks after
    var QU = 23; //  Act like they are both opening and closing
    // Numeric Context
    var IS = 24; //  Prevent breaks after any and before numeric
    var NU = 25; //  Form numeric expressions for line breaking purposes
    var PO = 26; //  Do not break following a numeric expression
    var PR = 27; //  Do not break in front of a numeric expression
    var SY = 28; //  Prevent a break before; and allow a break after
    // Other Characters
    var AI = 29; //  Act like AL when the resolvedEAW is N; otherwise; act as ID
    var AL = 30; //  Are alphabetic characters or symbols that are used with alphabetic characters
    var CJ = 31; //  Treat as NS or ID for strict or normal breaking.
    var EB = 32; //  Do not break from following Emoji Modifier
    var EM = 33; //  Do not break from preceding Emoji Base
    var H2 = 34; //  Form Korean syllable blocks
    var H3 = 35; //  Form Korean syllable blocks
    var HL = 36; //  Do not break around a following hyphen; otherwise act as Alphabetic
    var ID = 37; //  Break before or after; except in some numeric context
    var JL = 38; //  Form Korean syllable blocks
    var JV = 39; //  Form Korean syllable blocks
    var JT = 40; //  Form Korean syllable blocks
    var RI$1 = 41; //  Keep pairs together. For pairs; break before and after other classes
    var SA = 42; //  Provide a line break opportunity contingent on additional, language-specific context analysis
    var XX = 43; //  Have as yet unknown line breaking behavior or unassigned code positions
    var ea_OP = [0x2329, 0xff08];
    var BREAK_MANDATORY = '!';
    var BREAK_NOT_ALLOWED$1 = '×';
    var BREAK_ALLOWED$1 = '÷';
    var UnicodeTrie$1 = createTrieFromBase64$1(base64$1);
    var ALPHABETICS = [AL, HL];
    var HARD_LINE_BREAKS = [BK, CR$1, LF$1, NL];
    var SPACE$1 = [SP, ZW];
    var PREFIX_POSTFIX = [PR, PO];
    var LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE$1);
    var KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3];
    var HYPHEN = [HY, BA];
    var codePointsToCharacterClasses = function (codePoints, lineBreak) {
        if (lineBreak === void 0) { lineBreak = 'strict'; }
        var types = [];
        var indices = [];
        var categories = [];
        codePoints.forEach(function (codePoint, index) {
            var classType = UnicodeTrie$1.get(codePoint);
            if (classType > LETTER_NUMBER_MODIFIER) {
                categories.push(true);
                classType -= LETTER_NUMBER_MODIFIER;
            }
            else {
                categories.push(false);
            }
            if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) {
                // U+2010, – U+2013, 〜 U+301C, ゠ U+30A0
                if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) {
                    indices.push(index);
                    return types.push(CB);
                }
            }
            if (classType === CM || classType === ZWJ$1) {
                // LB10 Treat any remaining combining mark or ZWJ as AL.
                if (index === 0) {
                    indices.push(index);
                    return types.push(AL);
                }
                // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of
                // the base character in all of the following rules. Treat ZWJ as if it were CM.
                var prev = types[index - 1];
                if (LINE_BREAKS.indexOf(prev) === -1) {
                    indices.push(indices[index - 1]);
                    return types.push(prev);
                }
                indices.push(index);
                return types.push(AL);
            }
            indices.push(index);
            if (classType === CJ) {
                return types.push(lineBreak === 'strict' ? NS : ID);
            }
            if (classType === SA) {
                return types.push(AL);
            }
            if (classType === AI) {
                return types.push(AL);
            }
            // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL
            // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised
            // to take into account the actual line breaking properties for these characters.
            if (classType === XX) {
                if ((codePoint >= 0x20000 && codePoint <= 0x2fffd) || (codePoint >= 0x30000 && codePoint <= 0x3fffd)) {
                    return types.push(ID);
                }
                else {
                    return types.push(AL);
                }
            }
            types.push(classType);
        });
        return [indices, types, categories];
    };
    var isAdjacentWithSpaceIgnored = function (a, b, currentIndex, classTypes) {
        var current = classTypes[currentIndex];
        if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) {
            var i = currentIndex;
            while (i <= classTypes.length) {
                i++;
                var next = classTypes[i];
                if (next === b) {
                    return true;
                }
                if (next !== SP) {
                    break;
                }
            }
        }
        if (current === SP) {
            var i = currentIndex;
            while (i > 0) {
                i--;
                var prev = classTypes[i];
                if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) {
                    var n = currentIndex;
                    while (n <= classTypes.length) {
                        n++;
                        var next = classTypes[n];
                        if (next === b) {
                            return true;
                        }
                        if (next !== SP) {
                            break;
                        }
                    }
                }
                if (prev !== SP) {
                    break;
                }
            }
        }
        return false;
    };
    var previousNonSpaceClassType = function (currentIndex, classTypes) {
        var i = currentIndex;
        while (i >= 0) {
            var type = classTypes[i];
            if (type === SP) {
                i--;
            }
            else {
                return type;
            }
        }
        return 0;
    };
    var _lineBreakAtIndex = function (codePoints, classTypes, indicies, index, forbiddenBreaks) {
        if (indicies[index] === 0) {
            return BREAK_NOT_ALLOWED$1;
        }
        var currentIndex = index - 1;
        if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) {
            return BREAK_NOT_ALLOWED$1;
        }
        var beforeIndex = currentIndex - 1;
        var afterIndex = currentIndex + 1;
        var current = classTypes[currentIndex];
        // LB4 Always break after hard line breaks.
        // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks.
        var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0;
        var next = classTypes[afterIndex];
        if (current === CR$1 && next === LF$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        if (HARD_LINE_BREAKS.indexOf(current) !== -1) {
            return BREAK_MANDATORY;
        }
        // LB6 Do not break before hard line breaks.
        if (HARD_LINE_BREAKS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB7 Do not break before spaces or zero width space.
        if (SPACE$1.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB8 Break before any character following a zero-width space, even if one or more spaces intervene.
        if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) {
            return BREAK_ALLOWED$1;
        }
        // LB8a Do not break after a zero width joiner.
        if (UnicodeTrie$1.get(codePoints[currentIndex]) === ZWJ$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // zwj emojis
        if ((current === EB || current === EM) && UnicodeTrie$1.get(codePoints[afterIndex]) === ZWJ$1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB11 Do not break before or after Word joiner and related characters.
        if (current === WJ || next === WJ) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB12 Do not break after NBSP and related characters.
        if (current === GL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB12a Do not break before NBSP and related characters, except after spaces and hyphens.
        if ([SP, BA, HY].indexOf(current) === -1 && next === GL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB13 Do not break before ‘]’ or ‘!’ or ‘;’ or ‘/’, even after spaces.
        if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB14 Do not break after ‘[’, even after spaces.
        if (previousNonSpaceClassType(currentIndex, classTypes) === OP) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB15 Do not break within ‘”[’, even with intervening spaces.
        if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces.
        if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB17 Do not break within ‘——’, even with intervening spaces.
        if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB18 Break after spaces.
        if (current === SP) {
            return BREAK_ALLOWED$1;
        }
        // LB19 Do not break before or after quotation marks, such as ‘ ” ’.
        if (current === QU || next === QU) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB20 Break before and after unresolved CB.
        if (next === CB || current === CB) {
            return BREAK_ALLOWED$1;
        }
        // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents.
        if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB21a Don't break after Hebrew + Hyphen.
        if (before === HL && HYPHEN.indexOf(current) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB21b Don’t break between Solidus and Hebrew letters.
        if (current === SY && next === HL) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB22 Do not break before ellipsis.
        if (next === IN) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB23 Do not break between digits and letters.
        if ((ALPHABETICS.indexOf(next) !== -1 && current === NU) || (ALPHABETICS.indexOf(current) !== -1 && next === NU)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes.
        if ((current === PR && [ID, EB, EM].indexOf(next) !== -1) ||
            ([ID, EB, EM].indexOf(current) !== -1 && next === PO)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix.
        if ((ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1) ||
            (PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB25 Do not break between the following pairs of classes relevant to numbers:
        if (
        // (PR | PO) × ( OP | HY )? NU
        ([PR, PO].indexOf(current) !== -1 &&
            (next === NU || ([OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU))) ||
            // ( OP | HY ) × NU
            ([OP, HY].indexOf(current) !== -1 && next === NU) ||
            // NU ×	(NU | SY | IS)
            (current === NU && [NU, SY, IS].indexOf(next) !== -1)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // NU (NU | SY | IS)* × (NU | SY | IS | CL | CP)
        if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) {
            var prevIndex = currentIndex;
            while (prevIndex >= 0) {
                var type = classTypes[prevIndex];
                if (type === NU) {
                    return BREAK_NOT_ALLOWED$1;
                }
                else if ([SY, IS].indexOf(type) !== -1) {
                    prevIndex--;
                }
                else {
                    break;
                }
            }
        }
        // NU (NU | SY | IS)* (CL | CP)? × (PO | PR))
        if ([PR, PO].indexOf(next) !== -1) {
            var prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex;
            while (prevIndex >= 0) {
                var type = classTypes[prevIndex];
                if (type === NU) {
                    return BREAK_NOT_ALLOWED$1;
                }
                else if ([SY, IS].indexOf(type) !== -1) {
                    prevIndex--;
                }
                else {
                    break;
                }
            }
        }
        // LB26 Do not break a Korean syllable.
        if ((JL === current && [JL, JV, H2, H3].indexOf(next) !== -1) ||
            ([JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1) ||
            ([JT, H3].indexOf(current) !== -1 && next === JT)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB27 Treat a Korean Syllable Block the same as ID.
        if ((KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1) ||
            (KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB28 Do not break between alphabetics (“at”).
        if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB29 Do not break between numeric punctuation and alphabetics (“e.g.”).
        if (current === IS && ALPHABETICS.indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses.
        if ((ALPHABETICS.concat(NU).indexOf(current) !== -1 &&
            next === OP &&
            ea_OP.indexOf(codePoints[afterIndex]) === -1) ||
            (ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP)) {
            return BREAK_NOT_ALLOWED$1;
        }
        // LB30a Break between two regional indicator symbols if and only if there are an even number of regional
        // indicators preceding the position of the break.
        if (current === RI$1 && next === RI$1) {
            var i = indicies[currentIndex];
            var count = 1;
            while (i > 0) {
                i--;
                if (classTypes[i] === RI$1) {
                    count++;
                }
                else {
                    break;
                }
            }
            if (count % 2 !== 0) {
                return BREAK_NOT_ALLOWED$1;
            }
        }
        // LB30b Do not break between an emoji base and an emoji modifier.
        if (current === EB && next === EM) {
            return BREAK_NOT_ALLOWED$1;
        }
        return BREAK_ALLOWED$1;
    };
    var cssFormattedClasses = function (codePoints, options) {
        if (!options) {
            options = { lineBreak: 'normal', wordBreak: 'normal' };
        }
        var _a = codePointsToCharacterClasses(codePoints, options.lineBreak), indicies = _a[0], classTypes = _a[1], isLetterNumber = _a[2];
        if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') {
            classTypes = classTypes.map(function (type) { return ([NU, AL, SA].indexOf(type) !== -1 ? ID : type); });
        }
        var forbiddenBreakpoints = options.wordBreak === 'keep-all'
            ? isLetterNumber.map(function (letterNumber, i) {
                return letterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff;
            })
            : undefined;
        return [indicies, classTypes, forbiddenBreakpoints];
    };
    var Break = /** @class */ (function () {
        function Break(codePoints, lineBreak, start, end) {
            this.codePoints = codePoints;
            this.required = lineBreak === BREAK_MANDATORY;
            this.start = start;
            this.end = end;
        }
        Break.prototype.slice = function () {
            return fromCodePoint$1.apply(void 0, this.codePoints.slice(this.start, this.end));
        };
        return Break;
    }());
    var LineBreaker = function (str, options) {
        var codePoints = toCodePoints$1(str);
        var _a = cssFormattedClasses(codePoints, options), indicies = _a[0], classTypes = _a[1], forbiddenBreakpoints = _a[2];
        var length = codePoints.length;
        var lastEnd = 0;
        var nextIndex = 0;
        return {
            next: function () {
                if (nextIndex >= length) {
                    return { done: true, value: null };
                }
                var lineBreak = BREAK_NOT_ALLOWED$1;
                while (nextIndex < length &&
                    (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) ===
                        BREAK_NOT_ALLOWED$1) { }
                if (lineBreak !== BREAK_NOT_ALLOWED$1 || nextIndex === length) {
                    var value = new Break(codePoints, lineBreak, lastEnd, nextIndex);
                    lastEnd = nextIndex;
                    return { value: value, done: false };
                }
                return { done: true, value: null };
            },
        };
    };

    // https://www.w3.org/TR/css-syntax-3
    var FLAG_UNRESTRICTED = 1 << 0;
    var FLAG_ID = 1 << 1;
    var FLAG_INTEGER = 1 << 2;
    var FLAG_NUMBER = 1 << 3;
    var LINE_FEED = 0x000a;
    var SOLIDUS = 0x002f;
    var REVERSE_SOLIDUS = 0x005c;
    var CHARACTER_TABULATION = 0x0009;
    var SPACE = 0x0020;
    var QUOTATION_MARK = 0x0022;
    var EQUALS_SIGN = 0x003d;
    var NUMBER_SIGN = 0x0023;
    var DOLLAR_SIGN = 0x0024;
    var PERCENTAGE_SIGN = 0x0025;
    var APOSTROPHE = 0x0027;
    var LEFT_PARENTHESIS = 0x0028;
    var RIGHT_PARENTHESIS = 0x0029;
    var LOW_LINE = 0x005f;
    var HYPHEN_MINUS = 0x002d;
    var EXCLAMATION_MARK = 0x0021;
    var LESS_THAN_SIGN = 0x003c;
    var GREATER_THAN_SIGN = 0x003e;
    var COMMERCIAL_AT = 0x0040;
    var LEFT_SQUARE_BRACKET = 0x005b;
    var RIGHT_SQUARE_BRACKET = 0x005d;
    var CIRCUMFLEX_ACCENT = 0x003d;
    var LEFT_CURLY_BRACKET = 0x007b;
    var QUESTION_MARK = 0x003f;
    var RIGHT_CURLY_BRACKET = 0x007d;
    var VERTICAL_LINE = 0x007c;
    var TILDE = 0x007e;
    var CONTROL = 0x0080;
    var REPLACEMENT_CHARACTER = 0xfffd;
    var ASTERISK = 0x002a;
    var PLUS_SIGN = 0x002b;
    var COMMA = 0x002c;
    var COLON = 0x003a;
    var SEMICOLON = 0x003b;
    var FULL_STOP = 0x002e;
    var NULL = 0x0000;
    var BACKSPACE = 0x0008;
    var LINE_TABULATION = 0x000b;
    var SHIFT_OUT = 0x000e;
    var INFORMATION_SEPARATOR_ONE = 0x001f;
    var DELETE = 0x007f;
    var EOF = -1;
    var ZERO = 0x0030;
    var a = 0x0061;
    var e = 0x0065;
    var f = 0x0066;
    var u = 0x0075;
    var z = 0x007a;
    var A = 0x0041;
    var E = 0x0045;
    var F = 0x0046;
    var U = 0x0055;
    var Z = 0x005a;
    var isDigit = function (codePoint) { return codePoint >= ZERO && codePoint <= 0x0039; };
    var isSurrogateCodePoint = function (codePoint) { return codePoint >= 0xd800 && codePoint <= 0xdfff; };
    var isHex = function (codePoint) {
        return isDigit(codePoint) || (codePoint >= A && codePoint <= F) || (codePoint >= a && codePoint <= f);
    };
    var isLowerCaseLetter = function (codePoint) { return codePoint >= a && codePoint <= z; };
    var isUpperCaseLetter = function (codePoint) { return codePoint >= A && codePoint <= Z; };
    var isLetter = function (codePoint) { return isLowerCaseLetter(codePoint) || isUpperCaseLetter(codePoint); };
    var isNonASCIICodePoint = function (codePoint) { return codePoint >= CONTROL; };
    var isWhiteSpace = function (codePoint) {
        return codePoint === LINE_FEED || codePoint === CHARACTER_TABULATION || codePoint === SPACE;
    };
    var isNameStartCodePoint = function (codePoint) {
        return isLetter(codePoint) || isNonASCIICodePoint(codePoint) || codePoint === LOW_LINE;
    };
    var isNameCodePoint = function (codePoint) {
        return isNameStartCodePoint(codePoint) || isDigit(codePoint) || codePoint === HYPHEN_MINUS;
    };
    var isNonPrintableCodePoint = function (codePoint) {
        return ((codePoint >= NULL && codePoint <= BACKSPACE) ||
            codePoint === LINE_TABULATION ||
            (codePoint >= SHIFT_OUT && codePoint <= INFORMATION_SEPARATOR_ONE) ||
            codePoint === DELETE);
    };
    var isValidEscape = function (c1, c2) {
        if (c1 !== REVERSE_SOLIDUS) {
            return false;
        }
        return c2 !== LINE_FEED;
    };
    var isIdentifierStart = function (c1, c2, c3) {
        if (c1 === HYPHEN_MINUS) {
            return isNameStartCodePoint(c2) || isValidEscape(c2, c3);
        }
        else if (isNameStartCodePoint(c1)) {
            return true;
        }
        else if (c1 === REVERSE_SOLIDUS && isValidEscape(c1, c2)) {
            return true;
        }
        return false;
    };
    var isNumberStart = function (c1, c2, c3) {
        if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {
            if (isDigit(c2)) {
                return true;
            }
            return c2 === FULL_STOP && isDigit(c3);
        }
        if (c1 === FULL_STOP) {
            return isDigit(c2);
        }
        return isDigit(c1);
    };
    var stringToNumber = function (codePoints) {
        var c = 0;
        var sign = 1;
        if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {
            if (codePoints[c] === HYPHEN_MINUS) {
                sign = -1;
            }
            c++;
        }
        var integers = [];
        while (isDigit(codePoints[c])) {
            integers.push(codePoints[c++]);
        }
        var int = integers.length ? parseInt(fromCodePoint$1.apply(void 0, integers), 10) : 0;
        if (codePoints[c] === FULL_STOP) {
            c++;
        }
        var fraction = [];
        while (isDigit(codePoints[c])) {
            fraction.push(codePoints[c++]);
        }
        var fracd = fraction.length;
        var frac = fracd ? parseInt(fromCodePoint$1.apply(void 0, fraction), 10) : 0;
        if (codePoints[c] === E || codePoints[c] === e) {
            c++;
        }
        var expsign = 1;
        if (codePoints[c] === PLUS_SIGN || codePoints[c] === HYPHEN_MINUS) {
            if (codePoints[c] === HYPHEN_MINUS) {
                expsign = -1;
            }
            c++;
        }
        var exponent = [];
        while (isDigit(codePoints[c])) {
            exponent.push(codePoints[c++]);
        }
        var exp = exponent.length ? parseInt(fromCodePoint$1.apply(void 0, exponent), 10) : 0;
        return sign * (int + frac * Math.pow(10, -fracd)) * Math.pow(10, expsign * exp);
    };
    var LEFT_PARENTHESIS_TOKEN = {
        type: 2 /* LEFT_PARENTHESIS_TOKEN */
    };
    var RIGHT_PARENTHESIS_TOKEN = {
        type: 3 /* RIGHT_PARENTHESIS_TOKEN */
    };
    var COMMA_TOKEN = { type: 4 /* COMMA_TOKEN */ };
    var SUFFIX_MATCH_TOKEN = { type: 13 /* SUFFIX_MATCH_TOKEN */ };
    var PREFIX_MATCH_TOKEN = { type: 8 /* PREFIX_MATCH_TOKEN */ };
    var COLUMN_TOKEN = { type: 21 /* COLUMN_TOKEN */ };
    var DASH_MATCH_TOKEN = { type: 9 /* DASH_MATCH_TOKEN */ };
    var INCLUDE_MATCH_TOKEN = { type: 10 /* INCLUDE_MATCH_TOKEN */ };
    var LEFT_CURLY_BRACKET_TOKEN = {
        type: 11 /* LEFT_CURLY_BRACKET_TOKEN */
    };
    var RIGHT_CURLY_BRACKET_TOKEN = {
        type: 12 /* RIGHT_CURLY_BRACKET_TOKEN */
    };
    var SUBSTRING_MATCH_TOKEN = { type: 14 /* SUBSTRING_MATCH_TOKEN */ };
    var BAD_URL_TOKEN = { type: 23 /* BAD_URL_TOKEN */ };
    var BAD_STRING_TOKEN = { type: 1 /* BAD_STRING_TOKEN */ };
    var CDO_TOKEN = { type: 25 /* CDO_TOKEN */ };
    var CDC_TOKEN = { type: 24 /* CDC_TOKEN */ };
    var COLON_TOKEN = { type: 26 /* COLON_TOKEN */ };
    var SEMICOLON_TOKEN = { type: 27 /* SEMICOLON_TOKEN */ };
    var LEFT_SQUARE_BRACKET_TOKEN = {
        type: 28 /* LEFT_SQUARE_BRACKET_TOKEN */
    };
    var RIGHT_SQUARE_BRACKET_TOKEN = {
        type: 29 /* RIGHT_SQUARE_BRACKET_TOKEN */
    };
    var WHITESPACE_TOKEN = { type: 31 /* WHITESPACE_TOKEN */ };
    var EOF_TOKEN = { type: 32 /* EOF_TOKEN */ };
    var Tokenizer = /** @class */ (function () {
        function Tokenizer() {
            this._value = [];
        }
        Tokenizer.prototype.write = function (chunk) {
            this._value = this._value.concat(toCodePoints$1(chunk));
        };
        Tokenizer.prototype.read = function () {
            var tokens = [];
            var token = this.consumeToken();
            while (token !== EOF_TOKEN) {
                tokens.push(token);
                token = this.consumeToken();
            }
            return tokens;
        };
        Tokenizer.prototype.consumeToken = function () {
            var codePoint = this.consumeCodePoint();
            switch (codePoint) {
                case QUOTATION_MARK:
                    return this.consumeStringToken(QUOTATION_MARK);
                case NUMBER_SIGN:
                    var c1 = this.peekCodePoint(0);
                    var c2 = this.peekCodePoint(1);
                    var c3 = this.peekCodePoint(2);
                    if (isNameCodePoint(c1) || isValidEscape(c2, c3)) {
                        var flags = isIdentifierStart(c1, c2, c3) ? FLAG_ID : FLAG_UNRESTRICTED;
                        var value = this.consumeName();
                        return { type: 5 /* HASH_TOKEN */, value: value, flags: flags };
                    }
                    break;
                case DOLLAR_SIGN:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return SUFFIX_MATCH_TOKEN;
                    }
                    break;
                case APOSTROPHE:
                    return this.consumeStringToken(APOSTROPHE);
                case LEFT_PARENTHESIS:
                    return LEFT_PARENTHESIS_TOKEN;
                case RIGHT_PARENTHESIS:
                    return RIGHT_PARENTHESIS_TOKEN;
                case ASTERISK:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return SUBSTRING_MATCH_TOKEN;
                    }
                    break;
                case PLUS_SIGN:
                    if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    break;
                case COMMA:
                    return COMMA_TOKEN;
                case HYPHEN_MINUS:
                    var e1 = codePoint;
                    var e2 = this.peekCodePoint(0);
                    var e3 = this.peekCodePoint(1);
                    if (isNumberStart(e1, e2, e3)) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    if (isIdentifierStart(e1, e2, e3)) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeIdentLikeToken();
                    }
                    if (e2 === HYPHEN_MINUS && e3 === GREATER_THAN_SIGN) {
                        this.consumeCodePoint();
                        this.consumeCodePoint();
                        return CDC_TOKEN;
                    }
                    break;
                case FULL_STOP:
                    if (isNumberStart(codePoint, this.peekCodePoint(0), this.peekCodePoint(1))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeNumericToken();
                    }
                    break;
                case SOLIDUS:
                    if (this.peekCodePoint(0) === ASTERISK) {
                        this.consumeCodePoint();
                        while (true) {
                            var c = this.consumeCodePoint();
                            if (c === ASTERISK) {
                                c = this.consumeCodePoint();
                                if (c === SOLIDUS) {
                                    return this.consumeToken();
                                }
                            }
                            if (c === EOF) {
                                return this.consumeToken();
                            }
                        }
                    }
                    break;
                case COLON:
                    return COLON_TOKEN;
                case SEMICOLON:
                    return SEMICOLON_TOKEN;
                case LESS_THAN_SIGN:
                    if (this.peekCodePoint(0) === EXCLAMATION_MARK &&
                        this.peekCodePoint(1) === HYPHEN_MINUS &&
                        this.peekCodePoint(2) === HYPHEN_MINUS) {
                        this.consumeCodePoint();
                        this.consumeCodePoint();
                        return CDO_TOKEN;
                    }
                    break;
                case COMMERCIAL_AT:
                    var a1 = this.peekCodePoint(0);
                    var a2 = this.peekCodePoint(1);
                    var a3 = this.peekCodePoint(2);
                    if (isIdentifierStart(a1, a2, a3)) {
                        var value = this.consumeName();
                        return { type: 7 /* AT_KEYWORD_TOKEN */, value: value };
                    }
                    break;
                case LEFT_SQUARE_BRACKET:
                    return LEFT_SQUARE_BRACKET_TOKEN;
                case REVERSE_SOLIDUS:
                    if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                        this.reconsumeCodePoint(codePoint);
                        return this.consumeIdentLikeToken();
                    }
                    break;
                case RIGHT_SQUARE_BRACKET:
                    return RIGHT_SQUARE_BRACKET_TOKEN;
                case CIRCUMFLEX_ACCENT:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return PREFIX_MATCH_TOKEN;
                    }
                    break;
                case LEFT_CURLY_BRACKET:
                    return LEFT_CURLY_BRACKET_TOKEN;
                case RIGHT_CURLY_BRACKET:
                    return RIGHT_CURLY_BRACKET_TOKEN;
                case u:
                case U:
                    var u1 = this.peekCodePoint(0);
                    var u2 = this.peekCodePoint(1);
                    if (u1 === PLUS_SIGN && (isHex(u2) || u2 === QUESTION_MARK)) {
                        this.consumeCodePoint();
                        this.consumeUnicodeRangeToken();
                    }
                    this.reconsumeCodePoint(codePoint);
                    return this.consumeIdentLikeToken();
                case VERTICAL_LINE:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return DASH_MATCH_TOKEN;
                    }
                    if (this.peekCodePoint(0) === VERTICAL_LINE) {
                        this.consumeCodePoint();
                        return COLUMN_TOKEN;
                    }
                    break;
                case TILDE:
                    if (this.peekCodePoint(0) === EQUALS_SIGN) {
                        this.consumeCodePoint();
                        return INCLUDE_MATCH_TOKEN;
                    }
                    break;
                case EOF:
                    return EOF_TOKEN;
            }
            if (isWhiteSpace(codePoint)) {
                this.consumeWhiteSpace();
                return WHITESPACE_TOKEN;
            }
            if (isDigit(codePoint)) {
                this.reconsumeCodePoint(codePoint);
                return this.consumeNumericToken();
            }
            if (isNameStartCodePoint(codePoint)) {
                this.reconsumeCodePoint(codePoint);
                return this.consumeIdentLikeToken();
            }
            return { type: 6 /* DELIM_TOKEN */, value: fromCodePoint$1(codePoint) };
        };
        Tokenizer.prototype.consumeCodePoint = function () {
            var value = this._value.shift();
            return typeof value === 'undefined' ? -1 : value;
        };
        Tokenizer.prototype.reconsumeCodePoint = function (codePoint) {
            this._value.unshift(codePoint);
        };
        Tokenizer.prototype.peekCodePoint = function (delta) {
            if (delta >= this._value.length) {
                return -1;
            }
            return this._value[delta];
        };
        Tokenizer.prototype.consumeUnicodeRangeToken = function () {
            var digits = [];
            var codePoint = this.consumeCodePoint();
            while (isHex(codePoint) && digits.length < 6) {
                digits.push(codePoint);
                codePoint = this.consumeCodePoint();
            }
            var questionMarks = false;
            while (codePoint === QUESTION_MARK && digits.length < 6) {
                digits.push(codePoint);
                codePoint = this.consumeCodePoint();
                questionMarks = true;
            }
            if (questionMarks) {
                var start_1 = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? ZERO : digit); })), 16);
                var end = parseInt(fromCodePoint$1.apply(void 0, digits.map(function (digit) { return (digit === QUESTION_MARK ? F : digit); })), 16);
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start_1, end: end };
            }
            var start = parseInt(fromCodePoint$1.apply(void 0, digits), 16);
            if (this.peekCodePoint(0) === HYPHEN_MINUS && isHex(this.peekCodePoint(1))) {
                this.consumeCodePoint();
                codePoint = this.consumeCodePoint();
                var endDigits = [];
                while (isHex(codePoint) && endDigits.length < 6) {
                    endDigits.push(codePoint);
                    codePoint = this.consumeCodePoint();
                }
                var end = parseInt(fromCodePoint$1.apply(void 0, endDigits), 16);
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: end };
            }
            else {
                return { type: 30 /* UNICODE_RANGE_TOKEN */, start: start, end: start };
            }
        };
        Tokenizer.prototype.consumeIdentLikeToken = function () {
            var value = this.consumeName();
            if (value.toLowerCase() === 'url' && this.peekCodePoint(0) === LEFT_PARENTHESIS) {
                this.consumeCodePoint();
                return this.consumeUrlToken();
            }
            else if (this.peekCodePoint(0) === LEFT_PARENTHESIS) {
                this.consumeCodePoint();
                return { type: 19 /* FUNCTION_TOKEN */, value: value };
            }
            return { type: 20 /* IDENT_TOKEN */, value: value };
        };
        Tokenizer.prototype.consumeUrlToken = function () {
            var value = [];
            this.consumeWhiteSpace();
            if (this.peekCodePoint(0) === EOF) {
                return { type: 22 /* URL_TOKEN */, value: '' };
            }
            var next = this.peekCodePoint(0);
            if (next === APOSTROPHE || next === QUOTATION_MARK) {
                var stringToken = this.consumeStringToken(this.consumeCodePoint());
                if (stringToken.type === 0 /* STRING_TOKEN */) {
                    this.consumeWhiteSpace();
                    if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {
                        this.consumeCodePoint();
                        return { type: 22 /* URL_TOKEN */, value: stringToken.value };
                    }
                }
                this.consumeBadUrlRemnants();
                return BAD_URL_TOKEN;
            }
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (codePoint === EOF || codePoint === RIGHT_PARENTHESIS) {
                    return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) };
                }
                else if (isWhiteSpace(codePoint)) {
                    this.consumeWhiteSpace();
                    if (this.peekCodePoint(0) === EOF || this.peekCodePoint(0) === RIGHT_PARENTHESIS) {
                        this.consumeCodePoint();
                        return { type: 22 /* URL_TOKEN */, value: fromCodePoint$1.apply(void 0, value) };
                    }
                    this.consumeBadUrlRemnants();
                    return BAD_URL_TOKEN;
                }
                else if (codePoint === QUOTATION_MARK ||
                    codePoint === APOSTROPHE ||
                    codePoint === LEFT_PARENTHESIS ||
                    isNonPrintableCodePoint(codePoint)) {
                    this.consumeBadUrlRemnants();
                    return BAD_URL_TOKEN;
                }
                else if (codePoint === REVERSE_SOLIDUS) {
                    if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                        value.push(this.consumeEscapedCodePoint());
                    }
                    else {
                        this.consumeBadUrlRemnants();
                        return BAD_URL_TOKEN;
                    }
                }
                else {
                    value.push(codePoint);
                }
            }
        };
        Tokenizer.prototype.consumeWhiteSpace = function () {
            while (isWhiteSpace(this.peekCodePoint(0))) {
                this.consumeCodePoint();
            }
        };
        Tokenizer.prototype.consumeBadUrlRemnants = function () {
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (codePoint === RIGHT_PARENTHESIS || codePoint === EOF) {
                    return;
                }
                if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                    this.consumeEscapedCodePoint();
                }
            }
        };
        Tokenizer.prototype.consumeStringSlice = function (count) {
            var SLICE_STACK_SIZE = 50000;
            var value = '';
            while (count > 0) {
                var amount = Math.min(SLICE_STACK_SIZE, count);
                value += fromCodePoint$1.apply(void 0, this._value.splice(0, amount));
                count -= amount;
            }
            this._value.shift();
            return value;
        };
        Tokenizer.prototype.consumeStringToken = function (endingCodePoint) {
            var value = '';
            var i = 0;
            do {
                var codePoint = this._value[i];
                if (codePoint === EOF || codePoint === undefined || codePoint === endingCodePoint) {
                    value += this.consumeStringSlice(i);
                    return { type: 0 /* STRING_TOKEN */, value: value };
                }
                if (codePoint === LINE_FEED) {
                    this._value.splice(0, i);
                    return BAD_STRING_TOKEN;
                }
                if (codePoint === REVERSE_SOLIDUS) {
                    var next = this._value[i + 1];
                    if (next !== EOF && next !== undefined) {
                        if (next === LINE_FEED) {
                            value += this.consumeStringSlice(i);
                            i = -1;
                            this._value.shift();
                        }
                        else if (isValidEscape(codePoint, next)) {
                            value += this.consumeStringSlice(i);
                            value += fromCodePoint$1(this.consumeEscapedCodePoint());
                            i = -1;
                        }
                    }
                }
                i++;
            } while (true);
        };
        Tokenizer.prototype.consumeNumber = function () {
            var repr = [];
            var type = FLAG_INTEGER;
            var c1 = this.peekCodePoint(0);
            if (c1 === PLUS_SIGN || c1 === HYPHEN_MINUS) {
                repr.push(this.consumeCodePoint());
            }
            while (isDigit(this.peekCodePoint(0))) {
                repr.push(this.consumeCodePoint());
            }
            c1 = this.peekCodePoint(0);
            var c2 = this.peekCodePoint(1);
            if (c1 === FULL_STOP && isDigit(c2)) {
                repr.push(this.consumeCodePoint(), this.consumeCodePoint());
                type = FLAG_NUMBER;
                while (isDigit(this.peekCodePoint(0))) {
                    repr.push(this.consumeCodePoint());
                }
            }
            c1 = this.peekCodePoint(0);
            c2 = this.peekCodePoint(1);
            var c3 = this.peekCodePoint(2);
            if ((c1 === E || c1 === e) && (((c2 === PLUS_SIGN || c2 === HYPHEN_MINUS) && isDigit(c3)) || isDigit(c2))) {
                repr.push(this.consumeCodePoint(), this.consumeCodePoint());
                type = FLAG_NUMBER;
                while (isDigit(this.peekCodePoint(0))) {
                    repr.push(this.consumeCodePoint());
                }
            }
            return [stringToNumber(repr), type];
        };
        Tokenizer.prototype.consumeNumericToken = function () {
            var _a = this.consumeNumber(), number = _a[0], flags = _a[1];
            var c1 = this.peekCodePoint(0);
            var c2 = this.peekCodePoint(1);
            var c3 = this.peekCodePoint(2);
            if (isIdentifierStart(c1, c2, c3)) {
                var unit = this.consumeName();
                return { type: 15 /* DIMENSION_TOKEN */, number: number, flags: flags, unit: unit };
            }
            if (c1 === PERCENTAGE_SIGN) {
                this.consumeCodePoint();
                return { type: 16 /* PERCENTAGE_TOKEN */, number: number, flags: flags };
            }
            return { type: 17 /* NUMBER_TOKEN */, number: number, flags: flags };
        };
        Tokenizer.prototype.consumeEscapedCodePoint = function () {
            var codePoint = this.consumeCodePoint();
            if (isHex(codePoint)) {
                var hex = fromCodePoint$1(codePoint);
                while (isHex(this.peekCodePoint(0)) && hex.length < 6) {
                    hex += fromCodePoint$1(this.consumeCodePoint());
                }
                if (isWhiteSpace(this.peekCodePoint(0))) {
                    this.consumeCodePoint();
                }
                var hexCodePoint = parseInt(hex, 16);
                if (hexCodePoint === 0 || isSurrogateCodePoint(hexCodePoint) || hexCodePoint > 0x10ffff) {
                    return REPLACEMENT_CHARACTER;
                }
                return hexCodePoint;
            }
            if (codePoint === EOF) {
                return REPLACEMENT_CHARACTER;
            }
            return codePoint;
        };
        Tokenizer.prototype.consumeName = function () {
            var result = '';
            while (true) {
                var codePoint = this.consumeCodePoint();
                if (isNameCodePoint(codePoint)) {
                    result += fromCodePoint$1(codePoint);
                }
                else if (isValidEscape(codePoint, this.peekCodePoint(0))) {
                    result += fromCodePoint$1(this.consumeEscapedCodePoint());
                }
                else {
                    this.reconsumeCodePoint(codePoint);
                    return result;
                }
            }
        };
        return Tokenizer;
    }());

    var Parser = /** @class */ (function () {
        function Parser(tokens) {
            this._tokens = tokens;
        }
        Parser.create = function (value) {
            var tokenizer = new Tokenizer();
            tokenizer.write(value);
            return new Parser(tokenizer.read());
        };
        Parser.parseValue = function (value) {
            return Parser.create(value).parseComponentValue();
        };
        Parser.parseValues = function (value) {
            return Parser.create(value).parseComponentValues();
        };
        Parser.prototype.parseComponentValue = function () {
            var token = this.consumeToken();
            while (token.type === 31 /* WHITESPACE_TOKEN */) {
                token = this.consumeToken();
            }
            if (token.type === 32 /* EOF_TOKEN */) {
                throw new SyntaxError("Error parsing CSS component value, unexpected EOF");
            }
            this.reconsumeToken(token);
            var value = this.consumeComponentValue();
            do {
                token = this.consumeToken();
            } while (token.type === 31 /* WHITESPACE_TOKEN */);
            if (token.type === 32 /* EOF_TOKEN */) {
                return value;
            }
            throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one");
        };
        Parser.prototype.parseComponentValues = function () {
            var values = [];
            while (true) {
                var value = this.consumeComponentValue();
                if (value.type === 32 /* EOF_TOKEN */) {
                    return values;
                }
                values.push(value);
                values.push();
            }
        };
        Parser.prototype.consumeComponentValue = function () {
            var token = this.consumeToken();
            switch (token.type) {
                case 11 /* LEFT_CURLY_BRACKET_TOKEN */:
                case 28 /* LEFT_SQUARE_BRACKET_TOKEN */:
                case 2 /* LEFT_PARENTHESIS_TOKEN */:
                    return this.consumeSimpleBlock(token.type);
                case 19 /* FUNCTION_TOKEN */:
                    return this.consumeFunction(token);
            }
            return token;
        };
        Parser.prototype.consumeSimpleBlock = function (type) {
            var block = { type: type, values: [] };
            var token = this.consumeToken();
            while (true) {
                if (token.type === 32 /* EOF_TOKEN */ || isEndingTokenFor(token, type)) {
                    return block;
                }
                this.reconsumeToken(token);
                block.values.push(this.consumeComponentValue());
                token = this.consumeToken();
            }
        };
        Parser.prototype.consumeFunction = function (functionToken) {
            var cssFunction = {
                name: functionToken.value,
                values: [],
                type: 18 /* FUNCTION */
            };
            while (true) {
                var token = this.consumeToken();
                if (token.type === 32 /* EOF_TOKEN */ || token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */) {
                    return cssFunction;
                }
                this.reconsumeToken(token);
                cssFunction.values.push(this.consumeComponentValue());
            }
        };
        Parser.prototype.consumeToken = function () {
            var token = this._tokens.shift();
            return typeof token === 'undefined' ? EOF_TOKEN : token;
        };
        Parser.prototype.reconsumeToken = function (token) {
            this._tokens.unshift(token);
        };
        return Parser;
    }());
    var isDimensionToken = function (token) { return token.type === 15 /* DIMENSION_TOKEN */; };
    var isNumberToken = function (token) { return token.type === 17 /* NUMBER_TOKEN */; };
    var isIdentToken = function (token) { return token.type === 20 /* IDENT_TOKEN */; };
    var isStringToken = function (token) { return token.type === 0 /* STRING_TOKEN */; };
    var isIdentWithValue = function (token, value) {
        return isIdentToken(token) && token.value === value;
    };
    var nonWhiteSpace = function (token) { return token.type !== 31 /* WHITESPACE_TOKEN */; };
    var nonFunctionArgSeparator = function (token) {
        return token.type !== 31 /* WHITESPACE_TOKEN */ && token.type !== 4 /* COMMA_TOKEN */;
    };
    var parseFunctionArgs = function (tokens) {
        var args = [];
        var arg = [];
        tokens.forEach(function (token) {
            if (token.type === 4 /* COMMA_TOKEN */) {
                if (arg.length === 0) {
                    throw new Error("Error parsing function args, zero tokens for arg");
                }
                args.push(arg);
                arg = [];
                return;
            }
            if (token.type !== 31 /* WHITESPACE_TOKEN */) {
                arg.push(token);
            }
        });
        if (arg.length) {
            args.push(arg);
        }
        return args;
    };
    var isEndingTokenFor = function (token, type) {
        if (type === 11 /* LEFT_CURLY_BRACKET_TOKEN */ && token.type === 12 /* RIGHT_CURLY_BRACKET_TOKEN */) {
            return true;
        }
        if (type === 28 /* LEFT_SQUARE_BRACKET_TOKEN */ && token.type === 29 /* RIGHT_SQUARE_BRACKET_TOKEN */) {
            return true;
        }
        return type === 2 /* LEFT_PARENTHESIS_TOKEN */ && token.type === 3 /* RIGHT_PARENTHESIS_TOKEN */;
    };

    var isLength = function (token) {
        return token.type === 17 /* NUMBER_TOKEN */ || token.type === 15 /* DIMENSION_TOKEN */;
    };

    var isLengthPercentage = function (token) {
        return token.type === 16 /* PERCENTAGE_TOKEN */ || isLength(token);
    };
    var parseLengthPercentageTuple = function (tokens) {
        return tokens.length > 1 ? [tokens[0], tokens[1]] : [tokens[0]];
    };
    var ZERO_LENGTH = {
        type: 17 /* NUMBER_TOKEN */,
        number: 0,
        flags: FLAG_INTEGER
    };
    var FIFTY_PERCENT = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 50,
        flags: FLAG_INTEGER
    };
    var HUNDRED_PERCENT = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 100,
        flags: FLAG_INTEGER
    };
    var getAbsoluteValueForTuple = function (tuple, width, height) {
        var x = tuple[0], y = tuple[1];
        return [getAbsoluteValue(x, width), getAbsoluteValue(typeof y !== 'undefined' ? y : x, height)];
    };
    var getAbsoluteValue = function (token, parent) {
        if (token.type === 16 /* PERCENTAGE_TOKEN */) {
            return (token.number / 100) * parent;
        }
        if (isDimensionToken(token)) {
            switch (token.unit) {
                case 'rem':
                case 'em':
                    return 16 * token.number; // TODO use correct font-size
                case 'px':
                default:
                    return token.number;
            }
        }
        return token.number;
    };

    var DEG = 'deg';
    var GRAD = 'grad';
    var RAD = 'rad';
    var TURN = 'turn';
    var angle = {
        name: 'angle',
        parse: function (_context, value) {
            if (value.type === 15 /* DIMENSION_TOKEN */) {
                switch (value.unit) {
                    case DEG:
                        return (Math.PI * value.number) / 180;
                    case GRAD:
                        return (Math.PI / 200) * value.number;
                    case RAD:
                        return value.number;
                    case TURN:
                        return Math.PI * 2 * value.number;
                }
            }
            throw new Error("Unsupported angle type");
        }
    };
    var isAngle = function (value) {
        if (value.type === 15 /* DIMENSION_TOKEN */) {
            if (value.unit === DEG || value.unit === GRAD || value.unit === RAD || value.unit === TURN) {
                return true;
            }
        }
        return false;
    };
    var parseNamedSide = function (tokens) {
        var sideOrCorner = tokens
            .filter(isIdentToken)
            .map(function (ident) { return ident.value; })
            .join(' ');
        switch (sideOrCorner) {
            case 'to bottom right':
            case 'to right bottom':
            case 'left top':
            case 'top left':
                return [ZERO_LENGTH, ZERO_LENGTH];
            case 'to top':
            case 'bottom':
                return deg(0);
            case 'to bottom left':
            case 'to left bottom':
            case 'right top':
            case 'top right':
                return [ZERO_LENGTH, HUNDRED_PERCENT];
            case 'to right':
            case 'left':
                return deg(90);
            case 'to top left':
            case 'to left top':
            case 'right bottom':
            case 'bottom right':
                return [HUNDRED_PERCENT, HUNDRED_PERCENT];
            case 'to bottom':
            case 'top':
                return deg(180);
            case 'to top right':
            case 'to right top':
            case 'left bottom':
            case 'bottom left':
                return [HUNDRED_PERCENT, ZERO_LENGTH];
            case 'to left':
            case 'right':
                return deg(270);
        }
        return 0;
    };
    var deg = function (deg) { return (Math.PI * deg) / 180; };

    var color$1 = {
        name: 'color',
        parse: function (context, value) {
            if (value.type === 18 /* FUNCTION */) {
                var colorFunction = SUPPORTED_COLOR_FUNCTIONS[value.name];
                if (typeof colorFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported color function \"" + value.name + "\"");
                }
                return colorFunction(context, value.values);
            }
            if (value.type === 5 /* HASH_TOKEN */) {
                if (value.value.length === 3) {
                    var r = value.value.substring(0, 1);
                    var g = value.value.substring(1, 2);
                    var b = value.value.substring(2, 3);
                    return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), 1);
                }
                if (value.value.length === 4) {
                    var r = value.value.substring(0, 1);
                    var g = value.value.substring(1, 2);
                    var b = value.value.substring(2, 3);
                    var a = value.value.substring(3, 4);
                    return pack(parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16), parseInt(a + a, 16) / 255);
                }
                if (value.value.length === 6) {
                    var r = value.value.substring(0, 2);
                    var g = value.value.substring(2, 4);
                    var b = value.value.substring(4, 6);
                    return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), 1);
                }
                if (value.value.length === 8) {
                    var r = value.value.substring(0, 2);
                    var g = value.value.substring(2, 4);
                    var b = value.value.substring(4, 6);
                    var a = value.value.substring(6, 8);
                    return pack(parseInt(r, 16), parseInt(g, 16), parseInt(b, 16), parseInt(a, 16) / 255);
                }
            }
            if (value.type === 20 /* IDENT_TOKEN */) {
                var namedColor = COLORS[value.value.toUpperCase()];
                if (typeof namedColor !== 'undefined') {
                    return namedColor;
                }
            }
            return COLORS.TRANSPARENT;
        }
    };
    var isTransparent = function (color) { return (0xff & color) === 0; };
    var asString = function (color) {
        var alpha = 0xff & color;
        var blue = 0xff & (color >> 8);
        var green = 0xff & (color >> 16);
        var red = 0xff & (color >> 24);
        return alpha < 255 ? "rgba(" + red + "," + green + "," + blue + "," + alpha / 255 + ")" : "rgb(" + red + "," + green + "," + blue + ")";
    };
    var pack = function (r, g, b, a) {
        return ((r << 24) | (g << 16) | (b << 8) | (Math.round(a * 255) << 0)) >>> 0;
    };
    var getTokenColorValue = function (token, i) {
        if (token.type === 17 /* NUMBER_TOKEN */) {
            return token.number;
        }
        if (token.type === 16 /* PERCENTAGE_TOKEN */) {
            var max = i === 3 ? 1 : 255;
            return i === 3 ? (token.number / 100) * max : Math.round((token.number / 100) * max);
        }
        return 0;
    };
    var rgb = function (_context, args) {
        var tokens = args.filter(nonFunctionArgSeparator);
        if (tokens.length === 3) {
            var _a = tokens.map(getTokenColorValue), r = _a[0], g = _a[1], b = _a[2];
            return pack(r, g, b, 1);
        }
        if (tokens.length === 4) {
            var _b = tokens.map(getTokenColorValue), r = _b[0], g = _b[1], b = _b[2], a = _b[3];
            return pack(r, g, b, a);
        }
        return 0;
    };
    function hue2rgb(t1, t2, hue) {
        if (hue < 0) {
            hue += 1;
        }
        if (hue >= 1) {
            hue -= 1;
        }
        if (hue < 1 / 6) {
            return (t2 - t1) * hue * 6 + t1;
        }
        else if (hue < 1 / 2) {
            return t2;
        }
        else if (hue < 2 / 3) {
            return (t2 - t1) * 6 * (2 / 3 - hue) + t1;
        }
        else {
            return t1;
        }
    }
    var hsl = function (context, args) {
        var tokens = args.filter(nonFunctionArgSeparator);
        var hue = tokens[0], saturation = tokens[1], lightness = tokens[2], alpha = tokens[3];
        var h = (hue.type === 17 /* NUMBER_TOKEN */ ? deg(hue.number) : angle.parse(context, hue)) / (Math.PI * 2);
        var s = isLengthPercentage(saturation) ? saturation.number / 100 : 0;
        var l = isLengthPercentage(lightness) ? lightness.number / 100 : 0;
        var a = typeof alpha !== 'undefined' && isLengthPercentage(alpha) ? getAbsoluteValue(alpha, 1) : 1;
        if (s === 0) {
            return pack(l * 255, l * 255, l * 255, 1);
        }
        var t2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
        var t1 = l * 2 - t2;
        var r = hue2rgb(t1, t2, h + 1 / 3);
        var g = hue2rgb(t1, t2, h);
        var b = hue2rgb(t1, t2, h - 1 / 3);
        return pack(r * 255, g * 255, b * 255, a);
    };
    var SUPPORTED_COLOR_FUNCTIONS = {
        hsl: hsl,
        hsla: hsl,
        rgb: rgb,
        rgba: rgb
    };
    var parseColor = function (context, value) {
        return color$1.parse(context, Parser.create(value).parseComponentValue());
    };
    var COLORS = {
        ALICEBLUE: 0xf0f8ffff,
        ANTIQUEWHITE: 0xfaebd7ff,
        AQUA: 0x00ffffff,
        AQUAMARINE: 0x7fffd4ff,
        AZURE: 0xf0ffffff,
        BEIGE: 0xf5f5dcff,
        BISQUE: 0xffe4c4ff,
        BLACK: 0x000000ff,
        BLANCHEDALMOND: 0xffebcdff,
        BLUE: 0x0000ffff,
        BLUEVIOLET: 0x8a2be2ff,
        BROWN: 0xa52a2aff,
        BURLYWOOD: 0xdeb887ff,
        CADETBLUE: 0x5f9ea0ff,
        CHARTREUSE: 0x7fff00ff,
        CHOCOLATE: 0xd2691eff,
        CORAL: 0xff7f50ff,
        CORNFLOWERBLUE: 0x6495edff,
        CORNSILK: 0xfff8dcff,
        CRIMSON: 0xdc143cff,
        CYAN: 0x00ffffff,
        DARKBLUE: 0x00008bff,
        DARKCYAN: 0x008b8bff,
        DARKGOLDENROD: 0xb886bbff,
        DARKGRAY: 0xa9a9a9ff,
        DARKGREEN: 0x006400ff,
        DARKGREY: 0xa9a9a9ff,
        DARKKHAKI: 0xbdb76bff,
        DARKMAGENTA: 0x8b008bff,
        DARKOLIVEGREEN: 0x556b2fff,
        DARKORANGE: 0xff8c00ff,
        DARKORCHID: 0x9932ccff,
        DARKRED: 0x8b0000ff,
        DARKSALMON: 0xe9967aff,
        DARKSEAGREEN: 0x8fbc8fff,
        DARKSLATEBLUE: 0x483d8bff,
        DARKSLATEGRAY: 0x2f4f4fff,
        DARKSLATEGREY: 0x2f4f4fff,
        DARKTURQUOISE: 0x00ced1ff,
        DARKVIOLET: 0x9400d3ff,
        DEEPPINK: 0xff1493ff,
        DEEPSKYBLUE: 0x00bfffff,
        DIMGRAY: 0x696969ff,
        DIMGREY: 0x696969ff,
        DODGERBLUE: 0x1e90ffff,
        FIREBRICK: 0xb22222ff,
        FLORALWHITE: 0xfffaf0ff,
        FORESTGREEN: 0x228b22ff,
        FUCHSIA: 0xff00ffff,
        GAINSBORO: 0xdcdcdcff,
        GHOSTWHITE: 0xf8f8ffff,
        GOLD: 0xffd700ff,
        GOLDENROD: 0xdaa520ff,
        GRAY: 0x808080ff,
        GREEN: 0x008000ff,
        GREENYELLOW: 0xadff2fff,
        GREY: 0x808080ff,
        HONEYDEW: 0xf0fff0ff,
        HOTPINK: 0xff69b4ff,
        INDIANRED: 0xcd5c5cff,
        INDIGO: 0x4b0082ff,
        IVORY: 0xfffff0ff,
        KHAKI: 0xf0e68cff,
        LAVENDER: 0xe6e6faff,
        LAVENDERBLUSH: 0xfff0f5ff,
        LAWNGREEN: 0x7cfc00ff,
        LEMONCHIFFON: 0xfffacdff,
        LIGHTBLUE: 0xadd8e6ff,
        LIGHTCORAL: 0xf08080ff,
        LIGHTCYAN: 0xe0ffffff,
        LIGHTGOLDENRODYELLOW: 0xfafad2ff,
        LIGHTGRAY: 0xd3d3d3ff,
        LIGHTGREEN: 0x90ee90ff,
        LIGHTGREY: 0xd3d3d3ff,
        LIGHTPINK: 0xffb6c1ff,
        LIGHTSALMON: 0xffa07aff,
        LIGHTSEAGREEN: 0x20b2aaff,
        LIGHTSKYBLUE: 0x87cefaff,
        LIGHTSLATEGRAY: 0x778899ff,
        LIGHTSLATEGREY: 0x778899ff,
        LIGHTSTEELBLUE: 0xb0c4deff,
        LIGHTYELLOW: 0xffffe0ff,
        LIME: 0x00ff00ff,
        LIMEGREEN: 0x32cd32ff,
        LINEN: 0xfaf0e6ff,
        MAGENTA: 0xff00ffff,
        MAROON: 0x800000ff,
        MEDIUMAQUAMARINE: 0x66cdaaff,
        MEDIUMBLUE: 0x0000cdff,
        MEDIUMORCHID: 0xba55d3ff,
        MEDIUMPURPLE: 0x9370dbff,
        MEDIUMSEAGREEN: 0x3cb371ff,
        MEDIUMSLATEBLUE: 0x7b68eeff,
        MEDIUMSPRINGGREEN: 0x00fa9aff,
        MEDIUMTURQUOISE: 0x48d1ccff,
        MEDIUMVIOLETRED: 0xc71585ff,
        MIDNIGHTBLUE: 0x191970ff,
        MINTCREAM: 0xf5fffaff,
        MISTYROSE: 0xffe4e1ff,
        MOCCASIN: 0xffe4b5ff,
        NAVAJOWHITE: 0xffdeadff,
        NAVY: 0x000080ff,
        OLDLACE: 0xfdf5e6ff,
        OLIVE: 0x808000ff,
        OLIVEDRAB: 0x6b8e23ff,
        ORANGE: 0xffa500ff,
        ORANGERED: 0xff4500ff,
        ORCHID: 0xda70d6ff,
        PALEGOLDENROD: 0xeee8aaff,
        PALEGREEN: 0x98fb98ff,
        PALETURQUOISE: 0xafeeeeff,
        PALEVIOLETRED: 0xdb7093ff,
        PAPAYAWHIP: 0xffefd5ff,
        PEACHPUFF: 0xffdab9ff,
        PERU: 0xcd853fff,
        PINK: 0xffc0cbff,
        PLUM: 0xdda0ddff,
        POWDERBLUE: 0xb0e0e6ff,
        PURPLE: 0x800080ff,
        REBECCAPURPLE: 0x663399ff,
        RED: 0xff0000ff,
        ROSYBROWN: 0xbc8f8fff,
        ROYALBLUE: 0x4169e1ff,
        SADDLEBROWN: 0x8b4513ff,
        SALMON: 0xfa8072ff,
        SANDYBROWN: 0xf4a460ff,
        SEAGREEN: 0x2e8b57ff,
        SEASHELL: 0xfff5eeff,
        SIENNA: 0xa0522dff,
        SILVER: 0xc0c0c0ff,
        SKYBLUE: 0x87ceebff,
        SLATEBLUE: 0x6a5acdff,
        SLATEGRAY: 0x708090ff,
        SLATEGREY: 0x708090ff,
        SNOW: 0xfffafaff,
        SPRINGGREEN: 0x00ff7fff,
        STEELBLUE: 0x4682b4ff,
        TAN: 0xd2b48cff,
        TEAL: 0x008080ff,
        THISTLE: 0xd8bfd8ff,
        TOMATO: 0xff6347ff,
        TRANSPARENT: 0x00000000,
        TURQUOISE: 0x40e0d0ff,
        VIOLET: 0xee82eeff,
        WHEAT: 0xf5deb3ff,
        WHITE: 0xffffffff,
        WHITESMOKE: 0xf5f5f5ff,
        YELLOW: 0xffff00ff,
        YELLOWGREEN: 0x9acd32ff
    };

    var backgroundClip = {
        name: 'background-clip',
        initialValue: 'border-box',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.map(function (token) {
                if (isIdentToken(token)) {
                    switch (token.value) {
                        case 'padding-box':
                            return 1 /* PADDING_BOX */;
                        case 'content-box':
                            return 2 /* CONTENT_BOX */;
                    }
                }
                return 0 /* BORDER_BOX */;
            });
        }
    };

    var backgroundColor = {
        name: "background-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var parseColorStop = function (context, args) {
        var color = color$1.parse(context, args[0]);
        var stop = args[1];
        return stop && isLengthPercentage(stop) ? { color: color, stop: stop } : { color: color, stop: null };
    };
    var processColorStops = function (stops, lineLength) {
        var first = stops[0];
        var last = stops[stops.length - 1];
        if (first.stop === null) {
            first.stop = ZERO_LENGTH;
        }
        if (last.stop === null) {
            last.stop = HUNDRED_PERCENT;
        }
        var processStops = [];
        var previous = 0;
        for (var i = 0; i < stops.length; i++) {
            var stop_1 = stops[i].stop;
            if (stop_1 !== null) {
                var absoluteValue = getAbsoluteValue(stop_1, lineLength);
                if (absoluteValue > previous) {
                    processStops.push(absoluteValue);
                }
                else {
                    processStops.push(previous);
                }
                previous = absoluteValue;
            }
            else {
                processStops.push(null);
            }
        }
        var gapBegin = null;
        for (var i = 0; i < processStops.length; i++) {
            var stop_2 = processStops[i];
            if (stop_2 === null) {
                if (gapBegin === null) {
                    gapBegin = i;
                }
            }
            else if (gapBegin !== null) {
                var gapLength = i - gapBegin;
                var beforeGap = processStops[gapBegin - 1];
                var gapValue = (stop_2 - beforeGap) / (gapLength + 1);
                for (var g = 1; g <= gapLength; g++) {
                    processStops[gapBegin + g - 1] = gapValue * g;
                }
                gapBegin = null;
            }
        }
        return stops.map(function (_a, i) {
            var color = _a.color;
            return { color: color, stop: Math.max(Math.min(1, processStops[i] / lineLength), 0) };
        });
    };
    var getAngleFromCorner = function (corner, width, height) {
        var centerX = width / 2;
        var centerY = height / 2;
        var x = getAbsoluteValue(corner[0], width) - centerX;
        var y = centerY - getAbsoluteValue(corner[1], height);
        return (Math.atan2(y, x) + Math.PI * 2) % (Math.PI * 2);
    };
    var calculateGradientDirection = function (angle, width, height) {
        var radian = typeof angle === 'number' ? angle : getAngleFromCorner(angle, width, height);
        var lineLength = Math.abs(width * Math.sin(radian)) + Math.abs(height * Math.cos(radian));
        var halfWidth = width / 2;
        var halfHeight = height / 2;
        var halfLineLength = lineLength / 2;
        var yDiff = Math.sin(radian - Math.PI / 2) * halfLineLength;
        var xDiff = Math.cos(radian - Math.PI / 2) * halfLineLength;
        return [lineLength, halfWidth - xDiff, halfWidth + xDiff, halfHeight - yDiff, halfHeight + yDiff];
    };
    var distance = function (a, b) { return Math.sqrt(a * a + b * b); };
    var findCorner = function (width, height, x, y, closest) {
        var corners = [
            [0, 0],
            [0, height],
            [width, 0],
            [width, height]
        ];
        return corners.reduce(function (stat, corner) {
            var cx = corner[0], cy = corner[1];
            var d = distance(x - cx, y - cy);
            if (closest ? d < stat.optimumDistance : d > stat.optimumDistance) {
                return {
                    optimumCorner: corner,
                    optimumDistance: d
                };
            }
            return stat;
        }, {
            optimumDistance: closest ? Infinity : -Infinity,
            optimumCorner: null
        }).optimumCorner;
    };
    var calculateRadius = function (gradient, x, y, width, height) {
        var rx = 0;
        var ry = 0;
        switch (gradient.size) {
            case 0 /* CLOSEST_SIDE */:
                // The ending shape is sized so that that it exactly meets the side of the gradient box closest to the gradient’s center.
                // If the shape is an ellipse, it exactly meets the closest side in each dimension.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.min(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    rx = Math.min(Math.abs(x), Math.abs(x - width));
                    ry = Math.min(Math.abs(y), Math.abs(y - height));
                }
                break;
            case 2 /* CLOSEST_CORNER */:
                // The ending shape is sized so that that it passes through the corner of the gradient box closest to the gradient’s center.
                // If the shape is an ellipse, the ending shape is given the same aspect-ratio it would have if closest-side were specified.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.min(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    // Compute the ratio ry/rx (which is to be the same as for "closest-side")
                    var c = Math.min(Math.abs(y), Math.abs(y - height)) / Math.min(Math.abs(x), Math.abs(x - width));
                    var _a = findCorner(width, height, x, y, true), cx = _a[0], cy = _a[1];
                    rx = distance(cx - x, (cy - y) / c);
                    ry = c * rx;
                }
                break;
            case 1 /* FARTHEST_SIDE */:
                // Same as closest-side, except the ending shape is sized based on the farthest side(s)
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.max(Math.abs(x), Math.abs(x - width), Math.abs(y), Math.abs(y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    rx = Math.max(Math.abs(x), Math.abs(x - width));
                    ry = Math.max(Math.abs(y), Math.abs(y - height));
                }
                break;
            case 3 /* FARTHEST_CORNER */:
                // Same as closest-corner, except the ending shape is sized based on the farthest corner.
                // If the shape is an ellipse, the ending shape is given the same aspect ratio it would have if farthest-side were specified.
                if (gradient.shape === 0 /* CIRCLE */) {
                    rx = ry = Math.max(distance(x, y), distance(x, y - height), distance(x - width, y), distance(x - width, y - height));
                }
                else if (gradient.shape === 1 /* ELLIPSE */) {
                    // Compute the ratio ry/rx (which is to be the same as for "farthest-side")
                    var c = Math.max(Math.abs(y), Math.abs(y - height)) / Math.max(Math.abs(x), Math.abs(x - width));
                    var _b = findCorner(width, height, x, y, false), cx = _b[0], cy = _b[1];
                    rx = distance(cx - x, (cy - y) / c);
                    ry = c * rx;
                }
                break;
        }
        if (Array.isArray(gradient.size)) {
            rx = getAbsoluteValue(gradient.size[0], width);
            ry = gradient.size.length === 2 ? getAbsoluteValue(gradient.size[1], height) : rx;
        }
        return [rx, ry];
    };

    var linearGradient = function (context, tokens) {
        var angle$1 = deg(180);
        var stops = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            if (i === 0) {
                var firstToken = arg[0];
                if (firstToken.type === 20 /* IDENT_TOKEN */ && firstToken.value === 'to') {
                    angle$1 = parseNamedSide(arg);
                    return;
                }
                else if (isAngle(firstToken)) {
                    angle$1 = angle.parse(context, firstToken);
                    return;
                }
            }
            var colorStop = parseColorStop(context, arg);
            stops.push(colorStop);
        });
        return { angle: angle$1, stops: stops, type: 1 /* LINEAR_GRADIENT */ };
    };

    var prefixLinearGradient = function (context, tokens) {
        var angle$1 = deg(180);
        var stops = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            if (i === 0) {
                var firstToken = arg[0];
                if (firstToken.type === 20 /* IDENT_TOKEN */ &&
                    ['top', 'left', 'right', 'bottom'].indexOf(firstToken.value) !== -1) {
                    angle$1 = parseNamedSide(arg);
                    return;
                }
                else if (isAngle(firstToken)) {
                    angle$1 = (angle.parse(context, firstToken) + deg(270)) % deg(360);
                    return;
                }
            }
            var colorStop = parseColorStop(context, arg);
            stops.push(colorStop);
        });
        return {
            angle: angle$1,
            stops: stops,
            type: 1 /* LINEAR_GRADIENT */
        };
    };

    var webkitGradient = function (context, tokens) {
        var angle = deg(180);
        var stops = [];
        var type = 1 /* LINEAR_GRADIENT */;
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var firstToken = arg[0];
            if (i === 0) {
                if (isIdentToken(firstToken) && firstToken.value === 'linear') {
                    type = 1 /* LINEAR_GRADIENT */;
                    return;
                }
                else if (isIdentToken(firstToken) && firstToken.value === 'radial') {
                    type = 2 /* RADIAL_GRADIENT */;
                    return;
                }
            }
            if (firstToken.type === 18 /* FUNCTION */) {
                if (firstToken.name === 'from') {
                    var color = color$1.parse(context, firstToken.values[0]);
                    stops.push({ stop: ZERO_LENGTH, color: color });
                }
                else if (firstToken.name === 'to') {
                    var color = color$1.parse(context, firstToken.values[0]);
                    stops.push({ stop: HUNDRED_PERCENT, color: color });
                }
                else if (firstToken.name === 'color-stop') {
                    var values = firstToken.values.filter(nonFunctionArgSeparator);
                    if (values.length === 2) {
                        var color = color$1.parse(context, values[1]);
                        var stop_1 = values[0];
                        if (isNumberToken(stop_1)) {
                            stops.push({
                                stop: { type: 16 /* PERCENTAGE_TOKEN */, number: stop_1.number * 100, flags: stop_1.flags },
                                color: color
                            });
                        }
                    }
                }
            }
        });
        return type === 1 /* LINEAR_GRADIENT */
            ? {
                angle: (angle + deg(180)) % deg(360),
                stops: stops,
                type: type
            }
            : { size: size, shape: shape, stops: stops, position: position, type: type };
    };

    var CLOSEST_SIDE = 'closest-side';
    var FARTHEST_SIDE = 'farthest-side';
    var CLOSEST_CORNER = 'closest-corner';
    var FARTHEST_CORNER = 'farthest-corner';
    var CIRCLE = 'circle';
    var ELLIPSE = 'ellipse';
    var COVER = 'cover';
    var CONTAIN = 'contain';
    var radialGradient = function (context, tokens) {
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var stops = [];
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var isColorStop = true;
            if (i === 0) {
                var isAtPosition_1 = false;
                isColorStop = arg.reduce(function (acc, token) {
                    if (isAtPosition_1) {
                        if (isIdentToken(token)) {
                            switch (token.value) {
                                case 'center':
                                    position.push(FIFTY_PERCENT);
                                    return acc;
                                case 'top':
                                case 'left':
                                    position.push(ZERO_LENGTH);
                                    return acc;
                                case 'right':
                                case 'bottom':
                                    position.push(HUNDRED_PERCENT);
                                    return acc;
                            }
                        }
                        else if (isLengthPercentage(token) || isLength(token)) {
                            position.push(token);
                        }
                    }
                    else if (isIdentToken(token)) {
                        switch (token.value) {
                            case CIRCLE:
                                shape = 0 /* CIRCLE */;
                                return false;
                            case ELLIPSE:
                                shape = 1 /* ELLIPSE */;
                                return false;
                            case 'at':
                                isAtPosition_1 = true;
                                return false;
                            case CLOSEST_SIDE:
                                size = 0 /* CLOSEST_SIDE */;
                                return false;
                            case COVER:
                            case FARTHEST_SIDE:
                                size = 1 /* FARTHEST_SIDE */;
                                return false;
                            case CONTAIN:
                            case CLOSEST_CORNER:
                                size = 2 /* CLOSEST_CORNER */;
                                return false;
                            case FARTHEST_CORNER:
                                size = 3 /* FARTHEST_CORNER */;
                                return false;
                        }
                    }
                    else if (isLength(token) || isLengthPercentage(token)) {
                        if (!Array.isArray(size)) {
                            size = [];
                        }
                        size.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            if (isColorStop) {
                var colorStop = parseColorStop(context, arg);
                stops.push(colorStop);
            }
        });
        return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ };
    };

    var prefixRadialGradient = function (context, tokens) {
        var shape = 0 /* CIRCLE */;
        var size = 3 /* FARTHEST_CORNER */;
        var stops = [];
        var position = [];
        parseFunctionArgs(tokens).forEach(function (arg, i) {
            var isColorStop = true;
            if (i === 0) {
                isColorStop = arg.reduce(function (acc, token) {
                    if (isIdentToken(token)) {
                        switch (token.value) {
                            case 'center':
                                position.push(FIFTY_PERCENT);
                                return false;
                            case 'top':
                            case 'left':
                                position.push(ZERO_LENGTH);
                                return false;
                            case 'right':
                            case 'bottom':
                                position.push(HUNDRED_PERCENT);
                                return false;
                        }
                    }
                    else if (isLengthPercentage(token) || isLength(token)) {
                        position.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            else if (i === 1) {
                isColorStop = arg.reduce(function (acc, token) {
                    if (isIdentToken(token)) {
                        switch (token.value) {
                            case CIRCLE:
                                shape = 0 /* CIRCLE */;
                                return false;
                            case ELLIPSE:
                                shape = 1 /* ELLIPSE */;
                                return false;
                            case CONTAIN:
                            case CLOSEST_SIDE:
                                size = 0 /* CLOSEST_SIDE */;
                                return false;
                            case FARTHEST_SIDE:
                                size = 1 /* FARTHEST_SIDE */;
                                return false;
                            case CLOSEST_CORNER:
                                size = 2 /* CLOSEST_CORNER */;
                                return false;
                            case COVER:
                            case FARTHEST_CORNER:
                                size = 3 /* FARTHEST_CORNER */;
                                return false;
                        }
                    }
                    else if (isLength(token) || isLengthPercentage(token)) {
                        if (!Array.isArray(size)) {
                            size = [];
                        }
                        size.push(token);
                        return false;
                    }
                    return acc;
                }, isColorStop);
            }
            if (isColorStop) {
                var colorStop = parseColorStop(context, arg);
                stops.push(colorStop);
            }
        });
        return { size: size, shape: shape, stops: stops, position: position, type: 2 /* RADIAL_GRADIENT */ };
    };

    var isLinearGradient = function (background) {
        return background.type === 1 /* LINEAR_GRADIENT */;
    };
    var isRadialGradient = function (background) {
        return background.type === 2 /* RADIAL_GRADIENT */;
    };
    var image = {
        name: 'image',
        parse: function (context, value) {
            if (value.type === 22 /* URL_TOKEN */) {
                var image_1 = { url: value.value, type: 0 /* URL */ };
                context.cache.addImage(value.value);
                return image_1;
            }
            if (value.type === 18 /* FUNCTION */) {
                var imageFunction = SUPPORTED_IMAGE_FUNCTIONS[value.name];
                if (typeof imageFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported image function \"" + value.name + "\"");
                }
                return imageFunction(context, value.values);
            }
            throw new Error("Unsupported image type " + value.type);
        }
    };
    function isSupportedImage(value) {
        return (!(value.type === 20 /* IDENT_TOKEN */ && value.value === 'none') &&
            (value.type !== 18 /* FUNCTION */ || !!SUPPORTED_IMAGE_FUNCTIONS[value.name]));
    }
    var SUPPORTED_IMAGE_FUNCTIONS = {
        'linear-gradient': linearGradient,
        '-moz-linear-gradient': prefixLinearGradient,
        '-ms-linear-gradient': prefixLinearGradient,
        '-o-linear-gradient': prefixLinearGradient,
        '-webkit-linear-gradient': prefixLinearGradient,
        'radial-gradient': radialGradient,
        '-moz-radial-gradient': prefixRadialGradient,
        '-ms-radial-gradient': prefixRadialGradient,
        '-o-radial-gradient': prefixRadialGradient,
        '-webkit-radial-gradient': prefixRadialGradient,
        '-webkit-gradient': webkitGradient
    };

    var backgroundImage = {
        name: 'background-image',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return [];
            }
            return tokens
                .filter(function (value) { return nonFunctionArgSeparator(value) && isSupportedImage(value); })
                .map(function (value) { return image.parse(context, value); });
        }
    };

    var backgroundOrigin = {
        name: 'background-origin',
        initialValue: 'border-box',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.map(function (token) {
                if (isIdentToken(token)) {
                    switch (token.value) {
                        case 'padding-box':
                            return 1 /* PADDING_BOX */;
                        case 'content-box':
                            return 2 /* CONTENT_BOX */;
                    }
                }
                return 0 /* BORDER_BOX */;
            });
        }
    };

    var backgroundPosition = {
        name: 'background-position',
        initialValue: '0% 0%',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens)
                .map(function (values) { return values.filter(isLengthPercentage); })
                .map(parseLengthPercentageTuple);
        }
    };

    var backgroundRepeat = {
        name: 'background-repeat',
        initialValue: 'repeat',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens)
                .map(function (values) {
                return values
                    .filter(isIdentToken)
                    .map(function (token) { return token.value; })
                    .join(' ');
            })
                .map(parseBackgroundRepeat);
        }
    };
    var parseBackgroundRepeat = function (value) {
        switch (value) {
            case 'no-repeat':
                return 1 /* NO_REPEAT */;
            case 'repeat-x':
            case 'repeat no-repeat':
                return 2 /* REPEAT_X */;
            case 'repeat-y':
            case 'no-repeat repeat':
                return 3 /* REPEAT_Y */;
            case 'repeat':
            default:
                return 0 /* REPEAT */;
        }
    };

    var BACKGROUND_SIZE;
    (function (BACKGROUND_SIZE) {
        BACKGROUND_SIZE["AUTO"] = "auto";
        BACKGROUND_SIZE["CONTAIN"] = "contain";
        BACKGROUND_SIZE["COVER"] = "cover";
    })(BACKGROUND_SIZE || (BACKGROUND_SIZE = {}));
    var backgroundSize = {
        name: 'background-size',
        initialValue: '0',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseFunctionArgs(tokens).map(function (values) { return values.filter(isBackgroundSizeInfoToken); });
        }
    };
    var isBackgroundSizeInfoToken = function (value) {
        return isIdentToken(value) || isLengthPercentage(value);
    };

    var borderColorForSide = function (side) { return ({
        name: "border-" + side + "-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    }); };
    var borderTopColor = borderColorForSide('top');
    var borderRightColor = borderColorForSide('right');
    var borderBottomColor = borderColorForSide('bottom');
    var borderLeftColor = borderColorForSide('left');

    var borderRadiusForSide = function (side) { return ({
        name: "border-radius-" + side,
        initialValue: '0 0',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return parseLengthPercentageTuple(tokens.filter(isLengthPercentage));
        }
    }); };
    var borderTopLeftRadius = borderRadiusForSide('top-left');
    var borderTopRightRadius = borderRadiusForSide('top-right');
    var borderBottomRightRadius = borderRadiusForSide('bottom-right');
    var borderBottomLeftRadius = borderRadiusForSide('bottom-left');

    var borderStyleForSide = function (side) { return ({
        name: "border-" + side + "-style",
        initialValue: 'solid',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, style) {
            switch (style) {
                case 'none':
                    return 0 /* NONE */;
                case 'dashed':
                    return 2 /* DASHED */;
                case 'dotted':
                    return 3 /* DOTTED */;
                case 'double':
                    return 4 /* DOUBLE */;
            }
            return 1 /* SOLID */;
        }
    }); };
    var borderTopStyle = borderStyleForSide('top');
    var borderRightStyle = borderStyleForSide('right');
    var borderBottomStyle = borderStyleForSide('bottom');
    var borderLeftStyle = borderStyleForSide('left');

    var borderWidthForSide = function (side) { return ({
        name: "border-" + side + "-width",
        initialValue: '0',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isDimensionToken(token)) {
                return token.number;
            }
            return 0;
        }
    }); };
    var borderTopWidth = borderWidthForSide('top');
    var borderRightWidth = borderWidthForSide('right');
    var borderBottomWidth = borderWidthForSide('bottom');
    var borderLeftWidth = borderWidthForSide('left');

    var color = {
        name: "color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var direction = {
        name: 'direction',
        initialValue: 'ltr',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, direction) {
            switch (direction) {
                case 'rtl':
                    return 1 /* RTL */;
                case 'ltr':
                default:
                    return 0 /* LTR */;
            }
        }
    };

    var display = {
        name: 'display',
        initialValue: 'inline-block',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).reduce(function (bit, token) {
                return bit | parseDisplayValue(token.value);
            }, 0 /* NONE */);
        }
    };
    var parseDisplayValue = function (display) {
        switch (display) {
            case 'block':
            case '-webkit-box':
                return 2 /* BLOCK */;
            case 'inline':
                return 4 /* INLINE */;
            case 'run-in':
                return 8 /* RUN_IN */;
            case 'flow':
                return 16 /* FLOW */;
            case 'flow-root':
                return 32 /* FLOW_ROOT */;
            case 'table':
                return 64 /* TABLE */;
            case 'flex':
            case '-webkit-flex':
                return 128 /* FLEX */;
            case 'grid':
            case '-ms-grid':
                return 256 /* GRID */;
            case 'ruby':
                return 512 /* RUBY */;
            case 'subgrid':
                return 1024 /* SUBGRID */;
            case 'list-item':
                return 2048 /* LIST_ITEM */;
            case 'table-row-group':
                return 4096 /* TABLE_ROW_GROUP */;
            case 'table-header-group':
                return 8192 /* TABLE_HEADER_GROUP */;
            case 'table-footer-group':
                return 16384 /* TABLE_FOOTER_GROUP */;
            case 'table-row':
                return 32768 /* TABLE_ROW */;
            case 'table-cell':
                return 65536 /* TABLE_CELL */;
            case 'table-column-group':
                return 131072 /* TABLE_COLUMN_GROUP */;
            case 'table-column':
                return 262144 /* TABLE_COLUMN */;
            case 'table-caption':
                return 524288 /* TABLE_CAPTION */;
            case 'ruby-base':
                return 1048576 /* RUBY_BASE */;
            case 'ruby-text':
                return 2097152 /* RUBY_TEXT */;
            case 'ruby-base-container':
                return 4194304 /* RUBY_BASE_CONTAINER */;
            case 'ruby-text-container':
                return 8388608 /* RUBY_TEXT_CONTAINER */;
            case 'contents':
                return 16777216 /* CONTENTS */;
            case 'inline-block':
                return 33554432 /* INLINE_BLOCK */;
            case 'inline-list-item':
                return 67108864 /* INLINE_LIST_ITEM */;
            case 'inline-table':
                return 134217728 /* INLINE_TABLE */;
            case 'inline-flex':
                return 268435456 /* INLINE_FLEX */;
            case 'inline-grid':
                return 536870912 /* INLINE_GRID */;
        }
        return 0 /* NONE */;
    };

    var float = {
        name: 'float',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, float) {
            switch (float) {
                case 'left':
                    return 1 /* LEFT */;
                case 'right':
                    return 2 /* RIGHT */;
                case 'inline-start':
                    return 3 /* INLINE_START */;
                case 'inline-end':
                    return 4 /* INLINE_END */;
            }
            return 0 /* NONE */;
        }
    };

    var letterSpacing = {
        name: 'letter-spacing',
        initialValue: '0',
        prefix: false,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'normal') {
                return 0;
            }
            if (token.type === 17 /* NUMBER_TOKEN */) {
                return token.number;
            }
            if (token.type === 15 /* DIMENSION_TOKEN */) {
                return token.number;
            }
            return 0;
        }
    };

    var LINE_BREAK;
    (function (LINE_BREAK) {
        LINE_BREAK["NORMAL"] = "normal";
        LINE_BREAK["STRICT"] = "strict";
    })(LINE_BREAK || (LINE_BREAK = {}));
    var lineBreak = {
        name: 'line-break',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, lineBreak) {
            switch (lineBreak) {
                case 'strict':
                    return LINE_BREAK.STRICT;
                case 'normal':
                default:
                    return LINE_BREAK.NORMAL;
            }
        }
    };

    var lineHeight = {
        name: 'line-height',
        initialValue: 'normal',
        prefix: false,
        type: 4 /* TOKEN_VALUE */
    };
    var computeLineHeight = function (token, fontSize) {
        if (isIdentToken(token) && token.value === 'normal') {
            return 1.2 * fontSize;
        }
        else if (token.type === 17 /* NUMBER_TOKEN */) {
            return fontSize * token.number;
        }
        else if (isLengthPercentage(token)) {
            return getAbsoluteValue(token, fontSize);
        }
        return fontSize;
    };

    var listStyleImage = {
        name: 'list-style-image',
        initialValue: 'none',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') {
                return null;
            }
            return image.parse(context, token);
        }
    };

    var listStylePosition = {
        name: 'list-style-position',
        initialValue: 'outside',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, position) {
            switch (position) {
                case 'inside':
                    return 0 /* INSIDE */;
                case 'outside':
                default:
                    return 1 /* OUTSIDE */;
            }
        }
    };

    var listStyleType = {
        name: 'list-style-type',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, type) {
            switch (type) {
                case 'disc':
                    return 0 /* DISC */;
                case 'circle':
                    return 1 /* CIRCLE */;
                case 'square':
                    return 2 /* SQUARE */;
                case 'decimal':
                    return 3 /* DECIMAL */;
                case 'cjk-decimal':
                    return 4 /* CJK_DECIMAL */;
                case 'decimal-leading-zero':
                    return 5 /* DECIMAL_LEADING_ZERO */;
                case 'lower-roman':
                    return 6 /* LOWER_ROMAN */;
                case 'upper-roman':
                    return 7 /* UPPER_ROMAN */;
                case 'lower-greek':
                    return 8 /* LOWER_GREEK */;
                case 'lower-alpha':
                    return 9 /* LOWER_ALPHA */;
                case 'upper-alpha':
                    return 10 /* UPPER_ALPHA */;
                case 'arabic-indic':
                    return 11 /* ARABIC_INDIC */;
                case 'armenian':
                    return 12 /* ARMENIAN */;
                case 'bengali':
                    return 13 /* BENGALI */;
                case 'cambodian':
                    return 14 /* CAMBODIAN */;
                case 'cjk-earthly-branch':
                    return 15 /* CJK_EARTHLY_BRANCH */;
                case 'cjk-heavenly-stem':
                    return 16 /* CJK_HEAVENLY_STEM */;
                case 'cjk-ideographic':
                    return 17 /* CJK_IDEOGRAPHIC */;
                case 'devanagari':
                    return 18 /* DEVANAGARI */;
                case 'ethiopic-numeric':
                    return 19 /* ETHIOPIC_NUMERIC */;
                case 'georgian':
                    return 20 /* GEORGIAN */;
                case 'gujarati':
                    return 21 /* GUJARATI */;
                case 'gurmukhi':
                    return 22 /* GURMUKHI */;
                case 'hebrew':
                    return 22 /* HEBREW */;
                case 'hiragana':
                    return 23 /* HIRAGANA */;
                case 'hiragana-iroha':
                    return 24 /* HIRAGANA_IROHA */;
                case 'japanese-formal':
                    return 25 /* JAPANESE_FORMAL */;
                case 'japanese-informal':
                    return 26 /* JAPANESE_INFORMAL */;
                case 'kannada':
                    return 27 /* KANNADA */;
                case 'katakana':
                    return 28 /* KATAKANA */;
                case 'katakana-iroha':
                    return 29 /* KATAKANA_IROHA */;
                case 'khmer':
                    return 30 /* KHMER */;
                case 'korean-hangul-formal':
                    return 31 /* KOREAN_HANGUL_FORMAL */;
                case 'korean-hanja-formal':
                    return 32 /* KOREAN_HANJA_FORMAL */;
                case 'korean-hanja-informal':
                    return 33 /* KOREAN_HANJA_INFORMAL */;
                case 'lao':
                    return 34 /* LAO */;
                case 'lower-armenian':
                    return 35 /* LOWER_ARMENIAN */;
                case 'malayalam':
                    return 36 /* MALAYALAM */;
                case 'mongolian':
                    return 37 /* MONGOLIAN */;
                case 'myanmar':
                    return 38 /* MYANMAR */;
                case 'oriya':
                    return 39 /* ORIYA */;
                case 'persian':
                    return 40 /* PERSIAN */;
                case 'simp-chinese-formal':
                    return 41 /* SIMP_CHINESE_FORMAL */;
                case 'simp-chinese-informal':
                    return 42 /* SIMP_CHINESE_INFORMAL */;
                case 'tamil':
                    return 43 /* TAMIL */;
                case 'telugu':
                    return 44 /* TELUGU */;
                case 'thai':
                    return 45 /* THAI */;
                case 'tibetan':
                    return 46 /* TIBETAN */;
                case 'trad-chinese-formal':
                    return 47 /* TRAD_CHINESE_FORMAL */;
                case 'trad-chinese-informal':
                    return 48 /* TRAD_CHINESE_INFORMAL */;
                case 'upper-armenian':
                    return 49 /* UPPER_ARMENIAN */;
                case 'disclosure-open':
                    return 50 /* DISCLOSURE_OPEN */;
                case 'disclosure-closed':
                    return 51 /* DISCLOSURE_CLOSED */;
                case 'none':
                default:
                    return -1 /* NONE */;
            }
        }
    };

    var marginForSide = function (side) { return ({
        name: "margin-" + side,
        initialValue: '0',
        prefix: false,
        type: 4 /* TOKEN_VALUE */
    }); };
    var marginTop = marginForSide('top');
    var marginRight = marginForSide('right');
    var marginBottom = marginForSide('bottom');
    var marginLeft = marginForSide('left');

    var overflow = {
        name: 'overflow',
        initialValue: 'visible',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).map(function (overflow) {
                switch (overflow.value) {
                    case 'hidden':
                        return 1 /* HIDDEN */;
                    case 'scroll':
                        return 2 /* SCROLL */;
                    case 'clip':
                        return 3 /* CLIP */;
                    case 'auto':
                        return 4 /* AUTO */;
                    case 'visible':
                    default:
                        return 0 /* VISIBLE */;
                }
            });
        }
    };

    var overflowWrap = {
        name: 'overflow-wrap',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, overflow) {
            switch (overflow) {
                case 'break-word':
                    return "break-word" /* BREAK_WORD */;
                case 'normal':
                default:
                    return "normal" /* NORMAL */;
            }
        }
    };

    var paddingForSide = function (side) { return ({
        name: "padding-" + side,
        initialValue: '0',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'length-percentage'
    }); };
    var paddingTop = paddingForSide('top');
    var paddingRight = paddingForSide('right');
    var paddingBottom = paddingForSide('bottom');
    var paddingLeft = paddingForSide('left');

    var textAlign = {
        name: 'text-align',
        initialValue: 'left',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, textAlign) {
            switch (textAlign) {
                case 'right':
                    return 2 /* RIGHT */;
                case 'center':
                case 'justify':
                    return 1 /* CENTER */;
                case 'left':
                default:
                    return 0 /* LEFT */;
            }
        }
    };

    var position = {
        name: 'position',
        initialValue: 'static',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, position) {
            switch (position) {
                case 'relative':
                    return 1 /* RELATIVE */;
                case 'absolute':
                    return 2 /* ABSOLUTE */;
                case 'fixed':
                    return 3 /* FIXED */;
                case 'sticky':
                    return 4 /* STICKY */;
            }
            return 0 /* STATIC */;
        }
    };

    var textShadow = {
        name: 'text-shadow',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {
                return [];
            }
            return parseFunctionArgs(tokens).map(function (values) {
                var shadow = {
                    color: COLORS.TRANSPARENT,
                    offsetX: ZERO_LENGTH,
                    offsetY: ZERO_LENGTH,
                    blur: ZERO_LENGTH
                };
                var c = 0;
                for (var i = 0; i < values.length; i++) {
                    var token = values[i];
                    if (isLength(token)) {
                        if (c === 0) {
                            shadow.offsetX = token;
                        }
                        else if (c === 1) {
                            shadow.offsetY = token;
                        }
                        else {
                            shadow.blur = token;
                        }
                        c++;
                    }
                    else {
                        shadow.color = color$1.parse(context, token);
                    }
                }
                return shadow;
            });
        }
    };

    var textTransform = {
        name: 'text-transform',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, textTransform) {
            switch (textTransform) {
                case 'uppercase':
                    return 2 /* UPPERCASE */;
                case 'lowercase':
                    return 1 /* LOWERCASE */;
                case 'capitalize':
                    return 3 /* CAPITALIZE */;
            }
            return 0 /* NONE */;
        }
    };

    var transform$1 = {
        name: 'transform',
        initialValue: 'none',
        prefix: true,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'none') {
                return null;
            }
            if (token.type === 18 /* FUNCTION */) {
                var transformFunction = SUPPORTED_TRANSFORM_FUNCTIONS[token.name];
                if (typeof transformFunction === 'undefined') {
                    throw new Error("Attempting to parse an unsupported transform function \"" + token.name + "\"");
                }
                return transformFunction(token.values);
            }
            return null;
        }
    };
    var matrix = function (args) {
        var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; });
        return values.length === 6 ? values : null;
    };
    // doesn't support 3D transforms at the moment
    var matrix3d = function (args) {
        var values = args.filter(function (arg) { return arg.type === 17 /* NUMBER_TOKEN */; }).map(function (arg) { return arg.number; });
        var a1 = values[0], b1 = values[1]; values[2]; values[3]; var a2 = values[4], b2 = values[5]; values[6]; values[7]; values[8]; values[9]; values[10]; values[11]; var a4 = values[12], b4 = values[13]; values[14]; values[15];
        return values.length === 16 ? [a1, b1, a2, b2, a4, b4] : null;
    };
    var SUPPORTED_TRANSFORM_FUNCTIONS = {
        matrix: matrix,
        matrix3d: matrix3d
    };

    var DEFAULT_VALUE = {
        type: 16 /* PERCENTAGE_TOKEN */,
        number: 50,
        flags: FLAG_INTEGER
    };
    var DEFAULT = [DEFAULT_VALUE, DEFAULT_VALUE];
    var transformOrigin = {
        name: 'transform-origin',
        initialValue: '50% 50%',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var origins = tokens.filter(isLengthPercentage);
            if (origins.length !== 2) {
                return DEFAULT;
            }
            return [origins[0], origins[1]];
        }
    };

    var visibility = {
        name: 'visible',
        initialValue: 'none',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, visibility) {
            switch (visibility) {
                case 'hidden':
                    return 1 /* HIDDEN */;
                case 'collapse':
                    return 2 /* COLLAPSE */;
                case 'visible':
                default:
                    return 0 /* VISIBLE */;
            }
        }
    };

    var WORD_BREAK;
    (function (WORD_BREAK) {
        WORD_BREAK["NORMAL"] = "normal";
        WORD_BREAK["BREAK_ALL"] = "break-all";
        WORD_BREAK["KEEP_ALL"] = "keep-all";
    })(WORD_BREAK || (WORD_BREAK = {}));
    var wordBreak = {
        name: 'word-break',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, wordBreak) {
            switch (wordBreak) {
                case 'break-all':
                    return WORD_BREAK.BREAK_ALL;
                case 'keep-all':
                    return WORD_BREAK.KEEP_ALL;
                case 'normal':
                default:
                    return WORD_BREAK.NORMAL;
            }
        }
    };

    var zIndex = {
        name: 'z-index',
        initialValue: 'auto',
        prefix: false,
        type: 0 /* VALUE */,
        parse: function (_context, token) {
            if (token.type === 20 /* IDENT_TOKEN */) {
                return { auto: true, order: 0 };
            }
            if (isNumberToken(token)) {
                return { auto: false, order: token.number };
            }
            throw new Error("Invalid z-index number parsed");
        }
    };

    var time = {
        name: 'time',
        parse: function (_context, value) {
            if (value.type === 15 /* DIMENSION_TOKEN */) {
                switch (value.unit.toLowerCase()) {
                    case 's':
                        return 1000 * value.number;
                    case 'ms':
                        return value.number;
                }
            }
            throw new Error("Unsupported time type");
        }
    };

    var opacity = {
        name: 'opacity',
        initialValue: '1',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isNumberToken(token)) {
                return token.number;
            }
            return 1;
        }
    };

    var textDecorationColor = {
        name: "text-decoration-color",
        initialValue: 'transparent',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var textDecorationLine = {
        name: 'text-decoration-line',
        initialValue: 'none',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            return tokens
                .filter(isIdentToken)
                .map(function (token) {
                switch (token.value) {
                    case 'underline':
                        return 1 /* UNDERLINE */;
                    case 'overline':
                        return 2 /* OVERLINE */;
                    case 'line-through':
                        return 3 /* LINE_THROUGH */;
                    case 'none':
                        return 4 /* BLINK */;
                }
                return 0 /* NONE */;
            })
                .filter(function (line) { return line !== 0 /* NONE */; });
        }
    };

    var fontFamily = {
        name: "font-family",
        initialValue: '',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var accumulator = [];
            var results = [];
            tokens.forEach(function (token) {
                switch (token.type) {
                    case 20 /* IDENT_TOKEN */:
                    case 0 /* STRING_TOKEN */:
                        accumulator.push(token.value);
                        break;
                    case 17 /* NUMBER_TOKEN */:
                        accumulator.push(token.number.toString());
                        break;
                    case 4 /* COMMA_TOKEN */:
                        results.push(accumulator.join(' '));
                        accumulator.length = 0;
                        break;
                }
            });
            if (accumulator.length) {
                results.push(accumulator.join(' '));
            }
            return results.map(function (result) { return (result.indexOf(' ') === -1 ? result : "'" + result + "'"); });
        }
    };

    var fontSize = {
        name: "font-size",
        initialValue: '0',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'length'
    };

    var fontWeight = {
        name: 'font-weight',
        initialValue: 'normal',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isNumberToken(token)) {
                return token.number;
            }
            if (isIdentToken(token)) {
                switch (token.value) {
                    case 'bold':
                        return 700;
                    case 'normal':
                    default:
                        return 400;
                }
            }
            return 400;
        }
    };

    var fontVariant = {
        name: 'font-variant',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            return tokens.filter(isIdentToken).map(function (token) { return token.value; });
        }
    };

    var fontStyle = {
        name: 'font-style',
        initialValue: 'normal',
        prefix: false,
        type: 2 /* IDENT_VALUE */,
        parse: function (_context, overflow) {
            switch (overflow) {
                case 'oblique':
                    return "oblique" /* OBLIQUE */;
                case 'italic':
                    return "italic" /* ITALIC */;
                case 'normal':
                default:
                    return "normal" /* NORMAL */;
            }
        }
    };

    var contains = function (bit, value) { return (bit & value) !== 0; };

    var content = {
        name: 'content',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return [];
            }
            return tokens;
        }
    };

    var counterIncrement = {
        name: 'counter-increment',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return null;
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return null;
            }
            var increments = [];
            var filtered = tokens.filter(nonWhiteSpace);
            for (var i = 0; i < filtered.length; i++) {
                var counter = filtered[i];
                var next = filtered[i + 1];
                if (counter.type === 20 /* IDENT_TOKEN */) {
                    var increment = next && isNumberToken(next) ? next.number : 1;
                    increments.push({ counter: counter.value, increment: increment });
                }
            }
            return increments;
        }
    };

    var counterReset = {
        name: 'counter-reset',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return [];
            }
            var resets = [];
            var filtered = tokens.filter(nonWhiteSpace);
            for (var i = 0; i < filtered.length; i++) {
                var counter = filtered[i];
                var next = filtered[i + 1];
                if (isIdentToken(counter) && counter.value !== 'none') {
                    var reset = next && isNumberToken(next) ? next.number : 0;
                    resets.push({ counter: counter.value, reset: reset });
                }
            }
            return resets;
        }
    };

    var duration = {
        name: 'duration',
        initialValue: '0s',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (context, tokens) {
            return tokens.filter(isDimensionToken).map(function (token) { return time.parse(context, token); });
        }
    };

    var quotes = {
        name: 'quotes',
        initialValue: 'none',
        prefix: true,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            if (tokens.length === 0) {
                return null;
            }
            var first = tokens[0];
            if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
                return null;
            }
            var quotes = [];
            var filtered = tokens.filter(isStringToken);
            if (filtered.length % 2 !== 0) {
                return null;
            }
            for (var i = 0; i < filtered.length; i += 2) {
                var open_1 = filtered[i].value;
                var close_1 = filtered[i + 1].value;
                quotes.push({ open: open_1, close: close_1 });
            }
            return quotes;
        }
    };
    var getQuote = function (quotes, depth, open) {
        if (!quotes) {
            return '';
        }
        var quote = quotes[Math.min(depth, quotes.length - 1)];
        if (!quote) {
            return '';
        }
        return open ? quote.open : quote.close;
    };

    var boxShadow = {
        name: 'box-shadow',
        initialValue: 'none',
        type: 1 /* LIST */,
        prefix: false,
        parse: function (context, tokens) {
            if (tokens.length === 1 && isIdentWithValue(tokens[0], 'none')) {
                return [];
            }
            return parseFunctionArgs(tokens).map(function (values) {
                var shadow = {
                    color: 0x000000ff,
                    offsetX: ZERO_LENGTH,
                    offsetY: ZERO_LENGTH,
                    blur: ZERO_LENGTH,
                    spread: ZERO_LENGTH,
                    inset: false
                };
                var c = 0;
                for (var i = 0; i < values.length; i++) {
                    var token = values[i];
                    if (isIdentWithValue(token, 'inset')) {
                        shadow.inset = true;
                    }
                    else if (isLength(token)) {
                        if (c === 0) {
                            shadow.offsetX = token;
                        }
                        else if (c === 1) {
                            shadow.offsetY = token;
                        }
                        else if (c === 2) {
                            shadow.blur = token;
                        }
                        else {
                            shadow.spread = token;
                        }
                        c++;
                    }
                    else {
                        shadow.color = color$1.parse(context, token);
                    }
                }
                return shadow;
            });
        }
    };

    var paintOrder = {
        name: 'paint-order',
        initialValue: 'normal',
        prefix: false,
        type: 1 /* LIST */,
        parse: function (_context, tokens) {
            var DEFAULT_VALUE = [0 /* FILL */, 1 /* STROKE */, 2 /* MARKERS */];
            var layers = [];
            tokens.filter(isIdentToken).forEach(function (token) {
                switch (token.value) {
                    case 'stroke':
                        layers.push(1 /* STROKE */);
                        break;
                    case 'fill':
                        layers.push(0 /* FILL */);
                        break;
                    case 'markers':
                        layers.push(2 /* MARKERS */);
                        break;
                }
            });
            DEFAULT_VALUE.forEach(function (value) {
                if (layers.indexOf(value) === -1) {
                    layers.push(value);
                }
            });
            return layers;
        }
    };

    var webkitTextStrokeColor = {
        name: "-webkit-text-stroke-color",
        initialValue: 'currentcolor',
        prefix: false,
        type: 3 /* TYPE_VALUE */,
        format: 'color'
    };

    var webkitTextStrokeWidth = {
        name: "-webkit-text-stroke-width",
        initialValue: '0',
        type: 0 /* VALUE */,
        prefix: false,
        parse: function (_context, token) {
            if (isDimensionToken(token)) {
                return token.number;
            }
            return 0;
        }
    };

    var CSSParsedDeclaration = /** @class */ (function () {
        function CSSParsedDeclaration(context, declaration) {
            var _a, _b;
            this.animationDuration = parse(context, duration, declaration.animationDuration);
            this.backgroundClip = parse(context, backgroundClip, declaration.backgroundClip);
            this.backgroundColor = parse(context, backgroundColor, declaration.backgroundColor);
            this.backgroundImage = parse(context, backgroundImage, declaration.backgroundImage);
            this.backgroundOrigin = parse(context, backgroundOrigin, declaration.backgroundOrigin);
            this.backgroundPosition = parse(context, backgroundPosition, declaration.backgroundPosition);
            this.backgroundRepeat = parse(context, backgroundRepeat, declaration.backgroundRepeat);
            this.backgroundSize = parse(context, backgroundSize, declaration.backgroundSize);
            this.borderTopColor = parse(context, borderTopColor, declaration.borderTopColor);
            this.borderRightColor = parse(context, borderRightColor, declaration.borderRightColor);
            this.borderBottomColor = parse(context, borderBottomColor, declaration.borderBottomColor);
            this.borderLeftColor = parse(context, borderLeftColor, declaration.borderLeftColor);
            this.borderTopLeftRadius = parse(context, borderTopLeftRadius, declaration.borderTopLeftRadius);
            this.borderTopRightRadius = parse(context, borderTopRightRadius, declaration.borderTopRightRadius);
            this.borderBottomRightRadius = parse(context, borderBottomRightRadius, declaration.borderBottomRightRadius);
            this.borderBottomLeftRadius = parse(context, borderBottomLeftRadius, declaration.borderBottomLeftRadius);
            this.borderTopStyle = parse(context, borderTopStyle, declaration.borderTopStyle);
            this.borderRightStyle = parse(context, borderRightStyle, declaration.borderRightStyle);
            this.borderBottomStyle = parse(context, borderBottomStyle, declaration.borderBottomStyle);
            this.borderLeftStyle = parse(context, borderLeftStyle, declaration.borderLeftStyle);
            this.borderTopWidth = parse(context, borderTopWidth, declaration.borderTopWidth);
            this.borderRightWidth = parse(context, borderRightWidth, declaration.borderRightWidth);
            this.borderBottomWidth = parse(context, borderBottomWidth, declaration.borderBottomWidth);
            this.borderLeftWidth = parse(context, borderLeftWidth, declaration.borderLeftWidth);
            this.boxShadow = parse(context, boxShadow, declaration.boxShadow);
            this.color = parse(context, color, declaration.color);
            this.direction = parse(context, direction, declaration.direction);
            this.display = parse(context, display, declaration.display);
            this.float = parse(context, float, declaration.cssFloat);
            this.fontFamily = parse(context, fontFamily, declaration.fontFamily);
            this.fontSize = parse(context, fontSize, declaration.fontSize);
            this.fontStyle = parse(context, fontStyle, declaration.fontStyle);
            this.fontVariant = parse(context, fontVariant, declaration.fontVariant);
            this.fontWeight = parse(context, fontWeight, declaration.fontWeight);
            this.letterSpacing = parse(context, letterSpacing, declaration.letterSpacing);
            this.lineBreak = parse(context, lineBreak, declaration.lineBreak);
            this.lineHeight = parse(context, lineHeight, declaration.lineHeight);
            this.listStyleImage = parse(context, listStyleImage, declaration.listStyleImage);
            this.listStylePosition = parse(context, listStylePosition, declaration.listStylePosition);
            this.listStyleType = parse(context, listStyleType, declaration.listStyleType);
            this.marginTop = parse(context, marginTop, declaration.marginTop);
            this.marginRight = parse(context, marginRight, declaration.marginRight);
            this.marginBottom = parse(context, marginBottom, declaration.marginBottom);
            this.marginLeft = parse(context, marginLeft, declaration.marginLeft);
            this.opacity = parse(context, opacity, declaration.opacity);
            var overflowTuple = parse(context, overflow, declaration.overflow);
            this.overflowX = overflowTuple[0];
            this.overflowY = overflowTuple[overflowTuple.length > 1 ? 1 : 0];
            this.overflowWrap = parse(context, overflowWrap, declaration.overflowWrap);
            this.paddingTop = parse(context, paddingTop, declaration.paddingTop);
            this.paddingRight = parse(context, paddingRight, declaration.paddingRight);
            this.paddingBottom = parse(context, paddingBottom, declaration.paddingBottom);
            this.paddingLeft = parse(context, paddingLeft, declaration.paddingLeft);
            this.paintOrder = parse(context, paintOrder, declaration.paintOrder);
            this.position = parse(context, position, declaration.position);
            this.textAlign = parse(context, textAlign, declaration.textAlign);
            this.textDecorationColor = parse(context, textDecorationColor, (_a = declaration.textDecorationColor) !== null && _a !== void 0 ? _a : declaration.color);
            this.textDecorationLine = parse(context, textDecorationLine, (_b = declaration.textDecorationLine) !== null && _b !== void 0 ? _b : declaration.textDecoration);
            this.textShadow = parse(context, textShadow, declaration.textShadow);
            this.textTransform = parse(context, textTransform, declaration.textTransform);
            this.transform = parse(context, transform$1, declaration.transform);
            this.transformOrigin = parse(context, transformOrigin, declaration.transformOrigin);
            this.visibility = parse(context, visibility, declaration.visibility);
            this.webkitTextStrokeColor = parse(context, webkitTextStrokeColor, declaration.webkitTextStrokeColor);
            this.webkitTextStrokeWidth = parse(context, webkitTextStrokeWidth, declaration.webkitTextStrokeWidth);
            this.wordBreak = parse(context, wordBreak, declaration.wordBreak);
            this.zIndex = parse(context, zIndex, declaration.zIndex);
        }
        CSSParsedDeclaration.prototype.isVisible = function () {
            return this.display > 0 && this.opacity > 0 && this.visibility === 0 /* VISIBLE */;
        };
        CSSParsedDeclaration.prototype.isTransparent = function () {
            return isTransparent(this.backgroundColor);
        };
        CSSParsedDeclaration.prototype.isTransformed = function () {
            return this.transform !== null;
        };
        CSSParsedDeclaration.prototype.isPositioned = function () {
            return this.position !== 0 /* STATIC */;
        };
        CSSParsedDeclaration.prototype.isPositionedWithZIndex = function () {
            return this.isPositioned() && !this.zIndex.auto;
        };
        CSSParsedDeclaration.prototype.isFloating = function () {
            return this.float !== 0 /* NONE */;
        };
        CSSParsedDeclaration.prototype.isInlineLevel = function () {
            return (contains(this.display, 4 /* INLINE */) ||
                contains(this.display, 33554432 /* INLINE_BLOCK */) ||
                contains(this.display, 268435456 /* INLINE_FLEX */) ||
                contains(this.display, 536870912 /* INLINE_GRID */) ||
                contains(this.display, 67108864 /* INLINE_LIST_ITEM */) ||
                contains(this.display, 134217728 /* INLINE_TABLE */));
        };
        return CSSParsedDeclaration;
    }());
    var CSSParsedPseudoDeclaration = /** @class */ (function () {
        function CSSParsedPseudoDeclaration(context, declaration) {
            this.content = parse(context, content, declaration.content);
            this.quotes = parse(context, quotes, declaration.quotes);
        }
        return CSSParsedPseudoDeclaration;
    }());
    var CSSParsedCounterDeclaration = /** @class */ (function () {
        function CSSParsedCounterDeclaration(context, declaration) {
            this.counterIncrement = parse(context, counterIncrement, declaration.counterIncrement);
            this.counterReset = parse(context, counterReset, declaration.counterReset);
        }
        return CSSParsedCounterDeclaration;
    }());
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    var parse = function (context, descriptor, style) {
        var tokenizer = new Tokenizer();
        var value = style !== null && typeof style !== 'undefined' ? style.toString() : descriptor.initialValue;
        tokenizer.write(value);
        var parser = new Parser(tokenizer.read());
        switch (descriptor.type) {
            case 2 /* IDENT_VALUE */:
                var token = parser.parseComponentValue();
                return descriptor.parse(context, isIdentToken(token) ? token.value : descriptor.initialValue);
            case 0 /* VALUE */:
                return descriptor.parse(context, parser.parseComponentValue());
            case 1 /* LIST */:
                return descriptor.parse(context, parser.parseComponentValues());
            case 4 /* TOKEN_VALUE */:
                return parser.parseComponentValue();
            case 3 /* TYPE_VALUE */:
                switch (descriptor.format) {
                    case 'angle':
                        return angle.parse(context, parser.parseComponentValue());
                    case 'color':
                        return color$1.parse(context, parser.parseComponentValue());
                    case 'image':
                        return image.parse(context, parser.parseComponentValue());
                    case 'length':
                        var length_1 = parser.parseComponentValue();
                        return isLength(length_1) ? length_1 : ZERO_LENGTH;
                    case 'length-percentage':
                        var value_1 = parser.parseComponentValue();
                        return isLengthPercentage(value_1) ? value_1 : ZERO_LENGTH;
                    case 'time':
                        return time.parse(context, parser.parseComponentValue());
                }
                break;
        }
    };

    var elementDebuggerAttribute = 'data-html2canvas-debug';
    var getElementDebugType = function (element) {
        var attribute = element.getAttribute(elementDebuggerAttribute);
        switch (attribute) {
            case 'all':
                return 1 /* ALL */;
            case 'clone':
                return 2 /* CLONE */;
            case 'parse':
                return 3 /* PARSE */;
            case 'render':
                return 4 /* RENDER */;
            default:
                return 0 /* NONE */;
        }
    };
    var isDebugging = function (element, type) {
        var elementType = getElementDebugType(element);
        return elementType === 1 /* ALL */ || type === elementType;
    };

    var ElementContainer = /** @class */ (function () {
        function ElementContainer(context, element) {
            this.context = context;
            this.textNodes = [];
            this.elements = [];
            this.flags = 0;
            if (isDebugging(element, 3 /* PARSE */)) {
                debugger;
            }
            this.styles = new CSSParsedDeclaration(context, window.getComputedStyle(element, null));
            if (isHTMLElementNode(element)) {
                if (this.styles.animationDuration.some(function (duration) { return duration > 0; })) {
                    element.style.animationDuration = '0s';
                }
                if (this.styles.transform !== null) {
                    // getBoundingClientRect takes transforms into account
                    element.style.transform = 'none';
                }
            }
            this.bounds = parseBounds(this.context, element);
            if (isDebugging(element, 4 /* RENDER */)) {
                this.flags |= 16 /* DEBUG_RENDER */;
            }
        }
        return ElementContainer;
    }());

    /*
     * text-segmentation 1.0.3 <https://github.com/niklasvh/text-segmentation>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var base64 = ' ';

    /*
     * utrie 1.0.2 <https://github.com/niklasvh/utrie>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i$1 = 0; i$1 < chars$1.length; i$1++) {
        lookup$1[chars$1.charCodeAt(i$1)] = i$1;
    }
    var decode = function (base64) {
        var bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;
        if (base64[base64.length - 1] === '=') {
            bufferLength--;
            if (base64[base64.length - 2] === '=') {
                bufferLength--;
            }
        }
        var buffer = typeof ArrayBuffer !== 'undefined' &&
            typeof Uint8Array !== 'undefined' &&
            typeof Uint8Array.prototype.slice !== 'undefined'
            ? new ArrayBuffer(bufferLength)
            : new Array(bufferLength);
        var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
        for (i = 0; i < len; i += 4) {
            encoded1 = lookup$1[base64.charCodeAt(i)];
            encoded2 = lookup$1[base64.charCodeAt(i + 1)];
            encoded3 = lookup$1[base64.charCodeAt(i + 2)];
            encoded4 = lookup$1[base64.charCodeAt(i + 3)];
            bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);
            bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);
            bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);
        }
        return buffer;
    };
    var polyUint16Array = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 2) {
            bytes.push((buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };
    var polyUint32Array = function (buffer) {
        var length = buffer.length;
        var bytes = [];
        for (var i = 0; i < length; i += 4) {
            bytes.push((buffer[i + 3] << 24) | (buffer[i + 2] << 16) | (buffer[i + 1] << 8) | buffer[i]);
        }
        return bytes;
    };

    /** Shift size for getting the index-2 table offset. */
    var UTRIE2_SHIFT_2 = 5;
    /** Shift size for getting the index-1 table offset. */
    var UTRIE2_SHIFT_1 = 6 + 5;
    /**
     * Shift size for shifting left the index array values.
     * Increases possible data size with 16-bit index values at the cost
     * of compactability.
     * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
     */
    var UTRIE2_INDEX_SHIFT = 2;
    /**
     * Difference between the two shift sizes,
     * for getting an index-1 offset from an index-2 offset. 6=11-5
     */
    var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;
    /**
     * The part of the index-2 table for U+D800..U+DBFF stores values for
     * lead surrogate code _units_ not code _points_.
     * Values for lead surrogate code _points_ are indexed with this portion of the table.
     * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
     */
    var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;
    /** Number of entries in a data block. 32=0x20 */
    var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;
    /** Mask for getting the lower bits for the in-data-block offset. */
    var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;
    var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;
    /** Count the lengths of both BMP pieces. 2080=0x820 */
    var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;
    /**
     * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
     * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
     */
    var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;
    var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
    /**
     * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
     * Variable length, for code points up to highStart, where the last single-value range starts.
     * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
     * (For 0x100000 supplementary code points U+10000..U+10ffff.)
     *
     * The part of the index-2 table for supplementary code points starts
     * after this index-1 table.
     *
     * Both the index-1 table and the following part of the index-2 table
     * are omitted completely if there is only BMP data.
     */
    var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;
    /**
     * Number of index-1 entries for the BMP. 32=0x20
     * This part of the index-1 table is omitted from the serialized form.
     */
    var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;
    /** Number of entries in an index-2 block. 64=0x40 */
    var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;
    /** Mask for getting the lower bits for the in-index-2-block offset. */
    var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;
    var slice16 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint16Array(Array.prototype.slice.call(view, start, end));
    };
    var slice32 = function (view, start, end) {
        if (view.slice) {
            return view.slice(start, end);
        }
        return new Uint32Array(Array.prototype.slice.call(view, start, end));
    };
    var createTrieFromBase64 = function (base64, _byteLength) {
        var buffer = decode(base64);
        var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer);
        var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer);
        var headerLength = 24;
        var index = slice16(view16, headerLength / 2, view32[4] / 2);
        var data = view32[5] === 2
            ? slice16(view16, (headerLength + view32[4]) / 2)
            : slice32(view32, Math.ceil((headerLength + view32[4]) / 4));
        return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);
    };
    var Trie = /** @class */ (function () {
        function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
            this.initialValue = initialValue;
            this.errorValue = errorValue;
            this.highStart = highStart;
            this.highValueIndex = highValueIndex;
            this.index = index;
            this.data = data;
        }
        /**
         * Get the value for a code point as stored in the Trie.
         *
         * @param codePoint the code point
         * @return the value
         */
        Trie.prototype.get = function (codePoint) {
            var ix;
            if (codePoint >= 0) {
                if (codePoint < 0x0d800 || (codePoint > 0x0dbff && codePoint <= 0x0ffff)) {
                    // Ordinary BMP code point, excluding leading surrogates.
                    // BMP uses a single level lookup.  BMP index starts at offset 0 in the Trie2 index.
                    // 16 bit data is stored in the index array itself.
                    ix = this.index[codePoint >> UTRIE2_SHIFT_2];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint <= 0xffff) {
                    // Lead Surrogate Code Point.  A Separate index section is stored for
                    // lead surrogate code units and code points.
                    //   The main index has the code unit data.
                    //   For this function, we need the code point data.
                    // Note: this expression could be refactored for slightly improved efficiency, but
                    //       surrogate code points will be so rare in practice that it's not worth it.
                    ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + ((codePoint - 0xd800) >> UTRIE2_SHIFT_2)];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint < this.highStart) {
                    // Supplemental code point, use two-level lookup.
                    ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);
                    ix = this.index[ix];
                    ix += (codePoint >> UTRIE2_SHIFT_2) & UTRIE2_INDEX_2_MASK;
                    ix = this.index[ix];
                    ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
                    return this.data[ix];
                }
                if (codePoint <= 0x10ffff) {
                    return this.data[this.highValueIndex];
                }
            }
            // Fall through.  The code point is outside of the legal range of 0..0x10ffff.
            return this.errorValue;
        };
        return Trie;
    }());

    /*
     * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
     * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
     * Released under MIT License
     */
    var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    // Use a lookup table to find the index.
    var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
    for (var i = 0; i < chars.length; i++) {
        lookup[chars.charCodeAt(i)] = i;
    }

    var Prepend = 1;
    var CR = 2;
    var LF = 3;
    var Control = 4;
    var Extend = 5;
    var SpacingMark = 7;
    var L = 8;
    var V = 9;
    var T = 10;
    var LV = 11;
    var LVT = 12;
    var ZWJ = 13;
    var Extended_Pictographic = 14;
    var RI = 15;
    var toCodePoints = function (str) {
        var codePoints = [];
        var i = 0;
        var length = str.length;
        while (i < length) {
            var value = str.charCodeAt(i++);
            if (value >= 0xd800 && value <= 0xdbff && i < length) {
                var extra = str.charCodeAt(i++);
                if ((extra & 0xfc00) === 0xdc00) {
                    codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
                }
                else {
                    codePoints.push(value);
                    i--;
                }
            }
            else {
                codePoints.push(value);
            }
        }
        return codePoints;
    };
    var fromCodePoint = function () {
        var codePoints = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            codePoints[_i] = arguments[_i];
        }
        if (String.fromCodePoint) {
            return String.fromCodePoint.apply(String, codePoints);
        }
        var length = codePoints.length;
        if (!length) {
            return '';
        }
        var codeUnits = [];
        var index = -1;
        var result = '';
        while (++index < length) {
            var codePoint = codePoints[index];
            if (codePoint <= 0xffff) {
                codeUnits.push(codePoint);
            }
            else {
                codePoint -= 0x10000;
                codeUnits.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
            }
            if (index + 1 === length || codeUnits.length > 0x4000) {
                result += String.fromCharCode.apply(String, codeUnits);
                codeUnits.length = 0;
            }
        }
        return result;
    };
    var UnicodeTrie = createTrieFromBase64(base64);
    var BREAK_NOT_ALLOWED = '×';
    var BREAK_ALLOWED = '÷';
    var codePointToClass = function (codePoint) { return UnicodeTrie.get(codePoint); };
    var _graphemeBreakAtIndex = function (_codePoints, classTypes, index) {
        var prevIndex = index - 2;
        var prev = classTypes[prevIndex];
        var current = classTypes[index - 1];
        var next = classTypes[index];
        // GB3 Do not break between a CR and LF
        if (current === CR && next === LF) {
            return BREAK_NOT_ALLOWED;
        }
        // GB4 Otherwise, break before and after controls.
        if (current === CR || current === LF || current === Control) {
            return BREAK_ALLOWED;
        }
        // GB5
        if (next === CR || next === LF || next === Control) {
            return BREAK_ALLOWED;
        }
        // Do not break Hangul syllable sequences.
        // GB6
        if (current === L && [L, V, LV, LVT].indexOf(next) !== -1) {
            return BREAK_NOT_ALLOWED;
        }
        // GB7
        if ((current === LV || current === V) && (next === V || next === T)) {
            return BREAK_NOT_ALLOWED;
        }
        // GB8
        if ((current === LVT || current === T) && next === T) {
            return BREAK_NOT_ALLOWED;
        }
        // GB9 Do not break before extending characters or ZWJ.
        if (next === ZWJ || next === Extend) {
            return BREAK_NOT_ALLOWED;
        }
        // Do not break before SpacingMarks, or after Prepend characters.
        // GB9a
        if (next === SpacingMark) {
            return BREAK_NOT_ALLOWED;
        }
        // GB9a
        if (current === Prepend) {
            return BREAK_NOT_ALLOWED;
        }
        // GB11 Do not break within emoji modifier sequences or emoji zwj sequences.
        if (current === ZWJ && next === Extended_Pictographic) {
            while (prev === Extend) {
                prev = classTypes[--prevIndex];
            }
            if (prev === Extended_Pictographic) {
                return BREAK_NOT_ALLOWED;
            }
        }
        // GB12 Do not break within emoji flag sequences.
        // That is, do not break between regional indicator (RI) symbols
        // if there is an odd number of RI characters before the break point.
        if (current === RI && next === RI) {
            var countRI = 0;
            while (prev === RI) {
                countRI++;
                prev = classTypes[--prevIndex];
            }
            if (countRI % 2 === 0) {
                return BREAK_NOT_ALLOWED;
            }
        }
        return BREAK_ALLOWED;
    };
    var GraphemeBreaker = function (str) {
        var codePoints = toCodePoints(str);
        var length = codePoints.length;
        var index = 0;
        var lastEnd = 0;
        var classTypes = codePoints.map(codePointToClass);
        return {
            next: function () {
                if (index >= length) {
                    return { done: true, value: null };
                }
                var graphemeBreak = BREAK_NOT_ALLOWED;
                while (index < length &&
                    (graphemeBreak = _graphemeBreakAtIndex(codePoints, classTypes, ++index)) === BREAK_NOT_ALLOWED) { }
                if (graphemeBreak !== BREAK_NOT_ALLOWED || index === length) {
                    var value = fromCodePoint.apply(null, codePoints.slice(lastEnd, index));
                    lastEnd = index;
                    return { value: value, done: false };
                }
                return { done: true, value: null };
            },
        };
    };
    var splitGraphemes = function (str) {
        var breaker = GraphemeBreaker(str);
        var graphemes = [];
        var bk;
        while (!(bk = breaker.next()).done) {
            if (bk.value) {
                graphemes.push(bk.value.slice());
            }
        }
        return graphemes;
    };

    var testRangeBounds = function (document) {
        var TEST_HEIGHT = 123;
        if (document.createRange) {
            var range = document.createRange();
            if (range.getBoundingClientRect) {
                var testElement = document.createElement('boundtest');
                testElement.style.height = TEST_HEIGHT + "px";
                testElement.style.display = 'block';
                document.body.appendChild(testElement);
                range.selectNode(testElement);
                var rangeBounds = range.getBoundingClientRect();
                var rangeHeight = Math.round(rangeBounds.height);
                document.body.removeChild(testElement);
                if (rangeHeight === TEST_HEIGHT) {
                    return true;
                }
            }
        }
        return false;
    };
    var testIOSLineBreak = function (document) {
        var testElement = document.createElement('boundtest');
        testElement.style.width = '50px';
        testElement.style.display = 'block';
        testElement.style.fontSize = '12px';
        testElement.style.letterSpacing = '0px';
        testElement.style.wordSpacing = '0px';
        document.body.appendChild(testElement);
        var range = document.createRange();
        testElement.innerHTML = typeof ''.repeat === 'function' ? '&#128104;'.repeat(10) : '';
        var node = testElement.firstChild;
        var textList = toCodePoints$1(node.data).map(function (i) { return fromCodePoint$1(i); });
        var offset = 0;
        var prev = {};
        // ios 13 does not handle range getBoundingClientRect line changes correctly #2177
        var supports = textList.every(function (text, i) {
            range.setStart(node, offset);
            range.setEnd(node, offset + text.length);
            var rect = range.getBoundingClientRect();
            offset += text.length;
            var boundAhead = rect.x > prev.x || rect.y > prev.y;
            prev = rect;
            if (i === 0) {
                return true;
            }
            return boundAhead;
        });
        document.body.removeChild(testElement);
        return supports;
    };
    var testCORS = function () { return typeof new Image().crossOrigin !== 'undefined'; };
    var testResponseType = function () { return typeof new XMLHttpRequest().responseType === 'string'; };
    var testSVG = function (document) {
        var img = new Image();
        var canvas = document.createElement('canvas');
        var ctx = canvas.getContext('2d');
        if (!ctx) {
            return false;
        }
        img.src = "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";
        try {
            ctx.drawImage(img, 0, 0);
            canvas.toDataURL();
        }
        catch (e) {
            return false;
        }
        return true;
    };
    var isGreenPixel = function (data) {
        return data[0] === 0 && data[1] === 255 && data[2] === 0 && data[3] === 255;
    };
    var testForeignObject = function (document) {
        var canvas = document.createElement('canvas');
        var size = 100;
        canvas.width = size;
        canvas.height = size;
        var ctx = canvas.getContext('2d');
        if (!ctx) {
            return Promise.reject(false);
        }
        ctx.fillStyle = 'rgb(0, 255, 0)';
        ctx.fillRect(0, 0, size, size);
        var img = new Image();
        var greenImageSrc = canvas.toDataURL();
        img.src = greenImageSrc;
        var svg = createForeignObjectSVG(size, size, 0, 0, img);
        ctx.fillStyle = 'red';
        ctx.fillRect(0, 0, size, size);
        return loadSerializedSVG$1(svg)
            .then(function (img) {
            ctx.drawImage(img, 0, 0);
            var data = ctx.getImageData(0, 0, size, size).data;
            ctx.fillStyle = 'red';
            ctx.fillRect(0, 0, size, size);
            var node = document.createElement('div');
            node.style.backgroundImage = "url(" + greenImageSrc + ")";
            node.style.height = size + "px";
            // Firefox 55 does not render inline <img /> tags
            return isGreenPixel(data)
                ? loadSerializedSVG$1(createForeignObjectSVG(size, size, 0, 0, node))
                : Promise.reject(false);
        })
            .then(function (img) {
            ctx.drawImage(img, 0, 0);
            // Edge does not render background-images
            return isGreenPixel(ctx.getImageData(0, 0, size, size).data);
        })
            .catch(function () { return false; });
    };
    var createForeignObjectSVG = function (width, height, x, y, node) {
        var xmlns = 'http://www.w3.org/2000/svg';
        var svg = document.createElementNS(xmlns, 'svg');
        var foreignObject = document.createElementNS(xmlns, 'foreignObject');
        svg.setAttributeNS(null, 'width', width.toString());
        svg.setAttributeNS(null, 'height', height.toString());
        foreignObject.setAttributeNS(null, 'width', '100%');
        foreignObject.setAttributeNS(null, 'height', '100%');
        foreignObject.setAttributeNS(null, 'x', x.toString());
        foreignObject.setAttributeNS(null, 'y', y.toString());
        foreignObject.setAttributeNS(null, 'externalResourcesRequired', 'true');
        svg.appendChild(foreignObject);
        foreignObject.appendChild(node);
        return svg;
    };
    var loadSerializedSVG$1 = function (svg) {
        return new Promise(function (resolve, reject) {
            var img = new Image();
            img.onload = function () { return resolve(img); };
            img.onerror = reject;
            img.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(svg));
        });
    };
    var FEATURES = {
        get SUPPORT_RANGE_BOUNDS() {
            var value = testRangeBounds(document);
            Object.defineProperty(FEATURES, 'SUPPORT_RANGE_BOUNDS', { value: value });
            return value;
        },
        get SUPPORT_WORD_BREAKING() {
            var value = FEATURES.SUPPORT_RANGE_BOUNDS && testIOSLineBreak(document);
            Object.defineProperty(FEATURES, 'SUPPORT_WORD_BREAKING', { value: value });
            return value;
        },
        get SUPPORT_SVG_DRAWING() {
            var value = testSVG(document);
            Object.defineProperty(FEATURES, 'SUPPORT_SVG_DRAWING', { value: value });
            return value;
        },
        get SUPPORT_FOREIGNOBJECT_DRAWING() {
            var value = typeof Array.from === 'function' && typeof window.fetch === 'function'
                ? testForeignObject(document)
                : Promise.resolve(false);
            Object.defineProperty(FEATURES, 'SUPPORT_FOREIGNOBJECT_DRAWING', { value: value });
            return value;
        },
        get SUPPORT_CORS_IMAGES() {
            var value = testCORS();
            Object.defineProperty(FEATURES, 'SUPPORT_CORS_IMAGES', { value: value });
            return value;
        },
        get SUPPORT_RESPONSE_TYPE() {
            var value = testResponseType();
            Object.defineProperty(FEATURES, 'SUPPORT_RESPONSE_TYPE', { value: value });
            return value;
        },
        get SUPPORT_CORS_XHR() {
            var value = 'withCredentials' in new XMLHttpRequest();
            Object.defineProperty(FEATURES, 'SUPPORT_CORS_XHR', { value: value });
            return value;
        },
        get SUPPORT_NATIVE_TEXT_SEGMENTATION() {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var value = !!(typeof Intl !== 'undefined' && Intl.Segmenter);
            Object.defineProperty(FEATURES, 'SUPPORT_NATIVE_TEXT_SEGMENTATION', { value: value });
            return value;
        }
    };

    var TextBounds = /** @class */ (function () {
        function TextBounds(text, bounds) {
            this.text = text;
            this.bounds = bounds;
        }
        return TextBounds;
    }());
    var parseTextBounds = function (context, value, styles, node) {
        var textList = breakText(value, styles);
        var textBounds = [];
        var offset = 0;
        textList.forEach(function (text) {
            if (styles.textDecorationLine.length || text.trim().length > 0) {
                if (FEATURES.SUPPORT_RANGE_BOUNDS) {
                    var clientRects = createRange(node, offset, text.length).getClientRects();
                    if (clientRects.length > 1) {
                        var subSegments = segmentGraphemes(text);
                        var subOffset_1 = 0;
                        subSegments.forEach(function (subSegment) {
                            textBounds.push(new TextBounds(subSegment, Bounds.fromDOMRectList(context, createRange(node, subOffset_1 + offset, subSegment.length).getClientRects())));
                            subOffset_1 += subSegment.length;
                        });
                    }
                    else {
                        textBounds.push(new TextBounds(text, Bounds.fromDOMRectList(context, clientRects)));
                    }
                }
                else {
                    var replacementNode = node.splitText(text.length);
                    textBounds.push(new TextBounds(text, getWrapperBounds(context, node)));
                    node = replacementNode;
                }
            }
            else if (!FEATURES.SUPPORT_RANGE_BOUNDS) {
                node = node.splitText(text.length);
            }
            offset += text.length;
        });
        return textBounds;
    };
    var getWrapperBounds = function (context, node) {
        var ownerDocument = node.ownerDocument;
        if (ownerDocument) {
            var wrapper = ownerDocument.createElement('html2canvaswrapper');
            wrapper.appendChild(node.cloneNode(true));
            var parentNode = node.parentNode;
            if (parentNode) {
                parentNode.replaceChild(wrapper, node);
                var bounds = parseBounds(context, wrapper);
                if (wrapper.firstChild) {
                    parentNode.replaceChild(wrapper.firstChild, wrapper);
                }
                return bounds;
            }
        }
        return Bounds.EMPTY;
    };
    var createRange = function (node, offset, length) {
        var ownerDocument = node.ownerDocument;
        if (!ownerDocument) {
            throw new Error('Node has no owner document');
        }
        var range = ownerDocument.createRange();
        range.setStart(node, offset);
        range.setEnd(node, offset + length);
        return range;
    };
    var segmentGraphemes = function (value) {
        if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var segmenter = new Intl.Segmenter(void 0, { granularity: 'grapheme' });
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; });
        }
        return splitGraphemes(value);
    };
    var segmentWords = function (value, styles) {
        if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            var segmenter = new Intl.Segmenter(void 0, {
                granularity: 'word'
            });
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; });
        }
        return breakWords(value, styles);
    };
    var breakText = function (value, styles) {
        return styles.letterSpacing !== 0 ? segmentGraphemes(value) : segmentWords(value, styles);
    };
    // https://drafts.csswg.org/css-text/#word-separator
    var wordSeparators = [0x0020, 0x00a0, 0x1361, 0x10100, 0x10101, 0x1039, 0x1091];
    var breakWords = function (str, styles) {
        var breaker = LineBreaker(str, {
            lineBreak: styles.lineBreak,
            wordBreak: styles.overflowWrap === "break-word" /* BREAK_WORD */ ? 'break-word' : styles.wordBreak
        });
        var words = [];
        var bk;
        var _loop_1 = function () {
            if (bk.value) {
                var value = bk.value.slice();
                var codePoints = toCodePoints$1(value);
                var word_1 = '';
                codePoints.forEach(function (codePoint) {
                    if (wordSeparators.indexOf(codePoint) === -1) {
                        word_1 += fromCodePoint$1(codePoint);
                    }
                    else {
                        if (word_1.length) {
                            words.push(word_1);
                        }
                        words.push(fromCodePoint$1(codePoint));
                        word_1 = '';
                    }
                });
                if (word_1.length) {
                    words.push(word_1);
                }
            }
        };
        while (!(bk = breaker.next()).done) {
            _loop_1();
        }
        return words;
    };

    var TextContainer = /** @class */ (function () {
        function TextContainer(context, node, styles) {
            this.text = transform(node.data, styles.textTransform);
            this.textBounds = parseTextBounds(context, this.text, styles, node);
        }
        return TextContainer;
    }());
    var transform = function (text, transform) {
        switch (transform) {
            case 1 /* LOWERCASE */:
                return text.toLowerCase();
            case 3 /* CAPITALIZE */:
                return text.replace(CAPITALIZE, capitalize);
            case 2 /* UPPERCASE */:
                return text.toUpperCase();
            default:
                return text;
        }
    };
    var CAPITALIZE = /(^|\s|:|-|\(|\))([a-z])/g;
    var capitalize = function (m, p1, p2) {
        if (m.length > 0) {
            return p1 + p2.toUpperCase();
        }
        return m;
    };

    var ImageElementContainer = /** @class */ (function (_super) {
        __extends(ImageElementContainer, _super);
        function ImageElementContainer(context, img) {
            var _this = _super.call(this, context, img) || this;
            _this.src = img.currentSrc || img.src;
            _this.intrinsicWidth = img.naturalWidth;
            _this.intrinsicHeight = img.naturalHeight;
            _this.context.cache.addImage(_this.src);
            return _this;
        }
        return ImageElementContainer;
    }(ElementContainer));

    var CanvasElementContainer = /** @class */ (function (_super) {
        __extends(CanvasElementContainer, _super);
        function CanvasElementContainer(context, canvas) {
            var _this = _super.call(this, context, canvas) || this;
            _this.canvas = canvas;
            _this.intrinsicWidth = canvas.width;
            _this.intrinsicHeight = canvas.height;
            return _this;
        }
        return CanvasElementContainer;
    }(ElementContainer));

    var SVGElementContainer = /** @class */ (function (_super) {
        __extends(SVGElementContainer, _super);
        function SVGElementContainer(context, img) {
            var _this = _super.call(this, context, img) || this;
            var s = new XMLSerializer();
            var bounds = parseBounds(context, img);
            img.setAttribute('width', bounds.width + "px");
            img.setAttribute('height', bounds.height + "px");
            _this.svg = "data:image/svg+xml," + encodeURIComponent(s.serializeToString(img));
            _this.intrinsicWidth = img.width.baseVal.value;
            _this.intrinsicHeight = img.height.baseVal.value;
            _this.context.cache.addImage(_this.svg);
            return _this;
        }
        return SVGElementContainer;
    }(ElementContainer));

    var LIElementContainer = /** @class */ (function (_super) {
        __extends(LIElementContainer, _super);
        function LIElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.value = element.value;
            return _this;
        }
        return LIElementContainer;
    }(ElementContainer));

    var OLElementContainer = /** @class */ (function (_super) {
        __extends(OLElementContainer, _super);
        function OLElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.start = element.start;
            _this.reversed = typeof element.reversed === 'boolean' && element.reversed === true;
            return _this;
        }
        return OLElementContainer;
    }(ElementContainer));

    var CHECKBOX_BORDER_RADIUS = [
        {
            type: 15 /* DIMENSION_TOKEN */,
            flags: 0,
            unit: 'px',
            number: 3
        }
    ];
    var RADIO_BORDER_RADIUS = [
        {
            type: 16 /* PERCENTAGE_TOKEN */,
            flags: 0,
            number: 50
        }
    ];
    var reformatInputBounds = function (bounds) {
        if (bounds.width > bounds.height) {
            return new Bounds(bounds.left + (bounds.width - bounds.height) / 2, bounds.top, bounds.height, bounds.height);
        }
        else if (bounds.width < bounds.height) {
            return new Bounds(bounds.left, bounds.top + (bounds.height - bounds.width) / 2, bounds.width, bounds.width);
        }
        return bounds;
    };
    var getInputValue = function (node) {
        var value = node.type === PASSWORD ? new Array(node.value.length + 1).join('\u2022') : node.value;
        return value.length === 0 ? node.placeholder || '' : value;
    };
    var CHECKBOX = 'checkbox';
    var RADIO = 'radio';
    var PASSWORD = 'password';
    var INPUT_COLOR = 0x2a2a2aff;
    var InputElementContainer = /** @class */ (function (_super) {
        __extends(InputElementContainer, _super);
        function InputElementContainer(context, input) {
            var _this = _super.call(this, context, input) || this;
            _this.type = input.type.toLowerCase();
            _this.checked = input.checked;
            _this.value = getInputValue(input);
            if (_this.type === CHECKBOX || _this.type === RADIO) {
                _this.styles.backgroundColor = 0xdededeff;
                _this.styles.borderTopColor =
                    _this.styles.borderRightColor =
                        _this.styles.borderBottomColor =
                            _this.styles.borderLeftColor =
                                0xa5a5a5ff;
                _this.styles.borderTopWidth =
                    _this.styles.borderRightWidth =
                        _this.styles.borderBottomWidth =
                            _this.styles.borderLeftWidth =
                                1;
                _this.styles.borderTopStyle =
                    _this.styles.borderRightStyle =
                        _this.styles.borderBottomStyle =
                            _this.styles.borderLeftStyle =
                                1 /* SOLID */;
                _this.styles.backgroundClip = [0 /* BORDER_BOX */];
                _this.styles.backgroundOrigin = [0 /* BORDER_BOX */];
                _this.bounds = reformatInputBounds(_this.bounds);
            }
            switch (_this.type) {
                case CHECKBOX:
                    _this.styles.borderTopRightRadius =
                        _this.styles.borderTopLeftRadius =
                            _this.styles.borderBottomRightRadius =
                                _this.styles.borderBottomLeftRadius =
                                    CHECKBOX_BORDER_RADIUS;
                    break;
                case RADIO:
                    _this.styles.borderTopRightRadius =
                        _this.styles.borderTopLeftRadius =
                            _this.styles.borderBottomRightRadius =
                                _this.styles.borderBottomLeftRadius =
                                    RADIO_BORDER_RADIUS;
                    break;
            }
            return _this;
        }
        return InputElementContainer;
    }(ElementContainer));

    var SelectElementContainer = /** @class */ (function (_super) {
        __extends(SelectElementContainer, _super);
        function SelectElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            var option = element.options[element.selectedIndex || 0];
            _this.value = option ? option.text || '' : '';
            return _this;
        }
        return SelectElementContainer;
    }(ElementContainer));

    var TextareaElementContainer = /** @class */ (function (_super) {
        __extends(TextareaElementContainer, _super);
        function TextareaElementContainer(context, element) {
            var _this = _super.call(this, context, element) || this;
            _this.value = element.value;
            return _this;
        }
        return TextareaElementContainer;
    }(ElementContainer));

    var IFrameElementContainer = /** @class */ (function (_super) {
        __extends(IFrameElementContainer, _super);
        function IFrameElementContainer(context, iframe) {
            var _this = _super.call(this, context, iframe) || this;
            _this.src = iframe.src;
            _this.width = parseInt(iframe.width, 10) || 0;
            _this.height = parseInt(iframe.height, 10) || 0;
            _this.backgroundColor = _this.styles.backgroundColor;
            try {
                if (iframe.contentWindow &&
                    iframe.contentWindow.document &&
                    iframe.contentWindow.document.documentElement) {
                    _this.tree = parseTree(context, iframe.contentWindow.document.documentElement);
                    // http://www.w3.org/TR/css3-background/#special-backgrounds
                    var documentBackgroundColor = iframe.contentWindow.document.documentElement
                        ? parseColor(context, getComputedStyle(iframe.contentWindow.document.documentElement).backgroundColor)
                        : COLORS.TRANSPARENT;
                    var bodyBackgroundColor = iframe.contentWindow.document.body
                        ? parseColor(context, getComputedStyle(iframe.contentWindow.document.body).backgroundColor)
                        : COLORS.TRANSPARENT;
                    _this.backgroundColor = isTransparent(documentBackgroundColor)
                        ? isTransparent(bodyBackgroundColor)
                            ? _this.styles.backgroundColor
                            : bodyBackgroundColor
                        : documentBackgroundColor;
                }
            }
            catch (e) { }
            return _this;
        }
        return IFrameElementContainer;
    }(ElementContainer));

    var LIST_OWNERS = ['OL', 'UL', 'MENU'];
    var parseNodeTree = function (context, node, parent, root) {
        for (var childNode = node.firstChild, nextNode = void 0; childNode; childNode = nextNode) {
            nextNode = childNode.nextSibling;
            if (isTextNode(childNode) && childNode.data.trim().length > 0) {
                parent.textNodes.push(new TextContainer(context, childNode, parent.styles));
            }
            else if (isElementNode(childNode)) {
                if (isSlotElement(childNode) && childNode.assignedNodes) {
                    childNode.assignedNodes().forEach(function (childNode) { return parseNodeTree(context, childNode, parent, root); });
                }
                else {
                    var container = createContainer(context, childNode);
                    if (container.styles.isVisible()) {
                        if (createsRealStackingContext(childNode, container, root)) {
                            container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;
                        }
                        else if (createsStackingContext(container.styles)) {
                            container.flags |= 2 /* CREATES_STACKING_CONTEXT */;
                        }
                        if (LIST_OWNERS.indexOf(childNode.tagName) !== -1) {
                            container.flags |= 8 /* IS_LIST_OWNER */;
                        }
                        parent.elements.push(container);
                        childNode.slot;
                        if (childNode.shadowRoot) {
                            parseNodeTree(context, childNode.shadowRoot, container, root);
                        }
                        else if (!isTextareaElement(childNode) &&
                            !isSVGElement(childNode) &&
                            !isSelectElement(childNode)) {
                            parseNodeTree(context, childNode, container, root);
                        }
                    }
                }
            }
        }
    };
    var createContainer = function (context, element) {
        if (isImageElement(element)) {
            return new ImageElementContainer(context, element);
        }
        if (isCanvasElement(element)) {
            return new CanvasElementContainer(context, element);
        }
        if (isSVGElement(element)) {
            return new SVGElementContainer(context, element);
        }
        if (isLIElement(element)) {
            return new LIElementContainer(context, element);
        }
        if (isOLElement(element)) {
            return new OLElementContainer(context, element);
        }
        if (isInputElement(element)) {
            return new InputElementContainer(context, element);
        }
        if (isSelectElement(element)) {
            return new SelectElementContainer(context, element);
        }
        if (isTextareaElement(element)) {
            return new TextareaElementContainer(context, element);
        }
        if (isIFrameElement(element)) {
            return new IFrameElementContainer(context, element);
        }
        return new ElementContainer(context, element);
    };
    var parseTree = function (context, element) {
        var container = createContainer(context, element);
        container.flags |= 4 /* CREATES_REAL_STACKING_CONTEXT */;
        parseNodeTree(context, element, container, container);
        return container;
    };
    var createsRealStackingContext = function (node, container, root) {
        return (container.styles.isPositionedWithZIndex() ||
            container.styles.opacity < 1 ||
            container.styles.isTransformed() ||
            (isBodyElement(node) && root.styles.isTransparent()));
    };
    var createsStackingContext = function (styles) { return styles.isPositioned() || styles.isFloating(); };
    var isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };
    var isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };
    var isHTMLElementNode = function (node) {
        return isElementNode(node) && typeof node.style !== 'undefined' && !isSVGElementNode(node);
    };
    var isSVGElementNode = function (element) {
        return typeof element.className === 'object';
    };
    var isLIElement = function (node) { return node.tagName === 'LI'; };
    var isOLElement = function (node) { return node.tagName === 'OL'; };
    var isInputElement = function (node) { return node.tagName === 'INPUT'; };
    var isHTMLElement = function (node) { return node.tagName === 'HTML'; };
    var isSVGElement = function (node) { return node.tagName === 'svg'; };
    var isBodyElement = function (node) { return node.tagName === 'BODY'; };
    var isCanvasElement = function (node) { return node.tagName === 'CANVAS'; };
    var isVideoElement = function (node) { return node.tagName === 'VIDEO'; };
    var isImageElement = function (node) { return node.tagName === 'IMG'; };
    var isIFrameElement = function (node) { return node.tagName === 'IFRAME'; };
    var isStyleElement = function (node) { return node.tagName === 'STYLE'; };
    var isScriptElement = function (node) { return node.tagName === 'SCRIPT'; };
    var isTextareaElement = function (node) { return node.tagName === 'TEXTAREA'; };
    var isSelectElement = function (node) { return node.tagName === 'SELECT'; };
    var isSlotElement = function (node) { return node.tagName === 'SLOT'; };
    // https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
    var isCustomElement = function (node) { return node.tagName.indexOf('-') > 0; };

    var CounterState = /** @class */ (function () {
        function CounterState() {
            this.counters = {};
        }
        CounterState.prototype.getCounterValue = function (name) {
            var counter = this.counters[name];
            if (counter && counter.length) {
                return counter[counter.length - 1];
            }
            return 1;
        };
        CounterState.prototype.getCounterValues = function (name) {
            var counter = this.counters[name];
            return counter ? counter : [];
        };
        CounterState.prototype.pop = function (counters) {
            var _this = this;
            counters.forEach(function (counter) { return _this.counters[counter].pop(); });
        };
        CounterState.prototype.parse = function (style) {
            var _this = this;
            var counterIncrement = style.counterIncrement;
            var counterReset = style.counterReset;
            var canReset = true;
            if (counterIncrement !== null) {
                counterIncrement.forEach(function (entry) {
                    var counter = _this.counters[entry.counter];
                    if (counter && entry.increment !== 0) {
                        canReset = false;
                        if (!counter.length) {
                            counter.push(1);
                        }
                        counter[Math.max(0, counter.length - 1)] += entry.increment;
                    }
                });
            }
            var counterNames = [];
            if (canReset) {
                counterReset.forEach(function (entry) {
                    var counter = _this.counters[entry.counter];
                    counterNames.push(entry.counter);
                    if (!counter) {
                        counter = _this.counters[entry.counter] = [];
                    }
                    counter.push(entry.reset);
                });
            }
            return counterNames;
        };
        return CounterState;
    }());
    var ROMAN_UPPER = {
        integers: [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1],
        values: ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I']
    };
    var ARMENIAN = {
        integers: [
            9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70,
            60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'Ք',
            'Փ',
            'Ւ',
            'Ց',
            'Ր',
            'Տ',
            'Վ',
            'Ս',
            'Ռ',
            'Ջ',
            'Պ',
            'Չ',
            'Ո',
            'Շ',
            'Ն',
            'Յ',
            'Մ',
            'Ճ',
            'Ղ',
            'Ձ',
            'Հ',
            'Կ',
            'Ծ',
            'Խ',
            'Լ',
            'Ի',
            'Ժ',
            'Թ',
            'Ը',
            'Է',
            'Զ',
            'Ե',
            'Դ',
            'Գ',
            'Բ',
            'Ա'
        ]
    };
    var HEBREW = {
        integers: [
            10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20,
            19, 18, 17, 16, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'י׳',
            'ט׳',
            'ח׳',
            'ז׳',
            'ו׳',
            'ה׳',
            'ד׳',
            'ג׳',
            'ב׳',
            'א׳',
            'ת',
            'ש',
            'ר',
            'ק',
            'צ',
            'פ',
            'ע',
            'ס',
            'נ',
            'מ',
            'ל',
            'כ',
            'יט',
            'יח',
            'יז',
            'טז',
            'טו',
            'י',
            'ט',
            'ח',
            'ז',
            'ו',
            'ה',
            'ד',
            'ג',
            'ב',
            'א'
        ]
    };
    var GEORGIAN = {
        integers: [
            10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90,
            80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
        ],
        values: [
            'ჵ',
            'ჰ',
            'ჯ',
            'ჴ',
            'ხ',
            'ჭ',
            'წ',
            'ძ',
            'ც',
            'ჩ',
            'შ',
            'ყ',
            'ღ',
            'ქ',
            'ფ',
            'ჳ',
            'ტ',
            'ს',
            'რ',
            'ჟ',
            'პ',
            'ო',
            'ჲ',
            'ნ',
            'მ',
            'ლ',
            'კ',
            'ი',
            'თ',
            'ჱ',
            'ზ',
            'ვ',
            'ე',
            'დ',
            'გ',
            'ბ',
            'ა'
        ]
    };
    var createAdditiveCounter = function (value, min, max, symbols, fallback, suffix) {
        if (value < min || value > max) {
            return createCounterText(value, fallback, suffix.length > 0);
        }
        return (symbols.integers.reduce(function (string, integer, index) {
            while (value >= integer) {
                value -= integer;
                string += symbols.values[index];
            }
            return string;
        }, '') + suffix);
    };
    var createCounterStyleWithSymbolResolver = function (value, codePointRangeLength, isNumeric, resolver) {
        var string = '';
        do {
            if (!isNumeric) {
                value--;
            }
            string = resolver(value) + string;
            value /= codePointRangeLength;
        } while (value * codePointRangeLength >= codePointRangeLength);
        return string;
    };
    var createCounterStyleFromRange = function (value, codePointRangeStart, codePointRangeEnd, isNumeric, suffix) {
        var codePointRangeLength = codePointRangeEnd - codePointRangeStart + 1;
        return ((value < 0 ? '-' : '') +
            (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, isNumeric, function (codePoint) {
                return fromCodePoint$1(Math.floor(codePoint % codePointRangeLength) + codePointRangeStart);
            }) +
                suffix));
    };
    var createCounterStyleFromSymbols = function (value, symbols, suffix) {
        if (suffix === void 0) { suffix = '. '; }
        var codePointRangeLength = symbols.length;
        return (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, false, function (codePoint) { return symbols[Math.floor(codePoint % codePointRangeLength)]; }) + suffix);
    };
    var CJK_ZEROS = 1 << 0;
    var CJK_TEN_COEFFICIENTS = 1 << 1;
    var CJK_TEN_HIGH_COEFFICIENTS = 1 << 2;
    var CJK_HUNDRED_COEFFICIENTS = 1 << 3;
    var createCJKCounter = function (value, numbers, multipliers, negativeSign, suffix, flags) {
        if (value < -9999 || value > 9999) {
            return createCounterText(value, 4 /* CJK_DECIMAL */, suffix.length > 0);
        }
        var tmp = Math.abs(value);
        var string = suffix;
        if (tmp === 0) {
            return numbers[0] + string;
        }
        for (var digit = 0; tmp > 0 && digit <= 4; digit++) {
            var coefficient = tmp % 10;
            if (coefficient === 0 && contains(flags, CJK_ZEROS) && string !== '') {
                string = numbers[coefficient] + string;
            }
            else if (coefficient > 1 ||
                (coefficient === 1 && digit === 0) ||
                (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_COEFFICIENTS)) ||
                (coefficient === 1 && digit === 1 && contains(flags, CJK_TEN_HIGH_COEFFICIENTS) && value > 100) ||
                (coefficient === 1 && digit > 1 && contains(flags, CJK_HUNDRED_COEFFICIENTS))) {
                string = numbers[coefficient] + (digit > 0 ? multipliers[digit - 1] : '') + string;
            }
            else if (coefficient === 1 && digit > 0) {
                string = multipliers[digit - 1] + string;
            }
            tmp = Math.floor(tmp / 10);
        }
        return (value < 0 ? negativeSign : '') + string;
    };
    var CHINESE_INFORMAL_MULTIPLIERS = '十百千萬';
    var CHINESE_FORMAL_MULTIPLIERS = '拾佰仟萬';
    var JAPANESE_NEGATIVE = 'マイナス';
    var KOREAN_NEGATIVE = '마이너스';
    var createCounterText = function (value, type, appendSuffix) {
        var defaultSuffix = appendSuffix ? '. ' : '';
        var cjkSuffix = appendSuffix ? '、' : '';
        var koreanSuffix = appendSuffix ? ', ' : '';
        var spaceSuffix = appendSuffix ? ' ' : '';
        switch (type) {
            case 0 /* DISC */:
                return '•' + spaceSuffix;
            case 1 /* CIRCLE */:
                return '◦' + spaceSuffix;
            case 2 /* SQUARE */:
                return '◾' + spaceSuffix;
            case 5 /* DECIMAL_LEADING_ZERO */:
                var string = createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);
                return string.length < 4 ? "0" + string : string;
            case 4 /* CJK_DECIMAL */:
                return createCounterStyleFromSymbols(value, '〇一二三四五六七八九', cjkSuffix);
            case 6 /* LOWER_ROMAN */:
                return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix).toLowerCase();
            case 7 /* UPPER_ROMAN */:
                return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, 3 /* DECIMAL */, defaultSuffix);
            case 8 /* LOWER_GREEK */:
                return createCounterStyleFromRange(value, 945, 969, false, defaultSuffix);
            case 9 /* LOWER_ALPHA */:
                return createCounterStyleFromRange(value, 97, 122, false, defaultSuffix);
            case 10 /* UPPER_ALPHA */:
                return createCounterStyleFromRange(value, 65, 90, false, defaultSuffix);
            case 11 /* ARABIC_INDIC */:
                return createCounterStyleFromRange(value, 1632, 1641, true, defaultSuffix);
            case 12 /* ARMENIAN */:
            case 49 /* UPPER_ARMENIAN */:
                return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix);
            case 35 /* LOWER_ARMENIAN */:
                return createAdditiveCounter(value, 1, 9999, ARMENIAN, 3 /* DECIMAL */, defaultSuffix).toLowerCase();
            case 13 /* BENGALI */:
                return createCounterStyleFromRange(value, 2534, 2543, true, defaultSuffix);
            case 14 /* CAMBODIAN */:
            case 30 /* KHMER */:
                return createCounterStyleFromRange(value, 6112, 6121, true, defaultSuffix);
            case 15 /* CJK_EARTHLY_BRANCH */:
                return createCounterStyleFromSymbols(value, '子丑寅卯辰巳午未申酉戌亥', cjkSuffix);
            case 16 /* CJK_HEAVENLY_STEM */:
                return createCounterStyleFromSymbols(value, '甲乙丙丁戊己庚辛壬癸', cjkSuffix);
            case 17 /* CJK_IDEOGRAPHIC */:
            case 48 /* TRAD_CHINESE_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 47 /* TRAD_CHINESE_FORMAL */:
                return createCJKCounter(value, '零壹貳參肆伍陸柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '負', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 42 /* SIMP_CHINESE_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', CHINESE_INFORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 41 /* SIMP_CHINESE_FORMAL */:
                return createCJKCounter(value, '零壹贰叁肆伍陆柒捌玖', CHINESE_FORMAL_MULTIPLIERS, '负', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);
            case 26 /* JAPANESE_INFORMAL */:
                return createCJKCounter(value, '〇一二三四五六七八九', '十百千万', JAPANESE_NEGATIVE, cjkSuffix, 0);
            case 25 /* JAPANESE_FORMAL */:
                return createCJKCounter(value, '零壱弐参四伍六七八九', '拾百千万', JAPANESE_NEGATIVE, cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 31 /* KOREAN_HANGUL_FORMAL */:
                return createCJKCounter(value, '영일이삼사오육칠팔구', '십백천만', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 33 /* KOREAN_HANJA_INFORMAL */:
                return createCJKCounter(value, '零一二三四五六七八九', '十百千萬', KOREAN_NEGATIVE, koreanSuffix, 0);
            case 32 /* KOREAN_HANJA_FORMAL */:
                return createCJKCounter(value, '零壹貳參四五六七八九', '拾百千', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);
            case 18 /* DEVANAGARI */:
                return createCounterStyleFromRange(value, 0x966, 0x96f, true, defaultSuffix);
            case 20 /* GEORGIAN */:
                return createAdditiveCounter(value, 1, 19999, GEORGIAN, 3 /* DECIMAL */, defaultSuffix);
            case 21 /* GUJARATI */:
                return createCounterStyleFromRange(value, 0xae6, 0xaef, true, defaultSuffix);
            case 22 /* GURMUKHI */:
                return createCounterStyleFromRange(value, 0xa66, 0xa6f, true, defaultSuffix);
            case 22 /* HEBREW */:
                return createAdditiveCounter(value, 1, 10999, HEBREW, 3 /* DECIMAL */, defaultSuffix);
            case 23 /* HIRAGANA */:
                return createCounterStyleFromSymbols(value, 'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん');
            case 24 /* HIRAGANA_IROHA */:
                return createCounterStyleFromSymbols(value, 'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす');
            case 27 /* KANNADA */:
                return createCounterStyleFromRange(value, 0xce6, 0xcef, true, defaultSuffix);
            case 28 /* KATAKANA */:
                return createCounterStyleFromSymbols(value, 'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン', cjkSuffix);
            case 29 /* KATAKANA_IROHA */:
                return createCounterStyleFromSymbols(value, 'イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス', cjkSuffix);
            case 34 /* LAO */:
                return createCounterStyleFromRange(value, 0xed0, 0xed9, true, defaultSuffix);
            case 37 /* MONGOLIAN */:
                return createCounterStyleFromRange(value, 0x1810, 0x1819, true, defaultSuffix);
            case 38 /* MYANMAR */:
                return createCounterStyleFromRange(value, 0x1040, 0x1049, true, defaultSuffix);
            case 39 /* ORIYA */:
                return createCounterStyleFromRange(value, 0xb66, 0xb6f, true, defaultSuffix);
            case 40 /* PERSIAN */:
                return createCounterStyleFromRange(value, 0x6f0, 0x6f9, true, defaultSuffix);
            case 43 /* TAMIL */:
                return createCounterStyleFromRange(value, 0xbe6, 0xbef, true, defaultSuffix);
            case 44 /* TELUGU */:
                return createCounterStyleFromRange(value, 0xc66, 0xc6f, true, defaultSuffix);
            case 45 /* THAI */:
                return createCounterStyleFromRange(value, 0xe50, 0xe59, true, defaultSuffix);
            case 46 /* TIBETAN */:
                return createCounterStyleFromRange(value, 0xf20, 0xf29, true, defaultSuffix);
            case 3 /* DECIMAL */:
            default:
                return createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);
        }
    };

    var IGNORE_ATTRIBUTE = 'data-html2canvas-ignore';
    var DocumentCloner = /** @class */ (function () {
        function DocumentCloner(context, element, options) {
            this.context = context;
            this.options = options;
            this.scrolledElements = [];
            this.referenceElement = element;
            this.counters = new CounterState();
            this.quoteDepth = 0;
            if (!element.ownerDocument) {
                throw new Error('Cloned element does not have an owner document');
            }
            this.documentElement = this.cloneNode(element.ownerDocument.documentElement, false);
        }
        DocumentCloner.prototype.toIFrame = function (ownerDocument, windowSize) {
            var _this = this;
            var iframe = createIFrameContainer(ownerDocument, windowSize);
            if (!iframe.contentWindow) {
                return Promise.reject("Unable to find iframe window");
            }
            var scrollX = ownerDocument.defaultView.pageXOffset;
            var scrollY = ownerDocument.defaultView.pageYOffset;
            var cloneWindow = iframe.contentWindow;
            var documentClone = cloneWindow.document;
            /* Chrome doesn't detect relative background-images assigned in inline <style> sheets when fetched through getComputedStyle
             if window url is about:blank, we can assign the url to current by writing onto the document
             */
            var iframeLoad = iframeLoader(iframe).then(function () { return __awaiter(_this, void 0, void 0, function () {
                var onclone, referenceElement;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            this.scrolledElements.forEach(restoreNodeScroll);
                            if (cloneWindow) {
                                cloneWindow.scrollTo(windowSize.left, windowSize.top);
                                if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent) &&
                                    (cloneWindow.scrollY !== windowSize.top || cloneWindow.scrollX !== windowSize.left)) {
                                    this.context.logger.warn('Unable to restore scroll position for cloned document');
                                    this.context.windowBounds = this.context.windowBounds.add(cloneWindow.scrollX - windowSize.left, cloneWindow.scrollY - windowSize.top, 0, 0);
                                }
                            }
                            onclone = this.options.onclone;
                            referenceElement = this.clonedReferenceElement;
                            if (typeof referenceElement === 'undefined') {
                                return [2 /*return*/, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")];
                            }
                            if (!(documentClone.fonts && documentClone.fonts.ready)) return [3 /*break*/, 2];
                            return [4 /*yield*/, documentClone.fonts.ready];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2:
                            if (!/(AppleWebKit)/g.test(navigator.userAgent)) return [3 /*break*/, 4];
                            return [4 /*yield*/, imagesReady(documentClone)];
                        case 3:
                            _a.sent();
                            _a.label = 4;
                        case 4:
                            if (typeof onclone === 'function') {
                                return [2 /*return*/, Promise.resolve()
                                        .then(function () { return onclone(documentClone, referenceElement); })
                                        .then(function () { return iframe; })];
                            }
                            return [2 /*return*/, iframe];
                    }
                });
            }); });
            documentClone.open();
            documentClone.write(serializeDoctype(document.doctype) + "<html></html>");
            // Chrome scrolls the parent document for some reason after the write to the cloned window???
            restoreOwnerScroll(this.referenceElement.ownerDocument, scrollX, scrollY);
            documentClone.replaceChild(documentClone.adoptNode(this.documentElement), documentClone.documentElement);
            documentClone.close();
            return iframeLoad;
        };
        DocumentCloner.prototype.createElementClone = function (node) {
            if (isDebugging(node, 2 /* CLONE */)) {
                debugger;
            }
            if (isCanvasElement(node)) {
                return this.createCanvasClone(node);
            }
            if (isVideoElement(node)) {
                return this.createVideoClone(node);
            }
            if (isStyleElement(node)) {
                return this.createStyleClone(node);
            }
            var clone = node.cloneNode(false);
            if (isImageElement(clone)) {
                if (isImageElement(node) && node.currentSrc && node.currentSrc !== node.src) {
                    clone.src = node.currentSrc;
                    clone.srcset = '';
                }
                if (clone.loading === 'lazy') {
                    clone.loading = 'eager';
                }
            }
            if (isCustomElement(clone)) {
                return this.createCustomElementClone(clone);
            }
            return clone;
        };
        DocumentCloner.prototype.createCustomElementClone = function (node) {
            var clone = document.createElement('html2canvascustomelement');
            copyCSSStyles(node.style, clone);
            return clone;
        };
        DocumentCloner.prototype.createStyleClone = function (node) {
            try {
                var sheet = node.sheet;
                if (sheet && sheet.cssRules) {
                    var css = [].slice.call(sheet.cssRules, 0).reduce(function (css, rule) {
                        if (rule && typeof rule.cssText === 'string') {
                            return css + rule.cssText;
                        }
                        return css;
                    }, '');
                    var style = node.cloneNode(false);
                    style.textContent = css;
                    return style;
                }
            }
            catch (e) {
                // accessing node.sheet.cssRules throws a DOMException
                this.context.logger.error('Unable to access cssRules property', e);
                if (e.name !== 'SecurityError') {
                    throw e;
                }
            }
            return node.cloneNode(false);
        };
        DocumentCloner.prototype.createCanvasClone = function (canvas) {
            var _a;
            if (this.options.inlineImages && canvas.ownerDocument) {
                var img = canvas.ownerDocument.createElement('img');
                try {
                    img.src = canvas.toDataURL();
                    return img;
                }
                catch (e) {
                    this.context.logger.info("Unable to inline canvas contents, canvas is tainted", canvas);
                }
            }
            var clonedCanvas = canvas.cloneNode(false);
            try {
                clonedCanvas.width = canvas.width;
                clonedCanvas.height = canvas.height;
                var ctx = canvas.getContext('2d');
                var clonedCtx = clonedCanvas.getContext('2d');
                if (clonedCtx) {
                    if (!this.options.allowTaint && ctx) {
                        clonedCtx.putImageData(ctx.getImageData(0, 0, canvas.width, canvas.height), 0, 0);
                    }
                    else {
                        var gl = (_a = canvas.getContext('webgl2')) !== null && _a !== void 0 ? _a : canvas.getContext('webgl');
                        if (gl) {
                            var attribs = gl.getContextAttributes();
                            if ((attribs === null || attribs === void 0 ? void 0 : attribs.preserveDrawingBuffer) === false) {
                                this.context.logger.warn('Unable to clone WebGL context as it has preserveDrawingBuffer=false', canvas);
                            }
                        }
                        clonedCtx.drawImage(canvas, 0, 0);
                    }
                }
                return clonedCanvas;
            }
            catch (e) {
                this.context.logger.info("Unable to clone canvas as it is tainted", canvas);
            }
            return clonedCanvas;
        };
        DocumentCloner.prototype.createVideoClone = function (video) {
            var canvas = video.ownerDocument.createElement('canvas');
            canvas.width = video.offsetWidth;
            canvas.height = video.offsetHeight;
            var ctx = canvas.getContext('2d');
            try {
                if (ctx) {
                    ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
                    if (!this.options.allowTaint) {
                        ctx.getImageData(0, 0, canvas.width, canvas.height);
                    }
                }
                return canvas;
            }
            catch (e) {
                this.context.logger.info("Unable to clone video as it is tainted", video);
            }
            var blankCanvas = video.ownerDocument.createElement('canvas');
            blankCanvas.width = video.offsetWidth;
            blankCanvas.height = video.offsetHeight;
            return blankCanvas;
        };
        DocumentCloner.prototype.appendChildNode = function (clone, child, copyStyles) {
            if (!isElementNode(child) ||
                (!isScriptElement(child) &&
                    !child.hasAttribute(IGNORE_ATTRIBUTE) &&
                    (typeof this.options.ignoreElements !== 'function' || !this.options.ignoreElements(child)))) {
                if (!this.options.copyStyles || !isElementNode(child) || !isStyleElement(child)) {
                    clone.appendChild(this.cloneNode(child, copyStyles));
                }
            }
        };
        DocumentCloner.prototype.cloneChildNodes = function (node, clone, copyStyles) {
            var _this = this;
            for (var child = node.shadowRoot ? node.shadowRoot.firstChild : node.firstChild; child; child = child.nextSibling) {
                if (isElementNode(child) && isSlotElement(child) && typeof child.assignedNodes === 'function') {
                    var assignedNodes = child.assignedNodes();
                    if (assignedNodes.length) {
                        assignedNodes.forEach(function (assignedNode) { return _this.appendChildNode(clone, assignedNode, copyStyles); });
                    }
                }
                else {
                    this.appendChildNode(clone, child, copyStyles);
                }
            }
        };
        DocumentCloner.prototype.cloneNode = function (node, copyStyles) {
            if (isTextNode(node)) {
                return document.createTextNode(node.data);
            }
            if (!node.ownerDocument) {
                return node.cloneNode(false);
            }
            var window = node.ownerDocument.defaultView;
            if (window && isElementNode(node) && (isHTMLElementNode(node) || isSVGElementNode(node))) {
                var clone = this.createElementClone(node);
                clone.style.transitionProperty = 'none';
                var style = window.getComputedStyle(node);
                var styleBefore = window.getComputedStyle(node, ':before');
                var styleAfter = window.getComputedStyle(node, ':after');
                if (this.referenceElement === node && isHTMLElementNode(clone)) {
                    this.clonedReferenceElement = clone;
                }
                if (isBodyElement(clone)) {
                    createPseudoHideStyles(clone);
                }
                var counters = this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
                var before = this.resolvePseudoContent(node, clone, styleBefore, PseudoElementType.BEFORE);
                if (isCustomElement(node)) {
                    copyStyles = true;
                }
                if (!isVideoElement(node)) {
                    this.cloneChildNodes(node, clone, copyStyles);
                }
                if (before) {
                    clone.insertBefore(before, clone.firstChild);
                }
                var after = this.resolvePseudoContent(node, clone, styleAfter, PseudoElementType.AFTER);
                if (after) {
                    clone.appendChild(after);
                }
                this.counters.pop(counters);
                if ((style && (this.options.copyStyles || isSVGElementNode(node)) && !isIFrameElement(node)) ||
                    copyStyles) {
                    copyCSSStyles(style, clone);
                }
                if (node.scrollTop !== 0 || node.scrollLeft !== 0) {
                    this.scrolledElements.push([clone, node.scrollLeft, node.scrollTop]);
                }
                if ((isTextareaElement(node) || isSelectElement(node)) &&
                    (isTextareaElement(clone) || isSelectElement(clone))) {
                    clone.value = node.value;
                }
                return clone;
            }
            return node.cloneNode(false);
        };
        DocumentCloner.prototype.resolvePseudoContent = function (node, clone, style, pseudoElt) {
            var _this = this;
            if (!style) {
                return;
            }
            var value = style.content;
            var document = clone.ownerDocument;
            if (!document || !value || value === 'none' || value === '-moz-alt-content' || style.display === 'none') {
                return;
            }
            this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
            var declaration = new CSSParsedPseudoDeclaration(this.context, style);
            var anonymousReplacedElement = document.createElement('html2canvaspseudoelement');
            copyCSSStyles(style, anonymousReplacedElement);
            declaration.content.forEach(function (token) {
                if (token.type === 0 /* STRING_TOKEN */) {
                    anonymousReplacedElement.appendChild(document.createTextNode(token.value));
                }
                else if (token.type === 22 /* URL_TOKEN */) {
                    var img = document.createElement('img');
                    img.src = token.value;
                    img.style.opacity = '1';
                    anonymousReplacedElement.appendChild(img);
                }
                else if (token.type === 18 /* FUNCTION */) {
                    if (token.name === 'attr') {
                        var attr = token.values.filter(isIdentToken);
                        if (attr.length) {
                            anonymousReplacedElement.appendChild(document.createTextNode(node.getAttribute(attr[0].value) || ''));
                        }
                    }
                    else if (token.name === 'counter') {
                        var _a = token.values.filter(nonFunctionArgSeparator), counter = _a[0], counterStyle = _a[1];
                        if (counter && isIdentToken(counter)) {
                            var counterState = _this.counters.getCounterValue(counter.value);
                            var counterType = counterStyle && isIdentToken(counterStyle)
                                ? listStyleType.parse(_this.context, counterStyle.value)
                                : 3 /* DECIMAL */;
                            anonymousReplacedElement.appendChild(document.createTextNode(createCounterText(counterState, counterType, false)));
                        }
                    }
                    else if (token.name === 'counters') {
                        var _b = token.values.filter(nonFunctionArgSeparator), counter = _b[0], delim = _b[1], counterStyle = _b[2];
                        if (counter && isIdentToken(counter)) {
                            var counterStates = _this.counters.getCounterValues(counter.value);
                            var counterType_1 = counterStyle && isIdentToken(counterStyle)
                                ? listStyleType.parse(_this.context, counterStyle.value)
                                : 3 /* DECIMAL */;
                            var separator = delim && delim.type === 0 /* STRING_TOKEN */ ? delim.value : '';
                            var text = counterStates
                                .map(function (value) { return createCounterText(value, counterType_1, false); })
                                .join(separator);
                            anonymousReplacedElement.appendChild(document.createTextNode(text));
                        }
                    }
                    else ;
                }
                else if (token.type === 20 /* IDENT_TOKEN */) {
                    switch (token.value) {
                        case 'open-quote':
                            anonymousReplacedElement.appendChild(document.createTextNode(getQuote(declaration.quotes, _this.quoteDepth++, true)));
                            break;
                        case 'close-quote':
                            anonymousReplacedElement.appendChild(document.createTextNode(getQuote(declaration.quotes, --_this.quoteDepth, false)));
                            break;
                        default:
                            // safari doesn't parse string tokens correctly because of lack of quotes
                            anonymousReplacedElement.appendChild(document.createTextNode(token.value));
                    }
                }
            });
            anonymousReplacedElement.className = PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
            var newClassName = pseudoElt === PseudoElementType.BEFORE
                ? " " + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE
                : " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
            if (isSVGElementNode(clone)) {
                clone.className.baseValue += newClassName;
            }
            else {
                clone.className += newClassName;
            }
            return anonymousReplacedElement;
        };
        DocumentCloner.destroy = function (container) {
            if (container.parentNode) {
                container.parentNode.removeChild(container);
                return true;
            }
            return false;
        };
        return DocumentCloner;
    }());
    var PseudoElementType;
    (function (PseudoElementType) {
        PseudoElementType[PseudoElementType["BEFORE"] = 0] = "BEFORE";
        PseudoElementType[PseudoElementType["AFTER"] = 1] = "AFTER";
    })(PseudoElementType || (PseudoElementType = {}));
    var createIFrameContainer = function (ownerDocument, bounds) {
        var cloneIframeContainer = ownerDocument.createElement('iframe');
        cloneIframeContainer.className = 'html2canvas-container';
        cloneIframeContainer.style.visibility = 'hidden';
        cloneIframeContainer.style.position = 'fixed';
        cloneIframeContainer.style.left = '-10000px';
        cloneIframeContainer.style.top = '0px';
        cloneIframeContainer.style.border = '0';
        cloneIframeContainer.width = bounds.width.toString();
        cloneIframeContainer.height = bounds.height.toString();
        cloneIframeContainer.scrolling = 'no'; // ios won't scroll without it
        cloneIframeContainer.setAttribute(IGNORE_ATTRIBUTE, 'true');
        ownerDocument.body.appendChild(cloneIframeContainer);
        return cloneIframeContainer;
    };
    var imageReady = function (img) {
        return new Promise(function (resolve) {
            if (img.complete) {
                resolve();
                return;
            }
            if (!img.src) {
                resolve();
                return;
            }
            img.onload = resolve;
            img.onerror = resolve;
        });
    };
    var imagesReady = function (document) {
        return Promise.all([].slice.call(document.images, 0).map(imageReady));
    };
    var iframeLoader = function (iframe) {
        return new Promise(function (resolve, reject) {
            var cloneWindow = iframe.contentWindow;
            if (!cloneWindow) {
                return reject("No window assigned for iframe");
            }
            var documentClone = cloneWindow.document;
            cloneWindow.onload = iframe.onload = function () {
                cloneWindow.onload = iframe.onload = null;
                var interval = setInterval(function () {
                    if (documentClone.body.childNodes.length > 0 && documentClone.readyState === 'complete') {
                        clearInterval(interval);
                        resolve(iframe);
                    }
                }, 50);
            };
        });
    };
    var ignoredStyleProperties = [
        'all',
        'd',
        'content' // Safari shows pseudoelements if content is set
    ];
    var copyCSSStyles = function (style, target) {
        // Edge does not provide value for cssText
        for (var i = style.length - 1; i >= 0; i--) {
            var property = style.item(i);
            if (ignoredStyleProperties.indexOf(property) === -1) {
                target.style.setProperty(property, style.getPropertyValue(property));
            }
        }
        return target;
    };
    var serializeDoctype = function (doctype) {
        var str = '';
        if (doctype) {
            str += '<!DOCTYPE ';
            if (doctype.name) {
                str += doctype.name;
            }
            if (doctype.internalSubset) {
                str += doctype.internalSubset;
            }
            if (doctype.publicId) {
                str += "\"" + doctype.publicId + "\"";
            }
            if (doctype.systemId) {
                str += "\"" + doctype.systemId + "\"";
            }
            str += '>';
        }
        return str;
    };
    var restoreOwnerScroll = function (ownerDocument, x, y) {
        if (ownerDocument &&
            ownerDocument.defaultView &&
            (x !== ownerDocument.defaultView.pageXOffset || y !== ownerDocument.defaultView.pageYOffset)) {
            ownerDocument.defaultView.scrollTo(x, y);
        }
    };
    var restoreNodeScroll = function (_a) {
        var element = _a[0], x = _a[1], y = _a[2];
        element.scrollLeft = x;
        element.scrollTop = y;
    };
    var PSEUDO_BEFORE = ':before';
    var PSEUDO_AFTER = ':after';
    var PSEUDO_HIDE_ELEMENT_CLASS_BEFORE = '___html2canvas___pseudoelement_before';
    var PSEUDO_HIDE_ELEMENT_CLASS_AFTER = '___html2canvas___pseudoelement_after';
    var PSEUDO_HIDE_ELEMENT_STYLE = "{\n    content: \"\" !important;\n    display: none !important;\n}";
    var createPseudoHideStyles = function (body) {
        createStyles(body, "." + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + PSEUDO_BEFORE + PSEUDO_HIDE_ELEMENT_STYLE + "\n         ." + PSEUDO_HIDE_ELEMENT_CLASS_AFTER + PSEUDO_AFTER + PSEUDO_HIDE_ELEMENT_STYLE);
    };
    var createStyles = function (body, styles) {
        var document = body.ownerDocument;
        if (document) {
            var style = document.createElement('style');
            style.textContent = styles;
            body.appendChild(style);
        }
    };

    var CacheStorage = /** @class */ (function () {
        function CacheStorage() {
        }
        CacheStorage.getOrigin = function (url) {
            var link = CacheStorage._link;
            if (!link) {
                return 'about:blank';
            }
            link.href = url;
            link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/
            return link.protocol + link.hostname + link.port;
        };
        CacheStorage.isSameOrigin = function (src) {
            return CacheStorage.getOrigin(src) === CacheStorage._origin;
        };
        CacheStorage.setContext = function (window) {
            CacheStorage._link = window.document.createElement('a');
            CacheStorage._origin = CacheStorage.getOrigin(window.location.href);
        };
        CacheStorage._origin = 'about:blank';
        return CacheStorage;
    }());
    var Cache = /** @class */ (function () {
        function Cache(context, _options) {
            this.context = context;
            this._options = _options;
            // eslint-disable-next-line @typescript-eslint/no-explicit-any
            this._cache = {};
        }
        Cache.prototype.addImage = function (src) {
            var result = Promise.resolve();
            if (this.has(src)) {
                return result;
            }
            if (isBlobImage(src) || isRenderable(src)) {
                (this._cache[src] = this.loadImage(src)).catch(function () {
                    // prevent unhandled rejection
                });
                return result;
            }
            return result;
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Cache.prototype.match = function (src) {
            return this._cache[src];
        };
        Cache.prototype.loadImage = function (key) {
            return __awaiter(this, void 0, void 0, function () {
                var isSameOrigin, useCORS, useProxy, src;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            isSameOrigin = CacheStorage.isSameOrigin(key);
                            useCORS = !isInlineImage(key) && this._options.useCORS === true && FEATURES.SUPPORT_CORS_IMAGES && !isSameOrigin;
                            useProxy = !isInlineImage(key) &&
                                !isSameOrigin &&
                                !isBlobImage(key) &&
                                typeof this._options.proxy === 'string' &&
                                FEATURES.SUPPORT_CORS_XHR &&
                                !useCORS;
                            if (!isSameOrigin &&
                                this._options.allowTaint === false &&
                                !isInlineImage(key) &&
                                !isBlobImage(key) &&
                                !useProxy &&
                                !useCORS) {
                                return [2 /*return*/];
                            }
                            src = key;
                            if (!useProxy) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.proxy(src)];
                        case 1:
                            src = _a.sent();
                            _a.label = 2;
                        case 2:
                            this.context.logger.debug("Added image " + key.substring(0, 256));
                            return [4 /*yield*/, new Promise(function (resolve, reject) {
                                    var img = new Image();
                                    img.onload = function () { return resolve(img); };
                                    img.onerror = reject;
                                    //ios safari 10.3 taints canvas with data urls unless crossOrigin is set to anonymous
                                    if (isInlineBase64Image(src) || useCORS) {
                                        img.crossOrigin = 'anonymous';
                                    }
                                    img.src = src;
                                    if (img.complete === true) {
                                        // Inline XML images may fail to parse, throwing an Error later on
                                        setTimeout(function () { return resolve(img); }, 500);
                                    }
                                    if (_this._options.imageTimeout > 0) {
                                        setTimeout(function () { return reject("Timed out (" + _this._options.imageTimeout + "ms) loading image"); }, _this._options.imageTimeout);
                                    }
                                })];
                        case 3: return [2 /*return*/, _a.sent()];
                    }
                });
            });
        };
        Cache.prototype.has = function (key) {
            return typeof this._cache[key] !== 'undefined';
        };
        Cache.prototype.keys = function () {
            return Promise.resolve(Object.keys(this._cache));
        };
        Cache.prototype.proxy = function (src) {
            var _this = this;
            var proxy = this._options.proxy;
            if (!proxy) {
                throw new Error('No proxy defined');
            }
            var key = src.substring(0, 256);
            return new Promise(function (resolve, reject) {
                var responseType = FEATURES.SUPPORT_RESPONSE_TYPE ? 'blob' : 'text';
                var xhr = new XMLHttpRequest();
                xhr.onload = function () {
                    if (xhr.status === 200) {
                        if (responseType === 'text') {
                            resolve(xhr.response);
                        }
                        else {
                            var reader_1 = new FileReader();
                            reader_1.addEventListener('load', function () { return resolve(reader_1.result); }, false);
                            reader_1.addEventListener('error', function (e) { return reject(e); }, false);
                            reader_1.readAsDataURL(xhr.response);
                        }
                    }
                    else {
                        reject("Failed to proxy resource " + key + " with status code " + xhr.status);
                    }
                };
                xhr.onerror = reject;
                var queryString = proxy.indexOf('?') > -1 ? '&' : '?';
                xhr.open('GET', "" + proxy + queryString + "url=" + encodeURIComponent(src) + "&responseType=" + responseType);
                if (responseType !== 'text' && xhr instanceof XMLHttpRequest) {
                    xhr.responseType = responseType;
                }
                if (_this._options.imageTimeout) {
                    var timeout_1 = _this._options.imageTimeout;
                    xhr.timeout = timeout_1;
                    xhr.ontimeout = function () { return reject("Timed out (" + timeout_1 + "ms) proxying " + key); };
                }
                xhr.send();
            });
        };
        return Cache;
    }());
    var INLINE_SVG = /^data:image\/svg\+xml/i;
    var INLINE_BASE64 = /^data:image\/.*;base64,/i;
    var INLINE_IMG = /^data:image\/.*/i;
    var isRenderable = function (src) { return FEATURES.SUPPORT_SVG_DRAWING || !isSVG(src); };
    var isInlineImage = function (src) { return INLINE_IMG.test(src); };
    var isInlineBase64Image = function (src) { return INLINE_BASE64.test(src); };
    var isBlobImage = function (src) { return src.substr(0, 4) === 'blob'; };
    var isSVG = function (src) { return src.substr(-3).toLowerCase() === 'svg' || INLINE_SVG.test(src); };

    var Vector = /** @class */ (function () {
        function Vector(x, y) {
            this.type = 0 /* VECTOR */;
            this.x = x;
            this.y = y;
        }
        Vector.prototype.add = function (deltaX, deltaY) {
            return new Vector(this.x + deltaX, this.y + deltaY);
        };
        return Vector;
    }());

    var lerp = function (a, b, t) {
        return new Vector(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);
    };
    var BezierCurve = /** @class */ (function () {
        function BezierCurve(start, startControl, endControl, end) {
            this.type = 1 /* BEZIER_CURVE */;
            this.start = start;
            this.startControl = startControl;
            this.endControl = endControl;
            this.end = end;
        }
        BezierCurve.prototype.subdivide = function (t, firstHalf) {
            var ab = lerp(this.start, this.startControl, t);
            var bc = lerp(this.startControl, this.endControl, t);
            var cd = lerp(this.endControl, this.end, t);
            var abbc = lerp(ab, bc, t);
            var bccd = lerp(bc, cd, t);
            var dest = lerp(abbc, bccd, t);
            return firstHalf ? new BezierCurve(this.start, ab, abbc, dest) : new BezierCurve(dest, bccd, cd, this.end);
        };
        BezierCurve.prototype.add = function (deltaX, deltaY) {
            return new BezierCurve(this.start.add(deltaX, deltaY), this.startControl.add(deltaX, deltaY), this.endControl.add(deltaX, deltaY), this.end.add(deltaX, deltaY));
        };
        BezierCurve.prototype.reverse = function () {
            return new BezierCurve(this.end, this.endControl, this.startControl, this.start);
        };
        return BezierCurve;
    }());
    var isBezierCurve = function (path) { return path.type === 1 /* BEZIER_CURVE */; };

    var BoundCurves = /** @class */ (function () {
        function BoundCurves(element) {
            var styles = element.styles;
            var bounds = element.bounds;
            var _a = getAbsoluteValueForTuple(styles.borderTopLeftRadius, bounds.width, bounds.height), tlh = _a[0], tlv = _a[1];
            var _b = getAbsoluteValueForTuple(styles.borderTopRightRadius, bounds.width, bounds.height), trh = _b[0], trv = _b[1];
            var _c = getAbsoluteValueForTuple(styles.borderBottomRightRadius, bounds.width, bounds.height), brh = _c[0], brv = _c[1];
            var _d = getAbsoluteValueForTuple(styles.borderBottomLeftRadius, bounds.width, bounds.height), blh = _d[0], blv = _d[1];
            var factors = [];
            factors.push((tlh + trh) / bounds.width);
            factors.push((blh + brh) / bounds.width);
            factors.push((tlv + blv) / bounds.height);
            factors.push((trv + brv) / bounds.height);
            var maxFactor = Math.max.apply(Math, factors);
            if (maxFactor > 1) {
                tlh /= maxFactor;
                tlv /= maxFactor;
                trh /= maxFactor;
                trv /= maxFactor;
                brh /= maxFactor;
                brv /= maxFactor;
                blh /= maxFactor;
                blv /= maxFactor;
            }
            var topWidth = bounds.width - trh;
            var rightHeight = bounds.height - brv;
            var bottomWidth = bounds.width - brh;
            var leftHeight = bounds.height - blv;
            var borderTopWidth = styles.borderTopWidth;
            var borderRightWidth = styles.borderRightWidth;
            var borderBottomWidth = styles.borderBottomWidth;
            var borderLeftWidth = styles.borderLeftWidth;
            var paddingTop = getAbsoluteValue(styles.paddingTop, element.bounds.width);
            var paddingRight = getAbsoluteValue(styles.paddingRight, element.bounds.width);
            var paddingBottom = getAbsoluteValue(styles.paddingBottom, element.bounds.width);
            var paddingLeft = getAbsoluteValue(styles.paddingLeft, element.bounds.width);
            this.topLeftBorderDoubleOuterBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3, tlh - borderLeftWidth / 3, tlv - borderTopWidth / 3, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 3, bounds.top + borderTopWidth / 3);
            this.topRightBorderDoubleOuterBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 3, trh - borderRightWidth / 3, trv - borderTopWidth / 3, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + borderTopWidth / 3);
            this.bottomRightBorderDoubleOuterBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 3, brv - borderBottomWidth / 3, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
            this.bottomLeftBorderDoubleOuterBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 3, bounds.top + leftHeight, blh - borderLeftWidth / 3, blv - borderBottomWidth / 3, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 3, bounds.top + bounds.height - borderBottomWidth / 3);
            this.topLeftBorderDoubleInnerBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3, tlh - (borderLeftWidth * 2) / 3, tlv - (borderTopWidth * 2) / 3, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
            this.topRightBorderDoubleInnerBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + (borderTopWidth * 2) / 3, trh - (borderRightWidth * 2) / 3, trv - (borderTopWidth * 2) / 3, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + (borderTopWidth * 2) / 3);
            this.bottomRightBorderDoubleInnerBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - (borderRightWidth * 2) / 3, brv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
            this.bottomLeftBorderDoubleInnerBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + leftHeight, blh - (borderLeftWidth * 2) / 3, blv - (borderBottomWidth * 2) / 3, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + (borderLeftWidth * 2) / 3, bounds.top + bounds.height - (borderBottomWidth * 2) / 3);
            this.topLeftBorderStroke =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2, tlh - borderLeftWidth / 2, tlv - borderTopWidth / 2, CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 2, bounds.top + borderTopWidth / 2);
            this.topRightBorderStroke =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top + borderTopWidth / 2, trh - borderRightWidth / 2, trv - borderTopWidth / 2, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + borderTopWidth / 2);
            this.bottomRightBorderStroke =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh - borderRightWidth / 2, brv - borderBottomWidth / 2, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
            this.bottomLeftBorderStroke =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth / 2, bounds.top + leftHeight, blh - borderLeftWidth / 2, blv - borderBottomWidth / 2, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth / 2, bounds.top + bounds.height - borderBottomWidth / 2);
            this.topLeftBorderBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left, bounds.top, tlh, tlv, CORNER.TOP_LEFT)
                    : new Vector(bounds.left, bounds.top);
            this.topRightBorderBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + topWidth, bounds.top, trh, trv, CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width, bounds.top);
            this.bottomRightBorderBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh, brv, CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width, bounds.top + bounds.height);
            this.bottomLeftBorderBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left, bounds.top + leftHeight, blh, blv, CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left, bounds.top + bounds.height);
            this.topLeftPaddingBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + borderTopWidth, Math.max(0, tlh - borderLeftWidth), Math.max(0, tlv - borderTopWidth), CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth, bounds.top + borderTopWidth);
            this.topRightPaddingBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width - borderRightWidth), bounds.top + borderTopWidth, topWidth > bounds.width + borderRightWidth ? 0 : Math.max(0, trh - borderRightWidth), Math.max(0, trv - borderTopWidth), CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + borderTopWidth);
            this.bottomRightPaddingBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - borderLeftWidth), bounds.top + Math.min(rightHeight, bounds.height - borderBottomWidth), Math.max(0, brh - borderRightWidth), Math.max(0, brv - borderBottomWidth), CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - borderRightWidth, bounds.top + bounds.height - borderBottomWidth);
            this.bottomLeftPaddingBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth, bounds.top + Math.min(leftHeight, bounds.height - borderBottomWidth), Math.max(0, blh - borderLeftWidth), Math.max(0, blv - borderBottomWidth), CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth, bounds.top + bounds.height - borderBottomWidth);
            this.topLeftContentBox =
                tlh > 0 || tlv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop, Math.max(0, tlh - (borderLeftWidth + paddingLeft)), Math.max(0, tlv - (borderTopWidth + paddingTop)), CORNER.TOP_LEFT)
                    : new Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + borderTopWidth + paddingTop);
            this.topRightContentBox =
                trh > 0 || trv > 0
                    ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth + paddingLeft), bounds.top + borderTopWidth + paddingTop, topWidth > bounds.width + borderLeftWidth + paddingLeft ? 0 : trh - borderLeftWidth + paddingLeft, trv - (borderTopWidth + paddingTop), CORNER.TOP_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + borderTopWidth + paddingTop);
            this.bottomRightContentBox =
                brh > 0 || brv > 0
                    ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - (borderLeftWidth + paddingLeft)), bounds.top + Math.min(rightHeight, bounds.height + borderTopWidth + paddingTop), Math.max(0, brh - (borderRightWidth + paddingRight)), brv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_RIGHT)
                    : new Vector(bounds.left + bounds.width - (borderRightWidth + paddingRight), bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
            this.bottomLeftContentBox =
                blh > 0 || blv > 0
                    ? getCurvePoints(bounds.left + borderLeftWidth + paddingLeft, bounds.top + leftHeight, Math.max(0, blh - (borderLeftWidth + paddingLeft)), blv - (borderBottomWidth + paddingBottom), CORNER.BOTTOM_LEFT)
                    : new Vector(bounds.left + borderLeftWidth + paddingLeft, bounds.top + bounds.height - (borderBottomWidth + paddingBottom));
        }
        return BoundCurves;
    }());
    var CORNER;
    (function (CORNER) {
        CORNER[CORNER["TOP_LEFT"] = 0] = "TOP_LEFT";
        CORNER[CORNER["TOP_RIGHT"] = 1] = "TOP_RIGHT";
        CORNER[CORNER["BOTTOM_RIGHT"] = 2] = "BOTTOM_RIGHT";
        CORNER[CORNER["BOTTOM_LEFT"] = 3] = "BOTTOM_LEFT";
    })(CORNER || (CORNER = {}));
    var getCurvePoints = function (x, y, r1, r2, position) {
        var kappa = 4 * ((Math.sqrt(2) - 1) / 3);
        var ox = r1 * kappa; // control point offset horizontal
        var oy = r2 * kappa; // control point offset vertical
        var xm = x + r1; // x-middle
        var ym = y + r2; // y-middle
        switch (position) {
            case CORNER.TOP_LEFT:
                return new BezierCurve(new Vector(x, ym), new Vector(x, ym - oy), new Vector(xm - ox, y), new Vector(xm, y));
            case CORNER.TOP_RIGHT:
                return new BezierCurve(new Vector(x, y), new Vector(x + ox, y), new Vector(xm, ym - oy), new Vector(xm, ym));
            case CORNER.BOTTOM_RIGHT:
                return new BezierCurve(new Vector(xm, y), new Vector(xm, y + oy), new Vector(x + ox, ym), new Vector(x, ym));
            case CORNER.BOTTOM_LEFT:
            default:
                return new BezierCurve(new Vector(xm, ym), new Vector(xm - ox, ym), new Vector(x, y + oy), new Vector(x, y));
        }
    };
    var calculateBorderBoxPath = function (curves) {
        return [curves.topLeftBorderBox, curves.topRightBorderBox, curves.bottomRightBorderBox, curves.bottomLeftBorderBox];
    };
    var calculateContentBoxPath = function (curves) {
        return [
            curves.topLeftContentBox,
            curves.topRightContentBox,
            curves.bottomRightContentBox,
            curves.bottomLeftContentBox
        ];
    };
    var calculatePaddingBoxPath = function (curves) {
        return [
            curves.topLeftPaddingBox,
            curves.topRightPaddingBox,
            curves.bottomRightPaddingBox,
            curves.bottomLeftPaddingBox
        ];
    };

    var TransformEffect = /** @class */ (function () {
        function TransformEffect(offsetX, offsetY, matrix) {
            this.offsetX = offsetX;
            this.offsetY = offsetY;
            this.matrix = matrix;
            this.type = 0 /* TRANSFORM */;
            this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
        }
        return TransformEffect;
    }());
    var ClipEffect = /** @class */ (function () {
        function ClipEffect(path, target) {
            this.path = path;
            this.target = target;
            this.type = 1 /* CLIP */;
        }
        return ClipEffect;
    }());
    var OpacityEffect = /** @class */ (function () {
        function OpacityEffect(opacity) {
            this.opacity = opacity;
            this.type = 2 /* OPACITY */;
            this.target = 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */;
        }
        return OpacityEffect;
    }());
    var isTransformEffect = function (effect) {
        return effect.type === 0 /* TRANSFORM */;
    };
    var isClipEffect = function (effect) { return effect.type === 1 /* CLIP */; };
    var isOpacityEffect = function (effect) { return effect.type === 2 /* OPACITY */; };

    var equalPath = function (a, b) {
        if (a.length === b.length) {
            return a.some(function (v, i) { return v === b[i]; });
        }
        return false;
    };
    var transformPath = function (path, deltaX, deltaY, deltaW, deltaH) {
        return path.map(function (point, index) {
            switch (index) {
                case 0:
                    return point.add(deltaX, deltaY);
                case 1:
                    return point.add(deltaX + deltaW, deltaY);
                case 2:
                    return point.add(deltaX + deltaW, deltaY + deltaH);
                case 3:
                    return point.add(deltaX, deltaY + deltaH);
            }
            return point;
        });
    };

    var StackingContext = /** @class */ (function () {
        function StackingContext(container) {
            this.element = container;
            this.inlineLevel = [];
            this.nonInlineLevel = [];
            this.negativeZIndex = [];
            this.zeroOrAutoZIndexOrTransformedOrOpacity = [];
            this.positiveZIndex = [];
            this.nonPositionedFloats = [];
            this.nonPositionedInlineLevel = [];
        }
        return StackingContext;
    }());
    var ElementPaint = /** @class */ (function () {
        function ElementPaint(container, parent) {
            this.container = container;
            this.parent = parent;
            this.effects = [];
            this.curves = new BoundCurves(this.container);
            if (this.container.styles.opacity < 1) {
                this.effects.push(new OpacityEffect(this.container.styles.opacity));
            }
            if (this.container.styles.transform !== null) {
                var offsetX = this.container.bounds.left + this.container.styles.transformOrigin[0].number;
                var offsetY = this.container.bounds.top + this.container.styles.transformOrigin[1].number;
                var matrix = this.container.styles.transform;
                this.effects.push(new TransformEffect(offsetX, offsetY, matrix));
            }
            if (this.container.styles.overflowX !== 0 /* VISIBLE */) {
                var borderBox = calculateBorderBoxPath(this.curves);
                var paddingBox = calculatePaddingBoxPath(this.curves);
                if (equalPath(borderBox, paddingBox)) {
                    this.effects.push(new ClipEffect(borderBox, 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */));
                }
                else {
                    this.effects.push(new ClipEffect(borderBox, 2 /* BACKGROUND_BORDERS */));
                    this.effects.push(new ClipEffect(paddingBox, 4 /* CONTENT */));
                }
            }
        }
        ElementPaint.prototype.getEffects = function (target) {
            var inFlow = [2 /* ABSOLUTE */, 3 /* FIXED */].indexOf(this.container.styles.position) === -1;
            var parent = this.parent;
            var effects = this.effects.slice(0);
            while (parent) {
                var croplessEffects = parent.effects.filter(function (effect) { return !isClipEffect(effect); });
                if (inFlow || parent.container.styles.position !== 0 /* STATIC */ || !parent.parent) {
                    effects.unshift.apply(effects, croplessEffects);
                    inFlow = [2 /* ABSOLUTE */, 3 /* FIXED */].indexOf(parent.container.styles.position) === -1;
                    if (parent.container.styles.overflowX !== 0 /* VISIBLE */) {
                        var borderBox = calculateBorderBoxPath(parent.curves);
                        var paddingBox = calculatePaddingBoxPath(parent.curves);
                        if (!equalPath(borderBox, paddingBox)) {
                            effects.unshift(new ClipEffect(paddingBox, 2 /* BACKGROUND_BORDERS */ | 4 /* CONTENT */));
                        }
                    }
                }
                else {
                    effects.unshift.apply(effects, croplessEffects);
                }
                parent = parent.parent;
            }
            return effects.filter(function (effect) { return contains(effect.target, target); });
        };
        return ElementPaint;
    }());
    var parseStackTree = function (parent, stackingContext, realStackingContext, listItems) {
        parent.container.elements.forEach(function (child) {
            var treatAsRealStackingContext = contains(child.flags, 4 /* CREATES_REAL_STACKING_CONTEXT */);
            var createsStackingContext = contains(child.flags, 2 /* CREATES_STACKING_CONTEXT */);
            var paintContainer = new ElementPaint(child, parent);
            if (contains(child.styles.display, 2048 /* LIST_ITEM */)) {
                listItems.push(paintContainer);
            }
            var listOwnerItems = contains(child.flags, 8 /* IS_LIST_OWNER */) ? [] : listItems;
            if (treatAsRealStackingContext || createsStackingContext) {
                var parentStack = treatAsRealStackingContext || child.styles.isPositioned() ? realStackingContext : stackingContext;
                var stack = new StackingContext(paintContainer);
                if (child.styles.isPositioned() || child.styles.opacity < 1 || child.styles.isTransformed()) {
                    var order_1 = child.styles.zIndex.order;
                    if (order_1 < 0) {
                        var index_1 = 0;
                        parentStack.negativeZIndex.some(function (current, i) {
                            if (order_1 > current.element.container.styles.zIndex.order) {
                                index_1 = i;
                                return false;
                            }
                            else if (index_1 > 0) {
                                return true;
                            }
                            return false;
                        });
                        parentStack.negativeZIndex.splice(index_1, 0, stack);
                    }
                    else if (order_1 > 0) {
                        var index_2 = 0;
                        parentStack.positiveZIndex.some(function (current, i) {
                            if (order_1 >= current.element.container.styles.zIndex.order) {
                                index_2 = i + 1;
                                return false;
                            }
                            else if (index_2 > 0) {
                                return true;
                            }
                            return false;
                        });
                        parentStack.positiveZIndex.splice(index_2, 0, stack);
                    }
                    else {
                        parentStack.zeroOrAutoZIndexOrTransformedOrOpacity.push(stack);
                    }
                }
                else {
                    if (child.styles.isFloating()) {
                        parentStack.nonPositionedFloats.push(stack);
                    }
                    else {
                        parentStack.nonPositionedInlineLevel.push(stack);
                    }
                }
                parseStackTree(paintContainer, stack, treatAsRealStackingContext ? stack : realStackingContext, listOwnerItems);
            }
            else {
                if (child.styles.isInlineLevel()) {
                    stackingContext.inlineLevel.push(paintContainer);
                }
                else {
                    stackingContext.nonInlineLevel.push(paintContainer);
                }
                parseStackTree(paintContainer, stackingContext, realStackingContext, listOwnerItems);
            }
            if (contains(child.flags, 8 /* IS_LIST_OWNER */)) {
                processListItems(child, listOwnerItems);
            }
        });
    };
    var processListItems = function (owner, elements) {
        var numbering = owner instanceof OLElementContainer ? owner.start : 1;
        var reversed = owner instanceof OLElementContainer ? owner.reversed : false;
        for (var i = 0; i < elements.length; i++) {
            var item = elements[i];
            if (item.container instanceof LIElementContainer &&
                typeof item.container.value === 'number' &&
                item.container.value !== 0) {
                numbering = item.container.value;
            }
            item.listValue = createCounterText(numbering, item.container.styles.listStyleType, true);
            numbering += reversed ? -1 : 1;
        }
    };
    var parseStackingContexts = function (container) {
        var paintContainer = new ElementPaint(container, null);
        var root = new StackingContext(paintContainer);
        var listItems = [];
        parseStackTree(paintContainer, root, root, listItems);
        processListItems(paintContainer.container, listItems);
        return root;
    };

    var parsePathForBorder = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftPaddingBox, curves.topRightBorderBox, curves.topRightPaddingBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderBox, curves.topRightPaddingBox, curves.bottomRightBorderBox, curves.bottomRightPaddingBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftPaddingBox, curves.topLeftBorderBox, curves.topLeftPaddingBox);
        }
    };
    var parsePathForBorderDoubleOuter = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox, curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderBox, curves.topRightBorderDoubleOuterBox, curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderBox, curves.bottomRightBorderDoubleOuterBox, curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderBox, curves.bottomLeftBorderDoubleOuterBox, curves.topLeftBorderBox, curves.topLeftBorderDoubleOuterBox);
        }
    };
    var parsePathForBorderDoubleInner = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createPathFromCurves(curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox, curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox);
            case 1:
                return createPathFromCurves(curves.topRightBorderDoubleInnerBox, curves.topRightPaddingBox, curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox);
            case 2:
                return createPathFromCurves(curves.bottomRightBorderDoubleInnerBox, curves.bottomRightPaddingBox, curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox);
            case 3:
            default:
                return createPathFromCurves(curves.bottomLeftBorderDoubleInnerBox, curves.bottomLeftPaddingBox, curves.topLeftBorderDoubleInnerBox, curves.topLeftPaddingBox);
        }
    };
    var parsePathForBorderStroke = function (curves, borderSide) {
        switch (borderSide) {
            case 0:
                return createStrokePathFromCurves(curves.topLeftBorderStroke, curves.topRightBorderStroke);
            case 1:
                return createStrokePathFromCurves(curves.topRightBorderStroke, curves.bottomRightBorderStroke);
            case 2:
                return createStrokePathFromCurves(curves.bottomRightBorderStroke, curves.bottomLeftBorderStroke);
            case 3:
            default:
                return createStrokePathFromCurves(curves.bottomLeftBorderStroke, curves.topLeftBorderStroke);
        }
    };
    var createStrokePathFromCurves = function (outer1, outer2) {
        var path = [];
        if (isBezierCurve(outer1)) {
            path.push(outer1.subdivide(0.5, false));
        }
        else {
            path.push(outer1);
        }
        if (isBezierCurve(outer2)) {
            path.push(outer2.subdivide(0.5, true));
        }
        else {
            path.push(outer2);
        }
        return path;
    };
    var createPathFromCurves = function (outer1, inner1, outer2, inner2) {
        var path = [];
        if (isBezierCurve(outer1)) {
            path.push(outer1.subdivide(0.5, false));
        }
        else {
            path.push(outer1);
        }
        if (isBezierCurve(outer2)) {
            path.push(outer2.subdivide(0.5, true));
        }
        else {
            path.push(outer2);
        }
        if (isBezierCurve(inner2)) {
            path.push(inner2.subdivide(0.5, true).reverse());
        }
        else {
            path.push(inner2);
        }
        if (isBezierCurve(inner1)) {
            path.push(inner1.subdivide(0.5, false).reverse());
        }
        else {
            path.push(inner1);
        }
        return path;
    };

    var paddingBox = function (element) {
        var bounds = element.bounds;
        var styles = element.styles;
        return bounds.add(styles.borderLeftWidth, styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth), -(styles.borderTopWidth + styles.borderBottomWidth));
    };
    var contentBox = function (element) {
        var styles = element.styles;
        var bounds = element.bounds;
        var paddingLeft = getAbsoluteValue(styles.paddingLeft, bounds.width);
        var paddingRight = getAbsoluteValue(styles.paddingRight, bounds.width);
        var paddingTop = getAbsoluteValue(styles.paddingTop, bounds.width);
        var paddingBottom = getAbsoluteValue(styles.paddingBottom, bounds.width);
        return bounds.add(paddingLeft + styles.borderLeftWidth, paddingTop + styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth + paddingLeft + paddingRight), -(styles.borderTopWidth + styles.borderBottomWidth + paddingTop + paddingBottom));
    };

    var calculateBackgroundPositioningArea = function (backgroundOrigin, element) {
        if (backgroundOrigin === 0 /* BORDER_BOX */) {
            return element.bounds;
        }
        if (backgroundOrigin === 2 /* CONTENT_BOX */) {
            return contentBox(element);
        }
        return paddingBox(element);
    };
    var calculateBackgroundPaintingArea = function (backgroundClip, element) {
        if (backgroundClip === 0 /* BORDER_BOX */) {
            return element.bounds;
        }
        if (backgroundClip === 2 /* CONTENT_BOX */) {
            return contentBox(element);
        }
        return paddingBox(element);
    };
    var calculateBackgroundRendering = function (container, index, intrinsicSize) {
        var backgroundPositioningArea = calculateBackgroundPositioningArea(getBackgroundValueForIndex(container.styles.backgroundOrigin, index), container);
        var backgroundPaintingArea = calculateBackgroundPaintingArea(getBackgroundValueForIndex(container.styles.backgroundClip, index), container);
        var backgroundImageSize = calculateBackgroundSize(getBackgroundValueForIndex(container.styles.backgroundSize, index), intrinsicSize, backgroundPositioningArea);
        var sizeWidth = backgroundImageSize[0], sizeHeight = backgroundImageSize[1];
        var position = getAbsoluteValueForTuple(getBackgroundValueForIndex(container.styles.backgroundPosition, index), backgroundPositioningArea.width - sizeWidth, backgroundPositioningArea.height - sizeHeight);
        var path = calculateBackgroundRepeatPath(getBackgroundValueForIndex(container.styles.backgroundRepeat, index), position, backgroundImageSize, backgroundPositioningArea, backgroundPaintingArea);
        var offsetX = Math.round(backgroundPositioningArea.left + position[0]);
        var offsetY = Math.round(backgroundPositioningArea.top + position[1]);
        return [path, offsetX, offsetY, sizeWidth, sizeHeight];
    };
    var isAuto = function (token) { return isIdentToken(token) && token.value === BACKGROUND_SIZE.AUTO; };
    var hasIntrinsicValue = function (value) { return typeof value === 'number'; };
    var calculateBackgroundSize = function (size, _a, bounds) {
        var intrinsicWidth = _a[0], intrinsicHeight = _a[1], intrinsicProportion = _a[2];
        var first = size[0], second = size[1];
        if (!first) {
            return [0, 0];
        }
        if (isLengthPercentage(first) && second && isLengthPercentage(second)) {
            return [getAbsoluteValue(first, bounds.width), getAbsoluteValue(second, bounds.height)];
        }
        var hasIntrinsicProportion = hasIntrinsicValue(intrinsicProportion);
        if (isIdentToken(first) && (first.value === BACKGROUND_SIZE.CONTAIN || first.value === BACKGROUND_SIZE.COVER)) {
            if (hasIntrinsicValue(intrinsicProportion)) {
                var targetRatio = bounds.width / bounds.height;
                return targetRatio < intrinsicProportion !== (first.value === BACKGROUND_SIZE.COVER)
                    ? [bounds.width, bounds.width / intrinsicProportion]
                    : [bounds.height * intrinsicProportion, bounds.height];
            }
            return [bounds.width, bounds.height];
        }
        var hasIntrinsicWidth = hasIntrinsicValue(intrinsicWidth);
        var hasIntrinsicHeight = hasIntrinsicValue(intrinsicHeight);
        var hasIntrinsicDimensions = hasIntrinsicWidth || hasIntrinsicHeight;
        // If the background-size is auto or auto auto:
        if (isAuto(first) && (!second || isAuto(second))) {
            // If the image has both horizontal and vertical intrinsic dimensions, it's rendered at that size.
            if (hasIntrinsicWidth && hasIntrinsicHeight) {
                return [intrinsicWidth, intrinsicHeight];
            }
            // If the image has no intrinsic dimensions and has no intrinsic proportions,
            // it's rendered at the size of the background positioning area.
            if (!hasIntrinsicProportion && !hasIntrinsicDimensions) {
                return [bounds.width, bounds.height];
            }
            // TODO If the image has no intrinsic dimensions but has intrinsic proportions, it's rendered as if contain had been specified instead.
            // If the image has only one intrinsic dimension and has intrinsic proportions, it's rendered at the size corresponding to that one dimension.
            // The other dimension is computed using the specified dimension and the intrinsic proportions.
            if (hasIntrinsicDimensions && hasIntrinsicProportion) {
                var width_1 = hasIntrinsicWidth
                    ? intrinsicWidth
                    : intrinsicHeight * intrinsicProportion;
                var height_1 = hasIntrinsicHeight
                    ? intrinsicHeight
                    : intrinsicWidth / intrinsicProportion;
                return [width_1, height_1];
            }
            // If the image has only one intrinsic dimension but has no intrinsic proportions,
            // it's rendered using the specified dimension and the other dimension of the background positioning area.
            var width_2 = hasIntrinsicWidth ? intrinsicWidth : bounds.width;
            var height_2 = hasIntrinsicHeight ? intrinsicHeight : bounds.height;
            return [width_2, height_2];
        }
        // If the image has intrinsic proportions, it's stretched to the specified dimension.
        // The unspecified dimension is computed using the specified dimension and the intrinsic proportions.
        if (hasIntrinsicProportion) {
            var width_3 = 0;
            var height_3 = 0;
            if (isLengthPercentage(first)) {
                width_3 = getAbsoluteValue(first, bounds.width);
            }
            else if (isLengthPercentage(second)) {
                height_3 = getAbsoluteValue(second, bounds.height);
            }
            if (isAuto(first)) {
                width_3 = height_3 * intrinsicProportion;
            }
            else if (!second || isAuto(second)) {
                height_3 = width_3 / intrinsicProportion;
            }
            return [width_3, height_3];
        }
        // If the image has no intrinsic proportions, it's stretched to the specified dimension.
        // The unspecified dimension is computed using the image's corresponding intrinsic dimension,
        // if there is one. If there is no such intrinsic dimension,
        // it becomes the corresponding dimension of the background positioning area.
        var width = null;
        var height = null;
        if (isLengthPercentage(first)) {
            width = getAbsoluteValue(first, bounds.width);
        }
        else if (second && isLengthPercentage(second)) {
            height = getAbsoluteValue(second, bounds.height);
        }
        if (width !== null && (!second || isAuto(second))) {
            height =
                hasIntrinsicWidth && hasIntrinsicHeight
                    ? (width / intrinsicWidth) * intrinsicHeight
                    : bounds.height;
        }
        if (height !== null && isAuto(first)) {
            width =
                hasIntrinsicWidth && hasIntrinsicHeight
                    ? (height / intrinsicHeight) * intrinsicWidth
                    : bounds.width;
        }
        if (width !== null && height !== null) {
            return [width, height];
        }
        throw new Error("Unable to calculate background-size for element");
    };
    var getBackgroundValueForIndex = function (values, index) {
        var value = values[index];
        if (typeof value === 'undefined') {
            return values[0];
        }
        return value;
    };
    var calculateBackgroundRepeatPath = function (repeat, _a, _b, backgroundPositioningArea, backgroundPaintingArea) {
        var x = _a[0], y = _a[1];
        var width = _b[0], height = _b[1];
        switch (repeat) {
            case 2 /* REPEAT_X */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + backgroundPositioningArea.width), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + backgroundPositioningArea.width), Math.round(height + backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left), Math.round(height + backgroundPositioningArea.top + y))
                ];
            case 3 /* REPEAT_Y */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.height + backgroundPositioningArea.top)),
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.height + backgroundPositioningArea.top))
                ];
            case 1 /* NO_REPEAT */:
                return [
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top + y)),
                    new Vector(Math.round(backgroundPositioningArea.left + x + width), Math.round(backgroundPositioningArea.top + y + height)),
                    new Vector(Math.round(backgroundPositioningArea.left + x), Math.round(backgroundPositioningArea.top + y + height))
                ];
            default:
                return [
                    new Vector(Math.round(backgroundPaintingArea.left), Math.round(backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left + backgroundPaintingArea.width), Math.round(backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left + backgroundPaintingArea.width), Math.round(backgroundPaintingArea.height + backgroundPaintingArea.top)),
                    new Vector(Math.round(backgroundPaintingArea.left), Math.round(backgroundPaintingArea.height + backgroundPaintingArea.top))
                ];
        }
    };

    var SMALL_IMAGE = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';

    var SAMPLE_TEXT = 'Hidden Text';
    var FontMetrics = /** @class */ (function () {
        function FontMetrics(document) {
            this._data = {};
            this._document = document;
        }
        FontMetrics.prototype.parseMetrics = function (fontFamily, fontSize) {
            var container = this._document.createElement('div');
            var img = this._document.createElement('img');
            var span = this._document.createElement('span');
            var body = this._document.body;
            container.style.visibility = 'hidden';
            container.style.fontFamily = fontFamily;
            container.style.fontSize = fontSize;
            container.style.margin = '0';
            container.style.padding = '0';
            container.style.whiteSpace = 'nowrap';
            body.appendChild(container);
            img.src = SMALL_IMAGE;
            img.width = 1;
            img.height = 1;
            img.style.margin = '0';
            img.style.padding = '0';
            img.style.verticalAlign = 'baseline';
            span.style.fontFamily = fontFamily;
            span.style.fontSize = fontSize;
            span.style.margin = '0';
            span.style.padding = '0';
            span.appendChild(this._document.createTextNode(SAMPLE_TEXT));
            container.appendChild(span);
            container.appendChild(img);
            var baseline = img.offsetTop - span.offsetTop + 2;
            container.removeChild(span);
            container.appendChild(this._document.createTextNode(SAMPLE_TEXT));
            container.style.lineHeight = 'normal';
            img.style.verticalAlign = 'super';
            var middle = img.offsetTop - container.offsetTop + 2;
            body.removeChild(container);
            return { baseline: baseline, middle: middle };
        };
        FontMetrics.prototype.getMetrics = function (fontFamily, fontSize) {
            var key = fontFamily + " " + fontSize;
            if (typeof this._data[key] === 'undefined') {
                this._data[key] = this.parseMetrics(fontFamily, fontSize);
            }
            return this._data[key];
        };
        return FontMetrics;
    }());

    var Renderer = /** @class */ (function () {
        function Renderer(context, options) {
            this.context = context;
            this.options = options;
        }
        return Renderer;
    }());

    var MASK_OFFSET = 10000;
    var CanvasRenderer = /** @class */ (function (_super) {
        __extends(CanvasRenderer, _super);
        function CanvasRenderer(context, options) {
            var _this = _super.call(this, context, options) || this;
            _this._activeEffects = [];
            _this.canvas = options.canvas ? options.canvas : document.createElement('canvas');
            _this.ctx = _this.canvas.getContext('2d');
            if (!options.canvas) {
                _this.canvas.width = Math.floor(options.width * options.scale);
                _this.canvas.height = Math.floor(options.height * options.scale);
                _this.canvas.style.width = options.width + "px";
                _this.canvas.style.height = options.height + "px";
            }
            _this.fontMetrics = new FontMetrics(document);
            _this.ctx.scale(_this.options.scale, _this.options.scale);
            _this.ctx.translate(-options.x, -options.y);
            _this.ctx.textBaseline = 'bottom';
            _this._activeEffects = [];
            _this.context.logger.debug("Canvas renderer initialized (" + options.width + "x" + options.height + ") with scale " + options.scale);
            return _this;
        }
        CanvasRenderer.prototype.applyEffects = function (effects) {
            var _this = this;
            while (this._activeEffects.length) {
                this.popEffect();
            }
            effects.forEach(function (effect) { return _this.applyEffect(effect); });
        };
        CanvasRenderer.prototype.applyEffect = function (effect) {
            this.ctx.save();
            if (isOpacityEffect(effect)) {
                this.ctx.globalAlpha = effect.opacity;
            }
            if (isTransformEffect(effect)) {
                this.ctx.translate(effect.offsetX, effect.offsetY);
                this.ctx.transform(effect.matrix[0], effect.matrix[1], effect.matrix[2], effect.matrix[3], effect.matrix[4], effect.matrix[5]);
                this.ctx.translate(-effect.offsetX, -effect.offsetY);
            }
            if (isClipEffect(effect)) {
                this.path(effect.path);
                this.ctx.clip();
            }
            this._activeEffects.push(effect);
        };
        CanvasRenderer.prototype.popEffect = function () {
            this._activeEffects.pop();
            this.ctx.restore();
        };
        CanvasRenderer.prototype.renderStack = function (stack) {
            return __awaiter(this, void 0, void 0, function () {
                var styles;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            styles = stack.element.container.styles;
                            if (!styles.isVisible()) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.renderStackContent(stack)];
                        case 1:
                            _a.sent();
                            _a.label = 2;
                        case 2: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderNode = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (contains(paint.container.flags, 16 /* DEBUG_RENDER */)) {
                                debugger;
                            }
                            if (!paint.container.styles.isVisible()) return [3 /*break*/, 3];
                            return [4 /*yield*/, this.renderNodeBackgroundAndBorders(paint)];
                        case 1:
                            _a.sent();
                            return [4 /*yield*/, this.renderNodeContent(paint)];
                        case 2:
                            _a.sent();
                            _a.label = 3;
                        case 3: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderTextWithLetterSpacing = function (text, letterSpacing, baseline) {
            var _this = this;
            if (letterSpacing === 0) {
                this.ctx.fillText(text.text, text.bounds.left, text.bounds.top + baseline);
            }
            else {
                var letters = segmentGraphemes(text.text);
                letters.reduce(function (left, letter) {
                    _this.ctx.fillText(letter, left, text.bounds.top + baseline);
                    return left + _this.ctx.measureText(letter).width;
                }, text.bounds.left);
            }
        };
        CanvasRenderer.prototype.createFontStyle = function (styles) {
            var fontVariant = styles.fontVariant
                .filter(function (variant) { return variant === 'normal' || variant === 'small-caps'; })
                .join('');
            var fontFamily = fixIOSSystemFonts(styles.fontFamily).join(', ');
            var fontSize = isDimensionToken(styles.fontSize)
                ? "" + styles.fontSize.number + styles.fontSize.unit
                : styles.fontSize.number + "px";
            return [
                [styles.fontStyle, fontVariant, styles.fontWeight, fontSize, fontFamily].join(' '),
                fontFamily,
                fontSize
            ];
        };
        CanvasRenderer.prototype.renderTextNode = function (text, styles) {
            return __awaiter(this, void 0, void 0, function () {
                var _a, font, fontFamily, fontSize, _b, baseline, middle, paintOrder;
                var _this = this;
                return __generator(this, function (_c) {
                    _a = this.createFontStyle(styles), font = _a[0], fontFamily = _a[1], fontSize = _a[2];
                    this.ctx.font = font;
                    this.ctx.direction = styles.direction === 1 /* RTL */ ? 'rtl' : 'ltr';
                    this.ctx.textAlign = 'left';
                    this.ctx.textBaseline = 'alphabetic';
                    _b = this.fontMetrics.getMetrics(fontFamily, fontSize), baseline = _b.baseline, middle = _b.middle;
                    paintOrder = styles.paintOrder;
                    text.textBounds.forEach(function (text) {
                        paintOrder.forEach(function (paintOrderLayer) {
                            switch (paintOrderLayer) {
                                case 0 /* FILL */:
                                    _this.ctx.fillStyle = asString(styles.color);
                                    _this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
                                    var textShadows = styles.textShadow;
                                    if (textShadows.length && text.text.trim().length) {
                                        textShadows
                                            .slice(0)
                                            .reverse()
                                            .forEach(function (textShadow) {
                                            _this.ctx.shadowColor = asString(textShadow.color);
                                            _this.ctx.shadowOffsetX = textShadow.offsetX.number * _this.options.scale;
                                            _this.ctx.shadowOffsetY = textShadow.offsetY.number * _this.options.scale;
                                            _this.ctx.shadowBlur = textShadow.blur.number;
                                            _this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
                                        });
                                        _this.ctx.shadowColor = '';
                                        _this.ctx.shadowOffsetX = 0;
                                        _this.ctx.shadowOffsetY = 0;
                                        _this.ctx.shadowBlur = 0;
                                    }
                                    if (styles.textDecorationLine.length) {
                                        _this.ctx.fillStyle = asString(styles.textDecorationColor || styles.color);
                                        styles.textDecorationLine.forEach(function (textDecorationLine) {
                                            switch (textDecorationLine) {
                                                case 1 /* UNDERLINE */:
                                                    // Draws a line at the baseline of the font
                                                    // TODO As some browsers display the line as more than 1px if the font-size is big,
                                                    // need to take that into account both in position and size
                                                    _this.ctx.fillRect(text.bounds.left, Math.round(text.bounds.top + baseline), text.bounds.width, 1);
                                                    break;
                                                case 2 /* OVERLINE */:
                                                    _this.ctx.fillRect(text.bounds.left, Math.round(text.bounds.top), text.bounds.width, 1);
                                                    break;
                                                case 3 /* LINE_THROUGH */:
                                                    // TODO try and find exact position for line-through
                                                    _this.ctx.fillRect(text.bounds.left, Math.ceil(text.bounds.top + middle), text.bounds.width, 1);
                                                    break;
                                            }
                                        });
                                    }
                                    break;
                                case 1 /* STROKE */:
                                    if (styles.webkitTextStrokeWidth && text.text.trim().length) {
                                        _this.ctx.strokeStyle = asString(styles.webkitTextStrokeColor);
                                        _this.ctx.lineWidth = styles.webkitTextStrokeWidth;
                                        // eslint-disable-next-line @typescript-eslint/no-explicit-any
                                        _this.ctx.lineJoin = !!window.chrome ? 'miter' : 'round';
                                        _this.ctx.strokeText(text.text, text.bounds.left, text.bounds.top + baseline);
                                    }
                                    _this.ctx.strokeStyle = '';
                                    _this.ctx.lineWidth = 0;
                                    _this.ctx.lineJoin = 'miter';
                                    break;
                            }
                        });
                    });
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.renderReplacedElement = function (container, curves, image) {
            if (image && container.intrinsicWidth > 0 && container.intrinsicHeight > 0) {
                var box = contentBox(container);
                var path = calculatePaddingBoxPath(curves);
                this.path(path);
                this.ctx.save();
                this.ctx.clip();
                this.ctx.drawImage(image, 0, 0, container.intrinsicWidth, container.intrinsicHeight, box.left, box.top, box.width, box.height);
                this.ctx.restore();
            }
        };
        CanvasRenderer.prototype.renderNodeContent = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                var container, curves, styles, _i, _a, child, image, image, iframeRenderer, canvas, size, _b, fontFamily, fontSize, baseline, bounds, x, textBounds, img, image, url, fontFamily, bounds;
                return __generator(this, function (_c) {
                    switch (_c.label) {
                        case 0:
                            this.applyEffects(paint.getEffects(4 /* CONTENT */));
                            container = paint.container;
                            curves = paint.curves;
                            styles = container.styles;
                            _i = 0, _a = container.textNodes;
                            _c.label = 1;
                        case 1:
                            if (!(_i < _a.length)) return [3 /*break*/, 4];
                            child = _a[_i];
                            return [4 /*yield*/, this.renderTextNode(child, styles)];
                        case 2:
                            _c.sent();
                            _c.label = 3;
                        case 3:
                            _i++;
                            return [3 /*break*/, 1];
                        case 4:
                            if (!(container instanceof ImageElementContainer)) return [3 /*break*/, 8];
                            _c.label = 5;
                        case 5:
                            _c.trys.push([5, 7, , 8]);
                            return [4 /*yield*/, this.context.cache.match(container.src)];
                        case 6:
                            image = _c.sent();
                            this.renderReplacedElement(container, curves, image);
                            return [3 /*break*/, 8];
                        case 7:
                            _c.sent();
                            this.context.logger.error("Error loading image " + container.src);
                            return [3 /*break*/, 8];
                        case 8:
                            if (container instanceof CanvasElementContainer) {
                                this.renderReplacedElement(container, curves, container.canvas);
                            }
                            if (!(container instanceof SVGElementContainer)) return [3 /*break*/, 12];
                            _c.label = 9;
                        case 9:
                            _c.trys.push([9, 11, , 12]);
                            return [4 /*yield*/, this.context.cache.match(container.svg)];
                        case 10:
                            image = _c.sent();
                            this.renderReplacedElement(container, curves, image);
                            return [3 /*break*/, 12];
                        case 11:
                            _c.sent();
                            this.context.logger.error("Error loading svg " + container.svg.substring(0, 255));
                            return [3 /*break*/, 12];
                        case 12:
                            if (!(container instanceof IFrameElementContainer && container.tree)) return [3 /*break*/, 14];
                            iframeRenderer = new CanvasRenderer(this.context, {
                                scale: this.options.scale,
                                backgroundColor: container.backgroundColor,
                                x: 0,
                                y: 0,
                                width: container.width,
                                height: container.height
                            });
                            return [4 /*yield*/, iframeRenderer.render(container.tree)];
                        case 13:
                            canvas = _c.sent();
                            if (container.width && container.height) {
                                this.ctx.drawImage(canvas, 0, 0, container.width, container.height, container.bounds.left, container.bounds.top, container.bounds.width, container.bounds.height);
                            }
                            _c.label = 14;
                        case 14:
                            if (container instanceof InputElementContainer) {
                                size = Math.min(container.bounds.width, container.bounds.height);
                                if (container.type === CHECKBOX) {
                                    if (container.checked) {
                                        this.ctx.save();
                                        this.path([
                                            new Vector(container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79),
                                            new Vector(container.bounds.left + size * 0.16, container.bounds.top + size * 0.5549),
                                            new Vector(container.bounds.left + size * 0.27347, container.bounds.top + size * 0.44071),
                                            new Vector(container.bounds.left + size * 0.39694, container.bounds.top + size * 0.5649),
                                            new Vector(container.bounds.left + size * 0.72983, container.bounds.top + size * 0.23),
                                            new Vector(container.bounds.left + size * 0.84, container.bounds.top + size * 0.34085),
                                            new Vector(container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79)
                                        ]);
                                        this.ctx.fillStyle = asString(INPUT_COLOR);
                                        this.ctx.fill();
                                        this.ctx.restore();
                                    }
                                }
                                else if (container.type === RADIO) {
                                    if (container.checked) {
                                        this.ctx.save();
                                        this.ctx.beginPath();
                                        this.ctx.arc(container.bounds.left + size / 2, container.bounds.top + size / 2, size / 4, 0, Math.PI * 2, true);
                                        this.ctx.fillStyle = asString(INPUT_COLOR);
                                        this.ctx.fill();
                                        this.ctx.restore();
                                    }
                                }
                            }
                            if (isTextInputElement(container) && container.value.length) {
                                _b = this.createFontStyle(styles), fontFamily = _b[0], fontSize = _b[1];
                                baseline = this.fontMetrics.getMetrics(fontFamily, fontSize).baseline;
                                this.ctx.font = fontFamily;
                                this.ctx.fillStyle = asString(styles.color);
                                this.ctx.textBaseline = 'alphabetic';
                                this.ctx.textAlign = canvasTextAlign(container.styles.textAlign);
                                bounds = contentBox(container);
                                x = 0;
                                switch (container.styles.textAlign) {
                                    case 1 /* CENTER */:
                                        x += bounds.width / 2;
                                        break;
                                    case 2 /* RIGHT */:
                                        x += bounds.width;
                                        break;
                                }
                                textBounds = bounds.add(x, 0, 0, -bounds.height / 2 + 1);
                                this.ctx.save();
                                this.path([
                                    new Vector(bounds.left, bounds.top),
                                    new Vector(bounds.left + bounds.width, bounds.top),
                                    new Vector(bounds.left + bounds.width, bounds.top + bounds.height),
                                    new Vector(bounds.left, bounds.top + bounds.height)
                                ]);
                                this.ctx.clip();
                                this.renderTextWithLetterSpacing(new TextBounds(container.value, textBounds), styles.letterSpacing, baseline);
                                this.ctx.restore();
                                this.ctx.textBaseline = 'alphabetic';
                                this.ctx.textAlign = 'left';
                            }
                            if (!contains(container.styles.display, 2048 /* LIST_ITEM */)) return [3 /*break*/, 20];
                            if (!(container.styles.listStyleImage !== null)) return [3 /*break*/, 19];
                            img = container.styles.listStyleImage;
                            if (!(img.type === 0 /* URL */)) return [3 /*break*/, 18];
                            image = void 0;
                            url = img.url;
                            _c.label = 15;
                        case 15:
                            _c.trys.push([15, 17, , 18]);
                            return [4 /*yield*/, this.context.cache.match(url)];
                        case 16:
                            image = _c.sent();
                            this.ctx.drawImage(image, container.bounds.left - (image.width + 10), container.bounds.top);
                            return [3 /*break*/, 18];
                        case 17:
                            _c.sent();
                            this.context.logger.error("Error loading list-style-image " + url);
                            return [3 /*break*/, 18];
                        case 18: return [3 /*break*/, 20];
                        case 19:
                            if (paint.listValue && container.styles.listStyleType !== -1 /* NONE */) {
                                fontFamily = this.createFontStyle(styles)[0];
                                this.ctx.font = fontFamily;
                                this.ctx.fillStyle = asString(styles.color);
                                this.ctx.textBaseline = 'middle';
                                this.ctx.textAlign = 'right';
                                bounds = new Bounds(container.bounds.left, container.bounds.top + getAbsoluteValue(container.styles.paddingTop, container.bounds.width), container.bounds.width, computeLineHeight(styles.lineHeight, styles.fontSize.number) / 2 + 1);
                                this.renderTextWithLetterSpacing(new TextBounds(paint.listValue, bounds), styles.letterSpacing, computeLineHeight(styles.lineHeight, styles.fontSize.number) / 2 + 2);
                                this.ctx.textBaseline = 'bottom';
                                this.ctx.textAlign = 'left';
                            }
                            _c.label = 20;
                        case 20: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderStackContent = function (stack) {
            return __awaiter(this, void 0, void 0, function () {
                var _i, _a, child, _b, _c, child, _d, _e, child, _f, _g, child, _h, _j, child, _k, _l, child, _m, _o, child;
                return __generator(this, function (_p) {
                    switch (_p.label) {
                        case 0:
                            if (contains(stack.element.container.flags, 16 /* DEBUG_RENDER */)) {
                                debugger;
                            }
                            // https://www.w3.org/TR/css-position-3/#painting-order
                            // 1. the background and borders of the element forming the stacking context.
                            return [4 /*yield*/, this.renderNodeBackgroundAndBorders(stack.element)];
                        case 1:
                            // https://www.w3.org/TR/css-position-3/#painting-order
                            // 1. the background and borders of the element forming the stacking context.
                            _p.sent();
                            _i = 0, _a = stack.negativeZIndex;
                            _p.label = 2;
                        case 2:
                            if (!(_i < _a.length)) return [3 /*break*/, 5];
                            child = _a[_i];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 3:
                            _p.sent();
                            _p.label = 4;
                        case 4:
                            _i++;
                            return [3 /*break*/, 2];
                        case 5: 
                        // 3. For all its in-flow, non-positioned, block-level descendants in tree order:
                        return [4 /*yield*/, this.renderNodeContent(stack.element)];
                        case 6:
                            // 3. For all its in-flow, non-positioned, block-level descendants in tree order:
                            _p.sent();
                            _b = 0, _c = stack.nonInlineLevel;
                            _p.label = 7;
                        case 7:
                            if (!(_b < _c.length)) return [3 /*break*/, 10];
                            child = _c[_b];
                            return [4 /*yield*/, this.renderNode(child)];
                        case 8:
                            _p.sent();
                            _p.label = 9;
                        case 9:
                            _b++;
                            return [3 /*break*/, 7];
                        case 10:
                            _d = 0, _e = stack.nonPositionedFloats;
                            _p.label = 11;
                        case 11:
                            if (!(_d < _e.length)) return [3 /*break*/, 14];
                            child = _e[_d];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 12:
                            _p.sent();
                            _p.label = 13;
                        case 13:
                            _d++;
                            return [3 /*break*/, 11];
                        case 14:
                            _f = 0, _g = stack.nonPositionedInlineLevel;
                            _p.label = 15;
                        case 15:
                            if (!(_f < _g.length)) return [3 /*break*/, 18];
                            child = _g[_f];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 16:
                            _p.sent();
                            _p.label = 17;
                        case 17:
                            _f++;
                            return [3 /*break*/, 15];
                        case 18:
                            _h = 0, _j = stack.inlineLevel;
                            _p.label = 19;
                        case 19:
                            if (!(_h < _j.length)) return [3 /*break*/, 22];
                            child = _j[_h];
                            return [4 /*yield*/, this.renderNode(child)];
                        case 20:
                            _p.sent();
                            _p.label = 21;
                        case 21:
                            _h++;
                            return [3 /*break*/, 19];
                        case 22:
                            _k = 0, _l = stack.zeroOrAutoZIndexOrTransformedOrOpacity;
                            _p.label = 23;
                        case 23:
                            if (!(_k < _l.length)) return [3 /*break*/, 26];
                            child = _l[_k];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 24:
                            _p.sent();
                            _p.label = 25;
                        case 25:
                            _k++;
                            return [3 /*break*/, 23];
                        case 26:
                            _m = 0, _o = stack.positiveZIndex;
                            _p.label = 27;
                        case 27:
                            if (!(_m < _o.length)) return [3 /*break*/, 30];
                            child = _o[_m];
                            return [4 /*yield*/, this.renderStack(child)];
                        case 28:
                            _p.sent();
                            _p.label = 29;
                        case 29:
                            _m++;
                            return [3 /*break*/, 27];
                        case 30: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.mask = function (paths) {
            this.ctx.beginPath();
            this.ctx.moveTo(0, 0);
            this.ctx.lineTo(this.canvas.width, 0);
            this.ctx.lineTo(this.canvas.width, this.canvas.height);
            this.ctx.lineTo(0, this.canvas.height);
            this.ctx.lineTo(0, 0);
            this.formatPath(paths.slice(0).reverse());
            this.ctx.closePath();
        };
        CanvasRenderer.prototype.path = function (paths) {
            this.ctx.beginPath();
            this.formatPath(paths);
            this.ctx.closePath();
        };
        CanvasRenderer.prototype.formatPath = function (paths) {
            var _this = this;
            paths.forEach(function (point, index) {
                var start = isBezierCurve(point) ? point.start : point;
                if (index === 0) {
                    _this.ctx.moveTo(start.x, start.y);
                }
                else {
                    _this.ctx.lineTo(start.x, start.y);
                }
                if (isBezierCurve(point)) {
                    _this.ctx.bezierCurveTo(point.startControl.x, point.startControl.y, point.endControl.x, point.endControl.y, point.end.x, point.end.y);
                }
            });
        };
        CanvasRenderer.prototype.renderRepeat = function (path, pattern, offsetX, offsetY) {
            this.path(path);
            this.ctx.fillStyle = pattern;
            this.ctx.translate(offsetX, offsetY);
            this.ctx.fill();
            this.ctx.translate(-offsetX, -offsetY);
        };
        CanvasRenderer.prototype.resizeImage = function (image, width, height) {
            var _a;
            if (image.width === width && image.height === height) {
                return image;
            }
            var ownerDocument = (_a = this.canvas.ownerDocument) !== null && _a !== void 0 ? _a : document;
            var canvas = ownerDocument.createElement('canvas');
            canvas.width = Math.max(1, width);
            canvas.height = Math.max(1, height);
            var ctx = canvas.getContext('2d');
            ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, width, height);
            return canvas;
        };
        CanvasRenderer.prototype.renderBackgroundImage = function (container) {
            return __awaiter(this, void 0, void 0, function () {
                var index, _loop_1, this_1, _i, _a, backgroundImage;
                return __generator(this, function (_b) {
                    switch (_b.label) {
                        case 0:
                            index = container.styles.backgroundImage.length - 1;
                            _loop_1 = function (backgroundImage) {
                                var image, url, _c, path, x, y, width, height, pattern, _d, path, x, y, width, height, _e, lineLength, x0, x1, y0, y1, canvas, ctx, gradient_1, pattern, _f, path, left, top_1, width, height, position, x, y, _g, rx, ry, radialGradient_1, midX, midY, f, invF;
                                return __generator(this, function (_h) {
                                    switch (_h.label) {
                                        case 0:
                                            if (!(backgroundImage.type === 0 /* URL */)) return [3 /*break*/, 5];
                                            image = void 0;
                                            url = backgroundImage.url;
                                            _h.label = 1;
                                        case 1:
                                            _h.trys.push([1, 3, , 4]);
                                            return [4 /*yield*/, this_1.context.cache.match(url)];
                                        case 2:
                                            image = _h.sent();
                                            return [3 /*break*/, 4];
                                        case 3:
                                            _h.sent();
                                            this_1.context.logger.error("Error loading background-image " + url);
                                            return [3 /*break*/, 4];
                                        case 4:
                                            if (image) {
                                                _c = calculateBackgroundRendering(container, index, [
                                                    image.width,
                                                    image.height,
                                                    image.width / image.height
                                                ]), path = _c[0], x = _c[1], y = _c[2], width = _c[3], height = _c[4];
                                                pattern = this_1.ctx.createPattern(this_1.resizeImage(image, width, height), 'repeat');
                                                this_1.renderRepeat(path, pattern, x, y);
                                            }
                                            return [3 /*break*/, 6];
                                        case 5:
                                            if (isLinearGradient(backgroundImage)) {
                                                _d = calculateBackgroundRendering(container, index, [null, null, null]), path = _d[0], x = _d[1], y = _d[2], width = _d[3], height = _d[4];
                                                _e = calculateGradientDirection(backgroundImage.angle, width, height), lineLength = _e[0], x0 = _e[1], x1 = _e[2], y0 = _e[3], y1 = _e[4];
                                                canvas = document.createElement('canvas');
                                                canvas.width = width;
                                                canvas.height = height;
                                                ctx = canvas.getContext('2d');
                                                gradient_1 = ctx.createLinearGradient(x0, y0, x1, y1);
                                                processColorStops(backgroundImage.stops, lineLength).forEach(function (colorStop) {
                                                    return gradient_1.addColorStop(colorStop.stop, asString(colorStop.color));
                                                });
                                                ctx.fillStyle = gradient_1;
                                                ctx.fillRect(0, 0, width, height);
                                                if (width > 0 && height > 0) {
                                                    pattern = this_1.ctx.createPattern(canvas, 'repeat');
                                                    this_1.renderRepeat(path, pattern, x, y);
                                                }
                                            }
                                            else if (isRadialGradient(backgroundImage)) {
                                                _f = calculateBackgroundRendering(container, index, [
                                                    null,
                                                    null,
                                                    null
                                                ]), path = _f[0], left = _f[1], top_1 = _f[2], width = _f[3], height = _f[4];
                                                position = backgroundImage.position.length === 0 ? [FIFTY_PERCENT] : backgroundImage.position;
                                                x = getAbsoluteValue(position[0], width);
                                                y = getAbsoluteValue(position[position.length - 1], height);
                                                _g = calculateRadius(backgroundImage, x, y, width, height), rx = _g[0], ry = _g[1];
                                                if (rx > 0 && ry > 0) {
                                                    radialGradient_1 = this_1.ctx.createRadialGradient(left + x, top_1 + y, 0, left + x, top_1 + y, rx);
                                                    processColorStops(backgroundImage.stops, rx * 2).forEach(function (colorStop) {
                                                        return radialGradient_1.addColorStop(colorStop.stop, asString(colorStop.color));
                                                    });
                                                    this_1.path(path);
                                                    this_1.ctx.fillStyle = radialGradient_1;
                                                    if (rx !== ry) {
                                                        midX = container.bounds.left + 0.5 * container.bounds.width;
                                                        midY = container.bounds.top + 0.5 * container.bounds.height;
                                                        f = ry / rx;
                                                        invF = 1 / f;
                                                        this_1.ctx.save();
                                                        this_1.ctx.translate(midX, midY);
                                                        this_1.ctx.transform(1, 0, 0, f, 0, 0);
                                                        this_1.ctx.translate(-midX, -midY);
                                                        this_1.ctx.fillRect(left, invF * (top_1 - midY) + midY, width, height * invF);
                                                        this_1.ctx.restore();
                                                    }
                                                    else {
                                                        this_1.ctx.fill();
                                                    }
                                                }
                                            }
                                            _h.label = 6;
                                        case 6:
                                            index--;
                                            return [2 /*return*/];
                                    }
                                });
                            };
                            this_1 = this;
                            _i = 0, _a = container.styles.backgroundImage.slice(0).reverse();
                            _b.label = 1;
                        case 1:
                            if (!(_i < _a.length)) return [3 /*break*/, 4];
                            backgroundImage = _a[_i];
                            return [5 /*yield**/, _loop_1(backgroundImage)];
                        case 2:
                            _b.sent();
                            _b.label = 3;
                        case 3:
                            _i++;
                            return [3 /*break*/, 1];
                        case 4: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderSolidBorder = function (color, side, curvePoints) {
            return __awaiter(this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.path(parsePathForBorder(curvePoints, side));
                    this.ctx.fillStyle = asString(color);
                    this.ctx.fill();
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.renderDoubleBorder = function (color, width, side, curvePoints) {
            return __awaiter(this, void 0, void 0, function () {
                var outerPaths, innerPaths;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (!(width < 3)) return [3 /*break*/, 2];
                            return [4 /*yield*/, this.renderSolidBorder(color, side, curvePoints)];
                        case 1:
                            _a.sent();
                            return [2 /*return*/];
                        case 2:
                            outerPaths = parsePathForBorderDoubleOuter(curvePoints, side);
                            this.path(outerPaths);
                            this.ctx.fillStyle = asString(color);
                            this.ctx.fill();
                            innerPaths = parsePathForBorderDoubleInner(curvePoints, side);
                            this.path(innerPaths);
                            this.ctx.fill();
                            return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderNodeBackgroundAndBorders = function (paint) {
            return __awaiter(this, void 0, void 0, function () {
                var styles, hasBackground, borders, backgroundPaintingArea, side, _i, borders_1, border;
                var _this = this;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            this.applyEffects(paint.getEffects(2 /* BACKGROUND_BORDERS */));
                            styles = paint.container.styles;
                            hasBackground = !isTransparent(styles.backgroundColor) || styles.backgroundImage.length;
                            borders = [
                                { style: styles.borderTopStyle, color: styles.borderTopColor, width: styles.borderTopWidth },
                                { style: styles.borderRightStyle, color: styles.borderRightColor, width: styles.borderRightWidth },
                                { style: styles.borderBottomStyle, color: styles.borderBottomColor, width: styles.borderBottomWidth },
                                { style: styles.borderLeftStyle, color: styles.borderLeftColor, width: styles.borderLeftWidth }
                            ];
                            backgroundPaintingArea = calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(styles.backgroundClip, 0), paint.curves);
                            if (!(hasBackground || styles.boxShadow.length)) return [3 /*break*/, 2];
                            this.ctx.save();
                            this.path(backgroundPaintingArea);
                            this.ctx.clip();
                            if (!isTransparent(styles.backgroundColor)) {
                                this.ctx.fillStyle = asString(styles.backgroundColor);
                                this.ctx.fill();
                            }
                            return [4 /*yield*/, this.renderBackgroundImage(paint.container)];
                        case 1:
                            _a.sent();
                            this.ctx.restore();
                            styles.boxShadow
                                .slice(0)
                                .reverse()
                                .forEach(function (shadow) {
                                _this.ctx.save();
                                var borderBoxArea = calculateBorderBoxPath(paint.curves);
                                var maskOffset = shadow.inset ? 0 : MASK_OFFSET;
                                var shadowPaintingArea = transformPath(borderBoxArea, -maskOffset + (shadow.inset ? 1 : -1) * shadow.spread.number, (shadow.inset ? 1 : -1) * shadow.spread.number, shadow.spread.number * (shadow.inset ? -2 : 2), shadow.spread.number * (shadow.inset ? -2 : 2));
                                if (shadow.inset) {
                                    _this.path(borderBoxArea);
                                    _this.ctx.clip();
                                    _this.mask(shadowPaintingArea);
                                }
                                else {
                                    _this.mask(borderBoxArea);
                                    _this.ctx.clip();
                                    _this.path(shadowPaintingArea);
                                }
                                _this.ctx.shadowOffsetX = shadow.offsetX.number + maskOffset;
                                _this.ctx.shadowOffsetY = shadow.offsetY.number;
                                _this.ctx.shadowColor = asString(shadow.color);
                                _this.ctx.shadowBlur = shadow.blur.number;
                                _this.ctx.fillStyle = shadow.inset ? asString(shadow.color) : 'rgba(0,0,0,1)';
                                _this.ctx.fill();
                                _this.ctx.restore();
                            });
                            _a.label = 2;
                        case 2:
                            side = 0;
                            _i = 0, borders_1 = borders;
                            _a.label = 3;
                        case 3:
                            if (!(_i < borders_1.length)) return [3 /*break*/, 13];
                            border = borders_1[_i];
                            if (!(border.style !== 0 /* NONE */ && !isTransparent(border.color) && border.width > 0)) return [3 /*break*/, 11];
                            if (!(border.style === 2 /* DASHED */)) return [3 /*break*/, 5];
                            return [4 /*yield*/, this.renderDashedDottedBorder(border.color, border.width, side, paint.curves, 2 /* DASHED */)];
                        case 4:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 5:
                            if (!(border.style === 3 /* DOTTED */)) return [3 /*break*/, 7];
                            return [4 /*yield*/, this.renderDashedDottedBorder(border.color, border.width, side, paint.curves, 3 /* DOTTED */)];
                        case 6:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 7:
                            if (!(border.style === 4 /* DOUBLE */)) return [3 /*break*/, 9];
                            return [4 /*yield*/, this.renderDoubleBorder(border.color, border.width, side, paint.curves)];
                        case 8:
                            _a.sent();
                            return [3 /*break*/, 11];
                        case 9: return [4 /*yield*/, this.renderSolidBorder(border.color, side, paint.curves)];
                        case 10:
                            _a.sent();
                            _a.label = 11;
                        case 11:
                            side++;
                            _a.label = 12;
                        case 12:
                            _i++;
                            return [3 /*break*/, 3];
                        case 13: return [2 /*return*/];
                    }
                });
            });
        };
        CanvasRenderer.prototype.renderDashedDottedBorder = function (color, width, side, curvePoints, style) {
            return __awaiter(this, void 0, void 0, function () {
                var strokePaths, boxPaths, startX, startY, endX, endY, length, dashLength, spaceLength, useLineDash, multiplier, numberOfDashes, minSpace, maxSpace, path1, path2, path1, path2;
                return __generator(this, function (_a) {
                    this.ctx.save();
                    strokePaths = parsePathForBorderStroke(curvePoints, side);
                    boxPaths = parsePathForBorder(curvePoints, side);
                    if (style === 2 /* DASHED */) {
                        this.path(boxPaths);
                        this.ctx.clip();
                    }
                    if (isBezierCurve(boxPaths[0])) {
                        startX = boxPaths[0].start.x;
                        startY = boxPaths[0].start.y;
                    }
                    else {
                        startX = boxPaths[0].x;
                        startY = boxPaths[0].y;
                    }
                    if (isBezierCurve(boxPaths[1])) {
                        endX = boxPaths[1].end.x;
                        endY = boxPaths[1].end.y;
                    }
                    else {
                        endX = boxPaths[1].x;
                        endY = boxPaths[1].y;
                    }
                    if (side === 0 || side === 2) {
                        length = Math.abs(startX - endX);
                    }
                    else {
                        length = Math.abs(startY - endY);
                    }
                    this.ctx.beginPath();
                    if (style === 3 /* DOTTED */) {
                        this.formatPath(strokePaths);
                    }
                    else {
                        this.formatPath(boxPaths.slice(0, 2));
                    }
                    dashLength = width < 3 ? width * 3 : width * 2;
                    spaceLength = width < 3 ? width * 2 : width;
                    if (style === 3 /* DOTTED */) {
                        dashLength = width;
                        spaceLength = width;
                    }
                    useLineDash = true;
                    if (length <= dashLength * 2) {
                        useLineDash = false;
                    }
                    else if (length <= dashLength * 2 + spaceLength) {
                        multiplier = length / (2 * dashLength + spaceLength);
                        dashLength *= multiplier;
                        spaceLength *= multiplier;
                    }
                    else {
                        numberOfDashes = Math.floor((length + spaceLength) / (dashLength + spaceLength));
                        minSpace = (length - numberOfDashes * dashLength) / (numberOfDashes - 1);
                        maxSpace = (length - (numberOfDashes + 1) * dashLength) / numberOfDashes;
                        spaceLength =
                            maxSpace <= 0 || Math.abs(spaceLength - minSpace) < Math.abs(spaceLength - maxSpace)
                                ? minSpace
                                : maxSpace;
                    }
                    if (useLineDash) {
                        if (style === 3 /* DOTTED */) {
                            this.ctx.setLineDash([0, dashLength + spaceLength]);
                        }
                        else {
                            this.ctx.setLineDash([dashLength, spaceLength]);
                        }
                    }
                    if (style === 3 /* DOTTED */) {
                        this.ctx.lineCap = 'round';
                        this.ctx.lineWidth = width;
                    }
                    else {
                        this.ctx.lineWidth = width * 2 + 1.1;
                    }
                    this.ctx.strokeStyle = asString(color);
                    this.ctx.stroke();
                    this.ctx.setLineDash([]);
                    // dashed round edge gap
                    if (style === 2 /* DASHED */) {
                        if (isBezierCurve(boxPaths[0])) {
                            path1 = boxPaths[3];
                            path2 = boxPaths[0];
                            this.ctx.beginPath();
                            this.formatPath([new Vector(path1.end.x, path1.end.y), new Vector(path2.start.x, path2.start.y)]);
                            this.ctx.stroke();
                        }
                        if (isBezierCurve(boxPaths[1])) {
                            path1 = boxPaths[1];
                            path2 = boxPaths[2];
                            this.ctx.beginPath();
                            this.formatPath([new Vector(path1.end.x, path1.end.y), new Vector(path2.start.x, path2.start.y)]);
                            this.ctx.stroke();
                        }
                    }
                    this.ctx.restore();
                    return [2 /*return*/];
                });
            });
        };
        CanvasRenderer.prototype.render = function (element) {
            return __awaiter(this, void 0, void 0, function () {
                var stack;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            if (this.options.backgroundColor) {
                                this.ctx.fillStyle = asString(this.options.backgroundColor);
                                this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height);
                            }
                            stack = parseStackingContexts(element);
                            return [4 /*yield*/, this.renderStack(stack)];
                        case 1:
                            _a.sent();
                            this.applyEffects([]);
                            return [2 /*return*/, this.canvas];
                    }
                });
            });
        };
        return CanvasRenderer;
    }(Renderer));
    var isTextInputElement = function (container) {
        if (container instanceof TextareaElementContainer) {
            return true;
        }
        else if (container instanceof SelectElementContainer) {
            return true;
        }
        else if (container instanceof InputElementContainer && container.type !== RADIO && container.type !== CHECKBOX) {
            return true;
        }
        return false;
    };
    var calculateBackgroundCurvedPaintingArea = function (clip, curves) {
        switch (clip) {
            case 0 /* BORDER_BOX */:
                return calculateBorderBoxPath(curves);
            case 2 /* CONTENT_BOX */:
                return calculateContentBoxPath(curves);
            case 1 /* PADDING_BOX */:
            default:
                return calculatePaddingBoxPath(curves);
        }
    };
    var canvasTextAlign = function (textAlign) {
        switch (textAlign) {
            case 1 /* CENTER */:
                return 'center';
            case 2 /* RIGHT */:
                return 'right';
            case 0 /* LEFT */:
            default:
                return 'left';
        }
    };
    // see https://github.com/niklasvh/html2canvas/pull/2645
    var iOSBrokenFonts = ['-apple-system', 'system-ui'];
    var fixIOSSystemFonts = function (fontFamilies) {
        return /iPhone OS 15_(0|1)/.test(window.navigator.userAgent)
            ? fontFamilies.filter(function (fontFamily) { return iOSBrokenFonts.indexOf(fontFamily) === -1; })
            : fontFamilies;
    };

    var ForeignObjectRenderer = /** @class */ (function (_super) {
        __extends(ForeignObjectRenderer, _super);
        function ForeignObjectRenderer(context, options) {
            var _this = _super.call(this, context, options) || this;
            _this.canvas = options.canvas ? options.canvas : document.createElement('canvas');
            _this.ctx = _this.canvas.getContext('2d');
            _this.options = options;
            _this.canvas.width = Math.floor(options.width * options.scale);
            _this.canvas.height = Math.floor(options.height * options.scale);
            _this.canvas.style.width = options.width + "px";
            _this.canvas.style.height = options.height + "px";
            _this.ctx.scale(_this.options.scale, _this.options.scale);
            _this.ctx.translate(-options.x, -options.y);
            _this.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (" + options.width + "x" + options.height + " at " + options.x + "," + options.y + ") with scale " + options.scale);
            return _this;
        }
        ForeignObjectRenderer.prototype.render = function (element) {
            return __awaiter(this, void 0, void 0, function () {
                var svg, img;
                return __generator(this, function (_a) {
                    switch (_a.label) {
                        case 0:
                            svg = createForeignObjectSVG(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, element);
                            return [4 /*yield*/, loadSerializedSVG(svg)];
                        case 1:
                            img = _a.sent();
                            if (this.options.backgroundColor) {
                                this.ctx.fillStyle = asString(this.options.backgroundColor);
                                this.ctx.fillRect(0, 0, this.options.width * this.options.scale, this.options.height * this.options.scale);
                            }
                            this.ctx.drawImage(img, -this.options.x * this.options.scale, -this.options.y * this.options.scale);
                            return [2 /*return*/, this.canvas];
                    }
                });
            });
        };
        return ForeignObjectRenderer;
    }(Renderer));
    var loadSerializedSVG = function (svg) {
        return new Promise(function (resolve, reject) {
            var img = new Image();
            img.onload = function () {
                resolve(img);
            };
            img.onerror = reject;
            img.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(svg));
        });
    };

    var Logger = /** @class */ (function () {
        function Logger(_a) {
            var id = _a.id, enabled = _a.enabled;
            this.id = id;
            this.enabled = enabled;
            this.start = Date.now();
        }
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.debug = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.debug === 'function') {
                    // eslint-disable-next-line no-console
                    console.debug.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        Logger.prototype.getTime = function () {
            return Date.now() - this.start;
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.info = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.info === 'function') {
                    // eslint-disable-next-line no-console
                    console.info.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
            }
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.warn = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.warn === 'function') {
                    // eslint-disable-next-line no-console
                    console.warn.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        Logger.prototype.error = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            if (this.enabled) {
                // eslint-disable-next-line no-console
                if (typeof window !== 'undefined' && window.console && typeof console.error === 'function') {
                    // eslint-disable-next-line no-console
                    console.error.apply(console, __spreadArray([this.id, this.getTime() + "ms"], args));
                }
                else {
                    this.info.apply(this, args);
                }
            }
        };
        Logger.instances = {};
        return Logger;
    }());

    var Context = /** @class */ (function () {
        function Context(options, windowBounds) {
            var _a;
            this.windowBounds = windowBounds;
            this.instanceName = "#" + Context.instanceCount++;
            this.logger = new Logger({ id: this.instanceName, enabled: options.logging });
            this.cache = (_a = options.cache) !== null && _a !== void 0 ? _a : new Cache(this, options);
        }
        Context.instanceCount = 1;
        return Context;
    }());

    var html2canvas = function (element, options) {
        if (options === void 0) { options = {}; }
        return renderElement(element, options);
    };
    if (typeof window !== 'undefined') {
        CacheStorage.setContext(window);
    }
    var renderElement = function (element, opts) { return __awaiter(void 0, void 0, void 0, function () {
        var ownerDocument, defaultView, resourceOptions, contextOptions, windowOptions, windowBounds, context, foreignObjectRendering, cloneOptions, documentCloner, clonedElement, container, _a, width, height, left, top, backgroundColor, renderOptions, canvas, renderer, root, renderer;
        var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
        return __generator(this, function (_u) {
            switch (_u.label) {
                case 0:
                    if (!element || typeof element !== 'object') {
                        return [2 /*return*/, Promise.reject('Invalid element provided as first argument')];
                    }
                    ownerDocument = element.ownerDocument;
                    if (!ownerDocument) {
                        throw new Error("Element is not attached to a Document");
                    }
                    defaultView = ownerDocument.defaultView;
                    if (!defaultView) {
                        throw new Error("Document is not attached to a Window");
                    }
                    resourceOptions = {
                        allowTaint: (_b = opts.allowTaint) !== null && _b !== void 0 ? _b : false,
                        imageTimeout: (_c = opts.imageTimeout) !== null && _c !== void 0 ? _c : 15000,
                        proxy: opts.proxy,
                        useCORS: (_d = opts.useCORS) !== null && _d !== void 0 ? _d : false
                    };
                    contextOptions = __assign({ logging: (_e = opts.logging) !== null && _e !== void 0 ? _e : true, cache: opts.cache }, resourceOptions);
                    windowOptions = {
                        windowWidth: (_f = opts.windowWidth) !== null && _f !== void 0 ? _f : defaultView.innerWidth,
                        windowHeight: (_g = opts.windowHeight) !== null && _g !== void 0 ? _g : defaultView.innerHeight,
                        scrollX: (_h = opts.scrollX) !== null && _h !== void 0 ? _h : defaultView.pageXOffset,
                        scrollY: (_j = opts.scrollY) !== null && _j !== void 0 ? _j : defaultView.pageYOffset
                    };
                    windowBounds = new Bounds(windowOptions.scrollX, windowOptions.scrollY, windowOptions.windowWidth, windowOptions.windowHeight);
                    context = new Context(contextOptions, windowBounds);
                    foreignObjectRendering = (_k = opts.foreignObjectRendering) !== null && _k !== void 0 ? _k : false;
                    cloneOptions = {
                        allowTaint: (_l = opts.allowTaint) !== null && _l !== void 0 ? _l : false,
                        onclone: opts.onclone,
                        ignoreElements: opts.ignoreElements,
                        inlineImages: foreignObjectRendering,
                        copyStyles: foreignObjectRendering
                    };
                    context.logger.debug("Starting document clone with size " + windowBounds.width + "x" + windowBounds.height + " scrolled to " + -windowBounds.left + "," + -windowBounds.top);
                    documentCloner = new DocumentCloner(context, element, cloneOptions);
                    clonedElement = documentCloner.clonedReferenceElement;
                    if (!clonedElement) {
                        return [2 /*return*/, Promise.reject("Unable to find element in cloned iframe")];
                    }
                    return [4 /*yield*/, documentCloner.toIFrame(ownerDocument, windowBounds)];
                case 1:
                    container = _u.sent();
                    _a = isBodyElement(clonedElement) || isHTMLElement(clonedElement)
                        ? parseDocumentSize(clonedElement.ownerDocument)
                        : parseBounds(context, clonedElement), width = _a.width, height = _a.height, left = _a.left, top = _a.top;
                    backgroundColor = parseBackgroundColor(context, clonedElement, opts.backgroundColor);
                    renderOptions = {
                        canvas: opts.canvas,
                        backgroundColor: backgroundColor,
                        scale: (_o = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o !== void 0 ? _o : 1,
                        x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
                        y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
                        width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
                        height: (_s = opts.height) !== null && _s !== void 0 ? _s : Math.ceil(height)
                    };
                    if (!foreignObjectRendering) return [3 /*break*/, 3];
                    context.logger.debug("Document cloned, using foreign object rendering");
                    renderer = new ForeignObjectRenderer(context, renderOptions);
                    return [4 /*yield*/, renderer.render(clonedElement)];
                case 2:
                    canvas = _u.sent();
                    return [3 /*break*/, 5];
                case 3:
                    context.logger.debug("Document cloned, element located at " + left + "," + top + " with size " + width + "x" + height + " using computed rendering");
                    context.logger.debug("Starting DOM parsing");
                    root = parseTree(context, clonedElement);
                    if (backgroundColor === root.styles.backgroundColor) {
                        root.styles.backgroundColor = COLORS.TRANSPARENT;
                    }
                    context.logger.debug("Starting renderer for element at " + renderOptions.x + "," + renderOptions.y + " with size " + renderOptions.width + "x" + renderOptions.height);
                    renderer = new CanvasRenderer(context, renderOptions);
                    return [4 /*yield*/, renderer.render(root)];
                case 4:
                    canvas = _u.sent();
                    _u.label = 5;
                case 5:
                    if ((_t = opts.removeContainer) !== null && _t !== void 0 ? _t : true) {
                        if (!DocumentCloner.destroy(container)) {
                            context.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore");
                        }
                    }
                    context.logger.debug("Finished rendering");
                    return [2 /*return*/, canvas];
            }
        });
    }); };
    var parseBackgroundColor = function (context, element, backgroundColorOverride) {
        var ownerDocument = element.ownerDocument;
        // http://www.w3.org/TR/css3-background/#special-backgrounds
        var documentBackgroundColor = ownerDocument.documentElement
            ? parseColor(context, getComputedStyle(ownerDocument.documentElement).backgroundColor)
            : COLORS.TRANSPARENT;
        var bodyBackgroundColor = ownerDocument.body
            ? parseColor(context, getComputedStyle(ownerDocument.body).backgroundColor)
            : COLORS.TRANSPARENT;
        var defaultBackgroundColor = typeof backgroundColorOverride === 'string'
            ? parseColor(context, backgroundColorOverride)
            : backgroundColorOverride === null
                ? COLORS.TRANSPARENT
                : 0xffffffff;
        return element === ownerDocument.documentElement
            ? isTransparent(documentBackgroundColor)
                ? isTransparent(bodyBackgroundColor)
                    ? defaultBackgroundColor
                    : bodyBackgroundColor
                : documentBackgroundColor
            : defaultBackgroundColor;
    };

    return html2canvas;

})));
//# sourceMappingURL=html2canvas.js.map


/***/ }),
/* 495 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Code = function Code(props) {

  // Load graphics
  var customCSSHeight = pacDaAppLocalizer.plugin_url + 'include/img/Custom CSS Height.png';
  var enableDraggable = pacDaAppLocalizer.plugin_url + 'include/img/Enable Draggable.png';
  var codeEditorWindow = pacDaAppLocalizer.plugin_url + 'include/img/Code Editor Window.png';
  var enableDraggableToICE = pacDaAppLocalizer.plugin_url + 'include/img/Enable Draggable TO ICE.png';
  var toICeMH = pacDaAppLocalizer.plugin_url + 'include/img/TO ICE MH.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Code',
      value: JSON.stringify(props.codeData)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleCss = function handleCss(val) {
    props.setCodeData(Object.assign({}, props.codeData, { css: val }));
  };
  var handleJquery = function handleJquery(val) {
    props.setCodeData(Object.assign({}, props.codeData, { jquery: val }));
  };
  var handlePhp = function handlePhp(val) {
    props.setCodeData(Object.assign({}, props.codeData, { php: val }));
  };
  var handleRunPhp = function handleRunPhp(val) {
    props.setCodeData(Object.assign({}, props.codeData, { runPhp: val }));
  };
  var handleEnableResize = function handleEnableResize(val) {
    props.setCodeData(Object.assign({}, props.codeData, { enableResize: val }));
  };
  var handleBoxHeight = function handleBoxHeight(val) {
    props.setCodeData(Object.assign({}, props.codeData, { boxHeight: val }));
  };
  var handleBoxHeightValue = function handleBoxHeightValue(val) {
    props.setCodeData(Object.assign({}, props.codeData, { boxHeightValue: val }));
  };

  var handleEnableResizeCe = function handleEnableResizeCe(val) {
    props.setCodeData(Object.assign({}, props.codeData, { enableResizeCe: val }));
  };
  var handleBoxHeightCe = function handleBoxHeightCe(val) {
    props.setCodeData(Object.assign({}, props.codeData, { boxHeightCe: val }));
  };
  var handleBoxHeightValueCe = function handleBoxHeightValueCe(val) {
    props.setCodeData(Object.assign({}, props.codeData, { boxHeightValueCe: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_code' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_code_settings' },
      wp.element.createElement(
        'div',
        { className: 'pac_da_code_window_card' },
        codeEditorWindow !== undefined ? wp.element.createElement('img', { className: 'img', src: codeEditorWindow, alt: 'Setting Image' }) : wp.element.createElement(
          'svg',
          { width: '261', height: '163', viewBox: '0 0 261 163', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
          wp.element.createElement('rect', { width: '260.8', height: '163', rx: '3', fill: '#D9D9D9' })
        ),
        wp.element.createElement(
          'div',
          { className: 'setting' },
          wp.element.createElement(
            'span',
            null,
            'Enable Custom Code Editor Window In Visual Builder'
          ),
          wp.element.createElement(
            'p',
            null,
            'This feature allows you to edit CSS, jQuery, and PHP code within a custom code editor window inside the Visual Builder. To activate this feature, please enable at least one of the tabs below.'
          ),
          wp.element.createElement(
            'span',
            null,
            'Show CSS Tab'
          ),
          wp.element.createElement(
            'p',
            null,
            'There are many locations in Divi to add CSS, and it can be confusing and disorganized. It is also very inconvenient to need to go find the custom CSS box in the Divi Theme Options just to add some code. So we have solved this by making the CSS code universal, meaning you can view and edit the same CSS code from a new code editor window inside the Visual Builder which synchronizes CSS with the Custom CSS code box in Divi Theme Options>General. Enabling this setting will show the CSS tab in that custom code window in the Divi Visual Builder.'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.codeData.css, setBtnValue: handleCss }),
          wp.element.createElement(
            'span',
            null,
            'Show jQuery Tab'
          ),
          wp.element.createElement(
            'p',
            null,
            'When you need to add jQuery or other JavaScript in Divi, the best place to add this is in the <head> code editor in the Divi Theme Options>Integrations tab. But this is an inconvenient and hidden location, and the terminology can be confusing. To solve this, we have created a new way to view and edit jQuery in Divi by adding a new custom code editor window in the Divi Visual Builder which synchronizes jQuery with the <head> code box in Divi Theme Options>Integrations. Enabling this setting will show the jQuery tab in that custom code window in the Divi Visual Builder.'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.codeData.jquery, setBtnValue: handleJquery }),
          wp.element.createElement(
            'span',
            null,
            'Show PHP Tab'
          ),
          wp.element.createElement(
            'p',
            null,
            'There are many situations that require you to modify the core structure of your Divi website or add some additional functionality. Many tutorials on our blog and other WordPress functions require pasting PHP code into your website, but unfortunately there is no option in Divi to paste the snippet or to extend the theme with PHP code. We have solved this issue by creating a new way to add PHP code in Divi by adding a new custom code editor window in the Divi Visual Builder with a dedicate PHP editor. Enabling this setting will show the PHP tab in that custom code window in the Divi Visual Builder.'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.codeData.php, setBtnValue: handlePhp }),
          wp.element.createElement(
            'span',
            null,
            'Activate PHP Code'
          ),
          wp.element.createElement(
            'div',
            null,
            'Custom PHP code must be handled carefully when working on live websites. Incorrectly formatted or written PHP code can cause errors to display, or even worse, break the site completely by causing a fatal error. However, if there is a fatal error caused by custom PHP code that you add to the PHP tab of the Divi Assistant code editor, you don\u2019t need to worry! This is because we have created several special error handling features for this situation.',
            wp.element.createElement(
              'ul',
              null,
              wp.element.createElement(
                'li',
                null,
                'The PHP code will not run unless this setting is enabled. This means if there is any issue, you can always come here to simply disable this setting, and the PHP code will no longer run. This provides the opportunity to fix the error in the code without displaying an error message or breaking the site.'
              ),
              wp.element.createElement(
                'li',
                null,
                'The PHP code will not run when the Visual Builder is open. This is intentionally designed to allow you to access the code editor even if there is an  issue.'
              ),
              wp.element.createElement(
                'li',
                null,
                'If there is any fatal error caused by PHP code in the code editor provided by Divi Assistant, it will show the error details at the bottom of the website on the frontend instead of crashing the site. You can then come here to disable the code or enable the Visual Builder, open the code editor, and edit or remove the code to fix the error.'
              )
            ),
            'Enabling this setting will activate and run the PHP code in the PHP tab in that custom code window in the Divi Visual Builder.'
          ),
          wp.element.createElement(_Togglebutton2.default, { btnValue: props.codeData.runPhp, setBtnValue: handleRunPhp })
        )
      ),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: enableDraggable, btnValue: props.codeData.enableResize, setBtnValue: handleEnableResize, title: 'Enable Draggable Theme Options Custom CSS Code Editor Height', description: 'The main CSS editor in the Divi Theme Options is a great feature, but the short height makes it challenging to use properly. Enabling this setting will make the CSS code editor height draggable to any height, which will greatly improve your user experience when viewing, writing, and editing code.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: customCSSHeight, btnValue: props.codeData.boxHeight, setBtnValue: handleBoxHeight, fieldTitle: 'Minimum Height', fieldValue: props.codeData.boxHeightValue, setFieldValue: handleBoxHeightValue, placeholder: '313px', title: 'Theme Options Custom CSS Code Editor Minimum Height', description: 'The main CSS box in the Divi Theme Options comes with a default height that is too short to properly view or edit code. With this feature, you can enter your desired minimum height in pixels into the input field below to set the default height of the code editor.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: enableDraggableToICE, btnValue: props.codeData.enableResizeCe, setBtnValue: handleEnableResizeCe, title: 'Enable Draggable Theme Options Integration Code Editor Height', description: 'The integration code editor box in Divi>Theme Options>Integration is great feature for adding custom JavaScript, but the short height makes it challenging to use properly. Enabling this setting will make the integration code editor height draggable to any height, which will greatly improve your user experience when viewing, writing, and editing code.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: toICeMH, btnValue: props.codeData.boxHeightCe, setBtnValue: handleBoxHeightCe, fieldTitle: 'Minimum Height', fieldValue: props.codeData.boxHeightValueCe, setFieldValue: handleBoxHeightValueCe, placeholder: '313px', title: 'Theme Options Integration Code Editor Minimum Height', description: 'The integration code editor box in Divi>Theme Options>Integration is great feature for adding custom JavaScript, but it comes with a default height that is too short to properly view or edit code. With this feature, you can enter your desired minimum height in pixels into the input field below to set the default height of the code editor.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = Code;

/***/ }),
/* 496 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

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; };

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _reactColor = __webpack_require__(91);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var GlobalColors = function GlobalColors(props) {
  var _useState = (0, _react.useState)(null),
      _useState2 = _slicedToArray(_useState, 2),
      gColorGCID = _useState2[0],
      setgColorGCID = _useState2[1];

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';
  var configureYourGlobalColors = pacDaAppLocalizer.plugin_url + 'include/img/Configure Your global Colors.png';

  var saveUpdatedGlobalColor = function saveUpdatedGlobalColor() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'updateGlobalColors',
      value: JSON.stringify(props.diviGlobalColor),
      label: JSON.stringify(props.diviGlobalColorLabel)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };
  var generateRandomString = function generateRandomString() {
    var characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
    var result = '';

    for (var i = 0; i < 32; i++) {
      var randomIndex = Math.floor(Math.random() * characters.length);
      result += characters.charAt(randomIndex);
    }
    result = 'gcid-' + result.slice(0, 8) + '-' + result.slice(8, 12) + '-' + result.slice(12, 16) + '-' + result.slice(16, 20) + '-' + result.slice(20);
    return result;
  };
  var insertNewValue = function insertNewValue() {
    var index = generateRandomString();
    var color = '#ffffff';
    var active = 'yes';
    var newValue = _defineProperty({}, index, { color: color, active: active });
    var updatedData = Object.assign({}, props.diviGlobalColor);
    var mergedData = Object.assign({}, newValue, updatedData);
    props.setDiviGlobalColor(mergedData);
    props.setDiviGlobalColorLabel(Object.assign({}, props.diviGlobalColorLabel, _defineProperty({}, index, null)));
  };
  var deleteSlectedGColor = function deleteSlectedGColor(ind) {
    var afterDelete = Object.assign({}, props.diviGlobalColor);
    delete afterDelete[ind];
    props.setDiviGlobalColor(afterDelete);
  };
  var checkFirstIndex = function checkFirstIndex(globalColors) {
    var activeKeys = Object.keys(globalColors).filter(function (key) {
      return globalColors[key].active === 'yes';
    });
    return activeKeys[0];
  };
  var checkLastIndex = function checkLastIndex(globalColors) {
    var activeKeys = Object.keys(globalColors).filter(function (key) {
      return globalColors[key].active === 'yes';
    });
    return activeKeys[activeKeys.length - 1];
  };
  var moveClickedGColorUp = function moveClickedGColorUp(ind) {
    var keys = Object.keys(props.diviGlobalColor);
    var currentIndex = keys.findIndex(function (key) {
      return key === ind;
    });
    var nextIndex = (currentIndex - 1) % keys.length;
    var updatedPosition = {};
    for (var i = 0; i < keys.length; i++) {
      if (i === currentIndex) {
        updatedPosition[keys[nextIndex]] = props.diviGlobalColor[keys[nextIndex]];
      } else if (i === nextIndex) {
        updatedPosition[keys[currentIndex]] = props.diviGlobalColor[keys[currentIndex]];
      } else {
        updatedPosition[keys[i]] = props.diviGlobalColor[keys[i]];
      }
    }
    props.setDiviGlobalColor(updatedPosition);
  };
  var moveClickedGColorDown = function moveClickedGColorDown(ind) {
    var keys = Object.keys(props.diviGlobalColor);
    var currentIndex = keys.findIndex(function (key) {
      return key === ind;
    });
    var nextIndex = (currentIndex + 1) % keys.length;
    var updatedPosition = {};
    for (var i = 0; i < keys.length; i++) {
      if (i === currentIndex) {
        updatedPosition[keys[nextIndex]] = props.diviGlobalColor[keys[nextIndex]];
      } else if (i === nextIndex) {
        updatedPosition[keys[currentIndex]] = props.diviGlobalColor[keys[currentIndex]];
      } else {
        updatedPosition[keys[i]] = props.diviGlobalColor[keys[i]];
      }
    }
    props.setDiviGlobalColor(updatedPosition);
  };
  var showColorPicker = function showColorPicker(key) {
    setgColorGCID(key);
  };
  var hideColorPicker = function hideColorPicker(key) {
    setgColorGCID(null);
  };
  var updateColor = function updateColor(e) {
    var newValue = e.rgb.a !== 1 ? 'rgba(' + e.rgb.r + ',' + e.rgb.g + ',' + e.rgb.b + ',' + e.rgb.a + ')' : e.hex;
    props.setDiviGlobalColor(function (prevData) {
      return Object.assign({}, prevData, _defineProperty({}, gColorGCID, Object.assign({}, prevData[gColorGCID], {
        color: newValue
      })));
    });
  };
  var handleLabel = function handleLabel(e, index) {
    var updatedLabel = Object.assign({}, props.diviGlobalColorLabel);
    updatedLabel[index] = e.target.value;
    props.setDiviGlobalColorLabel(updatedLabel);
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveUpdatedGlobalColor },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles global' },
      wp.element.createElement('img', { className: 'img', src: configureYourGlobalColors, alt: 'Global Colors thumbnail' }),
      wp.element.createElement(
        'div',
        { className: 'pac_da_styles_inner' },
        wp.element.createElement(
          'span',
          null,
          'Manage Your Global Colors'
        ),
        wp.element.createElement(
          'p',
          null,
          'The Divi theme includes a great dynamic color system called Global Colors which allow you to create and control colors across your entire website. When you change a global color, all elements in any Divi section, row, or module using that color are updated. This feature in Divi Assistant synchronizes with the Divi global colors and makes it more convenient for you to set up or modify your global colors on the site from this one central location. With the features below, you can change the order of how the global colors appear in the visual builder by clicking the up and down arrows, delete unwanted colors, add new colors, update existing colors, and even write helpful admin labels for personal reference!'
        ),
        wp.element.createElement(
          'div',
          { className: 'addNewGlobalColor', onClick: insertNewValue },
          wp.element.createElement(
            'svg',
            { fill: '#a2b0c1', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28', preserveAspectRatio: 'xMidYMid meet', shapeRendering: 'geometricPrecision' },
            wp.element.createElement(
              'g',
              null,
              wp.element.createElement('path', { d: 'M18 13h-3v-3a1 1 0 0 0-2 0v3h-3a1 1 0 0 0 0 2h3v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2z', fillRule: 'evenodd' })
            )
          ),
          wp.element.createElement(
            'span',
            null,
            'Add New Global Color'
          )
        ),
        wp.element.createElement(
          'div',
          { className: 'pac_da_manage_global_color' },
          Object.keys(props.diviGlobalColor).map(function (key) {
            return wp.element.createElement(
              _react2.default.Fragment,
              { key: key },
              props.diviGlobalColor[key].active === 'yes' ? wp.element.createElement(
                'div',
                { className: 'color_list_item', 'data-gcid': key },
                gColorGCID !== null && gColorGCID === key ? wp.element.createElement(
                  _react2.default.Fragment,
                  null,
                  wp.element.createElement(
                    'div',
                    { className: props.diviGlobalColor[key].color === 'rgb(255, 255, 255)' || props.diviGlobalColor[key].color === '#fff' || props.diviGlobalColor[key].color === '#ffffff' || props.diviGlobalColor[key].color === '#FFF' || props.diviGlobalColor[key].color === '#FFFFFF' ? 'big circle global white' : 'big circle global' },
                    wp.element.createElement(
                      'div',
                      { style: { backgroundColor: _typeof(props.diviGlobalColor[key].color) === 'object' ? 'rgba(' + props.diviGlobalColor[key].color.r + ',' + props.diviGlobalColor[key].color.g + ',' + props.diviGlobalColor[key].color.b + ',' + props.diviGlobalColor[key].color.a + ')' : props.diviGlobalColor[key].color } },
                      wp.element.createElement(
                        'svg',
                        { className: 'show', fill: props.diviGlobalColor[key].color === '#ffffff' | props.diviGlobalColor[key].color === 'rgb(255, 255, 255)' ? "#2B87DA" : _typeof(props.diviGlobalColor[key].color) === 'object' ? props.diviGlobalColor[key].color.a === 0 ? '#2B87DA' : "#ffffff" : "#ffffff", width: '26', height: '26', viewBox: '0 0 26 26', xmlns: 'http://www.w3.org/2000/svg' },
                        wp.element.createElement('path', { d: 'M19.0986 6.21793C18.8937 6.01292 18.6503 5.8503 18.3825 5.73935C18.1147 5.6284 17.8276 5.57129 17.5377 5.57129C17.2478 5.57129 16.9607 5.6284 16.6929 5.73935C16.4251 5.8503 16.1817 6.01292 15.9768 6.21793L14.4155 7.7785L13.8953 7.25757C13.8269 7.18926 13.7458 7.13508 13.6565 7.09813C13.5672 7.06118 13.4715 7.04218 13.3748 7.04221C13.2782 7.04224 13.1825 7.06131 13.0932 7.09833C13.0039 7.13534 12.9228 7.18958 12.8545 7.25794C12.7862 7.3263 12.732 7.40745 12.6951 7.49674C12.6581 7.58604 12.6391 7.68175 12.6392 7.77839C12.6392 7.87503 12.6583 7.97072 12.6953 8.05999C12.7323 8.14927 12.7865 8.23037 12.8549 8.29869L17.0171 12.4602C17.1564 12.591 17.3412 12.6625 17.5322 12.6595C17.7233 12.6566 17.9057 12.5794 18.0409 12.4443C18.1761 12.3092 18.2534 12.1269 18.2565 11.9358C18.2596 11.7447 18.1882 11.56 18.0575 11.4206L17.5373 10.9004L19.0986 9.33907C19.5124 8.92513 19.7449 8.3638 19.7449 7.7785C19.7449 7.1932 19.5124 6.63186 19.0986 6.21793Z' }),
                        wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M12.8775 9.31714L7.15467 15.0407C6.83172 15.3635 6.61678 15.7784 6.53944 16.2284C6.46209 16.6784 6.52614 17.1413 6.72277 17.5534L5.57129 18.7048L6.61167 19.746L7.76315 18.5937C8.17515 18.7905 8.63801 18.8546 9.08799 18.7774C9.53797 18.7002 9.95295 18.4854 10.2758 18.1626L15.9986 12.4398L12.8775 9.31641V9.31714ZM13.9179 12.439L12.8775 11.3986L8.19505 16.0811C8.06102 16.2198 7.98686 16.4057 7.98853 16.5986C7.99021 16.7915 8.06759 16.9761 8.20401 17.1125C8.34043 17.2489 8.52497 17.3263 8.71788 17.328C8.9108 17.3296 9.09666 17.2555 9.23543 17.1215L13.9179 12.439Z' })
                      )
                    )
                  ),
                  wp.element.createElement('div', { className: 'overlay', onClick: hideColorPicker }),
                  wp.element.createElement(_reactColor.ChromePicker, { name: 'pickerToUpdateGC', color: props.diviGlobalColor[key].color, onChange: updateColor })
                ) : wp.element.createElement(
                  'div',
                  { onClick: function onClick() {
                      return showColorPicker(key);
                    }, key: key, className: props.diviGlobalColor[key].color === 'rgb(255, 255, 255)' || props.diviGlobalColor[key].color === '#fff' || props.diviGlobalColor[key].color === '#ffffff' || props.diviGlobalColor[key].color === '#FFF' || props.diviGlobalColor[key].color === '#FFFFFF' ? 'circle global white' : 'circle global' },
                  wp.element.createElement('div', { 'data-gcid': key, style: { backgroundColor: props.diviGlobalColor[key].color } })
                ),
                wp.element.createElement('input', { name: 'labelGlobalColors', type: 'text', placeholder: 'Label', autoComplete: 'off', value: props.diviGlobalColorLabel[key] !== undefined && props.diviGlobalColorLabel[key] !== null ? props.diviGlobalColorLabel[key] : '', onChange: function onChange(e) {
                    return handleLabel(e, key);
                  } }),
                checkFirstIndex(props.diviGlobalColor) !== key ? wp.element.createElement(
                  'svg',
                  { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg', onClick: function onClick() {
                      return moveClickedGColorUp(key);
                    } },
                  wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M21.0002 17.0475C21.0002 17.2888 20.8989 17.5364 20.7029 17.7205C20.3043 18.0951 19.6624 18.0951 19.2705 17.7205L13.5002 12.2983L7.72995 17.7205C7.33806 18.0951 6.68941 18.0951 6.29752 17.7205C5.89887 17.3459 5.89887 16.7491 6.29752 16.3745L12.784 10.2792C13.1827 9.90464 13.8245 9.90464 14.2164 10.2792L20.7029 16.3745C20.8989 16.5586 21.0002 16.8062 21.0002 17.0475Z' })
                  )
                ) : '',
                checkLastIndex(props.diviGlobalColor) !== key ? wp.element.createElement(
                  'svg',
                  { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg', onClick: function onClick() {
                      return moveClickedGColorDown(key);
                    } },
                  wp.element.createElement(
                    'g',
                    null,
                    wp.element.createElement('path', { d: 'M6.99977 10.9525C6.99977 10.7112 7.10113 10.4636 7.29707 10.2795C7.69572 9.90488 8.33761 9.90488 8.72951 10.2795L14.4998 15.7017L20.27 10.2795C20.6619 9.90488 21.3106 9.90488 21.7025 10.2795C22.1011 10.6541 22.1011 11.2509 21.7025 11.6255L15.216 17.7208C14.8173 18.0954 14.1755 18.0954 13.7836 17.7208L7.29707 11.6255C7.10113 11.4414 6.99977 11.1938 6.99977 10.9525Z' })
                  )
                ) : '',
                wp.element.createElement(
                  'svg',
                  { width: '28', height: '28', viewBox: '0 0 28 28', fill: '#A4AFC0', xmlns: 'http://www.w3.org/2000/svg', onClick: function onClick() {
                      return deleteSlectedGColor(key);
                    } },
                  wp.element.createElement('path', { fillRule: 'evenodd', clipRule: 'evenodd', d: 'M20.2501 9.25H17.5001V8C17.4974 7.53668 17.3122 7.093 16.9846 6.76538C16.657 6.43776 16.2134 6.25263 15.7501 6.25H12.7501C12.2859 6.25 11.8408 6.43438 11.5126 6.76257C11.1845 7.09076 11.0001 7.53587 11.0001 8V9.25H7.75007C7.55116 9.25 7.36039 9.32895 7.21973 9.4696C7.07908 9.61026 7.00007 9.80109 7.00007 10C6.99872 10.0989 7.01724 10.197 7.05445 10.2886C7.09167 10.3802 7.14683 10.4634 7.21674 10.5333C7.28666 10.6032 7.36989 10.6583 7.46149 10.6956C7.5531 10.7328 7.6512 10.7513 7.75007 10.75H8.50007L9.14008 20.12C9.17041 20.5613 9.36676 20.9747 9.68958 21.2771C10.0124 21.5795 10.4377 21.7485 10.8801 21.75H17.5201C17.9635 21.7487 18.39 21.58 18.7145 21.2778C19.0389 20.9756 19.2373 20.5622 19.2701 20.12L19.9001 10.75H20.2501C20.449 10.75 20.6398 10.6709 20.7804 10.5303C20.9211 10.3896 21.0001 10.1989 21.0001 10C20.9975 9.80189 20.9176 9.61263 20.7775 9.47253C20.6374 9.33244 20.4482 9.25259 20.2501 9.25ZM12.5001 8C12.5001 7.9337 12.5264 7.87013 12.5733 7.82324C12.6202 7.77636 12.6838 7.75 12.7501 7.75H15.7501C15.8164 7.75 15.88 7.77636 15.9269 7.82324C15.9738 7.87013 16.0001 7.9337 16.0001 8V9.25H12.5001V8ZM17.7701 20C17.765 20.0628 17.7365 20.1213 17.6901 20.1639C17.6438 20.2066 17.5831 20.2302 17.5201 20.23H10.8901C10.8586 20.2313 10.8271 20.2264 10.7974 20.2156C10.7678 20.2047 10.7406 20.1881 10.7174 20.1667C10.6942 20.1454 10.6754 20.1197 10.6621 20.0911C10.6489 20.0624 10.6414 20.0315 10.6401 20L10.0101 10.73H18.4001L17.7701 20ZM12.7501 17.75C12.6512 17.7513 12.5531 17.7328 12.4615 17.6956C12.3699 17.6583 12.2867 17.6032 12.2167 17.5333C12.1468 17.4634 12.0917 17.3802 12.0545 17.2886C12.0172 17.197 11.9987 17.0989 12.0001 17V14C12.0001 13.8011 12.0791 13.6103 12.2197 13.4696C12.3604 13.329 12.5512 13.25 12.7501 13.25C12.9482 13.2526 13.1374 13.3324 13.2775 13.4725C13.4176 13.6126 13.4975 13.8019 13.5001 14V17C13.5001 17.1989 13.4211 17.3896 13.2804 17.5303C13.1398 17.6709 12.949 17.75 12.7501 17.75ZM15.4615 17.6956C15.5531 17.7328 15.6512 17.7513 15.7501 17.75C15.949 17.75 16.1398 17.6709 16.2804 17.5303C16.4211 17.3896 16.5001 17.1989 16.5001 17V14C16.4975 13.8019 16.4176 13.6126 16.2775 13.4725C16.1374 13.3324 15.9482 13.2526 15.7501 13.25C15.5512 13.25 15.3604 13.329 15.2197 13.4696C15.0791 13.6103 15.0001 13.8011 15.0001 14V17C14.9987 17.0989 15.0172 17.197 15.0545 17.2886C15.0917 17.3802 15.1468 17.4634 15.2167 17.5333C15.2867 17.6032 15.3699 17.6583 15.4615 17.6956Z' })
                )
              ) : ''
            );
          })
        )
      )
    )
  );
};
exports.default = GlobalColors;

/***/ }),
/* 497 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _StyleSettings = __webpack_require__(29);

var _StyleSettings2 = _interopRequireDefault(_StyleSettings);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var HeadingStyles = function HeadingStyles(props) {

  var handleStylesH1 = function handleStylesH1(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1: val }));
  };
  var handleStylesH1DpFF = function handleStylesH1DpFF(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpFF: val }));
  };
  var handleStylesH1DpFW = function handleStylesH1DpFW(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpFW: val }));
  };
  var handleStylesH1DpFS = function handleStylesH1DpFS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpFS: val }));
  };
  var handleStylesH1DpUColor = function handleStylesH1DpUColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpUColor: val }));
  };
  var handleStylesH1DpUStyle = function handleStylesH1DpUStyle(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpUStyle: val }));
  };
  var handleStylesH1DpColor = function handleStylesH1DpColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpColor: val }));
  };
  var handleStylesH1DpTS = function handleStylesH1DpTS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpTS: val }));
  };
  var handleStylesH1DpLS = function handleStylesH1DpLS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpLS: val }));
  };
  var handleStylesH1DpLH = function handleStylesH1DpLH(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1DpLH: val }));
  };
  var handleStylesH1TbFF = function handleStylesH1TbFF(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbFF: val }));
  };
  var handleStylesH1TbFW = function handleStylesH1TbFW(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbFW: val }));
  };
  var handleStylesH1TbFS = function handleStylesH1TbFS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbFS: val }));
  };
  var handleStylesH1TbUColor = function handleStylesH1TbUColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbUColor: val }));
  };
  var handleStylesH1TbUStyle = function handleStylesH1TbUStyle(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbUStyle: val }));
  };
  var handleStylesH1TbColor = function handleStylesH1TbColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbColor: val }));
  };
  var handleStylesH1TbTS = function handleStylesH1TbTS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbTS: val }));
  };
  var handleStylesH1TbLS = function handleStylesH1TbLS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbLS: val }));
  };
  var handleStylesH1TbLH = function handleStylesH1TbLH(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1TbLH: val }));
  };
  var handleStylesH1PhFF = function handleStylesH1PhFF(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhFF: val }));
  };
  var handleStylesH1PhFW = function handleStylesH1PhFW(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhFW: val }));
  };
  var handleStylesH1PhFS = function handleStylesH1PhFS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhFS: val }));
  };
  var handleStylesH1PhUColor = function handleStylesH1PhUColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhUColor: val }));
  };
  var handleStylesH1PhUStyle = function handleStylesH1PhUStyle(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhUStyle: val }));
  };
  var handleStylesH1PhColor = function handleStylesH1PhColor(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhColor: val }));
  };
  var handleStylesH1PhTS = function handleStylesH1PhTS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhTS: val }));
  };
  var handleStylesH1PhLS = function handleStylesH1PhLS(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhLS: val }));
  };
  var handleStylesH1PhLH = function handleStylesH1PhLH(val) {
    props.setStylesH1(Object.assign({}, props.stylesH1, { H1PhLH: val }));
  };
  var handleStylesH2 = function handleStylesH2(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2: val }));
  };
  var handleStylesH2DpFF = function handleStylesH2DpFF(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpFF: val }));
  };
  var handleStylesH2DpFW = function handleStylesH2DpFW(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpFW: val }));
  };
  var handleStylesH2DpFS = function handleStylesH2DpFS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpFS: val }));
  };
  var handleStylesH2DpUColor = function handleStylesH2DpUColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpUColor: val }));
  };
  var handleStylesH2DpUStyle = function handleStylesH2DpUStyle(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpUStyle: val }));
  };
  var handleStylesH2DpColor = function handleStylesH2DpColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpColor: val }));
  };
  var handleStylesH2DpTS = function handleStylesH2DpTS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpTS: val }));
  };
  var handleStylesH2DpLS = function handleStylesH2DpLS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpLS: val }));
  };
  var handleStylesH2DpLH = function handleStylesH2DpLH(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2DpLH: val }));
  };
  var handleStylesH2TbFF = function handleStylesH2TbFF(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbFF: val }));
  };
  var handleStylesH2TbFW = function handleStylesH2TbFW(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbFW: val }));
  };
  var handleStylesH2TbFS = function handleStylesH2TbFS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbFS: val }));
  };
  var handleStylesH2TbUColor = function handleStylesH2TbUColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbUColor: val }));
  };
  var handleStylesH2TbUStyle = function handleStylesH2TbUStyle(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbUStyle: val }));
  };
  var handleStylesH2TbColor = function handleStylesH2TbColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbColor: val }));
  };
  var handleStylesH2TbTS = function handleStylesH2TbTS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbTS: val }));
  };
  var handleStylesH2TbLS = function handleStylesH2TbLS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbLS: val }));
  };
  var handleStylesH2TbLH = function handleStylesH2TbLH(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2TbLH: val }));
  };
  var handleStylesH2PhFF = function handleStylesH2PhFF(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhFF: val }));
  };
  var handleStylesH2PhFW = function handleStylesH2PhFW(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhFW: val }));
  };
  var handleStylesH2PhFS = function handleStylesH2PhFS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhFS: val }));
  };
  var handleStylesH2PhUColor = function handleStylesH2PhUColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhUColor: val }));
  };
  var handleStylesH2PhUStyle = function handleStylesH2PhUStyle(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhUStyle: val }));
  };
  var handleStylesH2PhColor = function handleStylesH2PhColor(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhColor: val }));
  };
  var handleStylesH2PhTS = function handleStylesH2PhTS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhTS: val }));
  };
  var handleStylesH2PhLS = function handleStylesH2PhLS(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhLS: val }));
  };
  var handleStylesH2PhLH = function handleStylesH2PhLH(val) {
    props.setStylesH2(Object.assign({}, props.stylesH2, { H2PhLH: val }));
  };
  var handleStylesH3 = function handleStylesH3(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3: val }));
  };
  var handleStylesH3DpFF = function handleStylesH3DpFF(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpFF: val }));
  };
  var handleStylesH3DpFW = function handleStylesH3DpFW(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpFW: val }));
  };
  var handleStylesH3DpFS = function handleStylesH3DpFS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpFS: val }));
  };
  var handleStylesH3DpUColor = function handleStylesH3DpUColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpUColor: val }));
  };
  var handleStylesH3DpUStyle = function handleStylesH3DpUStyle(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpUStyle: val }));
  };
  var handleStylesH3DpColor = function handleStylesH3DpColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpColor: val }));
  };
  var handleStylesH3DpTS = function handleStylesH3DpTS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpTS: val }));
  };
  var handleStylesH3DpLS = function handleStylesH3DpLS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpLS: val }));
  };
  var handleStylesH3DpLH = function handleStylesH3DpLH(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3DpLH: val }));
  };
  var handleStylesH3TbFF = function handleStylesH3TbFF(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbFF: val }));
  };
  var handleStylesH3TbFW = function handleStylesH3TbFW(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbFW: val }));
  };
  var handleStylesH3TbFS = function handleStylesH3TbFS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbFS: val }));
  };
  var handleStylesH3TbUColor = function handleStylesH3TbUColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbUColor: val }));
  };
  var handleStylesH3TbUStyle = function handleStylesH3TbUStyle(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbUStyle: val }));
  };
  var handleStylesH3TbColor = function handleStylesH3TbColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbColor: val }));
  };
  var handleStylesH3TbTS = function handleStylesH3TbTS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbTS: val }));
  };
  var handleStylesH3TbLS = function handleStylesH3TbLS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbLS: val }));
  };
  var handleStylesH3TbLH = function handleStylesH3TbLH(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3TbLH: val }));
  };
  var handleStylesH3PhFF = function handleStylesH3PhFF(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhFF: val }));
  };
  var handleStylesH3PhFW = function handleStylesH3PhFW(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhFW: val }));
  };
  var handleStylesH3PhFS = function handleStylesH3PhFS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhFS: val }));
  };
  var handleStylesH3PhUColor = function handleStylesH3PhUColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhUColor: val }));
  };
  var handleStylesH3PhUStyle = function handleStylesH3PhUStyle(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhUStyle: val }));
  };
  var handleStylesH3PhColor = function handleStylesH3PhColor(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhColor: val }));
  };
  var handleStylesH3PhTS = function handleStylesH3PhTS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhTS: val }));
  };
  var handleStylesH3PhLS = function handleStylesH3PhLS(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhLS: val }));
  };
  var handleStylesH3PhLH = function handleStylesH3PhLH(val) {
    props.setStylesH3(Object.assign({}, props.stylesH3, { H3PhLH: val }));
  };
  var handleStylesH4 = function handleStylesH4(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4: val }));
  };
  var handleStylesH4DpFF = function handleStylesH4DpFF(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpFF: val }));
  };
  var handleStylesH4DpFW = function handleStylesH4DpFW(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpFW: val }));
  };
  var handleStylesH4DpFS = function handleStylesH4DpFS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpFS: val }));
  };
  var handleStylesH4DpUColor = function handleStylesH4DpUColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpUColor: val }));
  };
  var handleStylesH4DpUStyle = function handleStylesH4DpUStyle(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpUStyle: val }));
  };
  var handleStylesH4DpColor = function handleStylesH4DpColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpColor: val }));
  };
  var handleStylesH4DpTS = function handleStylesH4DpTS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpTS: val }));
  };
  var handleStylesH4DpLS = function handleStylesH4DpLS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpLS: val }));
  };
  var handleStylesH4DpLH = function handleStylesH4DpLH(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4DpLH: val }));
  };
  var handleStylesH4TbFF = function handleStylesH4TbFF(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbFF: val }));
  };
  var handleStylesH4TbFW = function handleStylesH4TbFW(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbFW: val }));
  };
  var handleStylesH4TbFS = function handleStylesH4TbFS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbFS: val }));
  };
  var handleStylesH4TbUColor = function handleStylesH4TbUColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbUColor: val }));
  };
  var handleStylesH4TbUStyle = function handleStylesH4TbUStyle(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbUStyle: val }));
  };
  var handleStylesH4TbColor = function handleStylesH4TbColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbColor: val }));
  };
  var handleStylesH4TbTS = function handleStylesH4TbTS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbTS: val }));
  };
  var handleStylesH4TbLS = function handleStylesH4TbLS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbLS: val }));
  };
  var handleStylesH4TbLH = function handleStylesH4TbLH(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4TbLH: val }));
  };
  var handleStylesH4PhFF = function handleStylesH4PhFF(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhFF: val }));
  };
  var handleStylesH4PhFW = function handleStylesH4PhFW(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhFW: val }));
  };
  var handleStylesH4PhFS = function handleStylesH4PhFS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhFS: val }));
  };
  var handleStylesH4PhUColor = function handleStylesH4PhUColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhUColor: val }));
  };
  var handleStylesH4PhUStyle = function handleStylesH4PhUStyle(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhUStyle: val }));
  };
  var handleStylesH4PhColor = function handleStylesH4PhColor(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhColor: val }));
  };
  var handleStylesH4PhTS = function handleStylesH4PhTS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhTS: val }));
  };
  var handleStylesH4PhLS = function handleStylesH4PhLS(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhLS: val }));
  };
  var handleStylesH4PhLH = function handleStylesH4PhLH(val) {
    props.setStylesH4(Object.assign({}, props.stylesH4, { H4PhLH: val }));
  };
  var handleStylesH5 = function handleStylesH5(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5: val }));
  };
  var handleStylesH5DpFF = function handleStylesH5DpFF(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpFF: val }));
  };
  var handleStylesH5DpFW = function handleStylesH5DpFW(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpFW: val }));
  };
  var handleStylesH5DpFS = function handleStylesH5DpFS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpFS: val }));
  };
  var handleStylesH5DpUColor = function handleStylesH5DpUColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpUColor: val }));
  };
  var handleStylesH5DpUStyle = function handleStylesH5DpUStyle(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpUStyle: val }));
  };
  var handleStylesH5DpColor = function handleStylesH5DpColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpColor: val }));
  };
  var handleStylesH5DpTS = function handleStylesH5DpTS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpTS: val }));
  };
  var handleStylesH5DpLS = function handleStylesH5DpLS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpLS: val }));
  };
  var handleStylesH5DpLH = function handleStylesH5DpLH(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5DpLH: val }));
  };
  var handleStylesH5TbFF = function handleStylesH5TbFF(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbFF: val }));
  };
  var handleStylesH5TbFW = function handleStylesH5TbFW(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbFW: val }));
  };
  var handleStylesH5TbFS = function handleStylesH5TbFS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbFS: val }));
  };
  var handleStylesH5TbUColor = function handleStylesH5TbUColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbUColor: val }));
  };
  var handleStylesH5TbUStyle = function handleStylesH5TbUStyle(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbUStyle: val }));
  };
  var handleStylesH5TbColor = function handleStylesH5TbColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbColor: val }));
  };
  var handleStylesH5TbTS = function handleStylesH5TbTS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbTS: val }));
  };
  var handleStylesH5TbLS = function handleStylesH5TbLS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbLS: val }));
  };
  var handleStylesH5TbLH = function handleStylesH5TbLH(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5TbLH: val }));
  };
  var handleStylesH5PhFF = function handleStylesH5PhFF(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhFF: val }));
  };
  var handleStylesH5PhFW = function handleStylesH5PhFW(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhFW: val }));
  };
  var handleStylesH5PhFS = function handleStylesH5PhFS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhFS: val }));
  };
  var handleStylesH5PhUColor = function handleStylesH5PhUColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhUColor: val }));
  };
  var handleStylesH5PhUStyle = function handleStylesH5PhUStyle(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhUStyle: val }));
  };
  var handleStylesH5PhColor = function handleStylesH5PhColor(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhColor: val }));
  };
  var handleStylesH5PhTS = function handleStylesH5PhTS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhTS: val }));
  };
  var handleStylesH5PhLS = function handleStylesH5PhLS(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhLS: val }));
  };
  var handleStylesH5PhLH = function handleStylesH5PhLH(val) {
    props.setStylesH5(Object.assign({}, props.stylesH5, { H5PhLH: val }));
  };
  var handleStylesH6 = function handleStylesH6(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6: val }));
  };
  var handleStylesH6DpFF = function handleStylesH6DpFF(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpFF: val }));
  };
  var handleStylesH6DpFW = function handleStylesH6DpFW(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpFW: val }));
  };
  var handleStylesH6DpFS = function handleStylesH6DpFS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpFS: val }));
  };
  var handleStylesH6DpUColor = function handleStylesH6DpUColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpUColor: val }));
  };
  var handleStylesH6DpUStyle = function handleStylesH6DpUStyle(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpUStyle: val }));
  };
  var handleStylesH6DpColor = function handleStylesH6DpColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpColor: val }));
  };
  var handleStylesH6DpTS = function handleStylesH6DpTS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpTS: val }));
  };
  var handleStylesH6DpLS = function handleStylesH6DpLS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpLS: val }));
  };
  var handleStylesH6DpLH = function handleStylesH6DpLH(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6DpLH: val }));
  };
  var handleStylesH6TbFF = function handleStylesH6TbFF(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbFF: val }));
  };
  var handleStylesH6TbFW = function handleStylesH6TbFW(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbFW: val }));
  };
  var handleStylesH6TbFS = function handleStylesH6TbFS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbFS: val }));
  };
  var handleStylesH6TbUColor = function handleStylesH6TbUColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbUColor: val }));
  };
  var handleStylesH6TbUStyle = function handleStylesH6TbUStyle(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbUStyle: val }));
  };
  var handleStylesH6TbColor = function handleStylesH6TbColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbColor: val }));
  };
  var handleStylesH6TbTS = function handleStylesH6TbTS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbTS: val }));
  };
  var handleStylesH6TbLS = function handleStylesH6TbLS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbLS: val }));
  };
  var handleStylesH6TbLH = function handleStylesH6TbLH(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6TbLH: val }));
  };
  var handleStylesH6PhFF = function handleStylesH6PhFF(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhFF: val }));
  };
  var handleStylesH6PhFW = function handleStylesH6PhFW(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhFW: val }));
  };
  var handleStylesH6PhFS = function handleStylesH6PhFS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhFS: val }));
  };
  var handleStylesH6PhUColor = function handleStylesH6PhUColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhUColor: val }));
  };
  var handleStylesH6PhUStyle = function handleStylesH6PhUStyle(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhUStyle: val }));
  };
  var handleStylesH6PhColor = function handleStylesH6PhColor(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhColor: val }));
  };
  var handleStylesH6PhTS = function handleStylesH6PhTS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhTS: val }));
  };
  var handleStylesH6PhLS = function handleStylesH6PhLS(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhLS: val }));
  };
  var handleStylesH6PhLH = function handleStylesH6PhLH(val) {
    props.setStylesH6(Object.assign({}, props.stylesH6, { H6PhLH: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H1 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H1 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH1.H1, setBtnValue: handleStylesH1 }),
      props.stylesH1.H1 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 1',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH1.H1DpFF,
            setFontFamily: handleStylesH1DpFF,
            fontWeight: props.stylesH1.H1DpFW,
            setFontWeight: handleStylesH1DpFW,
            fontStyle: props.stylesH1.H1DpFS,
            setFontStyle: handleStylesH1DpFS,
            textColor: props.stylesH1.H1DpColor,
            setTextColor: handleStylesH1DpColor,
            underlineColor: props.stylesH1.H1DpUColor,
            setUnderlineColor: handleStylesH1DpUColor,
            underlineStyle: props.stylesH1.H1DpUStyle,
            setUnderlineStyle: handleStylesH1DpUStyle,
            textSize: props.stylesH1.H1DpTS,
            setTextSize: handleStylesH1DpTS,
            textLetterSpacing: props.stylesH1.H1DpLS,
            setTextLetterSpacing: handleStylesH1DpLS,
            textLineHeight: props.stylesH1.H1DpLH,
            setTextLineHeight: handleStylesH1DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 1',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH1.H1TbFF,
            setFontFamily: handleStylesH1TbFF,
            fontWeight: props.stylesH1.H1TbFW,
            setFontWeight: handleStylesH1TbFW,
            fontStyle: props.stylesH1.H1TbFS,
            setFontStyle: handleStylesH1TbFS,
            textColor: props.stylesH1.H1TbColor,
            setTextColor: handleStylesH1TbColor,
            underlineColor: props.stylesH1.H1TbUColor,
            setUnderlineColor: handleStylesH1TbUColor,
            underlineStyle: props.stylesH1.H1TbUStyle,
            setUnderlineStyle: handleStylesH1TbUStyle,
            textSize: props.stylesH1.H1TbTS,
            setTextSize: handleStylesH1TbTS,
            textLetterSpacing: props.stylesH1.H1TbLS,
            setTextLetterSpacing: handleStylesH1TbLS,
            textLineHeight: props.stylesH1.H1TbLH,
            setTextLineHeight: handleStylesH1TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 1',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH1.H1PhFF,
            setFontFamily: handleStylesH1PhFF,
            fontWeight: props.stylesH1.H1PhFW,
            setFontWeight: handleStylesH1PhFW,
            fontStyle: props.stylesH1.H1PhFS,
            setFontStyle: handleStylesH1PhFS,
            textColor: props.stylesH1.H1PhColor,
            setTextColor: handleStylesH1PhColor,
            underlineColor: props.stylesH1.H1PhUColor,
            setUnderlineColor: handleStylesH1PhUColor,
            underlineStyle: props.stylesH1.H1PhUStyle,
            setUnderlineStyle: handleStylesH1PhUStyle,
            textSize: props.stylesH1.H1PhTS,
            setTextSize: handleStylesH1PhTS,
            textLetterSpacing: props.stylesH1.H1PhLS,
            setTextLetterSpacing: handleStylesH1PhLS,
            textLineHeight: props.stylesH1.H1PhLH,
            setTextLineHeight: handleStylesH1PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H2 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H2 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH2.H2, setBtnValue: handleStylesH2 }),
      props.stylesH2.H2 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 2',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH2.H2DpFF,
            setFontFamily: handleStylesH2DpFF,
            fontWeight: props.stylesH2.H2DpFW,
            setFontWeight: handleStylesH2DpFW,
            fontStyle: props.stylesH2.H2DpFS,
            setFontStyle: handleStylesH2DpFS,
            textColor: props.stylesH2.H2DpColor,
            setTextColor: handleStylesH2DpColor,
            underlineColor: props.stylesH2.H2DpUColor,
            setUnderlineColor: handleStylesH2DpUColor,
            underlineStyle: props.stylesH2.H2DpUStyle,
            setUnderlineStyle: handleStylesH2DpUStyle,
            textSize: props.stylesH2.H2DpTS,
            setTextSize: handleStylesH2DpTS,
            textLetterSpacing: props.stylesH2.H2DpLS,
            setTextLetterSpacing: handleStylesH2DpLS,
            textLineHeight: props.stylesH2.H2DpLH,
            setTextLineHeight: handleStylesH2DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 2',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH2.H2TbFF,
            setFontFamily: handleStylesH2TbFF,
            fontWeight: props.stylesH2.H2TbFW,
            setFontWeight: handleStylesH2TbFW,
            fontStyle: props.stylesH2.H2TbFS,
            setFontStyle: handleStylesH2TbFS,
            textColor: props.stylesH2.H2TbColor,
            setTextColor: handleStylesH2TbColor,
            underlineColor: props.stylesH2.H2TbUColor,
            setUnderlineColor: handleStylesH2TbUColor,
            underlineStyle: props.stylesH2.H2TbUStyle,
            setUnderlineStyle: handleStylesH2TbUStyle,
            textSize: props.stylesH2.H2TbTS,
            setTextSize: handleStylesH2TbTS,
            textLetterSpacing: props.stylesH2.H2TbLS,
            setTextLetterSpacing: handleStylesH2TbLS,
            textLineHeight: props.stylesH2.H2TbLH,
            setTextLineHeight: handleStylesH2TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 2',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH2.H2PhFF,
            setFontFamily: handleStylesH2PhFF,
            fontWeight: props.stylesH2.H2PhFW,
            setFontWeight: handleStylesH2PhFW,
            fontStyle: props.stylesH2.H2PhFS,
            setFontStyle: handleStylesH2PhFS,
            textColor: props.stylesH2.H2PhColor,
            setTextColor: handleStylesH2PhColor,
            underlineColor: props.stylesH2.H2PhUColor,
            setUnderlineColor: handleStylesH2PhUColor,
            underlineStyle: props.stylesH2.H2PhUStyle,
            setUnderlineStyle: handleStylesH2PhUStyle,
            textSize: props.stylesH2.H2PhTS,
            setTextSize: handleStylesH2PhTS,
            textLetterSpacing: props.stylesH2.H2PhLS,
            setTextLetterSpacing: handleStylesH2PhLS,
            textLineHeight: props.stylesH2.H2PhLH,
            setTextLineHeight: handleStylesH2PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H3 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H3 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH3.H3, setBtnValue: handleStylesH3 }),
      props.stylesH3.H3 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 3',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH3.H3DpFF,
            setFontFamily: handleStylesH3DpFF,
            fontWeight: props.stylesH3.H3DpFW,
            setFontWeight: handleStylesH3DpFW,
            fontStyle: props.stylesH3.H3DpFS,
            setFontStyle: handleStylesH3DpFS,
            textColor: props.stylesH3.H3DpColor,
            setTextColor: handleStylesH3DpColor,
            underlineColor: props.stylesH3.H3DpUColor,
            setUnderlineColor: handleStylesH3DpUColor,
            underlineStyle: props.stylesH3.H3DpUStyle,
            setUnderlineStyle: handleStylesH3DpUStyle,
            textSize: props.stylesH3.H3DpTS,
            setTextSize: handleStylesH3DpTS,
            textLetterSpacing: props.stylesH3.H3DpLS,
            setTextLetterSpacing: handleStylesH3DpLS,
            textLineHeight: props.stylesH3.H3DpLH,
            setTextLineHeight: handleStylesH3DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 3',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH3.H3TbFF,
            setFontFamily: handleStylesH3TbFF,
            fontWeight: props.stylesH3.H3TbFW,
            setFontWeight: handleStylesH3TbFW,
            fontStyle: props.stylesH3.H3TbFS,
            setFontStyle: handleStylesH3TbFS,
            textColor: props.stylesH3.H3TbColor,
            setTextColor: handleStylesH3TbColor,
            underlineColor: props.stylesH3.H3TbUColor,
            setUnderlineColor: handleStylesH3TbUColor,
            underlineStyle: props.stylesH3.H3TbUStyle,
            setUnderlineStyle: handleStylesH3TbUStyle,
            textSize: props.stylesH3.H3TbTS,
            setTextSize: handleStylesH3TbTS,
            textLetterSpacing: props.stylesH3.H3TbLS,
            setTextLetterSpacing: handleStylesH3TbLS,
            textLineHeight: props.stylesH3.H3TbLH,
            setTextLineHeight: handleStylesH3TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 3',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH3.H3PhFF,
            setFontFamily: handleStylesH3PhFF,
            fontWeight: props.stylesH3.H3PhFW,
            setFontWeight: handleStylesH3PhFW,
            fontStyle: props.stylesH3.H3PhFS,
            setFontStyle: handleStylesH3PhFS,
            textColor: props.stylesH3.H3PhColor,
            setTextColor: handleStylesH3PhColor,
            underlineColor: props.stylesH3.H3PhUColor,
            setUnderlineColor: handleStylesH3PhUColor,
            underlineStyle: props.stylesH3.H3PhUStyle,
            setUnderlineStyle: handleStylesH3PhUStyle,
            textSize: props.stylesH3.H3PhTS,
            setTextSize: handleStylesH3PhTS,
            textLetterSpacing: props.stylesH3.H3PhLS,
            setTextLetterSpacing: handleStylesH3PhLS,
            textLineHeight: props.stylesH3.H3PhLH,
            setTextLineHeight: handleStylesH3PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H4 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H4 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH4.H4, setBtnValue: handleStylesH4 }),
      props.stylesH4.H4 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 4',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH4.H4DpFF,
            setFontFamily: handleStylesH4DpFF,
            fontWeight: props.stylesH4.H4DpFW,
            setFontWeight: handleStylesH4DpFW,
            fontStyle: props.stylesH4.H4DpFS,
            setFontStyle: handleStylesH4DpFS,
            textColor: props.stylesH4.H4DpColor,
            setTextColor: handleStylesH4DpColor,
            underlineColor: props.stylesH4.H4DpUColor,
            setUnderlineColor: handleStylesH4DpUColor,
            underlineStyle: props.stylesH4.H4DpUStyle,
            setUnderlineStyle: handleStylesH4DpUStyle,
            textSize: props.stylesH4.H4DpTS,
            setTextSize: handleStylesH4DpTS,
            textLetterSpacing: props.stylesH4.H4DpLS,
            setTextLetterSpacing: handleStylesH4DpLS,
            textLineHeight: props.stylesH4.H4DpLH,
            setTextLineHeight: handleStylesH4DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 4',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH4.H4TbFF,
            setFontFamily: handleStylesH4TbFF,
            fontWeight: props.stylesH4.H4TbFW,
            setFontWeight: handleStylesH4TbFW,
            fontStyle: props.stylesH4.H4TbFS,
            setFontStyle: handleStylesH4TbFS,
            textColor: props.stylesH4.H4TbColor,
            setTextColor: handleStylesH4TbColor,
            underlineColor: props.stylesH4.H4TbUColor,
            setUnderlineColor: handleStylesH4TbUColor,
            underlineStyle: props.stylesH4.H4TbUStyle,
            setUnderlineStyle: handleStylesH4TbUStyle,
            textSize: props.stylesH4.H4TbTS,
            setTextSize: handleStylesH4TbTS,
            textLetterSpacing: props.stylesH4.H4TbLS,
            setTextLetterSpacing: handleStylesH4TbLS,
            textLineHeight: props.stylesH4.H4TbLH,
            setTextLineHeight: handleStylesH4TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 4',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH4.H4PhFF,
            setFontFamily: handleStylesH4PhFF,
            fontWeight: props.stylesH4.H4PhFW,
            setFontWeight: handleStylesH4PhFW,
            fontStyle: props.stylesH4.H4PhFS,
            setFontStyle: handleStylesH4PhFS,
            textColor: props.stylesH4.H4PhColor,
            setTextColor: handleStylesH4PhColor,
            underlineColor: props.stylesH4.H4PhUColor,
            setUnderlineColor: handleStylesH4PhUColor,
            underlineStyle: props.stylesH4.H4PhUStyle,
            setUnderlineStyle: handleStylesH4PhUStyle,
            textSize: props.stylesH4.H4PhTS,
            setTextSize: handleStylesH4PhTS,
            textLetterSpacing: props.stylesH4.H4PhLS,
            setTextLetterSpacing: handleStylesH4PhLS,
            textLineHeight: props.stylesH4.H4PhLH,
            setTextLineHeight: handleStylesH4PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H5 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H5 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH5.H5, setBtnValue: handleStylesH5 }),
      props.stylesH5.H5 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 5',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH5.H5DpFF,
            setFontFamily: handleStylesH5DpFF,
            fontWeight: props.stylesH5.H5DpFW,
            setFontWeight: handleStylesH5DpFW,
            fontStyle: props.stylesH5.H5DpFS,
            setFontStyle: handleStylesH5DpFS,
            textColor: props.stylesH5.H5DpColor,
            setTextColor: handleStylesH5DpColor,
            underlineColor: props.stylesH5.H5DpUColor,
            setUnderlineColor: handleStylesH5DpUColor,
            underlineStyle: props.stylesH5.H5DpUStyle,
            setUnderlineStyle: handleStylesH5DpUStyle,
            textSize: props.stylesH5.H5DpTS,
            setTextSize: handleStylesH5DpTS,
            textLetterSpacing: props.stylesH5.H5DpLS,
            setTextLetterSpacing: handleStylesH5DpLS,
            textLineHeight: props.stylesH5.H5DpLH,
            setTextLineHeight: handleStylesH5DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 5',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH5.H5TbFF,
            setFontFamily: handleStylesH5TbFF,
            fontWeight: props.stylesH5.H5TbFW,
            setFontWeight: handleStylesH5TbFW,
            fontStyle: props.stylesH5.H5TbFS,
            setFontStyle: handleStylesH5TbFS,
            textColor: props.stylesH5.H5TbColor,
            setTextColor: handleStylesH5TbColor,
            underlineColor: props.stylesH5.H5TbUColor,
            setUnderlineColor: handleStylesH5TbUColor,
            underlineStyle: props.stylesH5.H5TbUStyle,
            setUnderlineStyle: handleStylesH5TbUStyle,
            textSize: props.stylesH5.H5TbTS,
            setTextSize: handleStylesH5TbTS,
            textLetterSpacing: props.stylesH5.H5TbLS,
            setTextLetterSpacing: handleStylesH5TbLS,
            textLineHeight: props.stylesH5.H5TbLH,
            setTextLineHeight: handleStylesH5TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 5',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH5.H5PhFF,
            setFontFamily: handleStylesH5PhFF,
            fontWeight: props.stylesH5.H5PhFW,
            setFontWeight: handleStylesH5PhFW,
            fontStyle: props.stylesH5.H5PhFS,
            setFontStyle: handleStylesH5PhFS,
            textColor: props.stylesH5.H5PhColor,
            setTextColor: handleStylesH5PhColor,
            underlineColor: props.stylesH5.H5PhUColor,
            setUnderlineColor: handleStylesH5PhUColor,
            underlineStyle: props.stylesH5.H5PhUStyle,
            setUnderlineStyle: handleStylesH5PhUStyle,
            textSize: props.stylesH5.H5PhTS,
            setTextSize: handleStylesH5PhTS,
            textLetterSpacing: props.stylesH5.H5PhLS,
            setTextLetterSpacing: handleStylesH5PhLS,
            textLineHeight: props.stylesH5.H5PhLH,
            setTextLineHeight: handleStylesH5PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Heading H6 Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global heading H6 text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesH6.H6, setBtnValue: handleStylesH6 }),
      props.stylesH6.H6 ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Heading 6',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH6.H6DpFF,
            setFontFamily: handleStylesH6DpFF,
            fontWeight: props.stylesH6.H6DpFW,
            setFontWeight: handleStylesH6DpFW,
            fontStyle: props.stylesH6.H6DpFS,
            setFontStyle: handleStylesH6DpFS,
            textColor: props.stylesH6.H6DpColor,
            setTextColor: handleStylesH6DpColor,
            underlineColor: props.stylesH6.H6DpUColor,
            setUnderlineColor: handleStylesH6DpUColor,
            underlineStyle: props.stylesH6.H6DpUStyle,
            setUnderlineStyle: handleStylesH6DpUStyle,
            textSize: props.stylesH6.H6DpTS,
            setTextSize: handleStylesH6DpTS,
            textLetterSpacing: props.stylesH6.H6DpLS,
            setTextLetterSpacing: handleStylesH6DpLS,
            textLineHeight: props.stylesH6.H6DpLH,
            setTextLineHeight: handleStylesH6DpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Heading 6',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH6.H6TbFF,
            setFontFamily: handleStylesH6TbFF,
            fontWeight: props.stylesH6.H6TbFW,
            setFontWeight: handleStylesH6TbFW,
            fontStyle: props.stylesH6.H6TbFS,
            setFontStyle: handleStylesH6TbFS,
            textColor: props.stylesH6.H6TbColor,
            setTextColor: handleStylesH6TbColor,
            underlineColor: props.stylesH6.H6TbUColor,
            setUnderlineColor: handleStylesH6TbUColor,
            underlineStyle: props.stylesH6.H6TbUStyle,
            setUnderlineStyle: handleStylesH6TbUStyle,
            textSize: props.stylesH6.H6TbTS,
            setTextSize: handleStylesH6TbTS,
            textLetterSpacing: props.stylesH6.H6TbLS,
            setTextLetterSpacing: handleStylesH6TbLS,
            textLineHeight: props.stylesH6.H6TbLH,
            setTextLineHeight: handleStylesH6TbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Heading 6',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesH6.H6PhFF,
            setFontFamily: handleStylesH6PhFF,
            fontWeight: props.stylesH6.H6PhFW,
            setFontWeight: handleStylesH6PhFW,
            fontStyle: props.stylesH6.H6PhFS,
            setFontStyle: handleStylesH6PhFS,
            textColor: props.stylesH6.H6PhColor,
            setTextColor: handleStylesH6PhColor,
            underlineColor: props.stylesH6.H6PhUColor,
            setUnderlineColor: handleStylesH6PhUColor,
            underlineStyle: props.stylesH6.H6PhUStyle,
            setUnderlineStyle: handleStylesH6PhUStyle,
            textSize: props.stylesH6.H6PhTS,
            setTextSize: handleStylesH6PhTS,
            textLetterSpacing: props.stylesH6.H6PhLS,
            setTextLetterSpacing: handleStylesH6PhLS,
            textLineHeight: props.stylesH6.H6PhLH,
            setTextLineHeight: handleStylesH6PhLH,
            listType: false
          })
        )
      ) : ''
    ),
    Boolean(props.stylesH1.H1) || Boolean(props.stylesH2.H2) || Boolean(props.stylesH3.H3) || Boolean(props.stylesH4.H4) || Boolean(props.stylesH5.H5) || Boolean(props.stylesH6.H6) ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = HeadingStyles;

/***/ }),
/* 498 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var SelectList = function SelectList(props) {
    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        dropdown = _useState2[0],
        setDropdown = _useState2[1];

    var _useState3 = (0, _react.useState)(''),
        _useState4 = _slicedToArray(_useState3, 2),
        searchFonts = _useState4[0],
        setSearchFonts = _useState4[1];

    var showDropdown = function showDropdown() {
        setDropdown(true);
    };

    var searchFontsFromList = function searchFontsFromList(e) {
        setSearchFonts(e.target.value);
        var items = document.getElementById('pac_da_dropdown_options_list');
        var allItem = items.querySelectorAll('li');
        allItem.forEach(function (item, index) {
            if (e.target.value !== '') {
                if (item.querySelector('span').textContent.toLowerCase().includes(e.target.value.toLowerCase())) {
                    item.style.display = "block";
                } else {
                    item.style.display = "none";
                }
            } else {
                item.style.display = "block";
            }
        });
    };

    var updateOptions = function updateOptions(e) {
        var selected = e.target;
        while (selected.tagName !== 'LI') {
            selected = selected.parentNode;
        }
        props.setSelectedOption(selected.getAttribute('data-value'));
        setDropdown(false);
        setSearchFonts('');
    };

    (0, _react.useEffect)(function () {
        var clickListener = function clickListener(event) {
            if (!(event.target.classList.contains('pac_da_dropdown') || event.target.closest('div.pac_da_dropdown'))) {
                document.removeEventListener('click', clickListener);
                setDropdown(false);
                setSearchFonts('');
            }
        };
        if (dropdown) {
            document.addEventListener('click', clickListener);
        }
    }, [dropdown]);

    return wp.element.createElement(
        'div',
        { className: 'pac_da_dropdown' },
        dropdown === false ? wp.element.createElement(
            'div',
            { className: 'selectedValue', onClick: showDropdown },
            wp.element.createElement(
                'span',
                null,
                props.options[props.selectedOption].name
            ),
            wp.element.createElement(
                'svg',
                { width: '28px', height: '28px', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28', preserveAspectRatio: 'xMidYMid meet', shapeRendering: 'geometricPrecision' },
                wp.element.createElement(
                    'g',
                    { fillRule: 'evenodd' },
                    wp.element.createElement('path', { d: 'M14 20l-3-5h6zM14 8l3 5h-6z', fillRule: 'evenodd' })
                )
            )
        ) : wp.element.createElement(
            'div',
            { className: 'dropDown_options' },
            wp.element.createElement(
                'div',
                { className: props.search === true ? 'options_inner' : 'options_inner no_search' },
                props.search === true ? wp.element.createElement('input', { className: 'pac_da_styles_input', type: 'text', placeholder: 'Search Fonts', value: searchFonts, autoComplete: 'off', onChange: searchFontsFromList }) : '',
                wp.element.createElement(
                    'ul',
                    { id: 'pac_da_dropdown_options_list' },
                    Object.keys(props.options).map(function (option) {
                        return wp.element.createElement(
                            'li',
                            { className: 'option', key: option, 'data-value': option, onClick: updateOptions },
                            wp.element.createElement(
                                'span',
                                null,
                                props.options[option].name,
                                props.options[props.selectedOption].name === props.options[option].name ? wp.element.createElement(
                                    'svg',
                                    { width: '28px', height: '28px', fill: 'rgb(55, 196, 170)', xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28', preserveAspectRatio: 'xMidYMid meet', shapeRendering: 'geometricPrecision' },
                                    wp.element.createElement(
                                        'g',
                                        null,
                                        wp.element.createElement('path', { d: 'M19.203 9.21a.677.677 0 0 0-.98 0l-5.71 5.9-2.85-2.95a.675.675 0 0 0-.98 0l-1.48 1.523a.737.737 0 0 0 0 1.015l4.82 4.979a.677.677 0 0 0 .98 0l7.68-7.927a.737.737 0 0 0 0-1.015l-1.48-1.525z', fillRule: 'evenodd' })
                                    )
                                ) : ''
                            )
                        );
                    })
                )
            )
        )
    );
};
exports.default = SelectList;

/***/ }),
/* 499 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _StyleSettings = __webpack_require__(29);

var _StyleSettings2 = _interopRequireDefault(_StyleSettings);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BodyStyles = function BodyStyles(props) {

  var handlestylesBT = function handlestylesBT(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BT: val }));
  };
  var handlestylesBTDpFF = function handlestylesBTDpFF(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpFF: val }));
  };
  var handlestylesBTDpFW = function handlestylesBTDpFW(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpFW: val }));
  };
  var handlestylesBTDpFS = function handlestylesBTDpFS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpFS: val }));
  };
  var handlestylesBTDpUColor = function handlestylesBTDpUColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpUColor: val }));
  };
  var handlestylesBTDpUStyle = function handlestylesBTDpUStyle(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpUStyle: val }));
  };
  var handlestylesBTDpColor = function handlestylesBTDpColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpColor: val }));
  };
  var handlestylesBTDpTS = function handlestylesBTDpTS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpTS: val }));
  };
  var handlestylesBTDpLS = function handlestylesBTDpLS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpLS: val }));
  };
  var handlestylesBTDpLH = function handlestylesBTDpLH(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTDpLH: val }));
  };
  var handlestylesBTTbFF = function handlestylesBTTbFF(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbFF: val }));
  };
  var handlestylesBTTbFW = function handlestylesBTTbFW(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbFW: val }));
  };
  var handlestylesBTTbFS = function handlestylesBTTbFS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbFS: val }));
  };
  var handlestylesBTTbUColor = function handlestylesBTTbUColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbUColor: val }));
  };
  var handlestylesBTTbUStyle = function handlestylesBTTbUStyle(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbUStyle: val }));
  };
  var handlestylesBTTbColor = function handlestylesBTTbColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbColor: val }));
  };
  var handlestylesBTTbTS = function handlestylesBTTbTS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbTS: val }));
  };
  var handlestylesBTTbLS = function handlestylesBTTbLS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbLS: val }));
  };
  var handlestylesBTTbLH = function handlestylesBTTbLH(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTTbLH: val }));
  };
  var handlestylesBTPhFF = function handlestylesBTPhFF(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhFF: val }));
  };
  var handlestylesBTPhFW = function handlestylesBTPhFW(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhFW: val }));
  };
  var handlestylesBTPhFS = function handlestylesBTPhFS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhFS: val }));
  };
  var handlestylesBTPhUColor = function handlestylesBTPhUColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhUColor: val }));
  };
  var handlestylesBTPhUStyle = function handlestylesBTPhUStyle(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhUStyle: val }));
  };
  var handlestylesBTPhColor = function handlestylesBTPhColor(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhColor: val }));
  };
  var handlestylesBTPhTS = function handlestylesBTPhTS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhTS: val }));
  };
  var handlestylesBTPhLS = function handlestylesBTPhLS(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhLS: val }));
  };
  var handlestylesBTPhLH = function handlestylesBTPhLH(val) {
    props.setStylesBT(Object.assign({}, props.stylesBT, { BTPhLH: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Body Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global paragraph/body text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesBT.BT, setBtnValue: handlestylesBT }),
      props.stylesBT.BT ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Body',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesBT.BTDpFF,
            setFontFamily: handlestylesBTDpFF,
            fontWeight: props.stylesBT.BTDpFW,
            setFontWeight: handlestylesBTDpFW,
            fontStyle: props.stylesBT.BTDpFS,
            setFontStyle: handlestylesBTDpFS,
            textColor: props.stylesBT.BTDpColor,
            setTextColor: handlestylesBTDpColor,
            underlineColor: props.stylesBT.BTDpUColor,
            setUnderlineColor: handlestylesBTDpUColor,
            underlineStyle: props.stylesBT.BTDpUStyle,
            setUnderlineStyle: handlestylesBTDpUStyle,
            textSize: props.stylesBT.BTDpTS,
            setTextSize: handlestylesBTDpTS,
            textLetterSpacing: props.stylesBT.BTDpLS,
            setTextLetterSpacing: handlestylesBTDpLS,
            textLineHeight: props.stylesBT.BTDpLH,
            setTextLineHeight: handlestylesBTDpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Body',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesBT.BTTbFF,
            setFontFamily: handlestylesBTTbFF,
            fontWeight: props.stylesBT.BTTbFW,
            setFontWeight: handlestylesBTTbFW,
            fontStyle: props.stylesBT.BTTbFS,
            setFontStyle: handlestylesBTTbFS,
            textColor: props.stylesBT.BTTbColor,
            setTextColor: handlestylesBTTbColor,
            underlineColor: props.stylesBT.BTTbUColor,
            setUnderlineColor: handlestylesBTTbUColor,
            underlineStyle: props.stylesBT.BTTbUStyle,
            setUnderlineStyle: handlestylesBTTbUStyle,
            textSize: props.stylesBT.BTTbTS,
            setTextSize: handlestylesBTTbTS,
            textLetterSpacing: props.stylesBT.BTTbLS,
            setTextLetterSpacing: handlestylesBTTbLS,
            textLineHeight: props.stylesBT.BTTbLH,
            setTextLineHeight: handlestylesBTTbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Body',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesBT.BTPhFF,
            setFontFamily: handlestylesBTPhFF,
            fontWeight: props.stylesBT.BTPhFW,
            setFontWeight: handlestylesBTPhFW,
            fontStyle: props.stylesBT.BTPhFS,
            setFontStyle: handlestylesBTPhFS,
            textColor: props.stylesBT.BTPhColor,
            setTextColor: handlestylesBTPhColor,
            underlineColor: props.stylesBT.BTPhUColor,
            setUnderlineColor: handlestylesBTPhUColor,
            underlineStyle: props.stylesBT.BTPhUStyle,
            setUnderlineStyle: handlestylesBTPhUStyle,
            textSize: props.stylesBT.BTPhTS,
            setTextSize: handlestylesBTPhTS,
            textLetterSpacing: props.stylesBT.BTPhLS,
            setTextLetterSpacing: handlestylesBTPhLS,
            textLineHeight: props.stylesBT.BTPhLH,
            setTextLineHeight: handlestylesBTPhLH,
            listType: false
          })
        )
      ) : ''
    ),
    Boolean(props.stylesBT.BT) ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = BodyStyles;

/***/ }),
/* 500 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _StyleSettings = __webpack_require__(29);

var _StyleSettings2 = _interopRequireDefault(_StyleSettings);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var LinkStyles = function LinkStyles(props) {

  var handlestylesLT = function handlestylesLT(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LT: val }));
  };
  var handlestylesLTDpFF = function handlestylesLTDpFF(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpFF: val }));
  };
  var handlestylesLTDpFW = function handlestylesLTDpFW(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpFW: val }));
  };
  var handlestylesLTDpFS = function handlestylesLTDpFS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpFS: val }));
  };
  var handlestylesLTDpUColor = function handlestylesLTDpUColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpUColor: val }));
  };
  var handlestylesLTDpUStyle = function handlestylesLTDpUStyle(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpUStyle: val }));
  };
  var handlestylesLTDpColor = function handlestylesLTDpColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpColor: val }));
  };
  var handlestylesLTDpHColor = function handlestylesLTDpHColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpHColor: val }));
  };
  var handlestylesLTDpTS = function handlestylesLTDpTS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpTS: val }));
  };
  var handlestylesLTDpLS = function handlestylesLTDpLS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpLS: val }));
  };
  var handlestylesLTDpLH = function handlestylesLTDpLH(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTDpLH: val }));
  };
  var handlestylesLTTbFF = function handlestylesLTTbFF(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbFF: val }));
  };
  var handlestylesLTTbFW = function handlestylesLTTbFW(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbFW: val }));
  };
  var handlestylesLTTbFS = function handlestylesLTTbFS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbFS: val }));
  };
  var handlestylesLTTbUColor = function handlestylesLTTbUColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbUColor: val }));
  };
  var handlestylesLTTbUStyle = function handlestylesLTTbUStyle(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbUStyle: val }));
  };
  var handlestylesLTTbColor = function handlestylesLTTbColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbColor: val }));
  };
  var handlestylesLTTbHColor = function handlestylesLTTbHColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbHColor: val }));
  };
  var handlestylesLTTbTS = function handlestylesLTTbTS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbTS: val }));
  };
  var handlestylesLTTbLS = function handlestylesLTTbLS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbLS: val }));
  };
  var handlestylesLTTbLH = function handlestylesLTTbLH(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTTbLH: val }));
  };
  var handlestylesLTPhFF = function handlestylesLTPhFF(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhFF: val }));
  };
  var handlestylesLTPhFW = function handlestylesLTPhFW(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhFW: val }));
  };
  var handlestylesLTPhFS = function handlestylesLTPhFS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhFS: val }));
  };
  var handlestylesLTPhUColor = function handlestylesLTPhUColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhUColor: val }));
  };
  var handlestylesLTPhUStyle = function handlestylesLTPhUStyle(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhUStyle: val }));
  };
  var handlestylesLTPhColor = function handlestylesLTPhColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhColor: val }));
  };
  var handlestylesLTPhHColor = function handlestylesLTPhHColor(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhHColor: val }));
  };
  var handlestylesLTPhTS = function handlestylesLTPhTS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhTS: val }));
  };
  var handlestylesLTPhLS = function handlestylesLTPhLS(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhLS: val }));
  };
  var handlestylesLTPhLH = function handlestylesLTPhLH(val) {
    props.setStylesLT(Object.assign({}, props.stylesLT, { LTPhLH: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Link Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global link text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesLT.LT, setBtnValue: handlestylesLT }),
      props.stylesLT.LT ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Link',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesLT.LTDpFF,
            setFontFamily: handlestylesLTDpFF,
            fontWeight: props.stylesLT.LTDpFW,
            setFontWeight: handlestylesLTDpFW,
            fontStyle: props.stylesLT.LTDpFS,
            setFontStyle: handlestylesLTDpFS,
            textColor: props.stylesLT.LTDpColor,
            setTextColor: handlestylesLTDpColor,
            textHColor: props.stylesLT.LTDpHColor,
            setTextHColor: handlestylesLTDpHColor,
            underlineColor: props.stylesLT.LTDpUColor,
            setUnderlineColor: handlestylesLTDpUColor,
            underlineStyle: props.stylesLT.LTDpUStyle,
            setUnderlineStyle: handlestylesLTDpUStyle,
            textSize: props.stylesLT.LTDpTS,
            setTextSize: handlestylesLTDpTS,
            textLetterSpacing: props.stylesLT.LTDpLS,
            setTextLetterSpacing: handlestylesLTDpLS,
            textLineHeight: props.stylesLT.LTDpLH,
            setTextLineHeight: handlestylesLTDpLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Link',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesLT.LTTbFF,
            setFontFamily: handlestylesLTTbFF,
            fontWeight: props.stylesLT.LTTbFW,
            setFontWeight: handlestylesLTTbFW,
            fontStyle: props.stylesLT.LTTbFS,
            setFontStyle: handlestylesLTTbFS,
            textColor: props.stylesLT.LTTbColor,
            setTextColor: handlestylesLTTbColor,
            textHColor: props.stylesLT.LTTbHColor,
            setTextHColor: handlestylesLTTbHColor,
            underlineColor: props.stylesLT.LTTbUColor,
            setUnderlineColor: handlestylesLTTbUColor,
            underlineStyle: props.stylesLT.LTTbUStyle,
            setUnderlineStyle: handlestylesLTTbUStyle,
            textSize: props.stylesLT.LTTbTS,
            setTextSize: handlestylesLTTbTS,
            textLetterSpacing: props.stylesLT.LTTbLS,
            setTextLetterSpacing: handlestylesLTTbLS,
            textLineHeight: props.stylesLT.LTTbLH,
            setTextLineHeight: handlestylesLTTbLH,
            listType: false
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Link',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesLT.LTPhFF,
            setFontFamily: handlestylesLTPhFF,
            fontWeight: props.stylesLT.LTPhFW,
            setFontWeight: handlestylesLTPhFW,
            fontStyle: props.stylesLT.LTPhFS,
            setFontStyle: handlestylesLTPhFS,
            textColor: props.stylesLT.LTPhColor,
            setTextColor: handlestylesLTPhColor,
            textHColor: props.stylesLT.LTPhHColor,
            setTextHColor: handlestylesLTPhHColor,
            underlineColor: props.stylesLT.LTPhUColor,
            setUnderlineColor: handlestylesLTPhUColor,
            underlineStyle: props.stylesLT.LTPhUStyle,
            setUnderlineStyle: handlestylesLTPhUStyle,
            textSize: props.stylesLT.LTPhTS,
            setTextSize: handlestylesLTPhTS,
            textLetterSpacing: props.stylesLT.LTPhLS,
            setTextLetterSpacing: handlestylesLTPhLS,
            textLineHeight: props.stylesLT.LTPhLH,
            setTextLineHeight: handlestylesLTPhLH,
            listType: false
          })
        )
      ) : ''
    ),
    Boolean(props.stylesLT.LT) ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = LinkStyles;

/***/ }),
/* 501 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _StyleSettings = __webpack_require__(29);

var _StyleSettings2 = _interopRequireDefault(_StyleSettings);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var UnOrderListStyles = function UnOrderListStyles(props) {

  var handlestylesUL = function handlestylesUL(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { UL: val }));
  };
  var handlestylesULDpFF = function handlestylesULDpFF(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpFF: val }));
  };
  var handlestylesULDpFW = function handlestylesULDpFW(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpFW: val }));
  };
  var handlestylesULDpFS = function handlestylesULDpFS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpFS: val }));
  };
  var handlestylesULDpUColor = function handlestylesULDpUColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpUColor: val }));
  };
  var handlestylesULDpUStyle = function handlestylesULDpUStyle(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpUStyle: val }));
  };
  var handlestylesULDpColor = function handlestylesULDpColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpColor: val }));
  };
  var handlestylesULDpTS = function handlestylesULDpTS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpTS: val }));
  };
  var handlestylesULDpLS = function handlestylesULDpLS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpLS: val }));
  };
  var handlestylesULDpLH = function handlestylesULDpLH(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpLH: val }));
  };
  var handlestylesULDpT = function handlestylesULDpT(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpT: val }));
  };
  var handlestylesULDpP = function handlestylesULDpP(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpP: val }));
  };
  var handlestylesULDpI = function handlestylesULDpI(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULDpI: val }));
  };
  var handlestylesULTbFF = function handlestylesULTbFF(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbFF: val }));
  };
  var handlestylesULTbFW = function handlestylesULTbFW(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbFW: val }));
  };
  var handlestylesULTbFS = function handlestylesULTbFS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbFS: val }));
  };
  var handlestylesULTbUColor = function handlestylesULTbUColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbUColor: val }));
  };
  var handlestylesULTbUStyle = function handlestylesULTbUStyle(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbUStyle: val }));
  };
  var handlestylesULTbColor = function handlestylesULTbColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbColor: val }));
  };
  var handlestylesULTbTS = function handlestylesULTbTS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbTS: val }));
  };
  var handlestylesULTbLS = function handlestylesULTbLS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbLS: val }));
  };
  var handlestylesULTbLH = function handlestylesULTbLH(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbLH: val }));
  };
  var handlestylesULTbT = function handlestylesULTbT(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbT: val }));
  };
  var handlestylesULTbP = function handlestylesULTbP(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbP: val }));
  };
  var handlestylesULTbI = function handlestylesULTbI(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULTbI: val }));
  };
  var handlestylesULPhFF = function handlestylesULPhFF(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhFF: val }));
  };
  var handlestylesULPhFW = function handlestylesULPhFW(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhFW: val }));
  };
  var handlestylesULPhFS = function handlestylesULPhFS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhFS: val }));
  };
  var handlestylesULPhUColor = function handlestylesULPhUColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhUColor: val }));
  };
  var handlestylesULPhUStyle = function handlestylesULPhUStyle(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhUStyle: val }));
  };
  var handlestylesULPhColor = function handlestylesULPhColor(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhColor: val }));
  };
  var handlestylesULPhTS = function handlestylesULPhTS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhTS: val }));
  };
  var handlestylesULPhLS = function handlestylesULPhLS(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhLS: val }));
  };
  var handlestylesULPhLH = function handlestylesULPhLH(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhLH: val }));
  };
  var handlestylesULPhT = function handlestylesULPhT(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhT: val }));
  };
  var handlestylesULPhP = function handlestylesULPhP(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhP: val }));
  };
  var handlestylesULPhI = function handlestylesULPhI(val) {
    props.setStylesUL(Object.assign({}, props.stylesUL, { ULPhI: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Bullet List Text Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global unordered list text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesUL.UL, setBtnValue: handlestylesUL }),
      props.stylesUL.UL ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Unordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesUL.ULDpFF,
            setFontFamily: handlestylesULDpFF,
            fontWeight: props.stylesUL.ULDpFW,
            setFontWeight: handlestylesULDpFW,
            fontStyle: props.stylesUL.ULDpFS,
            setFontStyle: handlestylesULDpFS,
            textColor: props.stylesUL.ULDpColor,
            setTextColor: handlestylesULDpColor,
            underlineColor: props.stylesUL.ULDpUColor,
            setUnderlineColor: handlestylesULDpUColor,
            underlineStyle: props.stylesUL.ULDpUStyle,
            setUnderlineStyle: handlestylesULDpUStyle,
            textSize: props.stylesUL.ULDpTS,
            setTextSize: handlestylesULDpTS,
            textLetterSpacing: props.stylesUL.ULDpLS,
            setTextLetterSpacing: handlestylesULDpLS,
            textLineHeight: props.stylesUL.ULDpLH,
            setTextLineHeight: handlestylesULDpLH,
            listType: 'Unordered',
            listT: props.stylesUL.ULDpT,
            setListT: handlestylesULDpT,
            listP: props.stylesUL.ULDpP,
            setListP: handlestylesULDpP,
            listI: props.stylesUL.ULDpI,
            setListI: handlestylesULDpI
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Unordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesUL.ULTbFF,
            setFontFamily: handlestylesULTbFF,
            fontWeight: props.stylesUL.ULTbFW,
            setFontWeight: handlestylesULTbFW,
            fontStyle: props.stylesUL.ULTbFS,
            setFontStyle: handlestylesULTbFS,
            textColor: props.stylesUL.ULTbColor,
            setTextColor: handlestylesULTbColor,
            underlineColor: props.stylesUL.ULTbUColor,
            setUnderlineColor: handlestylesULTbUColor,
            underlineStyle: props.stylesUL.ULTbUStyle,
            setUnderlineStyle: handlestylesULTbUStyle,
            textSize: props.stylesUL.ULTbTS,
            setTextSize: handlestylesULTbTS,
            textLetterSpacing: props.stylesUL.ULTbLS,
            setTextLetterSpacing: handlestylesULTbLS,
            textLineHeight: props.stylesUL.ULTbLH,
            setTextLineHeight: handlestylesULTbLH,
            listType: 'Unordered',
            listT: props.stylesUL.ULTbT,
            setListT: handlestylesULTbT,
            listP: props.stylesUL.ULTbP,
            setListP: handlestylesULTbP,
            listI: props.stylesUL.ULTbI,
            setListI: handlestylesULTbI
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Unordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesUL.ULPhFF,
            setFontFamily: handlestylesULPhFF,
            fontWeight: props.stylesUL.ULPhFW,
            setFontWeight: handlestylesULPhFW,
            fontStyle: props.stylesUL.ULPhFS,
            setFontStyle: handlestylesULPhFS,
            textColor: props.stylesUL.ULPhColor,
            setTextColor: handlestylesULPhColor,
            underlineColor: props.stylesUL.ULPhUColor,
            setUnderlineColor: handlestylesULPhUColor,
            underlineStyle: props.stylesUL.ULPhUStyle,
            setUnderlineStyle: handlestylesULPhUStyle,
            textSize: props.stylesUL.ULPhTS,
            setTextSize: handlestylesULPhTS,
            textLetterSpacing: props.stylesUL.ULPhLS,
            setTextLetterSpacing: handlestylesULPhLS,
            textLineHeight: props.stylesUL.ULPhLH,
            setTextLineHeight: handlestylesULPhLH,
            listType: 'Unordered',
            listT: props.stylesUL.ULPhT,
            setListT: handlestylesULPhT,
            listP: props.stylesUL.ULPhP,
            setListP: handlestylesULPhP,
            listI: props.stylesUL.ULPhI,
            setListI: handlestylesULPhI
          })
        )
      ) : ''
    ),
    Boolean(props.stylesUL.UL) ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = UnOrderListStyles;

/***/ }),
/* 502 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _StyleSettings = __webpack_require__(29);

var _StyleSettings2 = _interopRequireDefault(_StyleSettings);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var OrderListStyles = function OrderListStyles(props) {

  var handlestylesOL = function handlestylesOL(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OL: val }));
  };
  var handlestylesOLDpFF = function handlestylesOLDpFF(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpFF: val }));
  };
  var handlestylesOLDpFW = function handlestylesOLDpFW(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpFW: val }));
  };
  var handlestylesOLDpFS = function handlestylesOLDpFS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpFS: val }));
  };
  var handlestylesOLDpUColor = function handlestylesOLDpUColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpUColor: val }));
  };
  var handlestylesOLDpUStyle = function handlestylesOLDpUStyle(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpUStyle: val }));
  };
  var handlestylesOLDpColor = function handlestylesOLDpColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpColor: val }));
  };
  var handlestylesOLDpTS = function handlestylesOLDpTS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpTS: val }));
  };
  var handlestylesOLDpLS = function handlestylesOLDpLS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpLS: val }));
  };
  var handlestylesOLDpLH = function handlestylesOLDpLH(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpLH: val }));
  };
  var handlestylesOLDpT = function handlestylesOLDpT(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpT: val }));
  };
  var handlestylesOLDpP = function handlestylesOLDpP(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpP: val }));
  };
  var handlestylesOLDpI = function handlestylesOLDpI(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLDpI: val }));
  };
  var handlestylesOLTbFF = function handlestylesOLTbFF(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbFF: val }));
  };
  var handlestylesOLTbFW = function handlestylesOLTbFW(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbFW: val }));
  };
  var handlestylesOLTbFS = function handlestylesOLTbFS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbFS: val }));
  };
  var handlestylesOLTbUColor = function handlestylesOLTbUColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbUColor: val }));
  };
  var handlestylesOLTbUStyle = function handlestylesOLTbUStyle(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbUStyle: val }));
  };
  var handlestylesOLTbColor = function handlestylesOLTbColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbColor: val }));
  };
  var handlestylesOLTbTS = function handlestylesOLTbTS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbTS: val }));
  };
  var handlestylesOLTbLS = function handlestylesOLTbLS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbLS: val }));
  };
  var handlestylesOLTbLH = function handlestylesOLTbLH(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbLH: val }));
  };
  var handlestylesOLTbT = function handlestylesOLTbT(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbT: val }));
  };
  var handlestylesOLTbP = function handlestylesOLTbP(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbP: val }));
  };
  var handlestylesOLTbI = function handlestylesOLTbI(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLTbI: val }));
  };
  var handlestylesOLPhFF = function handlestylesOLPhFF(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhFF: val }));
  };
  var handlestylesOLPhFW = function handlestylesOLPhFW(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhFW: val }));
  };
  var handlestylesOLPhFS = function handlestylesOLPhFS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhFS: val }));
  };
  var handlestylesOLPhUColor = function handlestylesOLPhUColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhUColor: val }));
  };
  var handlestylesOLPhUStyle = function handlestylesOLPhUStyle(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhUStyle: val }));
  };
  var handlestylesOLPhColor = function handlestylesOLPhColor(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhColor: val }));
  };
  var handlestylesOLPhTS = function handlestylesOLPhTS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhTS: val }));
  };
  var handlestylesOLPhLS = function handlestylesOLPhLS(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhLS: val }));
  };
  var handlestylesOLPhLH = function handlestylesOLPhLH(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhLH: val }));
  };
  var handlestylesOLPhT = function handlestylesOLPhT(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhT: val }));
  };
  var handlestylesOLPhP = function handlestylesOLPhP(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhP: val }));
  };
  var handlestylesOLPhI = function handlestylesOLPhI(val) {
    props.setStylesOL(Object.assign({}, props.stylesOL, { OLPhI: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_style_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_styles' },
      wp.element.createElement(
        'span',
        null,
        'Number List Test Styles'
      ),
      wp.element.createElement(
        'p',
        null,
        'Enable this setting to set the global ordered list text styles throughout your website. These styles will apply by default across all modules, but can be easily overridden within each Divi module setting or by Divi Presets.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: props.stylesOL.OL, setBtnValue: handlestylesOL }),
      props.stylesOL.OL ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'div',
          { className: 'pac_da_styles_settings' },
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Desktop',
            stgPrefix: 'Ordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesOL.OLDpFF,
            setFontFamily: handlestylesOLDpFF,
            fontWeight: props.stylesOL.OLDpFW,
            setFontWeight: handlestylesOLDpFW,
            fontStyle: props.stylesOL.OLDpFS,
            setFontStyle: handlestylesOLDpFS,
            textColor: props.stylesOL.OLDpColor,
            setTextColor: handlestylesOLDpColor,
            underlineColor: props.stylesOL.OLDpUColor,
            setUnderlineColor: handlestylesOLDpUColor,
            underlineStyle: props.stylesOL.OLDpUStyle,
            setUnderlineStyle: handlestylesOLDpUStyle,
            textSize: props.stylesOL.OLDpTS,
            setTextSize: handlestylesOLDpTS,
            textLetterSpacing: props.stylesOL.OLDpLS,
            setTextLetterSpacing: handlestylesOLDpLS,
            textLineHeight: props.stylesOL.OLDpLH,
            setTextLineHeight: handlestylesOLDpLH,
            listType: 'Ordered',
            listT: props.stylesOL.OLDpT,
            setListT: handlestylesOLDpT,
            listP: props.stylesOL.OLDpP,
            setListP: handlestylesOLDpP,
            listI: props.stylesOL.OLDpI,
            setListI: handlestylesOLDpI
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Tablet',
            stgPrefix: 'Ordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesOL.OLTbFF,
            setFontFamily: handlestylesOLTbFF,
            fontWeight: props.stylesOL.OLTbFW,
            setFontWeight: handlestylesOLTbFW,
            fontStyle: props.stylesOL.OLTbFS,
            setFontStyle: handlestylesOLTbFS,
            textColor: props.stylesOL.OLTbColor,
            setTextColor: handlestylesOLTbColor,
            underlineColor: props.stylesOL.OLTbUColor,
            setUnderlineColor: handlestylesOLTbUColor,
            underlineStyle: props.stylesOL.OLTbUStyle,
            setUnderlineStyle: handlestylesOLTbUStyle,
            textSize: props.stylesOL.OLTbTS,
            setTextSize: handlestylesOLTbTS,
            textLetterSpacing: props.stylesOL.OLTbLS,
            setTextLetterSpacing: handlestylesOLTbLS,
            textLineHeight: props.stylesOL.OLTbLH,
            setTextLineHeight: handlestylesOLTbLH,
            listType: 'Ordered',
            listT: props.stylesOL.OLTbT,
            setListT: handlestylesOLTbT,
            listP: props.stylesOL.OLTbP,
            setListP: handlestylesOLTbP,
            listI: props.stylesOL.OLTbI,
            setListI: handlestylesOLTbI
          }),
          wp.element.createElement(_StyleSettings2.default, {
            device: 'Phone',
            stgPrefix: 'Ordered List',
            colorPalette: props.colorPalette,
            diviGlobalColor: props.diviGlobalColor,
            fontFamilyList: props.fontFamily,
            fontFamily: props.stylesOL.OLPhFF,
            setFontFamily: handlestylesOLPhFF,
            fontWeight: props.stylesOL.OLPhFW,
            setFontWeight: handlestylesOLPhFW,
            fontStyle: props.stylesOL.OLPhFS,
            setFontStyle: handlestylesOLPhFS,
            textColor: props.stylesOL.OLPhColor,
            setTextColor: handlestylesOLPhColor,
            underlineColor: props.stylesOL.OLPhUColor,
            setUnderlineColor: handlestylesOLPhUColor,
            underlineStyle: props.stylesOL.OLPhUStyle,
            setUnderlineStyle: handlestylesOLPhUStyle,
            textSize: props.stylesOL.OLPhTS,
            setTextSize: handlestylesOLPhTS,
            textLetterSpacing: props.stylesOL.OLPhLS,
            setTextLetterSpacing: handlestylesOLPhLS,
            textLineHeight: props.stylesOL.OLPhLH,
            setTextLineHeight: handlestylesOLPhLH,
            listType: 'Ordered',
            listT: props.stylesOL.OLPhT,
            setListT: handlestylesOLPhT,
            listP: props.stylesOL.OLPhP,
            setListP: handlestylesOLPhP,
            listI: props.stylesOL.OLPhI,
            setListI: handlestylesOLPhI
          })
        )
      ) : ''
    ),
    Boolean(props.stylesOL.OL) ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: props.updateStyles },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#FFFFFF', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = OrderListStyles;

/***/ }),
/* 503 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ResetPopup = function ResetPopup(props) {

    var hideResetPopup = function hideResetPopup() {
        props.setResetPopup(false);
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_reset overlay', onClick: hideResetPopup },
        wp.element.createElement(
            'div',
            { className: 'popup' },
            wp.element.createElement(
                'span',
                null,
                'Reset'
            ),
            wp.element.createElement(
                'p',
                null,
                'This will return all settings throughout Divi Assistant to their default values. Are you sure you want to do this?'
            ),
            wp.element.createElement(
                'div',
                { className: 'btns' },
                wp.element.createElement(
                    'div',
                    { className: 'no', onClick: hideResetPopup },
                    'No'
                ),
                wp.element.createElement(
                    'div',
                    { className: 'yes', onClick: props.handleResetSettings },
                    'Yes'
                )
            )
        )
    );
};
exports.default = ResetPopup;

/***/ }),
/* 504 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ImportExport = function ImportExport(props) {
    var _useState = (0, _react.useState)(false),
        _useState2 = _slicedToArray(_useState, 2),
        iAgree = _useState2[0],
        setIAgree = _useState2[1];

    var OpenExportTab = function OpenExportTab() {
        props.setImportOrExport(false);
        props.setImportFileName('');
        setIAgree(false);
        props.setImportGlobalColor(false);
        props.setImportDiviThemeOptions(false);
        props.setImportCustomizerStg(false);
        props.setImportGlobalPresets(false);
        props.setImportDiviLibraryLayout(false);
        props.setImportDiviTBT(false);
    };
    var hidePopup = function hidePopup(e) {
        if (e.target.className === 'pac_da_import_export overlay' || e.target.className === 'et-core-modal-close') {
            props.hidePopup();
        }
    };

    return wp.element.createElement(
        'div',
        { className: 'pac_da_import_export overlay', onClick: hidePopup },
        wp.element.createElement(
            'div',
            { className: props.importOrExport === false ? 'popup export' : 'popup import' },
            wp.element.createElement(
                'div',
                { className: 'header' },
                wp.element.createElement(
                    'span',
                    { className: 'title' },
                    'Import & Export Settings'
                ),
                wp.element.createElement('div', { onClick: hidePopup, className: 'et-core-modal-close' })
            ),
            wp.element.createElement(
                'div',
                { className: 'Tabs' },
                wp.element.createElement(
                    'span',
                    { className: props.importOrExport === false ? 'active' : '', onClick: OpenExportTab },
                    'Export'
                ),
                wp.element.createElement(
                    'span',
                    { className: props.importOrExport === true ? 'active' : '', onClick: function onClick() {
                            return props.setImportOrExport(true);
                        } },
                    'Import'
                )
            ),
            props.importOrExport === false ? wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'body' },
                    wp.element.createElement(
                        'span',
                        { className: 'description' },
                        'Exporting your Divi Assistant Settings will create a file that can be saved locally and imported into other websites.'
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'heading' },
                        'Export File Name'
                    ),
                    wp.element.createElement('input', { type: 'text', value: props.exportFileName, autoComplete: 'off', onChange: function onChange(e) {
                            return props.setExportFileName(e.target.value);
                        } }),
                    wp.element.createElement(
                        'div',
                        { className: 'heading' },
                        'Export Options'
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportGlobalColor, checked: props.exportGlobalColor == "true" || props.exportGlobalColor == true ? true : false, onChange: function onChange() {
                                return props.setExportGlobalColor(!props.exportGlobalColor);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Global Colors'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportDiviThemeOptions, checked: props.exportDiviThemeOptions == "true" || props.exportDiviThemeOptions == true ? true : false, onChange: function onChange() {
                                return props.setExportdiviThemeOptions(!props.exportDiviThemeOptions);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Divi Theme Options'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportCustomizerStg, checked: props.exportCustomizerStg == "true" || props.exportCustomizerStg == true ? true : false, onChange: function onChange() {
                                return props.setExportCustomizerStg(!props.exportCustomizerStg);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Theme Customizer Settings'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportGlobalPresets, checked: props.exportGlobalPresets == "true" || props.exportGlobalPresets == true ? true : false, onChange: function onChange() {
                                return props.setExportGlobalPresets(!props.exportGlobalPresets);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Module Presets'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportDiviLayouts, checked: props.exportDiviLayouts == "true" || props.exportDiviLayouts == true ? true : false, onChange: function onChange() {
                                return props.setExportDiviLayouts(!props.exportDiviLayouts);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Divi Library Layouts'
                        )
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'export_options' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.exportThemeBuilderTemplates, checked: props.exportThemeBuilderTemplates == "true" || props.exportThemeBuilderTemplates == true ? true : false, onChange: function onChange() {
                                return props.setExportThemeBuilderTemplates(!props.exportThemeBuilderTemplates);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Include Theme Builder Templates'
                        )
                    )
                ),
                wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: props.handleExportSettings },
                    'Export Divi Assistant Settings'
                )
            ) : wp.element.createElement(
                _react2.default.Fragment,
                null,
                wp.element.createElement(
                    'div',
                    { className: 'body' },
                    wp.element.createElement(
                        'span',
                        { className: 'description' },
                        'Importing a Divi Assistant Settings file will overwrite all existing settings. Please proceed with caution!'
                    ),
                    wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: iAgree, checked: iAgree == "true" || iAgree == true ? true : false, onChange: function onChange() {
                                return setIAgree(!iAgree);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'I Understand'
                        )
                    ),
                    iAgree === true ? wp.element.createElement(
                        _react2.default.Fragment,
                        null,
                        wp.element.createElement(
                            'div',
                            { className: 'heading' },
                            'Select File To Import'
                        ),
                        wp.element.createElement('input', { className: 'file', type: 'file', accept: '.json', value: props.importFileName, onChange: props.handleImportFile })
                    ) : "",
                    props.importGlobalColor === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importGlobalColorCb, checked: props.importGlobalColorCb == "true" || props.importGlobalColorCb == true ? true : false, onChange: function onChange() {
                                return props.setImportGlobalColorCb(!props.importGlobalColorCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Import Global Colors'
                        )
                    ) : '',
                    props.importDiviThemeOptions === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importDiviThemeOptionsCb, checked: props.importDiviThemeOptionsCb == "true" || props.importDiviThemeOptionsCb == true ? true : false, onChange: function onChange() {
                                return props.setImportDiviThemeOptionsCb(!props.importDiviThemeOptionsCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Import Divi Theme Options'
                        )
                    ) : '',
                    props.importCustomizerStg === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importCustomizerStgCb, checked: props.importCustomizerStgCb == "true" || props.importCustomizerStgCb == true ? true : false, onChange: function onChange() {
                                return props.setImportCustomizerStgCb(!props.importCustomizerStgCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Import Theme Customizer Settings'
                        )
                    ) : '',
                    props.importGlobalPresets === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importGlobalPresetsCb, checked: props.importGlobalPresetsCb == "true" || props.importGlobalPresetsCb == true ? true : false, onChange: function onChange() {
                                return props.setImportGlobalPresetsCb(!props.importGlobalPresetsCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'mport Module Presets'
                        )
                    ) : '',
                    props.importDiviLibraryLayout === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importDiviLibraryLayoutCb, checked: props.importDiviLibraryLayoutCb == "true" || props.importDiviLibraryLayoutCb == true ? true : false, onChange: function onChange() {
                                return props.setImportDiviLibraryLayoutCb(!props.importDiviLibraryLayoutCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Import Divi Library Layouts'
                        )
                    ) : '',
                    props.importDiviTBT === true ? wp.element.createElement(
                        'div',
                        { className: 'agree' },
                        wp.element.createElement('input', { type: 'checkbox', value: props.importDiviTBTCb, checked: props.importDiviTBTCb == "true" || props.importDiviTBTCb == true ? true : false, onChange: function onChange() {
                                return props.setImportDiviTBTCb(!props.importDiviTBTCb);
                            } }),
                        wp.element.createElement(
                            'span',
                            null,
                            'Import Theme Builder Templates'
                        )
                    ) : ''
                ),
                wp.element.createElement(
                    'div',
                    { className: 'btn', onClick: props.handleImportSettings },
                    'Import Divi Assistant Settings'
                )
            )
        )
    );
};
exports.default = ImportExport;

/***/ }),
/* 505 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Miscellaneous = function Miscellaneous(props) {

  // Load graphics
  var horizontalScroll = pacDaAppLocalizer.plugin_url + 'include/img/Horizontal Scroll.png';
  var cursorHighlightColor = pacDaAppLocalizer.plugin_url + 'include/img/Cursor Highlight Color.png';
  var anchorLinkOffset = pacDaAppLocalizer.plugin_url + 'include/img/Anchor Link Offset.png';

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Miscellaneous',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleHorizontalScroll = function handleHorizontalScroll(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { horizontalScroll: val }));
  };
  var handleCursorHighlight = function handleCursorHighlight(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { cursorHighlight: val }));
  };
  var handleBgHighlight = function handleBgHighlight(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { bgHighlight: val }));
  };
  var handleTextHighlight = function handleTextHighlight(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { textHighlight: val }));
  };
  var handleAnchorLinkOffset = function handleAnchorLinkOffset(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { anchorLinkOffset: val }));
  };
  var handleAnchorLinkOffsetVal = function handleAnchorLinkOffsetVal(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { anchorLinkOffsetVal: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: true, settingImg: anchorLinkOffset, btnValue: props.utilityCards.anchorLinkOffset, setBtnValue: handleAnchorLinkOffset, fieldTitle: 'Offset Distance', fieldValue: props.utilityCards.anchorLinkOffsetVal, setFieldValue: handleAnchorLinkOffsetVal, placeholder: '100px', title: 'Anchor Link Offset', description: 'When using a fixed header with the Divi Theme Builder and including anchor links on your site, you may encounter an issue where the top part of the anchor link area is hidden by the fixed header. This occurs because the anchor link position does not consider the height of the fixed header. To resolve this, we have created a feature to adjust the vertical offset when navigating to anchor links. Enabling this setting will adjust the anchor link vertical offset distance to ensure the target content is visible by positioning it lower based on the fixed header height.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'color', settingImg: cursorHighlightColor, btnValue: props.utilityCards.cursorHighlight, setBtnValue: handleCursorHighlight, colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, bgColor: props.utilityCards.bgHighlight, setBgColor: handleBgHighlight, textColor: props.utilityCards.textHighlight, setTextColor: handleTextHighlight, title: 'Set Cursor Text Highlight Color', description: 'When a visitor on your website uses their mouse cursor to select some text, the browser provides a default blue color for the highlighted background color. The generic color is boring, so this is a great opportunity to provide a clever hint of your own branding by using your own colors! With this setting enabled, you can set the color of the highlighted text background and text color when anyone uses their mouse to click and drag to select words on your website.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: horizontalScroll, btnValue: props.utilityCards.horizontalScroll, setBtnValue: handleHorizontalScroll, title: 'Disable Horizontal Scroll Movement', description: 'Sometimes you may notice horizontal scrollbars or a back and forth sideways movement when viewing your website on mobile. This is not good, and can make your website look unprofessional, and confusing. Many Divi websites have this problem due to things in CSS or layouts like margin, padding, sizing, or overflow, but unfortunately it often goes unnoticed. Enabling this setting will prevent this issue from happening!' })
    )
  );
};
exports.default = Miscellaneous;

/***/ }),
/* 506 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _ColorOption = __webpack_require__(25);

var _ColorOption2 = _interopRequireDefault(_ColorOption);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var Scrollbar = function Scrollbar(props) {

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Scrollbar',
      value: JSON.stringify(props.scrollBar)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleScrollbar = function handleScrollbar(val) {
    props.setScrollBar(Object.assign({}, props.scrollBar, { scrollbar: val }));
  };
  var handleBarWidth = function handleBarWidth(val) {
    val = val.replace(/[^0-9]/g, '') === '' ? '0' : val.replace(/[^0-9]/g, '');
    val = val + 'px';
    props.setScrollBar(Object.assign({}, props.scrollBar, { barWidth: val }));
  };
  var handleBarBgColor = function handleBarBgColor(val) {
    props.setScrollBar(Object.assign({}, props.scrollBar, { barBgColor: val }));
  };
  var handleBarRaduis = function handleBarRaduis(val) {
    val = val.replace(/[^0-9]/g, '') === '' ? '0' : val.replace(/[^0-9]/g, '');
    val = val + 'px';
    props.setScrollBar(Object.assign({}, props.scrollBar, { barRaduis: val }));
  };
  var handleBarHandleColor = function handleBarHandleColor(val) {
    props.setScrollBar(Object.assign({}, props.scrollBar, { barHandleColor: val }));
  };
  var handleBarHandleHColor = function handleBarHandleHColor(val) {
    props.setScrollBar(Object.assign({}, props.scrollBar, { barHandleHColor: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_scroll_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_scroll_setting' },
      wp.element.createElement(
        'div',
        { className: 'pac_da_scroll_setting_inner' },
        wp.element.createElement(
          'span',
          { className: 'heading' },
          'Customize the Browser Scrollbar To Match Your Website Branding'
        ),
        wp.element.createElement(
          'p',
          null,
          'Scrollbars on the right side of a screen are essential for browsing your website. The default browser scrollbar function is fine, but the design is pretty boring. When you make a beautiful website with Divi, why not also make the scrollbars match your brand and website design? By customizing the scrollbars to match your website branding, you will capture your visitor\u2019s attention and show them that your site is complete and polished, giving them a more visually appealing browsing experience. Enabling this setting will activate the custom browser scrollbar styles which you can configure according to your preference.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: props.scrollBar.scrollbar, setBtnValue: handleScrollbar }),
        props.scrollBar.scrollbar ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Scrollbar Width'
          ),
          wp.element.createElement(
            'p',
            null,
            'Set a width for the entire browser scrollbar.'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '10px', value: props.scrollBar.barWidth, autoComplete: 'off', onChange: function onChange(e) {
              return handleBarWidth(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Scrollbar Track Background Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a background color for the browser scrollbar track.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.scrollBar.barBgColor, setColor: handleBarBgColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Scrollbar Handle Border Radius'
          ),
          wp.element.createElement(
            'p',
            null,
            'Set a border radius for the browser scrollbar handle.'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '5px', value: props.scrollBar.barRaduis, autoComplete: 'off', onChange: function onChange(e) {
              return handleBarRaduis(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Scrollbar Handle Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the browser scrollbar handle.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.scrollBar.barHandleColor, setColor: handleBarHandleColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Scrollbar Handle Color On Hover'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the browser scrollbar handle on hover.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.scrollBar.barHandleHColor, setColor: handleBarHandleHColor })
        ) : ''
      )
    ),
    props.scrollBar.scrollbar ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = Scrollbar;

/***/ }),
/* 507 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _ColorOption = __webpack_require__(25);

var _ColorOption2 = _interopRequireDefault(_ColorOption);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BackToTop = function BackToTop(props) {

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'BackToTop',
      value: JSON.stringify(props.backToTop)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleBackToTop = function handleBackToTop(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { backToTop: val }));
  };
  var handleDevices = function handleDevices(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { devices: val }));
  };
  var handleBtnBgColor = function handleBtnBgColor(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnBgColor: val }));
  };
  var handleBtnBgHColor = function handleBtnBgHColor(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnBgHColor: val }));
  };
  var handleBtnRadius = function handleBtnRadius(val) {
    val = val.replace(/[^0-9]/g, '') === '' ? '0' : val.replace(/[^0-9]/g, '');
    val = val + 'px';
    props.setBackToTop(Object.assign({}, props.backToTop, { btnRadius: val }));
  };
  var handleBtnRight = function handleBtnRight(val) {
    val = val.replace(/[^0-9]/g, '') === '' ? '0' : val.replace(/[^0-9]/g, '');
    val = val + 'px';
    props.setBackToTop(Object.assign({}, props.backToTop, { right: val }));
  };
  var handleBtnBottom = function handleBtnBottom(val) {
    val = val.replace(/[^0-9]/g, '') === '' ? '0' : val.replace(/[^0-9]/g, '');
    val = val + 'px';
    props.setBackToTop(Object.assign({}, props.backToTop, { bottom: val }));
  };
  var handleBtnTextColor = function handleBtnTextColor(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnTextColor: val }));
  };
  var handleBtnTextHColor = function handleBtnTextHColor(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnTextHColor: val }));
  };
  var handleBtnContent = function handleBtnContent(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnContent: val }));
  };
  var handleBtnIcon = function handleBtnIcon(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnIcon: val }));
  };
  var handleBtnText = function handleBtnText(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnText: val }));
  };
  var handleBtnIconPlacement = function handleBtnIconPlacement(val) {
    props.setBackToTop(Object.assign({}, props.backToTop, { btnIconPlacement: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_scroll_helper' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_scroll_setting' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/scrollToTop.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'pac_da_scroll_setting_inner' },
        wp.element.createElement(
          'span',
          { className: 'heading' },
          'Customize the Back To Top Button'
        ),
        wp.element.createElement(
          'p',
          null,
          'The Divi theme comes with a back to top button which can be enabled in the Divi>Theme Options>General settings. This adds a convenient button on the frontend near the bottom-right corner of your screen which appears after scrolling down the page. Clicking the button takes you back to the top quickly, instead of scrolling all the way up. Unfortunately, Divi does not provide any way to customize this back to top button, so we have provided settings to make it easy for you to style the colors, text, icon, and position of the Divi back to top button to match your website branding. Enabling this setting will activate the custom back to top button styles which you can configure according to your preference.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: props.backToTop.backToTop, setBtnValue: handleBackToTop }),
        props.backToTop.backToTop ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Visibility'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose on which devices to show the Back To Top Button. This feature first requires the main Back To Top Button to be enabled in Divi>Theme Options>General.'
          ),
          wp.element.createElement(
            'select',
            { className: 'pac_da_select', onChange: function onChange(e) {
                return handleDevices(e.target.value);
              }, value: props.backToTop.devices },
            wp.element.createElement(
              'option',
              { className: 'option', key: 'all', value: 'all' },
              'Show On All Devices'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'desktop_tablet', value: 'desktop_tablet' },
              'Only Show On Desktop And Tablet'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'desktop_phone', value: 'desktop_phone' },
              'Only Show On Desktop And Phone'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'tablet_phone', value: 'tablet_phone' },
              'Only Show On Tablet And Phone'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'desktop', value: 'desktop' },
              'Only Show On Desktop'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'tablet', value: 'tablet' },
              'Only Show On Tablet'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'mobile', value: 'mobile' },
              'Only Show On Phone'
            )
          ),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Background Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a background color for back to top button.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.backToTop.btnBgColor, setColor: handleBtnBgColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Background Color On Hover'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a background color for back to top button on hover.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.backToTop.btnBgHColor, setColor: handleBtnBgHColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Border Radius'
          ),
          wp.element.createElement(
            'p',
            null,
            'Set a border radius for the back to top button.'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '5px', value: props.backToTop.btnRadius, autoComplete: 'off', onChange: function onChange(e) {
              return handleBtnRadius(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Distance From Right'
          ),
          wp.element.createElement(
            'p',
            null,
            'Set a pixel value for the distance the back to top button should be from the side of the screen.'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '0px', value: props.backToTop.right, autoComplete: 'off', onChange: function onChange(e) {
              return handleBtnRight(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Distance From Bottom'
          ),
          wp.element.createElement(
            'p',
            null,
            'Set a pixel value for the distance the back to top button should be from the bottom of the screen.'
          ),
          wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '125px', value: props.backToTop.bottom, autoComplete: 'off', onChange: function onChange(e) {
              return handleBtnBottom(e.target.value);
            } }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Icon/Text Color'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the back to top button icon or text.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.backToTop.btnTextColor, setColor: handleBtnTextColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button Icon/Text Color On Hover'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose a color for the back to top button icon or text on hover.'
          ),
          wp.element.createElement(_ColorOption2.default, { colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, color: props.backToTop.btnTextHColor, setColor: handleBtnTextHColor }),
          wp.element.createElement(
            'span',
            { className: 'sub-heading' },
            'Back to Top Button content'
          ),
          wp.element.createElement(
            'p',
            null,
            'Choose whether to show an icon, text, or both in the Back To Top Button.'
          ),
          wp.element.createElement(
            'select',
            { className: 'pac_da_select', onChange: function onChange(e) {
                return handleBtnContent(e.target.value);
              }, value: props.backToTop.btnContent },
            wp.element.createElement(
              'option',
              { className: 'option', key: 'icon', value: 'icon' },
              'Icon Only'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'text', value: 'text' },
              'Text Only'
            ),
            wp.element.createElement(
              'option',
              { className: 'option', key: 'icon_text', value: 'icon_text' },
              'Icon And Text'
            )
          ),
          props.backToTop.btnContent === 'icon' || props.backToTop.btnContent === 'icon_text' ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'span',
              { className: 'sub-heading' },
              'Back to Top Button Icon'
            ),
            wp.element.createElement(
              'p',
              null,
              'Choose an icon for the Back To Top Button. You can find the icon number code from the Elegant Themes blog post ',
              wp.element.createElement(
                'a',
                { target: '_blank', href: 'https://www.elegantthemes.com/blog/resources/elegant-icon-font' },
                'here'
              ),
              '. Remember to add a forward slash \\ before the number.'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: '\\32', value: props.backToTop.btnIcon, autoComplete: 'off', onChange: function onChange(e) {
                return handleBtnIcon(e.target.value);
              } })
          ) : '',
          props.backToTop.btnContent === 'text' || props.backToTop.btnContent === 'icon_text' ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'span',
              { className: 'sub-heading' },
              'Back to Top Button Text'
            ),
            wp.element.createElement(
              'p',
              null,
              'Write custom text for the Back To Top Button.'
            ),
            wp.element.createElement('input', { className: 'inputField', type: 'text', placeholder: 'Back To Top', value: props.backToTop.btnText, autoComplete: 'off', onChange: function onChange(e) {
                return handleBtnText(e.target.value);
              } })
          ) : '',
          props.backToTop.btnContent === 'icon_text' ? wp.element.createElement(
            _react2.default.Fragment,
            null,
            wp.element.createElement(
              'span',
              { className: 'sub-heading' },
              'Back to Top Button Icon Placement'
            ),
            wp.element.createElement(
              'p',
              null,
              'Choose to show the Back To Top Button icon on the left or right of the text.'
            ),
            wp.element.createElement(
              'select',
              { className: 'pac_da_select', onChange: function onChange(e) {
                  return handleBtnIconPlacement(e.target.value);
                }, value: props.backToTop.btnIconPlacement },
              wp.element.createElement(
                'option',
                { className: 'option', key: 'left', value: 'left' },
                'Left Of Text'
              ),
              wp.element.createElement(
                'option',
                { className: 'option', key: 'right', value: 'right' },
                'Right Of Text'
              )
            )
          ) : ''
        ) : ''
      )
    ),
    props.backToTop.backToTop ? wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ) : ''
  );
};
exports.default = BackToTop;

/***/ }),
/* 508 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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); } }

var ReplaceText = function ReplaceText(props) {

  var newArray = [];

  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'TextReplace',
      value: props.textReplace,
      Json: JSON.stringify(props.textReplaceJson)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var addNewField = function addNewField(e) {
    props.setTextReplaceJson([].concat(_toConsumableArray(props.textReplaceJson), [{ selector: "", customText: "" }]));
  };
  var deleteOldField = function deleteOldField(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    newArray = [].concat(_toConsumableArray(props.textReplaceJson));
    newArray.splice(index, 1);
    props.setTextReplaceJson(newArray);
  };

  var handleSelector = function handleSelector(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    newArray = [].concat(_toConsumableArray(props.textReplaceJson));
    newArray[index].selector = e.target.value;
    props.setTextReplaceJson(newArray);
  };
  var handleCustomText = function handleCustomText(e) {
    var parentDiv = e.target.parentNode;
    var index = Array.from(parentDiv.parentNode.children).indexOf(parentDiv);
    newArray = [].concat(_toConsumableArray(props.textReplaceJson));
    newArray[index].customText = e.target.value;
    props.setTextReplaceJson(newArray);
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_text_replace' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_text_replace_sttgs' },
      wp.element.createElement('img', { className: 'img', src: pacDaAppLocalizer.plugin_url + 'include/img/replaceText.png', alt: 'Setting Image' }),
      wp.element.createElement(
        'div',
        { className: 'pac_da_text_replace_sttgs_inner' },
        wp.element.createElement(
          'span',
          null,
          'Replace Any Text On Your Website'
        ),
        wp.element.createElement(
          'p',
          null,
          'Sometimes you may want to replace a word or phrase on your website in an area or display that is not editable by the Divi Builder. This can occur in the output of a module or the display of another plugin. Enabling this setting will allow you to replace any text on your website with a different word or phrase.'
        ),
        wp.element.createElement(_Togglebutton2.default, { btnValue: props.textReplace, setBtnValue: props.setTextReplace }),
        props.textReplace ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          wp.element.createElement(
            'span',
            { className: 'heading' },
            'Custom Text'
          ),
          wp.element.createElement(
            'p',
            null,
            'To use this utility, you must first use the browser developer tools to inspect the code of your website and find the CSS selector of the text you want to replace. Write the CSS selector in the input field on the left, and write the text you want to use instead in the input field on the right. You can add and delete items as needed.'
          ),
          wp.element.createElement(
            'ul',
            { id: 'pac_da_text_replace_settings' },
            Object.keys(props.textReplaceJson).map(function (key) {
              return wp.element.createElement(
                'li',
                { key: key, className: 'pac_da_text_replace_setting' },
                wp.element.createElement('input', { type: 'text', placeholder: 'CSS Selector', value: props.textReplaceJson[key].selector, autoComplete: 'off', onChange: handleSelector }),
                wp.element.createElement('input', { type: 'text', placeholder: 'Custom Text', value: props.textReplaceJson[key].customText, autoComplete: 'off', onChange: handleCustomText }),
                wp.element.createElement('div', { className: 'delete', onClick: deleteOldField })
              );
            })
          ),
          wp.element.createElement(
            'button',
            { id: 'pac_da_add_new_selector', onClick: addNewField },
            'Add New'
          )
        ) : ''
      )
    )
  );
};
exports.default = ReplaceText;

/***/ }),
/* 509 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _SettingCard = __webpack_require__(5);

var _SettingCard2 = _interopRequireDefault(_SettingCard);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var AccessibilityHelper = function AccessibilityHelper(props) {
  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'Accessibility',
      value: JSON.stringify(props.accessibilityHelperData)
    }).then(function (response) {
      document.getElementById("pac_da_loading_spinner").classList.add("saved");
      setTimeout(function () {
        document.getElementById("pac_da_loading_spinner").classList.remove("saved");
        document.getElementById("pac_da_loading_spinner").style.display = 'none';
      }, 1000);
    });
  };

  var handleFocusable = function handleFocusable(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { focusable: val }));
  };
  var handleOutline = function handleOutline(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { outline: val }));
  };
  var handleOutlineColor = function handleOutlineColor(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { outlineColor: val }));
  };
  var handleAriaSupport = function handleAriaSupport(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { ariaSupport: val }));
  };
  var handleIconsAria = function handleIconsAria(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { iconsAria: val }));
  };
  var handleUnderline = function handleUnderline(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { Underline: val }));
  };
  var handleUnderlineHeading = function handleUnderlineHeading(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { underlineHeading: val }));
  };
  var handleUnderlineBtns = function handleUnderlineBtns(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { underlineBtns: val }));
  };
  var handleUnderlineMenu = function handleUnderlineMenu(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { underlineMenu: val }));
  };
  var handleSkipNavigation = function handleSkipNavigation(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { skipNavigation: val }));
  };
  var handleHideSkipNavigation = function handleHideSkipNavigation(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { hideSkipNavigation: val }));
  };
  var handleDuplicateMenu = function handleDuplicateMenu(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { duplicateMenu: val }));
  };
  var handleDropdownMenu = function handleDropdownMenu(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { dropdownMenu: val }));
  };
  var handleImproveScreenReader = function handleImproveScreenReader(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { improveScreenReader: val }));
  };
  var handlePinchZoom = function handlePinchZoom(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { pinchZoom: val }));
  };
  var handleTota11y = function handleTota11y(val) {
    props.setAccessibilityHelperData(Object.assign({}, props.accessibilityHelperData, { Tota11y: val }));
  };

  return wp.element.createElement(
    'div',
    { className: 'pac_da_utility' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'pac_da_setting_cards' },
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.focusable, setBtnValue: handleFocusable, title: 'Add Focusable Support To Divi Module elements', description: 'The term "focusable" in website accessibility refers to elements on a webpage that can be selected using the keyboard\'s "Tab" key. This is crucial for enabling users to interact with and navigate through different interactive elements on a webpage, and aligns with Web Content Accessibility Guidelines (WCAG) to create more inclusive web content. Enabling this setting will add support for focusable elements in Divi modules, enabling them to be navigated with the keyboard. Currently, this feature applies to both the Toggle module and Accordion module. Pressing the enter key will either expand or collapse the toggles when they are in focus.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'singleColor', settingImg: 'no', colorPalette: props.colorPalette, diviGlobalColor: props.diviGlobalColor, btnValue: props.accessibilityHelperData.outline, setBtnValue: handleOutline, color: props.accessibilityHelperData.outlineColor, setColor: handleOutlineColor, title: 'Add Keyboard Navigation Outline To Focused elements', description: 'A focused elements outline refers to a visible indication or highlighting applied to an element on a webpage when it receives keyboard focus. When a user interacts with a webpage using their keyboard, navigating through different interactive elements using the "Tab" key, the currently focused element should be visually distinguishable from other elements. This practice is fundamental for web accessibility, ensuring that users with disabilities, particularly those who rely on keyboard navigation or screen readers, can accurately track their position within the interface. Enabling this setting will add a keyboard navigation outline to focused elements.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.ariaSupport, setBtnValue: handleAriaSupport, title: 'Add ARIA Support To Divi Module Elements', description: 'ARIA (Accessible Rich Internet Applications) support involves adding attributes to HTML elements to improve web accessibility for people with disabilities. These attributes provide extra information to assistive technologies like screen readers to help convey interactive element behavior. ARIA attributes supplement standard HTML when elements don\'t fully describe their functionality. By ensuring your site has proper ARIA support, you can improve the accessibility of your website to ensure users with disabilities can effectively navigate and interact with the content, features, and functionality. Enabling this setting will add appropriate ARIA attributes across various Divi elements and modules.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.iconsAria, setBtnValue: handleIconsAria, title: 'Set Icons as ARIA Hidden', description: 'Setting icons as ARIA hidden  to indicate that certain icons within a web page should be hidden from assistive technologies, such as screen readers. This attribute is particularly useful when icons are used for purely decorative purposes and don\'t convey meaningful information to users relying on assistive technologies.  This helps create a more accessible web experience for users with disabilities while still maintaining the intended design aesthetics. Enabling this setting adds the “aria-hidden” attribute to icons.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'underlinks', settingImg: 'no', btnValue: props.accessibilityHelperData.Underline, setBtnValue: handleUnderline, btnValueHeading: props.accessibilityHelperData.underlineHeading, setBtnValueHeading: handleUnderlineHeading, btnValueBtns: props.accessibilityHelperData.underlineBtns, setBtnValueBtns: handleUnderlineBtns, btnValueMenu: props.accessibilityHelperData.underlineMenu, setBtnValueMenu: handleUnderlineMenu, title: 'Underline All Links', description: 'Underlining links in web accessibility refers to using underlines to visually differentiate and highlight hyperlinks from regular text within web content. This is important for creating a more inclusive and user-friendly experience for individuals with disabilities, particularly those who rely on assistive technologies like screen readers to navigate and understand web pages. Underlining links serves as a clear and consistent indicator to users that certain text or elements are interactive and lead to another page or resource when clicked. This is especially valuable for users who have visual impairments or color blindness, as they might have difficulty distinguishing links solely based on color or other visual cues. Enabling this setting will add an underline to all links within the website content.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'skiptoContent', settingImg: 'no', btnValue: props.accessibilityHelperData.skipNavigation, setBtnValue: handleSkipNavigation, btnValueHide: props.accessibilityHelperData.hideSkipNavigation, setBtnValueHide: handleHideSkipNavigation, title: 'Add Skip Navigation Link Option', description: 'A skip navigation link is crucial accessibility feature in web design that allow users to bypass repetitive content, such as navigation menus, and quickly jump to the main content of a webpage. These links are particularly useful for keyboard users and assistive technology users, as they help them efficiently navigate through web pages without having to tab through every menu item. Enabling this setting will add the option for users to skip over the Divi navigation menu links when using keyboard navigation and go straight to the main content area' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.duplicateMenu, setBtnValue: handleDuplicateMenu, title: 'Fix Duplicate Menu IDs', description: 'Due to Divi\'s usage of the same menu for both the primary and mobile menus, a situation arises where unique IDs are duplicated, leading to validation problems. Duplicated IDs are problematic for web accessibility primarily because they violate the fundamental rule that HTML IDs must be unique within a web page. When IDs are duplicated, it can lead to a range of accessibility issues that hinder users, particularly those who rely on assistive technologies like screen readers, from navigating and understanding the content effectively. Enabling this setting prevents WordPress from automatically assigning unique IDs to the menu items.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.dropdownMenu, setBtnValue: handleDropdownMenu, title: 'Enable Dropdown Menu Keyboard Navigation', description: 'By default, Divi dropdown menus might not open or be easily navigable using the keyboard. This provides a very poor experience for users who rely on keyboard navigation to effectively interact with and navigate through the dropdown menus. Keyboard navigation support for Divi dropdown menus enhances the accessibility and usability of the menus and aligns with web accessibility guidelines and promotes a more inclusive web experience for all users. Enabling this feature enables the Divi Menu dropdown menus to open and be easily navigated using the keyboard.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.improveScreenReader, setBtnValue: handleImproveScreenReader, title: 'Add And Improve Screen Reader Classes', description: 'A screen reader class is a specific CSS class that is used to improve the accessibility of web content, particularly for users who rely on screen readers for browsing. These classes are often added to elements like labels within a webpage to enhance the way these elements are presented and interpreted by screen readers, making them more comprehensible and informative for individuals with visual impairments. Unfortunately, the Divi theme\'s built-in screen reader classes sometimes use the display: none; property, which hides elements from the visual display. This can create accessibility challenges. Our goal is to identify and address these instances and ensure your website content is properly exposed to screen readers. Enabling this setting will add the screen reader class to various labels throughout Divi and reverse the incorrectly applied display: none; property.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.pinchZoom, setBtnValue: handlePinchZoom, title: 'Enable Browser Pinch And Zoom', description: 'By default, Divi disables the ability to pinch and zoom on mobile. However, browser zoom plays a significant role in web accessibility by ensuring that digital content is usable and legible for a wide range of users, including users with visual impairments, low vision, or other disabilities who may rely on browser zoom to make content more readable. Enabling this setting will enable the ability to pinch and zoom the screen on mobile devices.' }),
      wp.element.createElement(_SettingCard2.default, { inputField: 'btn', settingImg: 'no', btnValue: props.accessibilityHelperData.Tota11y, setBtnValue: handleTota11y, title: 'Add Tota11y Button', description: 'A tota11y button refers to a link used to open the tota11y accessibility tool, which is a JavaScript toolkit used by web developers and designers to identify and address accessibility issues on websites. The tool allows you to activate visual overlays that highlight potential accessibility problems, which can help improve your websites\' accessibility. However, while tota11y is useful for identifying issues, it should be used in conjunction with other accessibility best practices for a comprehensive approach. Enabling this setting adds the tota11y button to the bottom left corner of your website.' })
    ),
    wp.element.createElement(
      'div',
      { className: 'save bottom', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    )
  );
};
exports.default = AccessibilityHelper;

/***/ }),
/* 510 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = __webpack_require__(0);

var _react2 = _interopRequireDefault(_react);

var _axios = __webpack_require__(2);

var _axios2 = _interopRequireDefault(_axios);

var _Togglebutton = __webpack_require__(4);

var _Togglebutton2 = _interopRequireDefault(_Togglebutton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var TemporaryLoginAccess = function TemporaryLoginAccess(props) {
  var updateData = pacDaAppLocalizer.apiUrl + '/da/v1/daUpdateAllGeneralData';

  var setTempLogin = function setTempLogin(val) {
    props.setUtilityCards(Object.assign({}, props.utilityCards, { tempLogin: val }));
  };

  var checkCondition = function checkCondition() {
    var difference = 604800 - (Math.floor(Date.now() / 1000) - props.utilityCards.tempLoginTime);
    if (difference > 0) {
      var remainingTime = props.utilityCards.tempLoginTime - 60;
      props.setUtilityCards(Object.assign({}, props.utilityCards, { tempLoginTime: remainingTime }));
      setTimeout(checkCondition, 60000);
    }
  };

  var checkTimeExpired = function checkTimeExpired(val) {
    val = Math.floor(Date.now() / 1000) - val;
    if (val > 604800) {
      return false;
    } else {
      return true;
    }
  };

  var displaystrtoTime = function displaystrtoTime(val) {
    var difference = 604800 - (Math.floor(Date.now() / 1000) - val);
    var days = Math.floor(difference / (60 * 60 * 24));
    var hours = Math.floor(difference / (60 * 60) % 24);
    var minutes = Math.floor(difference / 60 % 60);
    var remainingTime = '';
    remainingTime = days > 0 ? remainingTime + (days.toString() + ' days ') : remainingTime;
    remainingTime = hours > 0 ? remainingTime + (hours.toString() + ' hours ') : remainingTime;
    remainingTime = minutes > 0 ? remainingTime + (minutes.toString() + ' minutes.') : remainingTime;
    return remainingTime;
  };

  var saveData = function saveData() {
    document.getElementById("pac_da_loading_spinner").style.display = 'block';
    _axios2.default.post(updateData, {
      card: 'templogin',
      value: JSON.stringify(props.utilityCards)
    }).then(function (response) {
      if (response.data !== false) {
        props.setUtilityCards(response.data);
        document.getElementById("pac_da_loading_spinner").classList.add("saved");
        setTimeout(function () {
          document.getElementById("pac_da_loading_spinner").classList.remove("saved");
          document.getElementById("pac_da_loading_spinner").style.display = 'none';
        }, 1000);
      }
    });
  };

  var copyLinkToClipBoard = function copyLinkToClipBoard() {
    if (window.location.protocol === 'https:') {
      navigator.clipboard.writeText(pacDaAppLocalizer.site_url + '/?pactlfs_token=' + props.utilityCards.tempLoginLink);
    } else {
      alert('This Feature only works on Live sites');
    }
  };

  var regenerateLink = function regenerateLink() {
    var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    var newPassword = '';
    for (var i = 0; i < 128; i++) {
      var randomIndex = Math.floor(Math.random() * charset.length);
      newPassword += charset[randomIndex];
    }
    props.setUtilityCards(Object.assign({}, props.utilityCards, { tempLoginLink: newPassword }));
  };

  (0, _react.useEffect)(function () {
    if (props.utilityCards.tempLoginLink === null || props.utilityCards.tempLoginLink === undefined || props.utilityCards.tempLoginLink === '') {
      var charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
      var newPassword = '';
      for (var i = 0; i < 128; i++) {
        var randomIndex = Math.floor(Math.random() * charset.length);
        newPassword += charset[randomIndex];
      }
      props.setUtilityCards(Object.assign({}, props.utilityCards, { tempLoginLink: newPassword }));
      props.setCountWA(0);
    }
    checkCondition();
    return function () {
      clearTimeout(checkCondition);
    };
  }, []);

  return wp.element.createElement(
    'div',
    { className: 'pac_da_maintaince' },
    wp.element.createElement(
      'div',
      { className: 'save', onClick: saveData },
      wp.element.createElement(
        'svg',
        { width: '22', height: '22', viewBox: '0 0 22 22', fill: '#ffffff', xmlns: 'http://www.w3.org/2000/svg' },
        wp.element.createElement(
          'g',
          null,
          wp.element.createElement('path', { d: 'M16.2709 7.32597L13.8377 4.89279C13.7241 4.77924 13.57 4.71436 13.4078 4.71436H6.91935C6.13668 4.71436 5.5 5.35104 5.5 6.13371V15.8664C5.5 16.6491 6.13668 17.2858 6.91935 17.2858H15.03C15.8126 17.2858 16.4493 16.6491 16.4493 15.8664V7.75583C16.4493 7.59362 16.3844 7.43952 16.2709 7.32597ZM9.5553 5.93095H12.394V7.9586H9.5553V5.93095ZM12.394 16.0692H9.5553V12.4194H12.394V16.0692ZM15.2327 15.8664C15.2327 15.9759 15.1394 16.0692 15.03 16.0692H13.6106V11.8111C13.6106 11.4745 13.3389 11.2028 13.0023 11.2028H8.947C8.61041 11.2028 8.33871 11.4745 8.33871 11.8111V16.0692H6.91935C6.80986 16.0692 6.71659 15.9759 6.71659 15.8664V6.13371C6.71659 6.02422 6.80986 5.93095 6.91935 5.93095H8.33871V8.56689C8.33871 8.90348 8.61041 9.17519 8.947 9.17519H13.0023C13.3389 9.17519 13.6106 8.90348 13.6106 8.56689V6.38514L15.2327 8.00726V15.8664Z' })
        )
      ),
      wp.element.createElement(
        'span',
        null,
        'Save Changes'
      )
    ),
    wp.element.createElement(
      'div',
      { className: 'tempLogin' },
      wp.element.createElement(
        'span',
        { className: 'title' },
        'Enable Temporary Support Access'
      ),
      wp.element.createElement(
        'p',
        { className: 'description' },
        'Enabling temporary support access will give the product support team temporary admin access to your WordPress site. This is often needed to troubleshoot and resolve issues. NOTE: Remote access should only be enabled if it was requested by the product technical support team or if you are familiar with the process and know ahead of time that the access will be required to properly troubleshoot the issue.'
      ),
      wp.element.createElement(
        'p',
        { className: 'description' },
        'Rest assured, your site\'s security remains our top priority. When granting temporary support access, certain safeguards are in place to protect your site and sensitive information. The temporary user granted access cannot delete or modify existing user accounts, including editing passwords generated by WordPress. Additionally, they are unable to add new users or view the Temporary Support Access tab within Divi Assistant. Furthermore, to prevent unauthorized activity, the system will automatically disable temporary access after three incorrect attempts, adding an extra layer of security to your WordPress site.'
      ),
      wp.element.createElement(_Togglebutton2.default, { btnValue: Boolean(props.utilityCards.tempLogin), setBtnValue: function setBtnValue(val) {
          return setTempLogin(val);
        } }),
      Boolean(props.utilityCards.tempLogin) ? wp.element.createElement(
        _react2.default.Fragment,
        null,
        wp.element.createElement(
          'span',
          { className: 'subtitle' },
          'Copy And Share Access Link'
        ),
        wp.element.createElement(
          'p',
          { className: 'subdescription' },
          'A unique access link has been generated. You can copy this link and share it with the technical support team. CAUTION: Be sure to share this link privately \u2014 never share it on a public forum!'
        ),
        wp.element.createElement(
          'p',
          { className: 'subdescription' },
          'As needed, you can click the reset icon in the link field to reset the unique access link. Keep in mind this will disable any previously shared link from working, and you would need to copy and share the new link with the technical support team.'
        ),
        props.utilityCards.tempLoginTime !== null ? wp.element.createElement(
          _react2.default.Fragment,
          null,
          checkTimeExpired(props.utilityCards.tempLoginTime) === true ? wp.element.createElement(
            'p',
            { className: 'timeLeft' },
            'The temporary support access will be automatically disabled in ' + displaystrtoTime(props.utilityCards.tempLoginTime)
          ) : wp.element.createElement(
            'p',
            { className: 'timeLeft' },
            'The temporary remote access session has expired.'
          )
        ) : "",
        wp.element.createElement(
          'div',
          { className: 'linkToCopy' },
          wp.element.createElement(
            'span',
            null,
            props.utilityCards.tempLoginLink !== null ? pacDaAppLocalizer.site_url + '/?pactlfs_token=' + props.utilityCards.tempLoginLink : 'Please regenerate the link'
          ),
          wp.element.createElement(
            'svg',
            { onClick: regenerateLink, width: '29', height: '28', viewBox: '0 0 29 28', fill: '#4C5866', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M21.2162 13.5C21.2162 17.0832 18.2994 20 14.7162 20C12.9852 20 11.3537 19.3249 10.1247 18.0959C9.86936 17.8449 9.86936 17.4338 10.1204 17.1784C10.3757 16.9231 10.7825 16.9231 11.0378 17.1784C12.0245 18.1608 13.3314 18.7017 14.7162 18.7017C17.5854 18.7017 19.918 16.3692 19.918 13.5C19.918 10.6308 17.5854 8.29827 14.7162 8.29827C12.7558 8.29827 11.0724 9.4018 10.2285 11.1804H11.3753C11.7345 11.1804 12.0245 11.4704 12.0245 11.8296C12.0245 12.1887 11.7345 12.4787 11.3753 12.4787H8.44992C8.09073 12.4787 7.80078 12.1887 7.80078 11.8296V8.90413C7.80078 8.54494 8.09073 8.25499 8.44992 8.25499C8.8091 8.25499 9.09905 8.54494 9.09905 8.90413V10.5313C10.168 8.3502 12.2712 7 14.7162 7C18.2994 7 21.2162 9.91678 21.2162 13.5Z' })
          )
        ),
        wp.element.createElement(
          'div',
          { className: 'copyLink', onClick: copyLinkToClipBoard },
          wp.element.createElement(
            'svg',
            { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'white', xmlns: 'http://www.w3.org/2000/svg' },
            wp.element.createElement('path', { d: 'M15.6566 6.50014H13.5614V5.42871C13.5614 5.03089 13.3897 4.64936 13.0841 4.36805C12.7785 4.08675 12.364 3.92871 11.9318 3.92871H6.34447C5.91227 3.92871 5.49777 4.08675 5.19215 4.36805C4.88654 4.64936 4.71484 5.03089 4.71484 5.42871V14.0001C4.71484 14.398 4.88654 14.7795 5.19215 15.0608C5.49777 15.3421 5.91227 15.5001 6.34447 15.5001H8.43971V16.5716C8.43971 16.9694 8.6114 17.3509 8.91702 17.6322C9.22263 17.9135 9.63714 18.0716 10.0693 18.0716H15.6566C16.0888 18.0716 16.5034 17.9135 16.809 17.6322C17.1146 17.3509 17.2863 16.9694 17.2863 16.5716V8.00014C17.2863 7.60231 17.1146 7.22078 16.809 6.93948C16.5034 6.65817 16.0888 6.50014 15.6566 6.50014ZM6.34447 14.2144C6.28273 14.2144 6.22352 14.1918 6.17986 14.1517C6.1362 14.1115 6.11167 14.057 6.11167 14.0001V5.42871C6.11167 5.37188 6.1362 5.31737 6.17986 5.27719C6.22352 5.237 6.28273 5.21443 6.34447 5.21443H11.9318C11.9935 5.21443 12.0527 5.237 12.0964 5.27719C12.1401 5.31737 12.1646 5.37188 12.1646 5.42871V6.50014H10.0693C9.63714 6.50014 9.22263 6.65817 8.91702 6.93948C8.6114 7.22078 8.43971 7.60231 8.43971 8.00014V14.2144H6.34447ZM15.8894 16.5716C15.8894 16.6284 15.8649 16.6829 15.8213 16.7231C15.7776 16.7633 15.7184 16.7859 15.6566 16.7859H10.0693C10.0076 16.7859 9.94838 16.7633 9.90472 16.7231C9.86106 16.6829 9.83654 16.6284 9.83654 16.5716V8.00014C9.83654 7.94331 9.86106 7.8888 9.90472 7.84862C9.94838 7.80843 10.0076 7.78585 10.0693 7.78585H15.6566C15.7184 7.78585 15.7776 7.80843 15.8213 7.84862C15.8649 7.8888 15.8894 7.94331 15.8894 8.00014V16.5716Z' })
          ),
          wp.element.createElement(
            'span',
            null,
            'Copy Access Link'
          )
        )
      ) : wp.element.createElement(
        _react2.default.Fragment,
        null,
        props.utilityCards.tempLoginTime !== null && checkTimeExpired(props.utilityCards.tempLoginTime) === false ? wp.element.createElement(
          'p',
          { className: 'timeExpired' },
          'The temporary remote access session has expired, and has been automatically disabled. If requested by the technical support team, you can enable the setting again and click the \u201CSave Changes\u201D button to extend the previous session.'
        ) : props.countWA >= 3 ? wp.element.createElement(
          'p',
          { className: 'timeExpired' },
          'The temporary remote access session has been automatically disabled as a precaution due to suspicious login attempts. To prevent unauthorized access, please enable the setting again, reset the access link, and save your changes. The previous access link will no longer work, so if you already shared the access link with the technical support team, you will need to copy and share the new one with them.'
        ) : ''
      )
    )
  );
};
exports.default = TemporaryLoginAccess;

/***/ })
/******/ ]);