pax_global_header 0000666 0000000 0000000 00000000064 13764550547 0014532 g ustar 00root root 0000000 0000000 52 comment=a10e51b33aa72a2406c7a9e2600c33900eecb5a8
JedWatson-react-input-autosize-8449fb2/ 0000775 0000000 0000000 00000000000 13764550547 0020066 5 ustar 00root root 0000000 0000000 JedWatson-react-input-autosize-8449fb2/.babelrc 0000664 0000000 0000000 00000000312 13764550547 0021455 0 ustar 00root root 0000000 0000000 {
"presets": [
["env"],
"stage-2",
"react"
],
"env": {
"production": {
"ignore": ["node-modules/**", "src/__tests__/**"]
},
"test": {
"ignore": ["node-modules/**"]
}
}
}
JedWatson-react-input-autosize-8449fb2/.editorconfig 0000664 0000000 0000000 00000000440 13764550547 0022541 0 ustar 00root root 0000000 0000000 # This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = true
indent_style = tab
indent_size = 4
[*.json]
indent_style = space
indent_size = 2
JedWatson-react-input-autosize-8449fb2/.eslintignore 0000664 0000000 0000000 00000000054 13764550547 0022570 0 ustar 00root root 0000000 0000000 lib/*
dist/*
examples/dist/*
node_modules/*
JedWatson-react-input-autosize-8449fb2/.eslintrc.js 0000664 0000000 0000000 00000000113 13764550547 0022320 0 ustar 00root root 0000000 0000000 module.exports = {
extends: 'keystone-react',
parser: 'babel-eslint',
};
JedWatson-react-input-autosize-8449fb2/.gitignore 0000664 0000000 0000000 00000000230 13764550547 0022051 0 ustar 00root root 0000000 0000000 # Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Coverage tools
lib-cov
coverage
# Dependency directory
node_modules
# Build
.publish
yarn.lock
JedWatson-react-input-autosize-8449fb2/.npmignore 0000664 0000000 0000000 00000000072 13764550547 0022064 0 ustar 00root root 0000000 0000000 .publish
*.log
bower.json
example/dist
logs
src/__tests__
JedWatson-react-input-autosize-8449fb2/HISTORY.md 0000664 0000000 0000000 00000004724 13764550547 0021560 0 ustar 00root root 0000000 0000000 # react-input-autosize
## v3.0.0 / 2020-12-11
This release adds support for React 17 and removes usage of UNSAFE React lifecycle methods, thanks to [Nathan Bierema](https://github.com/Methuselah96).
It should be a fairly painless major upgrade since the API hasn't been changed at all. It's being published as `3.0.0` because the peer dependency range has been updated and the internal implementation has changed.
## v2.2.2 / 2019-01-10
* added UNSAFE prefix to out of date react lifecycle hooks. thanks [RanneyD](https://github.com/ranneyd)
## v2.2.1 / 2018-01-10
* fixed; invalid logic in SSR support check, thanks [Rakha Kanz Kautsar](https://github.com/rkkautsar)
## v2.2.0 / 2018-01-09
* added; `extraWidth` prop allows you to customise how much width is added to the detected width
* fixed; SSR support is more robust, thanks [Ivo Bathke](https://github.com/ivoba)
## v2.1.2 / 2017-11-27
* fixed; `window` reference is now guarded for SSR support, thanks [Wout Mertens](https://github.com/wmertens)
## v2.1.1 / 2017-11-26
* fixed; `props.id` was overriding the internal `inputId` on the input element, but not being used in the stylesheet
* fixed; IE stylesheet is now only injected when IE is detected in navigator.userAgent
## v2.1.0 / 2017-11-23
* fixed; inputId wasn't being applied correctly, thanks [Jacco Flenter](https://github.com/flenter)
* added; new `injectStyles` prop controls whether the IE stylesheet it injected
* improved; allow override of `boxSizing` and `width` styles via `inputStyles`, thanks [Mike Fanger](https://github.com/mvf4z7)
* improved; propTypes are now stripped from the production build, thanks [jochenberger](https://github.com/jochenberger)
## v2.0.1 / 2017-09-13
* fixed; peer dependencies for `prop-types`
## v2.0.0 / 2017-09-12
* fixed; converted to es6 Class and removed `create-react-class`
* changed; default export is now an es6 module
### Note:
As of 2.0.0 this package exports an es6 module in the main entry
(`/lib/AutoSizeInput.js`). If you are in an older environment, you'll need to
refer to the `.default` export:
```js
var AutoSizeInput = require('react-input-autosize').default;
```
Aside from this, the new version doesn't change any public API.
## v1.2.0 / 2017-09-12
* added; `inputRef` prop (function, passed the reference to the input node)
* fixed; resize issues in IE11, thanks [Constantine](https://github.com/costagolub)
* fixed; `copyInputStyles()` never running, thanks [Michael Elsdörfer](https://github.com/miracle2k)
JedWatson-react-input-autosize-8449fb2/LICENSE 0000664 0000000 0000000 00000002065 13764550547 0021076 0 ustar 00root root 0000000 0000000 The MIT License (MIT)
Copyright (c) 2018 Jed Watson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
JedWatson-react-input-autosize-8449fb2/README.md 0000664 0000000 0000000 00000005124 13764550547 0021347 0 ustar 00root root 0000000 0000000 React-Input-Autosize
====================
A text input for [React](http://facebook.github.io/react/index.html) that resizes itself to the current content.
## Demo & Examples
Live demo: [jedwatson.github.io/react-input-autosize](http://jedwatson.github.io/react-input-autosize/)
To run the examples locally, run:
```
npm install
npm start
```
Then open [localhost:8000](http://localhost:8000) in a browser.
## Installation
The easiest way to use React-Input-Autosize is to install it from NPM and include it in your own React build process (using Browserify, rollup, webpack, etc).
You can also use the umd build by including `dist/AutosizeInput.js` in your page. If you use this, make sure you have already included a umd React build.
```
npm install react-input-autosize --save
```
## Usage
React-Input-Autosize generates an input field, wrapped in a `
` tag so it can detect the size of its value. Otherwise it behaves very similarly to a standard React input.
```es6
import AutosizeInput from 'react-input-autosize';
```
## Gotchas
### Changing the styles at runtime
The styles applied to the input are only copied when the component mounts. Because of this, subsequent changes to the stylesheet may cause size to be detected incorrectly.
To work around this, either re-mount the input (e.g. by providing a different `key` prop) or call the `copyInputStyles()` method after the styles change.
### CSP and the IE "clear" indicator
The input will automatically inject a stylesheet that hides IE/Edge's "clear" indicator, which otherwise breaks the UI. This has the downside of being incompatible with some CSP policies.
To work around this, you can pass the `injectStyles={false}` prop, but if you do this I *strongly* recommend targeting the `input` element in your own stylesheet with the following rule:
```css
input::-ms-clear {display: none;}
```
### Custom font sizes
If your input uses custom font sizes, you will need to provide the custom size to `AutosizeInput`.
```es6
```
### Uncontrolled input
`AutosizeInput` is a [controlled input](https://facebook.github.io/react/docs/forms.html#controlled-components) and depends on the `value` prop to work as intended. It does not support being used as an uncontrolled input.
## License
Copyright (c) 2018 Jed Watson. [MIT](LICENSE) License.
JedWatson-react-input-autosize-8449fb2/bower.json 0000664 0000000 0000000 00000001066 13764550547 0022102 0 ustar 00root root 0000000 0000000 {
"name": "react-input-autosize",
"main": "dist/react-input-autosize.js",
"version": "2.2.1",
"homepage": "https://github.com/JedWatson/react-input-autosize",
"authors": [
"Jed Watson"
],
"description": "Auto-resizing Input Form Component for React",
"moduleType": [
"amd",
"globals",
"node"
],
"keywords": [
"react",
"react-component",
"input",
"form"
],
"license": "MIT",
"ignore": [
".editorconfig",
".gitignore",
"package.json",
"src",
"node_modules",
"example",
"test"
]
}
JedWatson-react-input-autosize-8449fb2/dist/ 0000775 0000000 0000000 00000000000 13764550547 0021031 5 ustar 00root root 0000000 0000000 JedWatson-react-input-autosize-8449fb2/dist/react-input-autosize.es.js 0000664 0000000 0000000 00000027505 13764550547 0026102 0 ustar 00root root 0000000 0000000 import React, { Component } from 'react';
import PropTypes from 'prop-types';
var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve,
reject: reject,
next: null
};
if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(function (arg) {
resume("next", arg);
}, function (arg) {
resume("throw", arg);
});
} else {
settle(result.done ? "return" : "normal", result.value);
}
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({
value: value,
done: true
});
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({
value: value,
done: false
});
break;
}
front = front.next;
if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}
this._invoke = send;
if (typeof gen.return !== "function") {
this.return = undefined;
}
}
if (typeof Symbol === "function" && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
return this;
};
}
AsyncGenerator.prototype.next = function (arg) {
return this._invoke("next", arg);
};
AsyncGenerator.prototype.throw = function (arg) {
return this._invoke("throw", arg);
};
AsyncGenerator.prototype.return = function (arg) {
return this._invoke("return", arg);
};
return {
wrap: function (fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function (value) {
return new AwaitValue(value);
}
};
}();
var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
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;
};
}();
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 inherits = function (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 objectWithoutProperties = function (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 possibleConstructorReturn = function (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;
};
var sizerStyle = {
position: 'absolute',
top: 0,
left: 0,
visibility: 'hidden',
height: 0,
overflow: 'scroll',
whiteSpace: 'pre'
};
var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
var cleanInputProps = function cleanInputProps(inputProps) {
INPUT_PROPS_BLACKLIST.forEach(function (field) {
return delete inputProps[field];
});
return inputProps;
};
var copyStyles = function copyStyles(styles, node) {
node.style.fontSize = styles.fontSize;
node.style.fontFamily = styles.fontFamily;
node.style.fontWeight = styles.fontWeight;
node.style.fontStyle = styles.fontStyle;
node.style.letterSpacing = styles.letterSpacing;
node.style.textTransform = styles.textTransform;
};
var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
var generateId = function generateId() {
// we only need an auto-generated ID for stylesheet injection, which is only
// used for IE. so if the browser is not IE, this should return undefined.
return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
};
var AutosizeInput = function (_Component) {
inherits(AutosizeInput, _Component);
createClass(AutosizeInput, null, [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(props, state) {
var id = props.id;
return id !== state.prevId ? { inputId: id || generateId(), prevId: id } : null;
}
}]);
function AutosizeInput(props) {
classCallCheck(this, AutosizeInput);
var _this = possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
_this.inputRef = function (el) {
_this.input = el;
if (typeof _this.props.inputRef === 'function') {
_this.props.inputRef(el);
}
};
_this.placeHolderSizerRef = function (el) {
_this.placeHolderSizer = el;
};
_this.sizerRef = function (el) {
_this.sizer = el;
};
_this.state = {
inputWidth: props.minWidth,
inputId: props.id || generateId(),
prevId: props.id
};
return _this;
}
createClass(AutosizeInput, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.mounted = true;
this.copyInputStyles();
this.updateInputWidth();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps, prevState) {
if (prevState.inputWidth !== this.state.inputWidth) {
if (typeof this.props.onAutosize === 'function') {
this.props.onAutosize(this.state.inputWidth);
}
}
this.updateInputWidth();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.mounted = false;
}
}, {
key: 'copyInputStyles',
value: function copyInputStyles() {
if (!this.mounted || !window.getComputedStyle) {
return;
}
var inputStyles = this.input && window.getComputedStyle(this.input);
if (!inputStyles) {
return;
}
copyStyles(inputStyles, this.sizer);
if (this.placeHolderSizer) {
copyStyles(inputStyles, this.placeHolderSizer);
}
}
}, {
key: 'updateInputWidth',
value: function updateInputWidth() {
if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
return;
}
var newInputWidth = void 0;
if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
} else {
newInputWidth = this.sizer.scrollWidth + 2;
}
// add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
newInputWidth += extraWidth;
if (newInputWidth < this.props.minWidth) {
newInputWidth = this.props.minWidth;
}
if (newInputWidth !== this.state.inputWidth) {
this.setState({
inputWidth: newInputWidth
});
}
}
}, {
key: 'getInput',
value: function getInput() {
return this.input;
}
}, {
key: 'focus',
value: function focus() {
this.input.focus();
}
}, {
key: 'blur',
value: function blur() {
this.input.blur();
}
}, {
key: 'select',
value: function select() {
this.input.select();
}
}, {
key: 'renderStyles',
value: function renderStyles() {
// this method injects styles to hide IE's clear indicator, which messes
// with input size detection. the stylesheet is only injected when the
// browser is IE, and can also be disabled by the `injectStyles` prop.
var injectStyles = this.props.injectStyles;
return isIE && injectStyles ? React.createElement('style', { dangerouslySetInnerHTML: {
__html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
} }) : null;
}
}, {
key: 'render',
value: function render() {
var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
if (previousValue !== null && previousValue !== undefined) {
return previousValue;
}
return currentValue;
});
var wrapperStyle = _extends({}, this.props.style);
if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
var inputStyle = _extends({
boxSizing: 'content-box',
width: this.state.inputWidth + 'px'
}, this.props.inputStyle);
var inputProps = objectWithoutProperties(this.props, []);
cleanInputProps(inputProps);
inputProps.className = this.props.inputClassName;
inputProps.id = this.state.inputId;
inputProps.style = inputStyle;
return React.createElement(
'div',
{ className: this.props.className, style: wrapperStyle },
this.renderStyles(),
React.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
React.createElement(
'div',
{ ref: this.sizerRef, style: sizerStyle },
sizerValue
),
this.props.placeholder ? React.createElement(
'div',
{ ref: this.placeHolderSizerRef, style: sizerStyle },
this.props.placeholder
) : null
);
}
}]);
return AutosizeInput;
}(Component);
AutosizeInput.propTypes = {
className: PropTypes.string, // className for the outer element
defaultValue: PropTypes.any, // default field value
extraWidth: PropTypes.oneOfType([// additional width for input element
PropTypes.number, PropTypes.string]),
id: PropTypes.string, // id to use for the input, can be set for consistent snapshots
injectStyles: PropTypes.bool, // inject the custom stylesheet to hide clear UI, defaults to true
inputClassName: PropTypes.string, // className for the input element
inputRef: PropTypes.func, // ref callback for the input element
inputStyle: PropTypes.object, // css styles for the input element
minWidth: PropTypes.oneOfType([// minimum width for input element
PropTypes.number, PropTypes.string]),
onAutosize: PropTypes.func, // onAutosize handler: function(newWidth) {}
onChange: PropTypes.func, // onChange handler: function(event) {}
placeholder: PropTypes.string, // placeholder text
placeholderIsMinWidth: PropTypes.bool, // don't collapse size to less than the placeholder
style: PropTypes.object, // css styles for the outer element
value: PropTypes.any // field value
};
AutosizeInput.defaultProps = {
minWidth: 1,
injectStyles: true
};
export default AutosizeInput;
JedWatson-react-input-autosize-8449fb2/dist/react-input-autosize.js 0000664 0000000 0000000 00000030500 13764550547 0025461 0 ustar 00root root 0000000 0000000 (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('prop-types')) :
typeof define === 'function' && define.amd ? define(['react', 'prop-types'], factory) :
(global.AutosizeInput = factory(global.React,global.PropTypes));
}(this, (function (React,PropTypes) { 'use strict';
var React__default = 'default' in React ? React['default'] : React;
PropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes;
var asyncGenerator = function () {
function AwaitValue(value) {
this.value = value;
}
function AsyncGenerator(gen) {
var front, back;
function send(key, arg) {
return new Promise(function (resolve, reject) {
var request = {
key: key,
arg: arg,
resolve: resolve,
reject: reject,
next: null
};
if (back) {
back = back.next = request;
} else {
front = back = request;
resume(key, arg);
}
});
}
function resume(key, arg) {
try {
var result = gen[key](arg);
var value = result.value;
if (value instanceof AwaitValue) {
Promise.resolve(value.value).then(function (arg) {
resume("next", arg);
}, function (arg) {
resume("throw", arg);
});
} else {
settle(result.done ? "return" : "normal", result.value);
}
} catch (err) {
settle("throw", err);
}
}
function settle(type, value) {
switch (type) {
case "return":
front.resolve({
value: value,
done: true
});
break;
case "throw":
front.reject(value);
break;
default:
front.resolve({
value: value,
done: false
});
break;
}
front = front.next;
if (front) {
resume(front.key, front.arg);
} else {
back = null;
}
}
this._invoke = send;
if (typeof gen.return !== "function") {
this.return = undefined;
}
}
if (typeof Symbol === "function" && Symbol.asyncIterator) {
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
return this;
};
}
AsyncGenerator.prototype.next = function (arg) {
return this._invoke("next", arg);
};
AsyncGenerator.prototype.throw = function (arg) {
return this._invoke("throw", arg);
};
AsyncGenerator.prototype.return = function (arg) {
return this._invoke("return", arg);
};
return {
wrap: function (fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
},
await: function (value) {
return new AwaitValue(value);
}
};
}();
var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
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;
};
}();
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 inherits = function (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 objectWithoutProperties = function (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 possibleConstructorReturn = function (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;
};
var sizerStyle = {
position: 'absolute',
top: 0,
left: 0,
visibility: 'hidden',
height: 0,
overflow: 'scroll',
whiteSpace: 'pre'
};
var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
var cleanInputProps = function cleanInputProps(inputProps) {
INPUT_PROPS_BLACKLIST.forEach(function (field) {
return delete inputProps[field];
});
return inputProps;
};
var copyStyles = function copyStyles(styles, node) {
node.style.fontSize = styles.fontSize;
node.style.fontFamily = styles.fontFamily;
node.style.fontWeight = styles.fontWeight;
node.style.fontStyle = styles.fontStyle;
node.style.letterSpacing = styles.letterSpacing;
node.style.textTransform = styles.textTransform;
};
var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
var generateId = function generateId() {
// we only need an auto-generated ID for stylesheet injection, which is only
// used for IE. so if the browser is not IE, this should return undefined.
return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
};
var AutosizeInput = function (_Component) {
inherits(AutosizeInput, _Component);
createClass(AutosizeInput, null, [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(props, state) {
var id = props.id;
return id !== state.prevId ? { inputId: id || generateId(), prevId: id } : null;
}
}]);
function AutosizeInput(props) {
classCallCheck(this, AutosizeInput);
var _this = possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
_this.inputRef = function (el) {
_this.input = el;
if (typeof _this.props.inputRef === 'function') {
_this.props.inputRef(el);
}
};
_this.placeHolderSizerRef = function (el) {
_this.placeHolderSizer = el;
};
_this.sizerRef = function (el) {
_this.sizer = el;
};
_this.state = {
inputWidth: props.minWidth,
inputId: props.id || generateId(),
prevId: props.id
};
return _this;
}
createClass(AutosizeInput, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.mounted = true;
this.copyInputStyles();
this.updateInputWidth();
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate(prevProps, prevState) {
if (prevState.inputWidth !== this.state.inputWidth) {
if (typeof this.props.onAutosize === 'function') {
this.props.onAutosize(this.state.inputWidth);
}
}
this.updateInputWidth();
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.mounted = false;
}
}, {
key: 'copyInputStyles',
value: function copyInputStyles() {
if (!this.mounted || !window.getComputedStyle) {
return;
}
var inputStyles = this.input && window.getComputedStyle(this.input);
if (!inputStyles) {
return;
}
copyStyles(inputStyles, this.sizer);
if (this.placeHolderSizer) {
copyStyles(inputStyles, this.placeHolderSizer);
}
}
}, {
key: 'updateInputWidth',
value: function updateInputWidth() {
if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
return;
}
var newInputWidth = void 0;
if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
} else {
newInputWidth = this.sizer.scrollWidth + 2;
}
// add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
newInputWidth += extraWidth;
if (newInputWidth < this.props.minWidth) {
newInputWidth = this.props.minWidth;
}
if (newInputWidth !== this.state.inputWidth) {
this.setState({
inputWidth: newInputWidth
});
}
}
}, {
key: 'getInput',
value: function getInput() {
return this.input;
}
}, {
key: 'focus',
value: function focus() {
this.input.focus();
}
}, {
key: 'blur',
value: function blur() {
this.input.blur();
}
}, {
key: 'select',
value: function select() {
this.input.select();
}
}, {
key: 'renderStyles',
value: function renderStyles() {
// this method injects styles to hide IE's clear indicator, which messes
// with input size detection. the stylesheet is only injected when the
// browser is IE, and can also be disabled by the `injectStyles` prop.
var injectStyles = this.props.injectStyles;
return isIE && injectStyles ? React__default.createElement('style', { dangerouslySetInnerHTML: {
__html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
} }) : null;
}
}, {
key: 'render',
value: function render() {
var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
if (previousValue !== null && previousValue !== undefined) {
return previousValue;
}
return currentValue;
});
var wrapperStyle = _extends({}, this.props.style);
if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
var inputStyle = _extends({
boxSizing: 'content-box',
width: this.state.inputWidth + 'px'
}, this.props.inputStyle);
var inputProps = objectWithoutProperties(this.props, []);
cleanInputProps(inputProps);
inputProps.className = this.props.inputClassName;
inputProps.id = this.state.inputId;
inputProps.style = inputStyle;
return React__default.createElement(
'div',
{ className: this.props.className, style: wrapperStyle },
this.renderStyles(),
React__default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
React__default.createElement(
'div',
{ ref: this.sizerRef, style: sizerStyle },
sizerValue
),
this.props.placeholder ? React__default.createElement(
'div',
{ ref: this.placeHolderSizerRef, style: sizerStyle },
this.props.placeholder
) : null
);
}
}]);
return AutosizeInput;
}(React.Component);
AutosizeInput.propTypes = {
className: PropTypes.string, // className for the outer element
defaultValue: PropTypes.any, // default field value
extraWidth: PropTypes.oneOfType([// additional width for input element
PropTypes.number, PropTypes.string]),
id: PropTypes.string, // id to use for the input, can be set for consistent snapshots
injectStyles: PropTypes.bool, // inject the custom stylesheet to hide clear UI, defaults to true
inputClassName: PropTypes.string, // className for the input element
inputRef: PropTypes.func, // ref callback for the input element
inputStyle: PropTypes.object, // css styles for the input element
minWidth: PropTypes.oneOfType([// minimum width for input element
PropTypes.number, PropTypes.string]),
onAutosize: PropTypes.func, // onAutosize handler: function(newWidth) {}
onChange: PropTypes.func, // onChange handler: function(event) {}
placeholder: PropTypes.string, // placeholder text
placeholderIsMinWidth: PropTypes.bool, // don't collapse size to less than the placeholder
style: PropTypes.object, // css styles for the outer element
value: PropTypes.any // field value
};
AutosizeInput.defaultProps = {
minWidth: 1,
injectStyles: true
};
return AutosizeInput;
})));
JedWatson-react-input-autosize-8449fb2/dist/react-input-autosize.min.js 0000664 0000000 0000000 00000013300 13764550547 0026242 0 ustar 00root root 0000000 0000000 !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],e):t.AutosizeInput=e(t.React,t.PropTypes)}(this,function(t,e){"use strict";var n="default"in t?t.default:t;e=e&&e.hasOwnProperty("default")?e.default:e;!function(){function t(t){this.value=t}function e(e){var n,i;function r(n,i){try{var s=e[n](i),u=s.value;u instanceof t?Promise.resolve(u.value).then(function(t){r("next",t)},function(t){r("throw",t)}):o(s.done?"return":"normal",s.value)}catch(t){o("throw",t)}}function o(t,e){switch(t){case"return":n.resolve({value:e,done:!0});break;case"throw":n.reject(e);break;default:n.resolve({value:e,done:!1})}(n=n.next)?r(n.key,n.arg):i=null}this._invoke=function(t,e){return new Promise(function(o,s){var u={key:t,arg:e,resolve:o,reject:s,next:null};i?i=i.next=u:(n=i=u,r(t,e))})},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(t){return this._invoke("next",t)},e.prototype.throw=function(t){return this._invoke("throw",t)},e.prototype.return=function(t){return this._invoke("return",t)}}();var i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=function(){function t(t,e){for(var n=0;n
=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(this.props,[]);return function(t){p.forEach(function(e){return delete t[e]})}(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=i,n.createElement("div",{className:this.props.className,style:e},this.renderStyles(),n.createElement("input",o({},r,{ref:this.inputRef})),n.createElement("div",{ref:this.sizerRef,style:u},t),this.props.placeholder?n.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),f}();return f.defaultProps={minWidth:1,injectStyles:!0},f});
JedWatson-react-input-autosize-8449fb2/examples/ 0000775 0000000 0000000 00000000000 13764550547 0021704 5 ustar 00root root 0000000 0000000 JedWatson-react-input-autosize-8449fb2/examples/dist/ 0000775 0000000 0000000 00000000000 13764550547 0022647 5 ustar 00root root 0000000 0000000 JedWatson-react-input-autosize-8449fb2/examples/dist/.gitignore 0000664 0000000 0000000 00000000253 13764550547 0024637 0 ustar 00root root 0000000 0000000 ## This file is here to ensure it is included in the gh-pages branch,
## when `gulp deploy` is used to push updates to the demo site.
# Dependency directory
node_modules
JedWatson-react-input-autosize-8449fb2/examples/dist/app.js 0000664 0000000 0000000 00000421177 13764550547 0024001 0 ustar 00root root 0000000 0000000 webpackJsonp([0],[function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var l=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,i=r(e),s=1;st}return!1}function s(e,t,n,r,l,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}function c(e){return e[1].toUpperCase()}function f(e,t,n,r){var l=ea.hasOwnProperty(t)?ea[t]:null;(null!==l?0===l.type:!r&&(2--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{xa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?p(e):""}function m(e){switch(e.tag){case 5:return p(e.type);case 16:return p("Lazy");case 13:return p("Suspense");case 19:return p("SuspenseList");case 0:case 2:case 15:return e=h(e.type,!1);case 11:return e=h(e.type.render,!1);case 22:return e=h(e.type._render,!1);case 1:return e=h(e.type,!0);default:return""}}function y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case aa:return"Fragment";case la:return"Portal";case ua:return"Profiler";case oa:return"StrictMode";case fa:return"Suspense";case da:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case sa:return(e.displayName||"Context")+".Consumer";case ia:return(e._context.displayName||"Context")+".Provider";case ca:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pa:return y(e.type);case ma:return y(e._render);case ha:t=e._payload,e=e._init;try{return y(e(t))}catch(e){}}return null}function v(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function g(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function b(e){var t=g(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function w(e){e._valueTracker||(e._valueTracker=b(e))}function k(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=g(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function S(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function E(e,t){var n=t.checked;return $l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function x(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=v(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function _(e,t){null!=(t=t.checked)&&f(e,"checked",t,!1)}function C(e,t){_(e,t);var n=v(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?N(e,t.type,n):t.hasOwnProperty("defaultValue")&&N(e,t.type,v(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function P(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function N(e,t,n){"number"===t&&S(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function T(e){var t="";return Hl.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}function z(e,t){return e=$l({children:void 0},t),(t=T(t.children))&&(e.children=t),e}function O(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:v(n)}}function M(e,t){var n=v(t.value),r=v(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function I(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function D(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function F(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?D(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function U(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function j(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Pa.hasOwnProperty(e)&&Pa[e]?(""+t).trim():t+"px"}function W(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=j(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}function A(e,t){if(t){if(Ta[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function V(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function B(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function H(e){if(e=zt(e)){if("function"!=typeof za)throw Error(r(280));var t=e.stateNode;t&&(t=Lt(t),za(e.stateNode,e.type,t))}}function $(e){Oa?La?La.push(e):La=[e]:Oa=e}function Q(){if(Oa){var e=Oa,t=La;if(La=Oa=null,H(e),t)for(e=0;er?0:1<n;n++)t.push(e);return t}function Te(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-vo(t),e[t]=n}function ze(e){return 0===e?32:31-(go(e)/bo|0)|0}function Oe(e,t,n,r){Ma||Y();var l=Re,a=Ma;Ma=!0;try{K(l,e,t,n,r)}finally{(Ma=a)||X()}}function Le(e,t,n,r){ko(wo,Re.bind(null,e,t,n,r))}function Re(e,t,n,r){if(So){var l;if((l=0==(4&t))&&0=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=at(n)}}function ut(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ut(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function it(){for(var e=window,t=S();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=S(e.document)}return t}function st(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ct(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Su||null==bu||bu!==S(r)||(r=bu,"selectionStart"in r&&st(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ku&<(ku,r)||(ku=r,r=bt(wu,"onSelect"),0Bu||(e.current=Vu[Bu],Vu[Bu]=null,Bu--)}function Dt(e,t){Bu++,Vu[Bu]=e.current,e.current=t}function Ft(e,t){var n=e.type.contextTypes;if(!n)return Hu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ut(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jt(){It(Qu),It($u)}function Wt(e,t,n){if($u.current!==Hu)throw Error(r(168));Dt($u,t),Dt(Qu,n)}function At(e,t,n){var l=e.stateNode;if(e=t.childContextTypes,"function"!=typeof l.getChildContext)return n;l=l.getChildContext();for(var a in l)if(!(a in e))throw Error(r(108,y(t)||"Unknown",a));return $l({},n,l)}function Vt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hu,qu=$u.current,Dt($u,e),Dt(Qu,Qu.current),!0}function Bt(e,t,n){var l=e.stateNode;if(!l)throw Error(r(169));n?(e=At(e,t,qu),l.__reactInternalMemoizedMergedChildContext=e,It(Qu),It($u),Dt($u,e)):It(Qu),Dt(Qu,n)}function Ht(){switch(ni()){case ri:return 99;case li:return 98;case ai:return 97;case oi:return 96;case ui:return 95;default:throw Error(r(332))}}function $t(e){switch(e){case 99:return ri;case 98:return li;case 97:return ai;case 96:return oi;case 95:return ui;default:throw Error(r(332))}}function Qt(e,t){return e=$t(e),Xu(e,t)}function qt(e,t,n){return e=$t(e),Gu(e,t,n)}function Kt(){if(null!==fi){var e=fi;fi=null,Zu(e)}Yt()}function Yt(){if(!di&&null!==ci){di=!0;var e=0;try{var t=ci;Qt(99,function(){for(;ed?(y=f,f=null):y=f.sibling;var v=h(r,f,u[d],i);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(r,f),a=o(v,a,d),null===c?s=v:c.sibling=v,c=v,f=y}if(d===u.length)return n(r,f),s;if(null===f){for(;dv?(g=y,y=null):g=y.sibling;var w=h(a,y,b.value,s);if(null===w){null===y&&(y=g);break}e&&y&&null===w.alternate&&t(a,y),u=o(w,u,v),null===f?c=w:f.sibling=w,f=w,y=g}if(b.done)return n(a,y),c;if(null===y){for(;!b.done;v++,b=i.next())null!==(b=p(a,b.value,s))&&(u=o(b,u,v),null===f?c=b:f.sibling=b,f=b);return c}for(y=l(a,y);!b.done;v++,b=i.next())null!==(b=m(y,a,v,b.value,s))&&(e&&null!==b.alternate&&y.delete(null===b.key?v:b.key),u=o(b,u,v),null===f?c=b:f.sibling=b,f=b);return e&&y.forEach(function(e){return t(a,e)}),c}return function(e,l,o,i){var s="object"==typeof o&&null!==o&&o.type===aa&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ra:e:{for(c=o.key,s=l;null!==s;){if(s.key===c){switch(s.tag){case 7:if(o.type===aa){n(e,s.sibling),l=a(s,o.props.children),l.return=e,e=l;break e}break;default:if(s.elementType===o.type){n(e,s.sibling),l=a(s,o.props),l.ref=mn(e,s,o),l.return=e,e=l;break e}}n(e,s);break}t(e,s),s=s.sibling}o.type===aa?(l=Nl(o.props.children,e.mode,i,o.key),l.return=e,e=l):(i=Pl(o.type,o.key,o.props,null,e.mode,i),i.ref=mn(e,l,o),i.return=e,e=i)}return u(e);case la:e:{for(s=o.key;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===o.containerInfo&&l.stateNode.implementation===o.implementation){n(e,l.sibling),l=a(l,o.children||[]),l.return=e,e=l;break e}n(e,l);break}t(e,l),l=l.sibling}l=Ol(o,e.mode,i),l.return=e,e=l}return u(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==l&&6===l.tag?(n(e,l.sibling),l=a(l,o),l.return=e,e=l):(n(e,l),l=zl(o,e.mode,i),l.return=e,e=l),u(e);if(Ei(o))return v(e,l,o,i);if(d(o))return g(e,l,o,i);if(c&&yn(e,o),void 0===o&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,y(e.type)||"Component"))}return n(e,l)}}function gn(e){if(e===Ci)throw Error(r(174));return e}function bn(e,t){switch(Dt(Ti,t),Dt(Ni,e),Dt(Pi,Ci),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:F(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=F(t,e)}It(Pi),Dt(Pi,t)}function wn(){It(Pi),It(Ni),It(Ti)}function kn(e){gn(Ti.current);var t=gn(Pi.current),n=F(t,e.type);t!==n&&(Dt(Ni,e),Dt(Pi,n))}function Sn(e){Ni.current===e&&(It(Pi),It(Ni))}function En(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function xn(e,t){var n=El(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _n(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Cn(e){if(Ri){var t=Li;if(t){var n=t;if(!_n(e,t)){if(!(t=Ct(n.nextSibling))||!_n(e,t))return e.flags=-1025&e.flags|2,Ri=!1,void(Oi=e);xn(Oi,n)}Oi=e,Li=Ct(t.firstChild)}else e.flags=-1025&e.flags|2,Ri=!1,Oi=e}}function Pn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oi=e}function Nn(e){if(e!==Oi)return!1;if(!Ri)return Pn(e),Ri=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xt(t,e.memoizedProps))for(t=Li;t;)xn(e,t),t=Ct(t.nextSibling);if(Pn(e),13===e.tag){if(e=e.memoizedState,!(e=null!==e?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Li=Ct(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Li=null}}else Li=Oi?Ct(e.stateNode.nextSibling):null;return!0}function Tn(){Li=Oi=null,Ri=!1}function zn(){for(var e=0;eo))throw Error(r(301));o+=1,Wi=ji=null,t.updateQueue=null,Ii.current=Qi,e=n(l,a)}while(Vi)}if(Ii.current=Bi,t=null!==ji&&null!==ji.next,Fi=0,Wi=ji=Ui=null,Ai=!1,t)throw Error(r(300));return e}function Mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wi?Ui.memoizedState=Wi=e:Wi=Wi.next=e,Wi}function In(){if(null===ji){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=ji.next;var t=null===Wi?Ui.memoizedState:Wi.next;if(null!==t)Wi=t,ji=e;else{if(null===e)throw Error(r(310));ji=e,e={memoizedState:ji.memoizedState,baseState:ji.baseState,baseQueue:ji.baseQueue,queue:ji.queue,next:null},null===Wi?Ui.memoizedState=Wi=e:Wi=Wi.next=e}return Wi}function Dn(e,t){return"function"==typeof t?t(e):t}function Fn(e){var t=In(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var l=ji,a=l.baseQueue,o=n.pending;if(null!==o){if(null!==a){var u=a.next;a.next=o.next,o.next=u}l.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,l=l.baseState;var i=u=o=null,s=a;do{var c=s.lane;if((Fi&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),l=s.eagerReducer===e?s.eagerState:e(l,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,o=l):i=i.next=f,Ui.lanes|=c,fs|=c}s=s.next}while(null!==s&&s!==a);null===i?o=l:i.next=u,yu(l,t.memoizedState)||(Ki=!0),t.memoizedState=l,t.baseState=o,t.baseQueue=i,n.lastRenderedState=l}return[t.memoizedState,n.dispatch]}function Un(e){var t=In(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var u=a=a.next;do{o=e(o,u.action),u=u.next}while(u!==a);yu(o,t.memoizedState)||(Ki=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function jn(e,t,n){var l=t._getVersion;l=l(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===l:(e=e.mutableReadLanes,(e=(Fi&e)===e)&&(t._workInProgressVersionPrimary=l,Mi.push(t))),e)return n(t._source);throw Mi.push(t),Error(r(350))}function Wn(e,t,n,l){var a=rs;if(null===a)throw Error(r(349));var o=t._getVersion,u=o(t._source),i=Ii.current,s=i.useState(function(){return jn(a,t,n)}),c=s[1],f=s[0];s=Wi;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var y=Ui;return e.memoizedState={refs:p,source:t,subscribe:l},i.useEffect(function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!yu(u,e)){e=n(t._source),yu(f,e)||(c(e),e=$r(y),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,l=e;0n?98:n,function(){e(!0)}),Qt(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=u.createElement(n,{is:l.is}):(e=u.createElement(n),"select"===n&&(u=e,l.multiple?u.multiple=!0:l.size&&(u.size=l.size))):e=u.createElementNS(e,n),e[Uu]=t,e[ju]=l,_u(e,t,!1,!1),t.stateNode=e,u=V(n,l),n){case"dialog":pt("cancel",e),pt("close",e),a=l;break;case"iframe":case"object":case"embed":pt("load",e),a=l;break;case"video":case"audio":for(a=0;ays&&(t.flags|=64,o=!0,Sr(l,!1),t.lanes=33554432)}else{if(!o)if(null!==(e=En(u))){if(t.flags|=64,o=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.flags|=4),Sr(l,!0),null===l.tail&&"hidden"===l.tailMode&&!u.alternate&&!Ri)return t=t.lastEffect=l.lastEffect,null!==t&&(t.nextEffect=null),null}else 2*hi()-l.renderingStartTime>ys&&1073741824!==n&&(t.flags|=64,o=!0,Sr(l,!1),t.lanes=33554432);l.isBackwards?(u.sibling=t.child,t.child=u):(n=l.last,null!==n?n.sibling=u:t.child=u,l.last=u)}return null!==l.tail?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.lastEffect=t.lastEffect,l.renderingStartTime=hi(),n.sibling=null,t=zi.current,Dt(zi,o?1&t|2:1&t),n):null;case 23:case 24:return nl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),null}throw Error(r(156,t.tag))}function xr(e){switch(e.tag){case 1:Ut(e.type)&&jt();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(wn(),It(Qu),It($u),zn(),0!=(64&(t=e.flags)))throw Error(r(285));return e.flags=-4097&t|64,e;case 5:return Sn(e),null;case 13:return It(zi),t=e.flags,4096&t?(e.flags=-4097&t|64,e):null;case 19:return It(zi),null;case 4:return wn(),null;case 10:return Zt(e),null;case 23:case 24:return nl(),null;default:return null}}function _r(e,t){try{var n="",r=t;do{n+=m(r),r=r.return}while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l}}function Cr(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function Pr(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gs||(gs=!0,bs=r),Cr(e,t)},n}function Nr(e,t,n){n=ln(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return Cr(e,t),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ws?ws=new Set([this]):ws.add(this),Cr(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function Tr(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bl(e,t)}else t.current=null}function zr(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,l=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Xt(t.type,n),l),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&_t(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(r(163))}function Or(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,null!==(t=null!==t?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var l=e.create;e.destroy=l()}e=e.next}while(e!==t)}if(t=n.updateQueue,null!==(t=null!==t?t.lastEffect:null)){e=t=t.next;do{var a=e;l=a.next,a=a.tag,0!=(4&a)&&0!=(1&a)&&(yl(n,e),ml(n,e)),e=l}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(l=n.elementType===n.type?t.memoizedProps:Xt(n.type,t.memoizedProps),e.componentDidUpdate(l,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&sn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}sn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Et(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&null!==(n=n.alternate)&&null!==(n=n.memoizedState)&&null!==(n=n.dehydrated)&&ve(n));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(r(163))}function Lr(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r=r.style,"function"==typeof r.setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=void 0!==l&&null!==l&&l.hasOwnProperty("display")?l.display:null,r.style.display=j("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Rr(e,t){if(Yu&&"function"==typeof Yu.onCommitFiberUnmount)try{Yu.onCommitFiberUnmount(Ku,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!=(4&r))yl(t,n);else{r=t;try{l()}catch(e){bl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Tr(t),e=t.stateNode,"function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){bl(t,e)}break;case 5:Tr(t);break;case 4:jr(e,t)}}function Mr(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ir(e){return 5===e.tag||3===e.tag||4===e.tag}function Dr(e){e:{for(var t=e.return;null!==t;){if(Ir(t))break e;t=t.return}throw Error(r(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var l=!1;break;case 3:case 4:t=t.containerInfo,l=!0;break;default:throw Error(r(161))}16&n.flags&&(U(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ir(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}l?Fr(e,n,t):Ur(e,n,t)}function Fr(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=St));else if(4!==r&&null!==(e=e.child))for(Fr(e,t,n),e=e.sibling;null!==e;)Fr(e,t,n),e=e.sibling}function Ur(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ur(e,t,n),e=e.sibling;null!==e;)Ur(e,t,n),e=e.sibling}function jr(e,t){for(var n,l,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(r(160));switch(n=o.stateNode,o.tag){case 5:l=!1;break e;case 3:case 4:n=n.containerInfo,l=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var u=e,i=a,s=i;;)if(Rr(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}l?(u=n,i=a.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,l=!0,a.child.return=a,a=a.child;continue}}else if(Rr(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return,4===a.tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Wr(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var l=n=n.next;do{3==(3&l.tag)&&(e=l.destroy,l.destroy=void 0,void 0!==e&&e()),l=l.next}while(l!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){l=t.memoizedProps;var a=null!==e?e.memoizedProps:l;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[ju]=l,"input"===e&&"radio"===l.type&&null!=l.name&&_(n,l),V(e,a),t=V(e,l),a=0;aa&&(a=u),n&=~o}if(n=a,n=hi()-n,10<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ji(n/1960))-n)){e.timeoutHandle=Mu(fl.bind(null,e),n);break}fl(e);break;case 5:fl(e);break;default:throw Error(r(329))}}return Kr(e,hi()),e.callbackNode===t?Yr.bind(null,e):null}function Xr(e,t){for(t&=~ps,t&=~ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==is&&(is=2),i=_r(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t;on(d,Pr(d,a,t));break e;case 1:a=i;var S=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===ws||!ws.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t;on(d,Nr(d,a,t));break e}}d=d.return}while(null!==d)}cl(n)}catch(e){t=e,ls===n&&null!==n&&(ls=n=n.return);continue}break}}function al(){var e=es.current;return es.current=Bi,null===e?Bi:e}function ol(e,t){var n=ns;ns|=16;var l=al();for(rs===e&&as===t||rl(e,t);;)try{ul();break}catch(t){ll(e,t)}if(Gt(),ns=n,es.current=l,null!==ls)throw Error(r(261));return rs=null,as=0,is}function ul(){for(;null!==ls;)sl(ls)}function il(){for(;null!==ls&&!Ju();)sl(ls)}function sl(e){var t=Xi(e.alternate,e,os);e.memoizedProps=e.pendingProps,null===t?cl(e):ls=t,ts.current=null}function cl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=Er(n,t,os)))return void(ls=n);if(n=t,24!==n.tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&os)||0==(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1u&&(i=u,u=S,S=i),i=ot(b,S),o=ot(b,u),i&&o&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==o.node||k.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(i.node,i.offset),k.removeAllRanges(),S>u?(k.addRange(w),k.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),k.addRange(w)))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;bhi()-ms?rl(e,0):ps|=n),Kr(e,t)}function kl(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=0,0===t&&(t=e.mode,0==(2&t)?t=1:0==(4&t)?t=99===Ht()?1:2:(0===zs&&(zs=cs),0===(t=Pe(62914560&~zs))&&(t=4194304))),n=Hr(),null!==(e=qr(e,t))&&(Te(e,t,n),Kr(e,n))}function Sl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function El(e,t,n,r){return new Sl(e,t,n,r)}function xl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _l(e){if("function"==typeof e)return xl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ca)return 11;if(e===pa)return 14}return 2}function Cl(e,t){var n=e.alternate;return null===n?(n=El(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,l,a,o){var u=2;if(l=e,"function"==typeof e)xl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case aa:return Nl(n.children,a,o,t);case va:u=8,a|=16;break;case oa:u=8,a|=1;break;case ua:return e=El(12,n,t,8|a),e.elementType=ua,e.type=ua,e.lanes=o,e;case fa:return e=El(13,n,t,a),e.type=fa,e.elementType=fa,e.lanes=o,e;case da:return e=El(19,n,t,a),e.elementType=da,e.lanes=o,e;case ga:return Tl(n,a,o,t);case ba:return e=El(24,n,t,a),e.elementType=ba,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ia:u=10;break e;case sa:u=9;break e;case ca:u=11;break e;case pa:u=14;break e;case ha:u=16,l=null;break e;case ma:u=22;break e}throw Error(r(130,null==e?e:typeof e,""))}return t=El(u,n,t,a),t.elementType=e,t.type=l,t.lanes=o,t}function Nl(e,t,n,r){return e=El(7,e,r,t),e.lanes=n,e}function Tl(e,t,n,r){return e=El(23,e,r,t),e.elementType=ga,e.lanes=n,e}function zl(e,t,n){return e=El(6,e,null,t),e.lanes=n,e}function Ol(e,t,n){return t=El(4,null!==e.children?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ll(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ne(0),this.expirationTimes=Ne(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ne(0),this.mutableSourceEagerHydrationData=null}function Rl(e,t,n){var r=3"+t.valueOf().toString()+"",t=Sa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Pa={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Na=["Webkit","ms","Moz","O"];Object.keys(Pa).forEach(function(e){Na.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pa[t]=Pa[e]})});var Ta=$l({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}),za=null,Oa=null,La=null,Ra=q,Ma=!1,Ia=!1,Da=!1;if(Yl)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Da=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch(e){Da=!1}var Ua,ja,Wa,Aa,Va=!1,Ba=null,Ha=!1,$a=null,Qa={onError:function(e){Va=!0,Ba=e}},qa=!1,Ka=[],Ya=null,Xa=null,Ga=null,Za=new Map,Ja=new Map,eo=[],to="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(" "),no={animationend:ge("Animation","AnimationEnd"),animationiteration:ge("Animation","AnimationIteration"),animationstart:ge("Animation","AnimationStart"),transitionend:ge("Transition","TransitionEnd")},ro={},lo={};Yl&&(lo=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);var ao=be("animationend"),oo=be("animationiteration"),uo=be("animationstart"),io=be("transitionend"),so=new Map,co=new Map,fo=["abort","abort",ao,"animationEnd",oo,"animationIteration",uo,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",io,"transitionEnd","waiting","waiting"];(0,Ql.unstable_now)();var po,ho,mo,yo=8,vo=Math.clz32?Math.clz32:ze,go=Math.log,bo=Math.LN2,wo=Ql.unstable_UserBlockingPriority,ko=Ql.unstable_runWithPriority,So=!0,Eo=null,xo=null,_o=null,Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Po=je(Co),No=$l({},Co,{view:0,detail:0}),To=je(No),zo=$l({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ae,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mo&&(mo&&"mousemove"===e.type?(po=e.screenX-mo.screenX,ho=e.screenY-mo.screenY):ho=po=0,mo=e),po)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),Oo=je(zo),Lo=$l({},zo,{dataTransfer:0}),Ro=je(Lo),Mo=$l({},No,{relatedTarget:0}),Io=je(Mo),Do=$l({},Co,{animationName:0,elapsedTime:0,pseudoElement:0}),Fo=je(Do),Uo=$l({},Co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jo=je(Uo),Wo=$l({},Co,{data:0}),Ao=je(Wo),Vo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bo={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"},Ho={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$o=$l({},No,{key:function(e){if(e.key){var t=Vo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=De(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?Bo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ae,charCode:function(e){return"keypress"===e.type?De(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?De(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Qo=je($o),qo=$l({},zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ko=je(qo),Yo=$l({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ae}),Xo=je(Yo),Go=$l({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zo=je(Go),Jo=$l({},zo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eu=je(Jo),tu=[9,13,27,32],nu=Yl&&"CompositionEvent"in window,ru=null;Yl&&"documentMode"in document&&(ru=document.documentMode);var lu=Yl&&"TextEvent"in window&&!ru,au=Yl&&(!nu||ru&&8=ru),ou=String.fromCharCode(32),uu=!1,iu=!1,su={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},cu=null,fu=null,du=!1;if(Yl){var pu;if(Yl){var hu="oninput"in document;if(!hu){var mu=document.createElement("div");mu.setAttribute("oninput","return;"),hu="function"==typeof mu.oninput}pu=hu}else pu=!1;du=pu&&(!document.documentMode||9=document.documentMode,bu=null,wu=null,ku=null,Su=!1;we("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),we("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),we(fo,2);for(var Eu="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xu=0;xupi?ti:function(){return ti()-pi},mi=na.ReactCurrentBatchConfig,yi=Mt(null),vi=null,gi=null,bi=null,wi=!1,ki=(new Hl.Component).refs,Si={isMounted:function(e){return!!(e=e._reactInternals)&&ne(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hr(),l=$r(e),a=ln(r,l);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),an(e,a),Qr(e,l,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hr(),l=$r(e),a=ln(r,l);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),an(e,a),Qr(e,l,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hr(),r=$r(e),l=ln(n,r);l.tag=2,void 0!==t&&null!==t&&(l.callback=t),an(e,l),Qr(e,r,n)}},Ei=Array.isArray,xi=vn(!0),_i=vn(!1),Ci={},Pi=Mt(Ci),Ni=Mt(Ci),Ti=Mt(Ci),zi=Mt(0),Oi=null,Li=null,Ri=!1,Mi=[],Ii=na.ReactCurrentDispatcher,Di=na.ReactCurrentBatchConfig,Fi=0,Ui=null,ji=null,Wi=null,Ai=!1,Vi=!1,Bi={readContext:tn,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useOpaqueIdentifier:On,unstable_isNewReconciler:!1},Hi={readContext:tn,useCallback:function(e,t){return Mn().memoizedState=[e,void 0===t?null:t],e},useContext:tn,useEffect:Kn,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Qn(4,2,Gn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qn(4,2,e,t)},useMemo:function(e,t){var n=Mn();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mn();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=rr.bind(null,Ui,e),[r.memoizedState,e]},useRef:Hn,useState:Vn,useDebugValue:Jn,useDeferredValue:function(e){var t=Vn(e),n=t[0],r=t[1];return Kn(function(){var t=Di.transition;Di.transition=1;try{r(e)}finally{Di.transition=t}},[e]),n},useTransition:function(){var e=Vn(!1),t=e[0];return e=nr.bind(null,e[1]),Hn(e),[e,t]},useMutableSource:function(e,t,n){var r=Mn();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Wn(r,e,t,n)},useOpaqueIdentifier:function(){if(Ri){var e=!1,t=Nt(function(){throw e||(e=!0,n("r:"+(Du++).toString(36))),Error(r(355))}),n=Vn(t)[1];return 0==(2&Ui.mode)&&(Ui.flags|=516,Bn(5,function(){n("r:"+(Du++).toString(36))},void 0,null)),t}return t="r:"+(Du++).toString(36),Vn(t),t},unstable_isNewReconciler:!1},$i={readContext:tn,useCallback:er,useContext:tn,useEffect:Yn,useImperativeHandle:Zn,useLayoutEffect:Xn,useMemo:tr,useReducer:Fn,useRef:$n,useState:function(){return Fn(Dn)},useDebugValue:Jn,useDeferredValue:function(e){var t=Fn(Dn),n=t[0],r=t[1];return Yn(function(){var t=Di.transition;Di.transition=1;try{r(e)}finally{Di.transition=t}},[e]),n},useTransition:function(){var e=Fn(Dn)[0];return[$n().current,e]},useMutableSource:An,useOpaqueIdentifier:function(){return Fn(Dn)[0]},unstable_isNewReconciler:!1},Qi={readContext:tn,useCallback:er,useContext:tn,useEffect:Yn,useImperativeHandle:Zn,useLayoutEffect:Xn,useMemo:tr,useReducer:Un,useRef:$n,useState:function(){return Un(Dn)},useDebugValue:Jn,useDeferredValue:function(e){var t=Un(Dn),n=t[0],r=t[1];return Yn(function(){var t=Di.transition;Di.transition=1;try{r(e)}finally{Di.transition=t}},[e]),n},useTransition:function(){var e=Un(Dn)[0];return[$n().current,e]},useMutableSource:An,useOpaqueIdentifier:function(){return Un(Dn)[0]},unstable_isNewReconciler:!1},qi=na.ReactCurrentOwner,Ki=!1,Yi={dehydrated:null,retryLane:0};_u=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Cu=function(){},Pu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,gn(Pi.current);var a=null;switch(n){case"input":l=E(e,l),r=E(e,r),a=[];break;case"option":l=z(e,l),r=z(e,r),a=[];break;case"select":l=$l({},l,{value:void 0}),r=$l({},r,{value:void 0}),a=[];break;case"textarea":l=L(e,l),r=L(e,r),a=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=St)}A(n,r);var o;n=null;for(s in l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&null!=l[s])if("style"===s){var u=l[s];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(Kl.hasOwnProperty(s)?a||(a=[]):(a=a||[]).push(s,null));for(s in r){var i=r[s];if(u=null!=l?l[s]:void 0,r.hasOwnProperty(s)&&i!==u&&(null!=i||null!=u))if("style"===s)if(u){for(o in u)!u.hasOwnProperty(o)||i&&i.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in i)i.hasOwnProperty(o)&&u[o]!==i[o]&&(n||(n={}),n[o]=i[o])}else n||(a||(a=[]),a.push(s,n)),n=i;else"dangerouslySetInnerHTML"===s?(i=i?i.__html:void 0,u=u?u.__html:void 0,null!=i&&u!==i&&(a=a||[]).push(s,i)):"children"===s?"string"!=typeof i&&"number"!=typeof i||(a=a||[]).push(s,""+i):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(Kl.hasOwnProperty(s)?(null!=i&&"onScroll"===s&&pt("scroll",e),a||u===i||(a=[])):"object"==typeof i&&null!==i&&i.$$typeof===ya?i.toString():(a=a||[]).push(s,i))}n&&(a=a||[]).push("style",n);var s=a;(t.updateQueue=s)&&(t.flags|=4)}},Nu=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xi,Gi="function"==typeof WeakMap?WeakMap:Map,Zi="function"==typeof WeakSet?WeakSet:Set,Ji=Math.ceil,es=na.ReactCurrentDispatcher,ts=na.ReactCurrentOwner,ns=0,rs=null,ls=null,as=0,os=0,us=Mt(0),is=0,ss=null,cs=0,fs=0,ds=0,ps=0,hs=null,ms=0,ys=1/0,vs=null,gs=!1,bs=null,ws=null,ks=!1,Ss=null,Es=90,xs=[],_s=[],Cs=null,Ps=0,Ns=null,Ts=-1,zs=0,Os=0,Ls=null,Rs=!1;Xi=function(e,t,n){var l=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Qu.current)Ki=!0;else{if(0==(n&l)){switch(Ki=!1,t.tag){case 3:pr(t),Tn();break;case 5:kn(t);break;case 1:Ut(t.type)&&Vt(t);break;case 4:bn(t,t.stateNode.containerInfo);break;case 10:l=t.memoizedProps.value;var a=t.type._context;Dt(yi,a._currentValue),a._currentValue=l;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?hr(e,t,n):(Dt(zi,1&zi.current),t=kr(e,t,n),null!==t?t.sibling:null);Dt(zi,1&zi.current);break;case 19:if(l=0!=(n&t.childLanes),0!=(64&e.flags)){if(l)return wr(e,t,n);t.flags|=64}if(a=t.memoizedState,null!==a&&(a.rendering=null,a.tail=null,a.lastEffect=null),Dt(zi,zi.current),l)break;return null;case 23:case 24:return t.lanes=0,ir(e,t,n)}return kr(e,t,n)}Ki=0!=(16384&e.flags)}else Ki=!1;switch(t.lanes=0,t.tag){case 2:if(l=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=Ft(t,$u.current),en(t,n),a=Rn(null,t,l,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ut(l)){var o=!0;Vt(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,nn(t);var u=l.getDerivedStateFromProps;"function"==typeof u&&cn(t,l,u,e),a.updater=Si,t.stateNode=a,a._reactInternals=t,hn(t,l,e,n),t=dr(null,t,l,!0,o,n)}else t.tag=0,lr(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=_l(a),e=Xt(a,e),o){case 0:t=cr(null,t,a,e,n);break e;case 1:t=fr(null,t,a,e,n);break e;case 11:t=ar(null,t,a,e,n);break e;case 14:t=or(null,t,a,Xt(a.type,e),l,n);break e}throw Error(r(306,a,""))}return t;case 0:return l=t.type,a=t.pendingProps,a=t.elementType===l?a:Xt(l,a),cr(e,t,l,a,n);case 1:return l=t.type,a=t.pendingProps,a=t.elementType===l?a:Xt(l,a),fr(e,t,l,a,n);case 3:if(pr(t),l=t.updateQueue,null===e||null===l)throw Error(r(282));if(l=t.pendingProps,a=t.memoizedState,a=null!==a?a.element:null,rn(e,t),un(t,l,null,n),(l=t.memoizedState.element)===a)Tn(),t=kr(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(Li=Ct(t.stateNode.containerInfo.firstChild),Oi=t,o=Ri=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a>>1,l=e[r];if(!(void 0!==l&&0o(u,n))void 0!==s&&0>o(s,u)?(e[r]=s,e[i]=n,r=i):(e[r]=u,e[a]=n,r=a);else{if(!(void 0!==s&&0>o(s,n)))break e;e[r]=s,e[i]=n,r=i}}}return t}return null}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function u(e){for(var t=l(O);null!==t;){if(null===t.callback)a(O);else{if(!(t.startTime<=e))break;a(O),t.sortIndex=t.expirationTime,r(z,t)}t=l(O)}}function i(e){if(F=!1,u(e),!D)if(null!==l(z))D=!0,c(s);else{var t=l(O);null!==t&&f(i,t.startTime-e)}}function s(e,n){D=!1,F&&(F=!1,d()),I=!0;var r=M;try{for(u(n),R=l(z);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=R.callback;if("function"==typeof o){R.callback=null,M=R.priorityLevel;var s=o(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===l(z)&&a(z),u(n)}else a(z);R=l(z)}if(null!==R)var c=!0;else{var p=l(O);null!==p&&f(i,p.startTime-n),c=!1}return c}finally{R=null,M=r,I=!1}}/** @license React v0.20.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var c,f,d,p;if("object"==typeof performance&&"function"==typeof performance.now){var h=performance;t.unstable_now=function(){return h.now()}}else{var m=Date,y=m.now();t.unstable_now=function(){return m.now()-y}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var v=null,g=null,b=function(){if(null!==v)try{var e=t.unstable_now();v(!0,e),v=null}catch(e){throw setTimeout(b,0),e}};c=function(e){null!==v?setTimeout(c,0,e):(v=e,setTimeout(b,0))},f=function(e,t){g=setTimeout(e,t)},d=function(){clearTimeout(g)},t.unstable_shouldYield=function(){return!1},p=t.unstable_forceFrameRate=function(){}}else{var w=window.setTimeout,k=window.clearTimeout;if("undefined"!=typeof console){var S=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof S&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,x=null,_=-1,C=5,P=0;t.unstable_shouldYield=function(){return t.unstable_now()>=P},p=function(){},t.unstable_forceFrameRate=function(e){0>e||125o?(e.sortIndex=a,r(O,e),null===l(z)&&e===l(O)&&(F?d():F=!0,f(i,a-o))):(e.sortIndex=u,r(z,e),D||I||(D=!0,c(s))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t