diff --git a/assets/caution.png b/assets/caution.png new file mode 100644 index 0000000000..91d43bf86e Binary files /dev/null and b/assets/caution.png differ diff --git a/configs/models.yaml b/configs/models.yaml index 67183bdd1f..ce25f97b0d 100644 --- a/configs/models.yaml +++ b/configs/models.yaml @@ -1,21 +1,23 @@ # This file describes the alternative machine learning models -# available to the dream script. +# available to the dream script. # # To add a new model, follow the examples below. Each # model requires a model config file, a weights file, # and the width and height of the images it # was trained on. - stable-diffusion-1.4: - config: configs/stable-diffusion/v1-inference.yaml - weights: models/ldm/stable-diffusion-v1/model.ckpt - vae: models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt - description: Stable Diffusion inference model version 1.4 - width: 512 - height: 512 + config: configs/stable-diffusion/v1-inference.yaml + weights: models/ldm/stable-diffusion-v1/model.ckpt +# vae: models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt + description: Stable Diffusion inference model version 1.4 + default: true + width: 512 + height: 512 + default: true stable-diffusion-1.5: - config: configs/stable-diffusion/v1-inference.yaml - weights: models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt - description: Stable Diffusion inference model version 1.5 - width: 512 - height: 512 + config: configs/stable-diffusion/v1-inference.yaml + weights: models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt +# vae: models/ldm/stable-diffusion-v1/vae-ft-mse-840000-ema-pruned.ckpt + description: Stable Diffusion inference model version 1.5 + width: 512 + height: 512 diff --git a/docs/features/CLI.md b/docs/features/CLI.md index 85524f6fa9..67a187fb3b 100644 --- a/docs/features/CLI.md +++ b/docs/features/CLI.md @@ -86,6 +86,7 @@ overridden on a per-prompt basis (see [List of prompt arguments](#list-of-prompt | `--model ` | | `stable-diffusion-1.4` | Loads model specified in configs/models.yaml. Currently one of "stable-diffusion-1.4" or "laion400m" | | `--full_precision` | `-F` | `False` | Run in slower full-precision mode. Needed for Macintosh M1/M2 hardware and some older video cards. | | `--png_compression <0-9>` | `-z<0-9>` | 6 | Select level of compression for output files, from 0 (no compression) to 9 (max compression) | +| `--safety-checker` | | False | Activate safety checker for NSFW and other potentially disturbing imagery | | `--web` | | `False` | Start in web server mode | | `--host ` | | `localhost` | Which network interface web server should listen on. Set to 0.0.0.0 to listen on any. | | `--port ` | | `9090` | Which port web server should listen for requests on. | @@ -97,7 +98,6 @@ overridden on a per-prompt basis (see [List of prompt arguments](#list-of-prompt | `--embedding_path ` | | `None` | Path to pre-trained embedding manager checkpoints, for custom models | | `--gfpgan_dir` | | `src/gfpgan` | Path to where GFPGAN is installed. | | `--gfpgan_model_path` | | `experiments/pretrained_models/GFPGANv1.4.pth` | Path to GFPGAN model file, relative to `--gfpgan_dir`. | -| `--device ` | `-d` | `torch.cuda.current_device()` | Device to run SD on, e.g. "cuda:0" | | `--free_gpu_mem` | | `False` | Free GPU memory after sampling, to allow image decoding and saving in low VRAM conditions | | `--precision` | | `auto` | Set model precision, default is selected by device. Options: auto, float32, float16, autocast | diff --git a/docs/features/INPAINTING.md b/docs/features/INPAINTING.md index 226144de95..0503f1fc88 100644 --- a/docs/features/INPAINTING.md +++ b/docs/features/INPAINTING.md @@ -81,15 +81,18 @@ text2mask feature. The syntax is `!mask /path/to/image.png -tm It will generate three files: - The image with the selected area highlighted. + - it will be named XXXXX...selected.png - The image with the un-selected area highlighted. + - it will be named XXXXX...deselected.png - The image with the selected area converted into a black and white - image according to the threshold level. + image according to the threshold level + - it will be named XXXXX...masked.png -Note that none of these images are intended to be used as the mask -passed to invoke via `-M` and may give unexpected results if you try -to use them this way. Instead, use `!mask` for testing that you are -selecting the right mask area, and then do inpainting using the -best selection term and threshold. +The `.masked.png` file can then be directly passed to the `invoke>` +prompt in the CLI via the `-M` argument. Do not attempt this with +the `selected.png` or `deselected.png` files, as they contain some +transparency throughout the image and will not produce the desired +results. Here is an example of how `!mask` works: @@ -120,7 +123,7 @@ It looks like we selected the hair pretty well at the 0.5 threshold let's have some fun: ``` -invoke> medusa with cobras -I ./test-pictures/curly.png -tm hair 0.5 -C20 +invoke> medusa with cobras -I ./test-pictures/curly.png -M 000019.curly.hair.masked.png -C20 >> loaded input image of size 512x512 from ./test-pictures/curly.png ... Outputs: @@ -129,6 +132,13 @@ Outputs: +You can also skip the `!mask` creation step and just select the masked + +region directly: +``` +invoke> medusa with cobras -I ./test-pictures/curly.png -tm hair -C20 +``` + ### Inpainting is not changing the masked region enough! One of the things to understand about how inpainting works is that it diff --git a/environment-mac.yml b/environment-mac.yml index 14509ccff7..16fcccb67f 100644 --- a/environment-mac.yml +++ b/environment-mac.yml @@ -19,6 +19,7 @@ dependencies: # ``` - albumentations==1.2.1 - coloredlogs==15.0.1 + - diffusers==0.6.0 - einops==0.4.1 - grpcio==1.46.4 - humanfriendly==10.0 diff --git a/environment.yml b/environment.yml index 820f940608..fe9eb37768 100644 --- a/environment.yml +++ b/environment.yml @@ -26,6 +26,7 @@ dependencies: - pyreadline3 - torch-fidelity==0.3.0 - transformers==4.21.3 + - diffusers==0.6.0 - torchmetrics==0.7.0 - flask==2.1.3 - flask_socketio==5.3.0 diff --git a/frontend/dist/assets/index.48782019.js b/frontend/dist/assets/index.48782019.js new file mode 100644 index 0000000000..018bf650e8 --- /dev/null +++ b/frontend/dist/assets/index.48782019.js @@ -0,0 +1,690 @@ +function dW(e,t){for(var n=0;ni[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerpolicy&&(u.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?u.credentials="include":o.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=n(o);fetch(o.href,u)}})();var Ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pW(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k={exports:{}},X6={exports:{}};/** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,z="@@iterator";function P(S){if(S===null||typeof S!="object")return null;var L=M&&S[M]||S[z];return typeof L=="function"?L:null}var I={current:null},F={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Y={current:null},Z={},ue=null;function ce(S){ue=S}Z.setExtraStackFrame=function(S){ue=S},Z.getCurrentStack=null,Z.getStackAddendum=function(){var S="";ue&&(S+=ue);var L=Z.getCurrentStack;return L&&(S+=L()||""),S};var le=!1,ge=!1,Ye=!1,re=!1,ie=!1,Ce={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:F,ReactCurrentOwner:Y};Ce.ReactDebugCurrentFrame=Z,Ce.ReactCurrentActQueue=$;function xe(S){{for(var L=arguments.length,V=new Array(L>1?L-1:0),G=1;G1?L-1:0),G=1;G1){for(var Mt=Array(xt),yt=0;yt1){for(var Vt=Array(yt),Rt=0;Rt is not supported and will be removed in a future major release. Did you mean to render instead?")),L.Provider},set:function(_e){L.Provider=_e}},_currentValue:{get:function(){return L._currentValue},set:function(_e){L._currentValue=_e}},_currentValue2:{get:function(){return L._currentValue2},set:function(_e){L._currentValue2=_e}},_threadCount:{get:function(){return L._threadCount},set:function(_e){L._threadCount=_e}},Consumer:{get:function(){return V||(V=!0,K("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),L.Consumer}},displayName:{get:function(){return L.displayName},set:function(_e){ne||(xe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",_e),ne=!0)}}}),L.Consumer=ze}return L._currentRenderer=null,L._currentRenderer2=null,L}var vr=-1,$i=0,Ya=1,ji=2;function X(S){if(S._status===vr){var L=S._result,V=L();if(V.then(function(ze){if(S._status===$i||S._status===vr){var _e=S;_e._status=Ya,_e._result=ze}},function(ze){if(S._status===$i||S._status===vr){var _e=S;_e._status=ji,_e._result=ze}}),S._status===vr){var G=S;G._status=$i,G._result=V}}if(S._status===Ya){var ne=S._result;return ne===void 0&&K(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent')) + +Did you accidentally put curly braces around the import?`,ne),"default"in ne||K(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`,ne),ne.default}else throw S._result}function Ue(S){var L={_status:vr,_result:S},V={$$typeof:T,_payload:L,_init:X};{var G,ne;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(ze){K("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=ze,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ne},set:function(ze){K("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ne=ze,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Ke(S){S!=null&&S.$$typeof===_?K("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?K("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&K("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&K("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var L={$$typeof:b,render:S};{var V;Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return L}var Nt;Nt=Symbol.for("react.module.reference");function sn(S){return!!(typeof S=="string"||typeof S=="function"||S===u||S===p||ie||S===c||S===x||S===N||re||S===A||le||ge||Ye||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===_||S.$$typeof===h||S.$$typeof===v||S.$$typeof===b||S.$$typeof===Nt||S.getModuleId!==void 0))}function Cn(S,L){sn(S)||K("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:_,type:S,compare:L===void 0?null:L};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(ne){G=ne,!S.name&&!S.displayName&&(S.displayName=ne)}})}return V}function nt(){var S=I.current;return S===null&&K(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function Zt(S){var L=nt();if(S._context!==void 0){var V=S._context;V.Consumer===S?K("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):V.Provider===S&&K("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return L.useContext(S)}function Vn(S){var L=nt();return L.useState(S)}function Bn(S,L,V){var G=nt();return G.useReducer(S,L,V)}function un(S){var L=nt();return L.useRef(S)}function Vr(S,L){var V=nt();return V.useEffect(S,L)}function wa(S,L){var V=nt();return V.useInsertionEffect(S,L)}function $o(S,L){var V=nt();return V.useLayoutEffect(S,L)}function Ni(S,L){var V=nt();return V.useCallback(S,L)}function ho(S,L){var V=nt();return V.useMemo(S,L)}function zu(S,L,V){var G=nt();return G.useImperativeHandle(S,L,V)}function _a(S,L){{var V=nt();return V.useDebugValue(S,L)}}function nl(){var S=nt();return S.useTransition()}function qa(S){var L=nt();return L.useDeferredValue(S)}function en(){var S=nt();return S.useId()}function Za(S,L,V){var G=nt();return G.useSyncExternalStore(S,L,V)}var wi=0,jo,gs,Vo,bs,ys,Ho,Wo;function Ss(){}Ss.__reactDisabledLog=!0;function rl(){{if(wi===0){jo=console.log,gs=console.info,Vo=console.warn,bs=console.error,ys=console.group,Ho=console.groupCollapsed,Wo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:Ss,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}wi++}}function il(){{if(wi--,wi===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:De({},S,{value:jo}),info:De({},S,{value:gs}),warn:De({},S,{value:Vo}),error:De({},S,{value:bs}),group:De({},S,{value:ys}),groupCollapsed:De({},S,{value:Ho}),groupEnd:De({},S,{value:Wo})})}wi<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ea=Ce.ReactCurrentDispatcher,zr;function Vi(S,L,V){{if(zr===void 0)try{throw Error()}catch(ne){var G=ne.stack.trim().match(/\n( *(at )?)/);zr=G&&G[1]||""}return` +`+zr+S}}var _i=!1,Hi;{var xs=typeof WeakMap=="function"?WeakMap:Map;Hi=new xs}function Go(S,L){if(!S||_i)return"";{var V=Hi.get(S);if(V!==void 0)return V}var G;_i=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=Ea.current,Ea.current=null,rl();try{if(L){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(Ut){G=Ut}Reflect.construct(S,[],_e)}else{try{_e.call()}catch(Ut){G=Ut}S.call(_e.prototype)}}else{try{throw Error()}catch(Ut){G=Ut}S()}}catch(Ut){if(Ut&&G&&typeof Ut.stack=="string"){for(var Ve=Ut.stack.split(` +`),st=G.stack.split(` +`),xt=Ve.length-1,Mt=st.length-1;xt>=1&&Mt>=0&&Ve[xt]!==st[Mt];)Mt--;for(;xt>=1&&Mt>=0;xt--,Mt--)if(Ve[xt]!==st[Mt]){if(xt!==1||Mt!==1)do if(xt--,Mt--,Mt<0||Ve[xt]!==st[Mt]){var yt=` +`+Ve[xt].replace(" at new "," at ");return S.displayName&&yt.includes("")&&(yt=yt.replace("",S.displayName)),typeof S=="function"&&Hi.set(S,yt),yt}while(xt>=1&&Mt>=0);break}}}finally{_i=!1,Ea.current=ze,il(),Error.prepareStackTrace=ne}var Vt=S?S.displayName||S.name:"",Rt=Vt?Vi(Vt):"";return typeof S=="function"&&Hi.set(S,Rt),Rt}function Cs(S,L,V){return Go(S,!1)}function Hl(S){var L=S.prototype;return!!(L&&L.isReactComponent)}function Ei(S,L,V){if(S==null)return"";if(typeof S=="function")return Go(S,Hl(S));if(typeof S=="string")return Vi(S);switch(S){case x:return Vi("Suspense");case N:return Vi("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return Cs(S.render);case _:return Ei(S.type,L,V);case T:{var G=S,ne=G._payload,ze=G._init;try{return Ei(ze(ne),L,V)}catch{}}}return""}var Yo={},Wi=Ce.ReactDebugCurrentFrame;function Ta(S){if(S){var L=S._owner,V=Ei(S.type,S._source,L?L.type:null);Wi.setExtraStackFrame(V)}else Wi.setExtraStackFrame(null)}function al(S,L,V,G,ne){{var ze=Function.call.bind(on);for(var _e in S)if(ze(S,_e)){var Ve=void 0;try{if(typeof S[_e]!="function"){var st=Error((G||"React class")+": "+V+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}Ve=S[_e](L,_e,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xt){Ve=xt}Ve&&!(Ve instanceof Error)&&(Ta(ne),K("%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).",G||"React class",V,_e,typeof Ve),Ta(null)),Ve instanceof Error&&!(Ve.message in Yo)&&(Yo[Ve.message]=!0,Ta(ne),K("Failed %s type: %s",V,Ve.message),Ta(null))}}}function cn(S){if(S){var L=S._owner,V=Ei(S.type,S._source,L?L.type:null);ce(V)}else ce(null)}var Ra;Ra=!1;function qo(){if(Y.current){var S=Ft(Y.current.type);if(S)return` + +Check the render method of \``+S+"`."}return""}function jt(S){if(S!==void 0){var L=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return` + +Check your code at `+L+":"+V+"."}return""}function ol(S){return S!=null?jt(S.__source):""}var Cr={};function Ka(S){var L=qo();if(!L){var V=typeof S=="string"?S:S.displayName||S.name;V&&(L=` + +Check the top-level render call using <`+V+">.")}return L}function ta(S,L){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ka(L);if(!Cr[V]){Cr[V]=!0;var G="";S&&S._owner&&S._owner!==Y.current&&(G=" It was passed a child from "+Ft(S._owner.type)+"."),cn(S),K('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),cn(null)}}}function vo(S,L){if(typeof S=="object"){if(Gt(S))for(var V=0;V",ne=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof S,K("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,ne)}var Ve=at.apply(this,arguments);if(Ve==null)return Ve;if(G)for(var st=2;st10&&xe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),G._updatedFibers.clear()}}}var go=!1,Aa=null;function sl(S){if(Aa===null)try{var L=("require"+Math.random()).slice(0,7),V=e&&e[L];Aa=V.call(e,"timers").setImmediate}catch{Aa=function(ne){go===!1&&(go=!0,typeof MessageChannel>"u"&&K("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ze=new MessageChannel;ze.port1.onmessage=ne,ze.port2.postMessage(void 0)}}return Aa(S)}var vn=0,Fn=!1;function Wl(S){{var L=vn;vn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var ne=$.current;ne!==null&&($.didScheduleLegacyUpdate=!1,pe(ne))}}catch(Vt){throw Gi(L),Vt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var ze=G,_e=!1,Ve={then:function(Vt,Rt){_e=!0,ze.then(function(Ut){Gi(L),vn===0?W(Ut,Vt,Rt):Vt(Ut)},function(Ut){Gi(L),Rt(Ut)})}};return!Fn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){_e||(Fn=!0,K("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Ve}else{var st=G;if(Gi(L),vn===0){var xt=$.current;xt!==null&&(pe(xt),$.current=null);var Mt={then:function(Vt,Rt){$.current===null?($.current=[],W(st,Vt,Rt)):Vt(st)}};return Mt}else{var yt={then:function(Vt,Rt){Vt(st)}};return yt}}}}function Gi(S){S!==vn-1&&K("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),vn=S}function W(S,L,V){{var G=$.current;if(G!==null)try{pe(G),sl(function(){G.length===0?($.current=null,L(S)):W(S,L,V)})}catch(ne){V(ne)}else L(S)}}var J=!1;function pe(S){if(!J){J=!0;var L=0;try{for(;L0;){var Jt=hn-1>>>1,Tn=je[Jt];if(v(Tn,at)>0)je[Jt]=at,je[hn]=Tn,hn=Jt;else return}}function h(je,at,Tt){for(var hn=Tt,Jt=je.length,Tn=Jt>>>1;hnTt&&(!je||$n()));){var hn=re.callback;if(typeof hn=="function"){re.callback=null,ie=re.priorityLevel;var Jt=re.expirationTime<=Tt,Tn=hn(Jt);Tt=e.unstable_now(),typeof Tn=="function"?re.callback=Tn:re===u(le)&&c(le),we(Tt)}else c(le);re=u(le)}if(re!==null)return!0;var In=u(ge);return In!==null&&Ot(De,In.startTime-Tt),!1}function it(je,at){switch(je){case b:case x:case N:case _:case T:break;default:je=N}var Tt=ie;ie=je;try{return at()}finally{ie=Tt}}function bt(je){var at;switch(ie){case b:case x:case N:at=N;break;default:at=ie;break}var Tt=ie;ie=at;try{return je()}finally{ie=Tt}}function Wt(je){var at=ie;return function(){var Tt=ie;ie=at;try{return je.apply(this,arguments)}finally{ie=Tt}}}function Xe(je,at,Tt){var hn=e.unstable_now(),Jt;if(typeof Tt=="object"&&Tt!==null){var Tn=Tt.delay;typeof Tn=="number"&&Tn>0?Jt=hn+Tn:Jt=hn}else Jt=hn;var In;switch(je){case b:In=$;break;case x:In=Y;break;case T:In=ce;break;case _:In=ue;break;case N:default:In=Z;break}var Or=Jt+In,On={id:Ye++,callback:at,priorityLevel:je,startTime:Jt,expirationTime:Or,sortIndex:-1};return Jt>hn?(On.sortIndex=Jt,o(ge,On),u(le)===null&&On===u(ge)&&(K?Oe():K=!0,Ot(De,Jt-hn))):(On.sortIndex=Or,o(le,On),!xe&&!Ce&&(xe=!0,nn(Pe))),On}function ct(){}function wt(){!xe&&!Ce&&(xe=!0,nn(Pe))}function Bt(){return u(le)}function Ge(je){je.callback=null}function Gt(){return ie}var ye=!1,et=null,_t=-1,lt=i,xn=-1;function $n(){var je=e.unstable_now()-xn;return!(je125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?lt=Math.floor(1e3/je):lt=i}var Ln=function(){if(et!==null){var je=e.unstable_now();xn=je;var at=!0,Tt=!0;try{Tt=et(at,je)}finally{Tt?gn():(ye=!1,et=null)}}else ye=!1},gn;if(typeof me=="function")gn=function(){me(Ln)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Je=He.port2;He.port1.onmessage=Ln,gn=function(){Je.postMessage(null)}}else gn=function(){be(Ln,0)};function nn(je){et=je,ye||(ye=!0,gn())}function Ot(je,at){_t=be(function(){je(e.unstable_now())},at)}function Oe(){Ne(_t),_t=-1}var qt=Ft,En=null;e.unstable_IdlePriority=T,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=_,e.unstable_NormalPriority=N,e.unstable_Profiling=En,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=Ge,e.unstable_continueExecution=wt,e.unstable_forceFrameRate=on,e.unstable_getCurrentPriorityLevel=Gt,e.unstable_getFirstCallbackNode=Bt,e.unstable_next=bt,e.unstable_pauseExecution=ct,e.unstable_requestPaint=qt,e.unstable_runWithPriority=it,e.unstable_scheduleCallback=Xe,e.unstable_shouldYield=$n,e.unstable_wrapCallback=Wt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(TD);(function(e){e.exports=TD})(ED);/** + * @license React + * react-dom.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=k.exports,t=ED.exports,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(r){i=r}function u(r){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f1?a-1:0),f=1;f2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function Or(r,a,s,f){if(s!==null&&s.type===He)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(s!==null)return!s.acceptsBooleans;var m=r.toLowerCase().slice(0,5);return m!=="data-"&&m!=="aria-"}default:return!1}}function On(r,a,s,f){if(a===null||typeof a>"u"||Or(r,a,s,f))return!0;if(f)return!1;if(s!==null)switch(s.type){case Ot:return!a;case Oe:return a===!1;case qt:return isNaN(a);case En:return isNaN(a)||a<1}return!1}function xi(r){return Rn.hasOwnProperty(r)?Rn[r]:null}function jn(r,a,s,f,m,y,w){this.acceptsBooleans=a===nn||a===Ot||a===Oe,this.attributeName=f,this.attributeNamespace=m,this.mustUseProperty=s,this.propertyName=r,this.type=a,this.sanitizeURL=y,this.removeEmptyString=w}var Rn={},Ci=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ci.forEach(function(r){Rn[r]=new jn(r,He,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0],s=r[1];Rn[a]=new jn(a,Je,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){Rn[r]=new jn(r,nn,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Rn[r]=new jn(r,nn,!1,r,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(r){Rn[r]=new jn(r,Ot,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){Rn[r]=new jn(r,Ot,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){Rn[r]=new jn(r,Oe,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){Rn[r]=new jn(r,En,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){Rn[r]=new jn(r,qt,!1,r.toLowerCase(),null,!1,!1)});var xr=/[\-\:]([a-z])/g,zo=function(r){return r[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(r){var a=r.replace(xr,zo);Rn[a]=new jn(a,Je,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var a=r.replace(xr,zo);Rn[a]=new jn(a,Je,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(xr,zo);Rn[a]=new jn(a,Je,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){Rn[r]=new jn(r,Je,!1,r.toLowerCase(),null,!1,!1)});var hs="xlinkHref";Rn[hs]=new jn("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){Rn[r]=new jn(r,Je,!1,r.toLowerCase(),null,!0,!0)});var vs=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Bo=!1;function Uo(r){!Bo&&vs.test(r)&&(Bo=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(r)))}function vr(r,a,s,f){if(f.mustUseProperty){var m=f.propertyName;return r[m]}else{xn(s,a),f.sanitizeURL&&Uo(""+s);var y=f.attributeName,w=null;if(f.type===Oe){if(r.hasAttribute(y)){var R=r.getAttribute(y);return R===""?!0:On(a,s,f,!1)?R:R===""+s?s:R}}else if(r.hasAttribute(y)){if(On(a,s,f,!1))return r.getAttribute(y);if(f.type===Ot)return s;w=r.getAttribute(y)}return On(a,s,f,!1)?w===null?s:w:w===""+s?s:w}}function $i(r,a,s,f){{if(!Tn(a))return;if(!r.hasAttribute(a))return s===void 0?void 0:null;var m=r.getAttribute(a);return xn(s,a),m===""+s?s:m}}function Ya(r,a,s,f){var m=xi(a);if(!In(a,m,f)){if(On(a,s,m,f)&&(s=null),f||m===null){if(Tn(a)){var y=a;s===null?r.removeAttribute(y):(xn(s,a),r.setAttribute(y,""+s))}return}var w=m.mustUseProperty;if(w){var R=m.propertyName;if(s===null){var O=m.type;r[R]=O===Ot?!1:""}else r[R]=s;return}var U=m.attributeName,H=m.attributeNamespace;if(s===null)r.removeAttribute(U);else{var te=m.type,ee;te===Ot||te===Oe&&s===!0?ee="":(xn(s,U),ee=""+s,m.sanitizeURL&&Uo(ee.toString())),H?r.setAttributeNS(H,U,ee):r.setAttribute(U,ee)}}}var ji=Symbol.for("react.element"),X=Symbol.for("react.portal"),Ue=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),Nt=Symbol.for("react.profiler"),sn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),Zt=Symbol.for("react.suspense"),Vn=Symbol.for("react.suspense_list"),Bn=Symbol.for("react.memo"),un=Symbol.for("react.lazy"),Vr=Symbol.for("react.scope"),wa=Symbol.for("react.debug_trace_mode"),$o=Symbol.for("react.offscreen"),Ni=Symbol.for("react.legacy_hidden"),ho=Symbol.for("react.cache"),zu=Symbol.for("react.tracing_marker"),_a=Symbol.iterator,nl="@@iterator";function qa(r){if(r===null||typeof r!="object")return null;var a=_a&&r[_a]||r[nl];return typeof a=="function"?a:null}var en=Object.assign,Za=0,wi,jo,gs,Vo,bs,ys,Ho;function Wo(){}Wo.__reactDisabledLog=!0;function Ss(){{if(Za===0){wi=console.log,jo=console.info,gs=console.warn,Vo=console.error,bs=console.group,ys=console.groupCollapsed,Ho=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Wo,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Za++}}function rl(){{if(Za--,Za===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},r,{value:wi}),info:en({},r,{value:jo}),warn:en({},r,{value:gs}),error:en({},r,{value:Vo}),group:en({},r,{value:bs}),groupCollapsed:en({},r,{value:ys}),groupEnd:en({},r,{value:Ho})})}Za<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var il=n.ReactCurrentDispatcher,Ea;function zr(r,a,s){{if(Ea===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);Ea=f&&f[1]||""}return` +`+Ea+r}}var Vi=!1,_i;{var Hi=typeof WeakMap=="function"?WeakMap:Map;_i=new Hi}function xs(r,a){if(!r||Vi)return"";{var s=_i.get(r);if(s!==void 0)return s}var f;Vi=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=il.current,il.current=null,Ss();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(ve){f=ve}Reflect.construct(r,[],w)}else{try{w.call()}catch(ve){f=ve}r.call(w.prototype)}}else{try{throw Error()}catch(ve){f=ve}r()}}catch(ve){if(ve&&f&&typeof ve.stack=="string"){for(var R=ve.stack.split(` +`),O=f.stack.split(` +`),U=R.length-1,H=O.length-1;U>=1&&H>=0&&R[U]!==O[H];)H--;for(;U>=1&&H>=0;U--,H--)if(R[U]!==O[H]){if(U!==1||H!==1)do if(U--,H--,H<0||R[U]!==O[H]){var te=` +`+R[U].replace(" at new "," at ");return r.displayName&&te.includes("")&&(te=te.replace("",r.displayName)),typeof r=="function"&&_i.set(r,te),te}while(U>=1&&H>=0);break}}}finally{Vi=!1,il.current=y,rl(),Error.prepareStackTrace=m}var ee=r?r.displayName||r.name:"",he=ee?zr(ee):"";return typeof r=="function"&&_i.set(r,he),he}function Go(r,a,s){return xs(r,!0)}function Cs(r,a,s){return xs(r,!1)}function Hl(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function Ei(r,a,s){if(r==null)return"";if(typeof r=="function")return xs(r,Hl(r));if(typeof r=="string")return zr(r);switch(r){case Zt:return zr("Suspense");case Vn:return zr("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case nt:return Cs(r.render);case Bn:return Ei(r.type,a,s);case un:{var f=r,m=f._payload,y=f._init;try{return Ei(y(m),a,s)}catch{}}}return""}function Yo(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case _:return zr(r.type);case ue:return zr("Lazy");case $:return zr("Suspense");case ge:return zr("SuspenseList");case h:case b:case Z:return Cs(r.type);case I:return Cs(r.type.render);case v:return Go(r.type);default:return""}}function Wi(r){try{var a="",s=r;do a+=Yo(s),s=s.return;while(s);return a}catch(f){return` +Error generating stack: `+f.message+` +`+f.stack}}function Ta(r,a,s){var f=r.displayName;if(f)return f;var m=a.displayName||a.name||"";return m!==""?s+"("+m+")":s}function al(r){return r.displayName||"Context"}function cn(r){if(r==null)return null;if(typeof r.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ue:return"Fragment";case X:return"Portal";case Nt:return"Profiler";case Ke:return"StrictMode";case Zt:return"Suspense";case Vn:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Cn:var a=r;return al(a)+".Consumer";case sn:var s=r;return al(s._context)+".Provider";case nt:return Ta(r,r.render,"ForwardRef");case Bn:var f=r.displayName||null;return f!==null?f:cn(r.type)||"Memo";case un:{var m=r,y=m._payload,w=m._init;try{return cn(w(y))}catch{return null}}}return null}function Ra(r,a,s){var f=a.displayName||a.name||"";return r.displayName||(f!==""?s+"("+f+")":s)}function qo(r){return r.displayName||"Context"}function jt(r){var a=r.tag,s=r.type;switch(a){case Ce:return"Cache";case z:var f=s;return qo(f)+".Consumer";case P:var m=s;return qo(m._context)+".Provider";case le:return"DehydratedFragment";case I:return Ra(s,s.render,"ForwardRef");case A:return"Fragment";case _:return s;case N:return"Portal";case x:return"Root";case T:return"Text";case ue:return cn(s);case M:return s===Ke?"StrictMode":"Mode";case re:return"Offscreen";case F:return"Profiler";case Ye:return"Scope";case $:return"Suspense";case ge:return"SuspenseList";case xe:return"TracingMarker";case v:case h:case ce:case b:case Y:case Z:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var ol=n.ReactDebugCurrentFrame,Cr=null,Ka=!1;function ta(){{if(Cr===null)return null;var r=Cr._debugOwner;if(r!==null&&typeof r<"u")return jt(r)}return null}function vo(){return Cr===null?"":Wi(Cr)}function Rr(){ol.getCurrentStack=null,Cr=null,Ka=!1}function ar(r){ol.getCurrentStack=r===null?null:vo,Cr=r,Ka=!1}function Zo(){return Cr}function Xr(r){Ka=r}function mr(r){return""+r}function oi(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return gn(r),r;default:return""}}var Bu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function go(r,a){Bu[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Aa(r){var a=r.type,s=r.nodeName;return s&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function sl(r){return r._valueTracker}function vn(r){r._valueTracker=null}function Fn(r){var a="";return r&&(Aa(r)?a=r.checked?"true":"false":a=r.value),a}function Wl(r){var a=Aa(r)?"checked":"value",s=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);gn(r[a]);var f=""+r[a];if(!(r.hasOwnProperty(a)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var m=s.get,y=s.set;Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(R){gn(R),f=""+R,y.call(this,R)}}),Object.defineProperty(r,a,{enumerable:s.enumerable});var w={getValue:function(){return f},setValue:function(R){gn(R),f=""+R},stopTracking:function(){vn(r),delete r[a]}};return w}}function Gi(r){sl(r)||(r._valueTracker=Wl(r))}function W(r){if(!r)return!1;var a=sl(r);if(!a)return!0;var s=a.getValue(),f=Fn(r);return f!==s?(a.setValue(f),!0):!1}function J(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var pe=!1,ot=!1,fn=!1,zn=!1;function Kt(r){var a=r.type==="checkbox"||r.type==="radio";return a?r.checked!=null:r.value!=null}function S(r,a){var s=r,f=a.checked,m=en({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked});return m}function L(r,a){go("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!ot&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ta()||"A component",a.type),ot=!0),a.value!==void 0&&a.defaultValue!==void 0&&!pe&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ta()||"A component",a.type),pe=!0);var s=r,f=a.defaultValue==null?"":a.defaultValue;s._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:oi(a.value!=null?a.value:f),controlled:Kt(a)}}function V(r,a){var s=r,f=a.checked;f!=null&&Ya(s,"checked",f,!1)}function G(r,a){var s=r;{var f=Kt(a);!s._wrapperState.controlled&&f&&!zn&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),zn=!0),s._wrapperState.controlled&&!f&&!fn&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fn=!0)}V(r,a);var m=oi(a.value),y=a.type;if(m!=null)y==="number"?(m===0&&s.value===""||s.value!=m)&&(s.value=mr(m)):s.value!==mr(m)&&(s.value=mr(m));else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?Ve(s,a.type,m):a.hasOwnProperty("defaultValue")&&Ve(s,a.type,oi(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function ne(r,a,s){var f=r;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var m=a.type,y=m==="submit"||m==="reset";if(y&&(a.value===void 0||a.value===null))return;var w=mr(f._wrapperState.initialValue);s||w!==f.value&&(f.value=w),f.defaultValue=w}var R=f.name;R!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,R!==""&&(f.name=R)}function ze(r,a){var s=r;G(s,a),_e(s,a)}function _e(r,a){var s=a.name;if(a.type==="radio"&&s!=null){for(var f=r;f.parentNode;)f=f.parentNode;xn(s,"name");for(var m=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),y=0;y.")))}):a.dangerouslySetInnerHTML!=null&&(Mt||(Mt=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!st&&(c("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",s,Ti())}}}}function Mn(r,a,s,f){var m=r.options;if(a){for(var y=s,w={},R=0;R.");var f=en({},a,{value:void 0,defaultValue:void 0,children:mr(s._wrapperState.initialValue)});return f}function jv(r,a){var s=r;go("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!kb&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ta()||"A component"),kb=!0);var f=a.value;if(f==null){var m=a.children,y=a.defaultValue;if(m!=null){c("Use the `defaultValue` or `value` props instead of setting children on