Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

formik

Package Overview
Dependencies
Maintainers
1
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formik - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

dist/connect.d.ts
import * as React from 'react';
import { FormikContext } from './types';
export declare const FormikProvider: React.ComponentClass<import("create-react-context").ProviderProps<FormikContext<any>>>, FormikConsumer: React.ComponentClass<import("create-react-context").ConsumerProps<FormikContext<any>>>;
export declare const FormikProvider: React.ComponentClass<import("create-react-context").ProviderProps<FormikContext<any>>, any>, FormikConsumer: React.ComponentClass<import("create-react-context").ConsumerProps<FormikContext<any>>, any>;
export declare function connect<OuterProps, Values = {}>(Comp: React.ComponentType<OuterProps & {
formik: FormikContext<Values>;
}>): React.ComponentClass<OuterProps> & {
}>): React.ComponentClass<OuterProps, any> & {
WrappedComponent: React.ComponentClass<OuterProps & {
formik: FormikContext<Values>;
}>;
}, any>;
};

@@ -9,3 +9,3 @@ import * as React from 'react';

}
export declare const ErrorMessage: React.ComponentClass<ErrorMessageProps> & {
export declare const ErrorMessage: React.ComponentClass<ErrorMessageProps, any> & {
WrappedComponent: React.ComponentClass<ErrorMessageProps & {

@@ -15,3 +15,3 @@ formik: FormikContext<ErrorMessageProps & {

}>;
}>;
}, any>;
};

@@ -26,4 +26,4 @@ import * as React from 'react';

export declare type FastFieldAttributes<T> = GenericFieldHTMLAttributes & FastFieldConfig<T> & T;
export declare const FastField: React.ComponentClass<any> & {
WrappedComponent: React.ComponentClass<any>;
export declare const FastField: React.ComponentClass<any, any> & {
WrappedComponent: React.ComponentClass<any, any>;
};

@@ -23,4 +23,4 @@ import * as React from 'react';

export declare type FieldAttributes<T> = GenericFieldHTMLAttributes & FieldConfig & T;
export declare const Field: React.ComponentClass<any> & {
WrappedComponent: React.ComponentClass<any>;
export declare const Field: React.ComponentClass<any, any> & {
WrappedComponent: React.ComponentClass<any, any>;
};

@@ -33,3 +33,3 @@ import * as React from 'react';

export declare const replace: (array: any[], index: number, value: any) => any[];
export declare const FieldArray: React.ComponentClass<FieldArrayConfig> & {
export declare const FieldArray: React.ComponentClass<FieldArrayConfig, any> & {
WrappedComponent: React.ComponentClass<{

@@ -40,3 +40,3 @@ name: string;

formik: FormikContext<any>;
}>;
}, any>;
};
import * as React from 'react';
export declare type FormikFormProps = Pick<React.FormHTMLAttributes<HTMLFormElement>, Exclude<keyof React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit'>>;
export declare const Form: React.ComponentClass<Pick<React.FormHTMLAttributes<HTMLFormElement>, "color" | "hidden" | "dir" | "slot" | "style" | "title" | "children" | "onReset" | "name" | "autoComplete" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onInput" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "acceptCharset" | "action" | "encType" | "method" | "noValidate" | "target">> & {
WrappedComponent: React.ComponentClass<Pick<React.FormHTMLAttributes<HTMLFormElement>, "color" | "hidden" | "dir" | "slot" | "style" | "title" | "children" | "onReset" | "name" | "autoComplete" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onInput" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "acceptCharset" | "action" | "encType" | "method" | "noValidate" | "target"> & {
export declare const Form: React.ComponentClass<Pick<React.FormHTMLAttributes<HTMLFormElement>, "color" | "hidden" | "dir" | "slot" | "style" | "title" | "children" | "onReset" | "name" | "autoComplete" | "placeholder" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onInput" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "acceptCharset" | "action" | "encType" | "method" | "noValidate" | "target">, any> & {
WrappedComponent: React.ComponentClass<Pick<React.FormHTMLAttributes<HTMLFormElement>, "color" | "hidden" | "dir" | "slot" | "style" | "title" | "children" | "onReset" | "name" | "autoComplete" | "placeholder" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onInput" | "onInputCapture" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "acceptCharset" | "action" | "encType" | "method" | "noValidate" | "target"> & {
formik: import("./types").FormikContext<{}>;
}>;
}, any>;
};

@@ -122,4 +122,4 @@ 'use strict';

_this.hbCache = {};
_this.registerField = function (name, fns) {
_this.fields[name] = fns;
_this.registerField = function (name, Comp) {
_this.fields[name] = Comp;
};

@@ -173,3 +173,3 @@ _this.unregisterField = function (name) {

return new Promise(function (resolve) {
return resolve(_this.fields[field].validate(value));
return resolve(_this.fields[field].props.validate(value));
}).then(function (x) { return x; }, function (e) { return e; });

@@ -229,6 +229,7 @@ };

if (field) {
_this.setState(function (prevState) { return (tslib_1.__assign({}, prevState, { values: setIn(prevState.values, field, val) })); });
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
_this.setState(function (prevState) { return (tslib_1.__assign({}, prevState, { values: setIn(prevState.values, field, val) })); }, function () {
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
});
}

@@ -400,3 +401,3 @@ };

_this.getFormikContext = function () {
return tslib_1.__assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate });
return tslib_1.__assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate, initialValues: _this.initialValues });
};

@@ -437,4 +438,4 @@ _this.state = {

_this.fields[f] &&
_this.fields[f].validate &&
isFunction(_this.fields[f].validate);
_this.fields[f].props.validate &&
isFunction(_this.fields[f].props.validate);
});

@@ -486,3 +487,3 @@ var fieldValidations = fieldKeysWithValidation.length > 0

: children
? typeof children === 'function'
? isFunction(children)
? children(props)

@@ -508,2 +509,5 @@ : !isEmptyChildren(children)

var errors = {};
if (yupError.inner.length === 0) {
return setIn(errors, yupError.path, yupError.message);
}
for (var _i = 0, _a = yupError.inner; _i < _a.length; _i++) {

@@ -556,22 +560,18 @@ var err = _a[_i];

var _this = _super.call(this, props) || this;
var render = props.render, children = props.children, component = props.component, formik = props.formik;
var render = props.render, children = props.children, component = props.component;
warning(!(component && render), 'You should not use <Field component> and <Field render> in the same <Field> component; <Field component> will be ignored');
warning(!(component && children && isFunction(children)), 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.');
warning(!(render && children && !isEmptyChildren(children)), 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored');
formik.registerField(props.name, {
validate: props.validate,
});
return _this;
}
FieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, this);
};
FieldInner.prototype.componentDidUpdate = function (prevProps) {
if (this.props.name !== prevProps.name) {
this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -707,3 +707,3 @@ };

_this.swap = function (indexA, indexB) {
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, false, false);
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, true, true);
};

@@ -714,7 +714,7 @@ _this.handleSwap = function (indexA, indexB) { return function () {

_this.move = function (from, to) {
return _this.updateArrayField(function (array) { return move(array, from, to); }, false, false);
return _this.updateArrayField(function (array) { return move(array, from, to); }, true, true);
};
_this.handleMove = function (from, to) { return function () { return _this.move(from, to); }; };
_this.insert = function (index, value) {
return _this.updateArrayField(function (array) { return insert(array, index, value); }, false, false);
return _this.updateArrayField(function (array) { return insert(array, index, value); }, true, true);
};

@@ -729,8 +729,10 @@ _this.handleInsert = function (index, value) { return function () { return _this.insert(index, value); }; };

_this.unshift = function (value) {
var arr = [];
var length = -1;
_this.updateArrayField(function (array) {
arr = array ? [value].concat(array) : [value];
var arr = array ? [value].concat(array) : [value];
if (length < 0)
length = arr.length;
return arr;
}, false, false);
return arr.length;
}, true, true);
return length;
};

@@ -827,3 +829,4 @@ _this.handleUnshift = function (value) { return function () { return _this.unshift(value); }; };

getIn(props.formik.touched, this.props.name) ||
Object.keys(this.props).length !== Object.keys(props).length) {
Object.keys(this.props).length !== Object.keys(props).length ||
this.props.formik.isSubmitting !== props.formik.isSubmitting) {
return true;

@@ -836,5 +839,3 @@ }

FastFieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
};

@@ -844,10 +845,6 @@ FastFieldInner.prototype.componentDidUpdate = function (prevProps) {

this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -854,0 +851,0 @@ };

@@ -122,4 +122,4 @@ 'use strict';

_this.hbCache = {};
_this.registerField = function (name, fns) {
_this.fields[name] = fns;
_this.registerField = function (name, Comp) {
_this.fields[name] = Comp;
};

@@ -170,3 +170,3 @@ _this.unregisterField = function (name) {

return new Promise(function (resolve) {
return resolve(_this.fields[field].validate(value));
return resolve(_this.fields[field].props.validate(value));
}).then(function (x) { return x; }, function (e) { return e; });

@@ -226,6 +226,7 @@ };

if (field) {
_this.setState(function (prevState) { return (tslib_1.__assign({}, prevState, { values: setIn(prevState.values, field, val) })); });
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
_this.setState(function (prevState) { return (tslib_1.__assign({}, prevState, { values: setIn(prevState.values, field, val) })); }, function () {
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
});
}

@@ -389,3 +390,3 @@ };

_this.getFormikContext = function () {
return tslib_1.__assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate });
return tslib_1.__assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate, initialValues: _this.initialValues });
};

@@ -426,4 +427,4 @@ _this.state = {

_this.fields[f] &&
_this.fields[f].validate &&
isFunction(_this.fields[f].validate);
_this.fields[f].props.validate &&
isFunction(_this.fields[f].props.validate);
});

@@ -475,3 +476,3 @@ var fieldValidations = fieldKeysWithValidation.length > 0

: children
? typeof children === 'function'
? isFunction(children)
? children(props)

@@ -497,2 +498,5 @@ : !isEmptyChildren(children)

var errors = {};
if (yupError.inner.length === 0) {
return setIn(errors, yupError.path, yupError.message);
}
for (var _i = 0, _a = yupError.inner; _i < _a.length; _i++) {

@@ -545,22 +549,18 @@ var err = _a[_i];

var _this = _super.call(this, props) || this;
var render = props.render, children = props.children, component = props.component, formik = props.formik;
var render = props.render, children = props.children, component = props.component;
warning(!(component && render), 'You should not use <Field component> and <Field render> in the same <Field> component; <Field component> will be ignored');
warning(!(component && children && isFunction(children)), 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.');
warning(!(render && children && !isEmptyChildren(children)), 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored');
formik.registerField(props.name, {
validate: props.validate,
});
return _this;
}
FieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, this);
};
FieldInner.prototype.componentDidUpdate = function (prevProps) {
if (this.props.name !== prevProps.name) {
this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -696,3 +696,3 @@ };

_this.swap = function (indexA, indexB) {
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, false, false);
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, true, true);
};

@@ -703,7 +703,7 @@ _this.handleSwap = function (indexA, indexB) { return function () {

_this.move = function (from, to) {
return _this.updateArrayField(function (array) { return move(array, from, to); }, false, false);
return _this.updateArrayField(function (array) { return move(array, from, to); }, true, true);
};
_this.handleMove = function (from, to) { return function () { return _this.move(from, to); }; };
_this.insert = function (index, value) {
return _this.updateArrayField(function (array) { return insert(array, index, value); }, false, false);
return _this.updateArrayField(function (array) { return insert(array, index, value); }, true, true);
};

@@ -718,8 +718,10 @@ _this.handleInsert = function (index, value) { return function () { return _this.insert(index, value); }; };

_this.unshift = function (value) {
var arr = [];
var length = -1;
_this.updateArrayField(function (array) {
arr = array ? [value].concat(array) : [value];
var arr = array ? [value].concat(array) : [value];
if (length < 0)
length = arr.length;
return arr;
}, false, false);
return arr.length;
}, true, true);
return length;
};

@@ -816,3 +818,4 @@ _this.handleUnshift = function (value) { return function () { return _this.unshift(value); }; };

getIn(props.formik.touched, this.props.name) ||
Object.keys(this.props).length !== Object.keys(props).length) {
Object.keys(this.props).length !== Object.keys(props).length ||
this.props.formik.isSubmitting !== props.formik.isSubmitting) {
return true;

@@ -825,5 +828,3 @@ }

FastFieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
};

@@ -833,10 +834,6 @@ FastFieldInner.prototype.componentDidUpdate = function (prevProps) {

this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -843,0 +840,0 @@ };

import * as React from 'react';
import { FormikActions, FormikConfig, FormikErrors, FormikState, FormikTouched, FormikValues, FormikContext } from './types';
export declare class Formik<Values = {}, ExtraProps = {}> extends React.Component<FormikConfig<Values> & ExtraProps, FormikState<any>> {
export declare class Formik<Values = object, ExtraProps = {}> extends React.Component<FormikConfig<Values> & ExtraProps, FormikState<Values>> {
static defaultProps: {

@@ -19,11 +19,6 @@ validateOnChange: boolean;

fields: {
[field: string]: {
validate?: ((value: any) => string | Promise<void> | undefined);
};
[field: string]: React.Component<any>;
};
constructor(props: FormikConfig<Values> & ExtraProps);
registerField: (name: string, fns: {
reset?: ((nextValues?: any) => void) | undefined;
validate?: ((value: any) => string | Promise<void> | undefined) | undefined;
}) => void;
registerField: (name: string, Comp: React.Component<any, {}, any>) => void;
unregisterField: (name: string) => void;

@@ -35,3 +30,3 @@ componentDidMount(): void;

setTouched: (touched: FormikTouched<Values>) => void;
setValues: (values: FormikValues) => void;
setValues: (values: Values) => void;
setStatus: (status?: any) => void;

@@ -64,6 +59,3 @@ setError: (error: any) => void;

getFormikBag: () => {
registerField: (name: string, fns: {
reset?: ((nextValues?: any) => void) | undefined;
validate?: ((value: any) => string | Promise<void> | undefined) | undefined;
}) => void;
registerField: (name: string, Comp: React.Component<any, {}, any>) => void;
unregisterField: (name: string) => void;

@@ -74,4 +66,4 @@ handleBlur: (eventOrString: any) => void | ((e: any) => void);

handleSubmit: (e: React.FormEvent<HTMLFormElement> | undefined) => void;
validateOnChange: (FormikConfig<Values> & ExtraProps)["validateOnChange"];
validateOnBlur: (FormikConfig<Values> & ExtraProps)["validateOnBlur"];
validateOnChange: (FormikConfig<Values> & ExtraProps)["validateOnChange"] | undefined;
validateOnBlur: (FormikConfig<Values> & ExtraProps)["validateOnBlur"] | undefined;
dirty: boolean;

@@ -98,6 +90,6 @@ isValid: boolean;

setFormikState<K extends "error" | "values" | "errors" | "touched" | "isValidating" | "isSubmitting" | "status" | "submitCount">(state: Pick<FormikState<Values>, K>, callback?: (() => any) | undefined): void;
values: any;
values: Values;
error?: any;
errors: FormikErrors<any>;
touched: FormikTouched<any>;
errors: FormikErrors<Values>;
touched: FormikTouched<Values>;
isValidating: boolean;

@@ -104,0 +96,0 @@ isSubmitting: boolean;

@@ -116,4 +116,4 @@ import { __extends, __rest, __assign } from 'tslib';

_this.hbCache = {};
_this.registerField = function (name, fns) {
_this.fields[name] = fns;
_this.registerField = function (name, Comp) {
_this.fields[name] = Comp;
};

@@ -167,3 +167,3 @@ _this.unregisterField = function (name) {

return new Promise(function (resolve) {
return resolve(_this.fields[field].validate(value));
return resolve(_this.fields[field].props.validate(value));
}).then(function (x) { return x; }, function (e) { return e; });

@@ -223,6 +223,7 @@ };

if (field) {
_this.setState(function (prevState) { return (__assign({}, prevState, { values: setIn(prevState.values, field, val) })); });
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
_this.setState(function (prevState) { return (__assign({}, prevState, { values: setIn(prevState.values, field, val) })); }, function () {
if (_this.props.validateOnChange) {
_this.runValidations(setIn(_this.state.values, field, val));
}
});
}

@@ -395,3 +396,3 @@ };

_this.getFormikContext = function () {
return __assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate });
return __assign({}, _this.getFormikBag(), { validationSchema: _this.props.validationSchema, validate: _this.props.validate, initialValues: _this.initialValues });
};

@@ -432,4 +433,4 @@ _this.state = {

_this.fields[f] &&
_this.fields[f].validate &&
isFunction(_this.fields[f].validate);
_this.fields[f].props.validate &&
isFunction(_this.fields[f].props.validate);
});

@@ -481,3 +482,3 @@ var fieldValidations = fieldKeysWithValidation.length > 0

: children
? typeof children === 'function'
? isFunction(children)
? children(props)

@@ -503,2 +504,5 @@ : !isEmptyChildren(children)

var errors = {};
if (yupError.inner.length === 0) {
return setIn(errors, yupError.path, yupError.message);
}
for (var _i = 0, _a = yupError.inner; _i < _a.length; _i++) {

@@ -551,22 +555,18 @@ var err = _a[_i];

var _this = _super.call(this, props) || this;
var render = props.render, children = props.children, component = props.component, formik = props.formik;
var render = props.render, children = props.children, component = props.component;
warning(!(component && render), 'You should not use <Field component> and <Field render> in the same <Field> component; <Field component> will be ignored');
warning(!(component && children && isFunction(children)), 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.');
warning(!(render && children && !isEmptyChildren(children)), 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored');
formik.registerField(props.name, {
validate: props.validate,
});
return _this;
}
FieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, this);
};
FieldInner.prototype.componentDidUpdate = function (prevProps) {
if (this.props.name !== prevProps.name) {
this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -702,3 +702,3 @@ };

_this.swap = function (indexA, indexB) {
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, false, false);
return _this.updateArrayField(function (array) { return swap(array, indexA, indexB); }, true, true);
};

@@ -709,7 +709,7 @@ _this.handleSwap = function (indexA, indexB) { return function () {

_this.move = function (from, to) {
return _this.updateArrayField(function (array) { return move(array, from, to); }, false, false);
return _this.updateArrayField(function (array) { return move(array, from, to); }, true, true);
};
_this.handleMove = function (from, to) { return function () { return _this.move(from, to); }; };
_this.insert = function (index, value) {
return _this.updateArrayField(function (array) { return insert(array, index, value); }, false, false);
return _this.updateArrayField(function (array) { return insert(array, index, value); }, true, true);
};

@@ -724,8 +724,10 @@ _this.handleInsert = function (index, value) { return function () { return _this.insert(index, value); }; };

_this.unshift = function (value) {
var arr = [];
var length = -1;
_this.updateArrayField(function (array) {
arr = array ? [value].concat(array) : [value];
var arr = array ? [value].concat(array) : [value];
if (length < 0)
length = arr.length;
return arr;
}, false, false);
return arr.length;
}, true, true);
return length;
};

@@ -822,3 +824,4 @@ _this.handleUnshift = function (value) { return function () { return _this.unshift(value); }; };

getIn(props.formik.touched, this.props.name) ||
Object.keys(this.props).length !== Object.keys(props).length) {
Object.keys(this.props).length !== Object.keys(props).length ||
this.props.formik.isSubmitting !== props.formik.isSubmitting) {
return true;

@@ -831,5 +834,3 @@ }

FastFieldInner.prototype.componentDidMount = function () {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
};

@@ -839,10 +840,6 @@ FastFieldInner.prototype.componentDidUpdate = function (prevProps) {

this.props.formik.unregisterField(prevProps.name);
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}
if (this.props.validate !== prevProps.validate) {
this.props.formik.registerField(this.props.name, {
validate: this.props.validate,
});
this.props.formik.registerField(this.props.name, this);
}

@@ -849,0 +846,0 @@ };

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.Formik={},e.React)}(this,function(e,t){"use strict";var n="default"in t?t.default:t,r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}var u=Array.isArray,s=Object.keys,c=Object.prototype.hasOwnProperty;var l=function(e,t){try{return function e(t,n){if(t===n)return!0;var r,o,i,a=u(t),l=u(n);if(a&&l){if((o=t.length)!=n.length)return!1;for(r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var f=t instanceof Date,p=n instanceof Date;if(f!=p)return!1;if(f&&p)return t.getTime()==n.getTime();var d=t instanceof RegExp,h=n instanceof RegExp;if(d!=h)return!1;if(d&&h)return t.toString()==n.toString();if(t instanceof Object&&n instanceof Object){var v=s(t);if((o=v.length)!==s(n).length)return!1;for(r=0;r<o;r++)if(!c.call(n,v[r]))return!1;for(r=0;r<o;r++)if(!("_owner"===(i=v[r])&&t.$$typeof&&t._store||e(t[i],n[i])))return!1;return!0}return!1}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},f=function(){};"production"!==process.env.NODE_ENV&&(f=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}});var p=f,d=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===h}(e)}(e)};var h="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function v(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m(Array.isArray(e)?[]:{},e,t):e}function y(e,t,n){return e.concat(t).map(function(e){return v(e,n)})}function m(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||y,n.isMergeableObject=n.isMergeableObject||d;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=v(e[t],n)}),Object.keys(t).forEach(function(o){r[o]=n.isMergeableObject(t[o])&&e[o]?m(e[o],t[o],n):v(t[o],n)}),r}(e,t,n):v(t,n)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return m(e,n,t)},{})};var g=m,b={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O=Object.defineProperty,j=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,k=S&&S(Object);var E=function e(t,n,r){if("string"!=typeof n){if(k){var o=S(n);o&&o!==k&&e(t,o,r)}var i=j(n);F&&(i=i.concat(F(n)));for(var a=0;a<i.length;++a){var u=i[a];if(!(b[u]||_[u]||r&&r[u])){var s=w(n,u);try{O(t,u,s)}catch(e){}}}return t}return t},P="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e,t){return e(t={exports:{}},t.exports),t.exports}function C(e){return function(){return e}}var V=function(){};V.thatReturns=C,V.thatReturnsFalse=C(!1),V.thatReturnsTrue=C(!0),V.thatReturnsNull=C(null),V.thatReturnsThis=function(){return this},V.thatReturnsArgument=function(e){return e};var T=V,R=function(e){};"production"!==process.env.NODE_ENV&&(R=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")});var N=function(e,t,n,r,o,i,a,u){if(R(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;(s=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},M=T;if("production"!==process.env.NODE_ENV){M=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}).apply(void 0,[t].concat(r))}}}var I=M,D=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var $=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,r,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))B.call(n,a)&&(o[a]=n[a]);if(D){r=D(n);for(var u=0;u<r.length;u++)U.call(n,r[u])&&(o[r[u]]=n[r[u]])}}return o},W="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";if("production"!==process.env.NODE_ENV)var Y=N,L=I,q=W,z={};var H=function(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{Y("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",r||"React class",n,i,typeof e[i]),a=e[i](t,i,r,n,null,q)}catch(e){a=e}if(L(!a||a instanceof 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).",r||"React class",n,i,typeof a),a instanceof Error&&!(a.message in z)){z[a.message]=!0;var u=o?o():"";L(!1,"Failed %s type: %s%s",n,a.message,null!=u?u:"")}}},J=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";var o="<<anonymous>>",i={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(T.thatReturnsNull),arrayOf:function(e){return s(function(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var s=f(a);return new u("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an array.")}for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]",W);if(l instanceof Error)return l}return null})},element:function(){return s(function(t,n,r,o,i){var a=t[n];if(!e(a)){var s=f(a);return new u("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(e){return s(function(t,n,r,i,a){if(!(t[n]instanceof e)){var s=e.name||o,c=function(e){if(!e.constructor||!e.constructor.name)return o;return e.constructor.name}(t[n]);return new u("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}return null})},node:function(){return s(function(e,t,n,r,o){if(!l(e[t]))return new u("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.");return null})}(),objectOf:function(e){return s(function(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=f(a);if("object"!==s)return new u("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,o,i+"."+c,W);if(l instanceof Error)return l}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&I(!1,"Invalid argument supplied to oneOf, expected an instance of array."),T.thatReturnsNull;return s(function(t,n,r,o,i){for(var s=t[n],c=0;c<e.length;c++)if(a(s,e[c]))return null;var l=JSON.stringify(e);return new u("Invalid "+o+" `"+i+"` of value `"+s+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&I(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),T.thatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return I(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",d(n),t),T.thatReturnsNull}return s(function(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i,W))return null}return new u("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")})},shape:function(e){return s(function(t,n,r,o,i){var a=t[n],s=f(a);if("object"!==s)return new u("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var p=l(a,c,r,o,i+"."+c,W);if(p)return p}}return null})},exact:function(e){return s(function(t,n,r,o,i){var a=t[n],s=f(a);if("object"!==s)return new u("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var c=$({},t[n],e);for(var l in c){var p=e[l];if(!p)return new u("Invalid "+o+" `"+i+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(a,l,r,o,i+"."+l,W);if(d)return d}return null})}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e){this.message=e,this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function i(i,a,s,c,l,f,p){if(c=c||o,f=f||s,p!==W)if(t)N(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var d=c+":"+s;!n[d]&&r<3&&(I(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. 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.",f,c),n[d]=!0,r++)}return null==a[s]?i?new u(null===a[s]?"The "+l+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+l+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,l,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function c(e){return s(function(t,n,r,o,i,a){var s=t[n];return f(s)!==e?new u("Invalid "+o+" `"+i+"` of type `"+p(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function l(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||e(t))return!0;var o=function(e){var t=e&&(n&&e[n]||e[r]);if("function"==typeof t)return t}(t);if(!o)return!1;var i,a=o.call(t);if(o!==t.entries){for(;!(i=a.next()).done;)if(!l(i.value))return!1}else for(;!(i=a.next()).done;){var u=i.value;if(u&&!l(u[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function p(e){if(void 0===e||null===e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function d(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,i.checkPropTypes=H,i.PropTypes=i,i},G=A(function(e){if("production"!==process.env.NODE_ENV){var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=J(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},!0)}else e.exports=function(){function e(e,t,n,r,o,i){i!==W&&N(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=T,n.PropTypes=n,n}()}),K="__global_unique_id__",Q=function(){return P[K]=(P[K]||0)+1},X=A(function(e,t){t.__esModule=!0;a(n);var r=a(G),o=a(Q),i=a(I);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=1073741823;t.default=function(e,t){var a,f,p="__create-react-context-"+(0,o.default)()+"__",d=function(e){function n(){var t,r,o,i;u(this,n);for(var a=arguments.length,c=Array(a),l=0;l<a;l++)c[l]=arguments[l];return t=r=s(this,e.call.apply(e,[this].concat(c))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter(function(t){return t!==e})},get:function(){return o},set:function(e,t){o=e,i.forEach(function(e){return e(o,t)})}}),s(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((a=n)===(u=r)?0!==a||1/a==1/u:a!=a&&u!=u)?o=0:(o="function"==typeof t?t(n,r):l,"production"!==process.env.NODE_ENV&&(0,i.default)((o&l)===o,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",o),0!=(o|=0)&&this.emitter.set(e.value,o))}var a,u},n.prototype.render=function(){return this.props.children},n}(n.Component);d.childContextTypes=((a={})[p]=r.default.object.isRequired,a);var h=function(t){function n(){var e,r;u(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=s(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},s(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(n.Component);return h.contextTypes=((f={})[p]=r.default.object,f),{Provider:d,Consumer:h}},e.exports=t.default});x(X);var Z,ee=(Z=x(A(function(e,t){t.__esModule=!0;var r=i(n),o=i(X);function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default}))({})).Provider,te=Z.Consumer;function ne(e){var n=function(n){return t.createElement(te,null,function(r){return t.createElement(e,i({},n,{formik:r}))})};return n.WrappedComponent=e,E(n,e)}var re=A(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",c="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object RegExp]",h="[object Set]",v="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]",x=/\w*$/,A=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,V={};V[i]=V["[object Array]"]=V[m]=V[g]=V[a]=V[u]=V[b]=V[_]=V[O]=V[j]=V[F]=V[l]=V[f]=V[p]=V[d]=V[h]=V[v]=V[y]=V[w]=V[S]=V[k]=V[E]=!0,V["[object Error]"]=V[s]=V["[object WeakMap]"]=!1;var T="object"==typeof P&&P&&P.Object===Object&&P,R="object"==typeof self&&self&&self.Object===Object&&self,N=T||R||Function("return this")(),M=t&&!t.nodeType&&t,I=M&&e&&!e.nodeType&&e,D=I&&I.exports===M;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function W(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function L(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var z,H=Array.prototype,J=Function.prototype,G=Object.prototype,K=N["__core-js_shared__"],Q=(z=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",X=J.toString,Z=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=D?N.Buffer:void 0,re=N.Symbol,oe=N.Uint8Array,ie=L(Object.getPrototypeOf,Object),ae=Object.create,ue=G.propertyIsEnumerable,se=H.splice,ce=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=L(Object.keys,Object),pe=Ie(N,"DataView"),de=Ie(N,"Map"),he=Ie(N,"Promise"),ve=Ie(N,"Set"),ye=Ie(N,"WeakMap"),me=Ie(Object,"create"),ge=We(pe),be=We(de),_e=We(he),Oe=We(ve),je=We(ye),Fe=re?re.prototype:void 0,we=Fe?Fe.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){this.__data__=new ke(e)}function xe(e,t){var n=Le(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Z.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Z.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}function Ae(e,t,n){var r=e[t];Z.call(e,t)&&Ye(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ce(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}function Ve(e,t,n,r,o,P,A){var C;if(r&&(C=P?r(e,o,P,A):r(e)),void 0!==C)return C;if(!Je(e))return e;var T=Le(e);if(T){if(C=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Z.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,C)}else{var R=Be(e),N=R==s||R==c;if(ze(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(R==p||R==i||N&&!P){if(W(e))return P?e:{};if(C=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=ie(e),Je(t)?ae(t):{});var t}(N?{}:e),!t)return function(e,t){return Ne(e,De(e),t)}(e,function(e,t){return e&&Ne(t,Ge(t),e)}(C,e))}else{if(!V[R])return P?e:{};C=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Re(e);case a:case u:return new o(+e);case g:return function(e,t){var n=t?Re(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case b:case _:case O:case j:case F:case w:case S:case k:case E:return function(e,t){var n=t?Re(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(Y(e),!0):Y(e),B,new e.constructor)}(e,r,n);case f:case v:return new o(e);case d:return(s=new(i=e).constructor(i.source,x.exec(i))).lastIndex=i.lastIndex,s;case h:return function(e,t,n){return $(t?n(q(e),!0):q(e),U,new e.constructor)}(e,r,n);case y:return we?Object(we.call(e)):{}}var i,s}(e,R,Ve,t)}}A||(A=new Pe);var M=A.get(e);if(M)return M;if(A.set(e,C),!T)var I=n?function(e){return function(e,t,n){var r=t(e);return Le(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,De)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(I||e,function(o,i){I&&(o=e[i=o]),Ae(C,i,Ve(o,t,n,r,i,e,A))}),C}function Te(e){return!(!Je(e)||Q&&Q in e)&&(He(e)||W(e)?te:A).test(We(e))}function Re(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===u?e[a]:u)}return n}function Me(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}Se.prototype.clear=function(){this.__data__=me?me(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Z.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?r:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},ke.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Ce(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Se,map:new(de||ke),string:new Se}},Ee.prototype.delete=function(e){return Me(this,e).delete(e)},Ee.prototype.get=function(e){return Me(this,e).get(e)},Ee.prototype.has=function(e){return Me(this,e).has(e)},Ee.prototype.set=function(e,t){return Me(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new ke},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var o=r.__data__;if(!de||o.length<n-1)return o.push([e,t]),this;r=this.__data__=new Ee(o)}return r.set(e,t),this};var De=ce?L(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ue(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ye(e,t){return e===t||e!=e&&t!=t}(pe&&Be(new pe(new ArrayBuffer(1)))!=g||de&&Be(new de)!=l||he&&"[object Promise]"!=Be(he.resolve())||ve&&Be(new ve)!=h||ye&&"[object WeakMap]"!=Be(new ye))&&(Be=function(e){var t=ee.call(e),n=t==p?e.constructor:void 0,r=n?We(n):void 0;if(r)switch(r){case ge:return g;case be:return l;case _e:return"[object Promise]";case Oe:return h;case je:return"[object WeakMap]"}return t});var Le=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!He(e)}var ze=le||function(){return!1};function He(e){var t=Je(e)?ee.call(e):"";return t==s||t==c}function Je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return qe(e)?xe(e):function(e){if(!$e(e))return fe(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ve(e,!0,!0)}}),oe="Expected a function",ie="__lodash_hash_undefined__",ae=1/0,ue="[object Function]",se="[object GeneratorFunction]",ce="[object Symbol]",le=/^\./,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pe=/\\(\\)?/g,de=/^\[object .+?Constructor\]$/,he="object"==typeof P&&P&&P.Object===Object&&P,ve="object"==typeof self&&self&&self.Object===Object&&self,ye=he||ve||Function("return this")();var me,ge=Array.prototype,be=Function.prototype,_e=Object.prototype,Oe=ye["__core-js_shared__"],je=(me=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+me:"",Fe=be.toString,we=_e.hasOwnProperty,Se=_e.toString,ke=RegExp("^"+Fe.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=ye.Symbol,Pe=ge.splice,xe=Be(ye,"Map"),Ae=Be(Object,"create"),Ce=Ee?Ee.prototype:void 0,Ve=Ce?Ce.toString:void 0;function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Me(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function Ie(e){return!(!Le(e)||je&&je in e)&&(function(e){var t=Le(e)?Se.call(e):"";return t==ue||t==se}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?ke:de).test(function(e){if(null!=e){try{return Fe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Te.prototype.clear=function(){this.__data__=Ae?Ae(null):{}},Te.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Te.prototype.get=function(e){var t=this.__data__;if(Ae){var n=t[e];return n===ie?void 0:n}return we.call(t,e)?t[e]:void 0},Te.prototype.has=function(e){var t=this.__data__;return Ae?void 0!==t[e]:we.call(t,e)},Te.prototype.set=function(e,t){return this.__data__[e]=Ae&&void 0===t?ie:t,this},Re.prototype.clear=function(){this.__data__=[]},Re.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0||(n==t.length-1?t.pop():Pe.call(t,n,1),0))},Re.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},Re.prototype.has=function(e){return Me(this.__data__,e)>-1},Re.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ne.prototype.clear=function(){this.__data__={hash:new Te,map:new(xe||Re),string:new Te}},Ne.prototype.delete=function(e){return De(this,e).delete(e)},Ne.prototype.get=function(e){return De(this,e).get(e)},Ne.prototype.has=function(e){return De(this,e).has(e)},Ne.prototype.set=function(e,t){return De(this,e).set(e,t),this};var Ue=We(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(qe(e))return Ve?Ve.call(e):"";var t=e+"";return"0"==t&&1/e==-ae?"-0":t}(t);var n=[];return le.test(e)&&n.push(""),e.replace(fe,function(e,t,r,o){n.push(r?o.replace(pe,"$1"):t||e)}),n});function $e(e){if("string"==typeof e||qe(e))return e;var t=e+"";return"0"==t&&1/e==-ae?"-0":t}function We(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(oe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(We.Cache||Ne),n}We.Cache=Ne;var Ye=Array.isArray;function Le(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&Se.call(e)==ce}var ze=function(e){return Ye(e)?function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,$e):qe(e)?[e]:function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(Ue(e))};function He(e,t,n,r){void 0===r&&(r=0);for(var o=ze(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function Je(e,t,n){for(var r={},o=r,a=0,u=ze(t);a<u.length-1;a++){var s=u[a],c=He(e,u.slice(0,a+1));if(o[s])o=o[s];else if(c)o=o[s]=re(c);else{var l=u[a+1];o=o[s]=Xe(l)&&Number(l)>=0?[]:{}}}void 0===n?delete o[u[a]]:o[u[a]]=n;var f=i({},e,r);return 0===a&&void 0===n&&delete f[u[a]],f}function Ge(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],u=e[a];Qe(u)?n.get(u)||(n.set(u,!0),r[a]=Array.isArray(u)?[]:{},Ge(u,t,n,r[a])):r[a]=t}return r}var Ke=function(e){return"function"==typeof e},Qe=function(e){return null!==e&&"object"==typeof e},Xe=function(e){return String(Math.floor(Number(e)))===e},Ze=function(e){return"[object String]"===Object.prototype.toString.call(e)},et=function(e){return e!=e},tt=function(e){return 0===t.Children.count(e)},nt=function(e){return Qe(e)&&Ke(e.then)};var rt=function(e){function n(t){var n=e.call(this,t)||this;return n.hcCache={},n.hbCache={},n.registerField=function(e,t){n.fields[e]=t},n.unregisterField=function(e){delete n.fields[e]},n.setErrors=function(e){n.setState({errors:e})},n.setTouched=function(e){n.setState({touched:e},function(){n.props.validateOnBlur&&n.runValidations(n.state.values)})},n.setValues=function(e){n.setState({values:e},function(){n.props.validateOnChange&&n.runValidations(e)})},n.setStatus=function(e){n.setState({status:e})},n.setError=function(e){n.setState({error:e})},n.setSubmitting=function(e){n.didMount&&n.setState({isSubmitting:e})},n.validateField=function(e){n.setState({isValidating:!0}),n.runSingleFieldLevelValidation(e,He(n.state.values,e)).then(function(t){n.didMount&&n.setState({errors:Je(n.state.errors,e,t),isValidating:!1})})},n.runSingleFieldLevelValidation=function(e,t){return new Promise(function(r){return r(n.fields[e].validate(t))}).then(function(e){return e},function(e){return e})},n.runValidationSchema=function(e){return new Promise(function(t){var r=n.props.validationSchema,o=Ke(r)?r():r;it(e,o).then(function(){t({})},function(e){t(ot(e))})})},n.runValidations=function(e){return void 0===e&&(e=n.state.values),n.setState({isValidating:!0}),Promise.all([n.runFieldLevelValidations(e),n.props.validationSchema?n.runValidationSchema(e):{},n.props.validate?n.runValidateHandler(e):{}]).then(function(e){var t=g.all([e[0],e[1],e[2]],{arrayMerge:at});return n.didMount&&n.setState({isValidating:!1,errors:t}),t})},n.handleChange=function(e){var t=function(e,t){var r,o=t,a=e;if(!Ze(e)){e.persist&&e.persist();var u=e.target,s=u.type,c=u.name,l=u.value,f=u.checked;o=t||(c||u.id),a=/number|range/.test(s)?(r=parseFloat(l),et(r)?"":r):/checkbox/.test(s)?f:l}o&&(n.setState(function(e){return i({},e,{values:Je(e.values,o,a)})}),n.props.validateOnChange&&n.runValidations(Je(n.state.values,o,a)))};if(Ze(e))return Ke(n.hcCache[e])?n.hcCache[e]:n.hcCache[e]=function(n){return t(n,e)};t(e)},n.setFieldValue=function(e,t,r){void 0===r&&(r=!0),n.didMount&&n.setState(function(n){return i({},n,{values:Je(n.values,e,t)})},function(){n.props.validateOnChange&&r&&n.runValidations(n.state.values)})},n.handleSubmit=function(e){e&&e.preventDefault&&e.preventDefault(),n.submitForm()},n.submitForm=function(){return n.setState(function(e){return{touched:Ge(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1}}),n.runValidations().then(function(e){0===Object.keys(e).length?n.executeSubmit():n.didMount&&n.setState({isSubmitting:!1})})},n.executeSubmit=function(){n.props.onSubmit(n.state.values,n.getFormikActions())},n.handleBlur=function(e){var t=function(e,t){e.persist&&e.persist();var r=e.target,o=r.name,i=t||(o||r.id);n.setState(function(e){return{touched:Je(e.touched,i,!0)}}),n.props.validateOnBlur&&n.runValidations(n.state.values)};if(Ze(e))return Ke(n.hbCache[e])?n.hbCache[e]:n.hbCache[e]=function(n){return t(n,e)};t(e)},n.setFieldTouched=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!0),n.setState(function(n){return i({},n,{touched:Je(n.touched,e,t)})},function(){n.props.validateOnBlur&&r&&n.runValidations(n.state.values)})},n.setFieldError=function(e,t){n.setState(function(n){return i({},n,{errors:Je(n.errors,e,t)})})},n.resetForm=function(e){var t=e||n.props.initialValues;n.initialValues=t,n.setState({isSubmitting:!1,isValidating:!1,errors:{},touched:{},error:void 0,status:void 0,values:t,submitCount:0})},n.handleReset=function(){if(n.props.onReset){var e=n.props.onReset(n.state.values,n.getFormikActions());nt(e)?e.then(n.resetForm):n.resetForm()}else n.resetForm()},n.setFormikState=function(e,t){return n.setState(e,t)},n.getFormikActions=function(){return{resetForm:n.resetForm,submitForm:n.submitForm,validateForm:n.runValidations,validateField:n.validateField,setError:n.setError,setErrors:n.setErrors,setFieldError:n.setFieldError,setFieldTouched:n.setFieldTouched,setFieldValue:n.setFieldValue,setStatus:n.setStatus,setSubmitting:n.setSubmitting,setTouched:n.setTouched,setValues:n.setValues,setFormikState:n.setFormikState}},n.getFormikComputedProps=function(){var e=n.props.isInitialValid,t=!l(n.initialValues,n.state.values);return{dirty:t,isValid:t?n.state.errors&&0===Object.keys(n.state.errors).length:!1!==e&&Ke(e)?e(n.props):e,initialValues:n.initialValues}},n.getFormikBag=function(){return i({},n.state,n.getFormikActions(),n.getFormikComputedProps(),{registerField:n.registerField,unregisterField:n.unregisterField,handleBlur:n.handleBlur,handleChange:n.handleChange,handleReset:n.handleReset,handleSubmit:n.handleSubmit,validateOnChange:n.props.validateOnChange,validateOnBlur:n.props.validateOnBlur})},n.getFormikContext=function(){return i({},n.getFormikBag(),{validationSchema:n.props.validationSchema,validate:n.props.validate})},n.state={values:t.initialValues||{},errors:{},touched:{},isSubmitting:!1,isValidating:!1,submitCount:0},n.didMount=!1,n.fields={},n.initialValues=t.initialValues||{},p(!(t.component&&t.render),"You should not use <Formik component> and <Formik render> in the same <Formik> component; <Formik render> will be ignored"),p(!(t.component&&t.children&&!tt(t.children)),"You should not use <Formik component> and <Formik children> in the same <Formik> component; <Formik children> will be ignored"),p(!(t.render&&t.children&&!tt(t.children)),"You should not use <Formik render> and <Formik children> in the same <Formik> component; <Formik children> will be ignored"),n}return o(n,e),n.prototype.componentDidMount=function(){this.didMount=!0},n.prototype.componentWillUnmount=function(){this.didMount=!1},n.prototype.componentDidUpdate=function(e){this.props.enableReinitialize&&!l(e.initialValues,this.props.initialValues)&&(this.initialValues=this.props.initialValues,this.resetForm(this.props.initialValues))},n.prototype.runFieldLevelValidations=function(e){var t=this,n=Object.keys(this.fields).filter(function(e){return t.fields&&t.fields[e]&&t.fields[e].validate&&Ke(t.fields[e].validate)}),r=n.length>0?n.map(function(n){return t.runSingleFieldLevelValidation(n,He(e,n))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,t,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===t?e:(t&&(e=Je(e,n[r],t)),e)},{})})},n.prototype.runValidateHandler=function(e){var t=this;return new Promise(function(n){var r=t.props.validate(e);void 0===r?n({}):nt(r)?r.then(function(){n({})},function(e){n(e)}):n(r)})},n.prototype.render=function(){var e=this.props,n=e.component,r=e.render,o=e.children,i=this.getFormikBag(),a=this.getFormikContext();return t.createElement(ee,{value:a},n?t.createElement(n,i):r?r(i):o?"function"==typeof o?o(i):tt(o)?null:t.Children.only(o):null)},n.defaultProps={validateOnChange:!0,validateOnBlur:!0,isInitialValid:!1,enableReinitialize:!1},n}(t.Component);function ot(e){for(var t={},n=0,r=e.inner;n<r.length;n++){var o=r[n];t[o.path]||(t=Je(t,o.path,o.message))}return t}function it(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r={});var o={};for(var i in e)if(e.hasOwnProperty(i)){var a=String(i);o[a]=""!==e[a]?e[a]:void 0}return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r})}function at(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?g(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=g(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ut=ne(function(e){function n(t){var n=e.call(this,t)||this,r=t.render,o=t.children,i=t.component,a=t.formik;return p(!(i&&r),"You should not use <Field component> and <Field render> in the same <Field> component; <Field component> will be ignored"),p(!(i&&o&&Ke(o)),"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."),p(!(r&&o&&!tt(o)),"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"),a.registerField(t.name,{validate:t.validate}),n}return o(n,e),n.prototype.componentDidUpdate=function(e){this.props.name!==e.name&&(this.props.formik.unregisterField(e.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},n.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.prototype.render=function(){var e=this.props,n=e.name,r=e.render,o=e.children,u=e.component,s=void 0===u?"input":u,c=e.formik,l=a(e,["validate","name","render","children","component","formik"]),f=a(c,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:He(c.values,n),name:n,onChange:c.handleChange,onBlur:c.handleBlur},d={field:p,form:f};if(r)return r(d);if(Ke(o))return o(d);if("string"==typeof s){var h=l.innerRef,v=a(l,["innerRef"]);return t.createElement(s,i({ref:h},p,v,{children:o}))}return t.createElement(s,i({},d,l,{children:o}))},n}(t.Component)),st=ne(function(e){var n=e.formik.handleSubmit,r=a(e,["formik"]);return t.createElement("form",i({onSubmit:n},r))});st.displayName="Form";var ct=function(e,t,n){var r=(e||[]).slice(),o=r[t];return r.splice(t,1),r.splice(n,0,o),r},lt=function(e,t,n){var r=(e||[]).slice(),o=r[t];return r[t]=r[n],r[n]=o,r},ft=function(e,t,n){var r=(e||[]).slice();return r.splice(t,0,n),r},pt=function(e,t,n){var r=(e||[]).slice();return r[t]=n,r},dt=ne(function(e){function n(t){var n=e.call(this,t)||this;return n.updateArrayField=function(e,t,r){var o=n.props,a=o.name,u=o.validateOnChange,s=o.formik,c=s.validateForm,l=s.values,f=s.touched,p=s.errors;(0,s.setFormikState)(function(n){return i({},n,{values:Je(n.values,a,e(He(l,a))),errors:r?Je(n.errors,a,e(He(p,a))):n.errors,touched:t?Je(n.touched,a,e(He(f,a))):n.touched})},function(){u&&c()})},n.push=function(e){return n.updateArrayField(function(t){return(t||[]).concat([re(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return lt(n,e,t)},!1,!1)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return ct(n,e,t)},!1,!1)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return ft(n,e,t)},!1,!1)},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return pt(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=[];return n.updateArrayField(function(n){return t=n?[e].concat(n):[e]},!1,!1),t.length},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(n),n.pop=n.pop.bind(n),n}return o(n,e),n.prototype.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?n.slice():[];return t||(t=r[e]),Ke(r.splice)&&r.splice(e,1),r},!0,!0),t},n.prototype.pop=function(){var e;return this.updateArrayField(function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.prototype.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,r=n.component,o=n.render,u=n.children,s=n.name,c=n.formik,l=a(c,["validate","validationSchema"]),f=i({},e,{form:l,name:s});return r?t.createElement(r,f):o?o(f):u?"function"==typeof u?u(f):tt(u)?null:t.Children.only(u):null},n.defaultProps={validateOnChange:!0},n}(t.Component)),ht=ne(function(e){function n(t){var n=e.call(this,t)||this,r=t.render,o=t.children,i=t.component;return p(!(i&&r),"You should not use <FastField component> and <FastField render> in the same <FastField> component; <FastField component> will be ignored"),p(!(i&&o&&Ke(o)),"You should not use <FastField component> and <FastField children> as a function in the same <FastField> component; <FastField component> will be ignored."),p(!(r&&o&&!tt(o)),"You should not use <FastField render> and <FastField children> in the same <FastField> component; <FastField children> will be ignored"),n}return o(n,e),n.prototype.shouldComponentUpdate=function(e){return this.props.shouldUpdate?this.props.shouldUpdate(e):He(this.props.formik.values,this.props.name)!==He(e.formik.values,this.props.name)||He(this.props.formik.errors,this.props.name)!==He(e.formik.errors,this.props.name)||He(this.props.formik.touched,this.props.name)!==He(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.prototype.componentDidMount=function(){this.props.formik.registerField(this.props.name,{validate:this.props.validate})},n.prototype.componentDidUpdate=function(e){this.props.name!==e.name&&(this.props.formik.unregisterField(e.name),this.props.formik.registerField(this.props.name,{validate:this.props.validate})),this.props.validate!==e.validate&&this.props.formik.registerField(this.props.name,{validate:this.props.validate})},n.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.prototype.render=function(){var e=this.props,n=e.name,r=e.render,o=e.children,u=e.component,s=void 0===u?"input":u,c=e.formik,l=a(e,["validate","name","render","children","component","formik"]),f=a(c,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:He(c.values,n),name:n,onChange:c.handleChange,onBlur:c.handleBlur},d={field:p,form:f};if(r)return r(d);if(Ke(o))return o(d);if("string"==typeof s){var h=l.innerRef,v=a(l,["innerRef"]);return t.createElement(s,i({ref:h},p,v,{children:o}))}return t.createElement(s,i({},d,l,{children:o}))},n}(t.Component)),vt=ne(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.shouldComponentUpdate=function(e){return He(this.props.formik.errors,this.props.name)!==He(e.formik.errors,this.props.name)||He(this.props.formik.touched,this.props.name)!==He(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.prototype.render=function(){var e=this.props,n=e.component,r=e.formik,o=e.render,i=e.children,u=e.name,s=a(e,["component","formik","render","children","name"]),c=He(r.touched,u),l=He(r.errors,u);return c&&l?o?Ke(o)?o(l):null:i?Ke(i)?i(l):null:n?t.createElement(n,s,l):l:null},n}(t.Component));e.Formik=rt,e.yupToFormErrors=ot,e.validateYupSchema=it,e.Field=ut,e.Form=st,e.withFormik=function(e){var n=e.mapPropsToValues,r=void 0===n?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!=typeof e[n]&&(t[n]=e[n]);return t}:n,u=a(e,["mapPropsToValues"]);return function(e){var n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",a=function(a){function s(){var n=null!==a&&a.apply(this,arguments)||this;return n.validate=function(e){return u.validate(e,n.props)},n.validationSchema=function(){return Ke(u.validationSchema)?u.validationSchema(n.props):u.validationSchema},n.handleSubmit=function(e,t){return u.handleSubmit(e,i({},t,{props:n.props}))},n.renderFormComponent=function(r){return t.createElement(e,i({},n.props,r))},n}return o(s,a),s.prototype.render=function(){return t.createElement(rt,i({},this.props,u,{validate:u.validate&&this.validate,validationSchema:u.validationSchema&&this.validationSchema,initialValues:r(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},s.displayName="WithFormik("+n+")",s}(t.Component);return E(a,e)}},e.move=ct,e.swap=lt,e.insert=ft,e.replace=pt,e.FieldArray=dt,e.getIn=He,e.setIn=Je,e.setNestedObjectValues=Ge,e.isFunction=Ke,e.isObject=Qe,e.isInteger=Xe,e.isString=Ze,e.isNaN=et,e.isEmptyChildren=tt,e.isPromise=nt,e.getActiveElement=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},e.FastField=ht,e.FormikProvider=ee,e.FormikConsumer=te,e.connect=ne,e.ErrorMessage=vt,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.Formik={},e.React)}(this,function(e,t){"use strict";var n="default"in t?t.default:t,r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}var u=Array.isArray,c=Object.keys,s=Object.prototype.hasOwnProperty;var l=function(e,t){try{return function e(t,n){if(t===n)return!0;var r,o,i,a=u(t),l=u(n);if(a&&l){if((o=t.length)!=n.length)return!1;for(r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}if(a!=l)return!1;var f=t instanceof Date,p=n instanceof Date;if(f!=p)return!1;if(f&&p)return t.getTime()==n.getTime();var d=t instanceof RegExp,h=n instanceof RegExp;if(d!=h)return!1;if(d&&h)return t.toString()==n.toString();if(t instanceof Object&&n instanceof Object){var v=c(t);if((o=v.length)!==c(n).length)return!1;for(r=0;r<o;r++)if(!s.call(n,v[r]))return!1;for(r=0;r<o;r++)if(!("_owner"===(i=v[r])&&t.$$typeof&&t._store||e(t[i],n[i])))return!1;return!0}return!1}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},f=function(){};"production"!==process.env.NODE_ENV&&(f=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}});var p=f,d=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===h}(e)}(e)};var h="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function v(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m(Array.isArray(e)?[]:{},e,t):e}function y(e,t,n){return e.concat(t).map(function(e){return v(e,n)})}function m(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||y,n.isMergeableObject=n.isMergeableObject||d;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=v(e[t],n)}),Object.keys(t).forEach(function(o){r[o]=n.isMergeableObject(t[o])&&e[o]?m(e[o],t[o],n):v(t[o],n)}),r}(e,t,n):v(t,n)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return m(e,n,t)},{})};var b=m,g={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},O=Object.defineProperty,j=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols,w=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,k=S&&S(Object);var E=function e(t,n,r){if("string"!=typeof n){if(k){var o=S(n);o&&o!==k&&e(t,o,r)}var i=j(n);F&&(i=i.concat(F(n)));for(var a=0;a<i.length;++a){var u=i[a];if(!(g[u]||_[u]||r&&r[u])){var c=w(n,u);try{O(t,u,c)}catch(e){}}}return t}return t},P="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A(e,t){return e(t={exports:{}},t.exports),t.exports}var V=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var R=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,r,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))C.call(n,a)&&(o[a]=n[a]);if(V){r=V(n);for(var u=0;u<r.length;u++)T.call(n,r[u])&&(o[r[u]]=n[r[u]])}}return o},N="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",I=function(){};if("production"!==process.env.NODE_ENV){var M=N,D={};I=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}var B=function(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(e.hasOwnProperty(i)){var a;try{if("function"!=typeof e[i]){var u=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw u.name="Invariant Violation",u}a=e[i](t,i,r,n,null,M)}catch(e){a=e}if(!a||a instanceof Error||I((r||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in D)){D[a.message]=!0;var c=o?o():"";I("Failed "+n+" type: "+a.message+(null!=c?c:""))}}},U=function(){};function $(){return null}"production"!==process.env.NODE_ENV&&(U=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var W=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";var o="<<anonymous>>",i={array:s("array"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),symbol:s("symbol"),any:c($),arrayOf:function(e){return c(function(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var c=f(a);return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an array.")}for(var s=0;s<a.length;s++){var l=e(a,s,r,o,i+"["+s+"]",N);if(l instanceof Error)return l}return null})},element:function(){return c(function(t,n,r,o,i){var a=t[n];if(!e(a)){var c=f(a);return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(e){return c(function(t,n,r,i,a){if(!(t[n]instanceof e)){var c=e.name||o,s=function(e){if(!e.constructor||!e.constructor.name)return o;return e.constructor.name}(t[n]);return new u("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected instance of `"+c+"`.")}return null})},node:function(){return c(function(e,t,n,r,o){if(!l(e[t]))return new u("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.");return null})}(),objectOf:function(e){return c(function(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=f(a);if("object"!==c)return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in a)if(a.hasOwnProperty(s)){var l=e(a,s,r,o,i+"."+s,N);if(l instanceof Error)return l}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&U("Invalid argument supplied to oneOf, expected an instance of array."),$;return c(function(t,n,r,o,i){for(var c=t[n],s=0;s<e.length;s++)if(a(c,e[s]))return null;var l=JSON.stringify(e);return new u("Invalid "+o+" `"+i+"` of value `"+c+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&U("Invalid argument supplied to oneOfType, expected an instance of array."),$;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return U("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+d(n)+" at index "+t+"."),$}return c(function(t,n,r,o,i){for(var a=0;a<e.length;a++){var c=e[a];if(null==c(t,n,r,o,i,N))return null}return new u("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")})},shape:function(e){return c(function(t,n,r,o,i){var a=t[n],c=f(a);if("object"!==c)return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in e){var l=e[s];if(l){var p=l(a,s,r,o,i+"."+s,N);if(p)return p}}return null})},exact:function(e){return c(function(t,n,r,o,i){var a=t[n],c=f(a);if("object"!==c)return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=R({},t[n],e);for(var l in s){var p=e[l];if(!p)return new u("Invalid "+o+" `"+i+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(a,l,r,o,i+"."+l,N);if(d)return d}return null})}};function a(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e){this.message=e,this.stack=""}function c(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function i(i,a,c,s,l,f,p){if(s=s||o,f=f||c,p!==N){if(t){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=s+":"+c;!n[h]&&r<3&&(U("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+s+"`. 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."),n[h]=!0,r++)}}return null==a[c]?i?new u(null===a[c]?"The "+l+" `"+f+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+l+" `"+f+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(a,c,s,l,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function s(e){return c(function(t,n,r,o,i,a){var c=t[n];return f(c)!==e?new u("Invalid "+o+" `"+i+"` of type `"+p(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function l(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||e(t))return!0;var o=function(e){var t=e&&(n&&e[n]||e[r]);if("function"==typeof t)return t}(t);if(!o)return!1;var i,a=o.call(t);if(o!==t.entries){for(;!(i=a.next()).done;)if(!l(i.value))return!1}else for(;!(i=a.next()).done;){var u=i.value;if(u&&!l(u[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function p(e){if(void 0===e||null===e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function d(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,i.checkPropTypes=B,i.PropTypes=i,i};function Y(){}var L=A(function(e){if("production"!==process.env.NODE_ENV){var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=W(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},!0)}else e.exports=function(){function e(e,t,n,r,o,i){if(i!==N){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=Y,n.PropTypes=n,n}()}),q="__global_unique_id__",z=function(){return P[q]=(P[q]||0)+1};function H(e){return function(){return e}}var J=function(){};J.thatReturns=H,J.thatReturnsFalse=H(!1),J.thatReturnsTrue=H(!0),J.thatReturnsNull=H(null),J.thatReturnsThis=function(){return this},J.thatReturnsArgument=function(e){return e};var G=J;if("production"!==process.env.NODE_ENV){G=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}).apply(void 0,[t].concat(r))}}}var K=G,Q=A(function(e,t){t.__esModule=!0;a(n);var r=a(L),o=a(z),i=a(K);function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=1073741823;t.default=function(e,t){var a,f,p="__create-react-context-"+(0,o.default)()+"__",d=function(e){function n(){var t,r,o,i;u(this,n);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return t=r=c(this,e.call.apply(e,[this].concat(s))),r.emitter=(o=r.props.value,i=[],{on:function(e){i.push(e)},off:function(e){i=i.filter(function(t){return t!==e})},get:function(){return o},set:function(e,t){o=e,i.forEach(function(e){return e(o,t)})}}),c(r,t)}return s(n,e),n.prototype.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,o=void 0;((a=n)===(u=r)?0!==a||1/a==1/u:a!=a&&u!=u)?o=0:(o="function"==typeof t?t(n,r):l,"production"!==process.env.NODE_ENV&&(0,i.default)((o&l)===o,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",o),0!=(o|=0)&&this.emitter.set(e.value,o))}var a,u},n.prototype.render=function(){return this.props.children},n}(n.Component);d.childContextTypes=((a={})[p]=r.default.object.isRequired,a);var h=function(t){function n(){var e,r;u(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=c(this,t.call.apply(t,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},c(r,e)}return s(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(n.Component);return h.contextTypes=((f={})[p]=r.default.object,f),{Provider:d,Consumer:h}},e.exports=t.default});x(Q);var X,Z=(X=x(A(function(e,t){t.__esModule=!0;var r=i(n),o=i(Q);function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default}))({})).Provider,ee=X.Consumer;function te(e){var n=function(n){return t.createElement(ee,null,function(r){return t.createElement(e,i({},n,{formik:r}))})};return n.WrappedComponent=e,E(n,e)}var ne=A(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",c="[object Function]",s="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",d="[object RegExp]",h="[object Set]",v="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",g="[object Float32Array]",_="[object Float64Array]",O="[object Int8Array]",j="[object Int16Array]",F="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]",x=/\w*$/,A=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[m]=C[b]=C[a]=C[u]=C[g]=C[_]=C[O]=C[j]=C[F]=C[l]=C[f]=C[p]=C[d]=C[h]=C[v]=C[y]=C[w]=C[S]=C[k]=C[E]=!0,C["[object Error]"]=C[c]=C["[object WeakMap]"]=!1;var T="object"==typeof P&&P&&P.Object===Object&&P,R="object"==typeof self&&self&&self.Object===Object&&self,N=T||R||Function("return this")(),I=t&&!t.nodeType&&t,M=I&&e&&!e.nodeType&&e,D=M&&M.exports===I;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function $(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function W(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function L(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var z,H=Array.prototype,J=Function.prototype,G=Object.prototype,K=N["__core-js_shared__"],Q=(z=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",X=J.toString,Z=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=D?N.Buffer:void 0,re=N.Symbol,oe=N.Uint8Array,ie=L(Object.getPrototypeOf,Object),ae=Object.create,ue=G.propertyIsEnumerable,ce=H.splice,se=Object.getOwnPropertySymbols,le=ne?ne.isBuffer:void 0,fe=L(Object.keys,Object),pe=Me(N,"DataView"),de=Me(N,"Map"),he=Me(N,"Promise"),ve=Me(N,"Set"),ye=Me(N,"WeakMap"),me=Me(Object,"create"),be=We(pe),ge=We(de),_e=We(he),Oe=We(ve),je=We(ye),Fe=re?re.prototype:void 0,we=Fe?Fe.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){this.__data__=new ke(e)}function xe(e,t){var n=Le(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&qe(e)}(e)&&Z.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Z.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}function Ae(e,t,n){var r=e[t];Z.call(e,t)&&Ye(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ve(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}function Ce(e,t,n,r,o,P,A){var V;if(r&&(V=P?r(e,o,P,A):r(e)),void 0!==V)return V;if(!Je(e))return e;var T=Le(e);if(T){if(V=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Z.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,V)}else{var R=Be(e),N=R==c||R==s;if(ze(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(R==p||R==i||N&&!P){if(W(e))return P?e:{};if(V=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=ie(e),Je(t)?ae(t):{});var t}(N?{}:e),!t)return function(e,t){return Ne(e,De(e),t)}(e,function(e,t){return e&&Ne(t,Ge(t),e)}(V,e))}else{if(!C[R])return P?e:{};V=function(e,t,n,r){var o=e.constructor;switch(t){case m:return Re(e);case a:case u:return new o(+e);case b:return function(e,t){var n=t?Re(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case g:case _:case O:case j:case F:case w:case S:case k:case E:return function(e,t){var n=t?Re(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return $(t?n(Y(e),!0):Y(e),B,new e.constructor)}(e,r,n);case f:case v:return new o(e);case d:return(c=new(i=e).constructor(i.source,x.exec(i))).lastIndex=i.lastIndex,c;case h:return function(e,t,n){return $(t?n(q(e),!0):q(e),U,new e.constructor)}(e,r,n);case y:return we?Object(we.call(e)):{}}var i,c}(e,R,Ce,t)}}A||(A=new Pe);var I=A.get(e);if(I)return I;if(A.set(e,V),!T)var M=n?function(e){return function(e,t,n){var r=t(e);return Le(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ge,De)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(M||e,function(o,i){M&&(o=e[i=o]),Ae(V,i,Ce(o,t,n,r,i,e,A))}),V}function Te(e){return!(!Je(e)||Q&&Q in e)&&(He(e)||W(e)?te:A).test(We(e))}function Re(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===u?e[a]:u)}return n}function Ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Me(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}Se.prototype.clear=function(){this.__data__=me?me(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Z.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?r:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=Ve(t,e);return!(n<0||(n==t.length-1?t.pop():ce.call(t,n,1),0))},ke.prototype.get=function(e){var t=this.__data__,n=Ve(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Ve(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Ve(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Se,map:new(de||ke),string:new Se}},Ee.prototype.delete=function(e){return Ie(this,e).delete(e)},Ee.prototype.get=function(e){return Ie(this,e).get(e)},Ee.prototype.has=function(e){return Ie(this,e).has(e)},Ee.prototype.set=function(e,t){return Ie(this,e).set(e,t),this},Pe.prototype.clear=function(){this.__data__=new ke},Pe.prototype.delete=function(e){return this.__data__.delete(e)},Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var o=r.__data__;if(!de||o.length<n-1)return o.push([e,t]),this;r=this.__data__=new Ee(o)}return r.set(e,t),this};var De=se?L(se,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ue(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||V.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ye(e,t){return e===t||e!=e&&t!=t}(pe&&Be(new pe(new ArrayBuffer(1)))!=b||de&&Be(new de)!=l||he&&"[object Promise]"!=Be(he.resolve())||ve&&Be(new ve)!=h||ye&&"[object WeakMap]"!=Be(new ye))&&(Be=function(e){var t=ee.call(e),n=t==p?e.constructor:void 0,r=n?We(n):void 0;if(r)switch(r){case be:return b;case ge:return l;case _e:return"[object Promise]";case Oe:return h;case je:return"[object WeakMap]"}return t});var Le=Array.isArray;function qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!He(e)}var ze=le||function(){return!1};function He(e){var t=Je(e)?ee.call(e):"";return t==c||t==s}function Je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return qe(e)?xe(e):function(e){if(!$e(e))return fe(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ce(e,!0,!0)}}),re="Expected a function",oe="__lodash_hash_undefined__",ie=1/0,ae="[object Function]",ue="[object GeneratorFunction]",ce="[object Symbol]",se=/^\./,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fe=/\\(\\)?/g,pe=/^\[object .+?Constructor\]$/,de="object"==typeof P&&P&&P.Object===Object&&P,he="object"==typeof self&&self&&self.Object===Object&&self,ve=de||he||Function("return this")();var ye,me=Array.prototype,be=Function.prototype,ge=Object.prototype,_e=ve["__core-js_shared__"],Oe=(ye=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"",je=be.toString,Fe=ge.hasOwnProperty,we=ge.toString,Se=RegExp("^"+je.call(Fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=ve.Symbol,Ee=me.splice,Pe=De(ve,"Map"),xe=De(Object,"create"),Ae=ke?ke.prototype:void 0,Ve=Ae?Ae.toString:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ne(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function Ie(e){return!(!Ye(e)||Oe&&Oe in e)&&(function(e){var t=Ye(e)?we.call(e):"";return t==ae||t==ue}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Se:pe).test(function(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Me(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=xe?xe(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(xe){var n=t[e];return n===oe?void 0:n}return Fe.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return xe?void 0!==t[e]:Fe.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=xe&&void 0===t?oe:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0||(n==t.length-1?t.pop():Ee.call(t,n,1),0))},Te.prototype.get=function(e){var t=this.__data__,n=Ne(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Ne(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Re.prototype.clear=function(){this.__data__={hash:new Ce,map:new(Pe||Te),string:new Ce}},Re.prototype.delete=function(e){return Me(this,e).delete(e)},Re.prototype.get=function(e){return Me(this,e).get(e)},Re.prototype.has=function(e){return Me(this,e).has(e)},Re.prototype.set=function(e,t){return Me(this,e).set(e,t),this};var Be=$e(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Le(e))return Ve?Ve.call(e):"";var t=e+"";return"0"==t&&1/e==-ie?"-0":t}(t);var n=[];return se.test(e)&&n.push(""),e.replace(le,function(e,t,r,o){n.push(r?o.replace(fe,"$1"):t||e)}),n});function Ue(e){if("string"==typeof e||Le(e))return e;var t=e+"";return"0"==t&&1/e==-ie?"-0":t}function $e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(re);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new($e.Cache||Re),n}$e.Cache=Re;var We=Array.isArray;function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Le(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&we.call(e)==ce}var qe=function(e){return We(e)?function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,Ue):Le(e)?[e]:function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(Be(e))};function ze(e,t,n,r){void 0===r&&(r=0);for(var o=qe(t);e&&r<o.length;)e=e[o[r++]];return void 0===e?n:e}function He(e,t,n){for(var r={},o=r,a=0,u=qe(t);a<u.length-1;a++){var c=u[a],s=ze(e,u.slice(0,a+1));if(o[c])o=o[c];else if(s)o=o[c]=ne(s);else{var l=u[a+1];o=o[c]=Qe(l)&&Number(l)>=0?[]:{}}}void 0===n?delete o[u[a]]:o[u[a]]=n;var f=i({},e,r);return 0===a&&void 0===n&&delete f[u[a]],f}function Je(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],u=e[a];Ke(u)?n.get(u)||(n.set(u,!0),r[a]=Array.isArray(u)?[]:{},Je(u,t,n,r[a])):r[a]=t}return r}var Ge=function(e){return"function"==typeof e},Ke=function(e){return null!==e&&"object"==typeof e},Qe=function(e){return String(Math.floor(Number(e)))===e},Xe=function(e){return"[object String]"===Object.prototype.toString.call(e)},Ze=function(e){return e!=e},et=function(e){return 0===t.Children.count(e)},tt=function(e){return Ke(e)&&Ge(e.then)};var nt=function(e){function n(t){var n=e.call(this,t)||this;return n.hcCache={},n.hbCache={},n.registerField=function(e,t){n.fields[e]=t},n.unregisterField=function(e){delete n.fields[e]},n.setErrors=function(e){n.setState({errors:e})},n.setTouched=function(e){n.setState({touched:e},function(){n.props.validateOnBlur&&n.runValidations(n.state.values)})},n.setValues=function(e){n.setState({values:e},function(){n.props.validateOnChange&&n.runValidations(e)})},n.setStatus=function(e){n.setState({status:e})},n.setError=function(e){n.setState({error:e})},n.setSubmitting=function(e){n.didMount&&n.setState({isSubmitting:e})},n.validateField=function(e){n.setState({isValidating:!0}),n.runSingleFieldLevelValidation(e,ze(n.state.values,e)).then(function(t){n.didMount&&n.setState({errors:He(n.state.errors,e,t),isValidating:!1})})},n.runSingleFieldLevelValidation=function(e,t){return new Promise(function(r){return r(n.fields[e].props.validate(t))}).then(function(e){return e},function(e){return e})},n.runValidationSchema=function(e){return new Promise(function(t){var r=n.props.validationSchema,o=Ge(r)?r():r;ot(e,o).then(function(){t({})},function(e){t(rt(e))})})},n.runValidations=function(e){return void 0===e&&(e=n.state.values),n.setState({isValidating:!0}),Promise.all([n.runFieldLevelValidations(e),n.props.validationSchema?n.runValidationSchema(e):{},n.props.validate?n.runValidateHandler(e):{}]).then(function(e){var t=b.all([e[0],e[1],e[2]],{arrayMerge:it});return n.didMount&&n.setState({isValidating:!1,errors:t}),t})},n.handleChange=function(e){var t=function(e,t){var r,o=t,a=e;if(!Xe(e)){e.persist&&e.persist();var u=e.target,c=u.type,s=u.name,l=u.value,f=u.checked;o=t||(s||u.id),a=/number|range/.test(c)?(r=parseFloat(l),Ze(r)?"":r):/checkbox/.test(c)?f:l}o&&n.setState(function(e){return i({},e,{values:He(e.values,o,a)})},function(){n.props.validateOnChange&&n.runValidations(He(n.state.values,o,a))})};if(Xe(e))return Ge(n.hcCache[e])?n.hcCache[e]:n.hcCache[e]=function(n){return t(n,e)};t(e)},n.setFieldValue=function(e,t,r){void 0===r&&(r=!0),n.didMount&&n.setState(function(n){return i({},n,{values:He(n.values,e,t)})},function(){n.props.validateOnChange&&r&&n.runValidations(n.state.values)})},n.handleSubmit=function(e){e&&e.preventDefault&&e.preventDefault(),n.submitForm()},n.submitForm=function(){return n.setState(function(e){return{touched:Je(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1}}),n.runValidations().then(function(e){0===Object.keys(e).length?n.executeSubmit():n.didMount&&n.setState({isSubmitting:!1})})},n.executeSubmit=function(){n.props.onSubmit(n.state.values,n.getFormikActions())},n.handleBlur=function(e){var t=function(e,t){e.persist&&e.persist();var r=e.target,o=r.name,i=t||(o||r.id);n.setState(function(e){return{touched:He(e.touched,i,!0)}}),n.props.validateOnBlur&&n.runValidations(n.state.values)};if(Xe(e))return Ge(n.hbCache[e])?n.hbCache[e]:n.hbCache[e]=function(n){return t(n,e)};t(e)},n.setFieldTouched=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!0),n.setState(function(n){return i({},n,{touched:He(n.touched,e,t)})},function(){n.props.validateOnBlur&&r&&n.runValidations(n.state.values)})},n.setFieldError=function(e,t){n.setState(function(n){return i({},n,{errors:He(n.errors,e,t)})})},n.resetForm=function(e){var t=e||n.props.initialValues;n.initialValues=t,n.setState({isSubmitting:!1,isValidating:!1,errors:{},touched:{},error:void 0,status:void 0,values:t,submitCount:0})},n.handleReset=function(){if(n.props.onReset){var e=n.props.onReset(n.state.values,n.getFormikActions());tt(e)?e.then(n.resetForm):n.resetForm()}else n.resetForm()},n.setFormikState=function(e,t){return n.setState(e,t)},n.getFormikActions=function(){return{resetForm:n.resetForm,submitForm:n.submitForm,validateForm:n.runValidations,validateField:n.validateField,setError:n.setError,setErrors:n.setErrors,setFieldError:n.setFieldError,setFieldTouched:n.setFieldTouched,setFieldValue:n.setFieldValue,setStatus:n.setStatus,setSubmitting:n.setSubmitting,setTouched:n.setTouched,setValues:n.setValues,setFormikState:n.setFormikState}},n.getFormikComputedProps=function(){var e=n.props.isInitialValid,t=!l(n.initialValues,n.state.values);return{dirty:t,isValid:t?n.state.errors&&0===Object.keys(n.state.errors).length:!1!==e&&Ge(e)?e(n.props):e,initialValues:n.initialValues}},n.getFormikBag=function(){return i({},n.state,n.getFormikActions(),n.getFormikComputedProps(),{registerField:n.registerField,unregisterField:n.unregisterField,handleBlur:n.handleBlur,handleChange:n.handleChange,handleReset:n.handleReset,handleSubmit:n.handleSubmit,validateOnChange:n.props.validateOnChange,validateOnBlur:n.props.validateOnBlur})},n.getFormikContext=function(){return i({},n.getFormikBag(),{validationSchema:n.props.validationSchema,validate:n.props.validate,initialValues:n.initialValues})},n.state={values:t.initialValues||{},errors:{},touched:{},isSubmitting:!1,isValidating:!1,submitCount:0},n.didMount=!1,n.fields={},n.initialValues=t.initialValues||{},p(!(t.component&&t.render),"You should not use <Formik component> and <Formik render> in the same <Formik> component; <Formik render> will be ignored"),p(!(t.component&&t.children&&!et(t.children)),"You should not use <Formik component> and <Formik children> in the same <Formik> component; <Formik children> will be ignored"),p(!(t.render&&t.children&&!et(t.children)),"You should not use <Formik render> and <Formik children> in the same <Formik> component; <Formik children> will be ignored"),n}return o(n,e),n.prototype.componentDidMount=function(){this.didMount=!0},n.prototype.componentWillUnmount=function(){this.didMount=!1},n.prototype.componentDidUpdate=function(e){this.props.enableReinitialize&&!l(e.initialValues,this.props.initialValues)&&(this.initialValues=this.props.initialValues,this.resetForm(this.props.initialValues))},n.prototype.runFieldLevelValidations=function(e){var t=this,n=Object.keys(this.fields).filter(function(e){return t.fields&&t.fields[e]&&t.fields[e].props.validate&&Ge(t.fields[e].props.validate)}),r=n.length>0?n.map(function(n){return t.runSingleFieldLevelValidation(n,ze(e,n))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,t,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===t?e:(t&&(e=He(e,n[r],t)),e)},{})})},n.prototype.runValidateHandler=function(e){var t=this;return new Promise(function(n){var r=t.props.validate(e);void 0===r?n({}):tt(r)?r.then(function(){n({})},function(e){n(e)}):n(r)})},n.prototype.render=function(){var e=this.props,n=e.component,r=e.render,o=e.children,i=this.getFormikBag(),a=this.getFormikContext();return t.createElement(Z,{value:a},n?t.createElement(n,i):r?r(i):o?Ge(o)?o(i):et(o)?null:t.Children.only(o):null)},n.defaultProps={validateOnChange:!0,validateOnBlur:!0,isInitialValid:!1,enableReinitialize:!1},n}(t.Component);function rt(e){var t={};if(0===e.inner.length)return He(t,e.path,e.message);for(var n=0,r=e.inner;n<r.length;n++){var o=r[n];t[o.path]||(t=He(t,o.path,o.message))}return t}function ot(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r={});var o={};for(var i in e)if(e.hasOwnProperty(i)){var a=String(i);o[a]=""!==e[a]?e[a]:void 0}return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:r})}function it(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(void 0===r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?b(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=b(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var at=te(function(e){function n(t){var n=e.call(this,t)||this,r=t.render,o=t.children,i=t.component;return p(!(i&&r),"You should not use <Field component> and <Field render> in the same <Field> component; <Field component> will be ignored"),p(!(i&&o&&Ge(o)),"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."),p(!(r&&o&&!et(o)),"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"),n}return o(n,e),n.prototype.componentDidMount=function(){this.props.formik.registerField(this.props.name,this)},n.prototype.componentDidUpdate=function(e){this.props.name!==e.name&&(this.props.formik.unregisterField(e.name),this.props.formik.registerField(this.props.name,this)),this.props.validate!==e.validate&&this.props.formik.registerField(this.props.name,this)},n.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.prototype.render=function(){var e=this.props,n=e.name,r=e.render,o=e.children,u=e.component,c=void 0===u?"input":u,s=e.formik,l=a(e,["validate","name","render","children","component","formik"]),f=a(s,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:ze(s.values,n),name:n,onChange:s.handleChange,onBlur:s.handleBlur},d={field:p,form:f};if(r)return r(d);if(Ge(o))return o(d);if("string"==typeof c){var h=l.innerRef,v=a(l,["innerRef"]);return t.createElement(c,i({ref:h},p,v,{children:o}))}return t.createElement(c,i({},d,l,{children:o}))},n}(t.Component)),ut=te(function(e){var n=e.formik.handleSubmit,r=a(e,["formik"]);return t.createElement("form",i({onSubmit:n},r))});ut.displayName="Form";var ct=function(e,t,n){var r=(e||[]).slice(),o=r[t];return r.splice(t,1),r.splice(n,0,o),r},st=function(e,t,n){var r=(e||[]).slice(),o=r[t];return r[t]=r[n],r[n]=o,r},lt=function(e,t,n){var r=(e||[]).slice();return r.splice(t,0,n),r},ft=function(e,t,n){var r=(e||[]).slice();return r[t]=n,r},pt=te(function(e){function n(t){var n=e.call(this,t)||this;return n.updateArrayField=function(e,t,r){var o=n.props,a=o.name,u=o.validateOnChange,c=o.formik,s=c.validateForm,l=c.values,f=c.touched,p=c.errors;(0,c.setFormikState)(function(n){return i({},n,{values:He(n.values,a,e(ze(l,a))),errors:r?He(n.errors,a,e(ze(p,a))):n.errors,touched:t?He(n.touched,a,e(ze(f,a))):n.touched})},function(){u&&s()})},n.push=function(e){return n.updateArrayField(function(t){return(t||[]).concat([ne(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return st(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return ct(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return lt(n,e,t)},!0,!0)},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return ft(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},!0,!0),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(n),n.pop=n.pop.bind(n),n}return o(n,e),n.prototype.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?n.slice():[];return t||(t=r[e]),Ge(r.splice)&&r.splice(e,1),r},!0,!0),t},n.prototype.pop=function(){var e;return this.updateArrayField(function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.prototype.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},n=this.props,r=n.component,o=n.render,u=n.children,c=n.name,s=n.formik,l=a(s,["validate","validationSchema"]),f=i({},e,{form:l,name:c});return r?t.createElement(r,f):o?o(f):u?"function"==typeof u?u(f):et(u)?null:t.Children.only(u):null},n.defaultProps={validateOnChange:!0},n}(t.Component)),dt=te(function(e){function n(t){var n=e.call(this,t)||this,r=t.render,o=t.children,i=t.component;return p(!(i&&r),"You should not use <FastField component> and <FastField render> in the same <FastField> component; <FastField component> will be ignored"),p(!(i&&o&&Ge(o)),"You should not use <FastField component> and <FastField children> as a function in the same <FastField> component; <FastField component> will be ignored."),p(!(r&&o&&!et(o)),"You should not use <FastField render> and <FastField children> in the same <FastField> component; <FastField children> will be ignored"),n}return o(n,e),n.prototype.shouldComponentUpdate=function(e){return this.props.shouldUpdate?this.props.shouldUpdate(e):ze(this.props.formik.values,this.props.name)!==ze(e.formik.values,this.props.name)||ze(this.props.formik.errors,this.props.name)!==ze(e.formik.errors,this.props.name)||ze(this.props.formik.touched,this.props.name)!==ze(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length||this.props.formik.isSubmitting!==e.formik.isSubmitting},n.prototype.componentDidMount=function(){this.props.formik.registerField(this.props.name,this)},n.prototype.componentDidUpdate=function(e){this.props.name!==e.name&&(this.props.formik.unregisterField(e.name),this.props.formik.registerField(this.props.name,this)),this.props.validate!==e.validate&&this.props.formik.registerField(this.props.name,this)},n.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},n.prototype.render=function(){var e=this.props,n=e.name,r=e.render,o=e.children,u=e.component,c=void 0===u?"input":u,s=e.formik,l=a(e,["validate","name","render","children","component","formik"]),f=a(s,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:ze(s.values,n),name:n,onChange:s.handleChange,onBlur:s.handleBlur},d={field:p,form:f};if(r)return r(d);if(Ge(o))return o(d);if("string"==typeof c){var h=l.innerRef,v=a(l,["innerRef"]);return t.createElement(c,i({ref:h},p,v,{children:o}))}return t.createElement(c,i({},d,l,{children:o}))},n}(t.Component)),ht=te(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.shouldComponentUpdate=function(e){return ze(this.props.formik.errors,this.props.name)!==ze(e.formik.errors,this.props.name)||ze(this.props.formik.touched,this.props.name)!==ze(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.prototype.render=function(){var e=this.props,n=e.component,r=e.formik,o=e.render,i=e.children,u=e.name,c=a(e,["component","formik","render","children","name"]),s=ze(r.touched,u),l=ze(r.errors,u);return s&&l?o?Ge(o)?o(l):null:i?Ge(i)?i(l):null:n?t.createElement(n,c,l):l:null},n}(t.Component));e.Formik=nt,e.yupToFormErrors=rt,e.validateYupSchema=ot,e.Field=at,e.Form=ut,e.withFormik=function(e){var n=e.mapPropsToValues,r=void 0===n?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!=typeof e[n]&&(t[n]=e[n]);return t}:n,u=a(e,["mapPropsToValues"]);return function(e){var n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",a=function(a){function c(){var n=null!==a&&a.apply(this,arguments)||this;return n.validate=function(e){return u.validate(e,n.props)},n.validationSchema=function(){return Ge(u.validationSchema)?u.validationSchema(n.props):u.validationSchema},n.handleSubmit=function(e,t){return u.handleSubmit(e,i({},t,{props:n.props}))},n.renderFormComponent=function(r){return t.createElement(e,i({},n.props,r))},n}return o(c,a),c.prototype.render=function(){return t.createElement(nt,i({},this.props,u,{validate:u.validate&&this.validate,validationSchema:u.validationSchema&&this.validationSchema,initialValues:r(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},c.displayName="WithFormik("+n+")",c}(t.Component);return E(a,e)}},e.move=ct,e.swap=st,e.insert=lt,e.replace=ft,e.FieldArray=pt,e.getIn=ze,e.setIn=He,e.setNestedObjectValues=Je,e.isFunction=Ge,e.isObject=Ke,e.isInteger=Qe,e.isString=Xe,e.isNaN=Ze,e.isEmptyChildren=et,e.isPromise=tt,e.getActiveElement=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},e.FastField=dt,e.FormikProvider=Z,e.FormikConsumer=ee,e.connect=te,e.ErrorMessage=ht,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=formik.umd.production.js.map

@@ -63,16 +63,14 @@ import * as React from 'react';

export interface FormikConfig<Values> extends FormikSharedConfig {
component?: React.ComponentType<FormikProps<Values>> | React.ReactNode;
render?: ((props: FormikProps<Values>) => React.ReactNode);
children?: ((props: FormikProps<Values>) => React.ReactNode) | React.ReactNode;
initialValues: Values;
onReset?: (values: Values, formikActions: FormikActions<Values>) => void;
onSubmit: (values: Values, formikActions: FormikActions<Values>) => void;
component?: React.ComponentType<FormikProps<Values>> | React.ReactNode;
render?: ((props: FormikProps<Values>) => React.ReactNode);
validationSchema?: any | (() => any);
validate?: ((values: Values) => void | object | Promise<FormikErrors<Values>>);
children?: ((props: FormikProps<Values>) => React.ReactNode) | React.ReactNode;
}
export declare type FormikProps<Values> = FormikSharedConfig & FormikState<Values> & FormikActions<Values> & FormikHandlers & FormikComputedProps<Values> & FormikRegistration;
export interface FormikRegistration {
registerField(name: string, fns: {
validate?: ((value: any) => string | Function | Promise<void> | undefined);
}): void;
registerField(name: string, Comp: React.Component<any>): void;
unregisterField(name: string): void;

@@ -79,0 +77,0 @@ }

{
"name": "formik",
"description": "Forms in React, without tears",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",

@@ -55,2 +55,6 @@ "author": "Jared Palmer <jared@palmer.net>",

"optionalDependencies": {},
"resolutions": {
"@types/react": "16.4.14",
"@types/react-dom": "16.0.7"
},
"devDependencies": {

@@ -64,4 +68,4 @@ "@pisano/enzyme": "^3.3.0-pisano.public.1",

"@types/lodash.topath": "4.5.3",
"@types/react": "16.0.28",
"@types/react-dom": "^16.0.3",
"@types/react": "^16.4.14",
"@types/react-dom": "^16.0.7",
"@types/react-test-renderer": "15.5.2",

@@ -74,2 +78,4 @@ "@types/warning": "^3.0.0",

"doctoc": "^1.3.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"husky": "0.14.3",

@@ -81,4 +87,4 @@ "jest": "^23.1.0",

"raw-loader": "^0.5.1",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react": "^16.5.0",
"react-dom": "^16.5.0",
"rimraf": "^2.6.2",

@@ -95,5 +101,5 @@ "rollup": "^0.59.0",

"tsc-watch": "^1.0.21",
"tslint": "5.5.0",
"tslint-react": "3.2.0",
"typescript": "^3.0.1",
"tslint": "^5.11.0",
"tslint-react": "^3.6.0",
"typescript": "^3.1.1",
"yup": "0.21.3"

@@ -100,0 +106,0 @@ },

@@ -51,3 +51,3 @@ ![](https://user-images.githubusercontent.com/4060187/27243721-3b5219d0-52b1-11e7-96f1-dae8391a3ef6.png)

* [Accessing React lifecycle functions](https://codesandbox.io/s/pgD4DLypy)
* [React Native](https://snack.expo.io/Bk9pPK87X)
* [React Native](https://snack.expo.io/@ferrannp/react-native-x-formik)
* [TypeScript](https://codesandbox.io/s/8y578o8152)

@@ -54,0 +54,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc