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

@ekidpro/ui.textfield

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ekidpro/ui.textfield - npm Package Compare versions

Comparing version 0.0.36 to 0.0.37

lib/types/textfield.group.d.ts

10

lib/index.es.js

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

import e,{createContext as r,useReducer as t,memo as n,useState as o,useContext as a,Children as i,isValidElement as c,cloneElement as u}from"react";import s from"styled-components";
import e,{createContext as r,useReducer as t,memo as n,useState as o,useContext as a,useEffect as i}from"react";import c from"styled-components";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function f(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}var l={exports:{}},p={},d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;function h(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var b=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var t,n,o=h(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))y.call(t,i)&&(o[i]=t[i]);if(d){n=d(t);for(var c=0;c<n.length;c++)v.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o},m=e,g=60103;
***************************************************************************** */var s={exports:{}},u={},f=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;function d(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var t,n,o=d(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))l.call(t,i)&&(o[i]=t[i]);if(f){n=f(t);for(var c=0;c<n.length;c++)p.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o},v=e,h=60103;
/** @license React v17.0.2

@@ -24,3 +24,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/if(p.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var O=Symbol.for;g=O("react.element"),p.Fragment=O("react.fragment")}var j=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function P(e,r,t){var n,o={},a=null,i=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(i=r.ref),r)w.call(r,n)&&!_.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:g,type:e,key:a,ref:i,props:o,_owner:j.current}}p.jsx=P,p.jsxs=P;var x,E={};
*/if(u.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var b=Symbol.for;h=b("react.element"),u.Fragment=b("react.fragment")}var m=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function j(e,r,t){var n,o={},a=null,i=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(i=r.ref),r)g.call(r,n)&&!O.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:h,type:e,key:a,ref:i,props:o,_owner:m.current}}u.jsx=j,u.jsxs=j;var w,P={};
/** @license React v17.0.2

@@ -33,7 +33,7 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/x=E,"production"!==process.env.NODE_ENV&&function(){var r=e,t=b,n=60103,o=60106;x.Fragment=60107;var a=60108,i=60114,c=60109,u=60110,s=60112,f=60113,l=60120,p=60115,d=60116,y=60121,v=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var O=Symbol.for;n=O("react.element"),o=O("react.portal"),x.Fragment=O("react.fragment"),a=O("react.strict_mode"),i=O("react.profiler"),c=O("react.provider"),u=O("react.context"),s=O("react.forward_ref"),f=O("react.suspense"),l=O("react.suspense_list"),p=O("react.memo"),d=O("react.lazy"),y=O("react.block"),v=O("react.server.block"),h=O("react.fundamental"),O("react.scope"),O("react.opaque.id"),m=O("react.debug_trace_mode"),O("react.offscreen"),g=O("react.legacy_hidden")}var j="function"==typeof Symbol&&Symbol.iterator,w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];P("error",e,t)}function P(e,r,t){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(r+="%s",t=t.concat([n]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,o)}function E(e){return e.displayName||"Context"}function k(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x.Fragment:return"Fragment";case o:return"Portal";case i:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case l:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return E(e)+".Consumer";case c:return E(e._context)+".Provider";case s:return v=e,h=e.render,b="ForwardRef",m=h.displayName||h.name||"",v.displayName||(""!==m?b+"("+m+")":b);case p:return k(e.type);case y:return k(e._render);case d:var r=e,t=r._payload,n=r._init;try{return k(n(t))}catch(e){return null}}var v,h,b,m;return null}var S,R,N,D,A,I,T,C=0;function F(){}F.__reactDisabledLog=!0;var $,V=w.ReactCurrentDispatcher;function z(e,r,t){if(void 0===$)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$=n&&n[1]||""}return"\n"+$+e}var W,L=!1,U="function"==typeof WeakMap?WeakMap:Map;function M(e,r){if(!e||L)return"";var n,o=W.get(e);if(void 0!==o)return o;L=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=V.current,V.current=null,function(){if(0===C){S=console.log,R=console.info,N=console.warn,D=console.error,A=console.group,I=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}C++}();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(r){if(r&&n&&"string"==typeof r.stack){for(var u=r.stack.split("\n"),s=n.stack.split("\n"),f=u.length-1,l=s.length-1;f>=1&&l>=0&&u[f]!==s[l];)l--;for(;f>=1&&l>=0;f--,l--)if(u[f]!==s[l]){if(1!==f||1!==l)do{if(f--,--l<0||u[f]!==s[l]){var p="\n"+u[f].replace(" at new "," at ");return"function"==typeof e&&W.set(e,p),p}}while(f>=1&&l>=0);break}}}finally{L=!1,V.current=a,function(){if(0==--C){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:S}),info:t({},e,{value:R}),warn:t({},e,{value:N}),error:t({},e,{value:D}),group:t({},e,{value:A}),groupCollapsed:t({},e,{value:I}),groupEnd:t({},e,{value:T})})}C<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",y=d?z(d):"";return"function"==typeof e&&W.set(e,y),y}function B(e,r,t){return M(e,!1)}function q(e,r,t){if(null==e)return"";if("function"==typeof e)return M(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return z(e);switch(e){case f:return z("Suspense");case l:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return B(e.render);case p:return q(e.type,r,t);case y:return B(e._render);case d:var o=e,a=o._payload,i=o._init;try{return q(i(a),r,t)}catch(e){}}return""}W=new U;var K={},Y=w.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var X,G,H,Q=w.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};function re(e,r,t,o,a){var i,c={},u=null,s=null;for(i in void 0!==t&&(u=""+t),function(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(u=""+r.key),function(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(s=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=k(Q.current.type);H[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(Q.current.type),e.ref),H[t]=!0)}}(r,a)),r)Z.call(r,i)&&!ee.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps){var f=e.defaultProps;for(i in f)void 0===c[i]&&(c[i]=f[i])}if(u||s){var l="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&function(e,r){var t=function(){X||(X=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(c,l),s&&function(e,r){var t=function(){G||(G=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(c,l)}return function(e,r,t,o,a,i,c){var u={$$typeof:n,type:e,key:r,ref:t,props:c,_owner:i,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}(e,u,s,a,o,Q.current,c)}H={};var te,ne=w.ReactCurrentOwner,oe=w.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ce(){if(ne.current){var e=k(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}te=!1;var ue={};function se(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ce();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ue[t]){ue[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+k(e._owner.type)+"."),ae(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ae(null)}}}function fe(e,r){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&se(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=j&&e[j]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&se(a.value,r)}}function le(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==s&&t.$$typeof!==p)return;r=t.propTypes}if(r){var n=k(t);!function(e,r,t,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var u=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}c=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(J(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof c),J(null)),c instanceof Error&&!(c.message in K)&&(K[c.message]=!0,J(o),_("Failed %s type: %s",t,c.message),J(null))}}(r,e.props,"prop",n,e)}else void 0===t.PropTypes||te||(te=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(e,r,t,o,b,O){var j=function(e){return"string"==typeof e||"function"==typeof e||e===x.Fragment||e===i||e===m||e===a||e===f||e===l||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===c||e.$$typeof===u||e.$$typeof===s||e.$$typeof===h||e.$$typeof===y||e[0]===v)}(e);if(!j){var w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P,E=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);w+=E||ce(),null===e?P="null":Array.isArray(e)?P="array":void 0!==e&&e.$$typeof===n?(P="<"+(k(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,w)}var S=re(e,r,t,b,O);if(null==S)return S;if(j){var R=r.children;if(void 0!==R)if(o)if(Array.isArray(R)){for(var N=0;N<R.length;N++)fe(R[N],e);Object.freeze&&Object.freeze(R)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fe(R,e)}return e===x.Fragment?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){ae(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(S):le(S),S}var de=function(e,r,t){return pe(e,r,t,!1)},ye=function(e,r,t){return pe(e,r,t,!0)};x.jsx=de,x.jsxs=ye}(),"production"===process.env.NODE_ENV?l.exports=p:l.exports=E;const k=e=>({type:"SET_ERROR_VALIDATE",payload:{errorValidate:e}});function S(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if("production"!==process.env.NODE_ENV){var o=ve[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function R(e){return!!e&&!!e[ye]}function N(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}(e)||Array.isArray(e)||!!e[de]||!!e.constructor[de]||C(e)||F(e))}function D(e,r,t){void 0===t&&(t=!1),0===A(e)?(t?Object.keys:he)(e).forEach((function(n){t&&"symbol"==typeof n||r(n,e[n],e)})):e.forEach((function(t,n){return r(n,t,e)}))}function A(e){var r=e[ye];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:C(e)?2:F(e)?3:0}function I(e,r){return 2===A(e)?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function T(e,r,t){var n=A(e);2===n?e.set(r,t):3===n?(e.delete(r),e.add(t)):e[r]=t}function C(e){return se&&e instanceof Map}function F(e){return fe&&e instanceof Set}function $(e){return e.o||e.t}function V(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=be(e);delete r[ye];for(var t=he(r),n=0;n<t.length;n++){var o=t[n],a=r[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),r)}function z(e,r){return void 0===r&&(r=!1),L(e)||R(e)||!N(e)||(A(e)>1&&(e.set=e.add=e.clear=e.delete=W),Object.freeze(e),r&&D(e,(function(e,r){return z(r,!0)}),!0)),e}function W(){S(2)}function L(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function U(e){var r=me[e];return r||S(18,e),r}function M(){return"production"===process.env.NODE_ENV||ce||S(0),ce}function B(e,r){r&&(U("Patches"),e.u=[],e.s=[],e.v=r)}function q(e){K(e),e.p.forEach(J),e.p=null}function K(e){e===ce&&(ce=e.l)}function Y(e){return ce={p:[],l:ce,h:e,m:!0,_:0}}function J(e){var r=e[ye];0===r.i||1===r.i?r.j():r.g=!0}function X(e,r){r._=r.p.length;var t=r.p[0],n=void 0!==e&&e!==t;return r.h.O||U("ES5").S(r,e,n),n?(t[ye].P&&(q(r),S(4)),N(e)&&(e=G(r,e),r.l||Q(r,e)),r.u&&U("Patches").M(t[ye],e,r.u,r.s)):e=G(r,t,[]),q(r),r.u&&r.v(r.u,r.s),e!==pe?e:void 0}function G(e,r,t){if(L(r))return r;var n=r[ye];if(!n)return D(r,(function(o,a){return H(e,n,r,o,a,t)}),!0),r;if(n.A!==e)return r;if(!n.P)return Q(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=V(n.k):n.o;D(3===n.i?new Set(o):o,(function(r,a){return H(e,n,o,r,a,t)})),Q(e,o,!1),t&&e.u&&U("Patches").R(n,t,e.u,e.s)}return n.o}function H(e,r,t,n,o,a){if("production"!==process.env.NODE_ENV&&o===t&&S(5),R(o)){var i=G(e,o,a&&r&&3!==r.i&&!I(r.D,n)?a.concat(n):void 0);if(T(t,n,i),!R(i))return;e.m=!1}if(N(o)&&!L(o)){if(!e.h.N&&e._<1)return;G(e,o),r&&r.A.l||Q(e,o)}}function Q(e,r,t){void 0===t&&(t=!1),e.h.N&&e.m&&z(r,t)}function Z(e,r){var t=e[ye];return(t?$(t):e)[r]}function ee(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Object.getPrototypeOf(t)}}function re(e){e.P||(e.P=!0,e.l&&re(e.l))}function te(e){e.o||(e.o=V(e.t))}function ne(e,r,t){var n=C(r)?U("MapSet").T(r,t):F(r)?U("MapSet").F(r,t):e.O?function(e,r){var t=Array.isArray(e),n={i:t?1:0,A:r?r.A:M(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},o=n,a=ge;t&&(o=[n],a=Oe);var i=Proxy.revocable(o,a),c=i.revoke,u=i.proxy;return n.k=u,n.j=c,u}(r,t):U("ES5").J(r,t);return(t?t.A:M()).p.push(n),n}function oe(e){return R(e)||S(22,e),function e(r){if(!N(r))return r;var t,n=r[ye],o=A(r);if(n){if(!n.P&&(n.i<4||!U("ES5").K(n)))return n.t;n.I=!0,t=ae(r,o),n.I=!1}else t=ae(r,o);return D(t,(function(r,o){n&&function(e,r){return 2===A(e)?e.get(r):e[r]}(n.t,r)===o||T(t,r,e(o))})),3===o?new Set(t):t}(e)}function ae(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return V(e)}var ie,ce,ue="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),se="undefined"!=typeof Map,fe="undefined"!=typeof Set,le="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pe=ue?Symbol.for("immer-nothing"):((ie={})["immer-nothing"]=!0,ie),de=ue?Symbol.for("immer-draftable"):"__$immer_draftable",ye=ue?Symbol.for("immer-state"):"__$immer_state",ve={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},he="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,be=Object.getOwnPropertyDescriptors||function(e){var r={};return he(e).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)})),r},me={},ge={get:function(e,r){if(r===ye)return e;var t=$(e);if(!I(t,r))return function(e,r,t){var n,o=ee(r,t);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,t,r);var n=t[r];return e.I||!N(n)?n:n===Z(e.t,r)?(te(e),e.o[r]=ne(e.A.h,n,e)):n},has:function(e,r){return r in $(e)},ownKeys:function(e){return Reflect.ownKeys($(e))},set:function(e,r,t){var n=ee($(e),r);if(null==n?void 0:n.set)return n.set.call(e.k,t),!0;if(!e.P){var o=Z($(e),r),a=null==o?void 0:o[ye];if(a&&a.t===t)return e.o[r]=t,e.D[r]=!1,!0;if(function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}(t,o)&&(void 0!==t||I(e.t,r)))return!0;te(e),re(e)}return e.o[r]=t,e.D[r]=!0,!0},deleteProperty:function(e,r){return void 0!==Z(e.t,r)||r in e.t?(e.D[r]=!1,te(e),re(e)):delete e.D[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=$(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n?{writable:!0,configurable:1!==e.i||"length"!==r,enumerable:n.enumerable,value:t[r]}:n},defineProperty:function(){S(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){S(12)}},Oe={};D(ge,(function(e,r){Oe[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),Oe.deleteProperty=function(e,r){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&S(13),ge.deleteProperty.call(this,e[0],r)},Oe.set=function(e,r,t){return"production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&S(14),ge.set.call(this,e[0],r,t,e[0])};var je=new(function(){function e(e){this.O=le,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var r=e.prototype;return r.produce=function(e,r,t){if("function"==typeof e&&"function"!=typeof r){var n=r;r=e;var o=this;return function(e){var t=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(i))}))}}var a;if("function"!=typeof r&&S(6),void 0!==t&&"function"!=typeof t&&S(7),N(e)){var i=Y(this),c=ne(this,e,void 0),u=!0;try{a=r(c),u=!1}finally{u?q(i):K(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return B(i,t),X(e,i)}),(function(e){throw q(i),e})):(B(i,t),X(a,i))}if(!e||"object"!=typeof e){if((a=r(e))===pe)return;return void 0===a&&(a=e),this.N&&z(a,!0),a}S(21,e)},r.produceWithPatches=function(e,r){var t,n,o=this;return"function"==typeof e?function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return o.produceWithPatches(r,(function(r){return e.apply(void 0,[r].concat(n))}))}:[this.produce(e,r,(function(e,r){t=e,n=r})),t,n]},r.createDraft=function(e){N(e)||S(8),R(e)&&(e=oe(e));var r=Y(this),t=ne(this,e,void 0);return t[ye].C=!0,K(r),t},r.finishDraft=function(e,r){var t=e&&e[ye];"production"!==process.env.NODE_ENV&&(t&&t.C||S(9),t.I&&S(10));var n=t.A;return B(n,r),X(void 0,n)},r.setAutoFreeze=function(e){this.N=e},r.setUseProxies=function(e){e&&!le&&S(20),this.O=e},r.applyPatches=function(e,r){var t;for(t=r.length-1;t>=0;t--){var n=r[t];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=U("Patches").$;return R(e)?o(e,r):this.produce(e,(function(e){return o(e,r.slice(t+1))}))},e}()),we=je.produce;je.produceWithPatches.bind(je),je.setAutoFreeze.bind(je),je.setUseProxies.bind(je),je.applyPatches.bind(je),je.createDraft.bind(je),je.finishDraft.bind(je);const _e={errorValidate:!1};e.createContext(_e);const Pe=(e,r)=>{switch(r.type){case"SET_ERROR_VALIDATE":return we(e,(e=>{e.errorValidate=r.payload.errorValidate}));default:return e}},xe=r({}),Ee=e=>{const[r,n]=t(Pe,_e),o={state:r,dispatch:n};return l.exports.jsx(xe.Provider,Object.assign({value:o},{children:e.children}),void 0)},ke=s.div`
*/function _(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if("production"!==process.env.NODE_ENV){var o=le[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function x(e){return!!e&&!!e[fe]}function k(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}(e)||Array.isArray(e)||!!e[ue]||!!e.constructor[ue]||D(e)||A(e))}function E(e,r,t){void 0===t&&(t=!1),0===S(e)?(t?Object.keys:pe)(e).forEach((function(n){t&&"symbol"==typeof n||r(n,e[n],e)})):e.forEach((function(t,n){return r(n,t,e)}))}function S(e){var r=e[fe];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:D(e)?2:A(e)?3:0}function N(e,r){return 2===S(e)?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function R(e,r,t){var n=S(e);2===n?e.set(r,t):3===n?(e.delete(r),e.add(t)):e[r]=t}function D(e){return ae&&e instanceof Map}function A(e){return ie&&e instanceof Set}function C(e){return e.o||e.t}function F(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=de(e);delete r[fe];for(var t=pe(r),n=0;n<t.length;n++){var o=t[n],a=r[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),r)}function I(e,r){return void 0===r&&(r=!1),$(e)||x(e)||!k(e)||(S(e)>1&&(e.set=e.add=e.clear=e.delete=T),Object.freeze(e),r&&E(e,(function(e,r){return I(r,!0)}),!0)),e}function T(){_(2)}function $(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function z(e){var r=ye[e];return r||_(18,e),r}function W(){return"production"===process.env.NODE_ENV||ne||_(0),ne}function U(e,r){r&&(z("Patches"),e.u=[],e.s=[],e.v=r)}function L(e){M(e),e.p.forEach(q),e.p=null}function M(e){e===ne&&(ne=e.l)}function V(e){return ne={p:[],l:ne,h:e,m:!0,_:0}}function q(e){var r=e[fe];0===r.i||1===r.i?r.j():r.g=!0}function B(e,r){r._=r.p.length;var t=r.p[0],n=void 0!==e&&e!==t;return r.h.O||z("ES5").S(r,e,n),n?(t[fe].P&&(L(r),_(4)),k(e)&&(e=K(r,e),r.l||G(r,e)),r.u&&z("Patches").M(t[fe],e,r.u,r.s)):e=K(r,t,[]),L(r),r.u&&r.v(r.u,r.s),e!==se?e:void 0}function K(e,r,t){if($(r))return r;var n=r[fe];if(!n)return E(r,(function(o,a){return Y(e,n,r,o,a,t)}),!0),r;if(n.A!==e)return r;if(!n.P)return G(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=F(n.k):n.o;E(3===n.i?new Set(o):o,(function(r,a){return Y(e,n,o,r,a,t)})),G(e,o,!1),t&&e.u&&z("Patches").R(n,t,e.u,e.s)}return n.o}function Y(e,r,t,n,o,a){if("production"!==process.env.NODE_ENV&&o===t&&_(5),x(o)){var i=K(e,o,a&&r&&3!==r.i&&!N(r.D,n)?a.concat(n):void 0);if(R(t,n,i),!x(i))return;e.m=!1}if(k(o)&&!$(o)){if(!e.h.N&&e._<1)return;K(e,o),r&&r.A.l||G(e,o)}}function G(e,r,t){void 0===t&&(t=!1),e.h.N&&e.m&&I(r,t)}function J(e,r){var t=e[fe];return(t?C(t):e)[r]}function X(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Object.getPrototypeOf(t)}}function H(e){e.P||(e.P=!0,e.l&&H(e.l))}function Q(e){e.o||(e.o=F(e.t))}function Z(e,r,t){var n=D(r)?z("MapSet").T(r,t):A(r)?z("MapSet").F(r,t):e.O?function(e,r){var t=Array.isArray(e),n={i:t?1:0,A:r?r.A:W(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},o=n,a=ve;t&&(o=[n],a=he);var i=Proxy.revocable(o,a),c=i.revoke,s=i.proxy;return n.k=s,n.j=c,s}(r,t):z("ES5").J(r,t);return(t?t.A:W()).p.push(n),n}function ee(e){return x(e)||_(22,e),function e(r){if(!k(r))return r;var t,n=r[fe],o=S(r);if(n){if(!n.P&&(n.i<4||!z("ES5").K(n)))return n.t;n.I=!0,t=re(r,o),n.I=!1}else t=re(r,o);return E(t,(function(r,o){n&&function(e,r){return 2===S(e)?e.get(r):e[r]}(n.t,r)===o||R(t,r,e(o))})),3===o?new Set(t):t}(e)}function re(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return F(e)}w=P,"production"!==process.env.NODE_ENV&&function(){var r=e,t=y,n=60103,o=60106;w.Fragment=60107;var a=60108,i=60114,c=60109,s=60110,u=60112,f=60113,l=60120,p=60115,d=60116,v=60121,h=60122,b=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var O=Symbol.for;n=O("react.element"),o=O("react.portal"),w.Fragment=O("react.fragment"),a=O("react.strict_mode"),i=O("react.profiler"),c=O("react.provider"),s=O("react.context"),u=O("react.forward_ref"),f=O("react.suspense"),l=O("react.suspense_list"),p=O("react.memo"),d=O("react.lazy"),v=O("react.block"),h=O("react.server.block"),b=O("react.fundamental"),O("react.scope"),O("react.opaque.id"),m=O("react.debug_trace_mode"),O("react.offscreen"),g=O("react.legacy_hidden")}var j="function"==typeof Symbol&&Symbol.iterator,P=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];x("error",e,t)}function x(e,r,t){var n=P.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(r+="%s",t=t.concat([n]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,o)}function k(e){return e.displayName||"Context"}function E(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w.Fragment:return"Fragment";case o:return"Portal";case i:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case l:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return k(e)+".Consumer";case c:return k(e._context)+".Provider";case u:return y=e,h=e.render,b="ForwardRef",m=h.displayName||h.name||"",y.displayName||(""!==m?b+"("+m+")":b);case p:return E(e.type);case v:return E(e._render);case d:var r=e,t=r._payload,n=r._init;try{return E(n(t))}catch(e){return null}}var y,h,b,m;return null}var S,N,R,D,A,C,F,I=0;function T(){}T.__reactDisabledLog=!0;var $,z=P.ReactCurrentDispatcher;function W(e,r,t){if(void 0===$)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$=n&&n[1]||""}return"\n"+$+e}var U,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function V(e,r){if(!e||L)return"";var n,o=U.get(e);if(void 0!==o)return o;L=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=z.current,z.current=null,function(){if(0===I){S=console.log,N=console.info,R=console.warn,D=console.error,A=console.group,C=console.groupCollapsed,F=console.groupEnd;var e={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(r){if(r&&n&&"string"==typeof r.stack){for(var s=r.stack.split("\n"),u=n.stack.split("\n"),f=s.length-1,l=u.length-1;f>=1&&l>=0&&s[f]!==u[l];)l--;for(;f>=1&&l>=0;f--,l--)if(s[f]!==u[l]){if(1!==f||1!==l)do{if(f--,--l<0||s[f]!==u[l]){var p="\n"+s[f].replace(" at new "," at ");return"function"==typeof e&&U.set(e,p),p}}while(f>=1&&l>=0);break}}}finally{L=!1,z.current=a,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:S}),info:t({},e,{value:N}),warn:t({},e,{value:R}),error:t({},e,{value:D}),group:t({},e,{value:A}),groupCollapsed:t({},e,{value:C}),groupEnd:t({},e,{value:F})})}I<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",y=d?W(d):"";return"function"==typeof e&&U.set(e,y),y}function q(e,r,t){return V(e,!1)}function B(e,r,t){if(null==e)return"";if("function"==typeof e)return V(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return W(e);switch(e){case f:return W("Suspense");case l:return W("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return q(e.render);case p:return B(e.type,r,t);case v:return q(e._render);case d:var o=e,a=o._payload,i=o._init;try{return B(i(a),r,t)}catch(e){}}return""}U=new M;var K={},Y=P.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var J,X,H,Q=P.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};function re(e,r,t,o,a){var i,c={},s=null,u=null;for(i in void 0!==t&&(s=""+t),function(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(s=""+r.key),function(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(u=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=E(Q.current.type);H[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(Q.current.type),e.ref),H[t]=!0)}}(r,a)),r)Z.call(r,i)&&!ee.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps){var f=e.defaultProps;for(i in f)void 0===c[i]&&(c[i]=f[i])}if(s||u){var l="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,r){var t=function(){J||(J=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(c,l),u&&function(e,r){var t=function(){X||(X=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(c,l)}return function(e,r,t,o,a,i,c){var s={$$typeof:n,type:e,key:r,ref:t,props:c,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,u,a,o,Q.current,c)}H={};var te,ne=P.ReactCurrentOwner,oe=P.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function ce(){if(ne.current){var e=E(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}te=!1;var se={};function ue(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ce();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!se[t]){se[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),ae(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ae(null)}}}function fe(e,r){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&ue(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=j&&e[j]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&ue(a.value,r)}}function le(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==u&&t.$$typeof!==p)return;r=t.propTypes}if(r){var n=E(t);!function(e,r,t,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(G(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof c),G(null)),c instanceof Error&&!(c.message in K)&&(K[c.message]=!0,G(o),_("Failed %s type: %s",t,c.message),G(null))}}(r,e.props,"prop",n,e)}else void 0===t.PropTypes||te||(te=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(t)||"Unknown"));"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(e,r,t,o,y,O){var j=function(e){return"string"==typeof e||"function"==typeof e||e===w.Fragment||e===i||e===m||e===a||e===f||e===l||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===c||e.$$typeof===s||e.$$typeof===u||e.$$typeof===b||e.$$typeof===v||e[0]===h)}(e);if(!j){var P="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(y);P+=k||ce(),null===e?x="null":Array.isArray(e)?x="array":void 0!==e&&e.$$typeof===n?(x="<"+(E(e.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,P)}var S=re(e,r,t,y,O);if(null==S)return S;if(j){var N=r.children;if(void 0!==N)if(o)if(Array.isArray(N)){for(var R=0;R<N.length;R++)fe(N[R],e);Object.freeze&&Object.freeze(N)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fe(N,e)}return e===w.Fragment?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){ae(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(S):le(S),S}var de=function(e,r,t){return pe(e,r,t,!1)},ye=function(e,r,t){return pe(e,r,t,!0)};w.jsx=de,w.jsxs=ye}(),"production"===process.env.NODE_ENV?s.exports=u:s.exports=P;var te,ne,oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ae="undefined"!=typeof Map,ie="undefined"!=typeof Set,ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,se=oe?Symbol.for("immer-nothing"):((te={})["immer-nothing"]=!0,te),ue=oe?Symbol.for("immer-draftable"):"__$immer_draftable",fe=oe?Symbol.for("immer-state"):"__$immer_state",le={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},pe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,de=Object.getOwnPropertyDescriptors||function(e){var r={};return pe(e).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)})),r},ye={},ve={get:function(e,r){if(r===fe)return e;var t=C(e);if(!N(t,r))return function(e,r,t){var n,o=X(r,t);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,t,r);var n=t[r];return e.I||!k(n)?n:n===J(e.t,r)?(Q(e),e.o[r]=Z(e.A.h,n,e)):n},has:function(e,r){return r in C(e)},ownKeys:function(e){return Reflect.ownKeys(C(e))},set:function(e,r,t){var n=X(C(e),r);if(null==n?void 0:n.set)return n.set.call(e.k,t),!0;if(!e.P){var o=J(C(e),r),a=null==o?void 0:o[fe];if(a&&a.t===t)return e.o[r]=t,e.D[r]=!1,!0;if(function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}(t,o)&&(void 0!==t||N(e.t,r)))return!0;Q(e),H(e)}return e.o[r]=t,e.D[r]=!0,!0},deleteProperty:function(e,r){return void 0!==J(e.t,r)||r in e.t?(e.D[r]=!1,Q(e),H(e)):delete e.D[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=C(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n?{writable:!0,configurable:1!==e.i||"length"!==r,enumerable:n.enumerable,value:t[r]}:n},defineProperty:function(){_(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){_(12)}},he={};E(ve,(function(e,r){he[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),he.deleteProperty=function(e,r){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&_(13),ve.deleteProperty.call(this,e[0],r)},he.set=function(e,r,t){return"production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&_(14),ve.set.call(this,e[0],r,t,e[0])};var be=new(function(){function e(e){this.O=ce,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var r=e.prototype;return r.produce=function(e,r,t){if("function"==typeof e&&"function"!=typeof r){var n=r;r=e;var o=this;return function(e){var t=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(i))}))}}var a;if("function"!=typeof r&&_(6),void 0!==t&&"function"!=typeof t&&_(7),k(e)){var i=V(this),c=Z(this,e,void 0),s=!0;try{a=r(c),s=!1}finally{s?L(i):M(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return U(i,t),B(e,i)}),(function(e){throw L(i),e})):(U(i,t),B(a,i))}if(!e||"object"!=typeof e){if((a=r(e))===se)return;return void 0===a&&(a=e),this.N&&I(a,!0),a}_(21,e)},r.produceWithPatches=function(e,r){var t,n,o=this;return"function"==typeof e?function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return o.produceWithPatches(r,(function(r){return e.apply(void 0,[r].concat(n))}))}:[this.produce(e,r,(function(e,r){t=e,n=r})),t,n]},r.createDraft=function(e){k(e)||_(8),x(e)&&(e=ee(e));var r=V(this),t=Z(this,e,void 0);return t[fe].C=!0,M(r),t},r.finishDraft=function(e,r){var t=e&&e[fe];"production"!==process.env.NODE_ENV&&(t&&t.C||_(9),t.I&&_(10));var n=t.A;return U(n,r),B(void 0,n)},r.setAutoFreeze=function(e){this.N=e},r.setUseProxies=function(e){e&&!ce&&_(20),this.O=e},r.applyPatches=function(e,r){var t;for(t=r.length-1;t>=0;t--){var n=r[t];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=z("Patches").$;return x(e)?o(e,r):this.produce(e,(function(e){return o(e,r.slice(t+1))}))},e}()),me=be.produce;be.produceWithPatches.bind(be),be.setAutoFreeze.bind(be),be.setUseProxies.bind(be),be.applyPatches.bind(be),be.createDraft.bind(be),be.finishDraft.bind(be);const ge={errorValidate:!1,groupProps:void 0};e.createContext(ge);const Oe=(e,r)=>{switch(r.type){case"SET_GROUP_PROPS":return me(e,(e=>{e.groupProps=r.payload.data}));default:return e}},je=r({}),we=e=>{const[r,n]=t(Oe,ge),o={state:r,dispatch:n};return s.exports.jsx(je.Provider,Object.assign({value:o},{children:e.children}),void 0)},Pe=c.div`
.min-w-12 {
min-width: 3rem;
}
`;function Se(e){return Object.entries(e).map((e=>e[1]?e[0]:null)).filter((e=>null!==e)).join(" ")}const Re=n((e=>{const{icon:r}=e;return r?l.exports.jsx("div",Object.assign({className:Se({"h-full w-10 border border-gray-300 rounded flex items-center justify-center":!0,"rounded-r-none border-r-0":"left"===r.position,"rounded-l-none border-l-0":"right"===r.position})},{children:r.icon}),void 0):null})),Ne=n((e=>{const{content:r,children:t,required:n}=e;return t?l.exports.jsx(l.exports.Fragment,{children:t},void 0):r?l.exports.jsxs("div",Object.assign({className:"mb-1"},{children:[l.exports.jsx("span",Object.assign({className:"font-medium"},{children:r}),void 0),n&&l.exports.jsx("span",Object.assign({className:"text-red-500 ml-1.5"},{children:"*"}),void 0)]}),void 0):null})),De=n((e=>{const{icons:r,className:t,onBlur:n,onChange:i,error:c}=e,u=f(e,["icons","className","onBlur","onChange","error"]),[s,p]=o(""),{state:d,dispatch:y}=a(xe),v=null==r?void 0:r.find((e=>"left"===e.position)),h=null==r?void 0:r.find((e=>"right"===e.position));return l.exports.jsx(ke,{children:l.exports.jsxs("div",Object.assign({className:Se({"h-10":!0,"flex items-center":!!(r&&r.length>0)})},{children:[v&&l.exports.jsx(Re,{icon:v},void 0),l.exports.jsx("input",Object.assign({},u,{onBlur:e=>{n&&n(e),!c||s||(null==d?void 0:d.errorValidate)||y(k(!0))},onChange:e=>{i&&i(e),(null==d?void 0:d.errorValidate)&&y(k(!e.target.value)),p(e.target.value)},className:Se({"flex-1 flex items-center rounded overflow-hidden border border-gray-300 px-3 w-full h-full pt-2 pb-2.5 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:border-blue-600 focus:outline-none min-w-12":!0,"rounded-l-none":!!v,"rounded-r-none":!!h})+` ${t||""}`}),void 0),h&&l.exports.jsx(Re,{icon:h},void 0)]}),void 0)},void 0)})),Ae=n((e=>{const{children:r,content:t,error:n}=e,{state:o}=a(xe);return r?l.exports.jsx("div",Object.assign({className:o.errorValidate&&n?"text-red-500":""},{children:r}),void 0):l.exports.jsx("div",{children:t},void 0)})),Ie=n((e=>{const{children:r}=e,t=f(e,["children"]),n=i.map(r,(e=>c(e)?u(e,Object.assign({},t)):e));return l.exports.jsx(Ee,{children:n},void 0)}));export{Ae as TextDescription,Ie as TextFieldGroup,De as TextInput,Ne as TextLabel};
`;function _e(e){return Object.entries(e).map((e=>e[1]?e[0]:null)).filter((e=>null!==e)).join(" ")}const xe=n((e=>{const{icon:r}=e;return r?s.exports.jsx("div",Object.assign({className:_e({"h-full w-10 border border-gray-300 rounded flex items-center justify-center":!0,"rounded-r-none border-r-0":"left"===r.position,"rounded-l-none border-l-0":"right"===r.position})},{children:r.icon}),void 0):null})),ke=n((e=>{const{content:r,children:t,required:n}=e;return r||t?t?s.exports.jsxs("div",{children:[s.exports.jsx("div",{children:t},void 0),n&&s.exports.jsx("span",Object.assign({className:"text-red-500 ml-2 font-semibold"},{children:"*"}),void 0)]},void 0):s.exports.jsxs("div",Object.assign({className:"mb-1"},{children:[s.exports.jsx("label",Object.assign({className:"font-semibold"},{children:r}),void 0),n&&s.exports.jsx("span",Object.assign({className:"text-red-500 ml-2 font-semibold"},{children:"*"}),void 0)]}),void 0):null})),Ee=n((e=>{const{icons:r,className:t,onBlur:n,onChange:i}=e,c=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(e,["icons","className","onBlur","onChange"]),[u,f]=o(""),{state:l}=a(je),[p,d]=o(!1),y=null==r?void 0:r.find((e=>"left"===e.position)),v=null==r?void 0:r.find((e=>"right"===e.position));return s.exports.jsxs(Pe,{children:[s.exports.jsxs("div",Object.assign({className:_e({"h-10":!0,"flex items-center":!!(r&&r.length>0)})},{children:[y&&s.exports.jsx(xe,{icon:y},void 0),s.exports.jsx("input",Object.assign({},c,{onBlur:e=>{var r;n&&n(e),(null===(r=l.groupProps)||void 0===r?void 0:r.checkRequired)&&!u&&d(!0)},onChange:e=>{i&&i(e),d(!e.target.value),f(e.target.value)},className:_e({"flex-1 flex items-center rounded overflow-hidden border border-gray-300 px-3 w-full h-full pt-2 pb-2.5 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:border-blue-600 focus:outline-none min-w-12":!0,"rounded-l-none":!!y,"rounded-r-none":!!v})+` ${t||""}`}),void 0),v&&s.exports.jsx(xe,{icon:v},void 0)]}),void 0),p&&s.exports.jsx("span",Object.assign({className:"block mt-0.5 text-red-500"},{children:"Required"}),void 0)]},void 0)})),Se=n((e=>{const{children:r,content:t}=e;return t||r?r?s.exports.jsx(s.exports.Fragment,{children:r},void 0):s.exports.jsx("span",Object.assign({className:"block text-sm mt-0.5"},{children:t}),void 0):null})),Ne=n((e=>{const{dispatch:r}=a(je);return i((()=>{e&&r({type:"SET_GROUP_PROPS",payload:{data:e}})}),[e,r]),s.exports.jsx("div",{children:e.children},void 0)})),Re=n((e=>s.exports.jsx(we,{children:s.exports.jsx(Ne,Object.assign({},e),void 0)},void 0)));export{Se as TextDescription,Re as TextFieldGroup,Ee as TextInput,ke as TextLabel};
//# sourceMappingURL=index.es.js.map

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o=t(r);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function a(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}var i={exports:{}},c={},u=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var p=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var t,n,o=l(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))s.call(t,i)&&(o[i]=t[i]);if(u){n=u(t);for(var c=0;c<n.length;c++)f.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o},d=n.default,y=60103;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("styled-components");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o=t(r);var a={exports:{}},i={},c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;function f(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var t,n,o=f(e),a=1;a<arguments.length;a++){for(var i in t=Object(arguments[a]))s.call(t,i)&&(o[i]=t[i]);if(c){n=c(t);for(var l=0;l<n.length;l++)u.call(t,n[l])&&(o[n[l]]=t[n[l]])}}return o},p=n.default,d=60103;
/** @license React v17.0.2

@@ -24,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/if(c.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var v=Symbol.for;y=v("react.element"),c.Fragment=v("react.fragment")}var h=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function g(e,r,t){var n,o={},a=null,i=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(i=r.ref),r)m.call(r,n)&&!b.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:y,type:e,key:a,ref:i,props:o,_owner:h.current}}c.jsx=g,c.jsxs=g;var O={};
*/if(i.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var y=Symbol.for;d=y("react.element"),i.Fragment=y("react.fragment")}var v=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h=Object.prototype.hasOwnProperty,m={key:!0,ref:!0,__self:!0,__source:!0};function b(e,r,t){var n,o={},a=null,i=null;for(n in void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(i=r.ref),r)h.call(r,n)&&!m.hasOwnProperty(n)&&(o[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===o[n]&&(o[n]=r[n]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:v.current}}i.jsx=b,i.jsxs=b;var g={};
/** @license React v17.0.2

@@ -33,7 +18,22 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/!function(e){"production"!==process.env.NODE_ENV&&function(){var r=n.default,t=p,o=60103,a=60106;e.Fragment=60107;var i=60108,c=60114,u=60109,s=60110,f=60112,l=60113,d=60120,y=60115,v=60116,h=60121,m=60122,b=60117,g=60129,O=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;o=j("react.element"),a=j("react.portal"),e.Fragment=j("react.fragment"),i=j("react.strict_mode"),c=j("react.profiler"),u=j("react.provider"),s=j("react.context"),f=j("react.forward_ref"),l=j("react.suspense"),d=j("react.suspense_list"),y=j("react.memo"),v=j("react.lazy"),h=j("react.block"),m=j("react.server.block"),b=j("react.fundamental"),j("react.scope"),j("react.opaque.id"),g=j("react.debug_trace_mode"),j("react.offscreen"),O=j("react.legacy_hidden")}var w="function"==typeof Symbol&&Symbol.iterator;var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];x("error",e,t)}function x(e,r,t){var n=_.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(r+="%s",t=t.concat([n]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,o)}function E(e){return e.displayName||"Context"}function k(r){if(null==r)return null;if("number"==typeof r.tag&&P("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if("object"==typeof r)switch(r.$$typeof){case s:return E(r)+".Consumer";case u:return E(r._context)+".Provider";case f:return p=r,m=r.render,b="ForwardRef",g=m.displayName||m.name||"",p.displayName||(""!==g?b+"("+g+")":b);case y:return k(r.type);case h:return k(r._render);case v:var t=r,n=t._payload,o=t._init;try{return k(o(n))}catch(e){return null}}var p,m,b,g;return null}var S,R,N,D,T,A,C,I=0;function F(){}F.__reactDisabledLog=!0;var $,V=_.ReactCurrentDispatcher;function z(e,r,t){if(void 0===$)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$=n&&n[1]||""}return"\n"+$+e}var W,L=!1,U="function"==typeof WeakMap?WeakMap:Map;function M(e,r){if(!e||L)return"";var n,o=W.get(e);if(void 0!==o)return o;L=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=V.current,V.current=null,function(){if(0===I){S=console.log,R=console.info,N=console.warn,D=console.error,T=console.group,A=console.groupCollapsed,C=console.groupEnd;var e={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(r){if(r&&n&&"string"==typeof r.stack){for(var u=r.stack.split("\n"),s=n.stack.split("\n"),f=u.length-1,l=s.length-1;f>=1&&l>=0&&u[f]!==s[l];)l--;for(;f>=1&&l>=0;f--,l--)if(u[f]!==s[l]){if(1!==f||1!==l)do{if(f--,--l<0||u[f]!==s[l]){var p="\n"+u[f].replace(" at new "," at ");return"function"==typeof e&&W.set(e,p),p}}while(f>=1&&l>=0);break}}}finally{L=!1,V.current=a,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:S}),info:t({},e,{value:R}),warn:t({},e,{value:N}),error:t({},e,{value:D}),group:t({},e,{value:T}),groupCollapsed:t({},e,{value:A}),groupEnd:t({},e,{value:C})})}I<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",y=d?z(d):"";return"function"==typeof e&&W.set(e,y),y}function q(e,r,t){return M(e,!1)}function B(e,r,t){if(null==e)return"";if("function"==typeof e)return M(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return z(e);switch(e){case l:return z("Suspense");case d:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case f:return q(e.render);case y:return B(e.type,r,t);case h:return q(e._render);case v:var o=e,a=o._payload,i=o._init;try{return B(i(a),r,t)}catch(e){}}return""}W=new U;var K={},Y=_.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var J,X,H,Q=_.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};H={};function re(e,r,t,n,a){var i,c={},u=null,s=null;for(i in void 0!==t&&(u=""+t),function(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(u=""+r.key),function(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(s=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=k(Q.current.type);H[t]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(Q.current.type),e.ref),H[t]=!0)}}(r,a)),r)Z.call(r,i)&&!ee.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps){var f=e.defaultProps;for(i in f)void 0===c[i]&&(c[i]=f[i])}if(u||s){var l="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&function(e,r){var t=function(){J||(J=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(c,l),s&&function(e,r){var t=function(){X||(X=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(c,l)}return function(e,r,t,n,a,i,c){var u={$$typeof:o,type:e,key:r,ref:t,props:c,_owner:i,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}(e,u,s,a,n,Q.current,c)}var te,ne=_.ReactCurrentOwner,oe=_.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ce(){if(ne.current){var e=k(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}te=!1;var ue={};function se(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ce();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ue[t]){ue[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+k(e._owner.type)+"."),ae(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ae(null)}}}function fe(e,r){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&se(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=w&&e[w]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&se(a.value,r)}}function le(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==f&&t.$$typeof!==y)return;r=t.propTypes}if(r){var n=k(t);!function(e,r,t,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var u=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}c=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(G(o),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof c),G(null)),c instanceof Error&&!(c.message in K)&&(K[c.message]=!0,G(o),P("Failed %s type: %s",t,c.message),G(null))}}(r,e.props,"prop",n,e)}else if(void 0!==t.PropTypes&&!te){te=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(r,t,n,a,p,j){var w=function(r){return"string"==typeof r||"function"==typeof r||r===e.Fragment||r===c||r===g||r===i||r===l||r===d||r===O||"object"==typeof r&&null!==r&&(r.$$typeof===v||r.$$typeof===y||r.$$typeof===u||r.$$typeof===s||r.$$typeof===f||r.$$typeof===b||r.$$typeof===h||r[0]===m)}(r);if(!w){var _="";(void 0===r||"object"==typeof r&&null!==r&&0===Object.keys(r).length)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x,E=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(p);_+=E||ce(),null===r?x="null":Array.isArray(r)?x="array":void 0!==r&&r.$$typeof===o?(x="<"+(k(r.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):x=typeof r,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,_)}var S=re(r,t,n,p,j);if(null==S)return S;if(w){var R=t.children;if(void 0!==R)if(a)if(Array.isArray(R)){for(var N=0;N<R.length;N++)fe(R[N],r);Object.freeze&&Object.freeze(R)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fe(R,r)}return r===e.Fragment?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){ae(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(S):le(S),S}var de=function(e,r,t){return pe(e,r,t,!1)},ye=function(e,r,t){return pe(e,r,t,!0)};e.jsx=de,e.jsxs=ye}()}(O),"production"===process.env.NODE_ENV?i.exports=c:i.exports=O;const j=e=>({type:"SET_ERROR_VALIDATE",payload:{errorValidate:e}});function w(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if("production"!==process.env.NODE_ENV){var o=se[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _(e){return!!e&&!!e[ue]}function P(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}(e)||Array.isArray(e)||!!e[ce]||!!e.constructor[ce]||R(e)||N(e))}function x(e,r,t){void 0===t&&(t=!1),0===E(e)?(t?Object.keys:fe)(e).forEach((function(n){t&&"symbol"==typeof n||r(n,e[n],e)})):e.forEach((function(t,n){return r(n,t,e)}))}function E(e){var r=e[ue];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:R(e)?2:N(e)?3:0}function k(e,r){return 2===E(e)?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function S(e,r,t){var n=E(e);2===n?e.set(r,t):3===n?(e.delete(r),e.add(t)):e[r]=t}function R(e){return ne&&e instanceof Map}function N(e){return oe&&e instanceof Set}function D(e){return e.o||e.t}function T(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=le(e);delete r[ue];for(var t=fe(r),n=0;n<t.length;n++){var o=t[n],a=r[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),r)}function A(e,r){return void 0===r&&(r=!1),I(e)||_(e)||!P(e)||(E(e)>1&&(e.set=e.add=e.clear=e.delete=C),Object.freeze(e),r&&x(e,(function(e,r){return A(r,!0)}),!0)),e}function C(){w(2)}function I(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function F(e){var r=pe[e];return r||w(18,e),r}function $(){return"production"===process.env.NODE_ENV||re||w(0),re}function V(e,r){r&&(F("Patches"),e.u=[],e.s=[],e.v=r)}function z(e){W(e),e.p.forEach(U),e.p=null}function W(e){e===re&&(re=e.l)}function L(e){return re={p:[],l:re,h:e,m:!0,_:0}}function U(e){var r=e[ue];0===r.i||1===r.i?r.j():r.g=!0}function M(e,r){r._=r.p.length;var t=r.p[0],n=void 0!==e&&e!==t;return r.h.O||F("ES5").S(r,e,n),n?(t[ue].P&&(z(r),w(4)),P(e)&&(e=q(r,e),r.l||K(r,e)),r.u&&F("Patches").M(t[ue],e,r.u,r.s)):e=q(r,t,[]),z(r),r.u&&r.v(r.u,r.s),e!==ie?e:void 0}function q(e,r,t){if(I(r))return r;var n=r[ue];if(!n)return x(r,(function(o,a){return B(e,n,r,o,a,t)}),!0),r;if(n.A!==e)return r;if(!n.P)return K(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=T(n.k):n.o;x(3===n.i?new Set(o):o,(function(r,a){return B(e,n,o,r,a,t)})),K(e,o,!1),t&&e.u&&F("Patches").R(n,t,e.u,e.s)}return n.o}function B(e,r,t,n,o,a){if("production"!==process.env.NODE_ENV&&o===t&&w(5),_(o)){var i=q(e,o,a&&r&&3!==r.i&&!k(r.D,n)?a.concat(n):void 0);if(S(t,n,i),!_(i))return;e.m=!1}if(P(o)&&!I(o)){if(!e.h.N&&e._<1)return;q(e,o),r&&r.A.l||K(e,o)}}function K(e,r,t){void 0===t&&(t=!1),e.h.N&&e.m&&A(r,t)}function Y(e,r){var t=e[ue];return(t?D(t):e)[r]}function G(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Object.getPrototypeOf(t)}}function J(e){e.P||(e.P=!0,e.l&&J(e.l))}function X(e){e.o||(e.o=T(e.t))}function H(e,r,t){var n=R(r)?F("MapSet").T(r,t):N(r)?F("MapSet").F(r,t):e.O?function(e,r){var t=Array.isArray(e),n={i:t?1:0,A:r?r.A:$(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},o=n,a=de;t&&(o=[n],a=ye);var i=Proxy.revocable(o,a),c=i.revoke,u=i.proxy;return n.k=u,n.j=c,u}(r,t):F("ES5").J(r,t);return(t?t.A:$()).p.push(n),n}function Q(e){return _(e)||w(22,e),function e(r){if(!P(r))return r;var t,n=r[ue],o=E(r);if(n){if(!n.P&&(n.i<4||!F("ES5").K(n)))return n.t;n.I=!0,t=Z(r,o),n.I=!1}else t=Z(r,o);return x(t,(function(r,o){n&&function(e,r){return 2===E(e)?e.get(r):e[r]}(n.t,r)===o||S(t,r,e(o))})),3===o?new Set(t):t}(e)}function Z(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return T(e)}var ee,re,te="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ne="undefined"!=typeof Map,oe="undefined"!=typeof Set,ae="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ie=te?Symbol.for("immer-nothing"):((ee={})["immer-nothing"]=!0,ee),ce=te?Symbol.for("immer-draftable"):"__$immer_draftable",ue=te?Symbol.for("immer-state"):"__$immer_state",se={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},fe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,le=Object.getOwnPropertyDescriptors||function(e){var r={};return fe(e).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)})),r},pe={},de={get:function(e,r){if(r===ue)return e;var t=D(e);if(!k(t,r))return function(e,r,t){var n,o=G(r,t);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,t,r);var n=t[r];return e.I||!P(n)?n:n===Y(e.t,r)?(X(e),e.o[r]=H(e.A.h,n,e)):n},has:function(e,r){return r in D(e)},ownKeys:function(e){return Reflect.ownKeys(D(e))},set:function(e,r,t){var n=G(D(e),r);if(null==n?void 0:n.set)return n.set.call(e.k,t),!0;if(!e.P){var o=Y(D(e),r),a=null==o?void 0:o[ue];if(a&&a.t===t)return e.o[r]=t,e.D[r]=!1,!0;if(function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}(t,o)&&(void 0!==t||k(e.t,r)))return!0;X(e),J(e)}return e.o[r]=t,e.D[r]=!0,!0},deleteProperty:function(e,r){return void 0!==Y(e.t,r)||r in e.t?(e.D[r]=!1,X(e),J(e)):delete e.D[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=D(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n?{writable:!0,configurable:1!==e.i||"length"!==r,enumerable:n.enumerable,value:t[r]}:n},defineProperty:function(){w(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){w(12)}},ye={};x(de,(function(e,r){ye[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),ye.deleteProperty=function(e,r){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&w(13),de.deleteProperty.call(this,e[0],r)},ye.set=function(e,r,t){return"production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&w(14),de.set.call(this,e[0],r,t,e[0])};var ve=new(function(){function e(e){this.O=ae,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var r=e.prototype;return r.produce=function(e,r,t){if("function"==typeof e&&"function"!=typeof r){var n=r;r=e;var o=this;return function(e){var t=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(i))}))}}var a;if("function"!=typeof r&&w(6),void 0!==t&&"function"!=typeof t&&w(7),P(e)){var i=L(this),c=H(this,e,void 0),u=!0;try{a=r(c),u=!1}finally{u?z(i):W(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return V(i,t),M(e,i)}),(function(e){throw z(i),e})):(V(i,t),M(a,i))}if(!e||"object"!=typeof e){if((a=r(e))===ie)return;return void 0===a&&(a=e),this.N&&A(a,!0),a}w(21,e)},r.produceWithPatches=function(e,r){var t,n,o=this;return"function"==typeof e?function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return o.produceWithPatches(r,(function(r){return e.apply(void 0,[r].concat(n))}))}:[this.produce(e,r,(function(e,r){t=e,n=r})),t,n]},r.createDraft=function(e){P(e)||w(8),_(e)&&(e=Q(e));var r=L(this),t=H(this,e,void 0);return t[ue].C=!0,W(r),t},r.finishDraft=function(e,r){var t=e&&e[ue];"production"!==process.env.NODE_ENV&&(t&&t.C||w(9),t.I&&w(10));var n=t.A;return V(n,r),M(void 0,n)},r.setAutoFreeze=function(e){this.N=e},r.setUseProxies=function(e){e&&!ae&&w(20),this.O=e},r.applyPatches=function(e,r){var t;for(t=r.length-1;t>=0;t--){var n=r[t];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=F("Patches").$;return _(e)?o(e,r):this.produce(e,(function(e){return o(e,r.slice(t+1))}))},e}()),he=ve.produce;ve.produceWithPatches.bind(ve),ve.setAutoFreeze.bind(ve),ve.setUseProxies.bind(ve),ve.applyPatches.bind(ve),ve.createDraft.bind(ve),ve.finishDraft.bind(ve);const me={errorValidate:!1};n.default.createContext(me);const be=(e,r)=>{switch(r.type){case"SET_ERROR_VALIDATE":return he(e,(e=>{e.errorValidate=r.payload.errorValidate}));default:return e}},ge=e.createContext({}),Oe=r=>{const[t,n]=e.useReducer(be,me),o={state:t,dispatch:n};return i.exports.jsx(ge.Provider,Object.assign({value:o},{children:r.children}),void 0)},je=o.default.div`
*/function O(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if("production"!==process.env.NODE_ENV){var o=ce[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function j(e){return!!e&&!!e[ie]}function x(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var r=Object.getPrototypeOf(e);return!r||r===Object.prototype}(e)||Array.isArray(e)||!!e[ae]||!!e.constructor[ae]||E(e)||S(e))}function w(e,r,t){void 0===t&&(t=!1),0===P(e)?(t?Object.keys:se)(e).forEach((function(n){t&&"symbol"==typeof n||r(n,e[n],e)})):e.forEach((function(t,n){return r(n,t,e)}))}function P(e){var r=e[ie];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:E(e)?2:S(e)?3:0}function _(e,r){return 2===P(e)?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function k(e,r,t){var n=P(e);2===n?e.set(r,t):3===n?(e.delete(r),e.add(t)):e[r]=t}function E(e){return re&&e instanceof Map}function S(e){return te&&e instanceof Set}function R(e){return e.o||e.t}function N(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=ue(e);delete r[ie];for(var t=se(r),n=0;n<t.length;n++){var o=t[n],a=r[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),r)}function D(e,r){return void 0===r&&(r=!1),C(e)||j(e)||!x(e)||(P(e)>1&&(e.set=e.add=e.clear=e.delete=T),Object.freeze(e),r&&w(e,(function(e,r){return D(r,!0)}),!0)),e}function T(){O(2)}function C(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function A(e){var r=fe[e];return r||O(18,e),r}function F(){return"production"===process.env.NODE_ENV||Z||O(0),Z}function I(e,r){r&&(A("Patches"),e.u=[],e.s=[],e.v=r)}function $(e){z(e),e.p.forEach(U),e.p=null}function z(e){e===Z&&(Z=e.l)}function W(e){return Z={p:[],l:Z,h:e,m:!0,_:0}}function U(e){var r=e[ie];0===r.i||1===r.i?r.j():r.g=!0}function L(e,r){r._=r.p.length;var t=r.p[0],n=void 0!==e&&e!==t;return r.h.O||A("ES5").S(r,e,n),n?(t[ie].P&&($(r),O(4)),x(e)&&(e=M(r,e),r.l||q(r,e)),r.u&&A("Patches").M(t[ie],e,r.u,r.s)):e=M(r,t,[]),$(r),r.u&&r.v(r.u,r.s),e!==oe?e:void 0}function M(e,r,t){if(C(r))return r;var n=r[ie];if(!n)return w(r,(function(o,a){return V(e,n,r,o,a,t)}),!0),r;if(n.A!==e)return r;if(!n.P)return q(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=N(n.k):n.o;w(3===n.i?new Set(o):o,(function(r,a){return V(e,n,o,r,a,t)})),q(e,o,!1),t&&e.u&&A("Patches").R(n,t,e.u,e.s)}return n.o}function V(e,r,t,n,o,a){if("production"!==process.env.NODE_ENV&&o===t&&O(5),j(o)){var i=M(e,o,a&&r&&3!==r.i&&!_(r.D,n)?a.concat(n):void 0);if(k(t,n,i),!j(i))return;e.m=!1}if(x(o)&&!C(o)){if(!e.h.N&&e._<1)return;M(e,o),r&&r.A.l||q(e,o)}}function q(e,r,t){void 0===t&&(t=!1),e.h.N&&e.m&&D(r,t)}function B(e,r){var t=e[ie];return(t?R(t):e)[r]}function K(e,r){if(r in e)for(var t=Object.getPrototypeOf(e);t;){var n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Object.getPrototypeOf(t)}}function Y(e){e.P||(e.P=!0,e.l&&Y(e.l))}function G(e){e.o||(e.o=N(e.t))}function J(e,r,t){var n=E(r)?A("MapSet").T(r,t):S(r)?A("MapSet").F(r,t):e.O?function(e,r){var t=Array.isArray(e),n={i:t?1:0,A:r?r.A:F(),P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},o=n,a=le;t&&(o=[n],a=pe);var i=Proxy.revocable(o,a),c=i.revoke,s=i.proxy;return n.k=s,n.j=c,s}(r,t):A("ES5").J(r,t);return(t?t.A:F()).p.push(n),n}function X(e){return j(e)||O(22,e),function e(r){if(!x(r))return r;var t,n=r[ie],o=P(r);if(n){if(!n.P&&(n.i<4||!A("ES5").K(n)))return n.t;n.I=!0,t=H(r,o),n.I=!1}else t=H(r,o);return w(t,(function(r,o){n&&function(e,r){return 2===P(e)?e.get(r):e[r]}(n.t,r)===o||k(t,r,e(o))})),3===o?new Set(t):t}(e)}function H(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return N(e)}!function(e){"production"!==process.env.NODE_ENV&&function(){var r=n.default,t=l,o=60103,a=60106;e.Fragment=60107;var i=60108,c=60114,s=60109,u=60110,f=60112,p=60113,d=60120,y=60115,v=60116,h=60121,m=60122,b=60117,g=60129,O=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;o=j("react.element"),a=j("react.portal"),e.Fragment=j("react.fragment"),i=j("react.strict_mode"),c=j("react.profiler"),s=j("react.provider"),u=j("react.context"),f=j("react.forward_ref"),p=j("react.suspense"),d=j("react.suspense_list"),y=j("react.memo"),v=j("react.lazy"),h=j("react.block"),m=j("react.server.block"),b=j("react.fundamental"),j("react.scope"),j("react.opaque.id"),g=j("react.debug_trace_mode"),j("react.offscreen"),O=j("react.legacy_hidden")}var x="function"==typeof Symbol&&Symbol.iterator;var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];_("error",e,t)}function _(e,r,t){var n=w.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(r+="%s",t=t.concat([n]));var o=t.map((function(e){return""+e}));o.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,o)}function k(e){return e.displayName||"Context"}function E(r){if(null==r)return null;if("number"==typeof r.tag&&P("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case d:return"SuspenseList"}if("object"==typeof r)switch(r.$$typeof){case u:return k(r)+".Consumer";case s:return k(r._context)+".Provider";case f:return l=r,m=r.render,b="ForwardRef",g=m.displayName||m.name||"",l.displayName||(""!==g?b+"("+g+")":b);case y:return E(r.type);case h:return E(r._render);case v:var t=r,n=t._payload,o=t._init;try{return E(o(n))}catch(e){return null}}var l,m,b,g;return null}var S,R,N,D,T,C,A,F=0;function I(){}I.__reactDisabledLog=!0;var $,z=w.ReactCurrentDispatcher;function W(e,r,t){if(void 0===$)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$=n&&n[1]||""}return"\n"+$+e}var U,L=!1,M="function"==typeof WeakMap?WeakMap:Map;function V(e,r){if(!e||L)return"";var n,o=U.get(e);if(void 0!==o)return o;L=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=z.current,z.current=null,function(){if(0===F){S=console.log,R=console.info,N=console.warn,D=console.error,T=console.group,C=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(c,[])}catch(e){n=e}Reflect.construct(e,[],c)}else{try{c.call()}catch(e){n=e}e.call(c.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(r){if(r&&n&&"string"==typeof r.stack){for(var s=r.stack.split("\n"),u=n.stack.split("\n"),f=s.length-1,l=u.length-1;f>=1&&l>=0&&s[f]!==u[l];)l--;for(;f>=1&&l>=0;f--,l--)if(s[f]!==u[l]){if(1!==f||1!==l)do{if(f--,--l<0||s[f]!==u[l]){var p="\n"+s[f].replace(" at new "," at ");return"function"==typeof e&&U.set(e,p),p}}while(f>=1&&l>=0);break}}}finally{L=!1,z.current=a,function(){if(0==--F){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},e,{value:S}),info:t({},e,{value:R}),warn:t({},e,{value:N}),error:t({},e,{value:D}),group:t({},e,{value:T}),groupCollapsed:t({},e,{value:C}),groupEnd:t({},e,{value:A})})}F<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",y=d?W(d):"";return"function"==typeof e&&U.set(e,y),y}function q(e,r,t){return V(e,!1)}function B(e,r,t){if(null==e)return"";if("function"==typeof e)return V(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return W(e);switch(e){case p:return W("Suspense");case d:return W("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case f:return q(e.render);case y:return B(e.type,r,t);case h:return q(e._render);case v:var o=e,a=o._payload,i=o._init;try{return B(i(a),r,t)}catch(e){}}return""}U=new M;var K={},Y=w.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var J,X,H,Q=w.ReactCurrentOwner,Z=Object.prototype.hasOwnProperty,ee={key:!0,ref:!0,__self:!0,__source:!0};H={};function re(e,r,t,n,a){var i,c={},s=null,u=null;for(i in void 0!==t&&(s=""+t),function(e){if(Z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(s=""+r.key),function(e){if(Z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(u=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=E(Q.current.type);H[t]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(Q.current.type),e.ref),H[t]=!0)}}(r,a)),r)Z.call(r,i)&&!ee.hasOwnProperty(i)&&(c[i]=r[i]);if(e&&e.defaultProps){var f=e.defaultProps;for(i in f)void 0===c[i]&&(c[i]=f[i])}if(s||u){var l="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,r){var t=function(){J||(J=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(c,l),u&&function(e,r){var t=function(){X||(X=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(c,l)}return function(e,r,t,n,a,i,c){var s={$$typeof:o,type:e,key:r,ref:t,props:c,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,u,a,n,Q.current,c)}var te,ne=w.ReactCurrentOwner,oe=w.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function ie(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}function ce(){if(ne.current){var e=E(ne.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}te=!1;var se={};function ue(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ce();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!se[t]){se[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),ae(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ae(null)}}}function fe(e,r){if("object"==typeof e)if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];ie(n)&&ue(n,r)}else if(ie(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var r=x&&e[x]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ie(a.value)&&ue(a.value,r)}}function le(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==f&&t.$$typeof!==y)return;r=t.propTypes}if(r){var n=E(t);!function(e,r,t,n,o){var a=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(a(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(G(o),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof c),G(null)),c instanceof Error&&!(c.message in K)&&(K[c.message]=!0,G(o),P("Failed %s type: %s",t,c.message),G(null))}}(r,e.props,"prop",n,e)}else if(void 0!==t.PropTypes&&!te){te=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pe(r,t,n,a,l,j){var x=function(r){return"string"==typeof r||"function"==typeof r||r===e.Fragment||r===c||r===g||r===i||r===p||r===d||r===O||"object"==typeof r&&null!==r&&(r.$$typeof===v||r.$$typeof===y||r.$$typeof===s||r.$$typeof===u||r.$$typeof===f||r.$$typeof===b||r.$$typeof===h||r[0]===m)}(r);if(!x){var w="";(void 0===r||"object"==typeof r&&null!==r&&0===Object.keys(r).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(l);w+=k||ce(),null===r?_="null":Array.isArray(r)?_="array":void 0!==r&&r.$$typeof===o?(_="<"+(E(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):_=typeof r,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,w)}var S=re(r,t,n,l,j);if(null==S)return S;if(x){var R=t.children;if(void 0!==R)if(a)if(Array.isArray(R)){for(var N=0;N<R.length;N++)fe(R[N],r);Object.freeze&&Object.freeze(R)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fe(R,r)}return r===e.Fragment?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){ae(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ae(null);break}}null!==e.ref&&(ae(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}(S):le(S),S}var de=function(e,r,t){return pe(e,r,t,!1)},ye=function(e,r,t){return pe(e,r,t,!0)};e.jsx=de,e.jsxs=ye}()}(g),"production"===process.env.NODE_ENV?a.exports=i:a.exports=g;var Q,Z,ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),re="undefined"!=typeof Map,te="undefined"!=typeof Set,ne="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,oe=ee?Symbol.for("immer-nothing"):((Q={})["immer-nothing"]=!0,Q),ae=ee?Symbol.for("immer-draftable"):"__$immer_draftable",ie=ee?Symbol.for("immer-state"):"__$immer_state",ce={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},se="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ue=Object.getOwnPropertyDescriptors||function(e){var r={};return se(e).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(e,t)})),r},fe={},le={get:function(e,r){if(r===ie)return e;var t=R(e);if(!_(t,r))return function(e,r,t){var n,o=K(r,t);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,t,r);var n=t[r];return e.I||!x(n)?n:n===B(e.t,r)?(G(e),e.o[r]=J(e.A.h,n,e)):n},has:function(e,r){return r in R(e)},ownKeys:function(e){return Reflect.ownKeys(R(e))},set:function(e,r,t){var n=K(R(e),r);if(null==n?void 0:n.set)return n.set.call(e.k,t),!0;if(!e.P){var o=B(R(e),r),a=null==o?void 0:o[ie];if(a&&a.t===t)return e.o[r]=t,e.D[r]=!1,!0;if(function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}(t,o)&&(void 0!==t||_(e.t,r)))return!0;G(e),Y(e)}return e.o[r]=t,e.D[r]=!0,!0},deleteProperty:function(e,r){return void 0!==B(e.t,r)||r in e.t?(e.D[r]=!1,G(e),Y(e)):delete e.D[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var t=R(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n?{writable:!0,configurable:1!==e.i||"length"!==r,enumerable:n.enumerable,value:t[r]}:n},defineProperty:function(){O(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){O(12)}},pe={};w(le,(function(e,r){pe[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),pe.deleteProperty=function(e,r){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(r))&&O(13),le.deleteProperty.call(this,e[0],r)},pe.set=function(e,r,t){return"production"!==process.env.NODE_ENV&&"length"!==r&&isNaN(parseInt(r))&&O(14),le.set.call(this,e[0],r,t,e[0])};var de=new(function(){function e(e){this.O=ne,this.N=!0,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var r=e.prototype;return r.produce=function(e,r,t){if("function"==typeof e&&"function"!=typeof r){var n=r;r=e;var o=this;return function(e){var t=this;void 0===e&&(e=n);for(var a=arguments.length,i=Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(i))}))}}var a;if("function"!=typeof r&&O(6),void 0!==t&&"function"!=typeof t&&O(7),x(e)){var i=W(this),c=J(this,e,void 0),s=!0;try{a=r(c),s=!1}finally{s?$(i):z(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return I(i,t),L(e,i)}),(function(e){throw $(i),e})):(I(i,t),L(a,i))}if(!e||"object"!=typeof e){if((a=r(e))===oe)return;return void 0===a&&(a=e),this.N&&D(a,!0),a}O(21,e)},r.produceWithPatches=function(e,r){var t,n,o=this;return"function"==typeof e?function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return o.produceWithPatches(r,(function(r){return e.apply(void 0,[r].concat(n))}))}:[this.produce(e,r,(function(e,r){t=e,n=r})),t,n]},r.createDraft=function(e){x(e)||O(8),j(e)&&(e=X(e));var r=W(this),t=J(this,e,void 0);return t[ie].C=!0,z(r),t},r.finishDraft=function(e,r){var t=e&&e[ie];"production"!==process.env.NODE_ENV&&(t&&t.C||O(9),t.I&&O(10));var n=t.A;return I(n,r),L(void 0,n)},r.setAutoFreeze=function(e){this.N=e},r.setUseProxies=function(e){e&&!ne&&O(20),this.O=e},r.applyPatches=function(e,r){var t;for(t=r.length-1;t>=0;t--){var n=r[t];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}var o=A("Patches").$;return j(e)?o(e,r):this.produce(e,(function(e){return o(e,r.slice(t+1))}))},e}()),ye=de.produce;de.produceWithPatches.bind(de),de.setAutoFreeze.bind(de),de.setUseProxies.bind(de),de.applyPatches.bind(de),de.createDraft.bind(de),de.finishDraft.bind(de);const ve={errorValidate:!1,groupProps:void 0};n.default.createContext(ve);const he=(e,r)=>{switch(r.type){case"SET_GROUP_PROPS":return ye(e,(e=>{e.groupProps=r.payload.data}));default:return e}},me=e.createContext({}),be=r=>{const[t,n]=e.useReducer(he,ve),o={state:t,dispatch:n};return a.exports.jsx(me.Provider,Object.assign({value:o},{children:r.children}),void 0)},ge=o.default.div`
.min-w-12 {
min-width: 3rem;
}
`;function we(e){return Object.entries(e).map((e=>e[1]?e[0]:null)).filter((e=>null!==e)).join(" ")}const _e=e.memo((e=>{const{icon:r}=e;return r?i.exports.jsx("div",Object.assign({className:we({"h-full w-10 border border-gray-300 rounded flex items-center justify-center":!0,"rounded-r-none border-r-0":"left"===r.position,"rounded-l-none border-l-0":"right"===r.position})},{children:r.icon}),void 0):null})),Pe=e.memo((e=>{const{content:r,children:t,required:n}=e;return t?i.exports.jsx(i.exports.Fragment,{children:t},void 0):r?i.exports.jsxs("div",Object.assign({className:"mb-1"},{children:[i.exports.jsx("span",Object.assign({className:"font-medium"},{children:r}),void 0),n&&i.exports.jsx("span",Object.assign({className:"text-red-500 ml-1.5"},{children:"*"}),void 0)]}),void 0):null})),xe=e.memo((r=>{const{icons:t,className:n,onBlur:o,onChange:c,error:u}=r,s=a(r,["icons","className","onBlur","onChange","error"]),[f,l]=e.useState(""),{state:p,dispatch:d}=e.useContext(ge),y=null==t?void 0:t.find((e=>"left"===e.position)),v=null==t?void 0:t.find((e=>"right"===e.position));return i.exports.jsx(je,{children:i.exports.jsxs("div",Object.assign({className:we({"h-10":!0,"flex items-center":!!(t&&t.length>0)})},{children:[y&&i.exports.jsx(_e,{icon:y},void 0),i.exports.jsx("input",Object.assign({},s,{onBlur:e=>{o&&o(e),!u||f||(null==p?void 0:p.errorValidate)||d(j(!0))},onChange:e=>{c&&c(e),(null==p?void 0:p.errorValidate)&&d(j(!e.target.value)),l(e.target.value)},className:we({"flex-1 flex items-center rounded overflow-hidden border border-gray-300 px-3 w-full h-full pt-2 pb-2.5 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:border-blue-600 focus:outline-none min-w-12":!0,"rounded-l-none":!!y,"rounded-r-none":!!v})+` ${n||""}`}),void 0),v&&i.exports.jsx(_e,{icon:v},void 0)]}),void 0)},void 0)})),Ee=e.memo((r=>{const{children:t,content:n,error:o}=r,{state:a}=e.useContext(ge);return t?i.exports.jsx("div",Object.assign({className:a.errorValidate&&o?"text-red-500":""},{children:t}),void 0):i.exports.jsx("div",{children:n},void 0)})),ke=e.memo((r=>{const{children:t}=r,n=a(r,["children"]),o=e.Children.map(t,(r=>e.isValidElement(r)?e.cloneElement(r,Object.assign({},n)):r));return i.exports.jsx(Oe,{children:o},void 0)}));exports.TextDescription=Ee,exports.TextFieldGroup=ke,exports.TextInput=xe,exports.TextLabel=Pe;
`;function Oe(e){return Object.entries(e).map((e=>e[1]?e[0]:null)).filter((e=>null!==e)).join(" ")}const je=e.memo((e=>{const{icon:r}=e;return r?a.exports.jsx("div",Object.assign({className:Oe({"h-full w-10 border border-gray-300 rounded flex items-center justify-center":!0,"rounded-r-none border-r-0":"left"===r.position,"rounded-l-none border-l-0":"right"===r.position})},{children:r.icon}),void 0):null})),xe=e.memo((e=>{const{content:r,children:t,required:n}=e;return r||t?t?a.exports.jsxs("div",{children:[a.exports.jsx("div",{children:t},void 0),n&&a.exports.jsx("span",Object.assign({className:"text-red-500 ml-2 font-semibold"},{children:"*"}),void 0)]},void 0):a.exports.jsxs("div",Object.assign({className:"mb-1"},{children:[a.exports.jsx("label",Object.assign({className:"font-semibold"},{children:r}),void 0),n&&a.exports.jsx("span",Object.assign({className:"text-red-500 ml-2 font-semibold"},{children:"*"}),void 0)]}),void 0):null})),we=e.memo((r=>{const{icons:t,className:n,onBlur:o,onChange:i}=r,c=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}(r,["icons","className","onBlur","onChange"]),[s,u]=e.useState(""),{state:f}=e.useContext(me),[l,p]=e.useState(!1),d=null==t?void 0:t.find((e=>"left"===e.position)),y=null==t?void 0:t.find((e=>"right"===e.position));return a.exports.jsxs(ge,{children:[a.exports.jsxs("div",Object.assign({className:Oe({"h-10":!0,"flex items-center":!!(t&&t.length>0)})},{children:[d&&a.exports.jsx(je,{icon:d},void 0),a.exports.jsx("input",Object.assign({},c,{onBlur:e=>{var r;o&&o(e),(null===(r=f.groupProps)||void 0===r?void 0:r.checkRequired)&&!s&&p(!0)},onChange:e=>{i&&i(e),p(!e.target.value),u(e.target.value)},className:Oe({"flex-1 flex items-center rounded overflow-hidden border border-gray-300 px-3 w-full h-full pt-2 pb-2.5 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:border-blue-600 focus:outline-none min-w-12":!0,"rounded-l-none":!!d,"rounded-r-none":!!y})+` ${n||""}`}),void 0),y&&a.exports.jsx(je,{icon:y},void 0)]}),void 0),l&&a.exports.jsx("span",Object.assign({className:"block mt-0.5 text-red-500"},{children:"Required"}),void 0)]},void 0)})),Pe=e.memo((e=>{const{children:r,content:t}=e;return t||r?r?a.exports.jsx(a.exports.Fragment,{children:r},void 0):a.exports.jsx("span",Object.assign({className:"block text-sm mt-0.5"},{children:t}),void 0):null})),_e=e.memo((r=>{const{dispatch:t}=e.useContext(me);return e.useEffect((()=>{r&&t({type:"SET_GROUP_PROPS",payload:{data:r}})}),[r,t]),a.exports.jsx("div",{children:r.children},void 0)})),ke=e.memo((e=>a.exports.jsx(be,{children:a.exports.jsx(_e,Object.assign({},e),void 0)},void 0)));exports.TextDescription=Pe,exports.TextFieldGroup=ke,exports.TextInput=we,exports.TextLabel=xe;
//# sourceMappingURL=index.js.map

@@ -1,13 +0,10 @@

export declare const SET_ERROR_VALIDATE = "SET_ERROR_VALIDATE";
export declare const setErrorValidate: (errorValidate: boolean) => {
import { TextFieldGroupProps } from '../textfield.types';
export declare const SET_GROUP_PROPS = "SET_GROUP_PROPS";
export declare const setGroupProps: (groupProps: TextFieldGroupProps) => {
type: string;
payload: {
errorValidate: boolean;
data: TextFieldGroupProps;
};
};
export declare const getErrorValidate: () => {
readonly type: "GET_ERROR_VALIDATE";
readonly payload: {};
};
export declare type Action = ReturnType<typeof setErrorValidate> | ReturnType<typeof getErrorValidate>;
export declare type Action = ReturnType<typeof setGroupProps>;
//# sourceMappingURL=actions.d.ts.map
import { Dispatch } from 'react';
import { Action } from './actions';
declare type IState = {
errorValidate?: boolean;
};
import { IState } from './reducer';
interface IContextProps {

@@ -7,0 +5,0 @@ state: IState;

import React from 'react';
import { TextFieldGroupProps } from '../textfield.types';
import { Action } from './actions';
interface IState {
errorValidate?: boolean;
export interface IState {
groupProps?: TextFieldGroupProps;
}
export declare const initState: {
errorValidate: boolean;
groupProps: undefined;
};
export declare const Context: React.Context<{
errorValidate: boolean;
groupProps: undefined;
}>;
export declare const reducer: (state: IState, action: Action) => IState;
export {};
//# sourceMappingURL=reducer.d.ts.map

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

export { TextDescription, TextFieldGroup, TextInput, TextLabel } from './textfield';
export { TextDescription, TextInput, TextLabel } from './textfield';
export { TextFieldGroup } from './textfield.group';
//# sourceMappingURL=index.d.ts.map

@@ -1,7 +0,6 @@

import { InputHTMLAttributes } from 'react';
import { TextDescriptionProps, TextFieldGroupProps, TextInputProps, TextLabelProps } from './textfield.types';
/// <reference types="react" />
import { TextDescriptionProps, TextInputProps, TextLabelProps } from './textfield.types';
export declare const TextLabel: React.FC<TextLabelProps>;
export declare const TextInput: React.FC<TextInputProps & InputHTMLAttributes<HTMLInputElement>>;
export declare const TextInput: React.FC<TextInputProps>;
export declare const TextDescription: React.FC<TextDescriptionProps>;
export declare const TextFieldGroup: React.FC<TextFieldGroupProps>;
//# sourceMappingURL=textfield.d.ts.map

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

/// <reference types="react" />
import { InputHTMLAttributes } from 'react';
export declare type Icon = {

@@ -10,5 +10,5 @@ position: 'left' | 'right';

export declare type TextFieldGroupProps = {
error?: boolean;
checkRequired?: boolean;
};
export interface TextInputProps extends TextFieldGroupProps {
export interface TextInputProps extends InputHTMLAttributes<HTMLInputElement> {
className?: string;

@@ -19,9 +19,9 @@ icons?: Icon[];

}
export interface TextDescriptionProps extends TextFieldGroupProps {
export interface TextDescriptionProps {
content?: string;
}
export interface TextLabelProps extends TextFieldGroupProps {
content: string;
export interface TextLabelProps {
content?: string;
required?: boolean;
}
//# sourceMappingURL=textfield.types.d.ts.map
{
"name": "@ekidpro/ui.textfield",
"version": "0.0.36",
"version": "0.0.37",
"description": "> TODO: description",

@@ -35,3 +35,3 @@ "author": "Nguyen Hong Duc",

},
"gitHead": "6eafa429cb8c6efe9299e74936a6a7751f4b74e8"
"gitHead": "78f78738cc701ad1bc77e1cc6f2529b720faf638"
}

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 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 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