formik
Version:
Forms in React, without tears
3 lines (2 loc) • 41.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t=t||self).Formik={},t.React)}(this,function(t,e){"use strict";var r="default"in e?e.default:e,n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function o(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&(r[n[o]]=t[n[o]])}return r}var u=Array.isArray,c=Object.keys,s=Object.prototype.hasOwnProperty,l="undefined"!=typeof Element;var f=function(t,e){try{return function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){var n,o,i,a=u(e),f=u(r);if(a&&f){if((o=e.length)!=r.length)return!1;for(n=o;0!=n--;)if(!t(e[n],r[n]))return!1;return!0}if(a!=f)return!1;var p=e instanceof Date,d=r instanceof Date;if(p!=d)return!1;if(p&&d)return e.getTime()==r.getTime();var h=e instanceof RegExp,v=r instanceof RegExp;if(h!=v)return!1;if(h&&v)return e.toString()==r.toString();var y=c(e);if((o=y.length)!==c(r).length)return!1;for(n=o;0!=n--;)if(!s.call(r,y[n]))return!1;if(l&&e instanceof Element&&r instanceof Element)return e===r;for(n=o;0!=n--;)if(!("_owner"===(i=y[n])&&e.$$typeof||t(e[i],r[i])))return!1;return!0}return e!=e&&r!=r}(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},p=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===d}(t)}(t)};var d="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function h(t,e){return!1!==e.clone&&e.isMergeableObject(t)?y(Array.isArray(t)?[]:{},t,e):t}function v(t,e,r){return t.concat(e).map(function(t){return h(t,r)})}function y(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||v,r.isMergeableObject=r.isMergeableObject||p;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach(function(e){n[e]=h(t[e],r)}),Object.keys(e).forEach(function(o){n[o]=r.isMergeableObject(e[o])&&t[o]?y(t[o],e[o],r):h(e[o],r)}),n}(t,e,r):h(e,r)}y.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,r){return y(t,r,e)},{})};var m=y,b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function j(t,e){return t(e={exports:{}},e.exports),e.exports}var _=j(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=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,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function y(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case f:case i:case u:case a:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case c:return t;default:return e}}case v:case h:case o:return e}}}function m(t){return y(t)===f}e.typeOf=y,e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=p,e.Fragment=i,e.Lazy=v,e.Memo=h,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=d,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===u||t===a||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===h||t.$$typeof===c||t.$$typeof===s||t.$$typeof===p)},e.isAsyncMode=function(t){return m(t)||y(t)===l},e.isConcurrentMode=m,e.isContextConsumer=function(t){return y(t)===s},e.isContextProvider=function(t){return y(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return y(t)===p},e.isFragment=function(t){return y(t)===i},e.isLazy=function(t){return y(t)===v},e.isMemo=function(t){return y(t)===h},e.isPortal=function(t){return y(t)===o},e.isProfiler=function(t){return y(t)===u},e.isStrictMode=function(t){return y(t)===a},e.isSuspense=function(t){return y(t)===d}});g(_);var S=j(function(t){t.exports=_}),O={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},F={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},w={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},k={};function A(t){return S.isMemo(t)?w:k[t.$$typeof]||O}k[S.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var P=Object.defineProperty,C=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,V=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,M=Object.prototype;var T=function t(e,r,n){if("string"!=typeof r){if(M){var o=x(r);o&&o!==M&&t(e,o,n)}var i=C(r);E&&(i=i.concat(E(r)));for(var a=A(e),u=A(r),c=0;c<i.length;++c){var s=i[c];if(!(F[s]||n&&n[s]||u&&u[s]||a&&a[s])){var l=V(r,s);try{P(e,s,l)}catch(t){}}}return e}return e};function R(t){return function(){return t}}var U=function(){};U.thatReturns=R,U.thatReturnsFalse=R(!1),U.thatReturnsTrue=R(!0),U.thatReturnsNull=R(null),U.thatReturnsThis=function(){return this},U.thatReturnsArgument=function(t){return t};var $=U,B=function(t){};var D=function(t,e,r,n,o,i,a,u){if(B(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,i,a,u],l=0;(c=new Error(e.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}},I="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",z=j(function(t){t.exports=function(){function t(t,e,r,n,o,i){i!==I&&D(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var r={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return r.checkPropTypes=$,r.PropTypes=r,r}()}),N="__global_unique_id__",L=function(){return b[N]=(b[N]||0)+1},W=$,q=j(function(t,e){e.__esModule=!0;i(r);var n=i(z),o=i(L);i(W);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=1073741823;e.default=function(t,e){var i,l,f="__create-react-context-"+(0,o.default)()+"__",p=function(t){function r(){var e,n,o,i;a(this,r);for(var c=arguments.length,s=Array(c),l=0;l<c;l++)s[l]=arguments[l];return e=n=u(this,t.call.apply(t,[this].concat(s))),n.emitter=(o=n.props.value,i=[],{on:function(t){i.push(t)},off:function(t){i=i.filter(function(e){return e!==t})},get:function(){return o},set:function(t,e){o=t,i.forEach(function(t){return t(o,e)})}}),u(n,e)}return c(r,t),r.prototype.getChildContext=function(){var t;return(t={})[f]=this.emitter,t},r.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var r=this.props.value,n=t.value,o=void 0;((i=r)===(a=n)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof e?e(r,n):s,0!=(o|=0)&&this.emitter.set(t.value,o))}var i,a},r.prototype.render=function(){return this.props.children},r}(r.Component);p.childContextTypes=((i={})[f]=n.default.object.isRequired,i);var d=function(e){function r(){var t,n;a(this,r);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return t=n=u(this,e.call.apply(e,[this].concat(i))),n.state={value:n.getValue()},n.onUpdate=function(t,e){0!=((0|n.observedBits)&e)&&n.setState({value:n.getValue()})},u(n,t)}return c(r,e),r.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?s:e},r.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?s:t},r.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},r.prototype.getValue=function(){return this.context[f]?this.context[f].get():t},r.prototype.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},r}(r.Component);return d.contextTypes=((l={})[f]=n.default.object,l),{Provider:p,Consumer:d}},t.exports=e.default});g(q);var Y,H=(Y=g(j(function(t,e){e.__esModule=!0;var n=i(r),o=i(q);function i(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||o.default,t.exports=e.default}))({})).Provider,G=Y.Consumer;function J(t){var r=function(r){return e.createElement(G,null,function(n){return e.createElement(t,i({},r,{formik:n}))})},n=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return r.WrappedComponent=t,r.displayName="FormikConnect("+n+")",T(r,t)}function K(t,e){return t===e||t!=t&&e!=e}function Q(t,e){for(var r=t.length;r--;)if(K(t[r][0],e))return r;return-1}var X=Array.prototype.splice;function Z(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Z.prototype.clear=function(){this.__data__=[],this.size=0},Z.prototype.delete=function(t){var e=this.__data__,r=Q(e,t);return!(r<0||(r==e.length-1?e.pop():X.call(e,r,1),--this.size,0))},Z.prototype.get=function(t){var e=this.__data__,r=Q(e,t);return r<0?void 0:e[r][1]},Z.prototype.has=function(t){return Q(this.__data__,t)>-1},Z.prototype.set=function(t,e){var r=this.__data__,n=Q(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var tt="object"==typeof global&&global&&global.Object===Object&&global,et="object"==typeof self&&self&&self.Object===Object&&self,rt=tt||et||Function("return this")(),nt=rt.Symbol,ot=Object.prototype,it=ot.hasOwnProperty,at=ot.toString,ut=nt?nt.toStringTag:void 0;var ct=Object.prototype.toString;var st="[object Null]",lt="[object Undefined]",ft=nt?nt.toStringTag:void 0;function pt(t){return null==t?void 0===t?lt:st:ft&&ft in Object(t)?function(t){var e=it.call(t,ut),r=t[ut];try{t[ut]=void 0;var n=!0}catch(t){}var o=at.call(t);return n&&(e?t[ut]=r:delete t[ut]),o}(t):function(t){return ct.call(t)}(t)}function dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ht="[object AsyncFunction]",vt="[object Function]",yt="[object GeneratorFunction]",mt="[object Proxy]";function bt(t){if(!dt(t))return!1;var e=pt(t);return e==vt||e==yt||e==ht||e==mt}var gt,jt=rt["__core-js_shared__"],_t=(gt=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||""))?"Symbol(src)_1."+gt:"";var St=Function.prototype.toString;function Ot(t){if(null!=t){try{return St.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Ft=/^\[object .+?Constructor\]$/,wt=Function.prototype,kt=Object.prototype,At=RegExp("^"+wt.toString.call(kt.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pt(t){return!(!dt(t)||(e=t,_t&&_t in e))&&(bt(t)?At:Ft).test(Ot(t));var e}function Ct(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Pt(r)?r:void 0}var Et=Ct(rt,"Map"),Vt=Ct(Object,"create");var xt="__lodash_hash_undefined__",Mt=Object.prototype.hasOwnProperty;var Tt=Object.prototype.hasOwnProperty;var Rt="__lodash_hash_undefined__";function Ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function $t(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Bt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ut.prototype.clear=function(){this.__data__=Vt?Vt(null):{},this.size=0},Ut.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ut.prototype.get=function(t){var e=this.__data__;if(Vt){var r=e[t];return r===xt?void 0:r}return Mt.call(e,t)?e[t]:void 0},Ut.prototype.has=function(t){var e=this.__data__;return Vt?void 0!==e[t]:Tt.call(e,t)},Ut.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Vt&&void 0===e?Rt:e,this},Bt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ut,map:new(Et||Z),string:new Ut}},Bt.prototype.delete=function(t){var e=$t(this,t).delete(t);return this.size-=e?1:0,e},Bt.prototype.get=function(t){return $t(this,t).get(t)},Bt.prototype.has=function(t){return $t(this,t).has(t)},Bt.prototype.set=function(t,e){var r=$t(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Dt=200;function It(t){var e=this.__data__=new Z(t);this.size=e.size}It.prototype.clear=function(){this.__data__=new Z,this.size=0},It.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},It.prototype.get=function(t){return this.__data__.get(t)},It.prototype.has=function(t){return this.__data__.has(t)},It.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Z){var n=r.__data__;if(!Et||n.length<Dt-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Bt(n)}return r.set(t,e),this.size=r.size,this};var zt=function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Nt(t,e,r){"__proto__"==e&&zt?zt(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Lt=Object.prototype.hasOwnProperty;function Wt(t,e,r){var n=t[e];Lt.call(t,e)&&K(n,r)&&(void 0!==r||e in t)||Nt(t,e,r)}function qt(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var u=e[i],c=n?n(r[u],t[u],u,r,t):void 0;void 0===c&&(c=t[u]),o?Nt(r,u,c):Wt(r,u,c)}return r}function Yt(t){return null!=t&&"object"==typeof t}var Ht="[object Arguments]";function Gt(t){return Yt(t)&&pt(t)==Ht}var Jt=Object.prototype,Kt=Jt.hasOwnProperty,Qt=Jt.propertyIsEnumerable,Xt=Gt(function(){return arguments}())?Gt:function(t){return Yt(t)&&Kt.call(t,"callee")&&!Qt.call(t,"callee")},Zt=Array.isArray;var te="object"==typeof t&&t&&!t.nodeType&&t,ee=te&&"object"==typeof module&&module&&!module.nodeType&&module,re=ee&&ee.exports===te?rt.Buffer:void 0,ne=(re?re.isBuffer:void 0)||function(){return!1},oe=9007199254740991,ie=/^(?:0|[1-9]\d*)$/;function ae(t,e){var r=typeof t;return!!(e=null==e?oe:e)&&("number"==r||"symbol"!=r&&ie.test(t))&&t>-1&&t%1==0&&t<e}var ue=9007199254740991;function ce(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=ue}var se={};function le(t){return function(e){return t(e)}}se["[object Float32Array]"]=se["[object Float64Array]"]=se["[object Int8Array]"]=se["[object Int16Array]"]=se["[object Int32Array]"]=se["[object Uint8Array]"]=se["[object Uint8ClampedArray]"]=se["[object Uint16Array]"]=se["[object Uint32Array]"]=!0,se["[object Arguments]"]=se["[object Array]"]=se["[object ArrayBuffer]"]=se["[object Boolean]"]=se["[object DataView]"]=se["[object Date]"]=se["[object Error]"]=se["[object Function]"]=se["[object Map]"]=se["[object Number]"]=se["[object Object]"]=se["[object RegExp]"]=se["[object Set]"]=se["[object String]"]=se["[object WeakMap]"]=!1;var fe="object"==typeof t&&t&&!t.nodeType&&t,pe=fe&&"object"==typeof module&&module&&!module.nodeType&&module,de=pe&&pe.exports===fe&&tt.process,he=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||de&&de.binding&&de.binding("util")}catch(t){}}(),ve=he&&he.isTypedArray,ye=ve?le(ve):function(t){return Yt(t)&&ce(t.length)&&!!se[pt(t)]},me=Object.prototype.hasOwnProperty;function be(t,e){var r=Zt(t),n=!r&&Xt(t),o=!r&&!n&&ne(t),i=!r&&!n&&!o&&ye(t),a=r||n||o||i,u=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=u.length;for(var s in t)!e&&!me.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ae(s,c))||u.push(s);return u}var ge=Object.prototype;function je(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ge)}function _e(t,e){return function(r){return t(e(r))}}var Se=_e(Object.keys,Object),Oe=Object.prototype.hasOwnProperty;function Fe(t){return null!=t&&ce(t.length)&&!bt(t)}function we(t){return Fe(t)?be(t):function(t){if(!je(t))return Se(t);var e=[];for(var r in Object(t))Oe.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var ke=Object.prototype.hasOwnProperty;function Ae(t){if(!dt(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=je(t),r=[];for(var n in t)("constructor"!=n||!e&&ke.call(t,n))&&r.push(n);return r}function Pe(t){return Fe(t)?be(t,!0):Ae(t)}var Ce="object"==typeof t&&t&&!t.nodeType&&t,Ee=Ce&&"object"==typeof module&&module&&!module.nodeType&&module,Ve=Ee&&Ee.exports===Ce?rt.Buffer:void 0,xe=Ve?Ve.allocUnsafe:void 0;function Me(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Te(){return[]}var Re=Object.prototype.propertyIsEnumerable,Ue=Object.getOwnPropertySymbols,$e=Ue?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(Ue(t),function(e){return Re.call(t,e)}))}:Te;function Be(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var De=_e(Object.getPrototypeOf,Object),Ie=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Be(e,$e(t)),t=De(t);return e}:Te;function ze(t,e,r){var n=e(t);return Zt(t)?n:Be(n,r(t))}function Ne(t){return ze(t,we,$e)}function Le(t){return ze(t,Pe,Ie)}var We=Ct(rt,"DataView"),qe=Ct(rt,"Promise"),Ye=Ct(rt,"Set"),He=Ct(rt,"WeakMap"),Ge=Ot(We),Je=Ot(Et),Ke=Ot(qe),Qe=Ot(Ye),Xe=Ot(He),Ze=pt;(We&&"[object DataView]"!=Ze(new We(new ArrayBuffer(1)))||Et&&"[object Map]"!=Ze(new Et)||qe&&"[object Promise]"!=Ze(qe.resolve())||Ye&&"[object Set]"!=Ze(new Ye)||He&&"[object WeakMap]"!=Ze(new He))&&(Ze=function(t){var e=pt(t),r="[object Object]"==e?t.constructor:void 0,n=r?Ot(r):"";if(n)switch(n){case Ge:return"[object DataView]";case Je:return"[object Map]";case Ke:return"[object Promise]";case Qe:return"[object Set]";case Xe:return"[object WeakMap]"}return e});var tr=Ze,er=Object.prototype.hasOwnProperty;var rr=rt.Uint8Array;function nr(t){var e=new t.constructor(t.byteLength);return new rr(e).set(new rr(t)),e}var or=/\w*$/;var ir=nt?nt.prototype:void 0,ar=ir?ir.valueOf:void 0;var ur="[object Boolean]",cr="[object Date]",sr="[object Map]",lr="[object Number]",fr="[object RegExp]",pr="[object Set]",dr="[object String]",hr="[object Symbol]",vr="[object ArrayBuffer]",yr="[object DataView]",mr="[object Float32Array]",br="[object Float64Array]",gr="[object Int8Array]",jr="[object Int16Array]",_r="[object Int32Array]",Sr="[object Uint8Array]",Or="[object Uint8ClampedArray]",Fr="[object Uint16Array]",wr="[object Uint32Array]";function kr(t,e,r){var n,o,i,a=t.constructor;switch(e){case vr:return nr(t);case ur:case cr:return new a(+t);case yr:return function(t,e){var r=e?nr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case mr:case br:case gr:case jr:case _r:case Sr:case Or:case Fr:case wr:return function(t,e){var r=e?nr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case sr:return new a;case lr:case dr:return new a(t);case fr:return(i=new(o=t).constructor(o.source,or.exec(o))).lastIndex=o.lastIndex,i;case pr:return new a;case hr:return n=t,ar?Object(ar.call(n)):{}}}var Ar=Object.create,Pr=function(){function t(){}return function(e){if(!dt(e))return{};if(Ar)return Ar(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var Cr="[object Map]";var Er=he&&he.isMap,Vr=Er?le(Er):function(t){return Yt(t)&&tr(t)==Cr},xr="[object Set]";var Mr=he&&he.isSet,Tr=Mr?le(Mr):function(t){return Yt(t)&&tr(t)==xr},Rr=1,Ur=2,$r=4,Br="[object Arguments]",Dr="[object Function]",Ir="[object GeneratorFunction]",zr="[object Object]",Nr={};function Lr(t,e,r,n,o,i){var a,u=e&Rr,c=e&Ur,s=e&$r;if(r&&(a=o?r(t,n,o,i):r(t)),void 0!==a)return a;if(!dt(t))return t;var l=Zt(t);if(l){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&er.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return Me(t,a)}else{var f=tr(t),p=f==Dr||f==Ir;if(ne(t))return function(t,e){if(e)return t.slice();var r=t.length,n=xe?xe(r):new t.constructor(r);return t.copy(n),n}(t,u);if(f==zr||f==Br||p&&!o){if(a=c||p?{}:function(t){return"function"!=typeof t.constructor||je(t)?{}:Pr(De(t))}(t),!u)return c?function(t,e){return qt(t,Ie(t),e)}(t,function(t,e){return t&&qt(e,Pe(e),t)}(a,t)):function(t,e){return qt(t,$e(t),e)}(t,function(t,e){return t&&qt(e,we(e),t)}(a,t))}else{if(!Nr[f])return o?t:{};a=kr(t,f,u)}}i||(i=new It);var d=i.get(t);if(d)return d;i.set(t,a),Tr(t)?t.forEach(function(n){a.add(Lr(n,e,r,n,t,i))}):Vr(t)&&t.forEach(function(n,o){a.set(o,Lr(n,e,r,o,t,i))});var h=s?c?Le:Ne:c?keysIn:we,v=l?void 0:h(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(v||t,function(n,o){v&&(n=t[o=n]),Wt(a,o,Lr(n,e,r,o,t,i))}),a}Nr[Br]=Nr["[object Array]"]=Nr["[object ArrayBuffer]"]=Nr["[object DataView]"]=Nr["[object Boolean]"]=Nr["[object Date]"]=Nr["[object Float32Array]"]=Nr["[object Float64Array]"]=Nr["[object Int8Array]"]=Nr["[object Int16Array]"]=Nr["[object Int32Array]"]=Nr["[object Map]"]=Nr["[object Number]"]=Nr[zr]=Nr["[object RegExp]"]=Nr["[object Set]"]=Nr["[object String]"]=Nr["[object Symbol]"]=Nr["[object Uint8Array]"]=Nr["[object Uint8ClampedArray]"]=Nr["[object Uint16Array]"]=Nr["[object Uint32Array]"]=!0,Nr["[object Error]"]=Nr[Dr]=Nr["[object WeakMap]"]=!1;var Wr=4;function qr(t){return Lr(t,Wr)}function Yr(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var Hr="[object Symbol]";function Gr(t){return"symbol"==typeof t||Yt(t)&&pt(t)==Hr}var Jr="Expected a function";function Kr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Jr);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Kr.Cache||Bt),r}Kr.Cache=Bt;var Qr=500;var Xr,Zr,tn,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rn=/\\(\\)?/g,nn=(Xr=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(en,function(t,r,n,o){e.push(n?o.replace(rn,"$1"):r||t)}),e},Zr=Kr(Xr,function(t){return tn.size===Qr&&tn.clear(),t}),tn=Zr.cache,Zr),on=1/0;function an(t){if("string"==typeof t||Gr(t))return t;var e=t+"";return"0"==e&&1/t==-on?"-0":e}var un=1/0,cn=nt?nt.prototype:void 0,sn=cn?cn.toString:void 0;function ln(t){if("string"==typeof t)return t;if(Zt(t))return Yr(t,ln)+"";if(Gr(t))return sn?sn.call(t):"";var e=t+"";return"0"==e&&1/t==-un?"-0":e}function fn(t){return Zt(t)?Yr(t,an):Gr(t)?[t]:Me(nn(function(t){return null==t?"":ln(t)}(t)))}var pn=function(t){return"function"==typeof t},dn=function(t){return null!==t&&"object"==typeof t},hn=function(t){return String(Math.floor(Number(t)))===t},vn=function(t){return"[object String]"===Object.prototype.toString.call(t)},yn=function(t){return t!=t},mn=function(t){return 0===e.Children.count(t)},bn=function(t){return dn(t)&&pn(t.then)},gn=function(t){return t&&dn(t)&&dn(t.target)};function jn(t){var e=!1;return[new Promise(function(r,n){t.then(function(t){return e?n({isCanceled:!0}):r(t)},function(t){return n(e?{isCanceled:!0}:t)})}),function(){e=!0}]}function _n(t,e,r,n){void 0===n&&(n=0);for(var o=fn(e);t&&n<o.length;)t=t[o[n++]];return void 0===t?r:t}function Sn(t,e,r){for(var n=qr(t),o=n,i=0,a=fn(e);i<a.length-1;i++){var u=a[i],c=_n(t,a.slice(0,i+1));if(c)o=o[u]=qr(c);else{var s=a[i+1];o=o[u]=hn(s)&&Number(s)>=0?[]:{}}}return(0===i?t:o)[a[i]]===r?t:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function On(t,e,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],u=t[a];dn(u)?r.get(u)||(r.set(u,!0),n[a]=Array.isArray(u)?[]:{},On(u,e,r,n[a])):n[a]=e}return n}var Fn=function(t){function r(e){var r=t.call(this,e)||this;return r.hcCache={},r.hbCache={},r.registerField=function(t,e){r.fields[t]=e},r.unregisterField=function(t){delete r.fields[t]},r.setErrors=function(t){r.setState({errors:t})},r.setTouched=function(t){r.setState({touched:t},function(){r.props.validateOnBlur&&r.runValidations(r.state.values)})},r.setValues=function(t){r.setState({values:t},function(){r.props.validateOnChange&&r.runValidations(t)})},r.setStatus=function(t){r.setState({status:t})},r.setError=function(t){r.setState({error:t})},r.setSubmitting=function(t){r.didMount&&r.setState({isSubmitting:t})},r.validateField=function(t){return r.setState({isValidating:!0}),r.runSingleFieldLevelValidation(t,_n(r.state.values,t)).then(function(e){return r.didMount&&r.setState({errors:Sn(r.state.errors,t,e),isValidating:!1}),e})},r.runSingleFieldLevelValidation=function(t,e){return new Promise(function(n){return n(r.fields[t].props.validate(e))}).then(function(t){return t},function(t){return t})},r.runValidationSchema=function(t){return new Promise(function(e){var n=r.props.validationSchema,o=pn(n)?n():n;kn(t,o).then(function(){e({})},function(t){e(wn(t))})})},r.runValidations=function(t){void 0===t&&(t=r.state.values),r.validator&&r.validator();var e=jn(Promise.all([r.runFieldLevelValidations(t),r.props.validationSchema?r.runValidationSchema(t):{},r.props.validate?r.runValidateHandler(t):{}]).then(function(t){return m.all([t[0],t[1],t[2]],{arrayMerge:An})})),n=e[0];return r.validator=e[1],n.then(function(t){return r.didMount&&r.setState(function(e){return f(e.errors,t)?null:{errors:t}}),t}).catch(function(t){return t})},r.handleChange=function(t){var e=function(t,e){var n,o=e;if(gn(t)){var a=t;a.persist&&a.persist();var u=a.target,c=u.type,s=u.name,l=u.checked;if(o=e||(s||u.id),n=a.target.value,/number|range/.test(c)){var f=parseFloat(a.target.value);n=yn(f)?"":f}/checkbox/.test(c)&&(n=l)}else n=t;o&&r.setState(function(t){return i({},t,{values:Sn(t.values,o,n)})},function(){r.props.validateOnChange&&r.runValidations(Sn(r.state.values,o,n))})};if(vn(t)){var n=t;return pn(r.hcCache[n])||(r.hcCache[n]=function(t){return e(t,n)}),r.hcCache[n]}e(t)},r.setFieldValue=function(t,e,n){void 0===n&&(n=!0),r.didMount&&r.setState(function(r){return i({},r,{values:Sn(r.values,t,e)})},function(){r.props.validateOnChange&&n&&r.runValidations(r.state.values)})},r.handleSubmit=function(t){t&&t.preventDefault&&t.preventDefault(),r.submitForm()},r.submitForm=function(){return r.setState(function(t){return{touched:On(t.values,!0),isSubmitting:!0,isValidating:!0,submitCount:t.submitCount+1}}),r.runValidations(r.state.values).then(function(t){r.didMount&&r.setState({isValidating:!1}),0===Object.keys(t).length?r.executeSubmit():r.didMount&&r.setState({isSubmitting:!1})})},r.executeSubmit=function(){r.props.onSubmit(r.state.values,r.getFormikActions())},r.handleBlur=function(t){var e=function(t,e){var n=e;if(gn(t)){var o=t;o.persist&&o.persist();var i=o.target,a=i.name;n=a||i.id}r.setState(function(t){return{touched:Sn(t.touched,n,!0)}}),r.props.validateOnBlur&&r.runValidations(r.state.values)};if(vn(t)){var n=t;return pn(r.hbCache[n])||(r.hbCache[n]=function(t){return e(t,n)}),r.hbCache[n]}e(t)},r.setFieldTouched=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),r.setState(function(r){return i({},r,{touched:Sn(r.touched,t,e)})},function(){r.props.validateOnBlur&&n&&r.runValidations(r.state.values)})},r.setFieldError=function(t,e){r.setState(function(r){return i({},r,{errors:Sn(r.errors,t,e)})})},r.resetForm=function(t){var e=t||r.props.initialValues;r.initialValues=e,r.setState({isSubmitting:!1,isValidating:!1,errors:{},touched:{},error:void 0,status:r.props.initialStatus,values:e,submitCount:0})},r.handleReset=function(){if(r.props.onReset){var t=r.props.onReset(r.state.values,r.getFormikActions());bn(t)?t.then(r.resetForm):r.resetForm()}else r.resetForm()},r.setFormikState=function(t,e){return r.setState(t,e)},r.validateForm=function(t){return r.setState({isValidating:!0}),r.runValidations(t).then(function(t){return r.didMount&&r.setState({isValidating:!1}),t})},r.getFormikActions=function(){return{resetForm:r.resetForm,submitForm:r.submitForm,validateForm:r.validateForm,validateField:r.validateField,setError:r.setError,setErrors:r.setErrors,setFieldError:r.setFieldError,setFieldTouched:r.setFieldTouched,setFieldValue:r.setFieldValue,setStatus:r.setStatus,setSubmitting:r.setSubmitting,setTouched:r.setTouched,setValues:r.setValues,setFormikState:r.setFormikState}},r.getFormikComputedProps=function(){var t=r.props.isInitialValid,e=!f(r.initialValues,r.state.values);return{dirty:e,isValid:e?r.state.errors&&0===Object.keys(r.state.errors).length:!1!==t&&pn(t)?t(r.props):t,initialValues:r.initialValues}},r.getFormikBag=function(){return i({},r.state,r.getFormikActions(),r.getFormikComputedProps(),{registerField:r.registerField,unregisterField:r.unregisterField,handleBlur:r.handleBlur,handleChange:r.handleChange,handleReset:r.handleReset,handleSubmit:r.handleSubmit,validateOnChange:r.props.validateOnChange,validateOnBlur:r.props.validateOnBlur})},r.getFormikContext=function(){return i({},r.getFormikBag(),{validationSchema:r.props.validationSchema,validate:r.props.validate,initialValues:r.initialValues})},r.state={values:e.initialValues||{},errors:{},touched:{},isSubmitting:!1,isValidating:!1,submitCount:0,status:e.initialStatus},r.didMount=!1,r.fields={},r.initialValues=e.initialValues||{},r}return o(r,t),r.prototype.componentDidMount=function(){this.didMount=!0},r.prototype.componentWillUnmount=function(){this.didMount=!1,this.validator&&this.validator()},r.prototype.componentDidUpdate=function(t){this.props.enableReinitialize&&!f(t.initialValues,this.props.initialValues)&&(this.initialValues=this.props.initialValues,this.resetForm(this.props.initialValues))},r.prototype.runFieldLevelValidations=function(t){var e=this,r=Object.keys(this.fields).filter(function(t){return e.fields&&e.fields[t]&&e.fields[t].props.validate&&pn(e.fields[t].props.validate)}),n=r.length>0?r.map(function(r){return e.runSingleFieldLevelValidation(r,_n(t,r))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(t){return t.reduce(function(t,e,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===e?t:(e&&(t=Sn(t,r[n],e)),t)},{})})},r.prototype.runValidateHandler=function(t){var e=this;return new Promise(function(r){var n=e.props.validate(t);void 0===n?r({}):bn(n)?n.then(function(){r({})},function(t){r(t)}):r(n)})},r.prototype.render=function(){var t=this.props,r=t.component,n=t.render,o=t.children,i=this.getFormikBag(),a=this.getFormikContext();return e.createElement(H,{value:a},r?e.createElement(r,i):n?n(i):o?pn(o)?o(i):mn(o)?null:e.Children.only(o):null)},r.defaultProps={validateOnChange:!0,validateOnBlur:!0,isInitialValid:!1,enableReinitialize:!1},r}(e.Component);function wn(t){var e={};if(0===t.inner.length)return Sn(e,t.path,t.message);for(var r=0,n=t.inner;r<n.length;r++){var o=n[r];e[o.path]||(e=Sn(e,o.path,o.message))}return e}function kn(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var o={};for(var i in t)if(t.hasOwnProperty(i)){var a=String(i);o[a]=""!==t[a]?t[a]:void 0}return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n})}function An(t,e,r){var n=t.slice();return e.forEach(function(e,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(e);n[o]=i?m(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[o]=m(t[o],e,r):-1===t.indexOf(e)&&n.push(e)}),n}var Pn=J(function(t){function r(e){var r=t.call(this,e)||this;return r}return o(r,t),r.prototype.componentDidMount=function(){this.props.formik.registerField(this.props.name,this)},r.prototype.componentDidUpdate=function(t){this.props.name!==t.name&&(this.props.formik.unregisterField(t.name),this.props.formik.registerField(this.props.name,this)),this.props.validate!==t.validate&&this.props.formik.registerField(this.props.name,this)},r.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},r.prototype.render=function(){var t=this.props,r=t.name,n=t.render,o=t.children,u=t.component,c=void 0===u?"input":u,s=t.formik,l=a(t,["validate","name","render","children","component","formik"]),f=a(s,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:_n(s.values,r),name:r,onChange:s.handleChange,onBlur:s.handleBlur},d={field:p,form:f};if(n)return n(d);if(pn(o))return o(d);if("string"==typeof c){var h=l.innerRef,v=a(l,["innerRef"]);return e.createElement(c,i({ref:h},p,v,{children:o}))}return e.createElement(c,i({},d,l,{children:o}))},r}(e.Component)),Cn=J(function(t){var r=t.formik,n=r.handleReset,o=r.handleSubmit,u=a(t,["formik"]);return e.createElement("form",i({onReset:n,onSubmit:o},u))});Cn.displayName="Form";var En=1,Vn=4;function xn(t){return Lr(t,En|Vn)}var Mn=function(t,e,r){var n=(t||[]).slice(),o=n[e];return n.splice(e,1),n.splice(r,0,o),n},Tn=function(t,e,r){var n=(t||[]).slice(),o=n[e];return n[e]=n[r],n[r]=o,n},Rn=function(t,e,r){var n=(t||[]).slice();return n.splice(e,0,r),n},Un=function(t,e,r){var n=(t||[]).slice();return n[e]=r,n},$n=J(function(t){function r(e){var r=t.call(this,e)||this;return r.updateArrayField=function(t,e,n){var o=r.props,a=o.name,u=o.validateOnChange,c=o.formik,s=c.validateForm;(0,c.setFormikState)(function(r){var o="function"==typeof n?n:t,u="function"==typeof e?e:t;return i({},r,{values:Sn(r.values,a,t(_n(r.values,a))),errors:n?Sn(r.errors,a,o(_n(r.errors,a))):r.errors,touched:e?Sn(r.touched,a,u(_n(r.touched,a))):r.touched})},function(){u&&s()})},r.push=function(t){return r.updateArrayField(function(e){return(e||[]).concat([xn(t)])},!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField(function(r){return Tn(r,t,e)},!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField(function(r){return Mn(r,t,e)},!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField(function(r){return Rn(r,t,e)},function(e){return Rn(e,t,null)},function(e){return Rn(e,t,null)})},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField(function(r){return Un(r,t,e)},!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField(function(r){var n=r?[t].concat(r):[t];return e<0&&(e=n.length),n},function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r},function(t){var r=t?[null].concat(t):[null];return e<0&&(e=r.length),r}),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(r),r.pop=r.pop.bind(r),r}return o(r,t),r.prototype.remove=function(t){var e;return this.updateArrayField(function(r){var n=r?r.slice():[];return e||(e=n[t]),pn(n.splice)&&n.splice(t,1),n},!0,!0),e},r.prototype.pop=function(){var t;return this.updateArrayField(function(e){var r=e;return t||(t=r&&r.pop&&r.pop()),r},!0,!0),t},r.prototype.render=function(){var t={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,o=r.render,u=r.children,c=r.name,s=r.formik,l=a(s,["validate","validationSchema"]),f=i({},t,{form:l,name:c});return n?e.createElement(n,f):o?o(f):u?"function"==typeof u?u(f):mn(u)?null:e.Children.only(u):null},r.defaultProps={validateOnChange:!0},r}(e.Component)),Bn=J(function(t){function r(e){var r=t.call(this,e)||this;return r}return o(r,t),r.prototype.shouldComponentUpdate=function(t){return this.props.shouldUpdate?this.props.shouldUpdate(t,this.props):_n(this.props.formik.values,this.props.name)!==_n(t.formik.values,this.props.name)||_n(this.props.formik.errors,this.props.name)!==_n(t.formik.errors,this.props.name)||_n(this.props.formik.touched,this.props.name)!==_n(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length||this.props.formik.isSubmitting!==t.formik.isSubmitting},r.prototype.componentDidMount=function(){this.props.formik.registerField(this.props.name,this)},r.prototype.componentDidUpdate=function(t){this.props.name!==t.name&&(this.props.formik.unregisterField(t.name),this.props.formik.registerField(this.props.name,this)),this.props.validate!==t.validate&&this.props.formik.registerField(this.props.name,this)},r.prototype.componentWillUnmount=function(){this.props.formik.unregisterField(this.props.name)},r.prototype.render=function(){var t=this.props,r=t.name,n=t.render,o=t.children,u=t.component,c=void 0===u?"input":u,s=t.formik,l=a(t,["validate","name","render","children","component","formik","shouldUpdate"]),f=a(s,["validate","validationSchema"]),p={value:"radio"===l.type||"checkbox"===l.type?l.value:_n(s.values,r),name:r,onChange:s.handleChange,onBlur:s.handleBlur},d={field:p,form:f};if(n)return n(d);if(pn(o))return o(d);if("string"==typeof c){var h=l.innerRef,v=a(l,["innerRef"]);return e.createElement(c,i({ref:h},p,v,{children:o}))}return e.createElement(c,i({},d,l,{children:o}))},r}(e.Component)),Dn=J(function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return o(r,t),r.prototype.shouldComponentUpdate=function(t){return _n(this.props.formik.errors,this.props.name)!==_n(t.formik.errors,this.props.name)||_n(this.props.formik.touched,this.props.name)!==_n(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length},r.prototype.render=function(){var t=this.props,r=t.component,n=t.formik,o=t.render,i=t.children,u=t.name,c=a(t,["component","formik","render","children","name"]),s=_n(n.touched,u),l=_n(n.errors,u);return s&&l?o?pn(o)?o(l):null:i?pn(i)?i(l):null:r?e.createElement(r,c,l):l:null},r}(e.Component));t.Formik=Fn,t.yupToFormErrors=wn,t.validateYupSchema=kn,t.Field=Pn,t.Form=Cn,t.withFormik=function(t){var r=t.mapPropsToValues,n=void 0===r?function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&"function"!=typeof t[r]&&(e[r]=t[r]);return e}:r,u=a(t,["mapPropsToValues"]);return function(t){var r=t.displayName||t.name||t.constructor&&t.constructor.name||"Component",c=function(c){function s(){var r=null!==c&&c.apply(this,arguments)||this;return r.validate=function(t){return u.validate(t,r.props)},r.validationSchema=function(){return pn(u.validationSchema)?u.validationSchema(r.props):u.validationSchema},r.handleSubmit=function(t,e){return u.handleSubmit(t,i({},e,{props:r.props}))},r.renderFormComponent=function(n){return e.createElement(t,i({},r.props,n))},r}return o(s,c),s.prototype.render=function(){var t=this.props,r=a(t,["children"]);return e.createElement(Fn,i({},r,u,{validate:u.validate&&this.validate,validationSchema:u.validationSchema&&this.validationSchema,initialValues:n(this.props),initialStatus:u.mapPropsToStatus&&u.mapPropsToStatus(this.props),onSubmit:this.handleSubmit,render:this.renderFormComponent}))},s.displayName="WithFormik("+r+")",s}(e.Component);return T(c,t)}},t.move=Mn,t.swap=Tn,t.insert=Rn,t.replace=Un,t.FieldArray=$n,t.isFunction=pn,t.isObject=dn,t.isInteger=hn,t.isString=vn,t.isNaN=yn,t.isEmptyChildren=mn,t.isPromise=bn,t.isInputEvent=gn,t.getActiveElement=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}},t.makeCancelable=jn,t.getIn=_n,t.setIn=Sn,t.setNestedObjectValues=On,t.FastField=Bn,t.FormikProvider=H,t.FormikConsumer=G,t.connect=J,t.ErrorMessage=Dn,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=formik.umd.production.js.map