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 2.0.1-alpha.3 to 2.0.1-alpha.4

22

dist/formik.cjs.development.js

@@ -178,4 +178,8 @@ 'use strict';

var fields = React.useRef({});
invariant(typeof isInitialValid === 'undefined', 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors instead.');
React.useEffect(function () {
{
invariant(typeof isInitialValid === 'undefined', 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors instead.');
}
}, [isInitialValid]);
React.useEffect(function () {
isMounted.current = true;

@@ -735,3 +739,5 @@ return function () {

var formik = useFormikContext();
invariant(formik, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component');
{
invariant(formik, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component');
}
return formik.getFieldProps(name, type);

@@ -743,7 +749,9 @@ }

React.useEffect(function () {
invariant(!render, "<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\"" + name + "\" render={({field, form}) => ...} /> with <Field name=\"" + name + "\">{({field, form, meta}) => ...}</Field>");
invariant(!component, '<Field component> has been deprecated and will be removed in future versions of Formik. Use <Field as> instead. Note that with the `as` prop, all props are passed directly through and not grouped in `field` object key.');
invariant(!(is && children && isFunction(children)), 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.');
invariant(!(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.');
invariant(!(render && children && !isEmptyChildren(children)), 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored');
{
invariant(!render, "<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\"" + name + "\" render={({field, form}) => ...} /> with <Field name=\"" + name + "\">{({field, form, meta}) => ...}</Field>");
invariant(!component, '<Field component> has been deprecated and will be removed in future versions of Formik. Use <Field as> instead. Note that with the `as` prop, all props are passed directly through and not grouped in `field` object key.');
invariant(!(is && children && isFunction(children)), 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.');
invariant(!(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.');
invariant(!(render && children && !isEmptyChildren(children)), 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored');
}
}, [children, component, is, name, render]);

@@ -750,0 +758,0 @@ React.useEffect(function () {

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

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react"),r=e(require("react-fast-compare")),i=e(require("deepmerge")),a=e(require("lodash/clone")),u=e(require("lodash/toPath")),o=e(require("tiny-warning")),s=e(require("hoist-non-react-statics")),l=e(require("lodash/cloneDeep")),c=function(e){return"function"==typeof e},d=function(e){return null!==e&&"object"==typeof e},p=function(e){return String(Math.floor(Number(e)))===e},f=function(e){return"[object String]"===Object.prototype.toString.call(e)},h=function(e){return 0===n.Children.count(e)},v=function(e){return d(e)&&c(e.then)};function m(e){var t=!1;return[new Promise(function(n,r){e.then(function(e){return t?r({isCanceled:!0}):n(e)},function(e){return r(t?{isCanceled:!0}:e)})}),function(){t=!0}]}function _(e,t,n,r){void 0===r&&(r=0);for(var i=u(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function y(e,t,n){for(var r=a(e),i=r,o=0,s=u(t);o<s.length-1;o++){var l=s[o],c=_(e,s.slice(0,o+1));if(c)i=i[l]=a(c);else{var d=s[o+1];i=i[l]=p(d)&&Number(d)>=0?[]:{}}}return(0===o?e:i)[s[o]]===n?e:(void 0===n?delete i[s[o]]:i[s[o]]=n,0===o&&void 0===n&&delete r[s[o]],r)}function S(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,a=Object.keys(e);i<a.length;i++){var u=a[i],o=e[u];d(o)?n.get(o)||(n.set(o,!0),r[u]=Array.isArray(o)?[]:{},S(o,t,n,r[u])):r[u]=t}return r}var E=n.createContext({}),g=E.Provider,b=E.Consumer;function F(){return n.useContext(E)}function T(e,n){switch(n.type){case"SET_VALUES":return t.__assign({},e,{values:n.payload});case"SET_TOUCHED":return t.__assign({},e,{touched:n.payload});case"SET_ERRORS":return t.__assign({},e,{errors:n.payload});case"SET_STATUS":return t.__assign({},e,{status:n.payload});case"SET_ISSUBMITTING":return t.__assign({},e,{isSubmitting:n.payload});case"SET_ISVALIDATING":return t.__assign({},e,{isValidating:n.payload});case"SET_FIELD_VALUE":return t.__assign({},e,{values:y(e.values,n.payload.field,n.payload.value)});case"SET_FIELD_TOUCHED":return t.__assign({},e,{touched:y(e.touched,n.payload.field,n.payload.value)});case"SET_FIELD_ERROR":return t.__assign({},e,{errors:y(e.errors,n.payload.field,n.payload.value)});case"RESET_FORM":case"SET_FORMIK_STATE":return t.__assign({},e,n.payload);case"SUBMIT_ATTEMPT":return t.__assign({},e,{touched:S(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return t.__assign({},e,{isSubmitting:!1});default:return e}}function C(e){var a=e.validateOnChange,u=void 0===a||a,s=e.validateOnBlur,l=void 0===s||s,d=e.isInitialValid,p=e.enableReinitialize,h=void 0!==p&&p,S=e.onSubmit,E=t.__rest(e,["validateOnChange","validateOnBlur","isInitialValid","enableReinitialize","onSubmit"]),g=t.__assign({validateOnChange:u,validateOnBlur:l,onSubmit:S},E),b=n.useRef(g.initialValues),F=n.useRef(g.initialErrors||{}),C=n.useRef(g.initialTouched||{}),k=n.useRef(g.initialStatus),x=n.useRef(!1),A=n.useRef({});o(void 0===d,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors instead."),n.useEffect(function(){return x.current=!0,function(){x.current=!1}},[]);var P,V,U=n.useReducer(T,{values:g.initialValues,errors:g.initialErrors||{},touched:g.initialTouched||{},status:g.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),D=U[0],L=U[1],w=(V=n.useRef(P=D),n.useEffect(function(){V.current=P},[P]),V.current),M=n.useCallback(function(e,t){return new Promise(function(n){var r=g.validate(e,t);void 0===r?n({}):v(r)?r.then(function(){n({})},function(e){n(e)}):n(r)})},[g.validate]),N=n.useCallback(function(e,t){return new Promise(function(n){var r=g.validationSchema,i=c(r)?r(t):r;(t&&i.validateAt?i.validateAt(t,e):I(e,i)).then(function(){n({})},function(e){n(R(e))})})},[g.validationSchema]),j=n.useCallback(function(e,t){return new Promise(function(n){return n(A.current[e].validate(t))}).then(function(e){return e},function(e){return e})},[A]),B=n.useCallback(function(e){if(null===A.current)return Promise.resolve({});var t=Object.keys(A.current).filter(function(e){return null!==A.current&&A.current[e]&&A.current[e].validate&&c(A.current[e].validate)}),n=t.length>0?t.map(function(t){return j(t,_(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n?e:(n&&(e=y(e,t[r],n)),e)},{})})},[j,A]),q=n.useCallback(function(e){return void 0===e&&(e=D.values),g.validationSchema||g.validate||A.current&&Object.keys(A.current).filter(function(e){return!!A.current[e].validate}).length>0?(L({type:"SET_ISVALIDATING",payload:!0}),Promise.all([B(e),g.validationSchema?N(e):{},g.validate?M(e):{}]).then(function(e){var t=i.all([e[0],e[1],e[2]],{arrayMerge:O});return r(D.errors,t)||L({type:"SET_ERRORS",payload:t}),L({type:"SET_ISVALIDATING",payload:!1}),t})):Promise.resolve({})},[g.validate,g.validationSchema,B,M,N,D.errors,D.values,A]);n.useEffect(function(){if(w.values!==D.values&&u&&!D.isSubmitting&&null!=x.current){var e=m(q()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[w.values,D.isSubmitting,D.values,q,u,x]),n.useEffect(function(){if(w.touched!==D.touched&&l&&!D.isSubmitting&&null!=x.current){var e=m(q()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[w.touched,D.isSubmitting,D.touched,q,l,x]);var G=n.useCallback(function(e){var t=e&&e.values?e.values:b.current?b.current:g.initialValues,n=e&&e.errors?e.values:F.current?F.current:g.initialErrors||{},r=e&&e.touched?e.values:C.current?C.current:g.initialTouched||{},i=e&&e.status?e.status:k.current?k.current:g.initialStatus;b.current=t,F.current=n,C.current=r,k.current=i,L({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})},[g.initialErrors,g.initialStatus,g.initialTouched,g.initialValues]);n.useEffect(function(){h&&x.current&&!r(b.current,g.initialValues)&&G()},[h,g.initialValues,G]);var Y=n.useCallback(function(e){if(null!==A.current&&A.current[e]&&A.current[e].validate&&c(A.current[e].validate)){var t=_(D.values,e),n=A.current[e].validate(t);return v(n)?(L({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e},function(e){return e}).then(function(t){L({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),L({type:"SET_ISVALIDATING",payload:!1})})):(L({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()},[D.values,A]),H=n.useCallback(function(e,t){null!==A.current&&(A.current[e]={validate:t.validate})},[A]),W=n.useCallback(function(e){null!==A.current&&delete A.current[e]},[A]),K=n.useCallback(function(e){if(f(e))return function(n){return t(n,e)};function t(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=t||(r||n.id);L({type:"SET_FIELD_TOUCHED",payload:{field:i,value:!0}})}t(e)},[]),z=n.useCallback(function(e){if(f(e))return function(n){return t(n,e)};function t(e,t){var n,r=t,i=e;if(!f(e)){e.persist&&e.persist();var a=e.target,u=a.type,o=a.name,s=a.value,l=a.checked;r=t||(o||a.id),i=/number|range/.test(u)?(n=parseFloat(s),isNaN(n)?"":n):/checkbox/.test(u)?l:s}r&&L({type:"SET_FIELD_VALUE",payload:{field:r,value:i}})}t(e)},[]);var J=n.useCallback(function(e){L({type:"SET_TOUCHED",payload:e})},[]),Q=n.useCallback(function(e){L({type:"SET_ERRORS",payload:e})},[]),X=n.useCallback(function(e){L({type:"SET_VALUES",payload:e})},[]),Z=n.useCallback(function(e,t){L({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),$=n.useCallback(function(e,t){L({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})},[]),ee=n.useCallback(function(e,t){void 0===t&&(t=!0),L({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}})},[]);function te(e){c(e)?L({type:"SET_FORMIK_STATE",payload:e(D)}):L({type:"SET_FORMIK_STATE",payload:e})}var ne=n.useCallback(function(e){L({type:"SET_STATUS",payload:e})},[]),re=n.useCallback(function(e){L({type:"SET_ISSUBMITTING",payload:e})},[]),ie={resetForm:G,validateForm:q,validateField:Y,setErrors:Q,setFieldError:Z,setFieldTouched:ee,setFieldValue:$,setStatus:ne,setSubmitting:re,setTouched:J,setValues:X,setFormikState:te},ae=n.useCallback(function(){return S(D.values,ie)},[ie,S,D.values]),ue=n.useCallback(function(){return L({type:"SUBMIT_ATTEMPT"}),q().then(function(e){0===Object.keys(e).length?Promise.resolve(ae()).then(function(){x.current&&L({type:"SUBMIT_SUCCESS"})}).catch(function(e){x.current&&L({type:"SUBMIT_FAILURE"})}):x.current&&L({type:"SUBMIT_FAILURE"})})},[ae,q]),oe=n.useCallback(function(){if(g.onReset){var e=g.onReset(D.values,ie);v(e)?e.then(G):G()}else G()},[ie,g.onReset,G,D.values]),se=n.useCallback(function(e){return{value:_(D.values,e),error:_(D.errors,e),touched:!!_(D.touched,e),initialValue:_(b.current,e),initialTouched:!!_(C.current,e),initialError:_(F.current,e)}},[D.errors,D.touched,D.values]),le=n.useCallback(function(e,t){return[{name:e,value:!t||"radio"!==t&&"checkbox"!==t?_(D.values,e):void 0,onChange:z,onBlur:K},se(e)]},[se,K,z,D.values]),ce=n.useMemo(function(){return!r(b.current,D.values)},[D.values]),de=n.useMemo(function(){return void 0!==d?ce?D.errors&&0===Object.keys(D.errors).length:!1!==d&&c(d)?d(g):d:D.errors&&0===Object.keys(D.errors).length},[d,ce,D.errors,g]);return t.__assign({},D,{initialValues:b.current,initialErrors:F.current,initialTouched:C.current,initialStatus:k.current,handleBlur:K,handleChange:z,handleReset:oe,handleSubmit:function(e){e&&e.preventDefault&&e.preventDefault(),ue()},resetForm:G,setErrors:Q,setFormikState:te,setFieldTouched:ee,setFieldValue:$,setFieldError:Z,setStatus:ne,setSubmitting:re,setTouched:J,setValues:X,submitForm:ue,validateForm:q,validateField:Y,isValid:de,dirty:ce,unregisterField:W,registerField:H,getFieldProps:le,validateOnBlur:l,validateOnChange:u})}function k(e){var t=C(e),r=e.component,i=e.children,a=e.render;return n.createElement(g,{value:t},r?n.createElement(r,t):a?a(t):i?c(i)?i(t):h(i)?null:n.Children.only(i):null)}function R(e){var t={};if(0===e.inner.length)return y(t,e.path,e.message);for(var n=0,r=e.inner;n<r.length;n++){var i=r[n];t[i.path]||(t=y(t,i.path,i.message))}return t}function I(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r={});var i={};for(var a in e)if(e.hasOwnProperty(a)){var u=String(a);i[u]=""!==e[u]?e[u]:void 0}return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function O(e,t,n){var r=e.slice();return t.forEach(function(t,a){if(void 0===r[a]){var u=!1!==n.clone&&n.isMergeableObject(t);r[a]=u?i(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=i(e[a],t,n):-1===e.indexOf(t)&&r.push(t)}),r}function x(e){var r=e.validate,i=e.name,a=e.render,u=e.children,s=e.as,l=void 0===s?"input":s,d=e.component,p=t.__rest(e,["validate","name","render","children","as","component"]),f=F(),v=t.__rest(f,["validate","validationSchema"]);n.useEffect(function(){o(!a,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+i+'" render={({field, form}) => ...} /> with <Field name="'+i+'">{({field, form, meta}) => ...}</Field>'),o(!d,"<Field component> has been deprecated and will be removed in future versions of Formik. Use <Field as> instead. Note that with the `as` prop, all props are passed directly through and not grouped in `field` object key."),o(!(l&&u&&c(u)),"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."),o(!(d&&u&&c(u)),"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."),o(!(a&&u&&!h(u)),"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored")},[u,d,l,i,a]),n.useEffect(function(){return v.registerField(i,{validate:r}),function(){v.unregisterField(i)}},[v,i,r]);var m=v.getFieldProps(i,p.type),_=m[0],y=m[1],S={field:_,form:v};if(a)return a(S);if(c(u))return u(t.__assign({},S,{meta:y}));if(d){if("string"==typeof d){var E=p.innerRef,g=t.__rest(p,["innerRef"]);return n.createElement(d,t.__assign({ref:E},_,g),u)}return n.createElement(d,t.__assign({field:_,form:v},p),u)}if("string"==typeof l){E=p.innerRef,g=t.__rest(p,["innerRef"]);return n.createElement(l,t.__assign({ref:E},_,g),u)}return n.createElement(l,t.__assign({},_,p),u)}var A=x;function P(e){var r=F();return n.createElement("form",t.__assign({onSubmit:r.handleSubmit,onReset:r.handleReset},e))}function V(e){var r=function(r){return n.createElement(b,null,function(i){return n.createElement(e,t.__assign({},r,{formik:i}))})},i=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r.WrappedComponent=e,r.displayName="FormikConnect("+i+")",s(r,e)}P.displayName="Form";var U=function(e,t,n){var r=(e||[]).slice(),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},D=function(e,t,n){var r=(e||[]).slice(),i=r[t];return r[t]=r[n],r[n]=i,r},L=function(e,t,n){var r=(e||[]).slice();return r.splice(t,0,n),r},w=function(e,t,n){var r=(e||[]).slice();return r[t]=n,r},M=V(function(e){function r(n){var r=e.call(this,n)||this;return r.updateArrayField=function(e,n,i){var a=r.props,u=a.name,o=a.validateOnChange,s=a.formik,l=s.validateForm;(0,s.setFormikState)(function(r){var a="function"==typeof i?i:e,o="function"==typeof n?n:e;return t.__assign({},r,{values:y(r.values,u,e(_(r.values,u))),errors:i?y(r.errors,u,a(_(r.errors,u))):r.errors,touched:n?y(r.touched,u,o(_(r.touched,u))):r.touched})},function(){o&&l()})},r.push=function(e){return r.updateArrayField(function(t){return(t||[]).concat([l(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(n){return D(n,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(n){return U(n,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(n){return L(n,e,t)},function(t){return L(t,e,null)},function(t){return L(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(n){return w(n,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(r),r.pop=r.pop.bind(r),r}return t.__extends(r,e),r.prototype.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?n.slice():[];return t||(t=r[e]),c(r.splice)&&r.splice(e,1),r},!0,!0),t},r.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},r.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},r=this.props,i=r.component,a=r.render,u=r.children,o=r.name,s=r.formik,l=t.__rest(s,["validate","validationSchema"]),c=t.__assign({},e,{form:l,name:o});return i?n.createElement(i,c):a?a(c):u?"function"==typeof u?u(c):h(u)?null:n.Children.only(u):null},r.defaultProps={validateOnChange:!0},r}(n.Component)),N=V(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.shouldComponentUpdate=function(e){return _(this.props.formik.errors,this.props.name)!==_(e.formik.errors,this.props.name)||_(this.props.formik.touched,this.props.name)!==_(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.prototype.render=function(){var e=this.props,r=e.component,i=e.formik,a=e.render,u=e.children,o=e.name,s=t.__rest(e,["component","formik","render","children","name"]),l=_(i.touched,o),d=_(i.errors,o);return l&&d?a?c(a)?a(d):null:u?c(u)?u(d):null:r?n.createElement(r,s,d):d:null},r}(n.Component));exports.useFormik=C,exports.Formik=k,exports.yupToFormErrors=R,exports.validateYupSchema=I,exports.useField=function(e,t){var n=F();return o(n,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"),n.getFieldProps(e,t)},exports.Field=x,exports.FastField=A,exports.Form=P,exports.withFormik=function(e){var r=e.mapPropsToValues,i=void 0===r?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!=typeof e[n]&&(t[n]=e[n]);return t}:r,a=t.__rest(e,["mapPropsToValues"]);return function(e){var r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",u=function(u){function o(){var r=null!==u&&u.apply(this,arguments)||this;return r.validate=function(e){return a.validate(e,r.props)},r.validationSchema=function(){return c(a.validationSchema)?a.validationSchema(r.props):a.validationSchema},r.handleSubmit=function(e,n){return a.handleSubmit(e,t.__assign({},n,{props:r.props}))},r.renderFormComponent=function(i){return n.createElement(e,t.__assign({},r.props,i))},r}return t.__extends(o,u),o.prototype.render=function(){var e=this.props,r=t.__rest(e,["children"]);return n.createElement(k,t.__assign({},r,a,{validate:a.validate&&this.validate,validationSchema:a.validationSchema&&this.validationSchema,initialValues:i(this.props),initialStatus:a.mapPropsToStatus&&a.mapPropsToStatus(this.props),initialErrors:a.mapPropsToErrors&&a.mapPropsToErrors(this.props),initialTouched:a.mapPropsToTouched&&a.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},o.displayName="WithFormik("+r+")",o}(n.Component);return s(u,e)}},exports.move=U,exports.swap=D,exports.insert=L,exports.replace=w,exports.FieldArray=M,exports.isFunction=c,exports.isObject=d,exports.isInteger=p,exports.isString=f,exports.isNaN=function(e){return e!=e},exports.isEmptyChildren=h,exports.isPromise=v,exports.isInputEvent=function(e){return e&&d(e)&&d(e.target)},exports.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}},exports.makeCancelable=m,exports.getIn=_,exports.setIn=y,exports.setNestedObjectValues=S,exports.connect=V,exports.ErrorMessage=N,exports.FormikProvider=g,exports.FormikConsumer=b,exports.useFormikContext=F;
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),n=require("react"),r=e(require("react-fast-compare")),i=e(require("deepmerge")),a=e(require("lodash/clone")),u=e(require("lodash/toPath"));require("tiny-warning");var o=e(require("hoist-non-react-statics")),s=e(require("lodash/cloneDeep")),l=function(e){return"function"==typeof e},c=function(e){return null!==e&&"object"==typeof e},d=function(e){return String(Math.floor(Number(e)))===e},p=function(e){return"[object String]"===Object.prototype.toString.call(e)},f=function(e){return 0===n.Children.count(e)},v=function(e){return c(e)&&l(e.then)};function h(e){var t=!1;return[new Promise(function(n,r){e.then(function(e){return t?r({isCanceled:!0}):n(e)},function(e){return r(t?{isCanceled:!0}:e)})}),function(){t=!0}]}function m(e,t,n,r){void 0===r&&(r=0);for(var i=u(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function _(e,t,n){for(var r=a(e),i=r,o=0,s=u(t);o<s.length-1;o++){var l=s[o],c=m(e,s.slice(0,o+1));if(c)i=i[l]=a(c);else{var p=s[o+1];i=i[l]=d(p)&&Number(p)>=0?[]:{}}}return(0===o?e:i)[s[o]]===n?e:(void 0===n?delete i[s[o]]:i[s[o]]=n,0===o&&void 0===n&&delete r[s[o]],r)}function S(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,a=Object.keys(e);i<a.length;i++){var u=a[i],o=e[u];c(o)?n.get(o)||(n.set(o,!0),r[u]=Array.isArray(o)?[]:{},S(o,t,n,r[u])):r[u]=t}return r}var y=n.createContext({}),E=y.Provider,g=y.Consumer;function T(){return n.useContext(y)}function b(e,n){switch(n.type){case"SET_VALUES":return t.__assign({},e,{values:n.payload});case"SET_TOUCHED":return t.__assign({},e,{touched:n.payload});case"SET_ERRORS":return t.__assign({},e,{errors:n.payload});case"SET_STATUS":return t.__assign({},e,{status:n.payload});case"SET_ISSUBMITTING":return t.__assign({},e,{isSubmitting:n.payload});case"SET_ISVALIDATING":return t.__assign({},e,{isValidating:n.payload});case"SET_FIELD_VALUE":return t.__assign({},e,{values:_(e.values,n.payload.field,n.payload.value)});case"SET_FIELD_TOUCHED":return t.__assign({},e,{touched:_(e.touched,n.payload.field,n.payload.value)});case"SET_FIELD_ERROR":return t.__assign({},e,{errors:_(e.errors,n.payload.field,n.payload.value)});case"RESET_FORM":case"SET_FORMIK_STATE":return t.__assign({},e,n.payload);case"SUBMIT_ATTEMPT":return t.__assign({},e,{touched:S(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return t.__assign({},e,{isSubmitting:!1});default:return e}}function F(e){var a=e.validateOnChange,u=void 0===a||a,o=e.validateOnBlur,s=void 0===o||o,c=e.isInitialValid,d=e.enableReinitialize,f=void 0!==d&&d,S=e.onSubmit,y=t.__rest(e,["validateOnChange","validateOnBlur","isInitialValid","enableReinitialize","onSubmit"]),E=t.__assign({validateOnChange:u,validateOnBlur:s,onSubmit:S},y),g=n.useRef(E.initialValues),T=n.useRef(E.initialErrors||{}),F=n.useRef(E.initialTouched||{}),C=n.useRef(E.initialStatus),O=n.useRef(!1),x=n.useRef({});n.useEffect(function(){},[c]),n.useEffect(function(){return O.current=!0,function(){O.current=!1}},[]);var A,P,V=n.useReducer(b,{values:E.initialValues,errors:E.initialErrors||{},touched:E.initialTouched||{},status:E.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),U=V[0],D=V[1],L=(P=n.useRef(A=U),n.useEffect(function(){P.current=A},[A]),P.current),M=n.useCallback(function(e,t){return new Promise(function(n){var r=E.validate(e,t);void 0===r?n({}):v(r)?r.then(function(){n({})},function(e){n(e)}):n(r)})},[E.validate]),N=n.useCallback(function(e,t){return new Promise(function(n){var r=E.validationSchema,i=l(r)?r(t):r;(t&&i.validateAt?i.validateAt(t,e):k(e,i)).then(function(){n({})},function(e){n(R(e))})})},[E.validationSchema]),w=n.useCallback(function(e,t){return new Promise(function(n){return n(x.current[e].validate(t))}).then(function(e){return e},function(e){return e})},[x]),j=n.useCallback(function(e){if(null===x.current)return Promise.resolve({});var t=Object.keys(x.current).filter(function(e){return null!==x.current&&x.current[e]&&x.current[e].validate&&l(x.current[e].validate)}),n=t.length>0?t.map(function(t){return w(t,m(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n?e:(n&&(e=_(e,t[r],n)),e)},{})})},[w,x]),B=n.useCallback(function(e){return void 0===e&&(e=U.values),E.validationSchema||E.validate||x.current&&Object.keys(x.current).filter(function(e){return!!x.current[e].validate}).length>0?(D({type:"SET_ISVALIDATING",payload:!0}),Promise.all([j(e),E.validationSchema?N(e):{},E.validate?M(e):{}]).then(function(e){var t=i.all([e[0],e[1],e[2]],{arrayMerge:I});return r(U.errors,t)||D({type:"SET_ERRORS",payload:t}),D({type:"SET_ISVALIDATING",payload:!1}),t})):Promise.resolve({})},[E.validate,E.validationSchema,j,M,N,U.errors,U.values,x]);n.useEffect(function(){if(L.values!==U.values&&u&&!U.isSubmitting&&null!=O.current){var e=h(B()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[L.values,U.isSubmitting,U.values,B,u,O]),n.useEffect(function(){if(L.touched!==U.touched&&s&&!U.isSubmitting&&null!=O.current){var e=h(B()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[L.touched,U.isSubmitting,U.touched,B,s,O]);var q=n.useCallback(function(e){var t=e&&e.values?e.values:g.current?g.current:E.initialValues,n=e&&e.errors?e.values:T.current?T.current:E.initialErrors||{},r=e&&e.touched?e.values:F.current?F.current:E.initialTouched||{},i=e&&e.status?e.status:C.current?C.current:E.initialStatus;g.current=t,T.current=n,F.current=r,C.current=i,D({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})},[E.initialErrors,E.initialStatus,E.initialTouched,E.initialValues]);n.useEffect(function(){f&&O.current&&!r(g.current,E.initialValues)&&q()},[f,E.initialValues,q]);var G=n.useCallback(function(e){if(null!==x.current&&x.current[e]&&x.current[e].validate&&l(x.current[e].validate)){var t=m(U.values,e),n=x.current[e].validate(t);return v(n)?(D({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e},function(e){return e}).then(function(t){D({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),D({type:"SET_ISVALIDATING",payload:!1})})):(D({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()},[U.values,x]),H=n.useCallback(function(e,t){null!==x.current&&(x.current[e]={validate:t.validate})},[x]),W=n.useCallback(function(e){null!==x.current&&delete x.current[e]},[x]),K=n.useCallback(function(e){if(p(e))return function(n){return t(n,e)};function t(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=t||(r||n.id);D({type:"SET_FIELD_TOUCHED",payload:{field:i,value:!0}})}t(e)},[]),Y=n.useCallback(function(e){if(p(e))return function(n){return t(n,e)};function t(e,t){var n,r=t,i=e;if(!p(e)){e.persist&&e.persist();var a=e.target,u=a.type,o=a.name,s=a.value,l=a.checked;r=t||(o||a.id),i=/number|range/.test(u)?(n=parseFloat(s),isNaN(n)?"":n):/checkbox/.test(u)?l:s}r&&D({type:"SET_FIELD_VALUE",payload:{field:r,value:i}})}t(e)},[]);var z=n.useCallback(function(e){D({type:"SET_TOUCHED",payload:e})},[]),J=n.useCallback(function(e){D({type:"SET_ERRORS",payload:e})},[]),Q=n.useCallback(function(e){D({type:"SET_VALUES",payload:e})},[]),X=n.useCallback(function(e,t){D({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Z=n.useCallback(function(e,t){D({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})},[]),$=n.useCallback(function(e,t){void 0===t&&(t=!0),D({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}})},[]);function ee(e){l(e)?D({type:"SET_FORMIK_STATE",payload:e(U)}):D({type:"SET_FORMIK_STATE",payload:e})}var te=n.useCallback(function(e){D({type:"SET_STATUS",payload:e})},[]),ne=n.useCallback(function(e){D({type:"SET_ISSUBMITTING",payload:e})},[]),re={resetForm:q,validateForm:B,validateField:G,setErrors:J,setFieldError:X,setFieldTouched:$,setFieldValue:Z,setStatus:te,setSubmitting:ne,setTouched:z,setValues:Q,setFormikState:ee},ie=n.useCallback(function(){return S(U.values,re)},[re,S,U.values]),ae=n.useCallback(function(){return D({type:"SUBMIT_ATTEMPT"}),B().then(function(e){0===Object.keys(e).length?Promise.resolve(ie()).then(function(){O.current&&D({type:"SUBMIT_SUCCESS"})}).catch(function(e){O.current&&D({type:"SUBMIT_FAILURE"})}):O.current&&D({type:"SUBMIT_FAILURE"})})},[ie,B]),ue=n.useCallback(function(){if(E.onReset){var e=E.onReset(U.values,re);v(e)?e.then(q):q()}else q()},[re,E.onReset,q,U.values]),oe=n.useCallback(function(e){return{value:m(U.values,e),error:m(U.errors,e),touched:!!m(U.touched,e),initialValue:m(g.current,e),initialTouched:!!m(F.current,e),initialError:m(T.current,e)}},[U.errors,U.touched,U.values]),se=n.useCallback(function(e,t){return[{name:e,value:!t||"radio"!==t&&"checkbox"!==t?m(U.values,e):void 0,onChange:Y,onBlur:K},oe(e)]},[oe,K,Y,U.values]),le=n.useMemo(function(){return!r(g.current,U.values)},[U.values]),ce=n.useMemo(function(){return void 0!==c?le?U.errors&&0===Object.keys(U.errors).length:!1!==c&&l(c)?c(E):c:U.errors&&0===Object.keys(U.errors).length},[c,le,U.errors,E]);return t.__assign({},U,{initialValues:g.current,initialErrors:T.current,initialTouched:F.current,initialStatus:C.current,handleBlur:K,handleChange:Y,handleReset:ue,handleSubmit:function(e){e&&e.preventDefault&&e.preventDefault(),ae()},resetForm:q,setErrors:J,setFormikState:ee,setFieldTouched:$,setFieldValue:Z,setFieldError:X,setStatus:te,setSubmitting:ne,setTouched:z,setValues:Q,submitForm:ae,validateForm:B,validateField:G,isValid:ce,dirty:le,unregisterField:W,registerField:H,getFieldProps:se,validateOnBlur:s,validateOnChange:u})}function C(e){var t=F(e),r=e.component,i=e.children,a=e.render;return n.createElement(E,{value:t},r?n.createElement(r,t):a?a(t):i?l(i)?i(t):f(i)?null:n.Children.only(i):null)}function R(e){var t={};if(0===e.inner.length)return _(t,e.path,e.message);for(var n=0,r=e.inner;n<r.length;n++){var i=r[n];t[i.path]||(t=_(t,i.path,i.message))}return t}function k(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r={});var i={};for(var a in e)if(e.hasOwnProperty(a)){var u=String(a);i[u]=""!==e[u]?e[u]:void 0}return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function I(e,t,n){var r=e.slice();return t.forEach(function(t,a){if(void 0===r[a]){var u=!1!==n.clone&&n.isMergeableObject(t);r[a]=u?i(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[a]=i(e[a],t,n):-1===e.indexOf(t)&&r.push(t)}),r}function O(e){var r=e.validate,i=e.name,a=e.render,u=e.children,o=e.as,s=void 0===o?"input":o,c=e.component,d=t.__rest(e,["validate","name","render","children","as","component"]),p=T(),f=t.__rest(p,["validate","validationSchema"]);n.useEffect(function(){},[u,c,s,i,a]),n.useEffect(function(){return f.registerField(i,{validate:r}),function(){f.unregisterField(i)}},[f,i,r]);var v=f.getFieldProps(i,d.type),h=v[0],m=v[1],_={field:h,form:f};if(a)return a(_);if(l(u))return u(t.__assign({},_,{meta:m}));if(c){if("string"==typeof c){var S=d.innerRef,y=t.__rest(d,["innerRef"]);return n.createElement(c,t.__assign({ref:S},h,y),u)}return n.createElement(c,t.__assign({field:h,form:f},d),u)}if("string"==typeof s){S=d.innerRef,y=t.__rest(d,["innerRef"]);return n.createElement(s,t.__assign({ref:S},h,y),u)}return n.createElement(s,t.__assign({},h,d),u)}var x=O;function A(e){var r=T();return n.createElement("form",t.__assign({onSubmit:r.handleSubmit,onReset:r.handleReset},e))}function P(e){var r=function(r){return n.createElement(g,null,function(i){return n.createElement(e,t.__assign({},r,{formik:i}))})},i=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r.WrappedComponent=e,r.displayName="FormikConnect("+i+")",o(r,e)}A.displayName="Form";var V=function(e,t,n){var r=(e||[]).slice(),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},U=function(e,t,n){var r=(e||[]).slice(),i=r[t];return r[t]=r[n],r[n]=i,r},D=function(e,t,n){var r=(e||[]).slice();return r.splice(t,0,n),r},L=function(e,t,n){var r=(e||[]).slice();return r[t]=n,r},M=P(function(e){function r(n){var r=e.call(this,n)||this;return r.updateArrayField=function(e,n,i){var a=r.props,u=a.name,o=a.validateOnChange,s=a.formik,l=s.validateForm;(0,s.setFormikState)(function(r){var a="function"==typeof i?i:e,o="function"==typeof n?n:e;return t.__assign({},r,{values:_(r.values,u,e(m(r.values,u))),errors:i?_(r.errors,u,a(m(r.errors,u))):r.errors,touched:n?_(r.touched,u,o(m(r.touched,u))):r.touched})},function(){o&&l()})},r.push=function(e){return r.updateArrayField(function(t){return(t||[]).concat([s(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(n){return U(n,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(n){return V(n,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(n){return D(n,e,t)},function(t){return D(t,e,null)},function(t){return D(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(n){return L(n,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(r),r.pop=r.pop.bind(r),r}return t.__extends(r,e),r.prototype.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?n.slice():[];return t||(t=r[e]),l(r.splice)&&r.splice(e,1),r},!0,!0),t},r.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},r.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},r=this.props,i=r.component,a=r.render,u=r.children,o=r.name,s=r.formik,l=t.__rest(s,["validate","validationSchema"]),c=t.__assign({},e,{form:l,name:o});return i?n.createElement(i,c):a?a(c):u?"function"==typeof u?u(c):f(u)?null:n.Children.only(u):null},r.defaultProps={validateOnChange:!0},r}(n.Component)),N=P(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.shouldComponentUpdate=function(e){return m(this.props.formik.errors,this.props.name)!==m(e.formik.errors,this.props.name)||m(this.props.formik.touched,this.props.name)!==m(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.prototype.render=function(){var e=this.props,r=e.component,i=e.formik,a=e.render,u=e.children,o=e.name,s=t.__rest(e,["component","formik","render","children","name"]),c=m(i.touched,o),d=m(i.errors,o);return c&&d?a?l(a)?a(d):null:u?l(u)?u(d):null:r?n.createElement(r,s,d):d:null},r}(n.Component));exports.useFormik=F,exports.Formik=C,exports.yupToFormErrors=R,exports.validateYupSchema=k,exports.useField=function(e,t){return T().getFieldProps(e,t)},exports.Field=O,exports.FastField=x,exports.Form=A,exports.withFormik=function(e){var r=e.mapPropsToValues,i=void 0===r?function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"function"!=typeof e[n]&&(t[n]=e[n]);return t}:r,a=t.__rest(e,["mapPropsToValues"]);return function(e){var r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",u=function(u){function o(){var r=null!==u&&u.apply(this,arguments)||this;return r.validate=function(e){return a.validate(e,r.props)},r.validationSchema=function(){return l(a.validationSchema)?a.validationSchema(r.props):a.validationSchema},r.handleSubmit=function(e,n){return a.handleSubmit(e,t.__assign({},n,{props:r.props}))},r.renderFormComponent=function(i){return n.createElement(e,t.__assign({},r.props,i))},r}return t.__extends(o,u),o.prototype.render=function(){var e=this.props,r=t.__rest(e,["children"]);return n.createElement(C,t.__assign({},r,a,{validate:a.validate&&this.validate,validationSchema:a.validationSchema&&this.validationSchema,initialValues:i(this.props),initialStatus:a.mapPropsToStatus&&a.mapPropsToStatus(this.props),initialErrors:a.mapPropsToErrors&&a.mapPropsToErrors(this.props),initialTouched:a.mapPropsToTouched&&a.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},o.displayName="WithFormik("+r+")",o}(n.Component);return o(u,e)}},exports.move=V,exports.swap=U,exports.insert=D,exports.replace=L,exports.FieldArray=M,exports.isFunction=l,exports.isObject=c,exports.isInteger=d,exports.isString=p,exports.isNaN=function(e){return e!=e},exports.isEmptyChildren=f,exports.isPromise=v,exports.isInputEvent=function(e){return e&&c(e)&&c(e.target)},exports.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}},exports.makeCancelable=h,exports.getIn=m,exports.setIn=_,exports.setNestedObjectValues=S,exports.connect=P,exports.ErrorMessage=N,exports.FormikProvider=E,exports.FormikConsumer=g,exports.useFormikContext=T;
//# sourceMappingURL=formik.cjs.production.js.map

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

var fields = useRef({});
!(typeof isInitialValid === 'undefined') ? process.env.NODE_ENV !== "production" ? invariant(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors instead.') : invariant(false) : void 0;
useEffect(function () {
if (process.env.NODE_ENV !== 'production') {
!(typeof isInitialValid === 'undefined') ? process.env.NODE_ENV !== "production" ? invariant(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors instead.') : invariant(false) : void 0;
}
}, [isInitialValid]);
useEffect(function () {
isMounted.current = true;

@@ -861,3 +865,7 @@ return function () {

var formik = useFormikContext();
!formik ? process.env.NODE_ENV !== "production" ? invariant(false, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component') : invariant(false) : void 0;
if (process.env.NODE_ENV !== 'production') {
!formik ? process.env.NODE_ENV !== "production" ? invariant(false, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component') : invariant(false) : void 0;
}
return formik.getFieldProps(name, type);

@@ -881,7 +889,9 @@ }

useEffect(function () {
!!render ? process.env.NODE_ENV !== "production" ? invariant(false, "<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\"" + name + "\" render={({field, form}) => ...} /> with <Field name=\"" + name + "\">{({field, form, meta}) => ...}</Field>") : invariant(false) : void 0;
!!component ? process.env.NODE_ENV !== "production" ? invariant(false, '<Field component> has been deprecated and will be removed in future versions of Formik. Use <Field as> instead. Note that with the `as` prop, all props are passed directly through and not grouped in `field` object key.') : invariant(false) : void 0;
!!(is && children && isFunction(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.') : invariant(false) : void 0;
!!(component && children && isFunction(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.') : invariant(false) : void 0;
!!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored') : invariant(false) : void 0;
if (process.env.NODE_ENV !== 'production') {
!!render ? process.env.NODE_ENV !== "production" ? invariant(false, "<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name=\"" + name + "\" render={({field, form}) => ...} /> with <Field name=\"" + name + "\">{({field, form, meta}) => ...}</Field>") : invariant(false) : void 0;
!!component ? process.env.NODE_ENV !== "production" ? invariant(false, '<Field component> has been deprecated and will be removed in future versions of Formik. Use <Field as> instead. Note that with the `as` prop, all props are passed directly through and not grouped in `field` object key.') : invariant(false) : void 0;
!!(is && children && isFunction(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.') : invariant(false) : void 0;
!!(component && children && isFunction(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.') : invariant(false) : void 0;
!!(render && children && !isEmptyChildren(children)) ? process.env.NODE_ENV !== "production" ? invariant(false, 'You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored') : invariant(false) : void 0;
}
}, [children, component, is, name, render]);

@@ -888,0 +898,0 @@ useEffect(function () {

@@ -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=e||self).Formik={},e.React)}(this,function(e,t){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}var i=Array.isArray,u=Object.keys,c=Object.prototype.hasOwnProperty,l="undefined"!=typeof Element;var s=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,o,a,s=i(t),f=i(r);if(s&&f){if((o=t.length)!=r.length)return!1;for(n=o;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(s!=f)return!1;var p=t instanceof Date,d=r instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==r.getTime();var v=t instanceof RegExp,y=r instanceof RegExp;if(v!=y)return!1;if(v&&y)return t.toString()==r.toString();var h=u(t);if((o=h.length)!==u(r).length)return!1;for(n=o;0!=n--;)if(!c.call(r,h[n]))return!1;if(l&&t instanceof Element&&r instanceof Element)return t===r;for(n=o;0!=n--;)if(!("_owner"===(a=h[n])&&t.$$typeof||e(t[a],r[a])))return!1;return!0}return t!=t&&r!=r}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},f=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===p}(e)}(e)};var p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?y(Array.isArray(e)?[]:{},e,t):e}function v(e,t,r){return e.concat(t).map(function(e){return d(e,r)})}function y(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||v,r.isMergeableObject=r.isMergeableObject||f;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=d(e[t],r)}),Object.keys(t).forEach(function(o){n[o]=r.isMergeableObject(t[o])&&e[o]?y(e[o],t[o],r):d(t[o],r)}),n}(e,t,r):d(t,r)}y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return y(e,r,t)},{})};var h=y;function b(e,t){return e===t||e!=e&&t!=t}function m(e,t){for(var r=e.length;r--;)if(b(e[r][0],t))return r;return-1}var _=Array.prototype.splice;function j(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}j.prototype.clear=function(){this.__data__=[],this.size=0},j.prototype.delete=function(e){var t=this.__data__,r=m(t,e);return!(r<0||(r==t.length-1?t.pop():_.call(t,r,1),--this.size,0))},j.prototype.get=function(e){var t=this.__data__,r=m(t,e);return r<0?void 0:t[r][1]},j.prototype.has=function(e){return m(this.__data__,e)>-1},j.prototype.set=function(e,t){var r=this.__data__,n=m(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var g="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,E=g||S||Function("return this")(),O=E.Symbol,T=Object.prototype,A=T.hasOwnProperty,F=T.toString,w=O?O.toStringTag:void 0;var C=Object.prototype.toString;var P="[object Null]",I="[object Undefined]",k=O?O.toStringTag:void 0;function R(e){return null==e?void 0===e?I:P:k&&k in Object(e)?function(e){var t=A.call(e,w),r=e[w];try{e[w]=void 0;var n=!0}catch(e){}var o=F.call(e);return n&&(t?e[w]=r:delete e[w]),o}(e):function(e){return C.call(e)}(e)}function M(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var U="[object AsyncFunction]",x="[object Function]",D="[object GeneratorFunction]",V="[object Proxy]";function $(e){if(!M(e))return!1;var t=R(e);return t==x||t==D||t==U||t==V}var L,N=E["__core-js_shared__"],B=(L=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var z=Function.prototype.toString;function W(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var G=/^\[object .+?Constructor\]$/,H=Function.prototype,q=Object.prototype,K=RegExp("^"+H.toString.call(q.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Y(e){return!(!M(e)||(t=e,B&&B in t))&&($(e)?K:G).test(W(e));var t}function J(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(r)?r:void 0}var Q=J(E,"Map"),X=J(Object,"create");var Z="__lodash_hash_undefined__",ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;var re="__lodash_hash_undefined__";function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ne.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return r===Z?void 0:r}return ee.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:te.call(t,e)},ne.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?re:t,this},ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Q||j),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=200;function ue(e){var t=this.__data__=new j(e);this.size=t.size}ue.prototype.clear=function(){this.__data__=new j,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof j){var n=r.__data__;if(!Q||n.length<ie-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ae(n)}return r.set(e,t),this.size=r.size,this};var ce=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function le(e,t,r){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var se=Object.prototype.hasOwnProperty;function fe(e,t,r){var n=e[t];se.call(e,t)&&b(n,r)&&(void 0!==r||t in e)||le(e,t,r)}function pe(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?le(r,u,c):fe(r,u,c)}return r}function de(e){return null!=e&&"object"==typeof e}var ve="[object Arguments]";function ye(e){return de(e)&&R(e)==ve}var he=Object.prototype,be=he.hasOwnProperty,me=he.propertyIsEnumerable,_e=ye(function(){return arguments}())?ye:function(e){return de(e)&&be.call(e,"callee")&&!me.call(e,"callee")},je=Array.isArray;var ge="object"==typeof e&&e&&!e.nodeType&&e,Se=ge&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=Se&&Se.exports===ge?E.Buffer:void 0,Oe=(Ee?Ee.isBuffer:void 0)||function(){return!1},Te=9007199254740991,Ae=/^(?:0|[1-9]\d*)$/;function Fe(e,t){var r=typeof e;return!!(t=null==t?Te:t)&&("number"==r||"symbol"!=r&&Ae.test(e))&&e>-1&&e%1==0&&e<t}var we=9007199254740991;function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=we}var Pe={};function Ie(e){return function(t){return e(t)}}Pe["[object Float32Array]"]=Pe["[object Float64Array]"]=Pe["[object Int8Array]"]=Pe["[object Int16Array]"]=Pe["[object Int32Array]"]=Pe["[object Uint8Array]"]=Pe["[object Uint8ClampedArray]"]=Pe["[object Uint16Array]"]=Pe["[object Uint32Array]"]=!0,Pe["[object Arguments]"]=Pe["[object Array]"]=Pe["[object ArrayBuffer]"]=Pe["[object Boolean]"]=Pe["[object DataView]"]=Pe["[object Date]"]=Pe["[object Error]"]=Pe["[object Function]"]=Pe["[object Map]"]=Pe["[object Number]"]=Pe["[object Object]"]=Pe["[object RegExp]"]=Pe["[object Set]"]=Pe["[object String]"]=Pe["[object WeakMap]"]=!1;var ke="object"==typeof e&&e&&!e.nodeType&&e,Re=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Me=Re&&Re.exports===ke&&g.process,Ue=function(){try{var e=Re&&Re.require&&Re.require("util").types;return e||Me&&Me.binding&&Me.binding("util")}catch(e){}}(),xe=Ue&&Ue.isTypedArray,De=xe?Ie(xe):function(e){return de(e)&&Ce(e.length)&&!!Pe[R(e)]},Ve=Object.prototype.hasOwnProperty;function $e(e,t){var r=je(e),n=!r&&_e(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&De(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!Ve.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Fe(l,c))||u.push(l);return u}var Le=Object.prototype;function Ne(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Be(e,t){return function(r){return e(t(r))}}var ze=Be(Object.keys,Object),We=Object.prototype.hasOwnProperty;function Ge(e){return null!=e&&Ce(e.length)&&!$(e)}function He(e){return Ge(e)?$e(e):function(e){if(!Ne(e))return ze(e);var t=[];for(var r in Object(e))We.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var qe=Object.prototype.hasOwnProperty;function Ke(e){if(!M(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Ne(e),r=[];for(var n in e)("constructor"!=n||!t&&qe.call(e,n))&&r.push(n);return r}function Ye(e){return Ge(e)?$e(e,!0):Ke(e)}var Je="object"==typeof e&&e&&!e.nodeType&&e,Qe=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=Qe&&Qe.exports===Je?E.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;function et(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function tt(){return[]}var rt=Object.prototype.propertyIsEnumerable,nt=Object.getOwnPropertySymbols,ot=nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(nt(e),function(t){return rt.call(e,t)}))}:tt;function at(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var it=Be(Object.getPrototypeOf,Object),ut=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)at(t,ot(e)),e=it(e);return t}:tt;function ct(e,t,r){var n=t(e);return je(e)?n:at(n,r(e))}function lt(e){return ct(e,He,ot)}function st(e){return ct(e,Ye,ut)}var ft=J(E,"DataView"),pt=J(E,"Promise"),dt=J(E,"Set"),vt=J(E,"WeakMap"),yt=W(ft),ht=W(Q),bt=W(pt),mt=W(dt),_t=W(vt),jt=R;(ft&&"[object DataView]"!=jt(new ft(new ArrayBuffer(1)))||Q&&"[object Map]"!=jt(new Q)||pt&&"[object Promise]"!=jt(pt.resolve())||dt&&"[object Set]"!=jt(new dt)||vt&&"[object WeakMap]"!=jt(new vt))&&(jt=function(e){var t=R(e),r="[object Object]"==t?e.constructor:void 0,n=r?W(r):"";if(n)switch(n){case yt:return"[object DataView]";case ht:return"[object Map]";case bt:return"[object Promise]";case mt:return"[object Set]";case _t:return"[object WeakMap]"}return t});var gt=jt,St=Object.prototype.hasOwnProperty;var Et=E.Uint8Array;function Ot(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t}var Tt=/\w*$/;var At=O?O.prototype:void 0,Ft=At?At.valueOf:void 0;var wt="[object Boolean]",Ct="[object Date]",Pt="[object Map]",It="[object Number]",kt="[object RegExp]",Rt="[object Set]",Mt="[object String]",Ut="[object Symbol]",xt="[object ArrayBuffer]",Dt="[object DataView]",Vt="[object Float32Array]",$t="[object Float64Array]",Lt="[object Int8Array]",Nt="[object Int16Array]",Bt="[object Int32Array]",zt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Ht="[object Uint32Array]";function qt(e,t,r){var n,o,a,i=e.constructor;switch(t){case xt:return Ot(e);case wt:case Ct:return new i(+e);case Dt:return function(e,t){var r=t?Ot(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case Vt:case $t:case Lt:case Nt:case Bt:case zt:case Wt:case Gt:case Ht:return function(e,t){var r=t?Ot(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case Pt:return new i;case It:case Mt:return new i(e);case kt:return(a=new(o=e).constructor(o.source,Tt.exec(o))).lastIndex=o.lastIndex,a;case Rt:return new i;case Ut:return n=e,Ft?Object(Ft.call(n)):{}}}var Kt=Object.create,Yt=function(){function e(){}return function(t){if(!M(t))return{};if(Kt)return Kt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Jt="[object Map]";var Qt=Ue&&Ue.isMap,Xt=Qt?Ie(Qt):function(e){return de(e)&&gt(e)==Jt},Zt="[object Set]";var er=Ue&&Ue.isSet,tr=er?Ie(er):function(e){return de(e)&&gt(e)==Zt},rr=1,nr=2,or=4,ar="[object Arguments]",ir="[object Function]",ur="[object GeneratorFunction]",cr="[object Object]",lr={};function sr(e,t,r,n,o,a){var i,u=t&rr,c=t&nr,l=t&or;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!M(e))return e;var s=je(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&St.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return et(e,i)}else{var f=gt(e),p=f==ir||f==ur;if(Oe(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Ze?Ze(r):new e.constructor(r);return e.copy(n),n}(e,u);if(f==cr||f==ar||p&&!o){if(i=c||p?{}:function(e){return"function"!=typeof e.constructor||Ne(e)?{}:Yt(it(e))}(e),!u)return c?function(e,t){return pe(e,ut(e),t)}(e,function(e,t){return e&&pe(t,Ye(t),e)}(i,e)):function(e,t){return pe(e,ot(e),t)}(e,function(e,t){return e&&pe(t,He(t),e)}(i,e))}else{if(!lr[f])return o?e:{};i=qt(e,f,u)}}a||(a=new ue);var d=a.get(e);if(d)return d;if(a.set(e,i),tr(e))return e.forEach(function(n){i.add(sr(n,t,r,n,e,a))}),i;if(Xt(e))return e.forEach(function(n,o){i.set(o,sr(n,t,r,o,e,a))}),i;var v=l?c?st:lt:c?keysIn:He,y=s?void 0:v(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(y||e,function(n,o){y&&(n=e[o=n]),fe(i,o,sr(n,t,r,o,e,a))}),i}lr[ar]=lr["[object Array]"]=lr["[object ArrayBuffer]"]=lr["[object DataView]"]=lr["[object Boolean]"]=lr["[object Date]"]=lr["[object Float32Array]"]=lr["[object Float64Array]"]=lr["[object Int8Array]"]=lr["[object Int16Array]"]=lr["[object Int32Array]"]=lr["[object Map]"]=lr["[object Number]"]=lr[cr]=lr["[object RegExp]"]=lr["[object Set]"]=lr["[object String]"]=lr["[object Symbol]"]=lr["[object Uint8Array]"]=lr["[object Uint8ClampedArray]"]=lr["[object Uint16Array]"]=lr["[object Uint32Array]"]=!0,lr["[object Error]"]=lr[ir]=lr["[object WeakMap]"]=!1;var fr=4;function pr(e){return sr(e,fr)}function dr(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var vr="[object Symbol]";function yr(e){return"symbol"==typeof e||de(e)&&R(e)==vr}var hr="Expected a function";function br(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(hr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(br.Cache||ae),r}br.Cache=ae;var mr=500;var _r,jr,gr,Sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/\\(\\)?/g,Or=(_r=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Sr,function(e,r,n,o){t.push(n?o.replace(Er,"$1"):r||e)}),t},jr=br(_r,function(e){return gr.size===mr&&gr.clear(),e}),gr=jr.cache,jr),Tr=1/0;function Ar(e){if("string"==typeof e||yr(e))return e;var t=e+"";return"0"==t&&1/e==-Tr?"-0":t}var Fr=1/0,wr=O?O.prototype:void 0,Cr=wr?wr.toString:void 0;function Pr(e){if("string"==typeof e)return e;if(je(e))return dr(e,Pr)+"";if(yr(e))return Cr?Cr.call(e):"";var t=e+"";return"0"==t&&1/e==-Fr?"-0":t}function Ir(e){return je(e)?dr(e,Ar):yr(e)?[e]:et(Or(function(e){return null==e?"":Pr(e)}(e)))}var kr=function(e){return"function"==typeof e},Rr=function(e){return null!==e&&"object"==typeof e},Mr=function(e){return String(Math.floor(Number(e)))===e},Ur=function(e){return"[object String]"===Object.prototype.toString.call(e)},xr=function(e){return 0===t.Children.count(e)},Dr=function(e){return Rr(e)&&kr(e.then)};function Vr(e){var t=!1;return[new Promise(function(r,n){e.then(function(e){return t?n({isCanceled:!0}):r(e)},function(e){return n(t?{isCanceled:!0}:e)})}),function(){t=!0}]}function $r(e,t,r,n){void 0===n&&(n=0);for(var o=Ir(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function Lr(e,t,r){for(var n=pr(e),o=n,a=0,i=Ir(t);a<i.length-1;a++){var u=i[a],c=$r(e,i.slice(0,a+1));if(c)o=o[u]=pr(c);else{var l=i[a+1];o=o[u]=Mr(l)&&Number(l)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function Nr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],u=e[i];Rr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Nr(u,t,r,n[i])):n[i]=t}return n}var Br=t.createContext({}),zr=Br.Provider,Wr=Br.Consumer;function Gr(){return t.useContext(Br)}function Hr(e,t){switch(t.type){case"SET_VALUES":return o({},e,{values:t.payload});case"SET_TOUCHED":return o({},e,{touched:t.payload});case"SET_ERRORS":return o({},e,{errors:t.payload});case"SET_STATUS":return o({},e,{status:t.payload});case"SET_ISSUBMITTING":return o({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return o({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return o({},e,{values:Lr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return o({},e,{touched:Lr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return o({},e,{errors:Lr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":case"SET_FORMIK_STATE":return o({},e,t.payload);case"SUBMIT_ATTEMPT":return o({},e,{touched:Nr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return o({},e,{isSubmitting:!1});default:return e}}function qr(e){var r=e.validateOnChange,n=void 0===r||r,i=e.validateOnBlur,u=void 0===i||i,c=e.isInitialValid,l=e.enableReinitialize,f=void 0!==l&&l,p=e.onSubmit,d=a(e,["validateOnChange","validateOnBlur","isInitialValid","enableReinitialize","onSubmit"]),v=o({validateOnChange:n,validateOnBlur:u,onSubmit:p},d),y=t.useRef(v.initialValues),b=t.useRef(v.initialErrors||{}),m=t.useRef(v.initialTouched||{}),_=t.useRef(v.initialStatus),j=t.useRef(!1),g=t.useRef({});t.useEffect(function(){return j.current=!0,function(){j.current=!1}},[]);var S,E,O=t.useReducer(Hr,{values:v.initialValues,errors:v.initialErrors||{},touched:v.initialTouched||{},status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),T=O[0],A=O[1],F=(E=t.useRef(S=T),t.useEffect(function(){E.current=S},[S]),E.current),w=t.useCallback(function(e,t){return new Promise(function(r){var n=v.validate(e,t);void 0===n?r({}):Dr(n)?n.then(function(){r({})},function(e){r(e)}):r(n)})},[v.validate]),C=t.useCallback(function(e,t){return new Promise(function(r){var n=v.validationSchema,o=kr(n)?n(t):n;(t&&o.validateAt?o.validateAt(t,e):Jr(e,o)).then(function(){r({})},function(e){r(Yr(e))})})},[v.validationSchema]),P=t.useCallback(function(e,t){return new Promise(function(r){return r(g.current[e].validate(t))}).then(function(e){return e},function(e){return e})},[g]),I=t.useCallback(function(e){if(null===g.current)return Promise.resolve({});var t=Object.keys(g.current).filter(function(e){return null!==g.current&&g.current[e]&&g.current[e].validate&&kr(g.current[e].validate)}),r=t.length>0?t.map(function(t){return P(t,$r(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r?e:(r&&(e=Lr(e,t[n],r)),e)},{})})},[P,g]),k=t.useCallback(function(e){return void 0===e&&(e=T.values),v.validationSchema||v.validate||g.current&&Object.keys(g.current).filter(function(e){return!!g.current[e].validate}).length>0?(A({type:"SET_ISVALIDATING",payload:!0}),Promise.all([I(e),v.validationSchema?C(e):{},v.validate?w(e):{}]).then(function(e){var t=h.all([e[0],e[1],e[2]],{arrayMerge:Qr});return s(T.errors,t)||A({type:"SET_ERRORS",payload:t}),A({type:"SET_ISVALIDATING",payload:!1}),t})):Promise.resolve({})},[v.validate,v.validationSchema,I,w,C,T.errors,T.values,g]);t.useEffect(function(){if(F.values!==T.values&&n&&!T.isSubmitting&&null!=j.current){var e=Vr(k()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[F.values,T.isSubmitting,T.values,k,n,j]),t.useEffect(function(){if(F.touched!==T.touched&&u&&!T.isSubmitting&&null!=j.current){var e=Vr(k()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[F.touched,T.isSubmitting,T.touched,k,u,j]);var R=t.useCallback(function(e){var t=e&&e.values?e.values:y.current?y.current:v.initialValues,r=e&&e.errors?e.values:b.current?b.current:v.initialErrors||{},n=e&&e.touched?e.values:m.current?m.current:v.initialTouched||{},o=e&&e.status?e.status:_.current?_.current:v.initialStatus;y.current=t,b.current=r,m.current=n,_.current=o,A({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})},[v.initialErrors,v.initialStatus,v.initialTouched,v.initialValues]);t.useEffect(function(){f&&j.current&&!s(y.current,v.initialValues)&&R()},[f,v.initialValues,R]);var M=t.useCallback(function(e){if(null!==g.current&&g.current[e]&&g.current[e].validate&&kr(g.current[e].validate)){var t=$r(T.values,e),r=g.current[e].validate(t);return Dr(r)?(A({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e},function(e){return e}).then(function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return Promise.resolve()},[T.values,g]),U=t.useCallback(function(e,t){null!==g.current&&(g.current[e]={validate:t.validate})},[g]),x=t.useCallback(function(e){null!==g.current&&delete g.current[e]},[g]),D=t.useCallback(function(e){if(Ur(e))return function(r){return t(r,e)};function t(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=t||(n||r.id);A({type:"SET_FIELD_TOUCHED",payload:{field:o,value:!0}})}t(e)},[]),V=t.useCallback(function(e){if(Ur(e))return function(r){return t(r,e)};function t(e,t){var r,n=t,o=e;if(!Ur(e)){e.persist&&e.persist();var a=e.target,i=a.type,u=a.name,c=a.value,l=a.checked;n=t||(u||a.id),o=/number|range/.test(i)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(i)?l:c}n&&A({type:"SET_FIELD_VALUE",payload:{field:n,value:o}})}t(e)},[]);var $=t.useCallback(function(e){A({type:"SET_TOUCHED",payload:e})},[]),L=t.useCallback(function(e){A({type:"SET_ERRORS",payload:e})},[]),N=t.useCallback(function(e){A({type:"SET_VALUES",payload:e})},[]),B=t.useCallback(function(e,t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=t.useCallback(function(e,t){A({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})},[]),W=t.useCallback(function(e,t){void 0===t&&(t=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}})},[]);function G(e){kr(e)?A({type:"SET_FORMIK_STATE",payload:e(T)}):A({type:"SET_FORMIK_STATE",payload:e})}var H=t.useCallback(function(e){A({type:"SET_STATUS",payload:e})},[]),q=t.useCallback(function(e){A({type:"SET_ISSUBMITTING",payload:e})},[]),K={resetForm:R,validateForm:k,validateField:M,setErrors:L,setFieldError:B,setFieldTouched:W,setFieldValue:z,setStatus:H,setSubmitting:q,setTouched:$,setValues:N,setFormikState:G},Y=t.useCallback(function(){return p(T.values,K)},[K,p,T.values]),J=t.useCallback(function(){return A({type:"SUBMIT_ATTEMPT"}),k().then(function(e){0===Object.keys(e).length?Promise.resolve(Y()).then(function(){j.current&&A({type:"SUBMIT_SUCCESS"})}).catch(function(e){j.current&&A({type:"SUBMIT_FAILURE"})}):j.current&&A({type:"SUBMIT_FAILURE"})})},[Y,k]),Q=t.useCallback(function(){if(v.onReset){var e=v.onReset(T.values,K);Dr(e)?e.then(R):R()}else R()},[K,v.onReset,R,T.values]),X=t.useCallback(function(e){return{value:$r(T.values,e),error:$r(T.errors,e),touched:!!$r(T.touched,e),initialValue:$r(y.current,e),initialTouched:!!$r(m.current,e),initialError:$r(b.current,e)}},[T.errors,T.touched,T.values]),Z=t.useCallback(function(e,t){return[{name:e,value:!t||"radio"!==t&&"checkbox"!==t?$r(T.values,e):void 0,onChange:V,onBlur:D},X(e)]},[X,D,V,T.values]),ee=t.useMemo(function(){return!s(y.current,T.values)},[T.values]),te=t.useMemo(function(){return void 0!==c?ee?T.errors&&0===Object.keys(T.errors).length:!1!==c&&kr(c)?c(v):c:T.errors&&0===Object.keys(T.errors).length},[c,ee,T.errors,v]);return o({},T,{initialValues:y.current,initialErrors:b.current,initialTouched:m.current,initialStatus:_.current,handleBlur:D,handleChange:V,handleReset:Q,handleSubmit:function(e){e&&e.preventDefault&&e.preventDefault(),J()},resetForm:R,setErrors:L,setFormikState:G,setFieldTouched:W,setFieldValue:z,setFieldError:B,setStatus:H,setSubmitting:q,setTouched:$,setValues:N,submitForm:J,validateForm:k,validateField:M,isValid:te,dirty:ee,unregisterField:x,registerField:U,getFieldProps:Z,validateOnBlur:u,validateOnChange:n})}function Kr(e){var r=qr(e),n=e.component,o=e.children,a=e.render;return t.createElement(zr,{value:r},n?t.createElement(n,r):a?a(r):o?kr(o)?o(r):xr(o)?null:t.Children.only(o):null)}function Yr(e){var t={};if(0===e.inner.length)return Lr(t,e.path,e.message);for(var r=0,n=e.inner;r<n.length;r++){var o=n[r];t[o.path]||(t=Lr(t,o.path,o.message))}return t}function Jr(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o={};for(var a in e)if(e.hasOwnProperty(a)){var i=String(a);o[i]=""!==e[i]?e[i]:void 0}return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}function Qr(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?h(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=h(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}function Xr(e){var r=e.validate,n=e.name,i=e.render,u=e.children,c=e.as,l=void 0===c?"input":c,s=e.component,f=a(e,["validate","name","render","children","as","component"]),p=Gr(),d=a(p,["validate","validationSchema"]);t.useEffect(function(){i&&u&&xr(u)},[u,s,l,n,i]),t.useEffect(function(){return d.registerField(n,{validate:r}),function(){d.unregisterField(n)}},[d,n,r]);var v=d.getFieldProps(n,f.type),y=v[0],h=v[1],b={field:y,form:d};if(i)return i(b);if(kr(u))return u(o({},b,{meta:h}));if(s){if("string"==typeof s){var m=f.innerRef,_=a(f,["innerRef"]);return t.createElement(s,o({ref:m},y,_),u)}return t.createElement(s,o({field:y,form:d},f),u)}if("string"==typeof l){m=f.innerRef,_=a(f,["innerRef"]);return t.createElement(l,o({ref:m},y,_),u)}return t.createElement(l,o({},y,f),u)}var Zr=Xr;function en(e){var r=Gr();return t.createElement("form",o({onSubmit:r.handleSubmit,onReset:r.handleReset},e))}function tn(e,t){return e(t={exports:{}},t.exports),t.exports}en.displayName="Form";var rn,nn=tn(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116;function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case a:case u:case i:return e;default:switch(e=e&&e.$$typeof){case l:case p:case c:return e;default:return t}}case o:return t}}}function b(e){return h(e)===f}t.typeOf=h,t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Profiler=u,t.Portal=o,t.StrictMode=i,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p)},t.isAsyncMode=function(e){return b(e)||h(e)===s},t.isConcurrentMode=b,t.isContextConsumer=function(e){return h(e)===l},t.isContextProvider=function(e){return h(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===p},t.isFragment=function(e){return h(e)===a},t.isProfiler=function(e){return h(e)===u},t.isPortal=function(e){return h(e)===o},t.isStrictMode=function(e){return h(e)===i}});(rn=nn)&&rn.__esModule&&Object.prototype.hasOwnProperty.call(rn,"default");var on=tn(function(e){e.exports=nn}),an={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},un={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cn={};cn[on.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var ln=Object.defineProperty,sn=Object.getOwnPropertyNames,fn=Object.getOwnPropertySymbols,pn=Object.getOwnPropertyDescriptor,dn=Object.getPrototypeOf,vn=Object.prototype;var yn=function e(t,r,n){if("string"!=typeof r){if(vn){var o=dn(r);o&&o!==vn&&e(t,o,n)}var a=sn(r);fn&&(a=a.concat(fn(r)));for(var i=cn[t.$$typeof]||an,u=cn[r.$$typeof]||an,c=0;c<a.length;++c){var l=a[c];if(!(un[l]||n&&n[l]||u&&u[l]||i&&i[l])){var s=pn(r,l);try{ln(t,l,s)}catch(e){}}}return t}return t};var hn=1,bn=4;function mn(e){return sr(e,hn|bn)}function _n(e){var r=function(r){return t.createElement(Wr,null,function(n){return t.createElement(e,o({},r,{formik:n}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r.WrappedComponent=e,r.displayName="FormikConnect("+n+")",yn(r,e)}var jn=function(e,t,r){var n=(e||[]).slice(),o=n[t];return n.splice(t,1),n.splice(r,0,o),n},gn=function(e,t,r){var n=(e||[]).slice(),o=n[t];return n[t]=n[r],n[r]=o,n},Sn=function(e,t,r){var n=(e||[]).slice();return n.splice(t,0,r),n},En=function(e,t,r){var n=(e||[]).slice();return n[t]=r,n},On=_n(function(e){function r(t){var r=e.call(this,t)||this;return r.updateArrayField=function(e,t,n){var a=r.props,i=a.name,u=a.validateOnChange,c=a.formik,l=c.validateForm;(0,c.setFormikState)(function(r){var a="function"==typeof n?n:e,u="function"==typeof t?t:e;return o({},r,{values:Lr(r.values,i,e($r(r.values,i))),errors:n?Lr(r.errors,i,a($r(r.errors,i))):r.errors,touched:t?Lr(r.touched,i,u($r(r.touched,i))):r.touched})},function(){u&&l()})},r.push=function(e){return r.updateArrayField(function(t){return(t||[]).concat([mn(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return gn(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return jn(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return Sn(r,e,t)},function(t){return Sn(t,e,null)},function(t){return Sn(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return En(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(r),r.pop=r.pop.bind(r),r}return n(r,e),r.prototype.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?r.slice():[];return t||(t=n[e]),kr(n.splice)&&n.splice(e,1),n},!0,!0),t},r.prototype.pop=function(){var e;return this.updateArrayField(function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.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},r=this.props,n=r.component,i=r.render,u=r.children,c=r.name,l=r.formik,s=a(l,["validate","validationSchema"]),f=o({},e,{form:s,name:c});return n?t.createElement(n,f):i?i(f):u?"function"==typeof u?u(f):xr(u)?null:t.Children.only(u):null},r.defaultProps={validateOnChange:!0},r}(t.Component)),Tn=_n(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.shouldComponentUpdate=function(e){return $r(this.props.formik.errors,this.props.name)!==$r(e.formik.errors,this.props.name)||$r(this.props.formik.touched,this.props.name)!==$r(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.prototype.render=function(){var e=this.props,r=e.component,n=e.formik,o=e.render,i=e.children,u=e.name,c=a(e,["component","formik","render","children","name"]),l=$r(n.touched,u),s=$r(n.errors,u);return l&&s?o?kr(o)?o(s):null:i?kr(i)?i(s):null:r?t.createElement(r,c,s):s:null},r}(t.Component));e.useFormik=qr,e.Formik=Kr,e.yupToFormErrors=Yr,e.validateYupSchema=Jr,e.useField=function(e,t){return Gr().getFieldProps(e,t)},e.Field=Xr,e.FastField=Zr,e.Form=en,e.withFormik=function(e){var r=e.mapPropsToValues,i=void 0===r?function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&"function"!=typeof e[r]&&(t[r]=e[r]);return t}:r,u=a(e,["mapPropsToValues"]);return function(e){var r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",c=function(c){function l(){var r=null!==c&&c.apply(this,arguments)||this;return r.validate=function(e){return u.validate(e,r.props)},r.validationSchema=function(){return kr(u.validationSchema)?u.validationSchema(r.props):u.validationSchema},r.handleSubmit=function(e,t){return u.handleSubmit(e,o({},t,{props:r.props}))},r.renderFormComponent=function(n){return t.createElement(e,o({},r.props,n))},r}return n(l,c),l.prototype.render=function(){var e=this.props,r=a(e,["children"]);return t.createElement(Kr,o({},r,u,{validate:u.validate&&this.validate,validationSchema:u.validationSchema&&this.validationSchema,initialValues:i(this.props),initialStatus:u.mapPropsToStatus&&u.mapPropsToStatus(this.props),initialErrors:u.mapPropsToErrors&&u.mapPropsToErrors(this.props),initialTouched:u.mapPropsToTouched&&u.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},l.displayName="WithFormik("+r+")",l}(t.Component);return yn(c,e)}},e.move=jn,e.swap=gn,e.insert=Sn,e.replace=En,e.FieldArray=On,e.isFunction=kr,e.isObject=Rr,e.isInteger=Mr,e.isString=Ur,e.isNaN=function(e){return e!=e},e.isEmptyChildren=xr,e.isPromise=Dr,e.isInputEvent=function(e){return e&&Rr(e)&&Rr(e.target)},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.makeCancelable=Vr,e.getIn=$r,e.setIn=Lr,e.setNestedObjectValues=Nr,e.connect=_n,e.ErrorMessage=Tn,e.FormikProvider=zr,e.FormikConsumer=Wr,e.useFormikContext=Gr,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=e||self).Formik={},e.React)}(this,function(e,t){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}var i=Array.isArray,u=Object.keys,c=Object.prototype.hasOwnProperty,l="undefined"!=typeof Element;var s=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var n,o,a,s=i(t),f=i(r);if(s&&f){if((o=t.length)!=r.length)return!1;for(n=o;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(s!=f)return!1;var p=t instanceof Date,d=r instanceof Date;if(p!=d)return!1;if(p&&d)return t.getTime()==r.getTime();var v=t instanceof RegExp,y=r instanceof RegExp;if(v!=y)return!1;if(v&&y)return t.toString()==r.toString();var h=u(t);if((o=h.length)!==u(r).length)return!1;for(n=o;0!=n--;)if(!c.call(r,h[n]))return!1;if(l&&t instanceof Element&&r instanceof Element)return t===r;for(n=o;0!=n--;)if(!("_owner"===(a=h[n])&&t.$$typeof||e(t[a],r[a])))return!1;return!0}return t!=t&&r!=r}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},f=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===p}(e)}(e)};var p="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?y(Array.isArray(e)?[]:{},e,t):e}function v(e,t,r){return e.concat(t).map(function(e){return d(e,r)})}function y(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||v,r.isMergeableObject=r.isMergeableObject||f;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=d(e[t],r)}),Object.keys(t).forEach(function(o){n[o]=r.isMergeableObject(t[o])&&e[o]?y(e[o],t[o],r):d(t[o],r)}),n}(e,t,r):d(t,r)}y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return y(e,r,t)},{})};var h=y;function b(e,t){return e===t||e!=e&&t!=t}function m(e,t){for(var r=e.length;r--;)if(b(e[r][0],t))return r;return-1}var _=Array.prototype.splice;function j(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}j.prototype.clear=function(){this.__data__=[],this.size=0},j.prototype.delete=function(e){var t=this.__data__,r=m(t,e);return!(r<0||(r==t.length-1?t.pop():_.call(t,r,1),--this.size,0))},j.prototype.get=function(e){var t=this.__data__,r=m(t,e);return r<0?void 0:t[r][1]},j.prototype.has=function(e){return m(this.__data__,e)>-1},j.prototype.set=function(e,t){var r=this.__data__,n=m(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var g="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,E=g||S||Function("return this")(),O=E.Symbol,T=Object.prototype,A=T.hasOwnProperty,F=T.toString,w=O?O.toStringTag:void 0;var C=Object.prototype.toString;var P="[object Null]",I="[object Undefined]",k=O?O.toStringTag:void 0;function R(e){return null==e?void 0===e?I:P:k&&k in Object(e)?function(e){var t=A.call(e,w),r=e[w];try{e[w]=void 0;var n=!0}catch(e){}var o=F.call(e);return n&&(t?e[w]=r:delete e[w]),o}(e):function(e){return C.call(e)}(e)}function M(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var U="[object AsyncFunction]",x="[object Function]",D="[object GeneratorFunction]",V="[object Proxy]";function $(e){if(!M(e))return!1;var t=R(e);return t==x||t==D||t==U||t==V}var L,N=E["__core-js_shared__"],B=(L=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"";var z=Function.prototype.toString;function W(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var G=/^\[object .+?Constructor\]$/,H=Function.prototype,q=Object.prototype,K=RegExp("^"+H.toString.call(q.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Y(e){return!(!M(e)||(t=e,B&&B in t))&&($(e)?K:G).test(W(e));var t}function J(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(r)?r:void 0}var Q=J(E,"Map"),X=J(Object,"create");var Z="__lodash_hash_undefined__",ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;var re="__lodash_hash_undefined__";function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ne.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return r===Z?void 0:r}return ee.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:te.call(t,e)},ne.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?re:t,this},ae.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Q||j),string:new ne}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var r=oe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ie=200;function ue(e){var t=this.__data__=new j(e);this.size=t.size}ue.prototype.clear=function(){this.__data__=new j,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof j){var n=r.__data__;if(!Q||n.length<ie-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ae(n)}return r.set(e,t),this.size=r.size,this};var ce=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function le(e,t,r){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var se=Object.prototype.hasOwnProperty;function fe(e,t,r){var n=e[t];se.call(e,t)&&b(n,r)&&(void 0!==r||t in e)||le(e,t,r)}function pe(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var u=t[a],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?le(r,u,c):fe(r,u,c)}return r}function de(e){return null!=e&&"object"==typeof e}var ve="[object Arguments]";function ye(e){return de(e)&&R(e)==ve}var he=Object.prototype,be=he.hasOwnProperty,me=he.propertyIsEnumerable,_e=ye(function(){return arguments}())?ye:function(e){return de(e)&&be.call(e,"callee")&&!me.call(e,"callee")},je=Array.isArray;var ge="object"==typeof e&&e&&!e.nodeType&&e,Se=ge&&"object"==typeof module&&module&&!module.nodeType&&module,Ee=Se&&Se.exports===ge?E.Buffer:void 0,Oe=(Ee?Ee.isBuffer:void 0)||function(){return!1},Te=9007199254740991,Ae=/^(?:0|[1-9]\d*)$/;function Fe(e,t){var r=typeof e;return!!(t=null==t?Te:t)&&("number"==r||"symbol"!=r&&Ae.test(e))&&e>-1&&e%1==0&&e<t}var we=9007199254740991;function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=we}var Pe={};function Ie(e){return function(t){return e(t)}}Pe["[object Float32Array]"]=Pe["[object Float64Array]"]=Pe["[object Int8Array]"]=Pe["[object Int16Array]"]=Pe["[object Int32Array]"]=Pe["[object Uint8Array]"]=Pe["[object Uint8ClampedArray]"]=Pe["[object Uint16Array]"]=Pe["[object Uint32Array]"]=!0,Pe["[object Arguments]"]=Pe["[object Array]"]=Pe["[object ArrayBuffer]"]=Pe["[object Boolean]"]=Pe["[object DataView]"]=Pe["[object Date]"]=Pe["[object Error]"]=Pe["[object Function]"]=Pe["[object Map]"]=Pe["[object Number]"]=Pe["[object Object]"]=Pe["[object RegExp]"]=Pe["[object Set]"]=Pe["[object String]"]=Pe["[object WeakMap]"]=!1;var ke="object"==typeof e&&e&&!e.nodeType&&e,Re=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Me=Re&&Re.exports===ke&&g.process,Ue=function(){try{var e=Re&&Re.require&&Re.require("util").types;return e||Me&&Me.binding&&Me.binding("util")}catch(e){}}(),xe=Ue&&Ue.isTypedArray,De=xe?Ie(xe):function(e){return de(e)&&Ce(e.length)&&!!Pe[R(e)]},Ve=Object.prototype.hasOwnProperty;function $e(e,t){var r=je(e),n=!r&&_e(e),o=!r&&!n&&Oe(e),a=!r&&!n&&!o&&De(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!Ve.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Fe(l,c))||u.push(l);return u}var Le=Object.prototype;function Ne(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Be(e,t){return function(r){return e(t(r))}}var ze=Be(Object.keys,Object),We=Object.prototype.hasOwnProperty;function Ge(e){return null!=e&&Ce(e.length)&&!$(e)}function He(e){return Ge(e)?$e(e):function(e){if(!Ne(e))return ze(e);var t=[];for(var r in Object(e))We.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}var qe=Object.prototype.hasOwnProperty;function Ke(e){if(!M(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Ne(e),r=[];for(var n in e)("constructor"!=n||!t&&qe.call(e,n))&&r.push(n);return r}function Ye(e){return Ge(e)?$e(e,!0):Ke(e)}var Je="object"==typeof e&&e&&!e.nodeType&&e,Qe=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=Qe&&Qe.exports===Je?E.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;function et(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function tt(){return[]}var rt=Object.prototype.propertyIsEnumerable,nt=Object.getOwnPropertySymbols,ot=nt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(nt(e),function(t){return rt.call(e,t)}))}:tt;function at(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var it=Be(Object.getPrototypeOf,Object),ut=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)at(t,ot(e)),e=it(e);return t}:tt;function ct(e,t,r){var n=t(e);return je(e)?n:at(n,r(e))}function lt(e){return ct(e,He,ot)}function st(e){return ct(e,Ye,ut)}var ft=J(E,"DataView"),pt=J(E,"Promise"),dt=J(E,"Set"),vt=J(E,"WeakMap"),yt=W(ft),ht=W(Q),bt=W(pt),mt=W(dt),_t=W(vt),jt=R;(ft&&"[object DataView]"!=jt(new ft(new ArrayBuffer(1)))||Q&&"[object Map]"!=jt(new Q)||pt&&"[object Promise]"!=jt(pt.resolve())||dt&&"[object Set]"!=jt(new dt)||vt&&"[object WeakMap]"!=jt(new vt))&&(jt=function(e){var t=R(e),r="[object Object]"==t?e.constructor:void 0,n=r?W(r):"";if(n)switch(n){case yt:return"[object DataView]";case ht:return"[object Map]";case bt:return"[object Promise]";case mt:return"[object Set]";case _t:return"[object WeakMap]"}return t});var gt=jt,St=Object.prototype.hasOwnProperty;var Et=E.Uint8Array;function Ot(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t}var Tt=/\w*$/;var At=O?O.prototype:void 0,Ft=At?At.valueOf:void 0;var wt="[object Boolean]",Ct="[object Date]",Pt="[object Map]",It="[object Number]",kt="[object RegExp]",Rt="[object Set]",Mt="[object String]",Ut="[object Symbol]",xt="[object ArrayBuffer]",Dt="[object DataView]",Vt="[object Float32Array]",$t="[object Float64Array]",Lt="[object Int8Array]",Nt="[object Int16Array]",Bt="[object Int32Array]",zt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Ht="[object Uint32Array]";function qt(e,t,r){var n,o,a,i=e.constructor;switch(t){case xt:return Ot(e);case wt:case Ct:return new i(+e);case Dt:return function(e,t){var r=t?Ot(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case Vt:case $t:case Lt:case Nt:case Bt:case zt:case Wt:case Gt:case Ht:return function(e,t){var r=t?Ot(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,r);case Pt:return new i;case It:case Mt:return new i(e);case kt:return(a=new(o=e).constructor(o.source,Tt.exec(o))).lastIndex=o.lastIndex,a;case Rt:return new i;case Ut:return n=e,Ft?Object(Ft.call(n)):{}}}var Kt=Object.create,Yt=function(){function e(){}return function(t){if(!M(t))return{};if(Kt)return Kt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var Jt="[object Map]";var Qt=Ue&&Ue.isMap,Xt=Qt?Ie(Qt):function(e){return de(e)&&gt(e)==Jt},Zt="[object Set]";var er=Ue&&Ue.isSet,tr=er?Ie(er):function(e){return de(e)&&gt(e)==Zt},rr=1,nr=2,or=4,ar="[object Arguments]",ir="[object Function]",ur="[object GeneratorFunction]",cr="[object Object]",lr={};function sr(e,t,r,n,o,a){var i,u=t&rr,c=t&nr,l=t&or;if(r&&(i=o?r(e,n,o,a):r(e)),void 0!==i)return i;if(!M(e))return e;var s=je(e);if(s){if(i=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&St.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return et(e,i)}else{var f=gt(e),p=f==ir||f==ur;if(Oe(e))return function(e,t){if(t)return e.slice();var r=e.length,n=Ze?Ze(r):new e.constructor(r);return e.copy(n),n}(e,u);if(f==cr||f==ar||p&&!o){if(i=c||p?{}:function(e){return"function"!=typeof e.constructor||Ne(e)?{}:Yt(it(e))}(e),!u)return c?function(e,t){return pe(e,ut(e),t)}(e,function(e,t){return e&&pe(t,Ye(t),e)}(i,e)):function(e,t){return pe(e,ot(e),t)}(e,function(e,t){return e&&pe(t,He(t),e)}(i,e))}else{if(!lr[f])return o?e:{};i=qt(e,f,u)}}a||(a=new ue);var d=a.get(e);if(d)return d;if(a.set(e,i),tr(e))return e.forEach(function(n){i.add(sr(n,t,r,n,e,a))}),i;if(Xt(e))return e.forEach(function(n,o){i.set(o,sr(n,t,r,o,e,a))}),i;var v=l?c?st:lt:c?keysIn:He,y=s?void 0:v(e);return function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););}(y||e,function(n,o){y&&(n=e[o=n]),fe(i,o,sr(n,t,r,o,e,a))}),i}lr[ar]=lr["[object Array]"]=lr["[object ArrayBuffer]"]=lr["[object DataView]"]=lr["[object Boolean]"]=lr["[object Date]"]=lr["[object Float32Array]"]=lr["[object Float64Array]"]=lr["[object Int8Array]"]=lr["[object Int16Array]"]=lr["[object Int32Array]"]=lr["[object Map]"]=lr["[object Number]"]=lr[cr]=lr["[object RegExp]"]=lr["[object Set]"]=lr["[object String]"]=lr["[object Symbol]"]=lr["[object Uint8Array]"]=lr["[object Uint8ClampedArray]"]=lr["[object Uint16Array]"]=lr["[object Uint32Array]"]=!0,lr["[object Error]"]=lr[ir]=lr["[object WeakMap]"]=!1;var fr=4;function pr(e){return sr(e,fr)}function dr(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var vr="[object Symbol]";function yr(e){return"symbol"==typeof e||de(e)&&R(e)==vr}var hr="Expected a function";function br(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(hr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(br.Cache||ae),r}br.Cache=ae;var mr=500;var _r,jr,gr,Sr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/\\(\\)?/g,Or=(_r=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Sr,function(e,r,n,o){t.push(n?o.replace(Er,"$1"):r||e)}),t},jr=br(_r,function(e){return gr.size===mr&&gr.clear(),e}),gr=jr.cache,jr),Tr=1/0;function Ar(e){if("string"==typeof e||yr(e))return e;var t=e+"";return"0"==t&&1/e==-Tr?"-0":t}var Fr=1/0,wr=O?O.prototype:void 0,Cr=wr?wr.toString:void 0;function Pr(e){if("string"==typeof e)return e;if(je(e))return dr(e,Pr)+"";if(yr(e))return Cr?Cr.call(e):"";var t=e+"";return"0"==t&&1/e==-Fr?"-0":t}function Ir(e){return je(e)?dr(e,Ar):yr(e)?[e]:et(Or(function(e){return null==e?"":Pr(e)}(e)))}var kr=function(e){return"function"==typeof e},Rr=function(e){return null!==e&&"object"==typeof e},Mr=function(e){return String(Math.floor(Number(e)))===e},Ur=function(e){return"[object String]"===Object.prototype.toString.call(e)},xr=function(e){return 0===t.Children.count(e)},Dr=function(e){return Rr(e)&&kr(e.then)};function Vr(e){var t=!1;return[new Promise(function(r,n){e.then(function(e){return t?n({isCanceled:!0}):r(e)},function(e){return n(t?{isCanceled:!0}:e)})}),function(){t=!0}]}function $r(e,t,r,n){void 0===n&&(n=0);for(var o=Ir(t);e&&n<o.length;)e=e[o[n++]];return void 0===e?r:e}function Lr(e,t,r){for(var n=pr(e),o=n,a=0,i=Ir(t);a<i.length-1;a++){var u=i[a],c=$r(e,i.slice(0,a+1));if(c)o=o[u]=pr(c);else{var l=i[a+1];o=o[u]=Mr(l)&&Number(l)>=0?[]:{}}}return(0===a?e:o)[i[a]]===r?e:(void 0===r?delete o[i[a]]:o[i[a]]=r,0===a&&void 0===r&&delete n[i[a]],n)}function Nr(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var i=a[o],u=e[i];Rr(u)?r.get(u)||(r.set(u,!0),n[i]=Array.isArray(u)?[]:{},Nr(u,t,r,n[i])):n[i]=t}return n}var Br=t.createContext({}),zr=Br.Provider,Wr=Br.Consumer;function Gr(){return t.useContext(Br)}function Hr(e,t){switch(t.type){case"SET_VALUES":return o({},e,{values:t.payload});case"SET_TOUCHED":return o({},e,{touched:t.payload});case"SET_ERRORS":return o({},e,{errors:t.payload});case"SET_STATUS":return o({},e,{status:t.payload});case"SET_ISSUBMITTING":return o({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return o({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return o({},e,{values:Lr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return o({},e,{touched:Lr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return o({},e,{errors:Lr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":case"SET_FORMIK_STATE":return o({},e,t.payload);case"SUBMIT_ATTEMPT":return o({},e,{touched:Nr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return o({},e,{isSubmitting:!1});default:return e}}function qr(e){var r=e.validateOnChange,n=void 0===r||r,i=e.validateOnBlur,u=void 0===i||i,c=e.isInitialValid,l=e.enableReinitialize,f=void 0!==l&&l,p=e.onSubmit,d=a(e,["validateOnChange","validateOnBlur","isInitialValid","enableReinitialize","onSubmit"]),v=o({validateOnChange:n,validateOnBlur:u,onSubmit:p},d),y=t.useRef(v.initialValues),b=t.useRef(v.initialErrors||{}),m=t.useRef(v.initialTouched||{}),_=t.useRef(v.initialStatus),j=t.useRef(!1),g=t.useRef({});t.useEffect(function(){},[c]),t.useEffect(function(){return j.current=!0,function(){j.current=!1}},[]);var S,E,O=t.useReducer(Hr,{values:v.initialValues,errors:v.initialErrors||{},touched:v.initialTouched||{},status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),T=O[0],A=O[1],F=(E=t.useRef(S=T),t.useEffect(function(){E.current=S},[S]),E.current),w=t.useCallback(function(e,t){return new Promise(function(r){var n=v.validate(e,t);void 0===n?r({}):Dr(n)?n.then(function(){r({})},function(e){r(e)}):r(n)})},[v.validate]),C=t.useCallback(function(e,t){return new Promise(function(r){var n=v.validationSchema,o=kr(n)?n(t):n;(t&&o.validateAt?o.validateAt(t,e):Jr(e,o)).then(function(){r({})},function(e){r(Yr(e))})})},[v.validationSchema]),P=t.useCallback(function(e,t){return new Promise(function(r){return r(g.current[e].validate(t))}).then(function(e){return e},function(e){return e})},[g]),I=t.useCallback(function(e){if(null===g.current)return Promise.resolve({});var t=Object.keys(g.current).filter(function(e){return null!==g.current&&g.current[e]&&g.current[e].validate&&kr(g.current[e].validate)}),r=t.length>0?t.map(function(t){return P(t,$r(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r?e:(r&&(e=Lr(e,t[n],r)),e)},{})})},[P,g]),k=t.useCallback(function(e){return void 0===e&&(e=T.values),v.validationSchema||v.validate||g.current&&Object.keys(g.current).filter(function(e){return!!g.current[e].validate}).length>0?(A({type:"SET_ISVALIDATING",payload:!0}),Promise.all([I(e),v.validationSchema?C(e):{},v.validate?w(e):{}]).then(function(e){var t=h.all([e[0],e[1],e[2]],{arrayMerge:Qr});return s(T.errors,t)||A({type:"SET_ERRORS",payload:t}),A({type:"SET_ISVALIDATING",payload:!1}),t})):Promise.resolve({})},[v.validate,v.validationSchema,I,w,C,T.errors,T.values,g]);t.useEffect(function(){if(F.values!==T.values&&n&&!T.isSubmitting&&null!=j.current){var e=Vr(k()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[F.values,T.isSubmitting,T.values,k,n,j]),t.useEffect(function(){if(F.touched!==T.touched&&u&&!T.isSubmitting&&null!=j.current){var e=Vr(k()),t=e[1];return e[0].then(function(e){return e}).catch(function(e){return e}),t}},[F.touched,T.isSubmitting,T.touched,k,u,j]);var R=t.useCallback(function(e){var t=e&&e.values?e.values:y.current?y.current:v.initialValues,r=e&&e.errors?e.values:b.current?b.current:v.initialErrors||{},n=e&&e.touched?e.values:m.current?m.current:v.initialTouched||{},o=e&&e.status?e.status:_.current?_.current:v.initialStatus;y.current=t,b.current=r,m.current=n,_.current=o,A({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})},[v.initialErrors,v.initialStatus,v.initialTouched,v.initialValues]);t.useEffect(function(){f&&j.current&&!s(y.current,v.initialValues)&&R()},[f,v.initialValues,R]);var M=t.useCallback(function(e){if(null!==g.current&&g.current[e]&&g.current[e].validate&&kr(g.current[e].validate)){var t=$r(T.values,e),r=g.current[e].validate(t);return Dr(r)?(A({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e},function(e){return e}).then(function(t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return Promise.resolve()},[T.values,g]),U=t.useCallback(function(e,t){null!==g.current&&(g.current[e]={validate:t.validate})},[g]),x=t.useCallback(function(e){null!==g.current&&delete g.current[e]},[g]),D=t.useCallback(function(e){if(Ur(e))return function(r){return t(r,e)};function t(e,t){e.persist&&e.persist();var r=e.target,n=r.name,o=t||(n||r.id);A({type:"SET_FIELD_TOUCHED",payload:{field:o,value:!0}})}t(e)},[]),V=t.useCallback(function(e){if(Ur(e))return function(r){return t(r,e)};function t(e,t){var r,n=t,o=e;if(!Ur(e)){e.persist&&e.persist();var a=e.target,i=a.type,u=a.name,c=a.value,l=a.checked;n=t||(u||a.id),o=/number|range/.test(i)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(i)?l:c}n&&A({type:"SET_FIELD_VALUE",payload:{field:n,value:o}})}t(e)},[]);var $=t.useCallback(function(e){A({type:"SET_TOUCHED",payload:e})},[]),L=t.useCallback(function(e){A({type:"SET_ERRORS",payload:e})},[]),N=t.useCallback(function(e){A({type:"SET_VALUES",payload:e})},[]),B=t.useCallback(function(e,t){A({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=t.useCallback(function(e,t){A({type:"SET_FIELD_VALUE",payload:{field:e,value:t}})},[]),W=t.useCallback(function(e,t){void 0===t&&(t=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}})},[]);function G(e){kr(e)?A({type:"SET_FORMIK_STATE",payload:e(T)}):A({type:"SET_FORMIK_STATE",payload:e})}var H=t.useCallback(function(e){A({type:"SET_STATUS",payload:e})},[]),q=t.useCallback(function(e){A({type:"SET_ISSUBMITTING",payload:e})},[]),K={resetForm:R,validateForm:k,validateField:M,setErrors:L,setFieldError:B,setFieldTouched:W,setFieldValue:z,setStatus:H,setSubmitting:q,setTouched:$,setValues:N,setFormikState:G},Y=t.useCallback(function(){return p(T.values,K)},[K,p,T.values]),J=t.useCallback(function(){return A({type:"SUBMIT_ATTEMPT"}),k().then(function(e){0===Object.keys(e).length?Promise.resolve(Y()).then(function(){j.current&&A({type:"SUBMIT_SUCCESS"})}).catch(function(e){j.current&&A({type:"SUBMIT_FAILURE"})}):j.current&&A({type:"SUBMIT_FAILURE"})})},[Y,k]),Q=t.useCallback(function(){if(v.onReset){var e=v.onReset(T.values,K);Dr(e)?e.then(R):R()}else R()},[K,v.onReset,R,T.values]),X=t.useCallback(function(e){return{value:$r(T.values,e),error:$r(T.errors,e),touched:!!$r(T.touched,e),initialValue:$r(y.current,e),initialTouched:!!$r(m.current,e),initialError:$r(b.current,e)}},[T.errors,T.touched,T.values]),Z=t.useCallback(function(e,t){return[{name:e,value:!t||"radio"!==t&&"checkbox"!==t?$r(T.values,e):void 0,onChange:V,onBlur:D},X(e)]},[X,D,V,T.values]),ee=t.useMemo(function(){return!s(y.current,T.values)},[T.values]),te=t.useMemo(function(){return void 0!==c?ee?T.errors&&0===Object.keys(T.errors).length:!1!==c&&kr(c)?c(v):c:T.errors&&0===Object.keys(T.errors).length},[c,ee,T.errors,v]);return o({},T,{initialValues:y.current,initialErrors:b.current,initialTouched:m.current,initialStatus:_.current,handleBlur:D,handleChange:V,handleReset:Q,handleSubmit:function(e){e&&e.preventDefault&&e.preventDefault(),J()},resetForm:R,setErrors:L,setFormikState:G,setFieldTouched:W,setFieldValue:z,setFieldError:B,setStatus:H,setSubmitting:q,setTouched:$,setValues:N,submitForm:J,validateForm:k,validateField:M,isValid:te,dirty:ee,unregisterField:x,registerField:U,getFieldProps:Z,validateOnBlur:u,validateOnChange:n})}function Kr(e){var r=qr(e),n=e.component,o=e.children,a=e.render;return t.createElement(zr,{value:r},n?t.createElement(n,r):a?a(r):o?kr(o)?o(r):xr(o)?null:t.Children.only(o):null)}function Yr(e){var t={};if(0===e.inner.length)return Lr(t,e.path,e.message);for(var r=0,n=e.inner;r<n.length;r++){var o=n[r];t[o.path]||(t=Lr(t,o.path,o.message))}return t}function Jr(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o={};for(var a in e)if(e.hasOwnProperty(a)){var i=String(a);o[i]=""!==e[i]?e[i]:void 0}return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}function Qr(e,t,r){var n=e.slice();return t.forEach(function(t,o){if(void 0===n[o]){var a=!1!==r.clone&&r.isMergeableObject(t);n[o]=a?h(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[o]=h(e[o],t,r):-1===e.indexOf(t)&&n.push(t)}),n}function Xr(e){var r=e.validate,n=e.name,i=e.render,u=e.children,c=e.as,l=void 0===c?"input":c,s=e.component,f=a(e,["validate","name","render","children","as","component"]),p=Gr(),d=a(p,["validate","validationSchema"]);t.useEffect(function(){},[u,s,l,n,i]),t.useEffect(function(){return d.registerField(n,{validate:r}),function(){d.unregisterField(n)}},[d,n,r]);var v=d.getFieldProps(n,f.type),y=v[0],h=v[1],b={field:y,form:d};if(i)return i(b);if(kr(u))return u(o({},b,{meta:h}));if(s){if("string"==typeof s){var m=f.innerRef,_=a(f,["innerRef"]);return t.createElement(s,o({ref:m},y,_),u)}return t.createElement(s,o({field:y,form:d},f),u)}if("string"==typeof l){m=f.innerRef,_=a(f,["innerRef"]);return t.createElement(l,o({ref:m},y,_),u)}return t.createElement(l,o({},y,f),u)}var Zr=Xr;function en(e){var r=Gr();return t.createElement("form",o({onSubmit:r.handleSubmit,onReset:r.handleReset},e))}function tn(e,t){return e(t={exports:{}},t.exports),t.exports}en.displayName="Form";var rn,nn=tn(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116;function h(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case a:case u:case i:return e;default:switch(e=e&&e.$$typeof){case l:case p:case c:return e;default:return t}}case o:return t}}}function b(e){return h(e)===f}t.typeOf=h,t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Profiler=u,t.Portal=o,t.StrictMode=i,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===u||e===i||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p)},t.isAsyncMode=function(e){return b(e)||h(e)===s},t.isConcurrentMode=b,t.isContextConsumer=function(e){return h(e)===l},t.isContextProvider=function(e){return h(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return h(e)===p},t.isFragment=function(e){return h(e)===a},t.isProfiler=function(e){return h(e)===u},t.isPortal=function(e){return h(e)===o},t.isStrictMode=function(e){return h(e)===i}});(rn=nn)&&rn.__esModule&&Object.prototype.hasOwnProperty.call(rn,"default");var on=tn(function(e){e.exports=nn}),an={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},un={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cn={};cn[on.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var ln=Object.defineProperty,sn=Object.getOwnPropertyNames,fn=Object.getOwnPropertySymbols,pn=Object.getOwnPropertyDescriptor,dn=Object.getPrototypeOf,vn=Object.prototype;var yn=function e(t,r,n){if("string"!=typeof r){if(vn){var o=dn(r);o&&o!==vn&&e(t,o,n)}var a=sn(r);fn&&(a=a.concat(fn(r)));for(var i=cn[t.$$typeof]||an,u=cn[r.$$typeof]||an,c=0;c<a.length;++c){var l=a[c];if(!(un[l]||n&&n[l]||u&&u[l]||i&&i[l])){var s=pn(r,l);try{ln(t,l,s)}catch(e){}}}return t}return t};var hn=1,bn=4;function mn(e){return sr(e,hn|bn)}function _n(e){var r=function(r){return t.createElement(Wr,null,function(n){return t.createElement(e,o({},r,{formik:n}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r.WrappedComponent=e,r.displayName="FormikConnect("+n+")",yn(r,e)}var jn=function(e,t,r){var n=(e||[]).slice(),o=n[t];return n.splice(t,1),n.splice(r,0,o),n},gn=function(e,t,r){var n=(e||[]).slice(),o=n[t];return n[t]=n[r],n[r]=o,n},Sn=function(e,t,r){var n=(e||[]).slice();return n.splice(t,0,r),n},En=function(e,t,r){var n=(e||[]).slice();return n[t]=r,n},On=_n(function(e){function r(t){var r=e.call(this,t)||this;return r.updateArrayField=function(e,t,n){var a=r.props,i=a.name,u=a.validateOnChange,c=a.formik,l=c.validateForm;(0,c.setFormikState)(function(r){var a="function"==typeof n?n:e,u="function"==typeof t?t:e;return o({},r,{values:Lr(r.values,i,e($r(r.values,i))),errors:n?Lr(r.errors,i,a($r(r.errors,i))):r.errors,touched:t?Lr(r.touched,i,u($r(r.touched,i))):r.touched})},function(){u&&l()})},r.push=function(e){return r.updateArrayField(function(t){return(t||[]).concat([mn(e)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return gn(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return jn(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return Sn(r,e,t)},function(t){return Sn(t,e,null)},function(t){return Sn(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return En(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r},function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(r),r.pop=r.pop.bind(r),r}return n(r,e),r.prototype.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?r.slice():[];return t||(t=n[e]),kr(n.splice)&&n.splice(e,1),n},!0,!0),t},r.prototype.pop=function(){var e;return this.updateArrayField(function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},r.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},r=this.props,n=r.component,i=r.render,u=r.children,c=r.name,l=r.formik,s=a(l,["validate","validationSchema"]),f=o({},e,{form:s,name:c});return n?t.createElement(n,f):i?i(f):u?"function"==typeof u?u(f):xr(u)?null:t.Children.only(u):null},r.defaultProps={validateOnChange:!0},r}(t.Component)),Tn=_n(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.shouldComponentUpdate=function(e){return $r(this.props.formik.errors,this.props.name)!==$r(e.formik.errors,this.props.name)||$r(this.props.formik.touched,this.props.name)!==$r(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},r.prototype.render=function(){var e=this.props,r=e.component,n=e.formik,o=e.render,i=e.children,u=e.name,c=a(e,["component","formik","render","children","name"]),l=$r(n.touched,u),s=$r(n.errors,u);return l&&s?o?kr(o)?o(s):null:i?kr(i)?i(s):null:r?t.createElement(r,c,s):s:null},r}(t.Component));e.useFormik=qr,e.Formik=Kr,e.yupToFormErrors=Yr,e.validateYupSchema=Jr,e.useField=function(e,t){return Gr().getFieldProps(e,t)},e.Field=Xr,e.FastField=Zr,e.Form=en,e.withFormik=function(e){var r=e.mapPropsToValues,i=void 0===r?function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&"function"!=typeof e[r]&&(t[r]=e[r]);return t}:r,u=a(e,["mapPropsToValues"]);return function(e){var r=e.displayName||e.name||e.constructor&&e.constructor.name||"Component",c=function(c){function l(){var r=null!==c&&c.apply(this,arguments)||this;return r.validate=function(e){return u.validate(e,r.props)},r.validationSchema=function(){return kr(u.validationSchema)?u.validationSchema(r.props):u.validationSchema},r.handleSubmit=function(e,t){return u.handleSubmit(e,o({},t,{props:r.props}))},r.renderFormComponent=function(n){return t.createElement(e,o({},r.props,n))},r}return n(l,c),l.prototype.render=function(){var e=this.props,r=a(e,["children"]);return t.createElement(Kr,o({},r,u,{validate:u.validate&&this.validate,validationSchema:u.validationSchema&&this.validationSchema,initialValues:i(this.props),initialStatus:u.mapPropsToStatus&&u.mapPropsToStatus(this.props),initialErrors:u.mapPropsToErrors&&u.mapPropsToErrors(this.props),initialTouched:u.mapPropsToTouched&&u.mapPropsToTouched(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},l.displayName="WithFormik("+r+")",l}(t.Component);return yn(c,e)}},e.move=jn,e.swap=gn,e.insert=Sn,e.replace=En,e.FieldArray=On,e.isFunction=kr,e.isObject=Rr,e.isInteger=Mr,e.isString=Ur,e.isNaN=function(e){return e!=e},e.isEmptyChildren=xr,e.isPromise=Dr,e.isInputEvent=function(e){return e&&Rr(e)&&Rr(e.target)},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.makeCancelable=Vr,e.getIn=$r,e.setIn=Lr,e.setNestedObjectValues=Nr,e.connect=_n,e.ErrorMessage=Tn,e.FormikProvider=zr,e.FormikConsumer=Wr,e.useFormikContext=Gr,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=formik.umd.production.js.map
{
"name": "formik",
"description": "Forms in React, without tears",
"version": "2.0.1-alpha.3",
"version": "2.0.1-alpha.4",
"license": "MIT",

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

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

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