import{a as e,t}from"./rolldown-runtime-CNC7AqOf.js";import{t as n}from"./react-Augu_vA3.js";import{Wi as r}from"./forms-CL2ODv4X.js";var i=function(e){return a(e)&&!o(e)};function a(e){return!!e&&typeof e==`object`}function o(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||c(e)}var s=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function c(e){return e.$$typeof===s}function l(e){return Array.isArray(e)?[]:{}}function u(e,t){return t.clone!==!1&&t.isMergeableObject(e)?p(l(e),e,t):e}function d(e,t,n){return e.concat(t).map(function(e){return u(e,n)})}function f(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=u(e[t],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=u(t[i],n):r[i]=p(e[i],t[i],n)}),r}function p(e,t,n){n||={},n.arrayMerge=n.arrayMerge||d,n.isMergeableObject=n.isMergeableObject||i;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):f(e,t,n):u(t,n)}p.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return p(e,n,t)},{})};var m=p,h=typeof global==`object`&&global&&global.Object===Object&&global,g=typeof self==`object`&&self&&self.Object===Object&&self,_=h||g||Function(`return this`)(),v=_.Symbol,y=Object.prototype,ee=y.hasOwnProperty,te=y.toString,b=v?v.toStringTag:void 0;function x(e){var t=ee.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch{}var i=te.call(e);return r&&(t?e[b]=n:delete e[b]),i}var ne=Object.prototype.toString;function re(e){return ne.call(e)}var ie=`[object Null]`,ae=`[object Undefined]`,oe=v?v.toStringTag:void 0;function S(e){return e==null?e===void 0?ae:ie:oe&&oe in Object(e)?x(e):re(e)}function C(e,t){return function(n){return e(t(n))}}var w=C(Object.getPrototypeOf,Object);function T(e){return typeof e==`object`&&!!e}var se=`[object Object]`,ce=Function.prototype,le=Object.prototype,ue=ce.toString,E=le.hasOwnProperty,D=ue.call(Object);function de(e){if(!T(e)||S(e)!=se)return!1;var t=w(e);if(t===null)return!0;var n=E.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ue.call(n)==D}function fe(){this.__data__=[],this.size=0}function O(e,t){return e===t||e!==e&&t!==t}function k(e,t){for(var n=e.length;n--;)if(O(e[n][0],t))return n;return-1}var pe=Array.prototype.splice;function me(e){var t=this.__data__,n=k(t,e);return n<0?!1:(n==t.length-1?t.pop():pe.call(t,n,1),--this.size,!0)}function he(e){var t=this.__data__,n=k(t,e);return n<0?void 0:t[n][1]}function ge(e){return k(this.__data__,e)>-1}function _e(e,t){var n=this.__data__,r=k(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function A(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Dt}var kt=`[object Arguments]`,At=`[object Array]`,jt=`[object Boolean]`,Mt=`[object Date]`,Nt=`[object Error]`,Pt=`[object Function]`,Ft=`[object Map]`,It=`[object Number]`,Lt=`[object Object]`,Rt=`[object RegExp]`,zt=`[object Set]`,Bt=`[object String]`,Vt=`[object WeakMap]`,Ht=`[object ArrayBuffer]`,Ut=`[object DataView]`,Wt=`[object Float32Array]`,Gt=`[object Float64Array]`,Kt=`[object Int8Array]`,qt=`[object Int16Array]`,Jt=`[object Int32Array]`,Yt=`[object Uint8Array]`,Xt=`[object Uint8ClampedArray]`,Zt=`[object Uint16Array]`,Qt=`[object Uint32Array]`,R={};R[Wt]=R[Gt]=R[Kt]=R[qt]=R[Jt]=R[Yt]=R[Xt]=R[Zt]=R[Qt]=!0,R[kt]=R[At]=R[Ht]=R[jt]=R[Ut]=R[Mt]=R[Nt]=R[Pt]=R[Ft]=R[It]=R[Lt]=R[Rt]=R[zt]=R[Bt]=R[Vt]=!1;function $t(e){return T(e)&&Ot(e.length)&&!!R[S(e)]}function en(e){return function(t){return e(t)}}var tn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,z=tn&&typeof module==`object`&&module&&!module.nodeType&&module,nn=z&&z.exports===tn&&h.process,B=function(){try{return z&&z.require&&z.require(`util`).types||nn&&nn.binding&&nn.binding(`util`)}catch{}}(),rn=B&&B.isTypedArray,an=rn?en(rn):$t,on=Object.prototype.hasOwnProperty;function sn(e,t){var n=L(e),r=!n&&vt(e),i=!n&&!r&&Ct(e),a=!n&&!r&&!i&&an(e),o=n||r||i||a,s=o?ft(e.length,String):[],c=s.length;for(var l in e)(t||on.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Et(l,c)))&&s.push(l);return s}var cn=Object.prototype;function ln(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||cn)}var un=C(Object.keys,Object),dn=Object.prototype.hasOwnProperty;function fn(e){if(!ln(e))return un(e);var t=[];for(var n in Object(e))dn.call(e,n)&&n!=`constructor`&&t.push(n);return t}function pn(e){return e!=null&&Ot(e.length)&&!Ee(e)}function mn(e){return pn(e)?sn(e):fn(e)}function hn(e,t){return e&&dt(t,mn(t),e)}function gn(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _n=Object.prototype.hasOwnProperty;function vn(e){if(!j(e))return gn(e);var t=ln(e),n=[];for(var r in e)r==`constructor`&&(t||!_n.call(e,r))||n.push(r);return n}function yn(e){return pn(e)?sn(e,!0):vn(e)}function bn(e,t){return e&&dt(t,yn(t),e)}var xn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Sn=xn&&typeof module==`object`&&module&&!module.nodeType&&module,Cn=Sn&&Sn.exports===xn?_.Buffer:void 0,wn=Cn?Cn.allocUnsafe:void 0;function Tn(e,t){if(t)return e.slice();var n=e.length,r=wn?wn(n):new e.constructor(n);return e.copy(r),r}function En(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{var n=Array.isArray,r=Object.keys,i=Object.prototype.hasOwnProperty,a=typeof Element<`u`;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){var s=n(e),c=n(t),l,u,d;if(s&&c){if(u=e.length,u!=t.length)return!1;for(l=u;l--!==0;)if(!o(e[l],t[l]))return!1;return!0}if(s!=c)return!1;var f=e instanceof Date,p=t instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==t.getTime();var m=e instanceof RegExp,h=t instanceof RegExp;if(m!=h)return!1;if(m&&h)return e.toString()==t.toString();var g=r(e);if(u=g.length,u!==r(t).length)return!1;for(l=u;l--!==0;)if(!i.call(t,g[l]))return!1;if(a&&e instanceof Element&&t instanceof Element)return e===t;for(l=u;l--!==0;)if(d=g[l],!(d===`_owner`&&e.$$typeof)&&!o(e[d],t[d]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||e.number===-2146828260)return console.warn(`Warning: react-fast-compare does not handle circular references.`,e.name,e.message),!1;throw e}}})),G=e(n()),K=e(bi()),xi=4;function Si(e){return U(e,xi)}function Ci(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n=0)&&(n[i]=e[i]);return n}function Ui(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var Wi=(0,G.createContext)(void 0);Wi.displayName=`FormikContext`,Wi.Provider,Wi.Consumer;function Gi(){return(0,G.useContext)(Wi)}var Ki=function(e){return Array.isArray(e)&&e.length===0},J=function(e){return typeof e==`function`},qi=function(e){return typeof e==`object`&&!!e},Ji=function(e){return String(Math.floor(Number(e)))===e},Yi=function(e){return Object.prototype.toString.call(e)===`[object String]`},Xi=function(e){return G.Children.count(e)===0},Zi=function(e){return qi(e)&&J(e.then)};function Y(e,t,n,r){r===void 0&&(r=0);for(var i=Bi(t);e&&r=0?[]:{}}}return(a===0?e:i)[o[a]]===n?e:(n===void 0?delete i[o[a]]:i[o[a]]=n,a===0&&n===void 0&&delete r[o[a]],r)}function Qi(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,a=Object.keys(e);i0?t.map(function(t){return ie(t,Y(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 n===`DO_NOT_DELETE_YOU_WILL_BE_FIRED`||n&&(e=X(e,t[r],n)),e},{})})},[ie]),oe=(0,G.useCallback)(function(e){return Promise.all([ae(e),f.validationSchema?re(e):{},f.validate?ne(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return m.all([t,n,r],{arrayMerge:aa})})},[f.validate,f.validationSchema,ae,ne,re]),S=Q(function(e){return e===void 0&&(e=b.values),x({type:`SET_ISVALIDATING`,payload:!0}),oe(e).then(function(e){return v.current&&(x({type:`SET_ISVALIDATING`,payload:!1}),x({type:`SET_ERRORS`,payload:e})),e})});(0,G.useEffect)(function(){o&&v.current===!0&&(0,K.default)(p.current,f.initialValues)&&S(p.current)},[o,S]);var C=(0,G.useCallback)(function(e){var t=e&&e.values?e.values:p.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:g.current?g.current:f.initialTouched||{},i=e&&e.status?e.status:_.current?_.current:f.initialStatus;p.current=t,h.current=n,g.current=r,_.current=i;var a=function(){x({type:`RESET_FORM`,payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&typeof e.submitCount==`number`?e.submitCount:0}})};if(f.onReset){var o=f.onReset(b.values,ve);Zi(o)?o.then(a):a()}else a()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,G.useEffect)(function(){v.current===!0&&!(0,K.default)(p.current,f.initialValues)&&l&&(p.current=f.initialValues,C(),o&&S(p.current))},[l,f.initialValues,C,o,S]),(0,G.useEffect)(function(){l&&v.current===!0&&!(0,K.default)(h.current,f.initialErrors)&&(h.current=f.initialErrors||Z,x({type:`SET_ERRORS`,payload:f.initialErrors||Z}))},[l,f.initialErrors]),(0,G.useEffect)(function(){l&&v.current===!0&&!(0,K.default)(g.current,f.initialTouched)&&(g.current=f.initialTouched||ea,x({type:`SET_TOUCHED`,payload:f.initialTouched||ea}))},[l,f.initialTouched]),(0,G.useEffect)(function(){l&&v.current===!0&&!(0,K.default)(_.current,f.initialStatus)&&(_.current=f.initialStatus,x({type:`SET_STATUS`,payload:f.initialStatus}))},[l,f.initialStatus,f.initialTouched]);var w=Q(function(e){if(y.current[e]&&J(y.current[e].validate)){var t=Y(b.values,e),n=y.current[e].validate(t);return Zi(n)?(x({type:`SET_ISVALIDATING`,payload:!0}),n.then(function(e){return e}).then(function(t){x({type:`SET_FIELD_ERROR`,payload:{field:e,value:t}}),x({type:`SET_ISVALIDATING`,payload:!1})})):(x({type:`SET_FIELD_ERROR`,payload:{field:e,value:n}}),Promise.resolve(n))}else if(f.validationSchema)return x({type:`SET_ISVALIDATING`,payload:!0}),re(b.values,e).then(function(e){return e}).then(function(t){x({type:`SET_FIELD_ERROR`,payload:{field:e,value:Y(t,e)}}),x({type:`SET_ISVALIDATING`,payload:!1})});return Promise.resolve()}),T=(0,G.useCallback)(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),se=(0,G.useCallback)(function(e){delete y.current[e]},[]),ce=Q(function(e,t){return x({type:`SET_TOUCHED`,payload:e}),(t===void 0?i:t)?S(b.values):Promise.resolve()}),le=(0,G.useCallback)(function(e){x({type:`SET_ERRORS`,payload:e})},[]),ue=Q(function(e,t){var r=J(e)?e(b.values):e;return x({type:`SET_VALUES`,payload:r}),(t===void 0?n:t)?S(r):Promise.resolve()}),E=(0,G.useCallback)(function(e,t){x({type:`SET_FIELD_ERROR`,payload:{field:e,value:t}})},[]),D=Q(function(e,t,r){return x({type:`SET_FIELD_VALUE`,payload:{field:e,value:t}}),(r===void 0?n:r)?S(X(b.values,e,t)):Promise.resolve()}),de=(0,G.useCallback)(function(e,t){var n=t,r=e,i;if(!Yi(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,o=a.type,s=a.name,c=a.id,l=a.value,u=a.checked;a.outerHTML;var d=a.options,f=a.multiple;n=t||s||c,r=/number|range/.test(o)?(i=parseFloat(l),isNaN(i)?``:i):/checkbox/.test(o)?sa(Y(b.values,n),u,l):d&&f?oa(d):l}n&&D(n,r)},[D,b.values]),fe=Q(function(e){if(Yi(e))return function(t){return de(t,e)};de(e)}),O=Q(function(e,t,n){return t===void 0&&(t=!0),x({type:`SET_FIELD_TOUCHED`,payload:{field:e,value:t}}),(n===void 0?i:n)?S(b.values):Promise.resolve()}),k=(0,G.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,O(t||r||i,!0)},[O]),pe=Q(function(e){if(Yi(e))return function(t){return k(t,e)};k(e)}),me=(0,G.useCallback)(function(e){J(e)?x({type:`SET_FORMIK_STATE`,payload:e}):x({type:`SET_FORMIK_STATE`,payload:function(){return e}})},[]),he=(0,G.useCallback)(function(e){x({type:`SET_STATUS`,payload:e})},[]),ge=(0,G.useCallback)(function(e){x({type:`SET_ISSUBMITTING`,payload:e})},[]),_e=Q(function(){return x({type:`SUBMIT_ATTEMPT`}),S().then(function(e){var t=e instanceof Error;if(!t&&Object.keys(e).length===0){var n;try{if(n=ye(),n===void 0)return}catch(e){throw e}return Promise.resolve(n).then(function(e){return v.current&&x({type:`SUBMIT_SUCCESS`}),e}).catch(function(e){if(v.current)throw x({type:`SUBMIT_FAILURE`}),e})}else if(v.current&&(x({type:`SUBMIT_FAILURE`}),t))throw e})}),A=Q(function(e){e&&e.preventDefault&&J(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&J(e.stopPropagation)&&e.stopPropagation(),_e().catch(function(e){console.warn(`Warning: An unhandled error was caught from submitForm()`,e)})}),ve={resetForm:C,validateForm:S,validateField:w,setErrors:le,setFieldError:E,setFieldTouched:O,setFieldValue:D,setStatus:he,setSubmitting:ge,setTouched:ce,setValues:ue,setFormikState:me,submitForm:_e},ye=Q(function(){return u(b.values,ve)}),be=Q(function(e){e&&e.preventDefault&&J(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&J(e.stopPropagation)&&e.stopPropagation(),C()}),xe=(0,G.useCallback)(function(e){return{value:Y(b.values,e),error:Y(b.errors,e),touched:!!Y(b.touched,e),initialValue:Y(p.current,e),initialTouched:!!Y(g.current,e),initialError:Y(h.current,e)}},[b.errors,b.touched,b.values]),j=(0,G.useCallback)(function(e){return{setValue:function(t,n){return D(e,t,n)},setTouched:function(t,n){return O(e,t,n)},setError:function(t){return E(e,t)}}},[D,O,E]),Se=(0,G.useCallback)(function(e){var t=qi(e),n=t?e.name:e,r=Y(b.values,n),i={name:n,value:r,onChange:fe,onBlur:pe};if(t){var a=e.type,o=e.value,s=e.as,c=e.multiple;a===`checkbox`?o===void 0?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(o)),i.value=o):a===`radio`?(i.checked=r===o,i.value=o):s===`select`&&c&&(i.value=i.value||[],i.multiple=!0)}return i},[pe,fe,b.values]),Ce=(0,G.useMemo)(function(){return!(0,K.default)(p.current,b.values)},[p.current,b.values]),we=(0,G.useMemo)(function(){return s===void 0||Ce?b.errors&&Object.keys(b.errors).length===0:s!==!1&&J(s)?s(f):s},[s,Ce,b.errors,f]);return q({},b,{initialValues:p.current,initialErrors:h.current,initialTouched:g.current,initialStatus:_.current,handleBlur:pe,handleChange:fe,handleReset:be,handleSubmit:A,resetForm:C,setErrors:le,setFormikState:me,setFieldTouched:O,setFieldValue:D,setFieldError:E,setStatus:he,setSubmitting:ge,setTouched:ce,setValues:ue,submitForm:_e,validateForm:S,validateField:w,isValid:we,dirty:Ce,unregisterField:se,registerField:T,getFieldProps:Se,getFieldMeta:xe,getFieldHelpers:j,validateOnBlur:i,validateOnChange:n,validateOnMount:o})}function na(e){var t={};if(e.inner){if(e.inner.length===0)return X(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var o=a;Y(t,o.path)||(t=X(t,o.path,o.message))}}return t}function ra(e,t,n,r){n===void 0&&(n=!1);var i=ia(e);return t[n?`validateSync`:`validate`](i,{abortEarly:!1,context:r||i})}function ia(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(e){return Array.isArray(e)===!0||de(e)?ia(e):e===``?void 0:e}):de(e[r])?t[r]=ia(e[r]):t[r]=e[r]===``?void 0:e[r]}return t}function aa(e,t,n){var r=e.slice();return t.forEach(function(t,i){r[i]===void 0?r[i]=n.clone!==!1&&n.isMergeableObject(t)?m(Array.isArray(t)?[]:{},t,n):t:n.isMergeableObject(t)?r[i]=m(e[i],t,n):e.indexOf(t)===-1&&r.push(t)}),r}function oa(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}function sa(e,t,n){if(typeof e==`boolean`)return!!t;var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,a=e.indexOf(n),i=a>=0;else if(!n||n==`true`||n==`false`)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}var ca=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?G.useLayoutEffect:G.useEffect;function Q(e){var t=(0,G.useRef)(e);return ca(function(){t.current=e}),(0,G.useCallback)(function(){var e=[...arguments];return t.current.apply(void 0,e)},[])}var la=(0,G.forwardRef)(function(e,t){var n=e.action,r=Hi(e,[`action`]),i=n??`#`,a=Gi(),o=a.handleReset,s=a.handleSubmit;return(0,G.createElement)(`form`,q({onSubmit:s,ref:t,onReset:o,action:i},r))});la.displayName=`Form`;var ua=function(e,t,n){var r=$(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},da=function(e,t,n){var r=$(e),i=r[t];return r[t]=r[n],r[n]=i,r},fa=function(e,t,n){var r=$(e);return r.splice(t,0,n),r},pa=function(e,t,n){var r=$(e);return r[t]=n,r},$=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(q({},e,{length:t+1}))},ma=function(e,t){var n=typeof e==`function`?e:t;return function(e){return Array.isArray(e)||qi(e)?n($(e)):e}},ha=function(e){Vi(t,e);function t(t){var n=e.call(this,t)||this;return n.updateArrayField=function(e,t,r){var i=n.props,a=i.name,o=i.formik.setFormikState;o(function(n){var i=ma(r,e),o=ma(t,e),s=X(n.values,a,e(Y(n.values,a))),c=r?i(Y(n.errors,a)):void 0,l=t?o(Y(n.touched,a)):void 0;return Ki(c)&&(c=void 0),Ki(l)&&(l=void 0),q({},n,{values:s,errors:r?X(n.errors,a,c):n.errors,touched:t?X(n.touched,a,l):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat($(t),[W(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return da(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return ua(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return fa(n,e,t)},function(t){return fa(t,e,null)},function(t){return fa(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return pa(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t=r.length,r},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Ui(n)),n.pop=n.pop.bind(Ui(n)),n}var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,K.default)(Y(e.formik.values,e.name),Y(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?$(n):[];return t||=r[e],J(r.splice)&&r.splice(e,1),J(r.every)&&r.every(function(e){return e===void 0})?[]:r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||=n&&n.pop&&n.pop(),n},!0,!0),e},n.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},t=this.props,n=t.component,r=t.render,i=t.children,a=t.name,o=t.formik,s=Hi(o,[`validate`,`validationSchema`]),c=q({},e,{form:s,name:a});return n?(0,G.createElement)(n,c):r?r(c):i?typeof i==`function`?i(c):Xi(i)?null:G.Children.only(i):null},t}(G.Component);ha.defaultProps={validateOnChange:!0};export{En as a,st as c,T as d,_ as f,Hn as i,ot as l,Ti as n,Et as o,Nr as r,L as s,ta as t,j as u};