InvokeAI/frontend/dist/assets/index.48782019.js
2022-10-20 23:03:48 +08:00

691 lines
1.1 MiB

function dW(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(i,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>i[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;G<L;G++)V[G-1]=arguments[G];be("warn",S,V)}}function K(S){{for(var L=arguments.length,V=new Array(L>1?L-1:0),G=1;G<L;G++)V[G-1]=arguments[G];be("error",S,V)}}function be(S,L,V){{var G=Ce.ReactDebugCurrentFrame,ne=G.getStackAddendum();ne!==""&&(L+="%s",V=V.concat([ne]));var ze=V.map(function(_e){return String(_e)});ze.unshift("Warning: "+L),Function.prototype.apply.call(console[S],console,ze)}}var Ne={};function me(S,L){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",ne=G+"."+L;if(Ne[ne])return;K("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,G),Ne[ne]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,L,V){me(S,"forceUpdate")},enqueueReplaceState:function(S,L,V,G){me(S,"replaceState")},enqueueSetState:function(S,L,V,G){me(S,"setState")}},De=Object.assign,Pe={};Object.freeze(Pe);function Ze(S,L,V){this.props=S,this.context=L,this.refs=Pe,this.updater=V||we}Ze.prototype.isReactComponent={},Ze.prototype.setState=function(S,L){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,L,"setState")},Ze.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var it={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},bt=function(S,L){Object.defineProperty(Ze.prototype,S,{get:function(){xe("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Wt in it)it.hasOwnProperty(Wt)&&bt(Wt,it[Wt])}function Xe(){}Xe.prototype=Ze.prototype;function ct(S,L,V){this.props=S,this.context=L,this.refs=Pe,this.updater=V||we}var wt=ct.prototype=new Xe;wt.constructor=ct,De(wt,Ze.prototype),wt.isPureReactComponent=!0;function Bt(){var S={current:null};return Object.seal(S),S}var Ge=Array.isArray;function Gt(S){return Ge(S)}function ye(S){{var L=typeof Symbol=="function"&&Symbol.toStringTag,V=L&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function et(S){try{return _t(S),!1}catch{return!0}}function _t(S){return""+S}function lt(S){if(et(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),_t(S)}function xn(S,L,V){var G=S.displayName;if(G)return G;var ne=L.displayName||L.name||"";return ne!==""?V+"("+ne+")":V}function $n(S){return S.displayName||"Context"}function Ft(S){if(S==null)return null;if(typeof S.tag=="number"&&K("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case u:return"Fragment";case o:return"Portal";case p:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case N:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var L=S;return $n(L)+".Consumer";case h:var V=S;return $n(V._context)+".Provider";case b:return xn(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Ft(S.type)||"Memo";case T:{var ne=S,ze=ne._payload,_e=ne._init;try{return Ft(_e(ze))}catch{return null}}}return null}var on=Object.prototype.hasOwnProperty,Ln={key:!0,ref:!0,__self:!0,__source:!0},gn,He,Je;Je={};function nn(S){if(on.call(S,"ref")){var L=Object.getOwnPropertyDescriptor(S,"ref").get;if(L&&L.isReactWarning)return!1}return S.ref!==void 0}function Ot(S){if(on.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function Oe(S,L){var V=function(){gn||(gn=!0,K("%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)",L))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function qt(S,L){var V=function(){He||(He=!0,K("%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)",L))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function En(S){if(typeof S.ref=="string"&&Y.current&&S.__self&&Y.current.stateNode!==S.__self){var L=Ft(Y.current.type);Je[L]||(K('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',L,S.ref),Je[L]=!0)}}var je=function(S,L,V,G,ne,ze,_e){var Ve={$$typeof:i,type:S,key:L,ref:V,props:_e,_owner:ze};return Ve._store={},Object.defineProperty(Ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(Ve.props),Object.freeze(Ve)),Ve};function at(S,L,V){var G,ne={},ze=null,_e=null,Ve=null,st=null;if(L!=null){nn(L)&&(_e=L.ref,En(L)),Ot(L)&&(lt(L.key),ze=""+L.key),Ve=L.__self===void 0?null:L.__self,st=L.__source===void 0?null:L.__source;for(G in L)on.call(L,G)&&!Ln.hasOwnProperty(G)&&(ne[G]=L[G])}var xt=arguments.length-2;if(xt===1)ne.children=V;else if(xt>1){for(var Mt=Array(xt),yt=0;yt<xt;yt++)Mt[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Mt),ne.children=Mt}if(S&&S.defaultProps){var Vt=S.defaultProps;for(G in Vt)ne[G]===void 0&&(ne[G]=Vt[G])}if(ze||_e){var Rt=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&Oe(ne,Rt),_e&&qt(ne,Rt)}return je(S,ze,_e,Ve,st,Y.current,ne)}function Tt(S,L){var V=je(S.type,L,S.ref,S._self,S._source,S._owner,S.props);return V}function hn(S,L,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,ne=De({},S.props),ze=S.key,_e=S.ref,Ve=S._self,st=S._source,xt=S._owner;if(L!=null){nn(L)&&(_e=L.ref,xt=Y.current),Ot(L)&&(lt(L.key),ze=""+L.key);var Mt;S.type&&S.type.defaultProps&&(Mt=S.type.defaultProps);for(G in L)on.call(L,G)&&!Ln.hasOwnProperty(G)&&(L[G]===void 0&&Mt!==void 0?ne[G]=Mt[G]:ne[G]=L[G])}var yt=arguments.length-2;if(yt===1)ne.children=V;else if(yt>1){for(var Vt=Array(yt),Rt=0;Rt<yt;Rt++)Vt[Rt]=arguments[Rt+2];ne.children=Vt}return je(S.type,ze,_e,Ve,st,xt,ne)}function Jt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",In=":";function Or(S){var L=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(L,function(ne){return V[ne]});return"$"+G}var On=!1,xi=/\/+/g;function jn(S){return S.replace(xi,"$&/")}function Rn(S,L){return typeof S=="object"&&S!==null&&S.key!=null?(lt(S.key),Or(""+S.key)):L.toString(36)}function Ci(S,L,V,G,ne){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var _e=!1;if(S===null)_e=!0;else switch(ze){case"string":case"number":_e=!0;break;case"object":switch(S.$$typeof){case i:case o:_e=!0}}if(_e){var Ve=S,st=ne(Ve),xt=G===""?Tn+Rn(Ve,0):G;if(Gt(st)){var Mt="";xt!=null&&(Mt=jn(xt)+"/"),Ci(st,L,Mt,"",function(pd){return pd})}else st!=null&&(Jt(st)&&(st.key&&(!Ve||Ve.key!==st.key)&&lt(st.key),st=Tt(st,V+(st.key&&(!Ve||Ve.key!==st.key)?jn(""+st.key)+"/":"")+xt)),L.push(st));return 1}var yt,Vt,Rt=0,Ut=G===""?Tn:G+In;if(Gt(S))for(var ka=0;ka<S.length;ka++)yt=S[ka],Vt=Ut+Rn(yt,ka),Rt+=Ci(yt,L,V,Vt,ne);else{var Ti=P(S);if(typeof Ti=="function"){var Ko=S;Ti===Ko.entries&&(On||xe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),On=!0);for(var Uu=Ti.call(Ko),Mn,La=0;!(Mn=Uu.next()).done;)yt=Mn.value,Vt=Ut+Rn(yt,La++),Rt+=Ci(yt,L,V,Vt,ne)}else if(ze==="object"){var Ns=String(S);throw new Error("Objects are not valid as a React child (found: "+(Ns==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Ns)+"). If you meant to render a collection of children, use an array instead.")}}return Rt}function xr(S,L,V){if(S==null)return S;var G=[],ne=0;return Ci(S,G,"","",function(ze){return L.call(V,ze,ne++)}),G}function zo(S){var L=0;return xr(S,function(){L++}),L}function hs(S,L,V){xr(S,function(){L.apply(this,arguments)},V)}function vs(S){return xr(S,function(L){return L})||[]}function Bo(S){if(!Jt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Uo(S){var L={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:h,_context:L};var V=!1,G=!1,ne=!1;{var ze={$$typeof:v,_context:L};Object.defineProperties(ze,{Provider:{get:function(){return G||(G=!0,K("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> 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 <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> 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("<anonymous>")&&(yt=yt.replace("<anonymous>",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<S.length;V++){var G=S[V];Jt(G)&&ta(G,L)}else if(Jt(S))S._store&&(S._store.validated=!0);else if(S){var ne=P(S);if(typeof ne=="function"&&ne!==S.entries)for(var ze=ne.call(S),_e;!(_e=ze.next()).done;)Jt(_e.value)&&ta(_e.value,L)}}}function Rr(S){{var L=S.type;if(L==null||typeof L=="string")return;var V;if(typeof L=="function")V=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===b||L.$$typeof===_))V=L.propTypes;else return;if(V){var G=Ft(L);al(V,S.props,"prop",G,S)}else if(L.PropTypes!==void 0&&!Ra){Ra=!0;var ne=Ft(L);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&K("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(S){{for(var L=Object.keys(S.props),V=0;V<L.length;V++){var G=L[V];if(G!=="children"&&G!=="key"){cn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),cn(null);break}}S.ref!==null&&(cn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),cn(null))}}function Zo(S,L,V){var G=sn(S);if(!G){var ne="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(ne+=" 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 ze=ol(L);ze?ne+=ze:ne+=qo();var _e;S===null?_e="null":Gt(S)?_e="array":S!==void 0&&S.$$typeof===i?(_e="<"+(Ft(S.type)||"Unknown")+" />",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;st<arguments.length;st++)vo(arguments[st],S);return S===u?ar(Ve):Rr(Ve),Ve}var Xr=!1;function mr(S){var L=Zo.bind(null,S);return L.type=S,Xr||(Xr=!0,xe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(L,"type",{enumerable:!1,get:function(){return xe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),L}function oi(S,L,V){for(var G=hn.apply(this,arguments),ne=2;ne<arguments.length;ne++)vo(arguments[ne],G.type);return Rr(G),G}function Bu(S,L){var V=F.transition;F.transition={};var G=F.transition;F.transition._updatedFibers=new Set;try{S()}finally{if(F.transition=V,V===null&&G._updatedFibers){var ne=G._updatedFibers.size;ne>10&&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(;L<S.length;L++){var V=S[L];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(L+1),G}finally{J=!1}}}var ot=Zo,fn=oi,zn=mr,Kt={map:xr,forEach:hs,count:zo,toArray:vs,only:Bo};t.Children=Kt,t.Component=Ze,t.Fragment=u,t.Profiler=p,t.PureComponent=ct,t.StrictMode=c,t.Suspense=x,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ce,t.cloneElement=fn,t.createContext=Uo,t.createElement=ot,t.createFactory=zn,t.createRef=Bt,t.forwardRef=Ke,t.isValidElement=Jt,t.lazy=Ue,t.memo=Cn,t.startTransition=Bu,t.unstable_act=Wl,t.useCallback=Ni,t.useContext=Zt,t.useDebugValue=_a,t.useDeferredValue=qa,t.useEffect=Vr,t.useId=en,t.useImperativeHandle=zu,t.useInsertionEffect=wa,t.useLayoutEffect=$o,t.useMemo=ho,t.useReducer=Bn,t.useRef=un,t.useState=Vn,t.useSyncExternalStore=Za,t.useTransition=nl,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(X6,X6.exports);(function(e){e.exports=X6.exports})(k);const Ae=pW(k.exports),HA=dW({__proto__:null,default:Ae},[k.exports]);var Q6={},Rv={exports:{}},ss={},ED={exports:{}},TD={};/**
* @license React
* scheduler.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){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1,i=5;function o(je,at){var Tt=je.length;je.push(at),p(je,at,Tt)}function u(je){return je.length===0?null:je[0]}function c(je){if(je.length===0)return null;var at=je[0],Tt=je.pop();return Tt!==at&&(je[0]=Tt,h(je,Tt,0)),at}function p(je,at,Tt){for(var hn=Tt;hn>0;){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;hn<Tn;){var In=(hn+1)*2-1,Or=je[In],On=In+1,xi=je[On];if(v(Or,at)<0)On<Jt&&v(xi,Or)<0?(je[hn]=xi,je[On]=at,hn=On):(je[hn]=Or,je[In]=at,hn=In);else if(On<Jt&&v(xi,at)<0)je[hn]=xi,je[On]=at,hn=On;else return}}function v(je,at){var Tt=je.sortIndex-at.sortIndex;return Tt!==0?Tt:je.id-at.id}var b=1,x=2,N=3,_=4,T=5;function A(je,at){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var z=performance;e.unstable_now=function(){return z.now()}}else{var P=Date,I=P.now();e.unstable_now=function(){return P.now()-I}}var F=1073741823,$=-1,Y=250,Z=5e3,ue=1e4,ce=F,le=[],ge=[],Ye=1,re=null,ie=N,Ce=!1,xe=!1,K=!1,be=typeof setTimeout=="function"?setTimeout:null,Ne=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function we(je){for(var at=u(ge);at!==null;){if(at.callback===null)c(ge);else if(at.startTime<=je)c(ge),at.sortIndex=at.expirationTime,o(le,at);else return;at=u(ge)}}function De(je){if(K=!1,we(je),!xe)if(u(le)!==null)xe=!0,nn(Pe);else{var at=u(ge);at!==null&&Ot(De,at.startTime-je)}}function Pe(je,at){xe=!1,K&&(K=!1,Oe()),Ce=!0;var Tt=ie;try{var hn;if(!n)return Ze(je,at)}finally{re=null,ie=Tt,Ce=!1}}function Ze(je,at){var Tt=at;for(we(Tt),re=u(le);re!==null&&!t&&!(re.expirationTime>Tt&&(!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!(je<lt)}function Ft(){}function on(je){if(je<0||je>125){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;f<a;f++)s[f-1]=arguments[f];p("warn",r,s)}}function c(r){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];p("error",r,s)}}function p(r,a,s){{var f=n.ReactDebugCurrentFrame,m=f.getStackAddendum();m!==""&&(a+="%s",s=s.concat([m]));var y=s.map(function(w){return String(w)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,y)}}var h=0,v=1,b=2,x=3,N=4,_=5,T=6,A=7,M=8,z=9,P=10,I=11,F=12,$=13,Y=14,Z=15,ue=16,ce=17,le=18,ge=19,Ye=21,re=22,ie=23,Ce=24,xe=25,K=!0,be=!1,Ne=!1,me=!1,we=!1,De=!0,Pe=!1,Ze=!1,it=!0,bt=!0,Wt=!0,Xe=new Set,ct={},wt={};function Bt(r,a){Ge(r,a),Ge(r+"Capture",a)}function Ge(r,a){ct[r]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),ct[r]=a;{var s=r.toLowerCase();wt[s]=r,r==="onDoubleClick"&&(wt.ondblclick=r)}for(var f=0;f<a.length;f++)Xe.add(a[f])}var Gt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=Object.prototype.hasOwnProperty;function et(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return s}}function _t(r){try{return lt(r),!1}catch{return!0}}function lt(r){return""+r}function xn(r,a){if(_t(r))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(r)),lt(r)}function $n(r){if(_t(r))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(r)),lt(r)}function Ft(r,a){if(_t(r))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(r)),lt(r)}function on(r,a){if(_t(r))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(r)),lt(r)}function Ln(r){if(_t(r))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",et(r)),lt(r)}function gn(r){if(_t(r))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",et(r)),lt(r)}var He=0,Je=1,nn=2,Ot=3,Oe=4,qt=5,En=6,je=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",at=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Tt=new RegExp("^["+je+"]["+at+"]*$"),hn={},Jt={};function Tn(r){return ye.call(Jt,r)?!0:ye.call(hn,r)?!1:Tt.test(r)?(Jt[r]=!0,!0):(hn[r]=!0,c("Invalid attribute name: `%s`",r),!1)}function In(r,a,s){return a!==null?a.type===He:s?!1:r.length>2&&(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("<anonymous>")&&(te=te.replace("<anonymous>",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<m.length;y++){var w=m[y];if(!(w===r||w.form!==r.form)){var R=It(w);if(!R)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(w),G(w,R)}}}}function Ve(r,a,s){(a!=="number"||J(r.ownerDocument)!==r)&&(s==null?r.defaultValue=mr(r._wrapperState.initialValue):r.defaultValue!==mr(s)&&(r.defaultValue=mr(s)))}var st=!1,xt=!1,Mt=!1;function yt(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||xt||(xt=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):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 <select> instead of setting `selected` on <option>."),st=!0)}function Vt(r,a){a.value!=null&&r.setAttribute("value",mr(oi(a.value)))}var Rt=Array.isArray;function Ut(r){return Rt(r)}var ka;ka=!1;function Ti(){var r=ta();return r?`
Check the render method of \``+r+"`.":""}var Ko=["value","defaultValue"];function Uu(r){{go("select",r);for(var a=0;a<Ko.length;a++){var s=Ko[a];if(r[s]!=null){var f=Ut(r[s]);r.multiple&&!f?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Ti()):!r.multiple&&f&&c("The `%s` prop supplied to <select> 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<y.length;R++)w["$"+y[R]]=!0;for(var O=0;O<m.length;O++){var U=w.hasOwnProperty("$"+m[O].value);m[O].selected!==U&&(m[O].selected=U),U&&f&&(m[O].defaultSelected=!0)}}else{for(var H=mr(oi(s)),te=null,ee=0;ee<m.length;ee++){if(m[ee].value===H){m[ee].selected=!0,f&&(m[ee].defaultSelected=!0);return}te===null&&!m[ee].disabled&&(te=m[ee])}te!==null&&(te.selected=!0)}}function La(r,a){return en({},a,{value:void 0})}function Ns(r,a){var s=r;Uu(a),s._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!ka&&(c("Select 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 select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ka=!0)}function pd(r,a){var s=r;s.multiple=!!a.multiple;var f=a.value;f!=null?Mn(s,!!a.multiple,f,!1):a.defaultValue!=null&&Mn(s,!!a.multiple,a.defaultValue,!0)}function Uv(r,a){var s=r,f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?Mn(s,!!a.multiple,m,!1):f!==!!a.multiple&&(a.defaultValue!=null?Mn(s,!!a.multiple,a.defaultValue,!0):Mn(s,!!a.multiple,a.multiple?[]:"",!1))}function d3(r,a){var s=r,f=a.value;f!=null&&Mn(s,!!a.multiple,f,!1)}var kb=!1;function $v(r,a){var s=r;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");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 <textarea>.");{if(y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ut(m)){if(m.length>1)throw new Error("<textarea> can only have at most one child.");m=m[0]}y=m}}y==null&&(y=""),f=y}s._wrapperState={initialValue:oi(f)}}function md(r,a){var s=r,f=oi(a.value),m=oi(a.defaultValue);if(f!=null){var y=mr(f);y!==s.value&&(s.value=y),a.defaultValue==null&&s.defaultValue!==y&&(s.defaultValue=y)}m!=null&&(s.defaultValue=mr(m))}function $u(r,a){var s=r,f=s.textContent;f===s._wrapperState.initialValue&&f!==""&&f!==null&&(s.value=f)}function p3(r,a){md(r,a)}var ws="http://www.w3.org/1999/xhtml",Lb="http://www.w3.org/1998/Math/MathML",hd="http://www.w3.org/2000/svg";function vd(r){switch(r){case"svg":return hd;case"math":return Lb;default:return ws}}function mm(r,a){return r==null||r===ws?vd(a):r===hd&&a==="foreignObject"?ws:r}var m3=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,f,m){MSApp.execUnsafeLocalFunction(function(){return r(a,s,f,m)})}:r},zc,hm=m3(function(r,a){if(r.namespaceURI===hd&&!("innerHTML"in r)){zc=zc||document.createElement("div"),zc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var s=zc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;s.firstChild;)r.appendChild(s.firstChild);return}r.innerHTML=a}),Oa=1,_s=3,Hn=8,Xo=9,ju=11,gd=function(r,a){if(a){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===_s){s.nodeValue=a;return}}r.textContent=a},Ob={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},bd={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function h3(r,a){return r+a.charAt(0).toUpperCase()+a.substring(1)}var v3=["Webkit","ms","Moz","O"];Object.keys(bd).forEach(function(r){v3.forEach(function(a){bd[h3(a,r)]=bd[r]})});function Vv(r,a,s){var f=a==null||typeof a=="boolean"||a==="";return f?"":!s&&typeof a=="number"&&a!==0&&!(bd.hasOwnProperty(r)&&bd[r])?a+"px":(on(a,r),(""+a).trim())}var g3=/([A-Z])/g,Bc=/^ms-/;function b3(r){return r.replace(g3,"-$1").toLowerCase().replace(Bc,"-ms-")}var Mb=function(){};{var Hv=/^(?:webkit|moz|o)[A-Z]/,Db=/^-ms-/,Gl=/-(.)/g,yd=/;\s*$/,Uc={},Wv={},Pb=!1,Vu=!1,Qo=function(r){return r.replace(Gl,function(a,s){return s.toUpperCase()})},Ib=function(r){Uc.hasOwnProperty(r)&&Uc[r]||(Uc[r]=!0,c("Unsupported style property %s. Did you mean %s?",r,Qo(r.replace(Db,"ms-"))))},y3=function(r){Uc.hasOwnProperty(r)&&Uc[r]||(Uc[r]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},S3=function(r,a){Wv.hasOwnProperty(a)&&Wv[a]||(Wv[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,a.replace(yd,"")))},x3=function(r,a){Pb||(Pb=!0,c("`NaN` is an invalid value for the `%s` css style property.",r))},C3=function(r,a){Vu||(Vu=!0,c("`Infinity` is an invalid value for the `%s` css style property.",r))};Mb=function(r,a){r.indexOf("-")>-1?Ib(r):Hv.test(r)?y3(r):yd.test(a)&&S3(r,a),typeof a=="number"&&(isNaN(a)?x3(r,a):isFinite(a)||C3(r,a))}}var N3=Mb;function $c(r){{var a="",s="";for(var f in r)if(!!r.hasOwnProperty(f)){var m=r[f];if(m!=null){var y=f.indexOf("--")===0;a+=s+(y?f:b3(f))+":",a+=Vv(f,m,y),s=";"}}return a||null}}function oe(r,a){var s=r.style;for(var f in a)if(!!a.hasOwnProperty(f)){var m=f.indexOf("--")===0;m||N3(f,a[f]);var y=Vv(f,a[f],m);f==="float"&&(f="cssFloat"),m?s.setProperty(f,y):s[f]=y}}function Re(r){return r==null||typeof r=="boolean"||r===""}function Se(r){var a={};for(var s in r)for(var f=Ob[s]||[s],m=0;m<f.length;m++)a[f[m]]=s;return a}function ht(r,a){{if(!a)return;var s=Se(r),f=Se(a),m={};for(var y in s){var w=s[y],R=f[y];if(R&&w!==R){var O=w+","+R;if(m[O])continue;m[O]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Re(r[w])?"Removing":"Updating",w,R)}}}}var rn={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Zn=en({menuitem:!0},rn),Qr="__html";function Jn(r,a){if(!!a){if(Zn[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(r+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Qr in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function ll(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vm={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Xa={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ul={},w3=new RegExp("^(aria)-["+at+"]*$"),jc=new RegExp("^(aria)[A-Z]["+at+"]*$");function gm(r,a){{if(ye.call(ul,a)&&ul[a])return!0;if(jc.test(a)){var s="aria-"+a.slice(4).toLowerCase(),f=Xa.hasOwnProperty(s)?s:null;if(f==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),ul[a]=!0,!0;if(a!==f)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),ul[a]=!0,!0}if(w3.test(a)){var m=a.toLowerCase(),y=Xa.hasOwnProperty(m)?m:null;if(y==null)return ul[a]=!0,!1;if(a!==y)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,y),ul[a]=!0,!0}}return!0}function bm(r,a){{var s=[];for(var f in a){var m=gm(r,f);m||s.push(f)}var y=s.map(function(w){return"`"+w+"`"}).join(", ");s.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,r):s.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,r)}}function er(r,a){ll(r,a)||bm(r,a)}var Fb=!1;function zb(r,a){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;a!=null&&a.value===null&&!Fb&&(Fb=!0,r==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var Sd=function(){};{var na={},Bb=/^on./,_3=/^on[^A-Z]/,ym=new RegExp("^(aria)-["+at+"]*$"),Yl=new RegExp("^(aria)[A-Z]["+at+"]*$");Sd=function(r,a,s,f){if(ye.call(na,a)&&na[a])return!0;var m=a.toLowerCase();if(m==="onfocusin"||m==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),na[a]=!0,!0;if(f!=null){var y=f.registrationNameDependencies,w=f.possibleRegistrationNames;if(y.hasOwnProperty(a))return!0;var R=w.hasOwnProperty(m)?w[m]:null;if(R!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,R),na[a]=!0,!0;if(Bb.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),na[a]=!0,!0}else if(Bb.test(a))return _3.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),na[a]=!0,!0;if(ym.test(a)||Yl.test(a))return!0;if(m==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[a]=!0,!0;if(m==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[a]=!0,!0;if(m==="is"&&s!==null&&s!==void 0&&typeof s!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),na[a]=!0,!0;if(typeof s=="number"&&isNaN(s))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),na[a]=!0,!0;var O=xi(a),U=O!==null&&O.type===He;if(vm.hasOwnProperty(m)){var H=vm[m];if(H!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,H),na[a]=!0,!0}else if(!U&&a!==m)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,m),na[a]=!0,!0;return typeof s=="boolean"&&Or(a,s,O,!1)?(s?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,a,a,s,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,a,a,s,a,a,a),na[a]=!0,!0):U?!0:Or(a,s,O,!1)?(na[a]=!0,!1):((s==="false"||s==="true")&&O!==null&&O.type===Ot&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,a,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,s),na[a]=!0),!0)}}var Sm=function(r,a,s){{var f=[];for(var m in a){var y=Sd(r,m,a[m],s);y||f.push(m)}var w=f.map(function(R){return"`"+R+"`"}).join(", ");f.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",w,r):f.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",w,r)}};function Ub(r,a,s){ll(r,a)||Sm(r,a,s)}var xd=1,xm=1<<1,Vc=1<<2,Cm=xd|xm|Vc,Hc=null;function Cd(r){Hc!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Hc=r}function Hu(){Hc===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Hc=null}function Nm(r){return r===Hc}function Gv(r){var a=r.target||r.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===_s?a.parentNode:a}var Yv=null,Wc=null,cl=null;function Nd(r){var a=Qe(r);if(!!a){if(typeof Yv!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=a.stateNode;if(s){var f=It(s);Yv(a.stateNode,a.type,f)}}}function qv(r){Yv=r}function $b(r){Wc?cl?cl.push(r):cl=[r]:Wc=r}function jb(){return Wc!==null||cl!==null}function Vb(){if(!!Wc){var r=Wc,a=cl;if(Wc=null,cl=null,Nd(r),a)for(var s=0;s<a.length;s++)Nd(a[s])}}var Hb=function(r,a){return r(a)},Hr=function(){},si=!1;function E3(){var r=jb();r&&(Hr(),Vb())}function Wb(r,a,s){if(si)return r(a,s);si=!0;try{return Hb(r,a,s)}finally{si=!1,E3()}}function Gb(r,a,s){Hb=r,Hr=s}function T3(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function Zv(r,a,s){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&T3(a));default:return!1}}function fl(r,a){var s=r.stateNode;if(s===null)return null;var f=It(s);if(f===null)return null;var m=f[a];if(Zv(a,r.type,f))return null;if(m&&typeof m!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof m+"` type.");return m}var wd=!1;if(Gt)try{var Es={};Object.defineProperty(Es,"passive",{get:function(){wd=!0}}),window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{wd=!1}function Gc(r,a,s,f,m,y,w,R,O){var U=Array.prototype.slice.call(arguments,3);try{a.apply(s,U)}catch(H){this.onError(H)}}var Yc=Gc;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var qc=document.createElement("react");Yc=function(a,s,f,m,y,w,R,O,U){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),te=!1,ee=!0,he=window.event,ve=Object.getOwnPropertyDescriptor(window,"event");function Ee(){qc.removeEventListener(Te,At,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var pt=Array.prototype.slice.call(arguments,3);function At(){te=!0,Ee(),s.apply(f,pt),ee=!1}var Ct,Pn=!1,_n=!1;function fe(de){if(Ct=de.error,Pn=!0,Ct===null&&de.colno===0&&de.lineno===0&&(_n=!0),de.defaultPrevented&&Ct!=null&&typeof Ct=="object")try{Ct._suppressLogging=!0}catch{}}var Te="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",fe),qc.addEventListener(Te,At,!1),H.initEvent(Te,!1,!1),qc.dispatchEvent(H),ve&&Object.defineProperty(window,"event",ve),te&&ee&&(Pn?_n&&(Ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Ct)),window.removeEventListener("error",fe),!te)return Ee(),Gc.apply(this,arguments)}}var Zc=Yc,Kc=!1,wm=null,_m=!1,Kv=null,R3={onError:function(r){Kc=!0,wm=r}};function Xc(r,a,s,f,m,y,w,R,O){Kc=!1,wm=null,Zc.apply(R3,arguments)}function _d(r,a,s,f,m,y,w,R,O){if(Xc.apply(this,arguments),Kc){var U=ql();_m||(_m=!0,Kv=U)}}function Yb(){if(_m){var r=Kv;throw _m=!1,Kv=null,r}}function B(){return Kc}function ql(){if(Kc){var r=wm;return Kc=!1,wm=null,r}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function dl(r){return r._reactInternals}function bo(r){return r._reactInternals!==void 0}function An(r,a){r._reactInternals=a}var zt=0,Qc=1,Wr=2,dn=4,Wu=16,Ed=32,Xv=64,Un=128,pl=256,Yi=512,Gu=1024,Jo=2048,ml=4096,Yu=8192,Em=16384,hl=Jo|dn|Xv|Yi|Gu|Em,A3=32767,Td=32768,ra=65536,Qv=131072,qb=1048576,vl=2097152,qu=4194304,Jv=8388608,Jr=16777216,Tm=33554432,e0=dn|Gu|0,t0=Wr|dn|Wu|Ed|Yi|ml|Yu,Rd=dn|Xv|Yi|Yu,Jc=Jo|Wu,Ts=qu|Jv|vl,Zb=n.ReactCurrentOwner;function Zu(r){var a=r,s=r;if(r.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(Wr|ml))!==zt&&(s=a.return),f=a.return;while(f)}return a.tag===x?s:null}function Kb(r){if(r.tag===$){var a=r.memoizedState;if(a===null){var s=r.alternate;s!==null&&(a=s.memoizedState)}if(a!==null)return a.dehydrated}return null}function Rm(r){return r.tag===x?r.stateNode.containerInfo:null}function Ad(r){return Zu(r)===r}function Am(r){{var a=Zb.current;if(a!==null&&a.tag===v){var s=a,f=s.stateNode;f._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",jt(s)||"A component"),f._warnedAboutRefsInRender=!0}}var m=dl(r);return m?Zu(m)===m:!1}function Xb(r){if(Zu(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function n0(r){var a=r.alternate;if(!a){var s=Zu(r);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==r?null:r}for(var f=r,m=a;;){var y=f.return;if(y===null)break;var w=y.alternate;if(w===null){var R=y.return;if(R!==null){f=m=R;continue}break}if(y.child===w.child){for(var O=y.child;O;){if(O===f)return Xb(y),r;if(O===m)return Xb(y),a;O=O.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==m.return)f=y,m=w;else{for(var U=!1,H=y.child;H;){if(H===f){U=!0,f=y,m=w;break}if(H===m){U=!0,m=y,f=w;break}H=H.sibling}if(!U){for(H=w.child;H;){if(H===f){U=!0,f=w,m=y;break}if(H===m){U=!0,m=w,f=y;break}H=H.sibling}if(!U)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(f.alternate!==m)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(f.tag!==x)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?r:a}function Qb(r){var a=n0(r);return a!==null?Rs(a):null}function Rs(r){if(r.tag===_||r.tag===T)return r;for(var a=r.child;a!==null;){var s=Rs(a);if(s!==null)return s;a=a.sibling}return null}function r0(r){var a=n0(r);return a!==null?Zl(a):null}function Zl(r){if(r.tag===_||r.tag===T)return r;for(var a=r.child;a!==null;){if(a.tag!==N){var s=Zl(a);if(s!==null)return s}a=a.sibling}return null}var Qa=t.unstable_scheduleCallback,k3=t.unstable_cancelCallback,Jb=t.unstable_shouldYield,ey=t.unstable_requestPaint,Mr=t.unstable_now,Kl=t.unstable_getCurrentPriorityLevel,kd=t.unstable_ImmediatePriority,i0=t.unstable_UserBlockingPriority,As=t.unstable_NormalPriority,L3=t.unstable_LowPriority,km=t.unstable_IdlePriority,Ri=t.unstable_yieldValue,a0=t.unstable_setDisableYieldValue,Ku=null,gr=null,rt=null,Ja=!1,Ai=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function ty(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{it&&(r=en({},r,{getLaneLabelMap:D3,injectProfilingHooks:s0})),Ku=a.inject(r),gr=a}catch(s){c("React instrumentation encountered an error: %s.",s)}return!!a.checkDCE}function ia(r,a){if(gr&&typeof gr.onScheduleFiberRoot=="function")try{gr.onScheduleFiberRoot(Ku,r,a)}catch(s){Ja||(Ja=!0,c("React instrumentation encountered an error: %s",s))}}function o0(r,a){if(gr&&typeof gr.onCommitFiberRoot=="function")try{var s=(r.current.flags&Un)===Un;if(bt){var f;switch(a){case oa:f=kd;break;case Ms:f=i0;break;case Nr:f=As;break;case Hm:f=km;break;default:f=As;break}gr.onCommitFiberRoot(Ku,r,f,s)}}catch(m){Ja||(Ja=!0,c("React instrumentation encountered an error: %s",m))}}function O3(r){if(gr&&typeof gr.onPostCommitFiberRoot=="function")try{gr.onPostCommitFiberRoot(Ku,r)}catch(a){Ja||(Ja=!0,c("React instrumentation encountered an error: %s",a))}}function M3(r){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Ku,r)}catch(a){Ja||(Ja=!0,c("React instrumentation encountered an error: %s",a))}}function li(r){if(typeof Ri=="function"&&(a0(r),o(r)),gr&&typeof gr.setStrictMode=="function")try{gr.setStrictMode(Ku,r)}catch(a){Ja||(Ja=!0,c("React instrumentation encountered an error: %s",a))}}function s0(r){rt=r}function D3(){{for(var r=new Map,a=1,s=0;s<h0;s++){var f=U3(a);r.set(a,f),a*=2}return r}}function Ld(r){rt!==null&&typeof rt.markCommitStarted=="function"&&rt.markCommitStarted(r)}function l0(){rt!==null&&typeof rt.markCommitStopped=="function"&&rt.markCommitStopped()}function Od(r){rt!==null&&typeof rt.markComponentRenderStarted=="function"&&rt.markComponentRenderStarted(r)}function ef(){rt!==null&&typeof rt.markComponentRenderStopped=="function"&&rt.markComponentRenderStopped()}function Md(r){rt!==null&&typeof rt.markComponentPassiveEffectMountStarted=="function"&&rt.markComponentPassiveEffectMountStarted(r)}function P3(){rt!==null&&typeof rt.markComponentPassiveEffectMountStopped=="function"&&rt.markComponentPassiveEffectMountStopped()}function I3(r){rt!==null&&typeof rt.markComponentPassiveEffectUnmountStarted=="function"&&rt.markComponentPassiveEffectUnmountStarted(r)}function u0(){rt!==null&&typeof rt.markComponentPassiveEffectUnmountStopped=="function"&&rt.markComponentPassiveEffectUnmountStopped()}function ny(r){rt!==null&&typeof rt.markComponentLayoutEffectMountStarted=="function"&&rt.markComponentLayoutEffectMountStarted(r)}function F3(){rt!==null&&typeof rt.markComponentLayoutEffectMountStopped=="function"&&rt.markComponentLayoutEffectMountStopped()}function ry(r){rt!==null&&typeof rt.markComponentLayoutEffectUnmountStarted=="function"&&rt.markComponentLayoutEffectUnmountStarted(r)}function iy(){rt!==null&&typeof rt.markComponentLayoutEffectUnmountStopped=="function"&&rt.markComponentLayoutEffectUnmountStopped()}function ay(r,a,s){rt!==null&&typeof rt.markComponentErrored=="function"&&rt.markComponentErrored(r,a,s)}function c0(r,a,s){rt!==null&&typeof rt.markComponentSuspended=="function"&&rt.markComponentSuspended(r,a,s)}function z3(r){rt!==null&&typeof rt.markLayoutEffectsStarted=="function"&&rt.markLayoutEffectsStarted(r)}function f0(){rt!==null&&typeof rt.markLayoutEffectsStopped=="function"&&rt.markLayoutEffectsStopped()}function oy(r){rt!==null&&typeof rt.markPassiveEffectsStarted=="function"&&rt.markPassiveEffectsStarted(r)}function sy(){rt!==null&&typeof rt.markPassiveEffectsStopped=="function"&&rt.markPassiveEffectsStopped()}function d0(r){rt!==null&&typeof rt.markRenderStarted=="function"&&rt.markRenderStarted(r)}function Lm(){rt!==null&&typeof rt.markRenderYielded=="function"&&rt.markRenderYielded()}function ly(){rt!==null&&typeof rt.markRenderStopped=="function"&&rt.markRenderStopped()}function uy(r){rt!==null&&typeof rt.markRenderScheduled=="function"&&rt.markRenderScheduled(r)}function cy(r,a){rt!==null&&typeof rt.markForceUpdateScheduled=="function"&&rt.markForceUpdateScheduled(r,a)}function p0(r,a){rt!==null&&typeof rt.markStateUpdateScheduled=="function"&&rt.markStateUpdateScheduled(r,a)}var Dt=0,Nn=1,Wn=2,Br=8,yo=16,fy=Math.clz32?Math.clz32:B3,m0=Math.log,bn=Math.LN2;function B3(r){var a=r>>>0;return a===0?32:31-(m0(a)/bn|0)|0}var h0=31,Fe=0,ei=0,Yt=1,tf=2,Gr=4,Xu=8,eo=16,Qu=32,Ju=4194240,nf=64,aa=128,ks=256,Dd=512,Om=1024,rf=2048,Mm=4096,Pd=8192,Dm=16384,Id=32768,Fd=65536,Ls=131072,v0=262144,Os=524288,Pm=1048576,Im=2097152,af=130023424,of=4194304,g0=8388608,b0=16777216,Fm=33554432,zm=67108864,dy=of,sf=134217728,y0=268435455,ui=268435456,qi=536870912,to=1073741824;function U3(r){{if(r&Yt)return"Sync";if(r&tf)return"InputContinuousHydration";if(r&Gr)return"InputContinuous";if(r&Xu)return"DefaultHydration";if(r&eo)return"Default";if(r&Qu)return"TransitionHydration";if(r&Ju)return"Transition";if(r&af)return"Retry";if(r&sf)return"SelectiveHydration";if(r&ui)return"IdleHydration";if(r&qi)return"Idle";if(r&to)return"Offscreen"}}var tr=-1,gl=nf,zd=of;function lf(r){switch(bl(r)){case Yt:return Yt;case tf:return tf;case Gr:return Gr;case Xu:return Xu;case eo:return eo;case Qu:return Qu;case nf:case aa:case ks:case Dd:case Om:case rf:case Mm:case Pd:case Dm:case Id:case Fd:case Ls:case v0:case Os:case Pm:case Im:return r&Ju;case of:case g0:case b0:case Fm:case zm:return r&af;case sf:return sf;case ui:return ui;case qi:return qi;case to:return to;default:return c("Should have found matching lanes. This is a bug in React."),r}}function Bm(r,a){var s=r.pendingLanes;if(s===Fe)return Fe;var f=Fe,m=r.suspendedLanes,y=r.pingedLanes,w=s&y0;if(w!==Fe){var R=w&~m;if(R!==Fe)f=lf(R);else{var O=w&y;O!==Fe&&(f=lf(O))}}else{var U=s&~m;U!==Fe?f=lf(U):y!==Fe&&(f=lf(y))}if(f===Fe)return Fe;if(a!==Fe&&a!==f&&(a&m)===Fe){var H=bl(f),te=bl(a);if(H>=te||H===eo&&(te&Ju)!==Fe)return a}(f&Gr)!==Fe&&(f|=s&eo);var ee=r.entangledLanes;if(ee!==Fe)for(var he=r.entanglements,ve=f&ee;ve>0;){var Ee=Xl(ve),pt=1<<Ee;f|=he[Ee],ve&=~pt}return f}function py(r,a){for(var s=r.eventTimes,f=tr;a>0;){var m=Xl(a),y=1<<m,w=s[m];w>f&&(f=w),a&=~y}return f}function uf(r,a){switch(r){case Yt:case tf:case Gr:return a+250;case Xu:case eo:case Qu:case nf:case aa:case ks:case Dd:case Om:case rf:case Mm:case Pd:case Dm:case Id:case Fd:case Ls:case v0:case Os:case Pm:case Im:return a+5e3;case of:case g0:case b0:case Fm:case zm:return tr;case sf:case ui:case qi:case to:return tr;default:return c("Should have found matching lanes. This is a bug in React."),tr}}function Bd(r,a){for(var s=r.pendingLanes,f=r.suspendedLanes,m=r.pingedLanes,y=r.expirationTimes,w=s;w>0;){var R=Xl(w),O=1<<R,U=y[R];U===tr?((O&f)===Fe||(O&m)!==Fe)&&(y[R]=uf(O,a)):U<=a&&(r.expiredLanes|=O),w&=~O}}function $3(r){return lf(r.pendingLanes)}function Um(r){var a=r.pendingLanes&~to;return a!==Fe?a:a&to?to:Fe}function my(r){return(r&Yt)!==Fe}function cf(r){return(r&y0)!==Fe}function S0(r){return(r&af)===r}function $m(r){var a=Yt|Gr|eo;return(r&a)===Fe}function x0(r){return(r&Ju)===r}function ec(r,a){var s=tf|Gr|Xu|eo;return(a&s)!==Fe}function j3(r,a){return(a&r.expiredLanes)!==Fe}function C0(r){return(r&Ju)!==Fe}function Ud(){var r=gl;return gl<<=1,(gl&Ju)===Fe&&(gl=nf),r}function hy(){var r=zd;return zd<<=1,(zd&af)===Fe&&(zd=of),r}function bl(r){return r&-r}function $d(r){return bl(r)}function Xl(r){return 31-fy(r)}function es(r){return Xl(r)}function Ma(r,a){return(r&a)!==Fe}function tc(r,a){return(r&a)===a}function pn(r,a){return r|a}function jd(r,a){return r&~a}function vy(r,a){return r&a}function BE(r){return r}function yl(r,a){return r!==ei&&r<a?r:a}function Vd(r){for(var a=[],s=0;s<h0;s++)a.push(r);return a}function nc(r,a,s){r.pendingLanes|=a,a!==qi&&(r.suspendedLanes=Fe,r.pingedLanes=Fe);var f=r.eventTimes,m=es(a);f[m]=s}function N0(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var s=r.expirationTimes,f=a;f>0;){var m=Xl(f),y=1<<m;s[m]=tr,f&=~y}}function Hd(r,a,s){r.pingedLanes|=r.suspendedLanes&a}function ff(r,a){var s=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Fe,r.pingedLanes=Fe,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var f=r.entanglements,m=r.eventTimes,y=r.expirationTimes,w=s;w>0;){var R=Xl(w),O=1<<R;f[R]=Fe,m[R]=tr,y[R]=tr,w&=~O}}function Pt(r,a){for(var s=r.entangledLanes|=a,f=r.entanglements,m=s;m;){var y=Xl(m),w=1<<y;w&a|f[y]&a&&(f[y]|=a),m&=~w}}function jm(r,a){var s=bl(a),f;switch(s){case Gr:f=tf;break;case eo:f=Xu;break;case nf:case aa:case ks:case Dd:case Om:case rf:case Mm:case Pd:case Dm:case Id:case Fd:case Ls:case v0:case Os:case Pm:case Im:case of:case g0:case b0:case Fm:case zm:f=Qu;break;case qi:f=ui;break;default:f=ei;break}return(f&(r.suspendedLanes|a))!==ei?ei:f}function Vm(r,a,s){if(!!Ai)for(var f=r.pendingUpdatersLaneMap;s>0;){var m=es(s),y=1<<m,w=f[m];w.add(a),s&=~y}}function Ql(r,a){if(!!Ai)for(var s=r.pendingUpdatersLaneMap,f=r.memoizedUpdaters;a>0;){var m=es(a),y=1<<m,w=s[m];w.size>0&&(w.forEach(function(R){var O=R.alternate;(O===null||!f.has(O))&&f.add(R)}),w.clear()),a&=~y}}function gy(r,a){return null}var oa=Yt,Ms=Gr,Nr=eo,Hm=qi,Wd=ei;function So(){return Wd}function ci(r){Wd=r}function by(r,a){var s=Wd;try{return Wd=r,a()}finally{Wd=s}}function V3(r,a){return r!==0&&r<a?r:a}function H3(r,a){return r===0||r>a?r:a}function w0(r,a){return r!==0&&r<a}function Ds(r){var a=bl(r);return w0(oa,a)?w0(Ms,a)?cf(a)?Nr:Hm:Ms:oa}function fi(r){var a=r.current.memoizedState;return a.isDehydrated}var Wm;function W3(r){Wm=r}function _0(r){Wm(r)}var E0;function G3(r){E0=r}var df;function yy(r){df=r}var T0;function Y3(r){T0=r}var Sy;function q3(r){Sy=r}var R0=!1,Gd=[],Sl=null,Jl=null,Ps=null,pf=new Map,xl=new Map,Is=[],xy=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function Cy(r){return xy.indexOf(r)>-1}function Gm(r,a,s,f,m){return{blockedOn:r,domEventName:a,eventSystemFlags:s,nativeEvent:m,targetContainers:[f]}}function A0(r,a){switch(r){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":Jl=null;break;case"mouseover":case"mouseout":Ps=null;break;case"pointerover":case"pointerout":{var s=a.pointerId;pf.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;xl.delete(f);break}}}function Da(r,a,s,f,m,y){if(r===null||r.nativeEvent!==y){var w=Gm(a,s,f,m,y);if(a!==null){var R=Qe(a);R!==null&&E0(R)}return w}r.eventSystemFlags|=f;var O=r.targetContainers;return m!==null&&O.indexOf(m)===-1&&O.push(m),r}function rc(r,a,s,f,m){switch(a){case"focusin":{var y=m;return Sl=Da(Sl,r,a,s,f,y),!0}case"dragenter":{var w=m;return Jl=Da(Jl,r,a,s,f,w),!0}case"mouseover":{var R=m;return Ps=Da(Ps,r,a,s,f,R),!0}case"pointerover":{var O=m,U=O.pointerId;return pf.set(U,Da(pf.get(U)||null,r,a,s,f,O)),!0}case"gotpointercapture":{var H=m,te=H.pointerId;return xl.set(te,Da(xl.get(te)||null,r,a,s,f,H)),!0}}return!1}function Ny(r){var a=Ie(r.target);if(a!==null){var s=Zu(a);if(s!==null){var f=s.tag;if(f===$){var m=Kb(s);if(m!==null){r.blockedOn=m,Sy(r.priority,function(){df(s)});return}}else if(f===x){var y=s.stateNode;if(fi(y)){r.blockedOn=Rm(s);return}}}}r.blockedOn=null}function wy(r){for(var a=T0(),s={blockedOn:null,target:r,priority:a},f=0;f<Is.length&&w0(a,Is[f].priority);f++);Is.splice(f,0,s),f===0&&Ny(s)}function Ym(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;a.length>0;){var s=a[0],f=L0(r.domEventName,r.eventSystemFlags,s,r.nativeEvent);if(f===null){var m=r.nativeEvent,y=new m.constructor(m.type,m);Cd(y),m.target.dispatchEvent(y),Hu()}else{var w=Qe(f);return w!==null&&E0(w),r.blockedOn=f,!1}a.shift()}return!0}function _y(r,a,s){Ym(r)&&s.delete(a)}function Z3(){R0=!1,Sl!==null&&Ym(Sl)&&(Sl=null),Jl!==null&&Ym(Jl)&&(Jl=null),Ps!==null&&Ym(Ps)&&(Ps=null),pf.forEach(_y),xl.forEach(_y)}function Yd(r,a){r.blockedOn===a&&(r.blockedOn=null,R0||(R0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Z3)))}function qd(r){if(Gd.length>0){Yd(Gd[0],r);for(var a=1;a<Gd.length;a++){var s=Gd[a];s.blockedOn===r&&(s.blockedOn=null)}}Sl!==null&&Yd(Sl,r),Jl!==null&&Yd(Jl,r),Ps!==null&&Yd(Ps,r);var f=function(R){return Yd(R,r)};pf.forEach(f),xl.forEach(f);for(var m=0;m<Is.length;m++){var y=Is[m];y.blockedOn===r&&(y.blockedOn=null)}for(;Is.length>0;){var w=Is[0];if(w.blockedOn!==null)break;Ny(w),w.blockedOn===null&&Is.shift()}}var mf=n.ReactCurrentBatchConfig,k0=!0;function Ey(r){k0=!!r}function K3(){return k0}function X3(r,a,s){var f=Ay(a),m;switch(f){case oa:m=Q3;break;case Ms:m=Ty;break;case Nr:default:m=qm;break}return m.bind(null,a,s,r)}function Q3(r,a,s,f){var m=So(),y=mf.transition;mf.transition=null;try{ci(oa),qm(r,a,s,f)}finally{ci(m),mf.transition=y}}function Ty(r,a,s,f){var m=So(),y=mf.transition;mf.transition=null;try{ci(Ms),qm(r,a,s,f)}finally{ci(m),mf.transition=y}}function qm(r,a,s,f){!k0||Ry(r,a,s,f)}function Ry(r,a,s,f){var m=L0(r,a,s,f);if(m===null){Y0(r,a,f,Zm,s),A0(r,f);return}if(rc(m,r,a,s,f)){f.stopPropagation();return}if(A0(r,f),a&Vc&&Cy(r)){for(;m!==null;){var y=Qe(m);y!==null&&_0(y);var w=L0(r,a,s,f);if(w===null&&Y0(r,a,f,Zm,s),w===m)break;m=w}m!==null&&f.stopPropagation();return}Y0(r,a,f,null,s)}var Zm=null;function L0(r,a,s,f){Zm=null;var m=Gv(f),y=Ie(m);if(y!==null){var w=Zu(y);if(w===null)y=null;else{var R=w.tag;if(R===$){var O=Kb(w);if(O!==null)return O;y=null}else if(R===x){var U=w.stateNode;if(fi(U))return Rm(w);y=null}else w!==y&&(y=null)}}return Zm=y,null}function Ay(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return oa;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ms;case"message":{var a=Kl();switch(a){case kd:return oa;case i0:return Ms;case As:case L3:return Nr;case km:return Hm;default:return Nr}}default:return Nr}}function ky(r,a,s){return r.addEventListener(a,s,!1),s}function J3(r,a,s){return r.addEventListener(a,s,!0),s}function ex(r,a,s,f){return r.addEventListener(a,s,{capture:!0,passive:f}),s}function tx(r,a,s,f){return r.addEventListener(a,s,{passive:f}),s}var Zd=null,O0=null,Kd=null;function xo(r){return Zd=r,O0=Oy(),!0}function nx(){Zd=null,O0=null,Kd=null}function Ly(){if(Kd)return Kd;var r,a=O0,s=a.length,f,m=Oy(),y=m.length;for(r=0;r<s&&a[r]===m[r];r++);var w=s-r;for(f=1;f<=w&&a[s-f]===m[y-f];f++);var R=f>1?1-f:void 0;return Kd=m.slice(r,R),Kd}function Oy(){return"value"in Zd?Zd.value:Zd.textContent}function Xd(r){var a,s=r.keyCode;return"charCode"in r?(a=r.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),a>=32||a===13?a:0}function Km(){return!0}function My(){return!1}function no(r){function a(s,f,m,y,w){this._reactName=s,this._targetInst=m,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var R in r)if(!!r.hasOwnProperty(R)){var O=r[R];O?this[R]=O(y):this[R]=y[R]}var U=y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1;return U?this.isDefaultPrevented=Km:this.isDefaultPrevented=My,this.isPropagationStopped=My,this}return en(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;!s||(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Km)},stopPropagation:function(){var s=this.nativeEvent;!s||(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Km)},persist:function(){},isPersistent:Km}),a}var hf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qd=no(hf),Jd=en({},hf,{view:0,detail:0}),rx=no(Jd),M0,D0,ep;function ix(r){r!==ep&&(ep&&r.type==="mousemove"?(M0=r.screenX-ep.screenX,D0=r.screenY-ep.screenY):(M0=0,D0=0),ep=r)}var Xm=en({},Jd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:F0,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(ix(r),M0)},movementY:function(r){return"movementY"in r?r.movementY:D0}}),Dy=no(Xm),ax=en({},Xm,{dataTransfer:0}),ox=no(ax),sx=en({},Jd,{relatedTarget:0}),P0=no(sx),lx=en({},hf,{animationName:0,elapsedTime:0,pseudoElement:0}),ux=no(lx),cx=en({},hf,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),fx=no(cx),dx=en({},hf,{data:0}),Py=no(dx),px=Py,mx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Iy(r){if(r.key){var a=mx[r.key]||r.key;if(a!=="Unidentified")return a}if(r.type==="keypress"){var s=Xd(r);return s===13?"Enter":String.fromCharCode(s)}return r.type==="keydown"||r.type==="keyup"?I0[r.keyCode]||"Unidentified":""}var hx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vx(r){var a=this,s=a.nativeEvent;if(s.getModifierState)return s.getModifierState(r);var f=hx[r];return f?!!s[f]:!1}function F0(r){return vx}var gx=en({},Jd,{key:Iy,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:F0,charCode:function(r){return r.type==="keypress"?Xd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Xd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),bx=no(gx),yx=en({},Xm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fy=no(yx),Sx=en({},Jd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:F0}),zy=no(Sx),xx=en({},hf,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qm=no(xx),Cx=en({},Xm,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Nx=no(Cx),wx=[9,13,27,32],By=229,z0=Gt&&"CompositionEvent"in window,tp=null;Gt&&"documentMode"in document&&(tp=document.documentMode);var _x=Gt&&"TextEvent"in window&&!tp,Uy=Gt&&(!z0||tp&&tp>8&&tp<=11),$y=32,jy=String.fromCharCode($y);function Ex(){Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Bt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Bt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Vy=!1;function Tx(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function Rx(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function Ax(r,a){return r==="keydown"&&a.keyCode===By}function Hy(r,a){switch(r){case"keyup":return wx.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==By;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B0(r){var a=r.detail;return typeof a=="object"&&"data"in a?a.data:null}function U0(r){return r.locale==="ko"}var vf=!1;function kx(r,a,s,f,m){var y,w;if(z0?y=Rx(a):vf?Hy(a,f)&&(y="onCompositionEnd"):Ax(a,f)&&(y="onCompositionStart"),!y)return null;Uy&&!U0(f)&&(!vf&&y==="onCompositionStart"?vf=xo(m):y==="onCompositionEnd"&&vf&&(w=Ly()));var R=an(s,y);if(R.length>0){var O=new Py(y,a,null,f,m);if(r.push({event:O,listeners:R}),w)O.data=w;else{var U=B0(f);U!==null&&(O.data=U)}}}function Lx(r,a){switch(r){case"compositionend":return B0(a);case"keypress":var s=a.which;return s!==$y?null:(Vy=!0,jy);case"textInput":var f=a.data;return f===jy&&Vy?null:f;default:return null}}function Ox(r,a){if(vf){if(r==="compositionend"||!z0&&Hy(r,a)){var s=Ly();return nx(),vf=!1,s}return null}switch(r){case"paste":return null;case"keypress":if(!Tx(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Uy&&!U0(a)?null:a.data;default:return null}}function Jm(r,a,s,f,m){var y;if(_x?y=Lx(a,f):y=Ox(a,f),!y)return null;var w=an(s,"onBeforeInput");if(w.length>0){var R=new px("onBeforeInput","beforeinput",null,f,m);r.push({event:R,listeners:w}),R.data=y}}function Mx(r,a,s,f,m,y,w){kx(r,a,s,f,m),Jm(r,a,s,f,m)}var Dx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wy(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Dx[r.type]:a==="textarea"}/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function Px(r){if(!Gt)return!1;var a="on"+r,s=a in document;if(!s){var f=document.createElement("div");f.setAttribute(a,"return;"),s=typeof f[a]=="function"}return s}function Ix(){Bt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Gy(r,a,s,f){$b(f);var m=an(a,"onChange");if(m.length>0){var y=new Qd("onChange","change",null,s,f);r.push({event:y,listeners:m})}}var np=null,rp=null;function Fx(r){var a=r.nodeName&&r.nodeName.toLowerCase();return a==="select"||a==="input"&&r.type==="file"}function zx(r){var a=[];Gy(a,rp,r,Gv(r)),Wb(Bx,a)}function Bx(r){G0(r,0)}function ic(r){var a=vt(r);if(W(a))return r}function Ux(r,a){if(r==="change")return a}var $0=!1;Gt&&($0=Px("input")&&(!document.documentMode||document.documentMode>9));function Yy(r,a){np=r,rp=a,np.attachEvent("onpropertychange",j0)}function eh(){!np||(np.detachEvent("onpropertychange",j0),np=null,rp=null)}function j0(r){r.propertyName==="value"&&ic(rp)&&zx(r)}function qy(r,a,s){r==="focusin"?(eh(),Yy(a,s)):r==="focusout"&&eh()}function Zy(r,a){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ic(rp)}function Ky(r){var a=r.nodeName;return a&&a.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function $x(r,a){if(r==="click")return ic(a)}function jx(r,a){if(r==="input"||r==="change")return ic(a)}function Vx(r){var a=r._wrapperState;!a||!a.controlled||r.type!=="number"||Ve(r,"number",r.value)}function th(r,a,s,f,m,y,w){var R=s?vt(s):window,O,U;if(Fx(R)?O=Ux:Wy(R)?$0?O=jx:(O=Zy,U=qy):Ky(R)&&(O=$x),O){var H=O(a,s);if(H){Gy(r,H,f,m);return}}U&&U(a,R,s),a==="focusout"&&Vx(R)}function nh(){Ge("onMouseEnter",["mouseout","mouseover"]),Ge("onMouseLeave",["mouseout","mouseover"]),Ge("onPointerEnter",["pointerout","pointerover"]),Ge("onPointerLeave",["pointerout","pointerover"])}function Hx(r,a,s,f,m,y,w){var R=a==="mouseover"||a==="pointerover",O=a==="mouseout"||a==="pointerout";if(R&&!Nm(f)){var U=f.relatedTarget||f.fromElement;if(U&&(Ie(U)||ke(U)))return}if(!(!O&&!R)){var H;if(m.window===m)H=m;else{var te=m.ownerDocument;te?H=te.defaultView||te.parentWindow:H=window}var ee,he;if(O){var ve=f.relatedTarget||f.toElement;if(ee=s,he=ve?Ie(ve):null,he!==null){var Ee=Zu(he);(he!==Ee||he.tag!==_&&he.tag!==T)&&(he=null)}}else ee=null,he=s;if(ee!==he){var pt=Dy,At="onMouseLeave",Ct="onMouseEnter",Pn="mouse";(a==="pointerout"||a==="pointerover")&&(pt=Fy,At="onPointerLeave",Ct="onPointerEnter",Pn="pointer");var _n=ee==null?H:vt(ee),fe=he==null?H:vt(he),Te=new pt(At,Pn+"leave",ee,f,m);Te.target=_n,Te.relatedTarget=fe;var de=null,We=Ie(m);if(We===s){var mt=new pt(Ct,Pn+"enter",he,f,m);mt.target=fe,mt.relatedTarget=_n,de=mt}lC(r,Te,de,ee,he)}}}function Wx(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var sa=typeof Object.is=="function"?Object.is:Wx;function gf(r,a){if(sa(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var s=Object.keys(r),f=Object.keys(a);if(s.length!==f.length)return!1;for(var m=0;m<s.length;m++){var y=s[m];if(!ye.call(a,y)||!sa(r[y],a[y]))return!1}return!0}function Xy(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Gx(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function Qy(r,a){for(var s=Xy(r),f=0,m=0;s;){if(s.nodeType===_s){if(m=f+s.textContent.length,f<=a&&m>=a)return{node:s,offset:a-f};f=m}s=Xy(Gx(s))}}function Yx(r){var a=r.ownerDocument,s=a&&a.defaultView||window,f=s.getSelection&&s.getSelection();if(!f||f.rangeCount===0)return null;var m=f.anchorNode,y=f.anchorOffset,w=f.focusNode,R=f.focusOffset;try{m.nodeType,w.nodeType}catch{return null}return qx(r,m,y,w,R)}function qx(r,a,s,f,m){var y=0,w=-1,R=-1,O=0,U=0,H=r,te=null;e:for(;;){for(var ee=null;H===a&&(s===0||H.nodeType===_s)&&(w=y+s),H===f&&(m===0||H.nodeType===_s)&&(R=y+m),H.nodeType===_s&&(y+=H.nodeValue.length),(ee=H.firstChild)!==null;)te=H,H=ee;for(;;){if(H===r)break e;if(te===a&&++O===s&&(w=y),te===f&&++U===m&&(R=y),(ee=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=ee}return w===-1||R===-1?null:{start:w,end:R}}function Zx(r,a){var s=r.ownerDocument||document,f=s&&s.defaultView||window;if(!!f.getSelection){var m=f.getSelection(),y=r.textContent.length,w=Math.min(a.start,y),R=a.end===void 0?w:Math.min(a.end,y);if(!m.extend&&w>R){var O=R;R=w,w=O}var U=Qy(r,w),H=Qy(r,R);if(U&&H){if(m.rangeCount===1&&m.anchorNode===U.node&&m.anchorOffset===U.offset&&m.focusNode===H.node&&m.focusOffset===H.offset)return;var te=s.createRange();te.setStart(U.node,U.offset),m.removeAllRanges(),w>R?(m.addRange(te),m.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),m.addRange(te))}}}function Jy(r){return r&&r.nodeType===_s}function e2(r,a){return!r||!a?!1:r===a?!0:Jy(r)?!1:Jy(a)?e2(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1}function Kx(r){return r&&r.ownerDocument&&e2(r.ownerDocument.documentElement,r)}function Xx(r){try{return typeof r.contentWindow.location.href=="string"}catch{return!1}}function t2(){for(var r=window,a=J();a instanceof r.HTMLIFrameElement;){if(Xx(a))r=a.contentWindow;else return a;a=J(r.document)}return a}function V0(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function ts(){var r=t2();return{focusedElem:r,selectionRange:V0(r)?Jx(r):null}}function Qx(r){var a=t2(),s=r.focusedElem,f=r.selectionRange;if(a!==s&&Kx(s)){f!==null&&V0(s)&&ac(s,f);for(var m=[],y=s;y=y.parentNode;)y.nodeType===Oa&&m.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var w=0;w<m.length;w++){var R=m[w];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}}function Jx(r){var a;return"selectionStart"in r?a={start:r.selectionStart,end:r.selectionEnd}:a=Yx(r),a||{start:0,end:0}}function ac(r,a){var s=a.start,f=a.end;f===void 0&&(f=s),"selectionStart"in r?(r.selectionStart=s,r.selectionEnd=Math.min(f,r.value.length)):Zx(r,a)}var ln=Gt&&"documentMode"in document&&document.documentMode<=11;function eC(){Bt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ti=null,Ar=null,ip=null,Fs=!1;function tC(r){if("selectionStart"in r&&V0(r))return{start:r.selectionStart,end:r.selectionEnd};var a=r.ownerDocument&&r.ownerDocument.defaultView||window,s=a.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function nC(r){return r.window===r?r.document:r.nodeType===Xo?r:r.ownerDocument}function n2(r,a,s){var f=nC(s);if(!(Fs||ti==null||ti!==J(f))){var m=tC(ti);if(!ip||!gf(ip,m)){ip=m;var y=an(Ar,"onSelect");if(y.length>0){var w=new Qd("onSelect","select",null,a,s);r.push({event:w,listeners:y}),w.target=ti}}}}function rC(r,a,s,f,m,y,w){var R=s?vt(s):window;switch(a){case"focusin":(Wy(R)||R.contentEditable==="true")&&(ti=R,Ar=s,ip=null);break;case"focusout":ti=null,Ar=null,ip=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,n2(r,f,m);break;case"selectionchange":if(ln)break;case"keydown":case"keyup":n2(r,f,m)}}function rh(r,a){var s={};return s[r.toLowerCase()]=a.toLowerCase(),s["Webkit"+r]="webkit"+a,s["Moz"+r]="moz"+a,s}var eu={animationend:rh("Animation","AnimationEnd"),animationiteration:rh("Animation","AnimationIteration"),animationstart:rh("Animation","AnimationStart"),transitionend:rh("Transition","TransitionEnd")},H0={},zs={};Gt&&(zs=document.createElement("div").style,"AnimationEvent"in window||(delete eu.animationend.animation,delete eu.animationiteration.animation,delete eu.animationstart.animation),"TransitionEvent"in window||delete eu.transitionend.transition);function ap(r){if(H0[r])return H0[r];if(!eu[r])return r;var a=eu[r];for(var s in a)if(a.hasOwnProperty(s)&&s in zs)return H0[r]=a[s];return r}var op=ap("animationend"),wr=ap("animationiteration"),kr=ap("animationstart"),W0=ap("transitionend"),r2=new Map,i2=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function tu(r,a){r2.set(r,a),Bt(a,[r])}function iC(){for(var r=0;r<i2.length;r++){var a=i2[r],s=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);tu(s,"on"+f)}tu(op,"onAnimationEnd"),tu(wr,"onAnimationIteration"),tu(kr,"onAnimationStart"),tu("dblclick","onDoubleClick"),tu("focusin","onFocus"),tu("focusout","onBlur"),tu(W0,"onTransitionEnd")}function aC(r,a,s,f,m,y,w){var R=r2.get(a);if(R!==void 0){var O=Qd,U=a;switch(a){case"keypress":if(Xd(f)===0)return;case"keydown":case"keyup":O=bx;break;case"focusin":U="focus",O=P0;break;case"focusout":U="blur",O=P0;break;case"beforeblur":case"afterblur":O=P0;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Dy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=ox;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=zy;break;case op:case wr:case kr:O=ux;break;case W0:O=Qm;break;case"scroll":O=rx;break;case"wheel":O=Nx;break;case"copy":case"cut":case"paste":O=fx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Fy;break}var H=(y&Vc)!==0;{var te=!H&&a==="scroll",ee=Cl(s,R,f.type,H,te);if(ee.length>0){var he=new O(R,U,null,f,m);r.push({event:he,listeners:ee})}}}}iC(),nh(),Ix(),eC(),Ex();function oC(r,a,s,f,m,y,w){aC(r,a,s,f,m,y);var R=(y&Cm)===0;R&&(Hx(r,a,s,f,m),th(r,a,s,f,m),rC(r,a,s,f,m),Mx(r,a,s,f,m))}var bf=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],oc=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(bf));function ih(r,a,s){var f=r.type||"unknown-event";r.currentTarget=s,_d(f,a,void 0,r),r.currentTarget=null}function sC(r,a,s){var f;if(s)for(var m=a.length-1;m>=0;m--){var y=a[m],w=y.instance,R=y.currentTarget,O=y.listener;if(w!==f&&r.isPropagationStopped())return;ih(r,O,R),f=w}else for(var U=0;U<a.length;U++){var H=a[U],te=H.instance,ee=H.currentTarget,he=H.listener;if(te!==f&&r.isPropagationStopped())return;ih(r,he,ee),f=te}}function G0(r,a){for(var s=(a&Vc)!==0,f=0;f<r.length;f++){var m=r[f],y=m.event,w=m.listeners;sC(y,w,s)}Yb()}function ah(r,a,s,f,m){var y=Gv(s),w=[];oC(w,r,f,s,y,a),G0(w,a)}function wn(r,a){oc.has(r)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var s=!1,f=$t(a),m=Xn(r,s);f.has(m)||(a2(a,r,xm,s),f.add(m))}function nu(r,a,s){oc.has(r)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var f=0;a&&(f|=Vc),a2(s,r,f,a)}var oh="_reactListening"+Math.random().toString(36).slice(2);function sp(r){if(!r[oh]){r[oh]=!0,Xe.forEach(function(s){s!=="selectionchange"&&(oc.has(s)||nu(s,!1,r),nu(s,!0,r))});var a=r.nodeType===Xo?r:r.ownerDocument;a!==null&&(a[oh]||(a[oh]=!0,nu("selectionchange",!1,a)))}}function a2(r,a,s,f,m){var y=X3(r,a,s),w=void 0;wd&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(w=!0),r=r,f?w!==void 0?ex(r,a,y,w):J3(r,a,y):w!==void 0?tx(r,a,y,w):ky(r,a,y)}function o2(r,a){return r===a||r.nodeType===Hn&&r.parentNode===a}function Y0(r,a,s,f,m){var y=f;if((a&xd)===0&&(a&xm)===0){var w=m;if(f!==null){var R=f;e:for(;;){if(R===null)return;var O=R.tag;if(O===x||O===N){var U=R.stateNode.containerInfo;if(o2(U,w))break;if(O===N)for(var H=R.return;H!==null;){var te=H.tag;if(te===x||te===N){var ee=H.stateNode.containerInfo;if(o2(ee,w))return}H=H.return}for(;U!==null;){var he=Ie(U);if(he===null)return;var ve=he.tag;if(ve===_||ve===T){R=y=he;continue e}U=U.parentNode}}R=R.return}}}Wb(function(){return ah(r,a,s,y)})}function yf(r,a,s){return{instance:r,listener:a,currentTarget:s}}function Cl(r,a,s,f,m,y){for(var w=a!==null?a+"Capture":null,R=f?w:a,O=[],U=r,H=null;U!==null;){var te=U,ee=te.stateNode,he=te.tag;if(he===_&&ee!==null&&(H=ee,R!==null)){var ve=fl(U,R);ve!=null&&O.push(yf(U,ve,H))}if(m)break;U=U.return}return O}function an(r,a){for(var s=a+"Capture",f=[],m=r;m!==null;){var y=m,w=y.stateNode,R=y.tag;if(R===_&&w!==null){var O=w,U=fl(m,s);U!=null&&f.unshift(yf(m,U,O));var H=fl(m,a);H!=null&&f.push(yf(m,H,O))}m=m.return}return f}function sc(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==_);return r||null}function Co(r,a){for(var s=r,f=a,m=0,y=s;y;y=sc(y))m++;for(var w=0,R=f;R;R=sc(R))w++;for(;m-w>0;)s=sc(s),m--;for(;w-m>0;)f=sc(f),w--;for(var O=m;O--;){if(s===f||f!==null&&s===f.alternate)return s;s=sc(s),f=sc(f)}return null}function q0(r,a,s,f,m){for(var y=a._reactName,w=[],R=s;R!==null&&R!==f;){var O=R,U=O.alternate,H=O.stateNode,te=O.tag;if(U!==null&&U===f)break;if(te===_&&H!==null){var ee=H;if(m){var he=fl(R,y);he!=null&&w.unshift(yf(R,he,ee))}else if(!m){var ve=fl(R,y);ve!=null&&w.push(yf(R,ve,ee))}}R=R.return}w.length!==0&&r.push({event:a,listeners:w})}function lC(r,a,s,f,m){var y=f&&m?Co(f,m):null;f!==null&&q0(r,a,f,y,!1),m!==null&&s!==null&&q0(r,s,m,y,!0)}function Xn(r,a){return r+"__"+(a?"capture":"bubble")}var Pa=!1,Sf="dangerouslySetInnerHTML",lc="suppressContentEditableWarning",ru="suppressHydrationWarning",s2="autoFocus",uc="children",cc="style",sh="__html",Z0,lh,lp,l2,uh,u2,c2;Z0={dialog:!0,webview:!0},lh=function(r,a){er(r,a),zb(r,a),Ub(r,a,{registrationNameDependencies:ct,possibleRegistrationNames:wt})},u2=Gt&&!document.documentMode,lp=function(r,a,s){if(!Pa){var f=ch(s),m=ch(a);m!==f&&(Pa=!0,c("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(m),JSON.stringify(f)))}},l2=function(r){if(!Pa){Pa=!0;var a=[];r.forEach(function(s){a.push(s)}),c("Extra attributes from the server: %s",a)}},uh=function(r,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)},c2=function(r,a){var s=r.namespaceURI===ws?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return s.innerHTML=a,s.innerHTML};var uC=/\r\n?/g,K0=/\u0000|\uFFFD/g;function ch(r){Ln(r);var a=typeof r=="string"?r:""+r;return a.replace(uC,`
`).replace(K0,"")}function xf(r,a,s,f){var m=ch(a),y=ch(r);if(y!==m&&(f&&(Pa||(Pa=!0,c('Text content did not match. Server: "%s" Client: "%s"',y,m))),s&&K))throw new Error("Text content does not match server-rendered HTML.")}function f2(r){return r.nodeType===Xo?r:r.ownerDocument}function cC(){}function fh(r){r.onclick=cC}function di(r,a,s,f,m){for(var y in f)if(!!f.hasOwnProperty(y)){var w=f[y];if(y===cc)w&&Object.freeze(w),oe(a,w);else if(y===Sf){var R=w?w[sh]:void 0;R!=null&&hm(a,R)}else if(y===uc)if(typeof w=="string"){var O=r!=="textarea"||w!=="";O&&gd(a,w)}else typeof w=="number"&&gd(a,""+w);else y===lc||y===ru||y===s2||(ct.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&uh(y,w),y==="onScroll"&&wn("scroll",a)):w!=null&&Ya(a,y,w,m))}}function Ia(r,a,s,f){for(var m=0;m<a.length;m+=2){var y=a[m],w=a[m+1];y===cc?oe(r,w):y===Sf?hm(r,w):y===uc?gd(r,w):Ya(r,y,w,f)}}function fC(r,a,s,f){var m,y=f2(s),w,R=f;if(R===ws&&(R=vd(r)),R===ws){if(m=ll(r,a),!m&&r!==r.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var O=y.createElement("div");O.innerHTML="<script><\/script>";var U=O.firstChild;w=O.removeChild(U)}else if(typeof a.is=="string")w=y.createElement(r,{is:a.is});else if(w=y.createElement(r),r==="select"){var H=w;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else w=y.createElementNS(R,r);return R===ws&&!m&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ye.call(Z0,r)&&(Z0[r]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),w}function dC(r,a){return f2(a).createTextNode(r)}function pC(r,a,s,f){var m=ll(a,s);lh(a,s);var y;switch(a){case"dialog":wn("cancel",r),wn("close",r),y=s;break;case"iframe":case"object":case"embed":wn("load",r),y=s;break;case"video":case"audio":for(var w=0;w<bf.length;w++)wn(bf[w],r);y=s;break;case"source":wn("error",r),y=s;break;case"img":case"image":case"link":wn("error",r),wn("load",r),y=s;break;case"details":wn("toggle",r),y=s;break;case"input":L(r,s),y=S(r,s),wn("invalid",r);break;case"option":yt(r,s),y=s;break;case"select":Ns(r,s),y=La(r,s),wn("invalid",r);break;case"textarea":jv(r,s),y=$v(r,s),wn("invalid",r);break;default:y=s}switch(Jn(a,y),di(a,r,f,y,m),a){case"input":Gi(r),ne(r,s,!1);break;case"textarea":Gi(r),$u(r);break;case"option":Vt(r,s);break;case"select":pd(r,s);break;default:typeof y.onClick=="function"&&fh(r);break}}function d2(r,a,s,f,m){lh(a,f);var y=null,w,R;switch(a){case"input":w=S(r,s),R=S(r,f),y=[];break;case"select":w=La(r,s),R=La(r,f),y=[];break;case"textarea":w=$v(r,s),R=$v(r,f),y=[];break;default:w=s,R=f,typeof w.onClick!="function"&&typeof R.onClick=="function"&&fh(r);break}Jn(a,R);var O,U,H=null;for(O in w)if(!(R.hasOwnProperty(O)||!w.hasOwnProperty(O)||w[O]==null))if(O===cc){var te=w[O];for(U in te)te.hasOwnProperty(U)&&(H||(H={}),H[U]="")}else O===Sf||O===uc||O===lc||O===ru||O===s2||(ct.hasOwnProperty(O)?y||(y=[]):(y=y||[]).push(O,null));for(O in R){var ee=R[O],he=w?.[O];if(!(!R.hasOwnProperty(O)||ee===he||ee==null&&he==null))if(O===cc)if(ee&&Object.freeze(ee),he){for(U in he)he.hasOwnProperty(U)&&(!ee||!ee.hasOwnProperty(U))&&(H||(H={}),H[U]="");for(U in ee)ee.hasOwnProperty(U)&&he[U]!==ee[U]&&(H||(H={}),H[U]=ee[U])}else H||(y||(y=[]),y.push(O,H)),H=ee;else if(O===Sf){var ve=ee?ee[sh]:void 0,Ee=he?he[sh]:void 0;ve!=null&&Ee!==ve&&(y=y||[]).push(O,ve)}else O===uc?(typeof ee=="string"||typeof ee=="number")&&(y=y||[]).push(O,""+ee):O===lc||O===ru||(ct.hasOwnProperty(O)?(ee!=null&&(typeof ee!="function"&&uh(O,ee),O==="onScroll"&&wn("scroll",r)),!y&&he!==ee&&(y=[])):(y=y||[]).push(O,ee))}return H&&(ht(H,R[cc]),(y=y||[]).push(cc,H)),y}function mC(r,a,s,f,m){s==="input"&&m.type==="radio"&&m.name!=null&&V(r,m);var y=ll(s,f),w=ll(s,m);switch(Ia(r,a,y,w),s){case"input":G(r,m);break;case"textarea":md(r,m);break;case"select":Uv(r,m);break}}function hC(r){{var a=r.toLowerCase();return vm.hasOwnProperty(a)&&vm[a]||null}}function vC(r,a,s,f,m,y,w){var R,O;switch(R=ll(a,s),lh(a,s),a){case"dialog":wn("cancel",r),wn("close",r);break;case"iframe":case"object":case"embed":wn("load",r);break;case"video":case"audio":for(var U=0;U<bf.length;U++)wn(bf[U],r);break;case"source":wn("error",r);break;case"img":case"image":case"link":wn("error",r),wn("load",r);break;case"details":wn("toggle",r);break;case"input":L(r,s),wn("invalid",r);break;case"option":yt(r,s);break;case"select":Ns(r,s),wn("invalid",r);break;case"textarea":jv(r,s),wn("invalid",r);break}Jn(a,s);{O=new Set;for(var H=r.attributes,te=0;te<H.length;te++){var ee=H[te].name.toLowerCase();switch(ee){case"value":break;case"checked":break;case"selected":break;default:O.add(H[te].name)}}}var he=null;for(var ve in s)if(!!s.hasOwnProperty(ve)){var Ee=s[ve];if(ve===uc)typeof Ee=="string"?r.textContent!==Ee&&(s[ru]!==!0&&xf(r.textContent,Ee,y,w),he=[uc,Ee]):typeof Ee=="number"&&r.textContent!==""+Ee&&(s[ru]!==!0&&xf(r.textContent,Ee,y,w),he=[uc,""+Ee]);else if(ct.hasOwnProperty(ve))Ee!=null&&(typeof Ee!="function"&&uh(ve,Ee),ve==="onScroll"&&wn("scroll",r));else if(w&&!0&&typeof R=="boolean"){var pt=void 0,At=R&&Pe?null:xi(ve);if(s[ru]!==!0){if(!(ve===lc||ve===ru||ve==="value"||ve==="checked"||ve==="selected")){if(ve===Sf){var Ct=r.innerHTML,Pn=Ee?Ee[sh]:void 0;if(Pn!=null){var _n=c2(r,Pn);_n!==Ct&&lp(ve,Ct,_n)}}else if(ve===cc){if(O.delete(ve),u2){var fe=$c(Ee);pt=r.getAttribute("style"),fe!==pt&&lp(ve,pt,fe)}}else if(R&&!Pe)O.delete(ve.toLowerCase()),pt=$i(r,ve,Ee),Ee!==pt&&lp(ve,pt,Ee);else if(!In(ve,At,R)&&!On(ve,Ee,At,R)){var Te=!1;if(At!==null)O.delete(At.attributeName),pt=vr(r,ve,Ee,At);else{var de=f;if(de===ws&&(de=vd(a)),de===ws)O.delete(ve.toLowerCase());else{var We=hC(ve);We!==null&&We!==ve&&(Te=!0,O.delete(We)),O.delete(ve)}pt=$i(r,ve,Ee)}var mt=Pe;!mt&&Ee!==pt&&!Te&&lp(ve,pt,Ee)}}}}}switch(w&&O.size>0&&s[ru]!==!0&&l2(O),a){case"input":Gi(r),ne(r,s,!0);break;case"textarea":Gi(r),$u(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&fh(r);break}return he}function p2(r,a,s){var f=r.nodeValue!==a;return f}function X0(r,a){{if(Pa)return;Pa=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function Q0(r,a){{if(Pa)return;Pa=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,r.nodeName.toLowerCase())}}function J0(r,a,s){{if(Pa)return;Pa=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",a,r.nodeName.toLowerCase())}}function dh(r,a){{if(a===""||Pa)return;Pa=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,r.nodeName.toLowerCase())}}function m2(r,a,s){switch(a){case"input":ze(r,s);return;case"textarea":p3(r,s);return;case"select":d3(r,s);return}}var up=function(){},cp=function(){};{var gC=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],h2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Cf=h2.concat(["button"]),bC=["dd","dt","li","option","optgroup","p","rp","rt"],v2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};cp=function(r,a){var s=en({},r||v2),f={tag:a};return h2.indexOf(a)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),Cf.indexOf(a)!==-1&&(s.pTagInButtonScope=null),gC.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=f,a==="form"&&(s.formTag=f),a==="a"&&(s.aTagInScope=f),a==="button"&&(s.buttonTagInScope=f),a==="nobr"&&(s.nobrTagInScope=f),a==="p"&&(s.pTagInButtonScope=f),a==="li"&&(s.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(s.dlItemTagAutoclosing=f),s};var yC=function(r,a){switch(a){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return bC.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},SC=function(r,a){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},g2={};up=function(r,a,s){s=s||v2;var f=s.current,m=f&&f.tag;a!=null&&(r!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var y=yC(r,m)?null:f,w=y?null:SC(r,s),R=y||w;if(!!R){var O=R.tag,U=!!y+"|"+r+"|"+O;if(!g2[U]){g2[U]=!0;var H=r,te="";if(r==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+r+">",y){var ee="";O==="table"&&r==="tr"&&(ee+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,O,te,ee)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,O)}}}}var fp="suppressHydrationWarning",dp="$",ph="/$",pp="$?",mp="$!",xC="style",e1=null,t1=null;function CC(r){var a,s,f=r.nodeType;switch(f){case Xo:case ju:{a=f===Xo?"#document":"#fragment";var m=r.documentElement;s=m?m.namespaceURI:mm(null,"");break}default:{var y=f===Hn?r.parentNode:r,w=y.namespaceURI||null;a=y.tagName,s=mm(w,a);break}}{var R=a.toLowerCase(),O=cp(null,R);return{namespace:s,ancestorInfo:O}}}function NC(r,a,s){{var f=r,m=mm(f.namespace,a),y=cp(f.ancestorInfo,a);return{namespace:m,ancestorInfo:y}}}function UE(r){return r}function wC(r){e1=K3(),t1=ts();var a=null;return Ey(!1),a}function _C(r){Qx(t1),Ey(e1),e1=null,t1=null}function EC(r,a,s,f,m){var y;{var w=f;if(up(r,null,w.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var R=""+a.children,O=cp(w.ancestorInfo,r);up(null,R,O)}y=w.namespace}var U=fC(r,a,s,y);return Q(m,U),mn(U,a),U}function TC(r,a){r.appendChild(a)}function RC(r,a,s,f,m){switch(pC(r,a,s,f),a){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function AC(r,a,s,f,m,y){{var w=y;if(typeof f.children!=typeof s.children&&(typeof f.children=="string"||typeof f.children=="number")){var R=""+f.children,O=cp(w.ancestorInfo,a);up(null,R,O)}}return d2(r,a,s,f)}function n1(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function kC(r,a,s,f){{var m=s;up(null,r,m.ancestorInfo)}var y=dC(r,a);return Q(f,y),y}function LC(){var r=window.event;return r===void 0?Nr:Ay(r.type)}var r1=typeof setTimeout=="function"?setTimeout:void 0,OC=typeof clearTimeout=="function"?clearTimeout:void 0,i1=-1,b2=typeof Promise=="function"?Promise:void 0,MC=typeof queueMicrotask=="function"?queueMicrotask:typeof b2<"u"?function(r){return b2.resolve(null).then(r).catch(DC)}:r1;function DC(r){setTimeout(function(){throw r})}function PC(r,a,s,f){switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();return;case"img":{s.src&&(r.src=s.src);return}}}function a1(r,a,s,f,m,y){mC(r,a,s,f,m),mn(r,m)}function o1(r){gd(r,"")}function y2(r,a,s){r.nodeValue=s}function IC(r,a){r.appendChild(a)}function FC(r,a){var s;r.nodeType===Hn?(s=r.parentNode,s.insertBefore(a,r)):(s=r,s.appendChild(a));var f=r._reactRootContainer;f==null&&s.onclick===null&&fh(s)}function zC(r,a,s){r.insertBefore(a,s)}function s1(r,a,s){r.nodeType===Hn?r.parentNode.insertBefore(a,s):r.insertBefore(a,s)}function BC(r,a){r.removeChild(a)}function UC(r,a){r.nodeType===Hn?r.parentNode.removeChild(a):r.removeChild(a)}function l1(r,a){var s=a,f=0;do{var m=s.nextSibling;if(r.removeChild(s),m&&m.nodeType===Hn){var y=m.data;if(y===ph)if(f===0){r.removeChild(m),qd(a);return}else f--;else(y===dp||y===pp||y===mp)&&f++}s=m}while(s);qd(a)}function Fa(r,a){r.nodeType===Hn?l1(r.parentNode,a):r.nodeType===Oa&&l1(r,a),qd(r)}function u1(r){r=r;var a=r.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function $C(r){r.nodeValue=""}function jC(r,a){r=r;var s=a[xC],f=s!=null&&s.hasOwnProperty("display")?s.display:null;r.style.display=Vv("display",f)}function VC(r,a){r.nodeValue=a}function HC(r){r.nodeType===Oa?r.textContent="":r.nodeType===Xo&&r.documentElement&&r.removeChild(r.documentElement)}function c1(r,a,s){return r.nodeType!==Oa||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function WC(r,a){return a===""||r.nodeType!==_s?null:r}function f1(r){return r.nodeType!==Hn?null:r}function S2(r){return r.data===pp}function d1(r){return r.data===mp}function GC(r){var a=r.nextSibling&&r.nextSibling.dataset,s,f,m;return a&&(s=a.dgst,f=a.msg,m=a.stck),{message:f,digest:s,stack:m}}function YC(r,a){r._reactRetry=a}function hp(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===Oa||a===_s)break;if(a===Hn){var s=r.data;if(s===dp||s===mp||s===pp)break;if(s===ph)return null}}return r}function vp(r){return hp(r.nextSibling)}function qC(r){return hp(r.firstChild)}function ZC(r){return hp(r.firstChild)}function p1(r){return hp(r.nextSibling)}function m1(r,a,s,f,m,y,w){Q(y,r),mn(r,s);var R;{var O=m;R=O.namespace}var U=(y.mode&Nn)!==Dt;return vC(r,a,s,R,f,U,w)}function KC(r,a,s,f){return Q(s,r),s.mode&Nn,p2(r,a)}function XC(r,a){Q(a,r)}function QC(r){for(var a=r.nextSibling,s=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===ph){if(s===0)return vp(a);s--}else(f===dp||f===mp||f===pp)&&s++}a=a.nextSibling}return null}function x2(r){for(var a=r.previousSibling,s=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===dp||f===mp||f===pp){if(s===0)return a;s--}else f===ph&&s++}a=a.previousSibling}return null}function JC(r){qd(r)}function eN(r){qd(r)}function tN(r){return r!=="head"&&r!=="body"}function nN(r,a,s,f){var m=!0;xf(a.nodeValue,s,f,m)}function rN(r,a,s,f,m,y){if(a[fp]!==!0){var w=!0;xf(f.nodeValue,m,y,w)}}function iN(r,a){a.nodeType===Oa?X0(r,a):a.nodeType===Hn||Q0(r,a)}function aN(r,a){{var s=r.parentNode;s!==null&&(a.nodeType===Oa?X0(s,a):a.nodeType===Hn||Q0(s,a))}}function oN(r,a,s,f,m){(m||a[fp]!==!0)&&(f.nodeType===Oa?X0(s,f):f.nodeType===Hn||Q0(s,f))}function sN(r,a,s){J0(r,a)}function lN(r,a){dh(r,a)}function uN(r,a,s){{var f=r.parentNode;f!==null&&J0(f,a)}}function cN(r,a){{var s=r.parentNode;s!==null&&dh(s,a)}}function fN(r,a,s,f,m,y){(y||a[fp]!==!0)&&J0(s,f)}function dN(r,a,s,f,m){(m||a[fp]!==!0)&&dh(s,f)}function pN(r){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function mN(r){sp(r)}var Nf=Math.random().toString(36).slice(2),l="__reactFiber$"+Nf,d="__reactProps$"+Nf,g="__reactContainer$"+Nf,E="__reactEvents$"+Nf,D="__reactListeners$"+Nf,j="__reactHandles$"+Nf;function q(r){delete r[l],delete r[d],delete r[E],delete r[D],delete r[j]}function Q(r,a){a[l]=r}function se(r,a){a[g]=r}function Me(r){r[g]=null}function ke(r){return!!r[g]}function Ie(r){var a=r[l];if(a)return a;for(var s=r.parentNode;s;){if(a=s[g]||s[l],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var m=x2(r);m!==null;){var y=m[l];if(y)return y;m=x2(m)}return a}r=s,s=r.parentNode}return null}function Qe(r){var a=r[l]||r[g];return a&&(a.tag===_||a.tag===T||a.tag===$||a.tag===x)?a:null}function vt(r){if(r.tag===_||r.tag===T)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function It(r){return r[d]||null}function mn(r,a){r[d]=a}function $t(r){var a=r[E];return a===void 0&&(a=r[E]=new Set),a}var yn={},kn=n.ReactDebugCurrentFrame;function Zi(r){if(r){var a=r._owner,s=Ei(r.type,r._source,a?a.type:null);kn.setExtraStackFrame(s)}else kn.setExtraStackFrame(null)}function br(r,a,s,f,m){{var y=Function.call.bind(ye);for(var w in r)if(y(r,w)){var R=void 0;try{if(typeof r[w]!="function"){var O=Error((f||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}R=r[w](a,w,f,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){R=U}R&&!(R instanceof Error)&&(Zi(m),c("%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).",f||"React class",s,w,typeof R),Zi(null)),R instanceof Error&&!(R.message in yn)&&(yn[R.message]=!0,Zi(m),c("Failed %s type: %s",s,R.message),Zi(null))}}}var la=[],_r;_r=[];var ni=-1;function Ki(r){return{current:r}}function ki(r,a){if(ni<0){c("Unexpected pop.");return}a!==_r[ni]&&c("Unexpected Fiber popped."),r.current=la[ni],la[ni]=null,_r[ni]=null,ni--}function za(r,a,s){ni++,la[ni]=r.current,_r[ni]=s,r.current=a}var hN;hN={};var ns={};Object.freeze(ns);var fc=Ki(ns),iu=Ki(!1),vN=ns;function mh(r,a,s){return s&&au(a)?vN:fc.current}function $E(r,a,s){{var f=r.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=s}}function hh(r,a){{var s=r.type,f=s.contextTypes;if(!f)return ns;var m=r.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===a)return m.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in f)y[w]=a[w];{var R=jt(r)||"Unknown";br(f,y,"context",R)}return m&&$E(r,a,y),y}}function C2(){return iu.current}function au(r){{var a=r.childContextTypes;return a!=null}}function N2(r){ki(iu,r),ki(fc,r)}function gN(r){ki(iu,r),ki(fc,r)}function jE(r,a,s){{if(fc.current!==ns)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");za(fc,a,r),za(iu,s,r)}}function VE(r,a,s){{var f=r.stateNode,m=a.childContextTypes;if(typeof f.getChildContext!="function"){{var y=jt(r)||"Unknown";hN[y]||(hN[y]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return s}var w=f.getChildContext();for(var R in w)if(!(R in m))throw new Error((jt(r)||"Unknown")+'.getChildContext(): key "'+R+'" is not defined in childContextTypes.');{var O=jt(r)||"Unknown";br(m,w,"child context",O)}return en({},s,w)}}function w2(r){{var a=r.stateNode,s=a&&a.__reactInternalMemoizedMergedChildContext||ns;return vN=fc.current,za(fc,s,r),za(iu,iu.current,r),!0}}function HE(r,a,s){{var f=r.stateNode;if(!f)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var m=VE(r,a,vN);f.__reactInternalMemoizedMergedChildContext=m,ki(iu,r),ki(fc,r),za(fc,m,r),za(iu,s,r)}else ki(iu,r),za(iu,s,r)}}function y$(r){{if(!Ad(r)||r.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=r;do{switch(a.tag){case x:return a.stateNode.context;case v:{var s=a.type;if(au(s))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var wf=0,_2=1,dc=null,bN=!1,yN=!1;function WE(r){dc===null?dc=[r]:dc.push(r)}function S$(r){bN=!0,WE(r)}function GE(){bN&&_f()}function _f(){if(!yN&&dc!==null){yN=!0;var r=0,a=So();try{var s=!0,f=dc;for(ci(oa);r<f.length;r++){var m=f[r];do m=m(s);while(m!==null)}dc=null,bN=!1}catch(y){throw dc!==null&&(dc=dc.slice(r+1)),Qa(kd,_f),y}finally{ci(a),yN=!1}}return null}var vh=[],gh=0,E2=null,T2=0,Bs=[],Us=0,gp=null,pc=1,mc="";function x$(r){return yp(),(r.flags&qb)!==zt}function C$(r){return yp(),T2}function N$(){var r=mc,a=pc,s=a&~w$(a);return s.toString(32)+r}function bp(r,a){yp(),vh[gh++]=T2,vh[gh++]=E2,E2=r,T2=a}function YE(r,a,s){yp(),Bs[Us++]=pc,Bs[Us++]=mc,Bs[Us++]=gp,gp=r;var f=pc,m=mc,y=R2(f)-1,w=f&~(1<<y),R=s+1,O=R2(a)+y;if(O>30){var U=y-y%5,H=(1<<U)-1,te=(w&H).toString(32),ee=w>>U,he=y-U,ve=R2(a)+he,Ee=R<<he,pt=Ee|ee,At=te+m;pc=1<<ve|pt,mc=At}else{var Ct=R<<y,Pn=Ct|w,_n=m;pc=1<<O|Pn,mc=_n}}function SN(r){yp();var a=r.return;if(a!==null){var s=1,f=0;bp(r,s),YE(r,s,f)}}function R2(r){return 32-fy(r)}function w$(r){return 1<<R2(r)-1}function xN(r){for(;r===E2;)E2=vh[--gh],vh[gh]=null,T2=vh[--gh],vh[gh]=null;for(;r===gp;)gp=Bs[--Us],Bs[Us]=null,mc=Bs[--Us],Bs[Us]=null,pc=Bs[--Us],Bs[Us]=null}function _$(){return yp(),gp!==null?{id:pc,overflow:mc}:null}function E$(r,a){yp(),Bs[Us++]=pc,Bs[Us++]=mc,Bs[Us++]=gp,pc=a.id,mc=a.overflow,gp=r}function yp(){ca()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ua=null,$s=null,Nl=!1,Sp=!1,Ef=null;function T$(){Nl&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function qE(){Sp=!0}function R$(){return Sp}function A$(r){var a=r.stateNode.containerInfo;return $s=ZC(a),ua=r,Nl=!0,Ef=null,Sp=!1,!0}function k$(r,a,s){return $s=p1(a),ua=r,Nl=!0,Ef=null,Sp=!1,s!==null&&E$(r,s),!0}function ZE(r,a){switch(r.tag){case x:{iN(r.stateNode.containerInfo,a);break}case _:{var s=(r.mode&Nn)!==Dt;oN(r.type,r.memoizedProps,r.stateNode,a,s);break}case $:{var f=r.memoizedState;f.dehydrated!==null&&aN(f.dehydrated,a);break}}}function KE(r,a){ZE(r,a);var s=MH();s.stateNode=a,s.return=r;var f=r.deletions;f===null?(r.deletions=[s],r.flags|=Wu):f.push(s)}function CN(r,a){{if(Sp)return;switch(r.tag){case x:{var s=r.stateNode.containerInfo;switch(a.tag){case _:var f=a.type;a.pendingProps,sN(s,f);break;case T:var m=a.pendingProps;lN(s,m);break}break}case _:{var y=r.type,w=r.memoizedProps,R=r.stateNode;switch(a.tag){case _:{var O=a.type,U=a.pendingProps,H=(r.mode&Nn)!==Dt;fN(y,w,R,O,U,H);break}case T:{var te=a.pendingProps,ee=(r.mode&Nn)!==Dt;dN(y,w,R,te,ee);break}}break}case $:{var he=r.memoizedState,ve=he.dehydrated;if(ve!==null)switch(a.tag){case _:var Ee=a.type;a.pendingProps,uN(ve,Ee);break;case T:var pt=a.pendingProps;cN(ve,pt);break}break}default:return}}}function XE(r,a){a.flags=a.flags&~ml|Wr,CN(r,a)}function QE(r,a){switch(r.tag){case _:{var s=r.type;r.pendingProps;var f=c1(a,s);return f!==null?(r.stateNode=f,ua=r,$s=qC(f),!0):!1}case T:{var m=r.pendingProps,y=WC(a,m);return y!==null?(r.stateNode=y,ua=r,$s=null,!0):!1}case $:{var w=f1(a);if(w!==null){var R={dehydrated:w,treeContext:_$(),retryLane:to};r.memoizedState=R;var O=DH(w);return O.return=r,r.child=O,ua=r,$s=null,!0}return!1}default:return!1}}function NN(r){return(r.mode&Nn)!==Dt&&(r.flags&Un)===zt}function wN(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function _N(r){if(!!Nl){var a=$s;if(!a){NN(r)&&(CN(ua,r),wN()),XE(ua,r),Nl=!1,ua=r;return}var s=a;if(!QE(r,a)){NN(r)&&(CN(ua,r),wN()),a=vp(s);var f=ua;if(!a||!QE(r,a)){XE(ua,r),Nl=!1,ua=r;return}KE(f,s)}}}function L$(r,a,s){var f=r.stateNode,m=!Sp,y=m1(f,r.type,r.memoizedProps,a,s,r,m);return r.updateQueue=y,y!==null}function O$(r){var a=r.stateNode,s=r.memoizedProps,f=KC(a,s,r);if(f){var m=ua;if(m!==null)switch(m.tag){case x:{var y=m.stateNode.containerInfo,w=(m.mode&Nn)!==Dt;nN(y,a,s,w);break}case _:{var R=m.type,O=m.memoizedProps,U=m.stateNode,H=(m.mode&Nn)!==Dt;rN(R,O,U,a,s,H);break}}}return f}function M$(r){var a=r.memoizedState,s=a!==null?a.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");XC(s,r)}function D$(r){var a=r.memoizedState,s=a!==null?a.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return QC(s)}function JE(r){for(var a=r.return;a!==null&&a.tag!==_&&a.tag!==x&&a.tag!==$;)a=a.return;ua=a}function A2(r){if(r!==ua)return!1;if(!Nl)return JE(r),Nl=!0,!1;if(r.tag!==x&&(r.tag!==_||tN(r.type)&&!n1(r.type,r.memoizedProps))){var a=$s;if(a)if(NN(r))eT(r),wN();else for(;a;)KE(r,a),a=vp(a)}return JE(r),r.tag===$?$s=D$(r):$s=ua?vp(r.stateNode):null,!0}function P$(){return Nl&&$s!==null}function eT(r){for(var a=$s;a;)ZE(r,a),a=vp(a)}function bh(){ua=null,$s=null,Nl=!1,Sp=!1}function tT(){Ef!==null&&(ZR(Ef),Ef=null)}function ca(){return Nl}function EN(r){Ef===null?Ef=[r]:Ef.push(r)}var I$=n.ReactCurrentBatchConfig,F$=null;function z$(){return I$.transition}var wl={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var B$=function(r){for(var a=null,s=r;s!==null;)s.mode&Br&&(a=s),s=s.return;return a},xp=function(r){var a=[];return r.forEach(function(s){a.push(s)}),a.sort().join(", ")},h1=[],v1=[],g1=[],b1=[],y1=[],S1=[],Cp=new Set;wl.recordUnsafeLifecycleWarnings=function(r,a){Cp.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&h1.push(r),r.mode&Br&&typeof a.UNSAFE_componentWillMount=="function"&&v1.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&g1.push(r),r.mode&Br&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&b1.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&y1.push(r),r.mode&Br&&typeof a.UNSAFE_componentWillUpdate=="function"&&S1.push(r))},wl.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;h1.length>0&&(h1.forEach(function(ee){r.add(jt(ee)||"Component"),Cp.add(ee.type)}),h1=[]);var a=new Set;v1.length>0&&(v1.forEach(function(ee){a.add(jt(ee)||"Component"),Cp.add(ee.type)}),v1=[]);var s=new Set;g1.length>0&&(g1.forEach(function(ee){s.add(jt(ee)||"Component"),Cp.add(ee.type)}),g1=[]);var f=new Set;b1.length>0&&(b1.forEach(function(ee){f.add(jt(ee)||"Component"),Cp.add(ee.type)}),b1=[]);var m=new Set;y1.length>0&&(y1.forEach(function(ee){m.add(jt(ee)||"Component"),Cp.add(ee.type)}),y1=[]);var y=new Set;if(S1.length>0&&(S1.forEach(function(ee){y.add(jt(ee)||"Component"),Cp.add(ee.type)}),S1=[]),a.size>0){var w=xp(a);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,w)}if(f.size>0){var R=xp(f);c(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,R)}if(y.size>0){var O=xp(y);c(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,O)}if(r.size>0){var U=xp(r);u(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,U)}if(s.size>0){var H=xp(s);u(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,H)}if(m.size>0){var te=xp(m);u(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,te)}};var k2=new Map,nT=new Set;wl.recordLegacyContextWarning=function(r,a){var s=B$(r);if(s===null){c("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!nT.has(r.type)){var f=k2.get(s);(r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],k2.set(s,f)),f.push(r))}},wl.flushLegacyContextWarning=function(){k2.forEach(function(r,a){if(r.length!==0){var s=r[0],f=new Set;r.forEach(function(y){f.add(jt(y)||"Component"),nT.add(y.type)});var m=xp(f);try{ar(s),c(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,m)}finally{Rr()}}})},wl.discardPendingWarnings=function(){h1=[],v1=[],g1=[],b1=[],y1=[],S1=[],k2=new Map}}function _l(r,a){if(r&&r.defaultProps){var s=en({},a),f=r.defaultProps;for(var m in f)s[m]===void 0&&(s[m]=f[m]);return s}return a}var TN=Ki(null),RN;RN={};var L2=null,yh=null,AN=null,O2=!1;function M2(){L2=null,yh=null,AN=null,O2=!1}function rT(){O2=!0}function iT(){O2=!1}function aT(r,a,s){za(TN,a._currentValue,r),a._currentValue=s,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==RN&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=RN}function kN(r,a){var s=TN.current;ki(TN,a),r._currentValue=s}function LN(r,a,s){for(var f=r;f!==null;){var m=f.alternate;if(tc(f.childLanes,a)?m!==null&&!tc(m.childLanes,a)&&(m.childLanes=pn(m.childLanes,a)):(f.childLanes=pn(f.childLanes,a),m!==null&&(m.childLanes=pn(m.childLanes,a))),f===s)break;f=f.return}f!==s&&c("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function U$(r,a,s){$$(r,a,s)}function $$(r,a,s){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var m=void 0,y=f.dependencies;if(y!==null){m=f.child;for(var w=y.firstContext;w!==null;){if(w.context===a){if(f.tag===v){var R=$d(s),O=hc(tr,R);O.tag=P2;var U=f.updateQueue;if(U!==null){var H=U.shared,te=H.pending;te===null?O.next=O:(O.next=te.next,te.next=O),H.pending=O}}f.lanes=pn(f.lanes,s);var ee=f.alternate;ee!==null&&(ee.lanes=pn(ee.lanes,s)),LN(f.return,s,r),y.lanes=pn(y.lanes,s);break}w=w.next}}else if(f.tag===P)m=f.type===r.type?null:f.child;else if(f.tag===le){var he=f.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=pn(he.lanes,s);var ve=he.alternate;ve!==null&&(ve.lanes=pn(ve.lanes,s)),LN(he,s,r),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===r){m=null;break}var Ee=m.sibling;if(Ee!==null){Ee.return=m.return,m=Ee;break}m=m.return}f=m}}function Sh(r,a){L2=r,yh=null,AN=null;var s=r.dependencies;if(s!==null){var f=s.firstContext;f!==null&&(Ma(s.lanes,a)&&D1(),s.firstContext=null)}}function pi(r){O2&&c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=r._currentValue;if(AN!==r){var s={context:r,memoizedValue:a,next:null};if(yh===null){if(L2===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");yh=s,L2.dependencies={lanes:Fe,firstContext:s}}else yh=yh.next=s}return a}var Np=null;function ON(r){Np===null?Np=[r]:Np.push(r)}function j$(){if(Np!==null){for(var r=0;r<Np.length;r++){var a=Np[r],s=a.interleaved;if(s!==null){a.interleaved=null;var f=s.next,m=a.pending;if(m!==null){var y=m.next;m.next=f,s.next=y}a.pending=s}}Np=null}}function oT(r,a,s,f){var m=a.interleaved;return m===null?(s.next=s,ON(a)):(s.next=m.next,m.next=s),a.interleaved=s,D2(r,f)}function V$(r,a,s,f){var m=a.interleaved;m===null?(s.next=s,ON(a)):(s.next=m.next,m.next=s),a.interleaved=s}function H$(r,a,s,f){var m=a.interleaved;return m===null?(s.next=s,ON(a)):(s.next=m.next,m.next=s),a.interleaved=s,D2(r,f)}function No(r,a){return D2(r,a)}var W$=D2;function D2(r,a){r.lanes=pn(r.lanes,a);var s=r.alternate;s!==null&&(s.lanes=pn(s.lanes,a)),s===null&&(r.flags&(Wr|ml))!==zt&&sA(r);for(var f=r,m=r.return;m!==null;)m.childLanes=pn(m.childLanes,a),s=m.alternate,s!==null?s.childLanes=pn(s.childLanes,a):(m.flags&(Wr|ml))!==zt&&sA(r),f=m,m=m.return;if(f.tag===x){var y=f.stateNode;return y}else return null}var sT=0,lT=1,P2=2,MN=3,I2=!1,DN,F2;DN=!1,F2=null;function PN(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Fe},effects:null};r.updateQueue=a}function uT(r,a){var s=a.updateQueue,f=r.updateQueue;if(s===f){var m={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=m}}function hc(r,a){var s={eventTime:r,lane:a,tag:sT,payload:null,callback:null,next:null};return s}function Tf(r,a,s){var f=r.updateQueue;if(f===null)return null;var m=f.shared;if(F2===m&&!DN&&(c("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),DN=!0),WV()){var y=m.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),m.pending=a,W$(r,s)}else return H$(r,m,a,s)}function z2(r,a,s){var f=a.updateQueue;if(f!==null){var m=f.shared;if(C0(s)){var y=m.lanes;y=vy(y,r.pendingLanes);var w=pn(y,s);m.lanes=w,Pt(r,w)}}}function IN(r,a){var s=r.updateQueue,f=r.alternate;if(f!==null){var m=f.updateQueue;if(s===m){var y=null,w=null,R=s.firstBaseUpdate;if(R!==null){var O=R;do{var U={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};w===null?y=w=U:(w.next=U,w=U),O=O.next}while(O!==null);w===null?y=w=a:(w.next=a,w=a)}else y=w=a;s={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:m.shared,effects:m.effects},r.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=a:H.next=a,s.lastBaseUpdate=a}function G$(r,a,s,f,m,y){switch(s.tag){case lT:{var w=s.payload;if(typeof w=="function"){rT();var R=w.call(y,f,m);{if(r.mode&Br){li(!0);try{w.call(y,f,m)}finally{li(!1)}}iT()}return R}return w}case MN:r.flags=r.flags&~ra|Un;case sT:{var O=s.payload,U;if(typeof O=="function"){rT(),U=O.call(y,f,m);{if(r.mode&Br){li(!0);try{O.call(y,f,m)}finally{li(!1)}}iT()}}else U=O;return U==null?f:en({},f,U)}case P2:return I2=!0,f}return f}function B2(r,a,s,f){var m=r.updateQueue;I2=!1,F2=m.shared;var y=m.firstBaseUpdate,w=m.lastBaseUpdate,R=m.shared.pending;if(R!==null){m.shared.pending=null;var O=R,U=O.next;O.next=null,w===null?y=U:w.next=U,w=O;var H=r.alternate;if(H!==null){var te=H.updateQueue,ee=te.lastBaseUpdate;ee!==w&&(ee===null?te.firstBaseUpdate=U:ee.next=U,te.lastBaseUpdate=O)}}if(y!==null){var he=m.baseState,ve=Fe,Ee=null,pt=null,At=null,Ct=y;do{var Pn=Ct.lane,_n=Ct.eventTime;if(tc(f,Pn)){if(At!==null){var Te={eventTime:_n,lane:ei,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};At=At.next=Te}he=G$(r,m,Ct,he,a,s);var de=Ct.callback;if(de!==null&&Ct.lane!==ei){r.flags|=Xv;var We=m.effects;We===null?m.effects=[Ct]:We.push(Ct)}}else{var fe={eventTime:_n,lane:Pn,tag:Ct.tag,payload:Ct.payload,callback:Ct.callback,next:null};At===null?(pt=At=fe,Ee=he):At=At.next=fe,ve=pn(ve,Pn)}if(Ct=Ct.next,Ct===null){if(R=m.shared.pending,R===null)break;var mt=R,ut=mt.next;mt.next=null,Ct=ut,m.lastBaseUpdate=mt,m.shared.pending=null}}while(!0);At===null&&(Ee=he),m.baseState=Ee,m.firstBaseUpdate=pt,m.lastBaseUpdate=At;var Ht=m.shared.interleaved;if(Ht!==null){var tn=Ht;do ve=pn(ve,tn.lane),tn=tn.next;while(tn!==Ht)}else y===null&&(m.shared.lanes=Fe);G1(ve),r.lanes=ve,r.memoizedState=he}F2=null}function Y$(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function cT(){I2=!1}function U2(){return I2}function fT(r,a,s){var f=a.effects;if(a.effects=null,f!==null)for(var m=0;m<f.length;m++){var y=f[m],w=y.callback;w!==null&&(y.callback=null,Y$(w,s))}}var FN={},dT=new e.Component().refs,zN,BN,UN,$N,jN,pT,$2,VN,HN,WN;{zN=new Set,BN=new Set,UN=new Set,$N=new Set,VN=new Set,jN=new Set,HN=new Set,WN=new Set;var mT=new Set;$2=function(r,a){if(!(r===null||typeof r=="function")){var s=a+"_"+r;mT.has(s)||(mT.add(s),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},pT=function(r,a){if(a===void 0){var s=cn(r)||"Component";jN.has(s)||(jN.add(s),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(FN,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(FN)}function GN(r,a,s,f){var m=r.memoizedState,y=s(f,m);{if(r.mode&Br){li(!0);try{y=s(f,m)}finally{li(!1)}}pT(a,y)}var w=y==null?m:en({},m,y);if(r.memoizedState=w,r.lanes===Fe){var R=r.updateQueue;R.baseState=w}}var YN={isMounted:Am,enqueueSetState:function(r,a,s){var f=dl(r),m=ao(),y=Pf(f),w=hc(m,y);w.payload=a,s!=null&&($2(s,"setState"),w.callback=s);var R=Tf(f,w,y);R!==null&&(zi(R,f,y,m),z2(R,f,y)),p0(f,y)},enqueueReplaceState:function(r,a,s){var f=dl(r),m=ao(),y=Pf(f),w=hc(m,y);w.tag=lT,w.payload=a,s!=null&&($2(s,"replaceState"),w.callback=s);var R=Tf(f,w,y);R!==null&&(zi(R,f,y,m),z2(R,f,y)),p0(f,y)},enqueueForceUpdate:function(r,a){var s=dl(r),f=ao(),m=Pf(s),y=hc(f,m);y.tag=P2,a!=null&&($2(a,"forceUpdate"),y.callback=a);var w=Tf(s,y,m);w!==null&&(zi(w,s,m,f),z2(w,s,m)),cy(s,m)}};function hT(r,a,s,f,m,y,w){var R=r.stateNode;if(typeof R.shouldComponentUpdate=="function"){var O=R.shouldComponentUpdate(f,y,w);{if(r.mode&Br){li(!0);try{O=R.shouldComponentUpdate(f,y,w)}finally{li(!1)}}O===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",cn(a)||"Component")}return O}return a.prototype&&a.prototype.isPureReactComponent?!gf(s,f)||!gf(m,y):!0}function q$(r,a,s){var f=r.stateNode;{var m=cn(a)||"Component",y=f.render;y||(a.prototype&&typeof a.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",m):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&c("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&c("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),f.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",m),f.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),f.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",m),a.contextType&&a.contextTypes&&!HN.has(a)&&(HN.add(a),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",m)),typeof f.componentShouldUpdate=="function"&&c("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",cn(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof f.componentDidReceiveProps=="function"&&c("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof f.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof f.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m);var w=f.props!==s;f.props!==void 0&&w&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m),f.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!UN.has(a)&&(UN.add(a),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",cn(a))),typeof f.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof f.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof a.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m);var R=f.state;R&&(typeof R!="object"||Ut(R))&&c("%s.state: must be set to an object or null",m),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m)}}function vT(r,a){a.updater=YN,r.stateNode=a,An(a,r),a._reactInternalInstance=FN}function gT(r,a,s){var f=!1,m=ns,y=ns,w=a.contextType;if("contextType"in a){var R=w===null||w!==void 0&&w.$$typeof===Cn&&w._context===void 0;if(!R&&!WN.has(a)){WN.add(a);var O="";w===void 0?O=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof w!="object"?O=" However, it is set to a "+typeof w+".":w.$$typeof===sn?O=" Did you accidentally pass the Context.Provider instead?":w._context!==void 0?O=" Did you accidentally pass the Context.Consumer instead?":O=" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",cn(a)||"Component",O)}}if(typeof w=="object"&&w!==null)y=pi(w);else{m=mh(r,a,!0);var U=a.contextTypes;f=U!=null,y=f?hh(r,m):ns}var H=new a(s,y);if(r.mode&Br){li(!0);try{H=new a(s,y)}finally{li(!1)}}var te=r.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;vT(r,H);{if(typeof a.getDerivedStateFromProps=="function"&&te===null){var ee=cn(a)||"Component";BN.has(ee)||(BN.add(ee),c("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",ee,H.state===null?"null":"undefined",ee))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,ve=null,Ee=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ve="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ve="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?Ee="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Ee="UNSAFE_componentWillUpdate"),he!==null||ve!==null||Ee!==null){var pt=cn(a)||"Component",At=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";$N.has(pt)||($N.add(pt),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,pt,At,he!==null?`
`+he:"",ve!==null?`
`+ve:"",Ee!==null?`
`+Ee:""))}}}return f&&$E(r,m,y),H}function Z$(r,a){var s=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",jt(r)||"Component"),YN.enqueueReplaceState(a,a.state,null))}function bT(r,a,s,f){var m=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,f),a.state!==m){{var y=jt(r)||"Component";zN.has(y)||(zN.add(y),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}YN.enqueueReplaceState(a,a.state,null)}}function qN(r,a,s,f){q$(r,a,s);var m=r.stateNode;m.props=s,m.state=r.memoizedState,m.refs=dT,PN(r);var y=a.contextType;if(typeof y=="object"&&y!==null)m.context=pi(y);else{var w=mh(r,a,!0);m.context=hh(r,w)}{if(m.state===s){var R=cn(a)||"Component";VN.has(R)||(VN.add(R),c("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",R))}r.mode&Br&&wl.recordLegacyContextWarning(r,m),wl.recordUnsafeLifecycleWarnings(r,m)}m.state=r.memoizedState;var O=a.getDerivedStateFromProps;if(typeof O=="function"&&(GN(r,a,O,s),m.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof m.getSnapshotBeforeUpdate!="function"&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(Z$(r,m),B2(r,s,m,f),m.state=r.memoizedState),typeof m.componentDidMount=="function"){var U=dn;U|=qu,(r.mode&yo)!==Dt&&(U|=Jr),r.flags|=U}}function K$(r,a,s,f){var m=r.stateNode,y=r.memoizedProps;m.props=y;var w=m.context,R=a.contextType,O=ns;if(typeof R=="object"&&R!==null)O=pi(R);else{var U=mh(r,a,!0);O=hh(r,U)}var H=a.getDerivedStateFromProps,te=typeof H=="function"||typeof m.getSnapshotBeforeUpdate=="function";!te&&(typeof m.UNSAFE_componentWillReceiveProps=="function"||typeof m.componentWillReceiveProps=="function")&&(y!==s||w!==O)&&bT(r,m,s,O),cT();var ee=r.memoizedState,he=m.state=ee;if(B2(r,s,m,f),he=r.memoizedState,y===s&&ee===he&&!C2()&&!U2()){if(typeof m.componentDidMount=="function"){var ve=dn;ve|=qu,(r.mode&yo)!==Dt&&(ve|=Jr),r.flags|=ve}return!1}typeof H=="function"&&(GN(r,a,H,s),he=r.memoizedState);var Ee=U2()||hT(r,a,y,s,ee,he,O);if(Ee){if(!te&&(typeof m.UNSAFE_componentWillMount=="function"||typeof m.componentWillMount=="function")&&(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"){var pt=dn;pt|=qu,(r.mode&yo)!==Dt&&(pt|=Jr),r.flags|=pt}}else{if(typeof m.componentDidMount=="function"){var At=dn;At|=qu,(r.mode&yo)!==Dt&&(At|=Jr),r.flags|=At}r.memoizedProps=s,r.memoizedState=he}return m.props=s,m.state=he,m.context=O,Ee}function X$(r,a,s,f,m){var y=a.stateNode;uT(r,a);var w=a.memoizedProps,R=a.type===a.elementType?w:_l(a.type,w);y.props=R;var O=a.pendingProps,U=y.context,H=s.contextType,te=ns;if(typeof H=="object"&&H!==null)te=pi(H);else{var ee=mh(a,s,!0);te=hh(a,ee)}var he=s.getDerivedStateFromProps,ve=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function";!ve&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(w!==O||U!==te)&&bT(a,y,f,te),cT();var Ee=a.memoizedState,pt=y.state=Ee;if(B2(a,f,y,m),pt=a.memoizedState,w===O&&Ee===pt&&!C2()&&!U2()&&!Ne)return typeof y.componentDidUpdate=="function"&&(w!==r.memoizedProps||Ee!==r.memoizedState)&&(a.flags|=dn),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==r.memoizedProps||Ee!==r.memoizedState)&&(a.flags|=Gu),!1;typeof he=="function"&&(GN(a,s,he,f),pt=a.memoizedState);var At=U2()||hT(a,s,R,f,Ee,pt,te)||Ne;return At?(!ve&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,pt,te),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,pt,te)),typeof y.componentDidUpdate=="function"&&(a.flags|=dn),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=Gu)):(typeof y.componentDidUpdate=="function"&&(w!==r.memoizedProps||Ee!==r.memoizedState)&&(a.flags|=dn),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==r.memoizedProps||Ee!==r.memoizedState)&&(a.flags|=Gu),a.memoizedProps=f,a.memoizedState=pt),y.props=f,y.state=pt,y.context=te,At}var ZN,KN,XN,QN,JN,yT=function(r,a){};ZN=!1,KN=!1,XN={},QN={},JN={},yT=function(r,a){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=!0;var s=jt(a)||"Component";QN[s]||(QN[s]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function x1(r,a,s){var f=s.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((r.mode&Br||Ze)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var m=jt(r)||"Component";XN[m]||(c('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f),XN[m]=!0)}if(s._owner){var y=s._owner,w;if(y){var R=y;if(R.tag!==v)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");w=R.stateNode}if(!w)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var O=w;Ft(f,"ref");var U=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===U)return a.ref;var H=function(te){var ee=O.refs;ee===dT&&(ee=O.refs={}),te===null?delete ee[U]:ee[U]=te};return H._stringRef=U,H}else{if(typeof f!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+f+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return f}function j2(r,a){var s=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function V2(r){{var a=jt(r)||"Component";if(JN[a])return;JN[a]=!0,c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function ST(r){var a=r._payload,s=r._init;return s(a)}function xT(r){function a(fe,Te){if(!!r){var de=fe.deletions;de===null?(fe.deletions=[Te],fe.flags|=Wu):de.push(Te)}}function s(fe,Te){if(!r)return null;for(var de=Te;de!==null;)a(fe,de),de=de.sibling;return null}function f(fe,Te){for(var de=new Map,We=Te;We!==null;)We.key!==null?de.set(We.key,We):de.set(We.index,We),We=We.sibling;return de}function m(fe,Te){var de=Lp(fe,Te);return de.index=0,de.sibling=null,de}function y(fe,Te,de){if(fe.index=de,!r)return fe.flags|=qb,Te;var We=fe.alternate;if(We!==null){var mt=We.index;return mt<Te?(fe.flags|=Wr,Te):mt}else return fe.flags|=Wr,Te}function w(fe){return r&&fe.alternate===null&&(fe.flags|=Wr),fe}function R(fe,Te,de,We){if(Te===null||Te.tag!==T){var mt=E9(de,fe.mode,We);return mt.return=fe,mt}else{var ut=m(Te,de);return ut.return=fe,ut}}function O(fe,Te,de,We){var mt=de.type;if(mt===Ue)return H(fe,Te,de.props.children,We,de.key);if(Te!==null&&(Te.elementType===mt||fA(Te,de)||typeof mt=="object"&&mt!==null&&mt.$$typeof===un&&ST(mt)===Te.type)){var ut=m(Te,de.props);return ut.ref=x1(fe,Te,de),ut.return=fe,ut._debugSource=de._source,ut._debugOwner=de._owner,ut}var Ht=_9(de,fe.mode,We);return Ht.ref=x1(fe,Te,de),Ht.return=fe,Ht}function U(fe,Te,de,We){if(Te===null||Te.tag!==N||Te.stateNode.containerInfo!==de.containerInfo||Te.stateNode.implementation!==de.implementation){var mt=T9(de,fe.mode,We);return mt.return=fe,mt}else{var ut=m(Te,de.children||[]);return ut.return=fe,ut}}function H(fe,Te,de,We,mt){if(Te===null||Te.tag!==A){var ut=Ff(de,fe.mode,We,mt);return ut.return=fe,ut}else{var Ht=m(Te,de);return Ht.return=fe,Ht}}function te(fe,Te,de){if(typeof Te=="string"&&Te!==""||typeof Te=="number"){var We=E9(""+Te,fe.mode,de);return We.return=fe,We}if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case ji:{var mt=_9(Te,fe.mode,de);return mt.ref=x1(fe,null,Te),mt.return=fe,mt}case X:{var ut=T9(Te,fe.mode,de);return ut.return=fe,ut}case un:{var Ht=Te._payload,tn=Te._init;return te(fe,tn(Ht),de)}}if(Ut(Te)||qa(Te)){var sr=Ff(Te,fe.mode,de,null);return sr.return=fe,sr}j2(fe,Te)}return typeof Te=="function"&&V2(fe),null}function ee(fe,Te,de,We){var mt=Te!==null?Te.key:null;if(typeof de=="string"&&de!==""||typeof de=="number")return mt!==null?null:R(fe,Te,""+de,We);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case ji:return de.key===mt?O(fe,Te,de,We):null;case X:return de.key===mt?U(fe,Te,de,We):null;case un:{var ut=de._payload,Ht=de._init;return ee(fe,Te,Ht(ut),We)}}if(Ut(de)||qa(de))return mt!==null?null:H(fe,Te,de,We,null);j2(fe,de)}return typeof de=="function"&&V2(fe),null}function he(fe,Te,de,We,mt){if(typeof We=="string"&&We!==""||typeof We=="number"){var ut=fe.get(de)||null;return R(Te,ut,""+We,mt)}if(typeof We=="object"&&We!==null){switch(We.$$typeof){case ji:{var Ht=fe.get(We.key===null?de:We.key)||null;return O(Te,Ht,We,mt)}case X:{var tn=fe.get(We.key===null?de:We.key)||null;return U(Te,tn,We,mt)}case un:var sr=We._payload,Gn=We._init;return he(fe,Te,de,Gn(sr),mt)}if(Ut(We)||qa(We)){var ri=fe.get(de)||null;return H(Te,ri,We,mt,null)}j2(Te,We)}return typeof We=="function"&&V2(Te),null}function ve(fe,Te,de){{if(typeof fe!="object"||fe===null)return Te;switch(fe.$$typeof){case ji:case X:yT(fe,de);var We=fe.key;if(typeof We!="string")break;if(Te===null){Te=new Set,Te.add(We);break}if(!Te.has(We)){Te.add(We);break}c("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",We);break;case un:var mt=fe._payload,ut=fe._init;ve(ut(mt),Te,de);break}}return Te}function Ee(fe,Te,de,We){for(var mt=null,ut=0;ut<de.length;ut++){var Ht=de[ut];mt=ve(Ht,mt,fe)}for(var tn=null,sr=null,Gn=Te,ri=0,Yn=0,Yr=null;Gn!==null&&Yn<de.length;Yn++){Gn.index>Yn?(Yr=Gn,Gn=null):Yr=Gn.sibling;var Ua=ee(fe,Gn,de[Yn],We);if(Ua===null){Gn===null&&(Gn=Yr);break}r&&Gn&&Ua.alternate===null&&a(fe,Gn),ri=y(Ua,ri,Yn),sr===null?tn=Ua:sr.sibling=Ua,sr=Ua,Gn=Yr}if(Yn===de.length){if(s(fe,Gn),ca()){var ga=Yn;bp(fe,ga)}return tn}if(Gn===null){for(;Yn<de.length;Yn++){var is=te(fe,de[Yn],We);is!==null&&(ri=y(is,ri,Yn),sr===null?tn=is:sr.sibling=is,sr=is)}if(ca()){var oo=Yn;bp(fe,oo)}return tn}for(var so=f(fe,Gn);Yn<de.length;Yn++){var $a=he(so,fe,Yn,de[Yn],We);$a!==null&&(r&&$a.alternate!==null&&so.delete($a.key===null?Yn:$a.key),ri=y($a,ri,Yn),sr===null?tn=$a:sr.sibling=$a,sr=$a)}if(r&&so.forEach(function(Fh){return a(fe,Fh)}),ca()){var xc=Yn;bp(fe,xc)}return tn}function pt(fe,Te,de,We){var mt=qa(de);if(typeof mt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&de[Symbol.toStringTag]==="Generator"&&(KN||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),KN=!0),de.entries===mt&&(ZN||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ZN=!0);var ut=mt.call(de);if(ut)for(var Ht=null,tn=ut.next();!tn.done;tn=ut.next()){var sr=tn.value;Ht=ve(sr,Ht,fe)}}var Gn=mt.call(de);if(Gn==null)throw new Error("An iterable object provided no iterator.");for(var ri=null,Yn=null,Yr=Te,Ua=0,ga=0,is=null,oo=Gn.next();Yr!==null&&!oo.done;ga++,oo=Gn.next()){Yr.index>ga?(is=Yr,Yr=null):is=Yr.sibling;var so=ee(fe,Yr,oo.value,We);if(so===null){Yr===null&&(Yr=is);break}r&&Yr&&so.alternate===null&&a(fe,Yr),Ua=y(so,Ua,ga),Yn===null?ri=so:Yn.sibling=so,Yn=so,Yr=is}if(oo.done){if(s(fe,Yr),ca()){var $a=ga;bp(fe,$a)}return ri}if(Yr===null){for(;!oo.done;ga++,oo=Gn.next()){var xc=te(fe,oo.value,We);xc!==null&&(Ua=y(xc,Ua,ga),Yn===null?ri=xc:Yn.sibling=xc,Yn=xc)}if(ca()){var Fh=ga;bp(fe,Fh)}return ri}for(var X1=f(fe,Yr);!oo.done;ga++,oo=Gn.next()){var pu=he(X1,fe,ga,oo.value,We);pu!==null&&(r&&pu.alternate!==null&&X1.delete(pu.key===null?ga:pu.key),Ua=y(pu,Ua,ga),Yn===null?ri=pu:Yn.sibling=pu,Yn=pu)}if(r&&X1.forEach(function(fW){return a(fe,fW)}),ca()){var cW=ga;bp(fe,cW)}return ri}function At(fe,Te,de,We){if(Te!==null&&Te.tag===T){s(fe,Te.sibling);var mt=m(Te,de);return mt.return=fe,mt}s(fe,Te);var ut=E9(de,fe.mode,We);return ut.return=fe,ut}function Ct(fe,Te,de,We){for(var mt=de.key,ut=Te;ut!==null;){if(ut.key===mt){var Ht=de.type;if(Ht===Ue){if(ut.tag===A){s(fe,ut.sibling);var tn=m(ut,de.props.children);return tn.return=fe,tn._debugSource=de._source,tn._debugOwner=de._owner,tn}}else if(ut.elementType===Ht||fA(ut,de)||typeof Ht=="object"&&Ht!==null&&Ht.$$typeof===un&&ST(Ht)===ut.type){s(fe,ut.sibling);var sr=m(ut,de.props);return sr.ref=x1(fe,ut,de),sr.return=fe,sr._debugSource=de._source,sr._debugOwner=de._owner,sr}s(fe,ut);break}else a(fe,ut);ut=ut.sibling}if(de.type===Ue){var Gn=Ff(de.props.children,fe.mode,We,de.key);return Gn.return=fe,Gn}else{var ri=_9(de,fe.mode,We);return ri.ref=x1(fe,Te,de),ri.return=fe,ri}}function Pn(fe,Te,de,We){for(var mt=de.key,ut=Te;ut!==null;){if(ut.key===mt)if(ut.tag===N&&ut.stateNode.containerInfo===de.containerInfo&&ut.stateNode.implementation===de.implementation){s(fe,ut.sibling);var Ht=m(ut,de.children||[]);return Ht.return=fe,Ht}else{s(fe,ut);break}else a(fe,ut);ut=ut.sibling}var tn=T9(de,fe.mode,We);return tn.return=fe,tn}function _n(fe,Te,de,We){var mt=typeof de=="object"&&de!==null&&de.type===Ue&&de.key===null;if(mt&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case ji:return w(Ct(fe,Te,de,We));case X:return w(Pn(fe,Te,de,We));case un:var ut=de._payload,Ht=de._init;return _n(fe,Te,Ht(ut),We)}if(Ut(de))return Ee(fe,Te,de,We);if(qa(de))return pt(fe,Te,de,We);j2(fe,de)}return typeof de=="string"&&de!==""||typeof de=="number"?w(At(fe,Te,""+de,We)):(typeof de=="function"&&V2(fe),s(fe,Te))}return _n}var xh=xT(!0),CT=xT(!1);function Q$(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var s=a.child,f=Lp(s,s.pendingProps);for(a.child=f,f.return=a;s.sibling!==null;)s=s.sibling,f=f.sibling=Lp(s,s.pendingProps),f.return=a;f.sibling=null}}function J$(r,a){for(var s=r.child;s!==null;)RH(s,a),s=s.sibling}var C1={},Rf=Ki(C1),N1=Ki(C1),H2=Ki(C1);function W2(r){if(r===C1)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function NT(){var r=W2(H2.current);return r}function ew(r,a){za(H2,a,r),za(N1,r,r),za(Rf,C1,r);var s=CC(a);ki(Rf,r),za(Rf,s,r)}function Ch(r){ki(Rf,r),ki(N1,r),ki(H2,r)}function tw(){var r=W2(Rf.current);return r}function wT(r){W2(H2.current);var a=W2(Rf.current),s=NC(a,r.type);a!==s&&(za(N1,r,r),za(Rf,s,r))}function nw(r){N1.current===r&&(ki(Rf,r),ki(N1,r))}var ej=0,_T=1,ET=1,w1=2,El=Ki(ej);function rw(r,a){return(r&a)!==0}function Nh(r){return r&_T}function iw(r,a){return r&_T|a}function tj(r,a){return r|a}function Af(r,a){za(El,a,r)}function wh(r){ki(El,r)}function nj(r,a){var s=r.memoizedState;return s!==null?s.dehydrated!==null:(r.memoizedProps,!0)}function G2(r){for(var a=r;a!==null;){if(a.tag===$){var s=a.memoizedState;if(s!==null){var f=s.dehydrated;if(f===null||S2(f)||d1(f))return a}}else if(a.tag===ge&&a.memoizedProps.revealOrder!==void 0){var m=(a.flags&Un)!==zt;if(m)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var wo=0,Li=1,ou=2,Oi=4,fa=8,aw=[];function ow(){for(var r=0;r<aw.length;r++){var a=aw[r];a._workInProgressVersionPrimary=null}aw.length=0}function rj(r,a){var s=a._getVersion,f=s(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,f]:r.mutableSourceEagerHydrationData.push(a,f)}var ft=n.ReactCurrentDispatcher,_1=n.ReactCurrentBatchConfig,sw,_h;sw=new Set;var wp=Fe,or=null,Mi=null,Di=null,Y2=!1,E1=!1,T1=0,ij=0,aj=25,Le=null,js=null,kf=-1,lw=!1;function Qn(){{var r=Le;js===null?js=[r]:js.push(r)}}function tt(){{var r=Le;js!==null&&(kf++,js[kf]!==r&&oj(r))}}function Eh(r){r!=null&&!Ut(r)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof r)}function oj(r){{var a=jt(or);if(!sw.has(a)&&(sw.add(a),js!==null)){for(var s="",f=30,m=0;m<=kf;m++){for(var y=js[m],w=m===kf?r:y,R=m+1+". "+y;R.length<f;)R+=" ";R+=w+`
`,s+=R}c(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,a,s)}}}function Ba(){throw new Error(`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.`)}function uw(r,a){if(lw)return!1;if(a===null)return c("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Le),!1;r.length!==a.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,Le,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<a.length&&s<r.length;s++)if(!sa(r[s],a[s]))return!1;return!0}function Th(r,a,s,f,m,y){wp=y,or=a,js=r!==null?r._debugHookTypes:null,kf=-1,lw=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Fe,r!==null&&r.memoizedState!==null?ft.current=qT:js!==null?ft.current=YT:ft.current=GT;var w=s(f,m);if(E1){var R=0;do{if(E1=!1,T1=0,R>=aj)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");R+=1,lw=!1,Mi=null,Di=null,a.updateQueue=null,kf=-1,ft.current=ZT,w=s(f,m)}while(E1)}ft.current=o5,a._debugHookTypes=js;var O=Mi!==null&&Mi.next!==null;if(wp=Fe,or=null,Mi=null,Di=null,Le=null,js=null,kf=-1,r!==null&&(r.flags&Ts)!==(a.flags&Ts)&&(r.mode&Nn)!==Dt&&c("Internal React error: Expected static flag was missing. Please notify the React team."),Y2=!1,O)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function Rh(){var r=T1!==0;return T1=0,r}function TT(r,a,s){a.updateQueue=r.updateQueue,(a.mode&yo)!==Dt?a.flags&=~(Tm|Jr|Jo|dn):a.flags&=~(Jo|dn),r.lanes=jd(r.lanes,s)}function RT(){if(ft.current=o5,Y2){for(var r=or.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Y2=!1}wp=Fe,or=null,Mi=null,Di=null,js=null,kf=-1,Le=null,$T=!1,E1=!1,T1=0}function su(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Di===null?or.memoizedState=Di=r:Di=Di.next=r,Di}function Vs(){var r;if(Mi===null){var a=or.alternate;a!==null?r=a.memoizedState:r=null}else r=Mi.next;var s;if(Di===null?s=or.memoizedState:s=Di.next,s!==null)Di=s,s=Di.next,Mi=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");Mi=r;var f={memoizedState:Mi.memoizedState,baseState:Mi.baseState,baseQueue:Mi.baseQueue,queue:Mi.queue,next:null};Di===null?or.memoizedState=Di=f:Di=Di.next=f}return Di}function AT(){return{lastEffect:null,stores:null}}function cw(r,a){return typeof a=="function"?a(r):a}function fw(r,a,s){var f=su(),m;s!==void 0?m=s(a):m=a,f.memoizedState=f.baseState=m;var y={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:r,lastRenderedState:m};f.queue=y;var w=y.dispatch=cj.bind(null,or,y);return[f.memoizedState,w]}function dw(r,a,s){var f=Vs(),m=f.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=r;var y=Mi,w=y.baseQueue,R=m.pending;if(R!==null){if(w!==null){var O=w.next,U=R.next;w.next=U,R.next=O}y.baseQueue!==w&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=R,m.pending=null}if(w!==null){var H=w.next,te=y.baseState,ee=null,he=null,ve=null,Ee=H;do{var pt=Ee.lane;if(tc(wp,pt)){if(ve!==null){var Ct={lane:ei,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};ve=ve.next=Ct}if(Ee.hasEagerState)te=Ee.eagerState;else{var Pn=Ee.action;te=r(te,Pn)}}else{var At={lane:pt,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};ve===null?(he=ve=At,ee=te):ve=ve.next=At,or.lanes=pn(or.lanes,pt),G1(pt)}Ee=Ee.next}while(Ee!==null&&Ee!==H);ve===null?ee=te:ve.next=he,sa(te,f.memoizedState)||D1(),f.memoizedState=te,f.baseState=ee,f.baseQueue=ve,m.lastRenderedState=te}var _n=m.interleaved;if(_n!==null){var fe=_n;do{var Te=fe.lane;or.lanes=pn(or.lanes,Te),G1(Te),fe=fe.next}while(fe!==_n)}else w===null&&(m.lanes=Fe);var de=m.dispatch;return[f.memoizedState,de]}function pw(r,a,s){var f=Vs(),m=f.queue;if(m===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");m.lastRenderedReducer=r;var y=m.dispatch,w=m.pending,R=f.memoizedState;if(w!==null){m.pending=null;var O=w.next,U=O;do{var H=U.action;R=r(R,H),U=U.next}while(U!==O);sa(R,f.memoizedState)||D1(),f.memoizedState=R,f.baseQueue===null&&(f.baseState=R),m.lastRenderedState=R}return[R,y]}function gye(r,a,s){}function bye(r,a,s){}function mw(r,a,s){var f=or,m=su(),y,w=ca();if(w){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=s(),_h||y!==s()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),_h=!0)}else{if(y=a(),!_h){var R=a();sa(y,R)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),_h=!0)}var O=w5();if(O===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ec(O,wp)||kT(f,a,y)}m.memoizedState=y;var U={value:y,getSnapshot:a};return m.queue=U,Q2(OT.bind(null,f,U,r),[r]),f.flags|=Jo,R1(Li|fa,LT.bind(null,f,U,y,a),void 0,null),y}function q2(r,a,s){var f=or,m=Vs(),y=a();if(!_h){var w=a();sa(y,w)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),_h=!0)}var R=m.memoizedState,O=!sa(R,y);O&&(m.memoizedState=y,D1());var U=m.queue;if(k1(OT.bind(null,f,U,r),[r]),U.getSnapshot!==a||O||Di!==null&&Di.memoizedState.tag&Li){f.flags|=Jo,R1(Li|fa,LT.bind(null,f,U,y,a),void 0,null);var H=w5();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ec(H,wp)||kT(f,a,y)}return y}function kT(r,a,s){r.flags|=Em;var f={getSnapshot:a,value:s},m=or.updateQueue;if(m===null)m=AT(),or.updateQueue=m,m.stores=[f];else{var y=m.stores;y===null?m.stores=[f]:y.push(f)}}function LT(r,a,s,f){a.value=s,a.getSnapshot=f,MT(a)&&DT(r)}function OT(r,a,s){var f=function(){MT(a)&&DT(r)};return s(f)}function MT(r){var a=r.getSnapshot,s=r.value;try{var f=a();return!sa(s,f)}catch{return!0}}function DT(r){var a=No(r,Yt);a!==null&&zi(a,r,Yt,tr)}function Z2(r){var a=su();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var s={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:cw,lastRenderedState:r};a.queue=s;var f=s.dispatch=fj.bind(null,or,s);return[a.memoizedState,f]}function hw(r){return dw(cw)}function vw(r){return pw(cw)}function R1(r,a,s,f){var m={tag:r,create:a,destroy:s,deps:f,next:null},y=or.updateQueue;if(y===null)y=AT(),or.updateQueue=y,y.lastEffect=m.next=m;else{var w=y.lastEffect;if(w===null)y.lastEffect=m.next=m;else{var R=w.next;w.next=m,m.next=R,y.lastEffect=m}}return m}function gw(r){var a=su();{var s={current:r};return a.memoizedState=s,s}}function K2(r){var a=Vs();return a.memoizedState}function A1(r,a,s,f){var m=su(),y=f===void 0?null:f;or.flags|=r,m.memoizedState=R1(Li|a,s,void 0,y)}function X2(r,a,s,f){var m=Vs(),y=f===void 0?null:f,w=void 0;if(Mi!==null){var R=Mi.memoizedState;if(w=R.destroy,y!==null){var O=R.deps;if(uw(y,O)){m.memoizedState=R1(a,s,w,y);return}}}or.flags|=r,m.memoizedState=R1(Li|a,s,w,y)}function Q2(r,a){return(or.mode&yo)!==Dt?A1(Tm|Jo|Jv,fa,r,a):A1(Jo|Jv,fa,r,a)}function k1(r,a){return X2(Jo,fa,r,a)}function bw(r,a){return A1(dn,ou,r,a)}function J2(r,a){return X2(dn,ou,r,a)}function yw(r,a){var s=dn;return s|=qu,(or.mode&yo)!==Dt&&(s|=Jr),A1(s,Oi,r,a)}function e5(r,a){return X2(dn,Oi,r,a)}function PT(r,a){if(typeof a=="function"){var s=a,f=r();return s(f),function(){s(null)}}else if(a!=null){var m=a;m.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(m).join(", ")+"}");var y=r();return m.current=y,function(){m.current=null}}}function Sw(r,a,s){typeof a!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=s!=null?s.concat([r]):null,m=dn;return m|=qu,(or.mode&yo)!==Dt&&(m|=Jr),A1(m,Oi,PT.bind(null,a,r),f)}function t5(r,a,s){typeof a!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=s!=null?s.concat([r]):null;return X2(dn,Oi,PT.bind(null,a,r),f)}function sj(r,a){}var n5=sj;function xw(r,a){var s=su(),f=a===void 0?null:a;return s.memoizedState=[r,f],r}function r5(r,a){var s=Vs(),f=a===void 0?null:a,m=s.memoizedState;if(m!==null&&f!==null){var y=m[1];if(uw(f,y))return m[0]}return s.memoizedState=[r,f],r}function Cw(r,a){var s=su(),f=a===void 0?null:a,m=r();return s.memoizedState=[m,f],m}function i5(r,a){var s=Vs(),f=a===void 0?null:a,m=s.memoizedState;if(m!==null&&f!==null){var y=m[1];if(uw(f,y))return m[0]}var w=r();return s.memoizedState=[w,f],w}function Nw(r){var a=su();return a.memoizedState=r,r}function IT(r){var a=Vs(),s=Mi,f=s.memoizedState;return zT(a,f,r)}function FT(r){var a=Vs();if(Mi===null)return a.memoizedState=r,r;var s=Mi.memoizedState;return zT(a,s,r)}function zT(r,a,s){var f=!$m(wp);if(f){if(!sa(s,a)){var m=Ud();or.lanes=pn(or.lanes,m),G1(m),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,D1()),r.memoizedState=s,s}function lj(r,a,s){var f=So();ci(V3(f,Ms)),r(!0);var m=_1.transition;_1.transition={};var y=_1.transition;_1.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(ci(f),_1.transition=m,m===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&u("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."),y._updatedFibers.clear()}}}function ww(){var r=Z2(!1),a=r[0],s=r[1],f=lj.bind(null,s),m=su();return m.memoizedState=f,[a,f]}function BT(){var r=hw(),a=r[0],s=Vs(),f=s.memoizedState;return[a,f]}function UT(){var r=vw(),a=r[0],s=Vs(),f=s.memoizedState;return[a,f]}var $T=!1;function uj(){return $T}function _w(){var r=su(),a=w5(),s=a.identifierPrefix,f;if(ca()){var m=N$();f=":"+s+"R"+m;var y=T1++;y>0&&(f+="H"+y.toString(32)),f+=":"}else{var w=ij++;f=":"+s+"r"+w.toString(32)+":"}return r.memoizedState=f,f}function a5(){var r=Vs(),a=r.memoizedState;return a}function cj(r,a,s){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var f=Pf(r),m={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(jT(r))VT(a,m);else{var y=oT(r,a,m,f);if(y!==null){var w=ao();zi(y,r,f,w),HT(y,a,f)}}WT(r,f)}function fj(r,a,s){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var f=Pf(r),m={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(jT(r))VT(a,m);else{var y=r.alternate;if(r.lanes===Fe&&(y===null||y.lanes===Fe)){var w=a.lastRenderedReducer;if(w!==null){var R;R=ft.current,ft.current=Tl;try{var O=a.lastRenderedState,U=w(O,s);if(m.hasEagerState=!0,m.eagerState=U,sa(U,O)){V$(r,a,m,f);return}}catch{}finally{ft.current=R}}}var H=oT(r,a,m,f);if(H!==null){var te=ao();zi(H,r,f,te),HT(H,a,f)}}WT(r,f)}function jT(r){var a=r.alternate;return r===or||a!==null&&a===or}function VT(r,a){E1=Y2=!0;var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}function HT(r,a,s){if(C0(s)){var f=a.lanes;f=vy(f,r.pendingLanes);var m=pn(f,s);a.lanes=m,Pt(r,m)}}function WT(r,a,s){p0(r,a)}var o5={readContext:pi,useCallback:Ba,useContext:Ba,useEffect:Ba,useImperativeHandle:Ba,useInsertionEffect:Ba,useLayoutEffect:Ba,useMemo:Ba,useReducer:Ba,useRef:Ba,useState:Ba,useDebugValue:Ba,useDeferredValue:Ba,useTransition:Ba,useMutableSource:Ba,useSyncExternalStore:Ba,useId:Ba,unstable_isNewReconciler:be},GT=null,YT=null,qT=null,ZT=null,lu=null,Tl=null,s5=null;{var Ew=function(){c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Qt=function(){c("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};GT={readContext:function(r){return pi(r)},useCallback:function(r,a){return Le="useCallback",Qn(),Eh(a),xw(r,a)},useContext:function(r){return Le="useContext",Qn(),pi(r)},useEffect:function(r,a){return Le="useEffect",Qn(),Eh(a),Q2(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",Qn(),Eh(s),Sw(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Qn(),Eh(a),bw(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Qn(),Eh(a),yw(r,a)},useMemo:function(r,a){Le="useMemo",Qn(),Eh(a);var s=ft.current;ft.current=lu;try{return Cw(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",Qn();var f=ft.current;ft.current=lu;try{return fw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",Qn(),gw(r)},useState:function(r){Le="useState",Qn();var a=ft.current;ft.current=lu;try{return Z2(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Qn(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Qn(),Nw(r)},useTransition:function(){return Le="useTransition",Qn(),ww()},useMutableSource:function(r,a,s){return Le="useMutableSource",Qn(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",Qn(),mw(r,a,s)},useId:function(){return Le="useId",Qn(),_w()},unstable_isNewReconciler:be},YT={readContext:function(r){return pi(r)},useCallback:function(r,a){return Le="useCallback",tt(),xw(r,a)},useContext:function(r){return Le="useContext",tt(),pi(r)},useEffect:function(r,a){return Le="useEffect",tt(),Q2(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",tt(),Sw(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",tt(),bw(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",tt(),yw(r,a)},useMemo:function(r,a){Le="useMemo",tt();var s=ft.current;ft.current=lu;try{return Cw(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",tt();var f=ft.current;ft.current=lu;try{return fw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",tt(),gw(r)},useState:function(r){Le="useState",tt();var a=ft.current;ft.current=lu;try{return Z2(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",tt(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",tt(),Nw(r)},useTransition:function(){return Le="useTransition",tt(),ww()},useMutableSource:function(r,a,s){return Le="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",tt(),mw(r,a,s)},useId:function(){return Le="useId",tt(),_w()},unstable_isNewReconciler:be},qT={readContext:function(r){return pi(r)},useCallback:function(r,a){return Le="useCallback",tt(),r5(r,a)},useContext:function(r){return Le="useContext",tt(),pi(r)},useEffect:function(r,a){return Le="useEffect",tt(),k1(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",tt(),t5(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",tt(),J2(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",tt(),e5(r,a)},useMemo:function(r,a){Le="useMemo",tt();var s=ft.current;ft.current=Tl;try{return i5(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",tt();var f=ft.current;ft.current=Tl;try{return dw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",tt(),K2()},useState:function(r){Le="useState",tt();var a=ft.current;ft.current=Tl;try{return hw(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",tt(),n5()},useDeferredValue:function(r){return Le="useDeferredValue",tt(),IT(r)},useTransition:function(){return Le="useTransition",tt(),BT()},useMutableSource:function(r,a,s){return Le="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",tt(),q2(r,a)},useId:function(){return Le="useId",tt(),a5()},unstable_isNewReconciler:be},ZT={readContext:function(r){return pi(r)},useCallback:function(r,a){return Le="useCallback",tt(),r5(r,a)},useContext:function(r){return Le="useContext",tt(),pi(r)},useEffect:function(r,a){return Le="useEffect",tt(),k1(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",tt(),t5(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",tt(),J2(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",tt(),e5(r,a)},useMemo:function(r,a){Le="useMemo",tt();var s=ft.current;ft.current=s5;try{return i5(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",tt();var f=ft.current;ft.current=s5;try{return pw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",tt(),K2()},useState:function(r){Le="useState",tt();var a=ft.current;ft.current=s5;try{return vw(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",tt(),n5()},useDeferredValue:function(r){return Le="useDeferredValue",tt(),FT(r)},useTransition:function(){return Le="useTransition",tt(),UT()},useMutableSource:function(r,a,s){return Le="useMutableSource",tt(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",tt(),q2(r,a)},useId:function(){return Le="useId",tt(),a5()},unstable_isNewReconciler:be},lu={readContext:function(r){return Ew(),pi(r)},useCallback:function(r,a){return Le="useCallback",Qt(),Qn(),xw(r,a)},useContext:function(r){return Le="useContext",Qt(),Qn(),pi(r)},useEffect:function(r,a){return Le="useEffect",Qt(),Qn(),Q2(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",Qt(),Qn(),Sw(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Qt(),Qn(),bw(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Qt(),Qn(),yw(r,a)},useMemo:function(r,a){Le="useMemo",Qt(),Qn();var s=ft.current;ft.current=lu;try{return Cw(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",Qt(),Qn();var f=ft.current;ft.current=lu;try{return fw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",Qt(),Qn(),gw(r)},useState:function(r){Le="useState",Qt(),Qn();var a=ft.current;ft.current=lu;try{return Z2(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Qt(),Qn(),void 0},useDeferredValue:function(r){return Le="useDeferredValue",Qt(),Qn(),Nw(r)},useTransition:function(){return Le="useTransition",Qt(),Qn(),ww()},useMutableSource:function(r,a,s){return Le="useMutableSource",Qt(),Qn(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",Qt(),Qn(),mw(r,a,s)},useId:function(){return Le="useId",Qt(),Qn(),_w()},unstable_isNewReconciler:be},Tl={readContext:function(r){return Ew(),pi(r)},useCallback:function(r,a){return Le="useCallback",Qt(),tt(),r5(r,a)},useContext:function(r){return Le="useContext",Qt(),tt(),pi(r)},useEffect:function(r,a){return Le="useEffect",Qt(),tt(),k1(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",Qt(),tt(),t5(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Qt(),tt(),J2(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Qt(),tt(),e5(r,a)},useMemo:function(r,a){Le="useMemo",Qt(),tt();var s=ft.current;ft.current=Tl;try{return i5(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",Qt(),tt();var f=ft.current;ft.current=Tl;try{return dw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",Qt(),tt(),K2()},useState:function(r){Le="useState",Qt(),tt();var a=ft.current;ft.current=Tl;try{return hw(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Qt(),tt(),n5()},useDeferredValue:function(r){return Le="useDeferredValue",Qt(),tt(),IT(r)},useTransition:function(){return Le="useTransition",Qt(),tt(),BT()},useMutableSource:function(r,a,s){return Le="useMutableSource",Qt(),tt(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",Qt(),tt(),q2(r,a)},useId:function(){return Le="useId",Qt(),tt(),a5()},unstable_isNewReconciler:be},s5={readContext:function(r){return Ew(),pi(r)},useCallback:function(r,a){return Le="useCallback",Qt(),tt(),r5(r,a)},useContext:function(r){return Le="useContext",Qt(),tt(),pi(r)},useEffect:function(r,a){return Le="useEffect",Qt(),tt(),k1(r,a)},useImperativeHandle:function(r,a,s){return Le="useImperativeHandle",Qt(),tt(),t5(r,a,s)},useInsertionEffect:function(r,a){return Le="useInsertionEffect",Qt(),tt(),J2(r,a)},useLayoutEffect:function(r,a){return Le="useLayoutEffect",Qt(),tt(),e5(r,a)},useMemo:function(r,a){Le="useMemo",Qt(),tt();var s=ft.current;ft.current=Tl;try{return i5(r,a)}finally{ft.current=s}},useReducer:function(r,a,s){Le="useReducer",Qt(),tt();var f=ft.current;ft.current=Tl;try{return pw(r,a,s)}finally{ft.current=f}},useRef:function(r){return Le="useRef",Qt(),tt(),K2()},useState:function(r){Le="useState",Qt(),tt();var a=ft.current;ft.current=Tl;try{return vw(r)}finally{ft.current=a}},useDebugValue:function(r,a){return Le="useDebugValue",Qt(),tt(),n5()},useDeferredValue:function(r){return Le="useDeferredValue",Qt(),tt(),FT(r)},useTransition:function(){return Le="useTransition",Qt(),tt(),UT()},useMutableSource:function(r,a,s){return Le="useMutableSource",Qt(),tt(),void 0},useSyncExternalStore:function(r,a,s){return Le="useSyncExternalStore",Qt(),tt(),q2(r,a)},useId:function(){return Le="useId",Qt(),tt(),a5()},unstable_isNewReconciler:be}}var Lf=t.unstable_now,KT=0,l5=-1,L1=-1,u5=-1,Tw=!1,c5=!1;function XT(){return Tw}function dj(){c5=!0}function pj(){Tw=!1,c5=!1}function mj(){Tw=c5,c5=!1}function QT(){return KT}function JT(){KT=Lf()}function Rw(r){L1=Lf(),r.actualStartTime<0&&(r.actualStartTime=Lf())}function eR(r){L1=-1}function f5(r,a){if(L1>=0){var s=Lf()-L1;r.actualDuration+=s,a&&(r.selfBaseDuration=s),L1=-1}}function uu(r){if(l5>=0){var a=Lf()-l5;l5=-1;for(var s=r.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f.effectDuration+=a;return;case F:var m=s.stateNode;m.effectDuration+=a;return}s=s.return}}}function Aw(r){if(u5>=0){var a=Lf()-u5;u5=-1;for(var s=r.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case F:var m=s.stateNode;m!==null&&(m.passiveEffectDuration+=a);return}s=s.return}}}function cu(){l5=Lf()}function kw(){u5=Lf()}function Lw(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function _p(r,a){return{value:r,source:a,stack:Wi(a),digest:null}}function Ow(r,a,s){return{value:r,source:null,stack:s??null,digest:a??null}}function hj(r,a){return!0}function Mw(r,a){try{var s=hj(r,a);if(s===!1)return;var f=a.value,m=a.source,y=a.stack,w=y!==null?y:"";if(f!=null&&f._suppressLogging){if(r.tag===v)return;console.error(f)}var R=m?jt(m):null,O=R?"The above error occurred in the <"+R+"> component:":"The above error occurred in one of your React components:",U;if(r.tag===x)U=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var H=jt(r)||"Anonymous";U="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var te=O+`
`+w+`
`+(""+U);console.error(te)}catch(ee){setTimeout(function(){throw ee})}}var vj=typeof WeakMap=="function"?WeakMap:Map;function tR(r,a,s){var f=hc(tr,s);f.tag=MN,f.payload={element:null};var m=a.value;return f.callback=function(){lH(m),Mw(r,a)},f}function Dw(r,a,s){var f=hc(tr,s);f.tag=MN;var m=r.type.getDerivedStateFromError;if(typeof m=="function"){var y=a.value;f.payload=function(){return m(y)},f.callback=function(){dA(r),Mw(r,a)}}var w=r.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){dA(r),Mw(r,a),typeof m!="function"&&oH(this);var O=a.value,U=a.stack;this.componentDidCatch(O,{componentStack:U!==null?U:""}),typeof m!="function"&&(Ma(r.lanes,Yt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",jt(r)||"Unknown"))}),f}function nR(r,a,s){var f=r.pingCache,m;if(f===null?(f=r.pingCache=new vj,m=new Set,f.set(a,m)):(m=f.get(a),m===void 0&&(m=new Set,f.set(a,m))),!m.has(s)){m.add(s);var y=uH.bind(null,r,a,s);Ai&&Y1(r,s),a.then(y,y)}}function gj(r,a,s,f){var m=r.updateQueue;if(m===null){var y=new Set;y.add(s),r.updateQueue=y}else m.add(s)}function bj(r,a){var s=r.tag;if((r.mode&Nn)===Dt&&(s===h||s===I||s===Z)){var f=r.alternate;f?(r.updateQueue=f.updateQueue,r.memoizedState=f.memoizedState,r.lanes=f.lanes):(r.updateQueue=null,r.memoizedState=null)}}function rR(r){var a=r;do{if(a.tag===$&&nj(a))return a;a=a.return}while(a!==null);return null}function iR(r,a,s,f,m){if((r.mode&Nn)===Dt){if(r===a)r.flags|=ra;else{if(r.flags|=Un,s.flags|=Qv,s.flags&=~(hl|Td),s.tag===v){var y=s.alternate;if(y===null)s.tag=ce;else{var w=hc(tr,Yt);w.tag=P2,Tf(s,w,Yt)}}s.lanes=pn(s.lanes,Yt)}return r}return r.flags|=ra,r.lanes=m,r}function yj(r,a,s,f,m){if(s.flags|=Td,Ai&&Y1(r,m),f!==null&&typeof f=="object"&&typeof f.then=="function"){var y=f;bj(s),ca()&&s.mode&Nn&&qE();var w=rR(a);if(w!==null){w.flags&=~pl,iR(w,a,s,r,m),w.mode&Nn&&nR(r,y,m),gj(w,r,y);return}else{if(!my(m)){nR(r,y,m),p9();return}var R=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");f=R}}else if(ca()&&s.mode&Nn){qE();var O=rR(a);if(O!==null){(O.flags&ra)===zt&&(O.flags|=pl),iR(O,a,s,r,m),EN(_p(f,s));return}}f=_p(f,s),QV(f);var U=a;do{switch(U.tag){case x:{var H=f;U.flags|=ra;var te=$d(m);U.lanes=pn(U.lanes,te);var ee=tR(U,H,te);IN(U,ee);return}case v:var he=f,ve=U.type,Ee=U.stateNode;if((U.flags&Un)===zt&&(typeof ve.getDerivedStateFromError=="function"||Ee!==null&&typeof Ee.componentDidCatch=="function"&&!rA(Ee))){U.flags|=ra;var pt=$d(m);U.lanes=pn(U.lanes,pt);var At=Dw(U,he,pt);IN(U,At);return}break}U=U.return}while(U!==null)}function Sj(){return null}var O1=n.ReactCurrentOwner,Rl=!1,Pw,M1,Iw,Fw,zw,Ep,Bw,d5;Pw={},M1={},Iw={},Fw={},zw={},Ep=!1,Bw={},d5={};function ro(r,a,s,f){r===null?a.child=CT(a,null,s,f):a.child=xh(a,r.child,s,f)}function xj(r,a,s,f){a.child=xh(a,r.child,null,f),a.child=xh(a,null,s,f)}function aR(r,a,s,f,m){if(a.type!==a.elementType){var y=s.propTypes;y&&br(y,f,"prop",cn(s))}var w=s.render,R=a.ref,O,U;Sh(a,m),Od(a);{if(O1.current=a,Xr(!0),O=Th(r,a,w,f,R,m),U=Rh(),a.mode&Br){li(!0);try{O=Th(r,a,w,f,R,m),U=Rh()}finally{li(!1)}}Xr(!1)}return ef(),r!==null&&!Rl?(TT(r,a,m),vc(r,a,m)):(ca()&&U&&SN(a),a.flags|=Qc,ro(r,a,O,m),a.child)}function oR(r,a,s,f,m){if(r===null){var y=s.type;if(EH(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=Ih(y),a.tag=Z,a.type=w,jw(a,y),sR(r,a,w,f,m)}{var R=y.propTypes;R&&br(R,f,"prop",cn(y))}var O=w9(s.type,null,f,a,a.mode,m);return O.ref=a.ref,O.return=a,a.child=O,O}{var U=s.type,H=U.propTypes;H&&br(H,f,"prop",cn(U))}var te=r.child,ee=qw(r,m);if(!ee){var he=te.memoizedProps,ve=s.compare;if(ve=ve!==null?ve:gf,ve(he,f)&&r.ref===a.ref)return vc(r,a,m)}a.flags|=Qc;var Ee=Lp(te,f);return Ee.ref=a.ref,Ee.return=a,a.child=Ee,Ee}function sR(r,a,s,f,m){if(a.type!==a.elementType){var y=a.elementType;if(y.$$typeof===un){var w=y,R=w._payload,O=w._init;try{y=O(R)}catch{y=null}var U=y&&y.propTypes;U&&br(U,f,"prop",cn(y))}}if(r!==null){var H=r.memoizedProps;if(gf(H,f)&&r.ref===a.ref&&a.type===r.type)if(Rl=!1,a.pendingProps=f=H,qw(r,m))(r.flags&Qv)!==zt&&(Rl=!0);else return a.lanes=r.lanes,vc(r,a,m)}return Uw(r,a,s,f,m)}function lR(r,a,s){var f=a.pendingProps,m=f.children,y=r!==null?r.memoizedState:null;if(f.mode==="hidden"||me)if((a.mode&Nn)===Dt){var w={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=w,_5(a,s)}else if(Ma(s,to)){var te={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=te;var ee=y!==null?y.baseLanes:s;_5(a,ee)}else{var R=null,O;if(y!==null){var U=y.baseLanes;O=pn(U,s)}else O=s;a.lanes=a.childLanes=to;var H={baseLanes:O,cachePool:R,transitions:null};return a.memoizedState=H,a.updateQueue=null,_5(a,O),null}else{var he;y!==null?(he=pn(y.baseLanes,s),a.memoizedState=null):he=s,_5(a,he)}return ro(r,a,m,s),a.child}function Cj(r,a,s){var f=a.pendingProps;return ro(r,a,f,s),a.child}function Nj(r,a,s){var f=a.pendingProps.children;return ro(r,a,f,s),a.child}function wj(r,a,s){{a.flags|=dn;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var m=a.pendingProps,y=m.children;return ro(r,a,y,s),a.child}function uR(r,a){var s=a.ref;(r===null&&s!==null||r!==null&&r.ref!==s)&&(a.flags|=Yi,a.flags|=vl)}function Uw(r,a,s,f,m){if(a.type!==a.elementType){var y=s.propTypes;y&&br(y,f,"prop",cn(s))}var w;{var R=mh(a,s,!0);w=hh(a,R)}var O,U;Sh(a,m),Od(a);{if(O1.current=a,Xr(!0),O=Th(r,a,s,f,w,m),U=Rh(),a.mode&Br){li(!0);try{O=Th(r,a,s,f,w,m),U=Rh()}finally{li(!1)}}Xr(!1)}return ef(),r!==null&&!Rl?(TT(r,a,m),vc(r,a,m)):(ca()&&U&&SN(a),a.flags|=Qc,ro(r,a,O,m),a.child)}function cR(r,a,s,f,m){{switch($H(a)){case!1:{var y=a.stateNode,w=a.type,R=new w(a.memoizedProps,y.context),O=R.state;y.updater.enqueueSetState(y,O,null);break}case!0:{a.flags|=Un,a.flags|=ra;var U=new Error("Simulated error coming from DevTools"),H=$d(m);a.lanes=pn(a.lanes,H);var te=Dw(a,_p(U,a),H);IN(a,te);break}}if(a.type!==a.elementType){var ee=s.propTypes;ee&&br(ee,f,"prop",cn(s))}}var he;au(s)?(he=!0,w2(a)):he=!1,Sh(a,m);var ve=a.stateNode,Ee;ve===null?(m5(r,a),gT(a,s,f),qN(a,s,f,m),Ee=!0):r===null?Ee=K$(a,s,f,m):Ee=X$(r,a,s,f,m);var pt=$w(r,a,s,Ee,he,m);{var At=a.stateNode;Ee&&At.props!==f&&(Ep||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",jt(a)||"a component"),Ep=!0)}return pt}function $w(r,a,s,f,m,y){uR(r,a);var w=(a.flags&Un)!==zt;if(!f&&!w)return m&&HE(a,s,!1),vc(r,a,y);var R=a.stateNode;O1.current=a;var O;if(w&&typeof s.getDerivedStateFromError!="function")O=null,eR();else{Od(a);{if(Xr(!0),O=R.render(),a.mode&Br){li(!0);try{R.render()}finally{li(!1)}}Xr(!1)}ef()}return a.flags|=Qc,r!==null&&w?xj(r,a,O,y):ro(r,a,O,y),a.memoizedState=R.state,m&&HE(a,s,!0),a.child}function fR(r){var a=r.stateNode;a.pendingContext?jE(r,a.pendingContext,a.pendingContext!==a.context):a.context&&jE(r,a.context,!1),ew(r,a.containerInfo)}function _j(r,a,s){if(fR(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,m=a.memoizedState,y=m.element;uT(r,a),B2(a,f,null,s);var w=a.memoizedState;a.stateNode;var R=w.element;if(m.isDehydrated){var O={element:R,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},U=a.updateQueue;if(U.baseState=O,a.memoizedState=O,a.flags&pl){var H=_p(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return dR(r,a,R,s,H)}else if(R!==y){var te=_p(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return dR(r,a,R,s,te)}else{A$(a);var ee=CT(a,null,R,s);a.child=ee;for(var he=ee;he;)he.flags=he.flags&~Wr|ml,he=he.sibling}}else{if(bh(),R===y)return vc(r,a,s);ro(r,a,R,s)}return a.child}function dR(r,a,s,f,m){return bh(),EN(m),a.flags|=pl,ro(r,a,s,f),a.child}function Ej(r,a,s){wT(a),r===null&&_N(a);var f=a.type,m=a.pendingProps,y=r!==null?r.memoizedProps:null,w=m.children,R=n1(f,m);return R?w=null:y!==null&&n1(f,y)&&(a.flags|=Ed),uR(r,a),ro(r,a,w,s),a.child}function Tj(r,a){return r===null&&_N(a),null}function Rj(r,a,s,f){m5(r,a);var m=a.pendingProps,y=s,w=y._payload,R=y._init,O=R(w);a.type=O;var U=a.tag=TH(O),H=_l(O,m),te;switch(U){case h:return jw(a,O),a.type=O=Ih(O),te=Uw(null,a,O,H,f),te;case v:return a.type=O=b9(O),te=cR(null,a,O,H,f),te;case I:return a.type=O=y9(O),te=aR(null,a,O,H,f),te;case Y:{if(a.type!==a.elementType){var ee=O.propTypes;ee&&br(ee,H,"prop",cn(O))}return te=oR(null,a,O,_l(O.type,H),f),te}}var he="";throw O!==null&&typeof O=="object"&&O.$$typeof===un&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+O+". "+("Lazy element type must resolve to a class or function."+he))}function Aj(r,a,s,f,m){m5(r,a),a.tag=v;var y;return au(s)?(y=!0,w2(a)):y=!1,Sh(a,m),gT(a,s,f),qN(a,s,f,m),$w(null,a,s,!0,y,m)}function kj(r,a,s,f){m5(r,a);var m=a.pendingProps,y;{var w=mh(a,s,!1);y=hh(a,w)}Sh(a,f);var R,O;Od(a);{if(s.prototype&&typeof s.prototype.render=="function"){var U=cn(s)||"Unknown";Pw[U]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",U,U),Pw[U]=!0)}a.mode&Br&&wl.recordLegacyContextWarning(a,null),Xr(!0),O1.current=a,R=Th(null,a,s,m,y,f),O=Rh(),Xr(!1)}if(ef(),a.flags|=Qc,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0){var H=cn(s)||"Unknown";M1[H]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",H,H,H),M1[H]=!0)}if(typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0){{var te=cn(s)||"Unknown";M1[te]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",te,te,te),M1[te]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var ee=!1;return au(s)?(ee=!0,w2(a)):ee=!1,a.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,PN(a),vT(a,R),qN(a,s,m,f),$w(null,a,s,!0,ee,f)}else{if(a.tag=h,a.mode&Br){li(!0);try{R=Th(null,a,s,m,y,f),O=Rh()}finally{li(!1)}}return ca()&&O&&SN(a),ro(null,a,R,f),jw(a,s),a.child}}function jw(r,a){{if(a&&a.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var s="",f=ta();f&&(s+=`
Check the render method of \``+f+"`.");var m=f||"",y=r._debugSource;y&&(m=y.fileName+":"+y.lineNumber),zw[m]||(zw[m]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof a.getDerivedStateFromProps=="function"){var w=cn(a)||"Unknown";Fw[w]||(c("%s: Function components do not support getDerivedStateFromProps.",w),Fw[w]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var R=cn(a)||"Unknown";Iw[R]||(c("%s: Function components do not support contextType.",R),Iw[R]=!0)}}}var Vw={dehydrated:null,treeContext:null,retryLane:ei};function Hw(r){return{baseLanes:r,cachePool:Sj(),transitions:null}}function Lj(r,a){var s=null;return{baseLanes:pn(r.baseLanes,a),cachePool:s,transitions:r.transitions}}function Oj(r,a,s,f){if(a!==null){var m=a.memoizedState;if(m===null)return!1}return rw(r,w1)}function Mj(r,a){return jd(r.childLanes,a)}function pR(r,a,s){var f=a.pendingProps;jH(a)&&(a.flags|=Un);var m=El.current,y=!1,w=(a.flags&Un)!==zt;if(w||Oj(m,r)?(y=!0,a.flags&=~Un):(r===null||r.memoizedState!==null)&&(m=tj(m,ET)),m=Nh(m),Af(a,m),r===null){_N(a);var R=a.memoizedState;if(R!==null){var O=R.dehydrated;if(O!==null)return zj(a,O)}var U=f.children,H=f.fallback;if(y){var te=Dj(a,U,H,s),ee=a.child;return ee.memoizedState=Hw(s),a.memoizedState=Vw,te}else return Ww(a,U)}else{var he=r.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return Bj(r,a,w,f,ve,he,s)}if(y){var Ee=f.fallback,pt=f.children,At=Ij(r,a,pt,Ee,s),Ct=a.child,Pn=r.child.memoizedState;return Ct.memoizedState=Pn===null?Hw(s):Lj(Pn,s),Ct.childLanes=Mj(r,s),a.memoizedState=Vw,At}else{var _n=f.children,fe=Pj(r,a,_n,s);return a.memoizedState=null,fe}}}function Ww(r,a,s){var f=r.mode,m={mode:"visible",children:a},y=Gw(m,f);return y.return=r,r.child=y,y}function Dj(r,a,s,f){var m=r.mode,y=r.child,w={mode:"hidden",children:a},R,O;return(m&Nn)===Dt&&y!==null?(R=y,R.childLanes=Fe,R.pendingProps=w,r.mode&Wn&&(R.actualDuration=0,R.actualStartTime=-1,R.selfBaseDuration=0,R.treeBaseDuration=0),O=Ff(s,m,f,null)):(R=Gw(w,m),O=Ff(s,m,f,null)),R.return=r,O.return=r,R.sibling=O,r.child=R,O}function Gw(r,a,s){return mA(r,a,Fe,null)}function mR(r,a){return Lp(r,a)}function Pj(r,a,s,f){var m=r.child,y=m.sibling,w=mR(m,{mode:"visible",children:s});if((a.mode&Nn)===Dt&&(w.lanes=f),w.return=a,w.sibling=null,y!==null){var R=a.deletions;R===null?(a.deletions=[y],a.flags|=Wu):R.push(y)}return a.child=w,w}function Ij(r,a,s,f,m){var y=a.mode,w=r.child,R=w.sibling,O={mode:"hidden",children:s},U;if((y&Nn)===Dt&&a.child!==w){var H=a.child;U=H,U.childLanes=Fe,U.pendingProps=O,a.mode&Wn&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=w.selfBaseDuration,U.treeBaseDuration=w.treeBaseDuration),a.deletions=null}else U=mR(w,O),U.subtreeFlags=w.subtreeFlags&Ts;var te;return R!==null?te=Lp(R,f):(te=Ff(f,y,m,null),te.flags|=Wr),te.return=a,U.return=a,U.sibling=te,a.child=U,te}function p5(r,a,s,f){f!==null&&EN(f),xh(a,r.child,null,s);var m=a.pendingProps,y=m.children,w=Ww(a,y);return w.flags|=Wr,a.memoizedState=null,w}function Fj(r,a,s,f,m){var y=a.mode,w={mode:"visible",children:s},R=Gw(w,y),O=Ff(f,y,m,null);return O.flags|=Wr,R.return=a,O.return=a,R.sibling=O,a.child=R,(a.mode&Nn)!==Dt&&xh(a,r.child,null,m),O}function zj(r,a,s){return(r.mode&Nn)===Dt?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),r.lanes=Yt):d1(a)?r.lanes=Xu:r.lanes=to,null}function Bj(r,a,s,f,m,y,w){if(s)if(a.flags&pl){a.flags&=~pl;var fe=Ow(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return p5(r,a,w,fe)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=Un,null;var Te=f.children,de=f.fallback,We=Fj(r,a,Te,de,w),mt=a.child;return mt.memoizedState=Hw(w),a.memoizedState=Vw,We}else{if(T$(),(a.mode&Nn)===Dt)return p5(r,a,w,null);if(d1(m)){var R,O,U;{var H=GC(m);R=H.digest,O=H.message,U=H.stack}var te;O?te=new Error(O):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var ee=Ow(te,R,U);return p5(r,a,w,ee)}var he=Ma(w,r.childLanes);if(Rl||he){var ve=w5();if(ve!==null){var Ee=jm(ve,w);if(Ee!==ei&&Ee!==y.retryLane){y.retryLane=Ee;var pt=tr;No(r,Ee),zi(ve,r,Ee,pt)}}p9();var At=Ow(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return p5(r,a,w,At)}else if(S2(m)){a.flags|=Un,a.child=r.child;var Ct=cH.bind(null,r);return YC(m,Ct),null}else{k$(a,m,y.treeContext);var Pn=f.children,_n=Ww(a,Pn);return _n.flags|=ml,_n}}}function hR(r,a,s){r.lanes=pn(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=pn(f.lanes,a)),LN(r.return,a,s)}function Uj(r,a,s){for(var f=a;f!==null;){if(f.tag===$){var m=f.memoizedState;m!==null&&hR(f,s,r)}else if(f.tag===ge)hR(f,s,r);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function $j(r){for(var a=r,s=null;a!==null;){var f=a.alternate;f!==null&&G2(f)===null&&(s=a),a=a.sibling}return s}function jj(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!Bw[r])if(Bw[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function Vj(r,a){r!==void 0&&!d5[r]&&(r!=="collapsed"&&r!=="hidden"?(d5[r]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(d5[r]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function vR(r,a){{var s=Ut(r),f=!s&&typeof qa(r)=="function";if(s||f){var m=s?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",m,a,m),!1}}return!0}function Hj(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(Ut(r)){for(var s=0;s<r.length;s++)if(!vR(r[s],s))return}else{var f=qa(r);if(typeof f=="function"){var m=f.call(r);if(m)for(var y=m.next(),w=0;!y.done;y=m.next()){if(!vR(y.value,w))return;w++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function Yw(r,a,s,f,m){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:m}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=s,y.tailMode=m)}function gR(r,a,s){var f=a.pendingProps,m=f.revealOrder,y=f.tail,w=f.children;jj(m),Vj(y,m),Hj(w,m),ro(r,a,w,s);var R=El.current,O=rw(R,w1);if(O)R=iw(R,w1),a.flags|=Un;else{var U=r!==null&&(r.flags&Un)!==zt;U&&Uj(a,a.child,s),R=Nh(R)}if(Af(a,R),(a.mode&Nn)===Dt)a.memoizedState=null;else switch(m){case"forwards":{var H=$j(a.child),te;H===null?(te=a.child,a.child=null):(te=H.sibling,H.sibling=null),Yw(a,!1,te,H,y);break}case"backwards":{var ee=null,he=a.child;for(a.child=null;he!==null;){var ve=he.alternate;if(ve!==null&&G2(ve)===null){a.child=he;break}var Ee=he.sibling;he.sibling=ee,ee=he,he=Ee}Yw(a,!0,ee,null,y);break}case"together":{Yw(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function Wj(r,a,s){ew(a,a.stateNode.containerInfo);var f=a.pendingProps;return r===null?a.child=xh(a,null,f,s):ro(r,a,f,s),a.child}var bR=!1;function Gj(r,a,s){var f=a.type,m=f._context,y=a.pendingProps,w=a.memoizedProps,R=y.value;{"value"in y||bR||(bR=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var O=a.type.propTypes;O&&br(O,y,"prop","Context.Provider")}if(aT(a,m,R),w!==null){var U=w.value;if(sa(U,R)){if(w.children===y.children&&!C2())return vc(r,a,s)}else U$(a,m,s)}var H=y.children;return ro(r,a,H,s),a.child}var yR=!1;function Yj(r,a,s){var f=a.type;f._context===void 0?f!==f.Consumer&&(yR||(yR=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var m=a.pendingProps,y=m.children;typeof y!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Sh(a,s);var w=pi(f);Od(a);var R;return O1.current=a,Xr(!0),R=y(w),Xr(!1),ef(),a.flags|=Qc,ro(r,a,R,s),a.child}function D1(){Rl=!0}function m5(r,a){(a.mode&Nn)===Dt&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=Wr)}function vc(r,a,s){return r!==null&&(a.dependencies=r.dependencies),eR(),G1(a.lanes),Ma(s,a.childLanes)?(Q$(r,a),a.child):null}function qj(r,a,s){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,s.index=a.index,s.sibling=a.sibling,s.return=a.return,s.ref=a.ref,a===f.child)f.child=s;else{var m=f.child;if(m===null)throw new Error("Expected parent to have a child.");for(;m.sibling!==a;)if(m=m.sibling,m===null)throw new Error("Expected to find the previous sibling.");m.sibling=s}var y=f.deletions;return y===null?(f.deletions=[r],f.flags|=Wu):y.push(r),s.flags|=Wr,s}}function qw(r,a){var s=r.lanes;return!!Ma(s,a)}function Zj(r,a,s){switch(a.tag){case x:fR(a),a.stateNode,bh();break;case _:wT(a);break;case v:{var f=a.type;au(f)&&w2(a);break}case N:ew(a,a.stateNode.containerInfo);break;case P:{var m=a.memoizedProps.value,y=a.type._context;aT(a,y,m);break}case F:{var w=Ma(s,a.childLanes);w&&(a.flags|=dn);{var R=a.stateNode;R.effectDuration=0,R.passiveEffectDuration=0}}break;case $:{var O=a.memoizedState;if(O!==null){if(O.dehydrated!==null)return Af(a,Nh(El.current)),a.flags|=Un,null;var U=a.child,H=U.childLanes;if(Ma(s,H))return pR(r,a,s);Af(a,Nh(El.current));var te=vc(r,a,s);return te!==null?te.sibling:null}else Af(a,Nh(El.current));break}case ge:{var ee=(r.flags&Un)!==zt,he=Ma(s,a.childLanes);if(ee){if(he)return gR(r,a,s);a.flags|=Un}var ve=a.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),Af(a,El.current),he)break;return null}case re:case ie:return a.lanes=Fe,lR(r,a,s)}return vc(r,a,s)}function SR(r,a,s){if(a._debugNeedsRemount&&r!==null)return qj(r,a,w9(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var f=r.memoizedProps,m=a.pendingProps;if(f!==m||C2()||a.type!==r.type)Rl=!0;else{var y=qw(r,s);if(!y&&(a.flags&Un)===zt)return Rl=!1,Zj(r,a,s);(r.flags&Qv)!==zt?Rl=!0:Rl=!1}}else if(Rl=!1,ca()&&x$(a)){var w=a.index,R=C$();YE(a,R,w)}switch(a.lanes=Fe,a.tag){case b:return kj(r,a,a.type,s);case ue:{var O=a.elementType;return Rj(r,a,O,s)}case h:{var U=a.type,H=a.pendingProps,te=a.elementType===U?H:_l(U,H);return Uw(r,a,U,te,s)}case v:{var ee=a.type,he=a.pendingProps,ve=a.elementType===ee?he:_l(ee,he);return cR(r,a,ee,ve,s)}case x:return _j(r,a,s);case _:return Ej(r,a,s);case T:return Tj(r,a);case $:return pR(r,a,s);case N:return Wj(r,a,s);case I:{var Ee=a.type,pt=a.pendingProps,At=a.elementType===Ee?pt:_l(Ee,pt);return aR(r,a,Ee,At,s)}case A:return Cj(r,a,s);case M:return Nj(r,a,s);case F:return wj(r,a,s);case P:return Gj(r,a,s);case z:return Yj(r,a,s);case Y:{var Ct=a.type,Pn=a.pendingProps,_n=_l(Ct,Pn);if(a.type!==a.elementType){var fe=Ct.propTypes;fe&&br(fe,_n,"prop",cn(Ct))}return _n=_l(Ct.type,_n),oR(r,a,Ct,_n,s)}case Z:return sR(r,a,a.type,a.pendingProps,s);case ce:{var Te=a.type,de=a.pendingProps,We=a.elementType===Te?de:_l(Te,de);return Aj(r,a,Te,We,s)}case ge:return gR(r,a,s);case Ye:break;case re:return lR(r,a,s)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ah(r){r.flags|=dn}function xR(r){r.flags|=Yi,r.flags|=vl}var CR,Zw,NR,wR;CR=function(r,a,s,f){for(var m=a.child;m!==null;){if(m.tag===_||m.tag===T)TC(r,m.stateNode);else if(m.tag!==N){if(m.child!==null){m.child.return=m,m=m.child;continue}}if(m===a)return;for(;m.sibling===null;){if(m.return===null||m.return===a)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},Zw=function(r,a){},NR=function(r,a,s,f,m){var y=r.memoizedProps;if(y!==f){var w=a.stateNode,R=tw(),O=AC(w,s,y,f,m,R);a.updateQueue=O,O&&Ah(a)}},wR=function(r,a,s,f){s!==f&&Ah(a)};function P1(r,a){if(!ca())switch(r.tailMode){case"hidden":{for(var s=r.tail,f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?r.tail=null:f.sibling=null;break}case"collapsed":{for(var m=r.tail,y=null;m!==null;)m.alternate!==null&&(y=m),m=m.sibling;y===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:y.sibling=null;break}}}function da(r){var a=r.alternate!==null&&r.alternate.child===r.child,s=Fe,f=zt;if(a){if((r.mode&Wn)!==Dt){for(var O=r.selfBaseDuration,U=r.child;U!==null;)s=pn(s,pn(U.lanes,U.childLanes)),f|=U.subtreeFlags&Ts,f|=U.flags&Ts,O+=U.treeBaseDuration,U=U.sibling;r.treeBaseDuration=O}else for(var H=r.child;H!==null;)s=pn(s,pn(H.lanes,H.childLanes)),f|=H.subtreeFlags&Ts,f|=H.flags&Ts,H.return=r,H=H.sibling;r.subtreeFlags|=f}else{if((r.mode&Wn)!==Dt){for(var m=r.actualDuration,y=r.selfBaseDuration,w=r.child;w!==null;)s=pn(s,pn(w.lanes,w.childLanes)),f|=w.subtreeFlags,f|=w.flags,m+=w.actualDuration,y+=w.treeBaseDuration,w=w.sibling;r.actualDuration=m,r.treeBaseDuration=y}else for(var R=r.child;R!==null;)s=pn(s,pn(R.lanes,R.childLanes)),f|=R.subtreeFlags,f|=R.flags,R.return=r,R=R.sibling;r.subtreeFlags|=f}return r.childLanes=s,a}function Kj(r,a,s){if(P$()&&(a.mode&Nn)!==Dt&&(a.flags&Un)===zt)return eT(a),bh(),a.flags|=pl|Td|ra,!1;var f=A2(a);if(s!==null&&s.dehydrated!==null)if(r===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(M$(a),da(a),(a.mode&Wn)!==Dt){var m=s!==null;if(m){var y=a.child;y!==null&&(a.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(bh(),(a.flags&Un)===zt&&(a.memoizedState=null),a.flags|=dn,da(a),(a.mode&Wn)!==Dt){var w=s!==null;if(w){var R=a.child;R!==null&&(a.treeBaseDuration-=R.treeBaseDuration)}}return!1}else return tT(),!0}function _R(r,a,s){var f=a.pendingProps;switch(xN(a),a.tag){case b:case ue:case Z:case h:case I:case A:case M:case F:case z:case Y:return da(a),null;case v:{var m=a.type;return au(m)&&N2(a),da(a),null}case x:{var y=a.stateNode;if(Ch(a),gN(a),ow(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),r===null||r.child===null){var w=A2(a);if(w)Ah(a);else if(r!==null){var R=r.memoizedState;(!R.isDehydrated||(a.flags&pl)!==zt)&&(a.flags|=Gu,tT())}}return Zw(r,a),da(a),null}case _:{nw(a);var O=NT(),U=a.type;if(r!==null&&a.stateNode!=null)NR(r,a,U,f,O),r.ref!==a.ref&&xR(a);else{if(!f){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return da(a),null}var H=tw(),te=A2(a);if(te)L$(a,O,H)&&Ah(a);else{var ee=EC(U,f,O,H,a);CR(ee,a,!1,!1),a.stateNode=ee,RC(ee,U,f,O)&&Ah(a)}a.ref!==null&&xR(a)}return da(a),null}case T:{var he=f;if(r&&a.stateNode!=null){var ve=r.memoizedProps;wR(r,a,ve,he)}else{if(typeof he!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ee=NT(),pt=tw(),At=A2(a);At?O$(a)&&Ah(a):a.stateNode=kC(he,Ee,pt,a)}return da(a),null}case $:{wh(a);var Ct=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var Pn=Kj(r,a,Ct);if(!Pn)return a.flags&ra?a:null}if((a.flags&Un)!==zt)return a.lanes=s,(a.mode&Wn)!==Dt&&Lw(a),a;var _n=Ct!==null,fe=r!==null&&r.memoizedState!==null;if(_n!==fe&&_n){var Te=a.child;if(Te.flags|=Yu,(a.mode&Nn)!==Dt){var de=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!we);de||rw(El.current,ET)?XV():p9()}}var We=a.updateQueue;if(We!==null&&(a.flags|=dn),da(a),(a.mode&Wn)!==Dt&&_n){var mt=a.child;mt!==null&&(a.treeBaseDuration-=mt.treeBaseDuration)}return null}case N:return Ch(a),Zw(r,a),r===null&&mN(a.stateNode.containerInfo),da(a),null;case P:var ut=a.type._context;return kN(ut,a),da(a),null;case ce:{var Ht=a.type;return au(Ht)&&N2(a),da(a),null}case ge:{wh(a);var tn=a.memoizedState;if(tn===null)return da(a),null;var sr=(a.flags&Un)!==zt,Gn=tn.rendering;if(Gn===null)if(sr)P1(tn,!1);else{var ri=JV()&&(r===null||(r.flags&Un)===zt);if(!ri)for(var Yn=a.child;Yn!==null;){var Yr=G2(Yn);if(Yr!==null){sr=!0,a.flags|=Un,P1(tn,!1);var Ua=Yr.updateQueue;return Ua!==null&&(a.updateQueue=Ua,a.flags|=dn),a.subtreeFlags=zt,J$(a,s),Af(a,iw(El.current,w1)),a.child}Yn=Yn.sibling}tn.tail!==null&&Mr()>GR()&&(a.flags|=Un,sr=!0,P1(tn,!1),a.lanes=dy)}else{if(!sr){var ga=G2(Gn);if(ga!==null){a.flags|=Un,sr=!0;var is=ga.updateQueue;if(is!==null&&(a.updateQueue=is,a.flags|=dn),P1(tn,!0),tn.tail===null&&tn.tailMode==="hidden"&&!Gn.alternate&&!ca())return da(a),null}else Mr()*2-tn.renderingStartTime>GR()&&s!==to&&(a.flags|=Un,sr=!0,P1(tn,!1),a.lanes=dy)}if(tn.isBackwards)Gn.sibling=a.child,a.child=Gn;else{var oo=tn.last;oo!==null?oo.sibling=Gn:a.child=Gn,tn.last=Gn}}if(tn.tail!==null){var so=tn.tail;tn.rendering=so,tn.tail=so.sibling,tn.renderingStartTime=Mr(),so.sibling=null;var $a=El.current;return sr?$a=iw($a,w1):$a=Nh($a),Af(a,$a),so}return da(a),null}case Ye:break;case re:case ie:{d9(a);var xc=a.memoizedState,Fh=xc!==null;if(r!==null){var X1=r.memoizedState,pu=X1!==null;pu!==Fh&&!me&&(a.flags|=Yu)}return!Fh||(a.mode&Nn)===Dt?da(a):Ma(du,to)&&(da(a),a.subtreeFlags&(Wr|dn)&&(a.flags|=Yu)),null}case Ce:return null;case xe:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Xj(r,a,s){switch(xN(a),a.tag){case v:{var f=a.type;au(f)&&N2(a);var m=a.flags;return m&ra?(a.flags=m&~ra|Un,(a.mode&Wn)!==Dt&&Lw(a),a):null}case x:{a.stateNode,Ch(a),gN(a),ow();var y=a.flags;return(y&ra)!==zt&&(y&Un)===zt?(a.flags=y&~ra|Un,a):null}case _:return nw(a),null;case $:{wh(a);var w=a.memoizedState;if(w!==null&&w.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");bh()}var R=a.flags;return R&ra?(a.flags=R&~ra|Un,(a.mode&Wn)!==Dt&&Lw(a),a):null}case ge:return wh(a),null;case N:return Ch(a),null;case P:var O=a.type._context;return kN(O,a),null;case re:case ie:return d9(a),null;case Ce:return null;default:return null}}function ER(r,a,s){switch(xN(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&N2(a);break}case x:{a.stateNode,Ch(a),gN(a),ow();break}case _:{nw(a);break}case N:Ch(a);break;case $:wh(a);break;case ge:wh(a);break;case P:var m=a.type._context;kN(m,a);break;case re:case ie:d9(a);break}}var TR=null;TR=new Set;var h5=!1,pa=!1,Qj=typeof WeakSet=="function"?WeakSet:Set,St=null,kh=null,Lh=null;function Jj(r){Xc(null,function(){throw r}),ql()}var eV=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&Wn)try{cu(),a.componentWillUnmount()}finally{uu(r)}else a.componentWillUnmount()};function RR(r,a){try{Of(Oi,r)}catch(s){yr(r,a,s)}}function Kw(r,a,s){try{eV(r,s)}catch(f){yr(r,a,f)}}function tV(r,a,s){try{s.componentDidMount()}catch(f){yr(r,a,f)}}function AR(r,a){try{LR(r)}catch(s){yr(r,a,s)}}function Oh(r,a){var s=r.ref;if(s!==null)if(typeof s=="function"){var f;try{if(bt&&Wt&&r.mode&Wn)try{cu(),f=s(null)}finally{uu(r)}else f=s(null)}catch(m){yr(r,a,m)}typeof f=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",jt(r))}else s.current=null}function v5(r,a,s){try{s()}catch(f){yr(r,a,f)}}var kR=!1;function nV(r,a){wC(r.containerInfo),St=a,rV();var s=kR;return kR=!1,s}function rV(){for(;St!==null;){var r=St,a=r.child;(r.subtreeFlags&e0)!==zt&&a!==null?(a.return=r,St=a):iV()}}function iV(){for(;St!==null;){var r=St;ar(r);try{aV(r)}catch(s){yr(r,r.return,s)}Rr();var a=r.sibling;if(a!==null){a.return=r.return,St=a;return}St=r.return}}function aV(r){var a=r.alternate,s=r.flags;if((s&Gu)!==zt){switch(ar(r),r.tag){case h:case I:case Z:break;case v:{if(a!==null){var f=a.memoizedProps,m=a.memoizedState,y=r.stateNode;r.type===r.elementType&&!Ep&&(y.props!==r.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(r)||"instance"),y.state!==r.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(r)||"instance"));var w=y.getSnapshotBeforeUpdate(r.elementType===r.type?f:_l(r.type,f),m);{var R=TR;w===void 0&&!R.has(r.type)&&(R.add(r.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",jt(r)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case x:{{var O=r.stateNode;HC(O.containerInfo)}break}case _:case T:case N:case ce:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Rr()}}function Al(r,a,s){var f=a.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var y=m.next,w=y;do{if((w.tag&r)===r){var R=w.destroy;w.destroy=void 0,R!==void 0&&((r&fa)!==wo?I3(a):(r&Oi)!==wo&&ry(a),(r&ou)!==wo&&q1(!0),v5(a,s,R),(r&ou)!==wo&&q1(!1),(r&fa)!==wo?u0():(r&Oi)!==wo&&iy())}w=w.next}while(w!==y)}}function Of(r,a){var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var m=f.next,y=m;do{if((y.tag&r)===r){(r&fa)!==wo?Md(a):(r&Oi)!==wo&&ny(a);var w=y.create;(r&ou)!==wo&&q1(!0),y.destroy=w(),(r&ou)!==wo&&q1(!1),(r&fa)!==wo?P3():(r&Oi)!==wo&&F3();{var R=y.destroy;if(R!==void 0&&typeof R!="function"){var O=void 0;(y.tag&Oi)!==zt?O="useLayoutEffect":(y.tag&ou)!==zt?O="useInsertionEffect":O="useEffect";var U=void 0;R===null?U=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof R.then=="function"?U=`
It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+O+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:U=" You returned: "+R,c("%s must not return anything besides a function, which is used for clean-up.%s",O,U)}}}y=y.next}while(y!==m)}}function oV(r,a){if((a.flags&dn)!==zt)switch(a.tag){case F:{var s=a.stateNode.passiveEffectDuration,f=a.memoizedProps,m=f.id,y=f.onPostCommit,w=QT(),R=a.alternate===null?"mount":"update";XT()&&(R="nested-update"),typeof y=="function"&&y(m,R,s,w);var O=a.return;e:for(;O!==null;){switch(O.tag){case x:var U=O.stateNode;U.passiveEffectDuration+=s;break e;case F:var H=O.stateNode;H.passiveEffectDuration+=s;break e}O=O.return}break}}}function sV(r,a,s,f){if((s.flags&Rd)!==zt)switch(s.tag){case h:case I:case Z:{if(!pa)if(s.mode&Wn)try{cu(),Of(Oi|Li,s)}finally{uu(s)}else Of(Oi|Li,s);break}case v:{var m=s.stateNode;if(s.flags&dn&&!pa)if(a===null)if(s.type===s.elementType&&!Ep&&(m.props!==s.memoizedProps&&c("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),m.state!==s.memoizedState&&c("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),s.mode&Wn)try{cu(),m.componentDidMount()}finally{uu(s)}else m.componentDidMount();else{var y=s.elementType===s.type?a.memoizedProps:_l(s.type,a.memoizedProps),w=a.memoizedState;if(s.type===s.elementType&&!Ep&&(m.props!==s.memoizedProps&&c("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),m.state!==s.memoizedState&&c("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),s.mode&Wn)try{cu(),m.componentDidUpdate(y,w,m.__reactInternalSnapshotBeforeUpdate)}finally{uu(s)}else m.componentDidUpdate(y,w,m.__reactInternalSnapshotBeforeUpdate)}var R=s.updateQueue;R!==null&&(s.type===s.elementType&&!Ep&&(m.props!==s.memoizedProps&&c("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",jt(s)||"instance"),m.state!==s.memoizedState&&c("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",jt(s)||"instance")),fT(s,R,m));break}case x:{var O=s.updateQueue;if(O!==null){var U=null;if(s.child!==null)switch(s.child.tag){case _:U=s.child.stateNode;break;case v:U=s.child.stateNode;break}fT(s,O,U)}break}case _:{var H=s.stateNode;if(a===null&&s.flags&dn){var te=s.type,ee=s.memoizedProps;PC(H,te,ee)}break}case T:break;case N:break;case F:{{var he=s.memoizedProps,ve=he.onCommit,Ee=he.onRender,pt=s.stateNode.effectDuration,At=QT(),Ct=a===null?"mount":"update";XT()&&(Ct="nested-update"),typeof Ee=="function"&&Ee(s.memoizedProps.id,Ct,s.actualDuration,s.treeBaseDuration,s.actualStartTime,At);{typeof ve=="function"&&ve(s.memoizedProps.id,Ct,pt,At),iH(s);var Pn=s.return;e:for(;Pn!==null;){switch(Pn.tag){case x:var _n=Pn.stateNode;_n.effectDuration+=pt;break e;case F:var fe=Pn.stateNode;fe.effectDuration+=pt;break e}Pn=Pn.return}}}break}case $:{hV(r,s);break}case ge:case ce:case Ye:case re:case ie:case xe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}pa||s.flags&Yi&&LR(s)}function lV(r){switch(r.tag){case h:case I:case Z:{if(r.mode&Wn)try{cu(),RR(r,r.return)}finally{uu(r)}else RR(r,r.return);break}case v:{var a=r.stateNode;typeof a.componentDidMount=="function"&&tV(r,r.return,a),AR(r,r.return);break}case _:{AR(r,r.return);break}}}function uV(r,a){for(var s=null,f=r;;){if(f.tag===_){if(s===null){s=f;try{var m=f.stateNode;a?u1(m):jC(f.stateNode,f.memoizedProps)}catch(w){yr(r,r.return,w)}}}else if(f.tag===T){if(s===null)try{var y=f.stateNode;a?$C(y):VC(y,f.memoizedProps)}catch(w){yr(r,r.return,w)}}else if(!((f.tag===re||f.tag===ie)&&f.memoizedState!==null&&f!==r)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;s===f&&(s=null),f=f.return}s===f&&(s=null),f.sibling.return=f.return,f=f.sibling}}function LR(r){var a=r.ref;if(a!==null){var s=r.stateNode,f;switch(r.tag){case _:f=s;break;default:f=s}if(typeof a=="function"){var m;if(r.mode&Wn)try{cu(),m=a(f)}finally{uu(r)}else m=a(f);typeof m=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",jt(r))}else a.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",jt(r)),a.current=f}}function cV(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function OR(r){var a=r.alternate;a!==null&&(r.alternate=null,OR(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===_){var s=r.stateNode;s!==null&&q(s)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function fV(r){for(var a=r.return;a!==null;){if(MR(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function MR(r){return r.tag===_||r.tag===x||r.tag===N}function DR(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||MR(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==_&&a.tag!==T&&a.tag!==le;){if(a.flags&Wr||a.child===null||a.tag===N)continue e;a.child.return=a,a=a.child}if(!(a.flags&Wr))return a.stateNode}}function dV(r){var a=fV(r);switch(a.tag){case _:{var s=a.stateNode;a.flags&Ed&&(o1(s),a.flags&=~Ed);var f=DR(r);Qw(r,f,s);break}case x:case N:{var m=a.stateNode.containerInfo,y=DR(r);Xw(r,y,m);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Xw(r,a,s){var f=r.tag,m=f===_||f===T;if(m){var y=r.stateNode;a?s1(s,y,a):FC(s,y)}else if(f!==N){var w=r.child;if(w!==null){Xw(w,a,s);for(var R=w.sibling;R!==null;)Xw(R,a,s),R=R.sibling}}}function Qw(r,a,s){var f=r.tag,m=f===_||f===T;if(m){var y=r.stateNode;a?zC(s,y,a):IC(s,y)}else if(f!==N){var w=r.child;if(w!==null){Qw(w,a,s);for(var R=w.sibling;R!==null;)Qw(R,a,s),R=R.sibling}}}var ma=null,kl=!1;function pV(r,a,s){{var f=a;e:for(;f!==null;){switch(f.tag){case _:{ma=f.stateNode,kl=!1;break e}case x:{ma=f.stateNode.containerInfo,kl=!0;break e}case N:{ma=f.stateNode.containerInfo,kl=!0;break e}}f=f.return}if(ma===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");PR(r,a,s),ma=null,kl=!1}cV(s)}function Mf(r,a,s){for(var f=s.child;f!==null;)PR(r,a,f),f=f.sibling}function PR(r,a,s){switch(M3(s),s.tag){case _:pa||Oh(s,a);case T:{{var f=ma,m=kl;ma=null,Mf(r,a,s),ma=f,kl=m,ma!==null&&(kl?UC(ma,s.stateNode):BC(ma,s.stateNode))}return}case le:{ma!==null&&(kl?Fa(ma,s.stateNode):l1(ma,s.stateNode));return}case N:{{var y=ma,w=kl;ma=s.stateNode.containerInfo,kl=!0,Mf(r,a,s),ma=y,kl=w}return}case h:case I:case Y:case Z:{if(!pa){var R=s.updateQueue;if(R!==null){var O=R.lastEffect;if(O!==null){var U=O.next,H=U;do{var te=H,ee=te.destroy,he=te.tag;ee!==void 0&&((he&ou)!==wo?v5(s,a,ee):(he&Oi)!==wo&&(ry(s),s.mode&Wn?(cu(),v5(s,a,ee),uu(s)):v5(s,a,ee),iy())),H=H.next}while(H!==U)}}}Mf(r,a,s);return}case v:{if(!pa){Oh(s,a);var ve=s.stateNode;typeof ve.componentWillUnmount=="function"&&Kw(s,a,ve)}Mf(r,a,s);return}case Ye:{Mf(r,a,s);return}case re:{if(s.mode&Nn){var Ee=pa;pa=Ee||s.memoizedState!==null,Mf(r,a,s),pa=Ee}else Mf(r,a,s);break}default:{Mf(r,a,s);return}}}function mV(r){r.memoizedState}function hV(r,a){var s=a.memoizedState;if(s===null){var f=a.alternate;if(f!==null){var m=f.memoizedState;if(m!==null){var y=m.dehydrated;y!==null&&eN(y)}}}}function IR(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var s=r.stateNode;s===null&&(s=r.stateNode=new Qj),a.forEach(function(f){var m=fH.bind(null,r,f);if(!s.has(f)){if(s.add(f),Ai)if(kh!==null&&Lh!==null)Y1(Lh,kh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(m,m)}})}}function vV(r,a,s){kh=s,Lh=r,ar(a),FR(a,r),ar(a),kh=null,Lh=null}function Ll(r,a,s){var f=a.deletions;if(f!==null)for(var m=0;m<f.length;m++){var y=f[m];try{pV(r,a,y)}catch(O){yr(y,a,O)}}var w=Zo();if(a.subtreeFlags&t0)for(var R=a.child;R!==null;)ar(R),FR(R,r),R=R.sibling;ar(w)}function FR(r,a,s){var f=r.alternate,m=r.flags;switch(r.tag){case h:case I:case Y:case Z:{if(Ll(a,r),fu(r),m&dn){try{Al(ou|Li,r,r.return),Of(ou|Li,r)}catch(Ht){yr(r,r.return,Ht)}if(r.mode&Wn){try{cu(),Al(Oi|Li,r,r.return)}catch(Ht){yr(r,r.return,Ht)}uu(r)}else try{Al(Oi|Li,r,r.return)}catch(Ht){yr(r,r.return,Ht)}}return}case v:{Ll(a,r),fu(r),m&Yi&&f!==null&&Oh(f,f.return);return}case _:{Ll(a,r),fu(r),m&Yi&&f!==null&&Oh(f,f.return);{if(r.flags&Ed){var y=r.stateNode;try{o1(y)}catch(Ht){yr(r,r.return,Ht)}}if(m&dn){var w=r.stateNode;if(w!=null){var R=r.memoizedProps,O=f!==null?f.memoizedProps:R,U=r.type,H=r.updateQueue;if(r.updateQueue=null,H!==null)try{a1(w,H,U,O,R,r)}catch(Ht){yr(r,r.return,Ht)}}}}return}case T:{if(Ll(a,r),fu(r),m&dn){if(r.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var te=r.stateNode,ee=r.memoizedProps,he=f!==null?f.memoizedProps:ee;try{y2(te,he,ee)}catch(Ht){yr(r,r.return,Ht)}}return}case x:{if(Ll(a,r),fu(r),m&dn&&f!==null){var ve=f.memoizedState;if(ve.isDehydrated)try{JC(a.containerInfo)}catch(Ht){yr(r,r.return,Ht)}}return}case N:{Ll(a,r),fu(r);return}case $:{Ll(a,r),fu(r);var Ee=r.child;if(Ee.flags&Yu){var pt=Ee.stateNode,At=Ee.memoizedState,Ct=At!==null;if(pt.isHidden=Ct,Ct){var Pn=Ee.alternate!==null&&Ee.alternate.memoizedState!==null;Pn||KV()}}if(m&dn){try{mV(r)}catch(Ht){yr(r,r.return,Ht)}IR(r)}return}case re:{var _n=f!==null&&f.memoizedState!==null;if(r.mode&Nn){var fe=pa;pa=fe||_n,Ll(a,r),pa=fe}else Ll(a,r);if(fu(r),m&Yu){var Te=r.stateNode,de=r.memoizedState,We=de!==null,mt=r;if(Te.isHidden=We,We&&!_n&&(mt.mode&Nn)!==Dt){St=mt;for(var ut=mt.child;ut!==null;)St=ut,bV(ut),ut=ut.sibling}uV(mt,We)}return}case ge:{Ll(a,r),fu(r),m&dn&&IR(r);return}case Ye:return;default:{Ll(a,r),fu(r);return}}}function fu(r){var a=r.flags;if(a&Wr){try{dV(r)}catch(s){yr(r,r.return,s)}r.flags&=~Wr}a&ml&&(r.flags&=~ml)}function gV(r,a,s){kh=s,Lh=a,St=r,zR(r,a,s),kh=null,Lh=null}function zR(r,a,s){for(var f=(r.mode&Nn)!==Dt;St!==null;){var m=St,y=m.child;if(m.tag===re&&f){var w=m.memoizedState!==null,R=w||h5;if(R){Jw(r,a,s);continue}else{var O=m.alternate,U=O!==null&&O.memoizedState!==null,H=U||pa,te=h5,ee=pa;h5=R,pa=H,pa&&!ee&&(St=m,yV(m));for(var he=y;he!==null;)St=he,zR(he,a,s),he=he.sibling;St=m,h5=te,pa=ee,Jw(r,a,s);continue}}(m.subtreeFlags&Rd)!==zt&&y!==null?(y.return=m,St=y):Jw(r,a,s)}}function Jw(r,a,s){for(;St!==null;){var f=St;if((f.flags&Rd)!==zt){var m=f.alternate;ar(f);try{sV(a,m,f,s)}catch(w){yr(f,f.return,w)}Rr()}if(f===r){St=null;return}var y=f.sibling;if(y!==null){y.return=f.return,St=y;return}St=f.return}}function bV(r){for(;St!==null;){var a=St,s=a.child;switch(a.tag){case h:case I:case Y:case Z:{if(a.mode&Wn)try{cu(),Al(Oi,a,a.return)}finally{uu(a)}else Al(Oi,a,a.return);break}case v:{Oh(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&Kw(a,a.return,f);break}case _:{Oh(a,a.return);break}case re:{var m=a.memoizedState!==null;if(m){BR(r);continue}break}}s!==null?(s.return=a,St=s):BR(r)}}function BR(r){for(;St!==null;){var a=St;if(a===r){St=null;return}var s=a.sibling;if(s!==null){s.return=a.return,St=s;return}St=a.return}}function yV(r){for(;St!==null;){var a=St,s=a.child;if(a.tag===re){var f=a.memoizedState!==null;if(f){UR(r);continue}}s!==null?(s.return=a,St=s):UR(r)}}function UR(r){for(;St!==null;){var a=St;ar(a);try{lV(a)}catch(f){yr(a,a.return,f)}if(Rr(),a===r){St=null;return}var s=a.sibling;if(s!==null){s.return=a.return,St=s;return}St=a.return}}function SV(r,a,s,f){St=a,xV(a,r,s,f)}function xV(r,a,s,f){for(;St!==null;){var m=St,y=m.child;(m.subtreeFlags&Jc)!==zt&&y!==null?(y.return=m,St=y):CV(r,a,s,f)}}function CV(r,a,s,f){for(;St!==null;){var m=St;if((m.flags&Jo)!==zt){ar(m);try{NV(a,m,s,f)}catch(w){yr(m,m.return,w)}Rr()}if(m===r){St=null;return}var y=m.sibling;if(y!==null){y.return=m.return,St=y;return}St=m.return}}function NV(r,a,s,f){switch(a.tag){case h:case I:case Z:{if(a.mode&Wn){kw();try{Of(fa|Li,a)}finally{Aw(a)}}else Of(fa|Li,a);break}}}function wV(r){St=r,_V()}function _V(){for(;St!==null;){var r=St,a=r.child;if((St.flags&Wu)!==zt){var s=r.deletions;if(s!==null){for(var f=0;f<s.length;f++){var m=s[f];St=m,RV(m,r)}{var y=r.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var R=w.sibling;w.sibling=null,w=R}while(w!==null)}}}St=r}}(r.subtreeFlags&Jc)!==zt&&a!==null?(a.return=r,St=a):EV()}}function EV(){for(;St!==null;){var r=St;(r.flags&Jo)!==zt&&(ar(r),TV(r),Rr());var a=r.sibling;if(a!==null){a.return=r.return,St=a;return}St=r.return}}function TV(r){switch(r.tag){case h:case I:case Z:{r.mode&Wn?(kw(),Al(fa|Li,r,r.return),Aw(r)):Al(fa|Li,r,r.return);break}}}function RV(r,a){for(;St!==null;){var s=St;ar(s),kV(s,a),Rr();var f=s.child;f!==null?(f.return=s,St=f):AV(r)}}function AV(r){for(;St!==null;){var a=St,s=a.sibling,f=a.return;if(OR(a),a===r){St=null;return}if(s!==null){s.return=f,St=s;return}St=f}}function kV(r,a){switch(r.tag){case h:case I:case Z:{r.mode&Wn?(kw(),Al(fa,r,a),Aw(r)):Al(fa,r,a);break}}}function LV(r){switch(r.tag){case h:case I:case Z:{try{Of(Oi|Li,r)}catch(s){yr(r,r.return,s)}break}case v:{var a=r.stateNode;try{a.componentDidMount()}catch(s){yr(r,r.return,s)}break}}}function OV(r){switch(r.tag){case h:case I:case Z:{try{Of(fa|Li,r)}catch(a){yr(r,r.return,a)}break}}}function MV(r){switch(r.tag){case h:case I:case Z:{try{Al(Oi|Li,r,r.return)}catch(s){yr(r,r.return,s)}break}case v:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&Kw(r,r.return,a);break}}}function DV(r){switch(r.tag){case h:case I:case Z:try{Al(fa|Li,r,r.return)}catch(a){yr(r,r.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var I1=Symbol.for;I1("selector.component"),I1("selector.has_pseudo_class"),I1("selector.role"),I1("selector.test_id"),I1("selector.text")}var PV=[];function IV(){PV.forEach(function(r){return r()})}var FV=n.ReactCurrentActQueue;function zV(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&a!==!1}}function $R(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&FV.current!==null&&c("The current testing environment is not configured to support act(...)"),r}}var BV=Math.ceil,e9=n.ReactCurrentDispatcher,t9=n.ReactCurrentOwner,ha=n.ReactCurrentBatchConfig,Ol=n.ReactCurrentActQueue,Pi=0,jR=1,va=2,Hs=4,gc=0,F1=1,Tp=2,g5=3,z1=4,VR=5,n9=6,Dn=Pi,io=null,Ur=null,Ii=Fe,du=Fe,r9=Ki(Fe),Fi=gc,B1=null,b5=Fe,U1=Fe,y5=Fe,$1=null,_o=null,i9=0,HR=500,WR=1/0,UV=500,bc=null;function j1(){WR=Mr()+UV}function GR(){return WR}var S5=!1,a9=null,Mh=null,Rp=!1,Df=null,V1=Fe,o9=[],s9=null,$V=50,H1=0,l9=null,u9=!1,x5=!1,jV=50,Dh=0,C5=null,W1=tr,N5=Fe,YR=!1;function w5(){return io}function ao(){return(Dn&(va|Hs))!==Pi?Mr():(W1!==tr||(W1=Mr()),W1)}function Pf(r){var a=r.mode;if((a&Nn)===Dt)return Yt;if((Dn&va)!==Pi&&Ii!==Fe)return $d(Ii);var s=z$()!==F$;if(s){if(ha.transition!==null){var f=ha.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(r)}return N5===ei&&(N5=Ud()),N5}var m=So();if(m!==ei)return m;var y=LC();return y}function VV(r){var a=r.mode;return(a&Nn)===Dt?Yt:hy()}function zi(r,a,s,f){pH(),YR&&c("useInsertionEffect must not schedule updates."),u9&&(x5=!0),nc(r,s,f),(Dn&va)!==Fe&&r===io?vH(a):(Ai&&Vm(r,a,s),gH(a),r===io&&((Dn&va)===Pi&&(U1=pn(U1,s)),Fi===z1&&If(r,Ii)),Eo(r,f),s===Yt&&Dn===Pi&&(a.mode&Nn)===Dt&&!Ol.isBatchingLegacy&&(j1(),GE()))}function HV(r,a,s){var f=r.current;f.lanes=a,nc(r,a,s),Eo(r,s)}function WV(r){return(Dn&va)!==Pi}function Eo(r,a){var s=r.callbackNode;Bd(r,a);var f=Bm(r,r===io?Ii:Fe);if(f===Fe){s!==null&&uA(s),r.callbackNode=null,r.callbackPriority=ei;return}var m=bl(f),y=r.callbackPriority;if(y===m&&!(Ol.current!==null&&s!==v9)){s==null&&y!==Yt&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&uA(s);var w;if(m===Yt)r.tag===wf?(Ol.isBatchingLegacy!==null&&(Ol.didScheduleLegacyUpdate=!0),S$(KR.bind(null,r))):WE(KR.bind(null,r)),Ol.current!==null?Ol.current.push(_f):MC(function(){(Dn&(va|Hs))===Pi&&_f()}),w=null;else{var R;switch(Ds(f)){case oa:R=kd;break;case Ms:R=i0;break;case Nr:R=As;break;case Hm:R=km;break;default:R=As;break}w=g9(R,qR.bind(null,r))}r.callbackPriority=m,r.callbackNode=w}function qR(r,a){if(pj(),W1=tr,N5=Fe,(Dn&(va|Hs))!==Pi)throw new Error("Should not already be working.");var s=r.callbackNode,f=Sc();if(f&&r.callbackNode!==s)return null;var m=Bm(r,r===io?Ii:Fe);if(m===Fe)return null;var y=!ec(r,m)&&!j3(r,m)&&!a,w=y?tH(r,m):E5(r,m);if(w!==gc){if(w===Tp){var R=Um(r);R!==Fe&&(m=R,w=c9(r,R))}if(w===F1){var O=B1;throw Ap(r,Fe),If(r,m),Eo(r,Mr()),O}if(w===n9)If(r,m);else{var U=!ec(r,m),H=r.current.alternate;if(U&&!YV(H)){if(w=E5(r,m),w===Tp){var te=Um(r);te!==Fe&&(m=te,w=c9(r,te))}if(w===F1){var ee=B1;throw Ap(r,Fe),If(r,m),Eo(r,Mr()),ee}}r.finishedWork=H,r.finishedLanes=m,GV(r,w,m)}}return Eo(r,Mr()),r.callbackNode===s?qR.bind(null,r):null}function c9(r,a){var s=$1;if(fi(r)){var f=Ap(r,a);f.flags|=pl,pN(r.containerInfo)}var m=E5(r,a);if(m!==Tp){var y=_o;_o=s,y!==null&&ZR(y)}return m}function ZR(r){_o===null?_o=r:_o.push.apply(_o,r)}function GV(r,a,s){switch(a){case gc:case F1:throw new Error("Root did not complete. This is a bug in React.");case Tp:{kp(r,_o,bc);break}case g5:{if(If(r,s),S0(s)&&!cA()){var f=i9+HR-Mr();if(f>10){var m=Bm(r,Fe);if(m!==Fe)break;var y=r.suspendedLanes;if(!tc(y,s)){ao(),Hd(r,y);break}r.timeoutHandle=r1(kp.bind(null,r,_o,bc),f);break}}kp(r,_o,bc);break}case z1:{if(If(r,s),x0(s))break;if(!cA()){var w=py(r,s),R=w,O=Mr()-R,U=dH(O)-O;if(U>10){r.timeoutHandle=r1(kp.bind(null,r,_o,bc),U);break}}kp(r,_o,bc);break}case VR:{kp(r,_o,bc);break}default:throw new Error("Unknown root exit status.")}}function YV(r){for(var a=r;;){if(a.flags&Em){var s=a.updateQueue;if(s!==null){var f=s.stores;if(f!==null)for(var m=0;m<f.length;m++){var y=f[m],w=y.getSnapshot,R=y.value;try{if(!sa(w(),R))return!1}catch{return!1}}}}var O=a.child;if(a.subtreeFlags&Em&&O!==null){O.return=a,a=O;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function If(r,a){a=jd(a,y5),a=jd(a,U1),N0(r,a)}function KR(r){if(mj(),(Dn&(va|Hs))!==Pi)throw new Error("Should not already be working.");Sc();var a=Bm(r,Fe);if(!Ma(a,Yt))return Eo(r,Mr()),null;var s=E5(r,a);if(r.tag!==wf&&s===Tp){var f=Um(r);f!==Fe&&(a=f,s=c9(r,f))}if(s===F1){var m=B1;throw Ap(r,Fe),If(r,a),Eo(r,Mr()),m}if(s===n9)throw new Error("Root did not complete. This is a bug in React.");var y=r.current.alternate;return r.finishedWork=y,r.finishedLanes=a,kp(r,_o,bc),Eo(r,Mr()),null}function qV(r,a){a!==Fe&&(Pt(r,pn(a,Yt)),Eo(r,Mr()),(Dn&(va|Hs))===Pi&&(j1(),_f()))}function f9(r,a){var s=Dn;Dn|=jR;try{return r(a)}finally{Dn=s,Dn===Pi&&!Ol.isBatchingLegacy&&(j1(),GE())}}function ZV(r,a,s,f,m){var y=So(),w=ha.transition;try{return ha.transition=null,ci(oa),r(a,s,f,m)}finally{ci(y),ha.transition=w,Dn===Pi&&j1()}}function yc(r){Df!==null&&Df.tag===wf&&(Dn&(va|Hs))===Pi&&Sc();var a=Dn;Dn|=jR;var s=ha.transition,f=So();try{return ha.transition=null,ci(oa),r?r():void 0}finally{ci(f),ha.transition=s,Dn=a,(Dn&(va|Hs))===Pi&&_f()}}function XR(){return(Dn&(va|Hs))!==Pi}function _5(r,a){za(r9,du,r),du=pn(du,a)}function d9(r){du=r9.current,ki(r9,r)}function Ap(r,a){r.finishedWork=null,r.finishedLanes=Fe;var s=r.timeoutHandle;if(s!==i1&&(r.timeoutHandle=i1,OC(s)),Ur!==null)for(var f=Ur.return;f!==null;){var m=f.alternate;ER(m,f),f=f.return}io=r;var y=Lp(r.current,null);return Ur=y,Ii=du=a,Fi=gc,B1=null,b5=Fe,U1=Fe,y5=Fe,$1=null,_o=null,j$(),wl.discardPendingWarnings(),y}function QR(r,a){do{var s=Ur;try{if(M2(),RT(),Rr(),t9.current=null,s===null||s.return===null){Fi=F1,B1=a,Ur=null;return}if(bt&&s.mode&Wn&&f5(s,!0),it)if(ef(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;c0(s,f,Ii)}else ay(s,a,Ii);yj(r,s.return,s,a,Ii),nA(s)}catch(m){a=m,Ur===s&&s!==null?(s=s.return,Ur=s):s=Ur;continue}return}while(!0)}function JR(){var r=e9.current;return e9.current=o5,r===null?o5:r}function eA(r){e9.current=r}function KV(){i9=Mr()}function G1(r){b5=pn(r,b5)}function XV(){Fi===gc&&(Fi=g5)}function p9(){(Fi===gc||Fi===g5||Fi===Tp)&&(Fi=z1),io!==null&&(cf(b5)||cf(U1))&&If(io,Ii)}function QV(r){Fi!==z1&&(Fi=Tp),$1===null?$1=[r]:$1.push(r)}function JV(){return Fi===gc}function E5(r,a){var s=Dn;Dn|=va;var f=JR();if(io!==r||Ii!==a){if(Ai){var m=r.memoizedUpdaters;m.size>0&&(Y1(r,Ii),m.clear()),Ql(r,a)}bc=gy(),Ap(r,a)}d0(a);do try{eH();break}catch(y){QR(r,y)}while(!0);if(M2(),Dn=s,eA(f),Ur!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ly(),io=null,Ii=Fe,Fi}function eH(){for(;Ur!==null;)tA(Ur)}function tH(r,a){var s=Dn;Dn|=va;var f=JR();if(io!==r||Ii!==a){if(Ai){var m=r.memoizedUpdaters;m.size>0&&(Y1(r,Ii),m.clear()),Ql(r,a)}bc=gy(),j1(),Ap(r,a)}d0(a);do try{nH();break}catch(y){QR(r,y)}while(!0);return M2(),eA(f),Dn=s,Ur!==null?(Lm(),gc):(ly(),io=null,Ii=Fe,Fi)}function nH(){for(;Ur!==null&&!Jb();)tA(Ur)}function tA(r){var a=r.alternate;ar(r);var s;(r.mode&Wn)!==Dt?(Rw(r),s=m9(a,r,du),f5(r,!0)):s=m9(a,r,du),Rr(),r.memoizedProps=r.pendingProps,s===null?nA(r):Ur=s,t9.current=null}function nA(r){var a=r;do{var s=a.alternate,f=a.return;if((a.flags&Td)===zt){ar(a);var m=void 0;if((a.mode&Wn)===Dt?m=_R(s,a,du):(Rw(a),m=_R(s,a,du),f5(a,!1)),Rr(),m!==null){Ur=m;return}}else{var y=Xj(s,a);if(y!==null){y.flags&=A3,Ur=y;return}if((a.mode&Wn)!==Dt){f5(a,!1);for(var w=a.actualDuration,R=a.child;R!==null;)w+=R.actualDuration,R=R.sibling;a.actualDuration=w}if(f!==null)f.flags|=Td,f.subtreeFlags=zt,f.deletions=null;else{Fi=n9,Ur=null;return}}var O=a.sibling;if(O!==null){Ur=O;return}a=f,Ur=a}while(a!==null);Fi===gc&&(Fi=VR)}function kp(r,a,s){var f=So(),m=ha.transition;try{ha.transition=null,ci(oa),rH(r,a,s,f)}finally{ha.transition=m,ci(f)}return null}function rH(r,a,s,f){do Sc();while(Df!==null);if(mH(),(Dn&(va|Hs))!==Pi)throw new Error("Should not already be working.");var m=r.finishedWork,y=r.finishedLanes;if(Ld(y),m===null)return l0(),null;if(y===Fe&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Fe,m===r.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");r.callbackNode=null,r.callbackPriority=ei;var w=pn(m.lanes,m.childLanes);ff(r,w),r===io&&(io=null,Ur=null,Ii=Fe),((m.subtreeFlags&Jc)!==zt||(m.flags&Jc)!==zt)&&(Rp||(Rp=!0,s9=s,g9(As,function(){return Sc(),null})));var R=(m.subtreeFlags&(e0|t0|Rd|Jc))!==zt,O=(m.flags&(e0|t0|Rd|Jc))!==zt;if(R||O){var U=ha.transition;ha.transition=null;var H=So();ci(oa);var te=Dn;Dn|=Hs,t9.current=null,nV(r,m),JT(),vV(r,m,y),_C(r.containerInfo),r.current=m,z3(y),gV(m,r,y),f0(),ey(),Dn=te,ci(H),ha.transition=U}else r.current=m,JT();var ee=Rp;if(Rp?(Rp=!1,Df=r,V1=y):(Dh=0,C5=null),w=r.pendingLanes,w===Fe&&(Mh=null),ee||oA(r.current,!1),o0(m.stateNode,f),Ai&&r.memoizedUpdaters.clear(),IV(),Eo(r,Mr()),a!==null)for(var he=r.onRecoverableError,ve=0;ve<a.length;ve++){var Ee=a[ve],pt=Ee.stack,At=Ee.digest;he(Ee.value,{componentStack:pt,digest:At})}if(S5){S5=!1;var Ct=a9;throw a9=null,Ct}return Ma(V1,Yt)&&r.tag!==wf&&Sc(),w=r.pendingLanes,Ma(w,Yt)?(dj(),r===l9?H1++:(H1=0,l9=r)):H1=0,_f(),l0(),null}function Sc(){if(Df!==null){var r=Ds(V1),a=H3(Nr,r),s=ha.transition,f=So();try{return ha.transition=null,ci(a),aH()}finally{ci(f),ha.transition=s}}return!1}function iH(r){o9.push(r),Rp||(Rp=!0,g9(As,function(){return Sc(),null}))}function aH(){if(Df===null)return!1;var r=s9;s9=null;var a=Df,s=V1;if(Df=null,V1=Fe,(Dn&(va|Hs))!==Pi)throw new Error("Cannot flush passive effects while already rendering.");u9=!0,x5=!1,oy(s);var f=Dn;Dn|=Hs,wV(a.current),SV(a,a.current,s,r);{var m=o9;o9=[];for(var y=0;y<m.length;y++){var w=m[y];oV(a,w)}}sy(),oA(a.current,!0),Dn=f,_f(),x5?a===C5?Dh++:(Dh=0,C5=a):Dh=0,u9=!1,x5=!1,O3(a);{var R=a.current.stateNode;R.effectDuration=0,R.passiveEffectDuration=0}return!0}function rA(r){return Mh!==null&&Mh.has(r)}function oH(r){Mh===null?Mh=new Set([r]):Mh.add(r)}function sH(r){S5||(S5=!0,a9=r)}var lH=sH;function iA(r,a,s){var f=_p(s,a),m=tR(r,f,Yt),y=Tf(r,m,Yt),w=ao();y!==null&&(nc(y,Yt,w),Eo(y,w))}function yr(r,a,s){if(Jj(s),q1(!1),r.tag===x){iA(r,r,s);return}var f=null;for(f=a;f!==null;){if(f.tag===x){iA(f,r,s);return}else if(f.tag===v){var m=f.type,y=f.stateNode;if(typeof m.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!rA(y)){var w=_p(s,r),R=Dw(f,w,Yt),O=Tf(f,R,Yt),U=ao();O!==null&&(nc(O,Yt,U),Eo(O,U));return}}f=f.return}c(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,s)}function uH(r,a,s){var f=r.pingCache;f!==null&&f.delete(a);var m=ao();Hd(r,s),bH(r),io===r&&tc(Ii,s)&&(Fi===z1||Fi===g5&&S0(Ii)&&Mr()-i9<HR?Ap(r,Fe):y5=pn(y5,s)),Eo(r,m)}function aA(r,a){a===ei&&(a=VV(r));var s=ao(),f=No(r,a);f!==null&&(nc(f,a,s),Eo(f,s))}function cH(r){var a=r.memoizedState,s=ei;a!==null&&(s=a.retryLane),aA(r,s)}function fH(r,a){var s=ei,f;switch(r.tag){case $:f=r.stateNode;var m=r.memoizedState;m!==null&&(s=m.retryLane);break;case ge:f=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),aA(r,s)}function dH(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:BV(r/1960)*1960}function pH(){if(H1>$V)throw H1=0,l9=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Dh>jV&&(Dh=0,C5=null,c("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function mH(){wl.flushLegacyContextWarning(),wl.flushPendingUnsafeLifecycleWarnings()}function oA(r,a){ar(r),T5(r,Jr,MV),a&&T5(r,Tm,DV),T5(r,Jr,LV),a&&T5(r,Tm,OV),Rr()}function T5(r,a,s){for(var f=r,m=null;f!==null;){var y=f.subtreeFlags&a;f!==m&&f.child!==null&&y!==zt?f=f.child:((f.flags&a)!==zt&&s(f),f.sibling!==null?f=f.sibling:f=m=f.return)}}var R5=null;function sA(r){{if((Dn&va)!==Pi||!(r.mode&Nn))return;var a=r.tag;if(a!==b&&a!==x&&a!==v&&a!==h&&a!==I&&a!==Y&&a!==Z)return;var s=jt(r)||"ReactComponent";if(R5!==null){if(R5.has(s))return;R5.add(s)}else R5=new Set([s]);var f=Cr;try{ar(r),c("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{f?ar(r):Rr()}}}var m9;{var hH=null;m9=function(r,a,s){var f=hA(hH,a);try{return SR(r,a,s)}catch(y){if(R$()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(M2(),RT(),ER(r,a),hA(a,f),a.mode&Wn&&Rw(a),Xc(null,SR,null,r,a,s),B()){var m=ql();typeof m=="object"&&m!==null&&m._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var lA=!1,h9;h9=new Set;function vH(r){if(Ka&&!uj())switch(r.tag){case h:case I:case Z:{var a=Ur&&jt(Ur)||"Unknown",s=a;if(!h9.has(s)){h9.add(s);var f=jt(r)||"Unknown";c("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",f,a,a)}break}case v:{lA||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lA=!0);break}}}function Y1(r,a){if(Ai){var s=r.memoizedUpdaters;s.forEach(function(f){Vm(r,f,a)})}}var v9={};function g9(r,a){{var s=Ol.current;return s!==null?(s.push(a),v9):Qa(r,a)}}function uA(r){if(r!==v9)return k3(r)}function cA(){return Ol.current!==null}function gH(r){{if(r.mode&Nn){if(!$R())return}else if(!zV()||Dn!==Pi||r.tag!==h&&r.tag!==I&&r.tag!==Z)return;if(Ol.current===null){var a=Cr;try{ar(r),c(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,jt(r))}finally{a?ar(r):Rr()}}}}function bH(r){r.tag!==wf&&$R()&&Ol.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function q1(r){YR=r}var Ws=null,Ph=null,yH=function(r){Ws=r};function Ih(r){{if(Ws===null)return r;var a=Ws(r);return a===void 0?r:a.current}}function b9(r){return Ih(r)}function y9(r){{if(Ws===null)return r;var a=Ws(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var s=Ih(r.render);if(r.render!==s){var f={$$typeof:nt,render:s};return r.displayName!==void 0&&(f.displayName=r.displayName),f}}return r}return a.current}}function fA(r,a){{if(Ws===null)return!1;var s=r.elementType,f=a.type,m=!1,y=typeof f=="object"&&f!==null?f.$$typeof:null;switch(r.tag){case v:{typeof f=="function"&&(m=!0);break}case h:{(typeof f=="function"||y===un)&&(m=!0);break}case I:{(y===nt||y===un)&&(m=!0);break}case Y:case Z:{(y===Bn||y===un)&&(m=!0);break}default:return!1}if(m){var w=Ws(s);if(w!==void 0&&w===Ws(f))return!0}return!1}}function dA(r){{if(Ws===null||typeof WeakSet!="function")return;Ph===null&&(Ph=new WeakSet),Ph.add(r)}}var SH=function(r,a){{if(Ws===null)return;var s=a.staleFamilies,f=a.updatedFamilies;Sc(),yc(function(){S9(r.current,f,s)})}},xH=function(r,a){{if(r.context!==ns)return;Sc(),yc(function(){Z1(a,r,null,null)})}};function S9(r,a,s){{var f=r.alternate,m=r.child,y=r.sibling,w=r.tag,R=r.type,O=null;switch(w){case h:case Z:case v:O=R;break;case I:O=R.render;break}if(Ws===null)throw new Error("Expected resolveFamily to be set during hot reload.");var U=!1,H=!1;if(O!==null){var te=Ws(O);te!==void 0&&(s.has(te)?H=!0:a.has(te)&&(w===v?H=!0:U=!0))}if(Ph!==null&&(Ph.has(r)||f!==null&&Ph.has(f))&&(H=!0),H&&(r._debugNeedsRemount=!0),H||U){var ee=No(r,Yt);ee!==null&&zi(ee,r,Yt,tr)}m!==null&&!H&&S9(m,a,s),y!==null&&S9(y,a,s)}}var CH=function(r,a){{var s=new Set,f=new Set(a.map(function(m){return m.current}));return x9(r.current,f,s),s}};function x9(r,a,s){{var f=r.child,m=r.sibling,y=r.tag,w=r.type,R=null;switch(y){case h:case Z:case v:R=w;break;case I:R=w.render;break}var O=!1;R!==null&&a.has(R)&&(O=!0),O?NH(r,s):f!==null&&x9(f,a,s),m!==null&&x9(m,a,s)}}function NH(r,a){{var s=wH(r,a);if(s)return;for(var f=r;;){switch(f.tag){case _:a.add(f.stateNode);return;case N:a.add(f.stateNode.containerInfo);return;case x:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function wH(r,a){for(var s=r,f=!1;;){if(s.tag===_)f=!0,a.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)return f;for(;s.sibling===null;){if(s.return===null||s.return===r)return f;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var C9;{C9=!1;try{var pA=Object.preventExtensions({})}catch{C9=!0}}function _H(r,a,s,f){this.tag=r,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=f,this.flags=zt,this.subtreeFlags=zt,this.deletions=null,this.lanes=Fe,this.childLanes=Fe,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!C9&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var rs=function(r,a,s,f){return new _H(r,a,s,f)};function N9(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function EH(r){return typeof r=="function"&&!N9(r)&&r.defaultProps===void 0}function TH(r){if(typeof r=="function")return N9(r)?v:h;if(r!=null){var a=r.$$typeof;if(a===nt)return I;if(a===Bn)return Y}return b}function Lp(r,a){var s=r.alternate;s===null?(s=rs(r.tag,a,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s._debugSource=r._debugSource,s._debugOwner=r._debugOwner,s._debugHookTypes=r._debugHookTypes,s.alternate=r,r.alternate=s):(s.pendingProps=a,s.type=r.type,s.flags=zt,s.subtreeFlags=zt,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=r.flags&Ts,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue;var f=r.dependencies;switch(s.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.selfBaseDuration=r.selfBaseDuration,s.treeBaseDuration=r.treeBaseDuration,s._debugNeedsRemount=r._debugNeedsRemount,s.tag){case b:case h:case Z:s.type=Ih(r.type);break;case v:s.type=b9(r.type);break;case I:s.type=y9(r.type);break}return s}function RH(r,a){r.flags&=Ts|Wr;var s=r.alternate;if(s===null)r.childLanes=Fe,r.lanes=a,r.child=null,r.subtreeFlags=zt,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=zt,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type;var f=s.dependencies;r.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},r.selfBaseDuration=s.selfBaseDuration,r.treeBaseDuration=s.treeBaseDuration}return r}function AH(r,a,s){var f;return r===_2?(f=Nn,a===!0&&(f|=Br,f|=yo)):f=Dt,Ai&&(f|=Wn),rs(x,null,null,f)}function w9(r,a,s,f,m,y){var w=b,R=r;if(typeof r=="function")N9(r)?(w=v,R=b9(R)):R=Ih(R);else if(typeof r=="string")w=_;else{e:switch(r){case Ue:return Ff(s.children,m,y,a);case Ke:w=M,m|=Br,(m&Nn)!==Dt&&(m|=yo);break;case Nt:return kH(s,m,y,a);case Zt:return LH(s,m,y,a);case Vn:return OH(s,m,y,a);case $o:return mA(s,m,y,a);case Ni:case Vr:case ho:case zu:case wa:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case sn:w=P;break e;case Cn:w=z;break e;case nt:w=I,R=y9(R);break e;case Bn:w=Y;break e;case un:w=ue,R=null;break e}var O="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(O+=" 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 U=f?jt(f):null;U&&(O+=`
Check the render method of \``+U+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+O))}}}var H=rs(w,s,a,m);return H.elementType=r,H.type=R,H.lanes=y,H._debugOwner=f,H}function _9(r,a,s){var f=null;f=r._owner;var m=r.type,y=r.key,w=r.props,R=w9(m,y,w,f,a,s);return R._debugSource=r._source,R._debugOwner=r._owner,R}function Ff(r,a,s,f){var m=rs(A,r,f,a);return m.lanes=s,m}function kH(r,a,s,f){typeof r.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var m=rs(F,r,f,a|Wn);return m.elementType=Nt,m.lanes=s,m.stateNode={effectDuration:0,passiveEffectDuration:0},m}function LH(r,a,s,f){var m=rs($,r,f,a);return m.elementType=Zt,m.lanes=s,m}function OH(r,a,s,f){var m=rs(ge,r,f,a);return m.elementType=Vn,m.lanes=s,m}function mA(r,a,s,f){var m=rs(re,r,f,a);m.elementType=$o,m.lanes=s;var y={isHidden:!1};return m.stateNode=y,m}function E9(r,a,s){var f=rs(T,r,null,a);return f.lanes=s,f}function MH(){var r=rs(_,null,null,Dt);return r.elementType="DELETED",r}function DH(r){var a=rs(le,null,null,Dt);return a.stateNode=r,a}function T9(r,a,s){var f=r.children!==null?r.children:[],m=rs(N,f,r.key,a);return m.lanes=s,m.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},m}function hA(r,a){return r===null&&(r=rs(b,null,null,Dt)),r.tag=a.tag,r.key=a.key,r.elementType=a.elementType,r.type=a.type,r.stateNode=a.stateNode,r.return=a.return,r.child=a.child,r.sibling=a.sibling,r.index=a.index,r.ref=a.ref,r.pendingProps=a.pendingProps,r.memoizedProps=a.memoizedProps,r.updateQueue=a.updateQueue,r.memoizedState=a.memoizedState,r.dependencies=a.dependencies,r.mode=a.mode,r.flags=a.flags,r.subtreeFlags=a.subtreeFlags,r.deletions=a.deletions,r.lanes=a.lanes,r.childLanes=a.childLanes,r.alternate=a.alternate,r.actualDuration=a.actualDuration,r.actualStartTime=a.actualStartTime,r.selfBaseDuration=a.selfBaseDuration,r.treeBaseDuration=a.treeBaseDuration,r._debugSource=a._debugSource,r._debugOwner=a._debugOwner,r._debugNeedsRemount=a._debugNeedsRemount,r._debugHookTypes=a._debugHookTypes,r}function PH(r,a,s,f,m){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=i1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=ei,this.eventTimes=Vd(Fe),this.expirationTimes=Vd(tr),this.pendingLanes=Fe,this.suspendedLanes=Fe,this.pingedLanes=Fe,this.expiredLanes=Fe,this.mutableReadLanes=Fe,this.finishedLanes=Fe,this.entangledLanes=Fe,this.entanglements=Vd(Fe),this.identifierPrefix=f,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<h0;w++)y.push(new Set)}switch(a){case _2:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case wf:this._debugRootType=s?"hydrate()":"render()";break}}function vA(r,a,s,f,m,y,w,R,O,U){var H=new PH(r,a,s,R,O),te=AH(a,y);H.current=te,te.stateNode=H;{var ee={element:f,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=ee}return PN(te),H}var R9="18.2.0";function IH(r,a,s){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return $n(f),{$$typeof:X,key:f==null?null:""+f,children:r,containerInfo:a,implementation:s}}var A9,k9;A9=!1,k9={};function gA(r){if(!r)return ns;var a=dl(r),s=y$(a);if(a.tag===v){var f=a.type;if(au(f))return VE(a,f,s)}return s}function FH(r,a){{var s=dl(r);if(s===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var m=Qb(s);if(m===null)return null;if(m.mode&Br){var y=jt(s)||"Component";if(!k9[y]){k9[y]=!0;var w=Cr;try{ar(m),s.mode&Br?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,y):c("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,y)}finally{w?ar(w):Rr()}}}return m.stateNode}}function bA(r,a,s,f,m,y,w,R){var O=!1,U=null;return vA(r,a,O,U,s,f,m,y,w)}function yA(r,a,s,f,m,y,w,R,O,U){var H=!0,te=vA(s,f,H,r,m,y,w,R,O);te.context=gA(null);var ee=te.current,he=ao(),ve=Pf(ee),Ee=hc(he,ve);return Ee.callback=a??null,Tf(ee,Ee,ve),HV(te,ve,he),te}function Z1(r,a,s,f){ia(a,r);var m=a.current,y=ao(),w=Pf(m);uy(w);var R=gA(s);a.context===null?a.context=R:a.pendingContext=R,Ka&&Cr!==null&&!A9&&(A9=!0,c(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,jt(Cr)||"Unknown"));var O=hc(y,w);O.payload={element:r},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f),O.callback=f);var U=Tf(m,O,w);return U!==null&&(zi(U,m,w,y),z2(U,m,w)),w}function A5(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case _:return a.child.stateNode;default:return a.child.stateNode}}function zH(r){switch(r.tag){case x:{var a=r.stateNode;if(fi(a)){var s=$3(a);qV(a,s)}break}case $:{yc(function(){var m=No(r,Yt);if(m!==null){var y=ao();zi(m,r,Yt,y)}});var f=Yt;L9(r,f);break}}}function SA(r,a){var s=r.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=yl(s.retryLane,a))}function L9(r,a){SA(r,a);var s=r.alternate;s&&SA(s,a)}function BH(r){if(r.tag===$){var a=sf,s=No(r,a);if(s!==null){var f=ao();zi(s,r,a,f)}L9(r,a)}}function UH(r){if(r.tag===$){var a=Pf(r),s=No(r,a);if(s!==null){var f=ao();zi(s,r,a,f)}L9(r,a)}}function xA(r){var a=r0(r);return a===null?null:a.stateNode}var CA=function(r){return null};function $H(r){return CA(r)}var NA=function(r){return!1};function jH(r){return NA(r)}var wA=null,_A=null,EA=null,TA=null,RA=null,AA=null,kA=null,LA=null,OA=null;{var MA=function(r,a,s){var f=a[s],m=Ut(r)?r.slice():en({},r);return s+1===a.length?(Ut(m)?m.splice(f,1):delete m[f],m):(m[f]=MA(r[f],a,s+1),m)},DA=function(r,a){return MA(r,a,0)},PA=function(r,a,s,f){var m=a[f],y=Ut(r)?r.slice():en({},r);if(f+1===a.length){var w=s[f];y[w]=y[m],Ut(y)?y.splice(m,1):delete y[m]}else y[m]=PA(r[m],a,s,f+1);return y},IA=function(r,a,s){if(a.length!==s.length){u("copyWithRename() expects paths of the same length");return}else for(var f=0;f<s.length-1;f++)if(a[f]!==s[f]){u("copyWithRename() expects paths to be the same except for the deepest key");return}return PA(r,a,s,0)},FA=function(r,a,s,f){if(s>=a.length)return f;var m=a[s],y=Ut(r)?r.slice():en({},r);return y[m]=FA(r[m],a,s+1,f),y},zA=function(r,a,s){return FA(r,a,0,s)},O9=function(r,a){for(var s=r.memoizedState;s!==null&&a>0;)s=s.next,a--;return s};wA=function(r,a,s,f){var m=O9(r,a);if(m!==null){var y=zA(m.memoizedState,s,f);m.memoizedState=y,m.baseState=y,r.memoizedProps=en({},r.memoizedProps);var w=No(r,Yt);w!==null&&zi(w,r,Yt,tr)}},_A=function(r,a,s){var f=O9(r,a);if(f!==null){var m=DA(f.memoizedState,s);f.memoizedState=m,f.baseState=m,r.memoizedProps=en({},r.memoizedProps);var y=No(r,Yt);y!==null&&zi(y,r,Yt,tr)}},EA=function(r,a,s,f){var m=O9(r,a);if(m!==null){var y=IA(m.memoizedState,s,f);m.memoizedState=y,m.baseState=y,r.memoizedProps=en({},r.memoizedProps);var w=No(r,Yt);w!==null&&zi(w,r,Yt,tr)}},TA=function(r,a,s){r.pendingProps=zA(r.memoizedProps,a,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=No(r,Yt);f!==null&&zi(f,r,Yt,tr)},RA=function(r,a){r.pendingProps=DA(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var s=No(r,Yt);s!==null&&zi(s,r,Yt,tr)},AA=function(r,a,s){r.pendingProps=IA(r.memoizedProps,a,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=No(r,Yt);f!==null&&zi(f,r,Yt,tr)},kA=function(r){var a=No(r,Yt);a!==null&&zi(a,r,Yt,tr)},LA=function(r){CA=r},OA=function(r){NA=r}}function VH(r){var a=Qb(r);return a===null?null:a.stateNode}function HH(r){return null}function WH(){return Cr}function GH(r){var a=r.findFiberByHostInstance,s=n.ReactCurrentDispatcher;return ty({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:wA,overrideHookStateDeletePath:_A,overrideHookStateRenamePath:EA,overrideProps:TA,overridePropsDeletePath:RA,overridePropsRenamePath:AA,setErrorHandler:LA,setSuspenseHandler:OA,scheduleUpdate:kA,currentDispatcherRef:s,findHostInstanceByFiber:VH,findFiberByHostInstance:a||HH,findHostInstancesForRefresh:CH,scheduleRefresh:SH,scheduleRoot:xH,setRefreshHandler:yH,getCurrentFiber:WH,reconcilerVersion:R9})}var BA=typeof reportError=="function"?reportError:function(r){console.error(r)};function M9(r){this._internalRoot=r}k5.prototype.render=M9.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L5(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var s=a.containerInfo;if(s.nodeType!==Hn){var f=xA(a.current);f&&f.parentNode!==s&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Z1(r,a,null,null)},k5.prototype.unmount=M9.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;XR()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),yc(function(){Z1(null,r,null,null)}),Me(a)}};function YH(r,a){if(!L5(r))throw new Error("createRoot(...): Target container is not a DOM element.");UA(r);var s=!1,f=!1,m="",y=BA;a!=null&&(a.hydrate?u("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ji&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var w=bA(r,_2,null,s,f,m,y);se(w.current,r);var R=r.nodeType===Hn?r.parentNode:r;return sp(R),new M9(w)}function k5(r){this._internalRoot=r}function qH(r){r&&wy(r)}k5.prototype.unstable_scheduleHydration=qH;function ZH(r,a,s){if(!L5(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");UA(r),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=s??null,m=s!=null&&s.hydratedSources||null,y=!1,w=!1,R="",O=BA;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(R=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError));var U=yA(a,null,r,_2,f,y,w,R,O);if(se(U.current,r),sp(r),m)for(var H=0;H<m.length;H++){var te=m[H];rj(U,te)}return new k5(U)}function L5(r){return!!(r&&(r.nodeType===Oa||r.nodeType===Xo||r.nodeType===ju||!De))}function K1(r){return!!(r&&(r.nodeType===Oa||r.nodeType===Xo||r.nodeType===ju||r.nodeType===Hn&&r.nodeValue===" react-mount-point-unstable "))}function UA(r){r.nodeType===Oa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ke(r)&&(r._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var KH=n.ReactCurrentOwner,$A;$A=function(r){if(r._reactRootContainer&&r.nodeType!==Hn){var a=xA(r._reactRootContainer.current);a&&a.parentNode!==r&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!r._reactRootContainer,f=D9(r),m=!!(f&&Qe(f));m&&!s&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),r.nodeType===Oa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function D9(r){return r?r.nodeType===Xo?r.documentElement:r.firstChild:null}function jA(){}function XH(r,a,s,f,m){if(m){if(typeof f=="function"){var y=f;f=function(){var ee=A5(w);y.call(ee)}}var w=yA(a,f,r,wf,null,!1,!1,"",jA);r._reactRootContainer=w,se(w.current,r);var R=r.nodeType===Hn?r.parentNode:r;return sp(R),yc(),w}else{for(var O;O=r.lastChild;)r.removeChild(O);if(typeof f=="function"){var U=f;f=function(){var ee=A5(H);U.call(ee)}}var H=bA(r,wf,null,!1,!1,"",jA);r._reactRootContainer=H,se(H.current,r);var te=r.nodeType===Hn?r.parentNode:r;return sp(te),yc(function(){Z1(a,H,s,f)}),H}}function QH(r,a){r!==null&&typeof r!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r)}function O5(r,a,s,f,m){$A(s),QH(m===void 0?null:m,"render");var y=s._reactRootContainer,w;if(!y)w=XH(s,a,r,m,f);else{if(w=y,typeof m=="function"){var R=m;m=function(){var O=A5(w);R.call(O)}}Z1(a,w,r,m)}return A5(w)}function JH(r){{var a=KH.current;if(a!==null&&a.stateNode!==null){var s=a.stateNode._warnedAboutRefsInRender;s||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",cn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===Oa?r:FH(r,"findDOMNode")}function eW(r,a,s){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!K1(a))throw new Error("Target container is not a DOM element.");{var f=ke(a)&&a._reactRootContainer===void 0;f&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return O5(null,r,a,!0,s)}function tW(r,a,s){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!K1(a))throw new Error("Target container is not a DOM element.");{var f=ke(a)&&a._reactRootContainer===void 0;f&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return O5(null,r,a,!1,s)}function nW(r,a,s,f){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!K1(s))throw new Error("Target container is not a DOM element.");if(r==null||!bo(r))throw new Error("parentComponent must be a valid React Component");return O5(r,a,s,!1,f)}function rW(r){if(!K1(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=ke(r)&&r._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(r._reactRootContainer){{var s=D9(r),f=s&&!Qe(s);f&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return yc(function(){O5(null,null,r,!1,function(){r._reactRootContainer=null,Me(r)})}),!0}else{{var m=D9(r),y=!!(m&&Qe(m)),w=r.nodeType===Oa&&K1(r.parentNode)&&!!r.parentNode._reactRootContainer;y&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}W3(zH),G3(BH),yy(UH),Y3(So),q3(by),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),qv(m2),Gb(f9,ZV,yc);function iW(r,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!L5(a))throw new Error("Target container is not a DOM element.");return IH(r,a,null,s)}function aW(r,a,s,f){return nW(r,a,s,f)}var P9={usingClientEntryPoint:!1,Events:[Qe,vt,It,$b,Vb,f9]};function oW(r,a){return P9.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),YH(r,a)}function sW(r,a,s){return P9.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),ZH(r,a,s)}function lW(r){return XR()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),yc(r)}var uW=GH({findFiberByHostInstance:Ie,bundleType:1,version:R9,rendererPackageName:"react-dom"});if(!uW&&Gt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var VA=window.location.protocol;/^(https?|file):$/.test(VA)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(VA==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ss.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P9,ss.createPortal=iW,ss.createRoot=oW,ss.findDOMNode=JH,ss.flushSync=lW,ss.hydrate=eW,ss.hydrateRoot=sW,ss.render=tW,ss.unmountComponentAtNode=rW,ss.unstable_batchedUpdates=f9,ss.unstable_renderSubtreeIntoContainer=aW,ss.version=R9,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=ss})(Rv);var I9=Rv.exports;{var M5=I9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Q6.createRoot=function(e,t){M5.usingClientEntryPoint=!0;try{return I9.createRoot(e,t)}finally{M5.usingClientEntryPoint=!1}},Q6.hydrateRoot=function(e,t,n){M5.usingClientEntryPoint=!0;try{return I9.hydrateRoot(e,t,n)}finally{M5.usingClientEntryPoint=!1}}}var Eu=Boolean(globalThis?.document)?k.exports.useLayoutEffect:k.exports.useEffect,I8={exports:{}},J6={};/**
* @license React
* react-jsx-dev-runtime.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(){var e=k.exports,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),T=Symbol.iterator,A="@@iterator";function M(X){if(X===null||typeof X!="object")return null;var Ue=T&&X[T]||X[A];return typeof Ue=="function"?Ue:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(X){{for(var Ue=arguments.length,Ke=new Array(Ue>1?Ue-1:0),Nt=1;Nt<Ue;Nt++)Ke[Nt-1]=arguments[Nt];I("error",X,Ke)}}function I(X,Ue,Ke){{var Nt=z.ReactDebugCurrentFrame,sn=Nt.getStackAddendum();sn!==""&&(Ue+="%s",Ke=Ke.concat([sn]));var Cn=Ke.map(function(nt){return String(nt)});Cn.unshift("Warning: "+Ue),Function.prototype.apply.call(console[X],console,Cn)}}var F=!1,$=!1,Y=!1,Z=!1,ue=!1,ce;ce=Symbol.for("react.module.reference");function le(X){return!!(typeof X=="string"||typeof X=="function"||X===i||X===u||ue||X===o||X===v||X===b||Z||X===_||F||$||Y||typeof X=="object"&&X!==null&&(X.$$typeof===N||X.$$typeof===x||X.$$typeof===c||X.$$typeof===p||X.$$typeof===h||X.$$typeof===ce||X.getModuleId!==void 0))}function ge(X,Ue,Ke){var Nt=X.displayName;if(Nt)return Nt;var sn=Ue.displayName||Ue.name||"";return sn!==""?Ke+"("+sn+")":Ke}function Ye(X){return X.displayName||"Context"}function re(X){if(X==null)return null;if(typeof X.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof X=="function")return X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){case i:return"Fragment";case n:return"Portal";case u:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if(typeof X=="object")switch(X.$$typeof){case p:var Ue=X;return Ye(Ue)+".Consumer";case c:var Ke=X;return Ye(Ke._context)+".Provider";case h:return ge(X,X.render,"ForwardRef");case x:var Nt=X.displayName||null;return Nt!==null?Nt:re(X.type)||"Memo";case N:{var sn=X,Cn=sn._payload,nt=sn._init;try{return re(nt(Cn))}catch{return null}}}return null}var ie=Object.assign,Ce=0,xe,K,be,Ne,me,we,De;function Pe(){}Pe.__reactDisabledLog=!0;function Ze(){{if(Ce===0){xe=console.log,K=console.info,be=console.warn,Ne=console.error,me=console.group,we=console.groupCollapsed,De=console.groupEnd;var X={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}Ce++}}function it(){{if(Ce--,Ce===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ie({},X,{value:xe}),info:ie({},X,{value:K}),warn:ie({},X,{value:be}),error:ie({},X,{value:Ne}),group:ie({},X,{value:me}),groupCollapsed:ie({},X,{value:we}),groupEnd:ie({},X,{value:De})})}Ce<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bt=z.ReactCurrentDispatcher,Wt;function Xe(X,Ue,Ke){{if(Wt===void 0)try{throw Error()}catch(sn){var Nt=sn.stack.trim().match(/\n( *(at )?)/);Wt=Nt&&Nt[1]||""}return`
`+Wt+X}}var ct=!1,wt;{var Bt=typeof WeakMap=="function"?WeakMap:Map;wt=new Bt}function Ge(X,Ue){if(!X||ct)return"";{var Ke=wt.get(X);if(Ke!==void 0)return Ke}var Nt;ct=!0;var sn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Cn;Cn=bt.current,bt.current=null,Ze();try{if(Ue){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Ni){Nt=Ni}Reflect.construct(X,[],nt)}else{try{nt.call()}catch(Ni){Nt=Ni}X.call(nt.prototype)}}else{try{throw Error()}catch(Ni){Nt=Ni}X()}}catch(Ni){if(Ni&&Nt&&typeof Ni.stack=="string"){for(var Zt=Ni.stack.split(`
`),Vn=Nt.stack.split(`
`),Bn=Zt.length-1,un=Vn.length-1;Bn>=1&&un>=0&&Zt[Bn]!==Vn[un];)un--;for(;Bn>=1&&un>=0;Bn--,un--)if(Zt[Bn]!==Vn[un]){if(Bn!==1||un!==1)do if(Bn--,un--,un<0||Zt[Bn]!==Vn[un]){var Vr=`
`+Zt[Bn].replace(" at new "," at ");return X.displayName&&Vr.includes("<anonymous>")&&(Vr=Vr.replace("<anonymous>",X.displayName)),typeof X=="function"&&wt.set(X,Vr),Vr}while(Bn>=1&&un>=0);break}}}finally{ct=!1,bt.current=Cn,it(),Error.prepareStackTrace=sn}var wa=X?X.displayName||X.name:"",$o=wa?Xe(wa):"";return typeof X=="function"&&wt.set(X,$o),$o}function Gt(X,Ue,Ke){return Ge(X,!1)}function ye(X){var Ue=X.prototype;return!!(Ue&&Ue.isReactComponent)}function et(X,Ue,Ke){if(X==null)return"";if(typeof X=="function")return Ge(X,ye(X));if(typeof X=="string")return Xe(X);switch(X){case v:return Xe("Suspense");case b:return Xe("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case h:return Gt(X.render);case x:return et(X.type,Ue,Ke);case N:{var Nt=X,sn=Nt._payload,Cn=Nt._init;try{return et(Cn(sn),Ue,Ke)}catch{}}}return""}var _t=Object.prototype.hasOwnProperty,lt={},xn=z.ReactDebugCurrentFrame;function $n(X){if(X){var Ue=X._owner,Ke=et(X.type,X._source,Ue?Ue.type:null);xn.setExtraStackFrame(Ke)}else xn.setExtraStackFrame(null)}function Ft(X,Ue,Ke,Nt,sn){{var Cn=Function.call.bind(_t);for(var nt in X)if(Cn(X,nt)){var Zt=void 0;try{if(typeof X[nt]!="function"){var Vn=Error((Nt||"React class")+": "+Ke+" type `"+nt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[nt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Vn.name="Invariant Violation",Vn}Zt=X[nt](Ue,nt,Nt,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bn){Zt=Bn}Zt&&!(Zt instanceof Error)&&($n(sn),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).",Nt||"React class",Ke,nt,typeof Zt),$n(null)),Zt instanceof Error&&!(Zt.message in lt)&&(lt[Zt.message]=!0,$n(sn),P("Failed %s type: %s",Ke,Zt.message),$n(null))}}}var on=Array.isArray;function Ln(X){return on(X)}function gn(X){{var Ue=typeof Symbol=="function"&&Symbol.toStringTag,Ke=Ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return Ke}}function He(X){try{return Je(X),!1}catch{return!0}}function Je(X){return""+X}function nn(X){if(He(X))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gn(X)),Je(X)}var Ot=z.ReactCurrentOwner,Oe={key:!0,ref:!0,__self:!0,__source:!0},qt,En,je;je={};function at(X){if(_t.call(X,"ref")){var Ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(Ue&&Ue.isReactWarning)return!1}return X.ref!==void 0}function Tt(X){if(_t.call(X,"key")){var Ue=Object.getOwnPropertyDescriptor(X,"key").get;if(Ue&&Ue.isReactWarning)return!1}return X.key!==void 0}function hn(X,Ue){if(typeof X.ref=="string"&&Ot.current&&Ue&&Ot.current.stateNode!==Ue){var Ke=re(Ot.current.type);je[Ke]||(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',re(Ot.current.type),X.ref),je[Ke]=!0)}}function Jt(X,Ue){{var Ke=function(){qt||(qt=!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)",Ue))};Ke.isReactWarning=!0,Object.defineProperty(X,"key",{get:Ke,configurable:!0})}}function Tn(X,Ue){{var Ke=function(){En||(En=!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)",Ue))};Ke.isReactWarning=!0,Object.defineProperty(X,"ref",{get:Ke,configurable:!0})}}var In=function(X,Ue,Ke,Nt,sn,Cn,nt){var Zt={$$typeof:t,type:X,key:Ue,ref:Ke,props:nt,_owner:Cn};return Zt._store={},Object.defineProperty(Zt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Zt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Nt}),Object.defineProperty(Zt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:sn}),Object.freeze&&(Object.freeze(Zt.props),Object.freeze(Zt)),Zt};function Or(X,Ue,Ke,Nt,sn){{var Cn,nt={},Zt=null,Vn=null;Ke!==void 0&&(nn(Ke),Zt=""+Ke),Tt(Ue)&&(nn(Ue.key),Zt=""+Ue.key),at(Ue)&&(Vn=Ue.ref,hn(Ue,sn));for(Cn in Ue)_t.call(Ue,Cn)&&!Oe.hasOwnProperty(Cn)&&(nt[Cn]=Ue[Cn]);if(X&&X.defaultProps){var Bn=X.defaultProps;for(Cn in Bn)nt[Cn]===void 0&&(nt[Cn]=Bn[Cn])}if(Zt||Vn){var un=typeof X=="function"?X.displayName||X.name||"Unknown":X;Zt&&Jt(nt,un),Vn&&Tn(nt,un)}return In(X,Zt,Vn,sn,Nt,Ot.current,nt)}}var On=z.ReactCurrentOwner,xi=z.ReactDebugCurrentFrame;function jn(X){if(X){var Ue=X._owner,Ke=et(X.type,X._source,Ue?Ue.type:null);xi.setExtraStackFrame(Ke)}else xi.setExtraStackFrame(null)}var Rn;Rn=!1;function Ci(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function xr(){{if(On.current){var X=re(On.current.type);if(X)return`
Check the render method of \``+X+"`."}return""}}function zo(X){{if(X!==void 0){var Ue=X.fileName.replace(/^.*[\\\/]/,""),Ke=X.lineNumber;return`
Check your code at `+Ue+":"+Ke+"."}return""}}var hs={};function vs(X){{var Ue=xr();if(!Ue){var Ke=typeof X=="string"?X:X.displayName||X.name;Ke&&(Ue=`
Check the top-level render call using <`+Ke+">.")}return Ue}}function Bo(X,Ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var Ke=vs(Ue);if(hs[Ke])return;hs[Ke]=!0;var Nt="";X&&X._owner&&X._owner!==On.current&&(Nt=" It was passed a child from "+re(X._owner.type)+"."),jn(X),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ke,Nt),jn(null)}}function Uo(X,Ue){{if(typeof X!="object")return;if(Ln(X))for(var Ke=0;Ke<X.length;Ke++){var Nt=X[Ke];Ci(Nt)&&Bo(Nt,Ue)}else if(Ci(X))X._store&&(X._store.validated=!0);else if(X){var sn=M(X);if(typeof sn=="function"&&sn!==X.entries)for(var Cn=sn.call(X),nt;!(nt=Cn.next()).done;)Ci(nt.value)&&Bo(nt.value,Ue)}}}function vr(X){{var Ue=X.type;if(Ue==null||typeof Ue=="string")return;var Ke;if(typeof Ue=="function")Ke=Ue.propTypes;else if(typeof Ue=="object"&&(Ue.$$typeof===h||Ue.$$typeof===x))Ke=Ue.propTypes;else return;if(Ke){var Nt=re(Ue);Ft(Ke,X.props,"prop",Nt,X)}else if(Ue.PropTypes!==void 0&&!Rn){Rn=!0;var sn=re(Ue);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",sn||"Unknown")}typeof Ue.getDefaultProps=="function"&&!Ue.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $i(X){{for(var Ue=Object.keys(X.props),Ke=0;Ke<Ue.length;Ke++){var Nt=Ue[Ke];if(Nt!=="children"&&Nt!=="key"){jn(X),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Nt),jn(null);break}}X.ref!==null&&(jn(X),P("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}function Ya(X,Ue,Ke,Nt,sn,Cn){{var nt=le(X);if(!nt){var Zt="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(Zt+=" 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 Vn=zo(sn);Vn?Zt+=Vn:Zt+=xr();var Bn;X===null?Bn="null":Ln(X)?Bn="array":X!==void 0&&X.$$typeof===t?(Bn="<"+(re(X.type)||"Unknown")+" />",Zt=" Did you accidentally export a JSX literal instead of a component?"):Bn=typeof X,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Bn,Zt)}var un=Or(X,Ue,Ke,sn,Cn);if(un==null)return un;if(nt){var Vr=Ue.children;if(Vr!==void 0)if(Nt)if(Ln(Vr)){for(var wa=0;wa<Vr.length;wa++)Uo(Vr[wa],X);Object.freeze&&Object.freeze(Vr)}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 Uo(Vr,X)}return X===i?$i(un):vr(un),un}}var ji=Ya;J6.Fragment=i,J6.jsxDEV=ji})();(function(e){e.exports=J6})(I8);const Ui=I8.exports.Fragment,C=I8.exports.jsxDEV;var RD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",F8=k.exports.createContext({});F8.displayName="ColorModeContext";function z8(){const e=k.exports.useContext(F8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var D5={light:"chakra-ui-light",dark:"chakra-ui-dark"};function mW(e={}){const{preventTransition:t=!0}=e,n={setDataset:i=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o?.()},setClassName(i){document.body.classList.add(i?D5.dark:D5.light),document.body.classList.remove(i?D5.light:D5.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return n.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=n.query(),u=c=>{i(c.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(u):o.addEventListener("change",u),()=>{typeof o.removeListener=="function"?o.removeListener(u):o.removeEventListener("change",u)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return n}var hW="chakra-ui-color-mode";function vW(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var gW=vW(hW),WA=()=>{};function GA(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function AD(e){const{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:u}={},colorModeManager:c=gW}=e,p=o==="dark"?"dark":"light",[h,v]=k.exports.useState(()=>GA(c,p)),[b,x]=k.exports.useState(()=>GA(c)),{getSystemTheme:N,setClassName:_,setDataset:T,addListener:A}=k.exports.useMemo(()=>mW({preventTransition:u}),[u]),M=o==="system"&&!h?b:h,z=k.exports.useCallback(F=>{const $=F==="system"?N():F;v($),_($==="dark"),T($),c.set($)},[c,N,_,T]);Eu(()=>{o==="system"&&x(N())},[]),k.exports.useEffect(()=>{const F=c.get();if(F){z(F);return}if(o==="system"){z("system");return}z(p)},[c,p,o,z]);const P=k.exports.useCallback(()=>{z(M==="dark"?"light":"dark")},[M,z]);k.exports.useEffect(()=>{if(!!i)return A(z)},[i,A,z]);const I=k.exports.useMemo(()=>({colorMode:t??M,toggleColorMode:t?WA:P,setColorMode:t?WA:z}),[M,P,z,t]);return C(F8.Provider,{value:I,children:n},void 0,!1,{fileName:RD,lineNumber:190,columnNumber:26},this)}AD.displayName="ColorModeProvider";var bW=new Set(["dark","light","system"]);function yW(e){let t=e;return bW.has(t)||(t="light"),t}function SW(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:i="chakra-ui-color-mode"}=e,o=yW(t),u=n==="cookie",c=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${i}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();
`,p=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${i}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${u?c:p}`.trim()}function xW(e={}){return C("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:SW(e)}},void 0,!1,{fileName:RD,lineNumber:244,columnNumber:26},this)}var e7={exports:{}};(function(e,t){var n=200,i="__lodash_hash_undefined__",o=800,u=16,c=9007199254740991,p="[object Arguments]",h="[object Array]",v="[object AsyncFunction]",b="[object Boolean]",x="[object Date]",N="[object Error]",_="[object Function]",T="[object GeneratorFunction]",A="[object Map]",M="[object Number]",z="[object Null]",P="[object Object]",I="[object Proxy]",F="[object RegExp]",$="[object Set]",Y="[object String]",Z="[object Undefined]",ue="[object WeakMap]",ce="[object ArrayBuffer]",le="[object DataView]",ge="[object Float32Array]",Ye="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",Ce="[object Int32Array]",xe="[object Uint8Array]",K="[object Uint8ClampedArray]",be="[object Uint16Array]",Ne="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,Pe={};Pe[ge]=Pe[Ye]=Pe[re]=Pe[ie]=Pe[Ce]=Pe[xe]=Pe[K]=Pe[be]=Pe[Ne]=!0,Pe[p]=Pe[h]=Pe[ce]=Pe[b]=Pe[le]=Pe[x]=Pe[N]=Pe[_]=Pe[A]=Pe[M]=Pe[P]=Pe[F]=Pe[$]=Pe[Y]=Pe[ue]=!1;var Ze=typeof Ac=="object"&&Ac&&Ac.Object===Object&&Ac,it=typeof self=="object"&&self&&self.Object===Object&&self,bt=Ze||it||Function("return this")(),Wt=t&&!t.nodeType&&t,Xe=Wt&&!0&&e&&!e.nodeType&&e,ct=Xe&&Xe.exports===Wt,wt=ct&&Ze.process,Bt=function(){try{var W=Xe&&Xe.require&&Xe.require("util").types;return W||wt&&wt.binding&&wt.binding("util")}catch{}}(),Ge=Bt&&Bt.isTypedArray;function Gt(W,J,pe){switch(pe.length){case 0:return W.call(J);case 1:return W.call(J,pe[0]);case 2:return W.call(J,pe[0],pe[1]);case 3:return W.call(J,pe[0],pe[1],pe[2])}return W.apply(J,pe)}function ye(W,J){for(var pe=-1,ot=Array(W);++pe<W;)ot[pe]=J(pe);return ot}function et(W){return function(J){return W(J)}}function _t(W,J){return W?.[J]}function lt(W,J){return function(pe){return W(J(pe))}}var xn=Array.prototype,$n=Function.prototype,Ft=Object.prototype,on=bt["__core-js_shared__"],Ln=$n.toString,gn=Ft.hasOwnProperty,He=function(){var W=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),Je=Ft.toString,nn=Ln.call(Object),Ot=RegExp("^"+Ln.call(gn).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oe=ct?bt.Buffer:void 0,qt=bt.Symbol,En=bt.Uint8Array,je=Oe?Oe.allocUnsafe:void 0,at=lt(Object.getPrototypeOf,Object),Tt=Object.create,hn=Ft.propertyIsEnumerable,Jt=xn.splice,Tn=qt?qt.toStringTag:void 0,In=function(){try{var W=Hi(Object,"defineProperty");return W({},"",{}),W}catch{}}(),Or=Oe?Oe.isBuffer:void 0,On=Math.max,xi=Date.now,jn=Hi(bt,"Map"),Rn=Hi(Object,"create"),Ci=function(){function W(){}return function(J){if(!mr(J))return{};if(Tt)return Tt(J);W.prototype=J;var pe=new W;return W.prototype=void 0,pe}}();function xr(W){var J=-1,pe=W==null?0:W.length;for(this.clear();++J<pe;){var ot=W[J];this.set(ot[0],ot[1])}}function zo(){this.__data__=Rn?Rn(null):{},this.size=0}function hs(W){var J=this.has(W)&&delete this.__data__[W];return this.size-=J?1:0,J}function vs(W){var J=this.__data__;if(Rn){var pe=J[W];return pe===i?void 0:pe}return gn.call(J,W)?J[W]:void 0}function Bo(W){var J=this.__data__;return Rn?J[W]!==void 0:gn.call(J,W)}function Uo(W,J){var pe=this.__data__;return this.size+=this.has(W)?0:1,pe[W]=Rn&&J===void 0?i:J,this}xr.prototype.clear=zo,xr.prototype.delete=hs,xr.prototype.get=vs,xr.prototype.has=Bo,xr.prototype.set=Uo;function vr(W){var J=-1,pe=W==null?0:W.length;for(this.clear();++J<pe;){var ot=W[J];this.set(ot[0],ot[1])}}function $i(){this.__data__=[],this.size=0}function Ya(W){var J=this.__data__,pe=_a(J,W);if(pe<0)return!1;var ot=J.length-1;return pe==ot?J.pop():Jt.call(J,pe,1),--this.size,!0}function ji(W){var J=this.__data__,pe=_a(J,W);return pe<0?void 0:J[pe][1]}function X(W){return _a(this.__data__,W)>-1}function Ue(W,J){var pe=this.__data__,ot=_a(pe,W);return ot<0?(++this.size,pe.push([W,J])):pe[ot][1]=J,this}vr.prototype.clear=$i,vr.prototype.delete=Ya,vr.prototype.get=ji,vr.prototype.has=X,vr.prototype.set=Ue;function Ke(W){var J=-1,pe=W==null?0:W.length;for(this.clear();++J<pe;){var ot=W[J];this.set(ot[0],ot[1])}}function Nt(){this.size=0,this.__data__={hash:new xr,map:new(jn||vr),string:new xr}}function sn(W){var J=_i(this,W).delete(W);return this.size-=J?1:0,J}function Cn(W){return _i(this,W).get(W)}function nt(W){return _i(this,W).has(W)}function Zt(W,J){var pe=_i(this,W),ot=pe.size;return pe.set(W,J),this.size+=pe.size==ot?0:1,this}Ke.prototype.clear=Nt,Ke.prototype.delete=sn,Ke.prototype.get=Cn,Ke.prototype.has=nt,Ke.prototype.set=Zt;function Vn(W){var J=this.__data__=new vr(W);this.size=J.size}function Bn(){this.__data__=new vr,this.size=0}function un(W){var J=this.__data__,pe=J.delete(W);return this.size=J.size,pe}function Vr(W){return this.__data__.get(W)}function wa(W){return this.__data__.has(W)}function $o(W,J){var pe=this.__data__;if(pe instanceof vr){var ot=pe.__data__;if(!jn||ot.length<n-1)return ot.push([W,J]),this.size=++pe.size,this;pe=this.__data__=new Ke(ot)}return pe.set(W,J),this.size=pe.size,this}Vn.prototype.clear=Bn,Vn.prototype.delete=un,Vn.prototype.get=Vr,Vn.prototype.has=wa,Vn.prototype.set=$o;function Ni(W,J){var pe=ta(W),ot=!pe&&Ka(W),fn=!pe&&!ot&&ar(W),zn=!pe&&!ot&&!fn&&go(W),Kt=pe||ot||fn||zn,S=Kt?ye(W.length,String):[],L=S.length;for(var V in W)(J||gn.call(W,V))&&!(Kt&&(V=="length"||fn&&(V=="offset"||V=="parent")||zn&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Cs(V,L)))&&S.push(V);return S}function ho(W,J,pe){(pe!==void 0&&!Cr(W[J],pe)||pe===void 0&&!(J in W))&&nl(W,J,pe)}function zu(W,J,pe){var ot=W[J];(!(gn.call(W,J)&&Cr(ot,pe))||pe===void 0&&!(J in W))&&nl(W,J,pe)}function _a(W,J){for(var pe=W.length;pe--;)if(Cr(W[pe][0],J))return pe;return-1}function nl(W,J,pe){J=="__proto__"&&In?In(W,J,{configurable:!0,enumerable:!0,value:pe,writable:!0}):W[J]=pe}var qa=Vi();function en(W){return W==null?W===void 0?Z:z:Tn&&Tn in Object(W)?xs(W):al(W)}function Za(W){return oi(W)&&en(W)==p}function wi(W){if(!mr(W)||Yo(W))return!1;var J=Zo(W)?Ot:we;return J.test(ol(W))}function jo(W){return oi(W)&&Xr(W.length)&&!!Pe[en(W)]}function gs(W){if(!mr(W))return Ta(W);var J=Wi(W),pe=[];for(var ot in W)ot=="constructor"&&(J||!gn.call(W,ot))||pe.push(ot);return pe}function Vo(W,J,pe,ot,fn){W!==J&&qa(J,function(zn,Kt){if(fn||(fn=new Vn),mr(zn))bs(W,J,Kt,pe,Vo,ot,fn);else{var S=ot?ot(Ra(W,Kt),zn,Kt+"",W,J,fn):void 0;S===void 0&&(S=zn),ho(W,Kt,S)}},sl)}function bs(W,J,pe,ot,fn,zn,Kt){var S=Ra(W,pe),L=Ra(J,pe),V=Kt.get(L);if(V){ho(W,pe,V);return}var G=zn?zn(S,L,pe+"",W,J,Kt):void 0,ne=G===void 0;if(ne){var ze=ta(L),_e=!ze&&ar(L),Ve=!ze&&!_e&&go(L);G=L,ze||_e||Ve?ta(S)?G=S:Rr(S)?G=il(S):_e?(ne=!1,G=Wo(L,!0)):Ve?(ne=!1,G=rl(L,!0)):G=[]:Bu(L)||Ka(L)?(G=S,Ka(S)?G=Aa(S):(!mr(S)||Zo(S))&&(G=Go(L))):ne=!1}ne&&(Kt.set(L,G),fn(G,L,ot,zn,Kt),Kt.delete(L)),ho(W,pe,G)}function ys(W,J){return qo(cn(W,J,Wl),W+"")}var Ho=In?function(W,J){return In(W,"toString",{configurable:!0,enumerable:!1,value:Fn(J),writable:!0})}:Wl;function Wo(W,J){if(J)return W.slice();var pe=W.length,ot=je?je(pe):new W.constructor(pe);return W.copy(ot),ot}function Ss(W){var J=new W.constructor(W.byteLength);return new En(J).set(new En(W)),J}function rl(W,J){var pe=J?Ss(W.buffer):W.buffer;return new W.constructor(pe,W.byteOffset,W.length)}function il(W,J){var pe=-1,ot=W.length;for(J||(J=Array(ot));++pe<ot;)J[pe]=W[pe];return J}function Ea(W,J,pe,ot){var fn=!pe;pe||(pe={});for(var zn=-1,Kt=J.length;++zn<Kt;){var S=J[zn],L=ot?ot(pe[S],W[S],S,pe,W):void 0;L===void 0&&(L=W[S]),fn?nl(pe,S,L):zu(pe,S,L)}return pe}function zr(W){return ys(function(J,pe){var ot=-1,fn=pe.length,zn=fn>1?pe[fn-1]:void 0,Kt=fn>2?pe[2]:void 0;for(zn=W.length>3&&typeof zn=="function"?(fn--,zn):void 0,Kt&&Hl(pe[0],pe[1],Kt)&&(zn=fn<3?void 0:zn,fn=1),J=Object(J);++ot<fn;){var S=pe[ot];S&&W(J,S,ot,zn)}return J})}function Vi(W){return function(J,pe,ot){for(var fn=-1,zn=Object(J),Kt=ot(J),S=Kt.length;S--;){var L=Kt[W?S:++fn];if(pe(zn[L],L,zn)===!1)break}return J}}function _i(W,J){var pe=W.__data__;return Ei(J)?pe[typeof J=="string"?"string":"hash"]:pe.map}function Hi(W,J){var pe=_t(W,J);return wi(pe)?pe:void 0}function xs(W){var J=gn.call(W,Tn),pe=W[Tn];try{W[Tn]=void 0;var ot=!0}catch{}var fn=Je.call(W);return ot&&(J?W[Tn]=pe:delete W[Tn]),fn}function Go(W){return typeof W.constructor=="function"&&!Wi(W)?Ci(at(W)):{}}function Cs(W,J){var pe=typeof W;return J=J??c,!!J&&(pe=="number"||pe!="symbol"&&De.test(W))&&W>-1&&W%1==0&&W<J}function Hl(W,J,pe){if(!mr(pe))return!1;var ot=typeof J;return(ot=="number"?vo(pe)&&Cs(J,pe.length):ot=="string"&&J in pe)?Cr(pe[J],W):!1}function Ei(W){var J=typeof W;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?W!=="__proto__":W===null}function Yo(W){return!!He&&He in W}function Wi(W){var J=W&&W.constructor,pe=typeof J=="function"&&J.prototype||Ft;return W===pe}function Ta(W){var J=[];if(W!=null)for(var pe in Object(W))J.push(pe);return J}function al(W){return Je.call(W)}function cn(W,J,pe){return J=On(J===void 0?W.length-1:J,0),function(){for(var ot=arguments,fn=-1,zn=On(ot.length-J,0),Kt=Array(zn);++fn<zn;)Kt[fn]=ot[J+fn];fn=-1;for(var S=Array(J+1);++fn<J;)S[fn]=ot[fn];return S[J]=pe(Kt),Gt(W,this,S)}}function Ra(W,J){if(!(J==="constructor"&&typeof W[J]=="function")&&J!="__proto__")return W[J]}var qo=jt(Ho);function jt(W){var J=0,pe=0;return function(){var ot=xi(),fn=u-(ot-pe);if(pe=ot,fn>0){if(++J>=o)return arguments[0]}else J=0;return W.apply(void 0,arguments)}}function ol(W){if(W!=null){try{return Ln.call(W)}catch{}try{return W+""}catch{}}return""}function Cr(W,J){return W===J||W!==W&&J!==J}var Ka=Za(function(){return arguments}())?Za:function(W){return oi(W)&&gn.call(W,"callee")&&!hn.call(W,"callee")},ta=Array.isArray;function vo(W){return W!=null&&Xr(W.length)&&!Zo(W)}function Rr(W){return oi(W)&&vo(W)}var ar=Or||Gi;function Zo(W){if(!mr(W))return!1;var J=en(W);return J==_||J==T||J==v||J==I}function Xr(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=c}function mr(W){var J=typeof W;return W!=null&&(J=="object"||J=="function")}function oi(W){return W!=null&&typeof W=="object"}function Bu(W){if(!oi(W)||en(W)!=P)return!1;var J=at(W);if(J===null)return!0;var pe=gn.call(J,"constructor")&&J.constructor;return typeof pe=="function"&&pe instanceof pe&&Ln.call(pe)==nn}var go=Ge?et(Ge):jo;function Aa(W){return Ea(W,sl(W))}function sl(W){return vo(W)?Ni(W,!0):gs(W)}var vn=zr(function(W,J,pe,ot){Vo(W,J,pe,ot)});function Fn(W){return function(){return W}}function Wl(W){return W}function Gi(){return!1}e.exports=vn})(e7,e7.exports);const rd=e7.exports;function _u(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Jh(e,...t){return CW(e)?e(...t):e}var CW=e=>typeof e=="function",NW=e=>/!(important)?$/.test(e),YA=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,t7=(e,t)=>n=>{const i=String(t),o=NW(i),u=YA(i),c=e?`${e}.${u}`:u;let p=_u(n.__cssMap)&&c in n.__cssMap?n.__cssMap[c].varRef:t;return p=YA(p),o?`${p} !important`:p};function Og(e){const{scale:t,transform:n,compose:i}=e;return(u,c)=>{const p=t7(t,u)(c);let h=n?.(p,c)??p;return i&&(h=i(h,c)),h}}var P5=(...e)=>t=>e.reduce((n,i)=>i(n),t);function Ml(e,t){return n=>{const i={property:n,scale:e};return i.transform=Og({scale:e,transform:t}),i}}var wW=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function _W(e){const{property:t,scale:n,transform:i}=e;return{scale:n,property:wW(t),transform:n?Og({scale:n,compose:i}):i}}var kD=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function EW(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...kD].join(" ")}function TW(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...kD].join(" ")}var RW={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},AW={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function kW(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var LW={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},LD="& > :not(style) ~ :not(style)",OW={[LD]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},MW={[LD]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},n7={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},DW=new Set(Object.values(n7)),OD=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),PW=e=>e.trim();function IW(e,t){var n;if(e==null||OD.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:u}=((n=i.exec(e))==null?void 0:n.groups)??{};if(!o||!u)return e;const c=o.includes("-gradient")?o:`${o}-gradient`,[p,...h]=u.split(",").map(PW).filter(Boolean);if(h?.length===0)return e;const v=p in n7?n7[p]:p;h.unshift(v);const b=h.map(x=>{if(DW.has(x))return x;const N=x.indexOf(" "),[_,T]=N!==-1?[x.substr(0,N),x.substr(N+1)]:[x],A=MD(T)?T:T&&T.split(" "),M=`colors.${_}`,z=M in t.__cssMap?t.__cssMap[M].varRef:_;return A?[z,...Array.isArray(A)?A:[A]].join(" "):z});return`${c}(${b.join(", ")})`}var MD=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),FW=(e,t)=>IW(e,t??{});function zW(e){return/^var\(--.+\)$/.test(e)}var BW=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},mu=e=>t=>`${e}(${t})`,Kn={filter(e){return e!=="auto"?e:RW},backdropFilter(e){return e!=="auto"?e:AW},ring(e){return kW(Kn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?EW():e==="auto-gpu"?TW():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=BW(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(zW(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:FW,blur:mu("blur"),opacity:mu("opacity"),brightness:mu("brightness"),contrast:mu("contrast"),dropShadow:mu("drop-shadow"),grayscale:mu("grayscale"),hueRotate:mu("hue-rotate"),invert:mu("invert"),saturate:mu("saturate"),sepia:mu("sepia"),bgImage(e){return e==null||MD(e)||OD.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=LW[e]??{},i={flexDirection:e};return t&&(i[t]=1),n&&(i[n]=1),i}},ae={borderWidths:Ml("borderWidths"),borderStyles:Ml("borderStyles"),colors:Ml("colors"),borders:Ml("borders"),radii:Ml("radii",Kn.px),space:Ml("space",P5(Kn.vh,Kn.px)),spaceT:Ml("space",P5(Kn.vh,Kn.px)),degreeT(e){return{property:e,transform:Kn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Og({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Ml("sizes",P5(Kn.vh,Kn.px)),sizesT:Ml("sizes",P5(Kn.vh,Kn.fraction)),shadows:Ml("shadows"),logical:_W,blur:Ml("blur",Kn.blur)},v4={background:ae.colors("background"),backgroundColor:ae.colors("backgroundColor"),backgroundImage:ae.propT("backgroundImage",Kn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Kn.bgClip},bgSize:ae.prop("backgroundSize"),bgPosition:ae.prop("backgroundPosition"),bg:ae.colors("background"),bgColor:ae.colors("backgroundColor"),bgPos:ae.prop("backgroundPosition"),bgRepeat:ae.prop("backgroundRepeat"),bgAttachment:ae.prop("backgroundAttachment"),bgGradient:ae.propT("backgroundImage",Kn.gradient),bgClip:{transform:Kn.bgClip}};Object.assign(v4,{bgImage:v4.backgroundImage,bgImg:v4.backgroundImage});var nr={border:ae.borders("border"),borderWidth:ae.borderWidths("borderWidth"),borderStyle:ae.borderStyles("borderStyle"),borderColor:ae.colors("borderColor"),borderRadius:ae.radii("borderRadius"),borderTop:ae.borders("borderTop"),borderBlockStart:ae.borders("borderBlockStart"),borderTopLeftRadius:ae.radii("borderTopLeftRadius"),borderStartStartRadius:ae.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ae.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ae.radii("borderTopRightRadius"),borderStartEndRadius:ae.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ae.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ae.borders("borderRight"),borderInlineEnd:ae.borders("borderInlineEnd"),borderBottom:ae.borders("borderBottom"),borderBlockEnd:ae.borders("borderBlockEnd"),borderBottomLeftRadius:ae.radii("borderBottomLeftRadius"),borderBottomRightRadius:ae.radii("borderBottomRightRadius"),borderLeft:ae.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ae.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ae.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ae.borders(["borderLeft","borderRight"]),borderInline:ae.borders("borderInline"),borderY:ae.borders(["borderTop","borderBottom"]),borderBlock:ae.borders("borderBlock"),borderTopWidth:ae.borderWidths("borderTopWidth"),borderBlockStartWidth:ae.borderWidths("borderBlockStartWidth"),borderTopColor:ae.colors("borderTopColor"),borderBlockStartColor:ae.colors("borderBlockStartColor"),borderTopStyle:ae.borderStyles("borderTopStyle"),borderBlockStartStyle:ae.borderStyles("borderBlockStartStyle"),borderBottomWidth:ae.borderWidths("borderBottomWidth"),borderBlockEndWidth:ae.borderWidths("borderBlockEndWidth"),borderBottomColor:ae.colors("borderBottomColor"),borderBlockEndColor:ae.colors("borderBlockEndColor"),borderBottomStyle:ae.borderStyles("borderBottomStyle"),borderBlockEndStyle:ae.borderStyles("borderBlockEndStyle"),borderLeftWidth:ae.borderWidths("borderLeftWidth"),borderInlineStartWidth:ae.borderWidths("borderInlineStartWidth"),borderLeftColor:ae.colors("borderLeftColor"),borderInlineStartColor:ae.colors("borderInlineStartColor"),borderLeftStyle:ae.borderStyles("borderLeftStyle"),borderInlineStartStyle:ae.borderStyles("borderInlineStartStyle"),borderRightWidth:ae.borderWidths("borderRightWidth"),borderInlineEndWidth:ae.borderWidths("borderInlineEndWidth"),borderRightColor:ae.colors("borderRightColor"),borderInlineEndColor:ae.colors("borderInlineEndColor"),borderRightStyle:ae.borderStyles("borderRightStyle"),borderInlineEndStyle:ae.borderStyles("borderInlineEndStyle"),borderTopRadius:ae.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ae.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ae.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ae.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(nr,{rounded:nr.borderRadius,roundedTop:nr.borderTopRadius,roundedTopLeft:nr.borderTopLeftRadius,roundedTopRight:nr.borderTopRightRadius,roundedTopStart:nr.borderStartStartRadius,roundedTopEnd:nr.borderStartEndRadius,roundedBottom:nr.borderBottomRadius,roundedBottomLeft:nr.borderBottomLeftRadius,roundedBottomRight:nr.borderBottomRightRadius,roundedBottomStart:nr.borderEndStartRadius,roundedBottomEnd:nr.borderEndEndRadius,roundedLeft:nr.borderLeftRadius,roundedRight:nr.borderRightRadius,roundedStart:nr.borderInlineStartRadius,roundedEnd:nr.borderInlineEndRadius,borderStart:nr.borderInlineStart,borderEnd:nr.borderInlineEnd,borderTopStartRadius:nr.borderStartStartRadius,borderTopEndRadius:nr.borderStartEndRadius,borderBottomStartRadius:nr.borderEndStartRadius,borderBottomEndRadius:nr.borderEndEndRadius,borderStartRadius:nr.borderInlineStartRadius,borderEndRadius:nr.borderInlineEndRadius,borderStartWidth:nr.borderInlineStartWidth,borderEndWidth:nr.borderInlineEndWidth,borderStartColor:nr.borderInlineStartColor,borderEndColor:nr.borderInlineEndColor,borderStartStyle:nr.borderInlineStartStyle,borderEndStyle:nr.borderInlineEndStyle});var UW={color:ae.colors("color"),textColor:ae.colors("color"),fill:ae.colors("fill"),stroke:ae.colors("stroke")},r7={boxShadow:ae.shadows("boxShadow"),mixBlendMode:!0,blendMode:ae.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ae.prop("backgroundBlendMode"),opacity:!0};Object.assign(r7,{shadow:r7.boxShadow});var $W={filter:{transform:Kn.filter},blur:ae.blur("--chakra-blur"),brightness:ae.propT("--chakra-brightness",Kn.brightness),contrast:ae.propT("--chakra-contrast",Kn.contrast),hueRotate:ae.degreeT("--chakra-hue-rotate"),invert:ae.propT("--chakra-invert",Kn.invert),saturate:ae.propT("--chakra-saturate",Kn.saturate),dropShadow:ae.propT("--chakra-drop-shadow",Kn.dropShadow),backdropFilter:{transform:Kn.backdropFilter},backdropBlur:ae.blur("--chakra-backdrop-blur"),backdropBrightness:ae.propT("--chakra-backdrop-brightness",Kn.brightness),backdropContrast:ae.propT("--chakra-backdrop-contrast",Kn.contrast),backdropHueRotate:ae.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ae.propT("--chakra-backdrop-invert",Kn.invert),backdropSaturate:ae.propT("--chakra-backdrop-saturate",Kn.saturate)},$4={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Kn.flexDirection},experimental_spaceX:{static:OW,transform:Og({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:MW,transform:Og({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ae.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ae.space("gap"),rowGap:ae.space("rowGap"),columnGap:ae.space("columnGap")};Object.assign($4,{flexDir:$4.flexDirection});var DD={gridGap:ae.space("gridGap"),gridColumnGap:ae.space("gridColumnGap"),gridRowGap:ae.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},jW={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Kn.outline},outlineOffset:!0,outlineColor:ae.colors("outlineColor")},qs={width:ae.sizesT("width"),inlineSize:ae.sizesT("inlineSize"),height:ae.sizes("height"),blockSize:ae.sizes("blockSize"),boxSize:ae.sizes(["width","height"]),minWidth:ae.sizes("minWidth"),minInlineSize:ae.sizes("minInlineSize"),minHeight:ae.sizes("minHeight"),minBlockSize:ae.sizes("minBlockSize"),maxWidth:ae.sizes("maxWidth"),maxInlineSize:ae.sizes("maxInlineSize"),maxHeight:ae.sizes("maxHeight"),maxBlockSize:ae.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ae.propT("float",Kn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qs,{w:qs.width,h:qs.height,minW:qs.minWidth,maxW:qs.maxWidth,minH:qs.minHeight,maxH:qs.maxHeight,overscroll:qs.overscrollBehavior,overscrollX:qs.overscrollBehaviorX,overscrollY:qs.overscrollBehaviorY});var VW={listStyleType:!0,listStylePosition:!0,listStylePos:ae.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ae.prop("listStyleImage")};function HW(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var WW=e=>{const t=new WeakMap;return(i,o,u,c)=>{if(typeof i>"u")return e(i,o,u);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const h=e(i,o,u,c);return p.set(o,h),h}},GW=WW(HW),YW={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},qW={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},F9=(e,t,n)=>{const i={},o=GW(e,t,{});for(const u in o)u in n&&n[u]!=null||(i[u]=o[u]);return i},ZW={srOnly:{transform(e){return e===!0?YW:e==="focusable"?qW:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>F9(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>F9(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>F9(t,e,n)}},gg={position:!0,pos:ae.prop("position"),zIndex:ae.prop("zIndex","zIndices"),inset:ae.spaceT("inset"),insetX:ae.spaceT(["left","right"]),insetInline:ae.spaceT("insetInline"),insetY:ae.spaceT(["top","bottom"]),insetBlock:ae.spaceT("insetBlock"),top:ae.spaceT("top"),insetBlockStart:ae.spaceT("insetBlockStart"),bottom:ae.spaceT("bottom"),insetBlockEnd:ae.spaceT("insetBlockEnd"),left:ae.spaceT("left"),insetInlineStart:ae.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ae.spaceT("right"),insetInlineEnd:ae.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(gg,{insetStart:gg.insetInlineStart,insetEnd:gg.insetInlineEnd});var KW={ring:{transform:Kn.ring},ringColor:ae.colors("--chakra-ring-color"),ringOffset:ae.prop("--chakra-ring-offset-width"),ringOffsetColor:ae.colors("--chakra-ring-offset-color"),ringInset:ae.prop("--chakra-ring-inset")},Lr={margin:ae.spaceT("margin"),marginTop:ae.spaceT("marginTop"),marginBlockStart:ae.spaceT("marginBlockStart"),marginRight:ae.spaceT("marginRight"),marginInlineEnd:ae.spaceT("marginInlineEnd"),marginBottom:ae.spaceT("marginBottom"),marginBlockEnd:ae.spaceT("marginBlockEnd"),marginLeft:ae.spaceT("marginLeft"),marginInlineStart:ae.spaceT("marginInlineStart"),marginX:ae.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ae.spaceT("marginInline"),marginY:ae.spaceT(["marginTop","marginBottom"]),marginBlock:ae.spaceT("marginBlock"),padding:ae.space("padding"),paddingTop:ae.space("paddingTop"),paddingBlockStart:ae.space("paddingBlockStart"),paddingRight:ae.space("paddingRight"),paddingBottom:ae.space("paddingBottom"),paddingBlockEnd:ae.space("paddingBlockEnd"),paddingLeft:ae.space("paddingLeft"),paddingInlineStart:ae.space("paddingInlineStart"),paddingInlineEnd:ae.space("paddingInlineEnd"),paddingX:ae.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ae.space("paddingInline"),paddingY:ae.space(["paddingTop","paddingBottom"]),paddingBlock:ae.space("paddingBlock")};Object.assign(Lr,{m:Lr.margin,mt:Lr.marginTop,mr:Lr.marginRight,me:Lr.marginInlineEnd,marginEnd:Lr.marginInlineEnd,mb:Lr.marginBottom,ml:Lr.marginLeft,ms:Lr.marginInlineStart,marginStart:Lr.marginInlineStart,mx:Lr.marginX,my:Lr.marginY,p:Lr.padding,pt:Lr.paddingTop,py:Lr.paddingY,px:Lr.paddingX,pb:Lr.paddingBottom,pl:Lr.paddingLeft,ps:Lr.paddingInlineStart,paddingStart:Lr.paddingInlineStart,pr:Lr.paddingRight,pe:Lr.paddingInlineEnd,paddingEnd:Lr.paddingInlineEnd});var XW={textDecorationColor:ae.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ae.shadows("textShadow")},QW={clipPath:!0,transform:ae.propT("transform",Kn.transform),transformOrigin:!0,translateX:ae.spaceT("--chakra-translate-x"),translateY:ae.spaceT("--chakra-translate-y"),skewX:ae.degreeT("--chakra-skew-x"),skewY:ae.degreeT("--chakra-skew-y"),scaleX:ae.prop("--chakra-scale-x"),scaleY:ae.prop("--chakra-scale-y"),scale:ae.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ae.degreeT("--chakra-rotate")},JW={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ae.prop("transitionDuration","transition.duration"),transitionProperty:ae.prop("transitionProperty","transition.property"),transitionTimingFunction:ae.prop("transitionTimingFunction","transition.easing")},eG={fontFamily:ae.prop("fontFamily","fonts"),fontSize:ae.prop("fontSize","fontSizes",Kn.px),fontWeight:ae.prop("fontWeight","fontWeights"),lineHeight:ae.prop("lineHeight","lineHeights"),letterSpacing:ae.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},tG={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ae.spaceT("scrollMargin"),scrollMarginTop:ae.spaceT("scrollMarginTop"),scrollMarginBottom:ae.spaceT("scrollMarginBottom"),scrollMarginLeft:ae.spaceT("scrollMarginLeft"),scrollMarginRight:ae.spaceT("scrollMarginRight"),scrollMarginX:ae.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ae.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ae.spaceT("scrollPadding"),scrollPaddingTop:ae.spaceT("scrollPaddingTop"),scrollPaddingBottom:ae.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ae.spaceT("scrollPaddingLeft"),scrollPaddingRight:ae.spaceT("scrollPaddingRight"),scrollPaddingX:ae.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ae.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function PD(e){return _u(e)&&e.reference?e.reference:String(e)}var _S=(e,...t)=>t.map(PD).join(` ${e} `).replace(/calc/g,""),qA=(...e)=>`calc(${_S("+",...e)})`,ZA=(...e)=>`calc(${_S("-",...e)})`,i7=(...e)=>`calc(${_S("*",...e)})`,KA=(...e)=>`calc(${_S("/",...e)})`,XA=e=>{const t=PD(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:i7(t,-1)},Vp=Object.assign(e=>({add:(...t)=>Vp(qA(e,...t)),subtract:(...t)=>Vp(ZA(e,...t)),multiply:(...t)=>Vp(i7(e,...t)),divide:(...t)=>Vp(KA(e,...t)),negate:()=>Vp(XA(e)),toString:()=>e.toString()}),{add:qA,subtract:ZA,multiply:i7,divide:KA,negate:XA});function nG(e,t="-"){return e.replace(/\s+/g,t)}function rG(e){const t=nG(e.toString());return aG(iG(t))}function iG(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function aG(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function oG(e,t=""){return[t,e].filter(Boolean).join("-")}function sG(e,t){return`var(${e}${t?`, ${t}`:""})`}function lG(e,t=""){return rG(`--${oG(e,t)}`)}function cd(e,t,n){const i=lG(e,n);return{variable:i,reference:sG(i,t)}}function uG(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function cG(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function fG(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function a7(e){if(e==null)return e;const{unitless:t}=fG(e);return t||typeof e=="number"?`${e}px`:e}var ID=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,B8=e=>Object.fromEntries(Object.entries(e).sort(ID));function QA(e){const t=B8(e);return Object.assign(Object.values(t),t)}function dG(e){const t=Object.keys(B8(e));return new Set(t)}function JA(e){if(!e)return e;e=a7(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function fg(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${a7(e)})`),t&&n.push("and",`(max-width: ${a7(t)})`),n.join(" ")}function pG(e){if(!e)return null;e.base=e.base??"0px";const t=QA(e),n=Object.entries(e).sort(ID).map(([u,c],p,h)=>{let[,v]=h[p+1]??[];return v=parseFloat(v)>0?JA(v):void 0,{_minW:JA(c),breakpoint:u,minW:c,maxW:v,maxWQuery:fg(null,v),minWQuery:fg(c),minMaxQuery:fg(c,v)}}),i=dG(e),o=Array.from(i.values());return{keys:i,normalized:t,isResponsive(u){const c=Object.keys(u);return c.length>0&&c.every(p=>i.has(p))},asObject:B8(e),asArray:QA(e),details:n,media:[null,...t.map(u=>fg(u)).slice(1)],toArrayValue(u){if(!uG(u))throw new Error("toArrayValue: value must be an object");const c=o.map(p=>u[p]??null);for(;cG(c)===null;)c.pop();return c},toObjectValue(u){if(!Array.isArray(u))throw new Error("toObjectValue: value must be an array");return u.reduce((c,p,h)=>{const v=o[h];return v!=null&&p!=null&&(c[v]=p),c},{})}}}var ba={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},zf=e=>FD(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Cc=e=>FD(t=>e(t,"~ &"),"[data-peer]",".peer"),FD=(e,...t)=>t.map(e).join(", "),ES={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:zf(ba.hover),_peerHover:Cc(ba.hover),_groupFocus:zf(ba.focus),_peerFocus:Cc(ba.focus),_groupFocusVisible:zf(ba.focusVisible),_peerFocusVisible:Cc(ba.focusVisible),_groupActive:zf(ba.active),_peerActive:Cc(ba.active),_groupDisabled:zf(ba.disabled),_peerDisabled:Cc(ba.disabled),_groupInvalid:zf(ba.invalid),_peerInvalid:Cc(ba.invalid),_groupChecked:zf(ba.checked),_peerChecked:Cc(ba.checked),_groupFocusWithin:zf(ba.focusWithin),_peerFocusWithin:Cc(ba.focusWithin),_peerPlaceholderShown:Cc(ba.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},mG=Object.keys(ES);function ek(e,t){return cd(String(e).replace(/\./g,"-"),void 0,t)}function hG(e,t){let n={};const i={};for(const[o,u]of Object.entries(e)){const{isSemantic:c,value:p}=u,{variable:h,reference:v}=ek(o,t?.cssVarPrefix);if(!c){if(o.startsWith("space")){const N=o.split("."),[_,...T]=N,A=`${_}.-${T.join(".")}`,M=Vp.negate(p),z=Vp.negate(v);i[A]={value:M,var:h,varRef:z}}n[h]=p,i[o]={value:p,var:h,varRef:v};continue}const b=N=>{const T=[String(o).split(".")[0],N].join(".");if(!e[T])return N;const{reference:M}=ek(T,t?.cssVarPrefix);return M},x=_u(p)?p:{default:p};n=rd(n,Object.entries(x).reduce((N,[_,T])=>{var A;const M=b(T);if(_==="default")return N[h]=M,N;const z=((A=ES)==null?void 0:A[_])??_;return N[z]={[h]:M},N},{})),i[o]={value:v,var:h,varRef:v}}return{cssVars:n,cssMap:i}}function vG(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function gG(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var bG=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function yG(e){return gG(e,bG)}function SG(e){return e.semanticTokens}function xG(e){const{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}function CG({tokens:e,semanticTokens:t}){const n=Object.entries(o7(e)??{}).map(([o,u])=>[o,{isSemantic:!1,value:u}]),i=Object.entries(o7(t,1)??{}).map(([o,u])=>[o,{isSemantic:!0,value:u}]);return Object.fromEntries([...n,...i])}function o7(e,t=1/0){return!_u(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[i,o])=>(_u(o)||Array.isArray(o)?Object.entries(o7(o,t-1)).forEach(([u,c])=>{n[`${i}.${u}`]=c}):n[i]=o,n),{})}function NG(e){var t;const n=xG(e),i=yG(n),o=SG(n),u=CG({tokens:i,semanticTokens:o}),c=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:p,cssVars:h}=hG(u,{cssVarPrefix:c});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...h},__cssMap:p,__breakpoints:pG(n.breakpoints)}),n}var U8=rd({},v4,nr,UW,$4,qs,$W,KW,jW,DD,ZW,gg,r7,Lr,tG,eG,XW,QW,VW,JW),wG=Object.assign({},Lr,qs,$4,DD,gg),_G=Object.keys(wG),EG=[...Object.keys(U8),...mG],TG={...U8,...ES},RG=e=>e in TG;function AG(e){return/^var\(--.+\)$/.test(e)}var kG=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!AG(t),LG=(e,t)=>{if(t==null)return t;const n=p=>{var h,v;return(v=(h=e.__cssMap)==null?void 0:h[p])==null?void 0:v.varRef},i=p=>n(p)??p,o=t.split(",").map(p=>p.trim()),[u,c]=o;return t=n(u)??i(c)??i(t),t};function OG(e){const{configs:t={},pseudos:n={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:u,media:c}=i.__breakpoints,p=(h,v=!1)=>{var b;const x=Jh(h,i);let N={};for(let _ in x){let T=Jh(x[_],i);if(T==null)continue;if(Array.isArray(T)||_u(T)&&o(T)){let P=Array.isArray(T)?T:u(T);P=P.slice(0,c.length);for(let I=0;I<P.length;I++){const F=c[I],$=P[I];F?$==null?N[F]??(N[F]={}):N[F]=Object.assign({},N[F],p({[_]:$},!0)):N=Object.assign({},N,p({...x,[_]:$},!1))}continue}if(_ in n&&(_=n[_]),kG(_,T)&&(T=LG(i,T)),_u(T)){N[_]=Object.assign({},N[_],p(T,!0));continue}let A=t[_];if(A===!0&&(A={property:_}),!v&&A?.static){const P=Jh(A.static,i);N=Object.assign({},N,P)}let M=((b=A?.transform)==null?void 0:b.call(A,T,i,x))??T;if(M=A?.processResult?p(M,!0):M,_u(M)){N=Object.assign({},N,M);continue}const z=Jh(A?.property,i);if(z){if(Array.isArray(z)){for(const P of z)N[P]=M;continue}z==="&"&&_u(M)?N=Object.assign({},N,M):N[z]=M;continue}N[_]=M}return N};return p}var zD=e=>t=>OG({theme:t,pseudos:ES,configs:U8})(e);function Fr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function MG(e,t){if(Array.isArray(e))return e;if(_u(e))return t(e);if(e!=null)return[e]}function DG(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function PG(e){const t=e.__breakpoints;return function(i,o,u,c){var p,h;if(!t)return;const v={},b=MG(u,t.toArrayValue);if(!b)return v;const x=b.length,N=x===1,_=!!i.parts;for(let T=0;T<x;T++){const A=t.details[T],M=t.details[DG(b,T)],z=fg(A.minW,M?._minW),P=Jh((p=i[o])==null?void 0:p[b[T]],c);if(!!P){if(_){(h=i.parts)==null||h.forEach(I=>{rd(v,{[I]:N?P[I]:{[z]:P[I]}})});continue}if(!_){N?rd(v,P):v[z]=P;continue}v[z]=P}}return v}}function IG(e){return t=>{const{variant:n,size:i,theme:o}=t,u=PG(o);return rd({},Jh(e.baseStyle??{},t),u(e,"sizes",i,t),u(e,"variants",n,t))}}function FG(e,t,n){var i,o;return((o=(i=e.__cssMap)==null?void 0:i[`${t}.${n}`])==null?void 0:o.varRef)??n}function pr(e){return vG(e,["styleConfig","size","variant","colorScheme"])}function zG(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function BG(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var UG=function(){function e(n){var i=this;this._insertTag=function(o){var u;i.tags.length===0?i.insertionPoint?u=i.insertionPoint.nextSibling:i.prepend?u=i.container.firstChild:u=i.before:u=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,u),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!1:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(BG(this));var o=this.tags[this.tags.length-1];{var u=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;u&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
`+i+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!u}if(this.isSpeedy){var c=zG(o);try{c.insertRule(i,c.cssRules.length)}catch(p){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear){/.test(i)||console.error('There was a problem inserting the following rule: "'+i+'"',p)}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){return i.parentNode&&i.parentNode.removeChild(i)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Va="-ms-",j4="-moz-",rr="-webkit-",$8="comm",j8="rule",V8="decl",$G="@import",BD="@keyframes",jG=Math.abs,TS=String.fromCharCode,VG=Object.assign;function HG(e,t){return(((t<<2^Lo(e,0))<<2^Lo(e,1))<<2^Lo(e,2))<<2^Lo(e,3)}function UD(e){return e.trim()}function WG(e,t){return(e=t.exec(e))?e[0]:e}function lr(e,t,n){return e.replace(t,n)}function s7(e,t){return e.indexOf(t)}function Lo(e,t){return e.charCodeAt(t)|0}function Mg(e,t,n){return e.slice(t,n)}function xu(e){return e.length}function H8(e){return e.length}function I5(e,t){return t.push(e),e}function GG(e,t){return e.map(t).join("")}var RS=1,vv=1,$D=0,Io=0,gi=0,Av="";function AS(e,t,n,i,o,u,c){return{value:e,root:t,parent:n,type:i,props:o,children:u,line:RS,column:vv,length:c,return:""}}function Q1(e,t){return VG(AS("",null,null,"",null,null,0),e,{length:-e.length},t)}function YG(){return gi}function qG(){return gi=Io>0?Lo(Av,--Io):0,vv--,gi===10&&(vv=1,RS--),gi}function cs(){return gi=Io<$D?Lo(Av,Io++):0,vv++,gi===10&&(vv=1,RS++),gi}function Tu(){return Lo(Av,Io)}function g4(){return Io}function ib(e,t){return Mg(Av,e,t)}function Dg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jD(e){return RS=vv=1,$D=xu(Av=e),Io=0,[]}function VD(e){return Av="",e}function b4(e){return UD(ib(Io-1,l7(e===91?e+2:e===40?e+1:e)))}function ZG(e){for(;(gi=Tu())&&gi<33;)cs();return Dg(e)>2||Dg(gi)>3?"":" "}function KG(e,t){for(;--t&&cs()&&!(gi<48||gi>102||gi>57&&gi<65||gi>70&&gi<97););return ib(e,g4()+(t<6&&Tu()==32&&cs()==32))}function l7(e){for(;cs();)switch(gi){case e:return Io;case 34:case 39:e!==34&&e!==39&&l7(gi);break;case 40:e===41&&l7(e);break;case 92:cs();break}return Io}function XG(e,t){for(;cs()&&e+gi!==47+10;)if(e+gi===42+42&&Tu()===47)break;return"/*"+ib(t,Io-1)+"*"+TS(e===47?e:cs())}function QG(e){for(;!Dg(Tu());)cs();return ib(e,Io)}function JG(e){return VD(y4("",null,null,null,[""],e=jD(e),0,[0],e))}function y4(e,t,n,i,o,u,c,p,h){for(var v=0,b=0,x=c,N=0,_=0,T=0,A=1,M=1,z=1,P=0,I="",F=o,$=u,Y=i,Z=I;M;)switch(T=P,P=cs()){case 40:if(T!=108&&Z.charCodeAt(x-1)==58){s7(Z+=lr(b4(P),"&","&\f"),"&\f")!=-1&&(z=-1);break}case 34:case 39:case 91:Z+=b4(P);break;case 9:case 10:case 13:case 32:Z+=ZG(T);break;case 92:Z+=KG(g4()-1,7);continue;case 47:switch(Tu()){case 42:case 47:I5(eY(XG(cs(),g4()),t,n),h);break;default:Z+="/"}break;case 123*A:p[v++]=xu(Z)*z;case 125*A:case 59:case 0:switch(P){case 0:case 125:M=0;case 59+b:_>0&&xu(Z)-x&&I5(_>32?nk(Z+";",i,n,x-1):nk(lr(Z," ","")+";",i,n,x-2),h);break;case 59:Z+=";";default:if(I5(Y=tk(Z,t,n,v,b,o,p,I,F=[],$=[],x),u),P===123)if(b===0)y4(Z,t,Y,Y,F,u,x,p,$);else switch(N){case 100:case 109:case 115:y4(e,Y,Y,i&&I5(tk(e,Y,Y,0,0,o,p,I,o,F=[],x),$),o,$,x,p,i?F:$);break;default:y4(Z,Y,Y,Y,[""],$,0,p,$)}}v=b=_=0,A=z=1,I=Z="",x=c;break;case 58:x=1+xu(Z),_=T;default:if(A<1){if(P==123)--A;else if(P==125&&A++==0&&qG()==125)continue}switch(Z+=TS(P),P*A){case 38:z=b>0?1:(Z+="\f",-1);break;case 44:p[v++]=(xu(Z)-1)*z,z=1;break;case 64:Tu()===45&&(Z+=b4(cs())),N=Tu(),b=x=xu(I=Z+=QG(g4())),P++;break;case 45:T===45&&xu(Z)==2&&(A=0)}}return u}function tk(e,t,n,i,o,u,c,p,h,v,b){for(var x=o-1,N=o===0?u:[""],_=H8(N),T=0,A=0,M=0;T<i;++T)for(var z=0,P=Mg(e,x+1,x=jG(A=c[T])),I=e;z<_;++z)(I=UD(A>0?N[z]+" "+P:lr(P,/&\f/g,N[z])))&&(h[M++]=I);return AS(e,t,n,o===0?j8:p,h,v,b)}function eY(e,t,n){return AS(e,t,n,$8,TS(YG()),Mg(e,2,-2),0)}function nk(e,t,n,i){return AS(e,t,n,V8,Mg(e,0,i),Mg(e,i+1,-1),i)}function HD(e,t){switch(HG(e,t)){case 5103:return rr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rr+e+j4+e+Va+e+e;case 6828:case 4268:return rr+e+Va+e+e;case 6165:return rr+e+Va+"flex-"+e+e;case 5187:return rr+e+lr(e,/(\w+).+(:[^]+)/,rr+"box-$1$2"+Va+"flex-$1$2")+e;case 5443:return rr+e+Va+"flex-item-"+lr(e,/flex-|-self/,"")+e;case 4675:return rr+e+Va+"flex-line-pack"+lr(e,/align-content|flex-|-self/,"")+e;case 5548:return rr+e+Va+lr(e,"shrink","negative")+e;case 5292:return rr+e+Va+lr(e,"basis","preferred-size")+e;case 6060:return rr+"box-"+lr(e,"-grow","")+rr+e+Va+lr(e,"grow","positive")+e;case 4554:return rr+lr(e,/([^-])(transform)/g,"$1"+rr+"$2")+e;case 6187:return lr(lr(lr(e,/(zoom-|grab)/,rr+"$1"),/(image-set)/,rr+"$1"),e,"")+e;case 5495:case 3959:return lr(e,/(image-set\([^]*)/,rr+"$1$`$1");case 4968:return lr(lr(e,/(.+:)(flex-)?(.*)/,rr+"box-pack:$3"+Va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rr+e+e;case 4095:case 3583:case 4068:case 2532:return lr(e,/(.+)-inline(.+)/,rr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xu(e)-1-t>6)switch(Lo(e,t+1)){case 109:if(Lo(e,t+4)!==45)break;case 102:return lr(e,/(.+:)(.+)-([^]+)/,"$1"+rr+"$2-$3$1"+j4+(Lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~s7(e,"stretch")?HD(lr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lo(e,t+1)!==115)break;case 6444:switch(Lo(e,xu(e)-3-(~s7(e,"!important")&&10))){case 107:return lr(e,":",":"+rr)+e;case 101:return lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rr+(Lo(e,14)===45?"inline-":"")+"box$3$1"+rr+"$2$3$1"+Va+"$2box$3")+e}break;case 5936:switch(Lo(e,t+11)){case 114:return rr+e+Va+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rr+e+Va+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rr+e+Va+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rr+e+Va+e+e}return e}function ov(e,t){for(var n="",i=H8(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function tY(e,t,n,i){switch(e.type){case $G:case V8:return e.return=e.return||e.value;case $8:return"";case BD:return e.return=e.value+"{"+ov(e.children,i)+"}";case j8:e.value=e.props.join(",")}return xu(n=ov(e.children,i))?e.return=e.value+"{"+n+"}":""}function nY(e){var t=H8(e);return function(n,i,o,u){for(var c="",p=0;p<t;p++)c+=e[p](n,i,o,u)||"";return c}}function rY(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case V8:e.return=HD(e.value,e.length);break;case BD:return ov([Q1(e,{value:lr(e.value,"@","@"+rr)})],i);case j8:if(e.length)return GG(e.props,function(o){switch(WG(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ov([Q1(e,{props:[lr(o,/:(read-\w+)/,":"+j4+"$1")]})],i);case"::placeholder":return ov([Q1(e,{props:[lr(o,/:(plac\w+)/,":"+rr+"input-$1")]}),Q1(e,{props:[lr(o,/:(plac\w+)/,":"+j4+"$1")]}),Q1(e,{props:[lr(o,/:(plac\w+)/,Va+"input-$1")]})],i)}return""})}}var rk=function(t){var n=new WeakMap;return function(i){if(n.has(i))return n.get(i);var o=t(i);return n.set(i,o),o}};function WD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iY=function(t,n,i){for(var o=0,u=0;o=u,u=Tu(),o===38&&u===12&&(n[i]=1),!Dg(u);)cs();return ib(t,Io)},aY=function(t,n){var i=-1,o=44;do switch(Dg(o)){case 0:o===38&&Tu()===12&&(n[i]=1),t[i]+=iY(Io-1,n,i);break;case 2:t[i]+=b4(o);break;case 4:if(o===44){t[++i]=Tu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=TS(o)}while(o=cs());return t},oY=function(t,n){return VD(aY(jD(t),n))},ik=new WeakMap,sY=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ik.get(i))&&!o){ik.set(t,!0);for(var u=[],c=oY(n,u),p=i.props,h=0,v=0;h<c.length;h++)for(var b=0;b<p.length;b++,v++)t.props[v]=u[h]?c[h].replace(/&\f/g,p[b]):p[b]+" "+c[h]}}},lY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},uY="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",cY=function(t){return t.type==="comm"&&t.children.indexOf(uY)>-1},fY=function(t){return function(n,i,o){if(!(n.type!=="rule"||t.compat)){var u=n.value.match(/(:first|:nth|:nth-last)-child/g);if(u){for(var c=n.parent===o[0],p=c?o[0].children:o,h=p.length-1;h>=0;h--){var v=p[h];if(v.line<n.line)break;if(v.column<n.column){if(cY(v))return;break}}u.forEach(function(b){console.error('The pseudo class "'+b+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+b.split("-child")[0]+'-of-type".')})}}}},GD=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},dY=function(t,n){for(var i=t-1;i>=0;i--)if(!GD(n[i]))return!0;return!1},ak=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},pY=function(t,n,i){!GD(t)||(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ak(t)):dY(n,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ak(t)))},mY=[rY],hY=function(t){var n=t.key;if(!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(A){var M=A.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var o=t.stylisPlugins||mY;if(/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var u={},c,p=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(A){for(var M=A.getAttribute("data-emotion").split(" "),z=1;z<M.length;z++)u[M[z]]=!0;p.push(A)});var h,v=[sY,lY];v.push(fY({get compat(){return T.compat}}),pY);{var b,x=[tY,function(A){A.root||(A.return?b.insert(A.return):A.value&&A.type!==$8&&b.insert(A.value+"{}"))}],N=nY(v.concat(o,x)),_=function(M){return ov(JG(M),N)};h=function(M,z,P,I){b=P,z.map!==void 0&&(b={insert:function($){P.insert($+z.map)}}),_(M?M+"{"+z.styles+"}":z.styles),I&&(T.inserted[z.name]=!0)}}var T={key:n,sheet:new UG({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:h};return T.sheet.hydrate(p),T};function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pg.apply(this,arguments)}var kS={exports:{}},cr={};/** @license React v16.13.1
* react-is.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(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,N=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,z=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function I(Ge){return typeof Ge=="string"||typeof Ge=="function"||Ge===i||Ge===v||Ge===u||Ge===o||Ge===x||Ge===N||typeof Ge=="object"&&Ge!==null&&(Ge.$$typeof===T||Ge.$$typeof===_||Ge.$$typeof===c||Ge.$$typeof===p||Ge.$$typeof===b||Ge.$$typeof===M||Ge.$$typeof===z||Ge.$$typeof===P||Ge.$$typeof===A)}function F(Ge){if(typeof Ge=="object"&&Ge!==null){var Gt=Ge.$$typeof;switch(Gt){case t:var ye=Ge.type;switch(ye){case h:case v:case i:case u:case o:case x:return ye;default:var et=ye&&ye.$$typeof;switch(et){case p:case b:case T:case _:case c:return et;default:return Gt}}case n:return Gt}}}var $=h,Y=v,Z=p,ue=c,ce=t,le=b,ge=i,Ye=T,re=_,ie=n,Ce=u,xe=o,K=x,be=!1;function Ne(Ge){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),me(Ge)||F(Ge)===h}function me(Ge){return F(Ge)===v}function we(Ge){return F(Ge)===p}function De(Ge){return F(Ge)===c}function Pe(Ge){return typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===t}function Ze(Ge){return F(Ge)===b}function it(Ge){return F(Ge)===i}function bt(Ge){return F(Ge)===T}function Wt(Ge){return F(Ge)===_}function Xe(Ge){return F(Ge)===n}function ct(Ge){return F(Ge)===u}function wt(Ge){return F(Ge)===o}function Bt(Ge){return F(Ge)===x}cr.AsyncMode=$,cr.ConcurrentMode=Y,cr.ContextConsumer=Z,cr.ContextProvider=ue,cr.Element=ce,cr.ForwardRef=le,cr.Fragment=ge,cr.Lazy=Ye,cr.Memo=re,cr.Portal=ie,cr.Profiler=Ce,cr.StrictMode=xe,cr.Suspense=K,cr.isAsyncMode=Ne,cr.isConcurrentMode=me,cr.isContextConsumer=we,cr.isContextProvider=De,cr.isElement=Pe,cr.isForwardRef=Ze,cr.isFragment=it,cr.isLazy=bt,cr.isMemo=Wt,cr.isPortal=Xe,cr.isProfiler=ct,cr.isStrictMode=wt,cr.isSuspense=Bt,cr.isValidElementType=I,cr.typeOf=F})();(function(e){e.exports=cr})(kS);var YD=kS.exports,vY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qD={};qD[YD.ForwardRef]=vY;qD[YD.Memo]=gY;var bY=!0;function W8(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):i+=o+" "}),i}var LS=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||bY===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},OS=function(t,n,i){LS(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var u=n;do t.insert(n===u?"."+o:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function yY(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var SY={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ok=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,xY="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",CY=/[A-Z]|^ms/g,ZD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G8=function(t){return t.charCodeAt(1)===45},sk=function(t){return t!=null&&typeof t!="boolean"},z9=WD(function(e){return G8(e)?e:e.replace(CY,"-$&").toLowerCase()}),V4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZD,function(i,o,u){return Cu={name:o,styles:u,next:Cu},o})}return SY[t]!==1&&!G8(t)&&typeof n=="number"&&n!==0?n+"px":n};{var NY=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,wY=["normal","none","initial","inherit","unset"],_Y=V4,EY=/^-ms-/,TY=/-(.)/g,lk={};V4=function(t,n){if(t==="content"&&(typeof n!="string"||wY.indexOf(n)===-1&&!NY.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var i=_Y(t,n);return i!==""&&!G8(t)&&t.indexOf("-")!==-1&&lk[t]===void 0&&(lk[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(EY,"ms-").replace(TY,function(o,u){return u.toUpperCase()})+"?")),i}}var KD="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ig(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(KD);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cu={name:n.name,styles:n.styles,next:Cu},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Cu={name:i.name,styles:i.styles,next:Cu},i=i.next;var o=n.styles+";";return n.map!==void 0&&(o+=n.map),o}return RY(e,t,n)}case"function":{if(e!==void 0){var u=Cu,c=n(e);return Cu=u,Ig(e,t,c)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var p=[],h=n.replace(ZD,function(b,x,N){var _="animation"+p.length;return p.push("const "+_+" = keyframes`"+N.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+_+"}"});p.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(p,["`"+h+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+h+"`"))}break}if(t==null)return n;var v=t[n];return v!==void 0?v:n}function RY(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Ig(e,t,n[o])+";";else for(var u in n){var c=n[u];if(typeof c!="object")t!=null&&t[c]!==void 0?i+=u+"{"+t[c]+"}":sk(c)&&(i+=z9(u)+":"+V4(u,c)+";");else{if(u==="NO_COMPONENT_SELECTOR")throw new Error(KD);if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var p=0;p<c.length;p++)sk(c[p])&&(i+=z9(u)+":"+V4(u,c[p])+";");else{var h=Ig(e,t,c);switch(u){case"animation":case"animationName":{i+=z9(u)+":"+h+";";break}default:u==="undefined"&&console.error(xY),i+=u+"{"+h+"}"}}}}return i}var uk=/label:\s*([^\s;\n{]+)\s*(;|$)/g,XD;XD=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Cu,gv=function(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,u="";Cu=void 0;var c=t[0];c==null||c.raw===void 0?(o=!1,u+=Ig(i,n,c)):(c[0]===void 0&&console.error(ok),u+=c[0]);for(var p=1;p<t.length;p++)u+=Ig(i,n,t[p]),o&&(c[p]===void 0&&console.error(ok),u+=c[p]);var h;u=u.replace(XD,function(N){return h=N,""}),uk.lastIndex=0;for(var v="",b;(b=uk.exec(u))!==null;)v+="-"+b[1];var x=yY(u)+v;return{name:x,styles:u,map:h,next:Cu,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}},AY=function(t){return t()},QD=HA["useInsertionEffect"]?HA["useInsertionEffect"]:!1,Y8=QD||AY,ck=QD||k.exports.useLayoutEffect,kY={}.hasOwnProperty,q8=k.exports.createContext(typeof HTMLElement<"u"?hY({key:"css"}):null);q8.displayName="EmotionCacheContext";q8.Provider;var MS=function(t){return k.exports.forwardRef(function(n,i){var o=k.exports.useContext(q8);return t(n,o,i)})},id=k.exports.createContext({});id.displayName="EmotionThemeContext";var LY=function(t,n){if(typeof n=="function"){var i=n(t);if(i==null||typeof i!="object"||Array.isArray(i))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return i}if(n==null||typeof n!="object"||Array.isArray(n))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Pg({},t,n)},OY=rk(function(e){return rk(function(t){return LY(e,t)})}),MY=function(t){var n=k.exports.useContext(id);return t.theme!==n&&(n=OY(n)(t.theme)),k.exports.createElement(id.Provider,{value:n},t.children)},fk="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",dk="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",DY=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return LS(n,i,o),Y8(function(){return OS(n,i,o)}),null},PY=MS(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[fk],u=[i],c="";typeof e.className=="string"?c=W8(t.registered,u,e.className):e.className!=null&&(c=e.className+" ");var p=gv(u,void 0,k.exports.useContext(id));if(p.name.indexOf("-")===-1){var h=e[dk];h&&(p=gv([p,"label:"+h+";"]))}c+=t.key+"-"+p.name;var v={};for(var b in e)kY.call(e,b)&&b!=="css"&&b!==fk&&b!==dk&&(v[b]=e[b]);return v.ref=n,v.className=c,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(DY,{cache:t,serialized:p,isStringTag:typeof o=="string"}),k.exports.createElement(o,v))});PY.displayName="EmotionCssPropInternal";var IY={name:"@emotion/react",version:"11.10.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.js","macro.d.ts","macro.js.flow"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.10.0","@emotion/cache":"^11.10.0","@emotion/serialize":"^1.1.0","@emotion/use-insertion-effect-with-fallbacks":"^1.0.0","@emotion/utils":"^1.2.0","@emotion/weak-memoize":"^0.3.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{"@babel/core":"^7.0.0",react:">=16.8.0"},peerDependenciesMeta:{"@babel/core":{optional:!0},"@types/react":{optional:!0}},devDependencies:{"@babel/core":"^7.18.5","@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.0","@emotion/css-prettifier":"1.1.0","@emotion/server":"11.10.0","@emotion/styled":"11.10.4","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},pk=!1,ab=MS(function(e,t){!pk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),pk=!0);var n=e.styles,i=gv([n],void 0,k.exports.useContext(id)),o=k.exports.useRef();return ck(function(){var u=t.key+"-global",c=new t.sheet.constructor({key:u,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),p=!1,h=document.querySelector('style[data-emotion="'+u+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(p=!0,h.setAttribute("data-emotion",u),c.hydrate([h])),o.current=[c,p],function(){c.flush()}},[t]),ck(function(){var u=o.current,c=u[0],p=u[1];if(p){u[1]=!1;return}if(i.next!==void 0&&OS(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});ab.displayName="EmotionGlobal";function FY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gv(t)}var ob=function(){var t=FY.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},zY=function e(t){for(var n=t.length,i=0,o="";i<n;i++){var u=t[i];if(u!=null){var c=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))c=e(u);else{u.styles!==void 0&&u.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),c="";for(var p in u)u[p]&&p&&(c&&(c+=" "),c+=p)}break}default:c=u}c&&(o&&(o+=" "),o+=c)}}return o};function BY(e,t,n){var i=[],o=W8(e,i,n);return i.length<2?n:o+t(i)}var UY=function(t){var n=t.cache,i=t.serializedArr;return Y8(function(){for(var o=0;o<i.length;o++)OS(n,i[o],!1)}),null},$Y=MS(function(e,t){var n=!1,i=[],o=function(){if(n)throw new Error("css can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];var N=gv(b,t.registered);return i.push(N),LS(t,N,!1),t.key+"-"+N.name},u=function(){if(n)throw new Error("cx can only be used during render");for(var v=arguments.length,b=new Array(v),x=0;x<v;x++)b[x]=arguments[x];return BY(t.registered,o,zY(b))},c={css:o,cx:u,theme:k.exports.useContext(id)},p=e.children(c);return n=!0,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(UY,{cache:t,serializedArr:i}),p)});$Y.displayName="EmotionClassNames";{var mk=!0,jY=typeof jest<"u";if(mk&&!jY){var hk=typeof globalThis<"u"?globalThis:mk?window:global,vk="__EMOTION_REACT_"+IY.version.split(".")[0]+"__";hk[vk]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),hk[vk]=!0}}function ev(e){return typeof e=="function"}var VY=!0;function JD(e){return"current"in e}function HY(e,t){const n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}function WY(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var GY=e=>{const t=new WeakMap;return(i,o,u,c)=>{if(typeof i>"u")return e(i,o,u);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const h=e(i,o,u,c);return p.set(o,h),h}},eP=GY(WY);function tP(e,t){const n={};return Object.keys(e).forEach(i=>{const o=e[i];t(o,i,e)&&(n[i]=o)}),n}var nP=e=>tP(e,t=>t!=null);function Z8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function DS(e){if(!Z8(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function YY(e){var t;return Z8(e)?((t=sb(e))==null?void 0:t.defaultView)??window:window}function sb(e){return Z8(e)?e.ownerDocument??document:document}function qY(e){return e.view??window}function ZY(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lb=ZY();function KY(e){const t=sb(e);return t?.activeElement}function K8(e,t){return e?e===t||e.contains(t):!1}var rP=e=>e.hasAttribute("tabindex"),XY=e=>rP(e)&&e.tabIndex===-1;function QY(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function JY(e){return DS(e)&&e.localName==="input"&&"select"in e}function iP(e){return(DS(e)?sb(e):document).activeElement===e}function aP(e){return e.parentElement&&aP(e.parentElement)?!0:e.hidden}function eq(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function oP(e){if(!DS(e)||aP(e)||QY(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():eq(e)?!0:rP(e)}function tq(e){return e?DS(e)&&oP(e)&&!XY(e):!1}var nq=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],rq=nq.join(),iq=e=>e.offsetWidth>0&&e.offsetHeight>0;function aq(e){const t=Array.from(e.querySelectorAll(rq));return t.unshift(e),t.filter(n=>oP(n)&&iq(n))}function H4(e,...t){return ev(e)?e(...t):e}function oq(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function sq(e){let t;return function(...i){return e&&(t=e.apply(this,i),e=null),t}}var lq=sq(e=>()=>{const{condition:t,message:n}=e;t&&VY&&console.warn(n)}),uq=(...e)=>t=>e.reduce((n,i)=>i(n),t);function W4(e,t={}){const{isActive:n=iP,nextTick:i,preventScroll:o=!0,selectTextIfInput:u=!0}=t;if(!e||n(e))return-1;function c(){if(!e){lq({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(cq())e.focus({preventScroll:o});else if(e.focus(),o){const p=fq(e);dq(p)}if(u){if(JY(e))e.select();else if("setSelectionRange"in e){const p=e;p.setSelectionRange(p.value.length,p.value.length)}}}return i?requestAnimationFrame(c):(c(),-1)}var F5=null;function cq(){if(F5==null){F5=!1;try{document.createElement("div").focus({get preventScroll(){return F5=!0,!0}})}catch{}}return F5}function fq(e){const t=sb(e),n=t.defaultView??window;let i=e.parentNode;const o=[],u=t.scrollingElement||t.documentElement;for(;i instanceof n.HTMLElement&&i!==u;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return u instanceof n.HTMLElement&&o.push({element:u,scrollTop:u.scrollTop,scrollLeft:u.scrollLeft}),o}function dq(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function pq(e){return!!e.touches}function mq(e){return t=>{const n=qY(t),i=t instanceof n.MouseEvent;(!i||i&&t.button===0)&&e(t)}}var hq={pageX:0,pageY:0};function vq(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||hq;return{x:i[`${t}X`],y:i[`${t}Y`]}}function gq(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function bq(e,t="page"){return{point:pq(e)?vq(e,t):gq(e,t)}}var yq=(e,t=!1)=>{const n=i=>e(i,bq(i));return t?mq(n):n},Sq=()=>lb&&window.onpointerdown===null,xq=()=>lb&&window.ontouchstart===null,Cq=()=>lb&&window.onmousedown===null,Nq={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},wq={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _q(e){return Sq()?e:xq()?wq[e]:Cq()?Nq[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Eq(e){const{userAgent:t,vendor:n}=e,i=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(i&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case i:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function Tq(e){return lb?Eq(window.navigator)===e:!1}function Rq(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=k.exports.createContext(void 0);o.displayName=i;function u(){var c;const p=k.exports.useContext(o);if(!p&&t){const h=new Error(n);throw h.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,h,u),h}return p}return[o.Provider,u,o]}var Aq=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kq=WD(function(e){return Aq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Lq=kq,Oq=function(t){return t!=="theme"},gk=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Lq:Oq},bk=function(t,n,i){var o;if(n){var u=n.shouldForwardProp;o=t.__emotion_forwardProp&&u?function(c){return t.__emotion_forwardProp(c)&&u(c)}:u}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},yk=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Mq=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return LS(n,i,o),Y8(function(){return OS(n,i,o)}),null},Dq=function e(t,n){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
You may have forgotten to import it.`);var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,u,c;n!==void 0&&(u=n.label,c=n.target);var p=bk(t,n,i),h=p||gk(o),v=!h("as");return function(){var b=arguments,x=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(u!==void 0&&x.push("label:"+u+";"),b[0]==null||b[0].raw===void 0)x.push.apply(x,b);else{b[0][0]===void 0&&console.error(yk),x.push(b[0][0]);for(var N=b.length,_=1;_<N;_++)b[0][_]===void 0&&console.error(yk),x.push(b[_],b[0][_])}var T=MS(function(A,M,z){var P=v&&A.as||o,I="",F=[],$=A;if(A.theme==null){$={};for(var Y in A)$[Y]=A[Y];$.theme=k.exports.useContext(id)}typeof A.className=="string"?I=W8(M.registered,F,A.className):A.className!=null&&(I=A.className+" ");var Z=gv(x.concat(F),M.registered,$);I+=M.key+"-"+Z.name,c!==void 0&&(I+=" "+c);var ue=v&&p===void 0?gk(P):h,ce={};for(var le in A)v&&le==="as"||ue(le)&&(ce[le]=A[le]);return ce.className=I,ce.ref=z,k.exports.createElement(k.exports.Fragment,null,k.exports.createElement(Mq,{cache:M,serialized:Z,isStringTag:typeof P=="string"}),k.exports.createElement(P,ce))});return T.displayName=u!==void 0?u:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",T.defaultProps=t.defaultProps,T.__emotion_real=T,T.__emotion_base=o,T.__emotion_styles=x,T.__emotion_forwardProp=p,Object.defineProperty(T,"toString",{value:function(){return c===void 0?"NO_COMPONENT_SELECTOR":"."+c}}),T.withComponent=function(A,M){return e(A,Pg({},n,M,{shouldForwardProp:bk(T,M,!0)})).apply(void 0,x)},T}},Pq=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],u7=Dq.bind();Pq.forEach(function(e){u7[e]=u7(e)});var Iq=typeof Element<"u",Fq=typeof Map=="function",zq=typeof Set=="function",Bq=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function S4(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!S4(e[i],t[i]))return!1;return!0}var u;if(Fq&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;for(u=e.entries();!(i=u.next()).done;)if(!S4(i.value[1],t.get(i.value[0])))return!1;return!0}if(zq&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(i=u.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(Bq&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(Iq&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!S4(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var Uq=function(t,n){try{return S4(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},G4="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function PS(){const e=k.exports.useContext(id);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function sP(){const e=z8(),t=PS();return{...e,theme:t}}function $q(e,t,n){if(t==null)return t;const i=o=>{var u,c;return(c=(u=e.__breakpoints)==null?void 0:u.asArray)==null?void 0:c[o]};return i(t)??i(n)??n}function jq(e,t,n){if(t==null)return t;const i=o=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[o])==null?void 0:c.value};return i(t)??i(n)??n}function Vq(e,t,n){const i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return u=>{const c=o.filter(Boolean),p=i.map((h,v)=>{if(e==="breakpoints")return $q(u,h,c[v]??h);const b=`${e}.${h}`;return jq(u,b,c[v]??h)});return Array.isArray(t)?p:p[0]}}function Hq(e){const{cssVarsRoot:t,theme:n,children:i}=e,o=k.exports.useMemo(()=>NG(n),[n]);return C(MY,{theme:o,children:[C(Wq,{root:t},void 0,!1,{fileName:G4,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:G4,lineNumber:80,columnNumber:26},this)}function Wq({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return C(ab,{styles:n=>({[t]:n.__cssVars})},void 0,!1,{fileName:G4,lineNumber:88,columnNumber:26},this)}Rq({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Gq(){const{colorMode:e}=z8();return C(ab,{styles:t=>{const n=eP(t,"styles.global"),i=H4(n,{theme:t,colorMode:e});return i?zD(i)(t):void 0}},void 0,!1,{fileName:G4,lineNumber:104,columnNumber:26},this)}var Yq=new Set([...EG,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),qq=new Set(["htmlWidth","htmlHeight","htmlSize"]);function Zq(e){return qq.has(e)||!Yq.has(e)}var Kq=({baseStyle:e})=>t=>{const{theme:n,css:i,__css:o,sx:u,...c}=t,p=tP(c,(x,N)=>RG(N)),h=H4(e,t),v=Object.assign({},o,h,nP(p),u),b=zD(v)(t.theme);return i?[b,i]:b};function B9(e,t){const{baseStyle:n,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=Zq);const o=Kq({baseStyle:n});return u7(e,i)(o)}function qe(e){return k.exports.forwardRef(e)}function lP(e,t={}){const{styleConfig:n,...i}=t,{theme:o,colorMode:u}=sP(),c=eP(o,`components.${e}`),p=n||c,h=rd({theme:o,colorMode:u},p?.defaultProps??{},nP(HY(i,["children"]))),v=k.exports.useRef({});if(p){const x=IG(p)(h);Uq(v.current,x)||(v.current=x)}return v.current}function po(e,t={}){return lP(e,t)}function mo(e,t={}){return lP(e,t)}function Xq(){const e=new Map;return new Proxy(B9,{apply(t,n,i){return B9(...i)},get(t,n){return e.has(n)||e.set(n,B9(n)),e.get(n)}})}var $e=Xq();function Qq(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Tr(e={}){const{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:u}=e,c=k.exports.createContext(void 0);c.displayName=t;function p(){var h;const v=k.exports.useContext(c);if(!v&&n){const b=new Error(u??Qq(i,o));throw b.name="ContextError",(h=Error.captureStackTrace)==null||h.call(Error,b,p),b}return v}return[c.Provider,p,c]}function Jq(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function qr(...e){return t=>{e.forEach(n=>{Jq(n,t)})}}function eZ(...e){return k.exports.useMemo(()=>qr(...e),e)}function Sk(e){return e.sort((t,n)=>{const i=t.compareDocumentPosition(n);if(i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(i&Node.DOCUMENT_POSITION_DISCONNECTED||i&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var tZ=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function xk(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function Ck(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var c7=typeof window<"u"?k.exports.useLayoutEffect:k.exports.useEffect,Y4=e=>e,nZ=class{descendants=new Map;register=e=>{if(e!=null)return tZ(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=Sk(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=xk(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=xk(i,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=Ck(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=Ck(i,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),i=Sk(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)}};function rZ(){const e=k.exports.useRef(new nZ);return c7(()=>()=>e.current.destroy()),e.current}var[iZ,uP]=Tr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function aZ(e){const t=uP(),[n,i]=k.exports.useState(-1),o=k.exports.useRef(null);c7(()=>()=>{!o.current||t.unregister(o.current)},[]),c7(()=>{if(!o.current)return;const c=Number(o.current.dataset.index);n!=c&&!Number.isNaN(c)&&i(c)});const u=Y4(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:qr(u,o)}}function cP(){return[Y4(iZ),()=>Y4(uP()),()=>rZ(),o=>aZ(o)]}var Kr=(...e)=>e.filter(Boolean).join(" "),tv="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",Nk={path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:tv,lineNumber:14,columnNumber:22},globalThis),C("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:tv,lineNumber:18,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:tv,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:tv,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},ms=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:u=!1,children:c,className:p,__css:h,...v}=e,b=Kr("chakra-icon",p),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},N={ref:t,focusable:u,className:b,__css:x},_=i??Nk.viewBox;if(n&&typeof n!="string")return Ae.createElement($e.svg,{as:n,...N,...v});const T=c??Nk.path;return Ae.createElement($e.svg,{verticalAlign:"middle",viewBox:_,...N,...v},T)});ms.displayName="Icon";function kv(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,u=k.exports.Children.toArray(e.path),c=qe((p,h)=>C(ms,{ref:h,viewBox:t,...o,...p,children:u.length?u:C("path",{fill:"currentColor",d:n},void 0,!1,{fileName:tv,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:tv,lineNumber:88,columnNumber:60},this));return c.displayName=i,c}function Ha(e,t=[]){const n=k.exports.useRef(e);return k.exports.useEffect(()=>{n.current=e}),k.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function fP(e){const{value:t,defaultValue:n,onChange:i,shouldUpdate:o=(N,_)=>N!==_}=e,u=Ha(i),c=Ha(o),[p,h]=k.exports.useState(n),v=t!==void 0,b=v?t:p,x=k.exports.useCallback(N=>{const T=typeof N=="function"?N(b):N;!c(b,T)||(v||h(T),u(T))},[v,u,b,c]);return[b,x]}const X8=k.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),IS=k.exports.createContext({});function oZ(){return k.exports.useContext(IS).visualElement}const Lv=k.exports.createContext(null),am=typeof document<"u",q4=am?k.exports.useLayoutEffect:k.exports.useEffect,dP=k.exports.createContext({strict:!1});function sZ(e,t,n,i){const o=oZ(),u=k.exports.useContext(dP),c=k.exports.useContext(Lv),p=k.exports.useContext(X8).reducedMotion,h=k.exports.useRef(void 0);i=i||u.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:o,props:n,presenceId:c?c.id:void 0,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p}));const v=h.current;return q4(()=>{v&&v.syncRender()}),k.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),q4(()=>()=>v&&v.notifyUnmount(),[]),v}function nv(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lZ(e,t,n){return k.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):nv(n)&&(n.current=i))},[t])}function Fg(e){return typeof e=="string"||Array.isArray(e)}function FS(e){return typeof e=="object"&&typeof e.start=="function"}const uZ=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function zS(e){return FS(e.animate)||uZ.some(t=>Fg(e[t]))}function pP(e){return Boolean(zS(e)||e.variants)}function cZ(e,t){if(zS(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Fg(n)?n:void 0,animate:Fg(i)?i:void 0}}return e.inherit!==!1?t:{}}function fZ(e){const{initial:t,animate:n}=cZ(e,k.exports.useContext(IS));return k.exports.useMemo(()=>({initial:t,animate:n}),[wk(t),wk(n)])}function wk(e){return Array.isArray(e)?e.join(" "):e}const Nc=e=>({isEnabled:t=>e.some(n=>!!t[n])}),zg={measureLayout:Nc(["layout","layoutId","drag"]),animation:Nc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Nc(["exit"]),drag:Nc(["drag","dragControls"]),focus:Nc(["whileFocus"]),hover:Nc(["whileHover","onHoverStart","onHoverEnd"]),tap:Nc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Nc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Nc(["whileInView","onViewportEnter","onViewportLeave"])};function dZ(e){for(const t in e)t==="projectionNodeConstructor"?zg.projectionNodeConstructor=e[t]:zg[t].Component=e[t]}function BS(e){const t=k.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const bg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let pZ=1;function mZ(){return BS(()=>{if(bg.hasEverUpdated)return pZ++})}const Q8=k.exports.createContext({});class hZ extends Ae.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const mP=k.exports.createContext({}),vZ=Symbol.for("motionComponentSymbol");var _k="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function gZ({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:i,useVisualState:o,Component:u}){e&&dZ(e);function c(h,v){const b={...k.exports.useContext(X8),...h,layoutId:bZ(h)},{isStatic:x}=b;let N=null;const _=fZ(h),T=x?void 0:mZ(),A=o(h,x);if(!x&&am){_.visualElement=sZ(u,A,b,t);const M=k.exports.useContext(dP).strict,z=k.exports.useContext(mP);_.visualElement&&(N=_.visualElement.loadFeatures(b,M,e,T,n||zg.projectionNodeConstructor,z))}return C(hZ,{visualElement:_.visualElement,props:b,children:[N,C(IS.Provider,{value:_,children:i(u,h,T,lZ(A,_.visualElement,v),A,x,_.visualElement)},void 0,!1,{fileName:_k,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:_k,lineNumber:79,columnNumber:17},this)}const p=k.exports.forwardRef(c);return p[vZ]=u,p}function bZ({layoutId:e}){const t=k.exports.useContext(Q8).id;return t&&e!==void 0?t+"-"+e:e}function yZ(e){function t(i,o={}){return gZ(e(i,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const SZ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function J8(e){return typeof e!="string"||e.includes("-")?!1:!!(SZ.indexOf(e)>-1||/[A-Z]/.test(e))}const Z4={};function xZ(e){Object.assign(Z4,e)}const K4=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ub=new Set(K4);function hP(e,{layout:t,layoutId:n}){return ub.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Z4[e]||e==="opacity")}const Mu=e=>!!e?.getVelocity,CZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NZ=(e,t)=>K4.indexOf(e)-K4.indexOf(t);function wZ({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,u){let c="";t.sort(NZ);for(const p of t)c+=`${CZ[p]||p}(${e[p]}) `;return n&&!e.z&&(c+="translateZ(0)"),c=c.trim(),u?c=u(e,o?"":c):i&&o&&(c="none"),c}function vP(e){return e.startsWith("--")}const _Z=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gP=(e,t)=>n=>Math.max(Math.min(n,t),e),yg=e=>e%1?Number(e.toFixed(5)):e,Bg=/(-)?([\d]*\.?[\d])+/g,f7=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,EZ=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function cb(e){return typeof e=="string"}const om={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sg=Object.assign(Object.assign({},om),{transform:gP(0,1)}),z5=Object.assign(Object.assign({},om),{default:1}),fb=e=>({test:t=>cb(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vf=fb("deg"),Ru=fb("%"),Xt=fb("px"),TZ=fb("vh"),RZ=fb("vw"),Ek=Object.assign(Object.assign({},Ru),{parse:e=>Ru.parse(e)/100,transform:e=>Ru.transform(e*100)}),e_=(e,t)=>n=>Boolean(cb(n)&&EZ.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),bP=(e,t,n)=>i=>{if(!cb(i))return i;const[o,u,c,p]=i.match(Bg);return{[e]:parseFloat(o),[t]:parseFloat(u),[n]:parseFloat(c),alpha:p!==void 0?parseFloat(p):1}},Yp={test:e_("hsl","hue"),parse:bP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ru.transform(yg(t))+", "+Ru.transform(yg(n))+", "+yg(Sg.transform(i))+")"},AZ=gP(0,255),U9=Object.assign(Object.assign({},om),{transform:e=>Math.round(AZ(e))}),Kf={test:e_("rgb","red"),parse:bP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+U9.transform(e)+", "+U9.transform(t)+", "+U9.transform(n)+", "+yg(Sg.transform(i))+")"};function kZ(e){let t="",n="",i="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const d7={test:e_("#"),parse:kZ,transform:Kf.transform},co={test:e=>Kf.test(e)||d7.test(e)||Yp.test(e),parse:e=>Kf.test(e)?Kf.parse(e):Yp.test(e)?Yp.parse(e):d7.parse(e),transform:e=>cb(e)?e:e.hasOwnProperty("red")?Kf.transform(e):Yp.transform(e)},yP="${c}",SP="${n}";function LZ(e){var t,n,i,o;return isNaN(e)&&cb(e)&&((n=(t=e.match(Bg))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(i=e.match(f7))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0)>0}function xP(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const i=e.match(f7);i&&(n=i.length,e=e.replace(f7,yP),t.push(...i.map(co.parse)));const o=e.match(Bg);return o&&(e=e.replace(Bg,SP),t.push(...o.map(om.parse))),{values:t,numColors:n,tokenised:e}}function CP(e){return xP(e).values}function NP(e){const{values:t,numColors:n,tokenised:i}=xP(e),o=t.length;return u=>{let c=i;for(let p=0;p<o;p++)c=c.replace(p<n?yP:SP,p<n?co.transform(u[p]):yg(u[p]));return c}}const OZ=e=>typeof e=="number"?0:e;function MZ(e){const t=CP(e);return NP(e)(t.map(OZ))}const Mc={test:LZ,parse:CP,createTransformer:NP,getAnimatableNone:MZ},DZ=new Set(["brightness","contrast","saturate","opacity"]);function PZ(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Bg)||[];if(!i)return e;const o=n.replace(i,"");let u=DZ.has(t)?1:0;return i!==n&&(u*=100),t+"("+u+o+")"}const IZ=/([a-z-]*)\(.*?\)/g,p7=Object.assign(Object.assign({},Mc),{getAnimatableNone:e=>{const t=e.match(IZ);return t?t.map(PZ).join(" "):e}}),Tk={...om,transform:Math.round},wP={borderWidth:Xt,borderTopWidth:Xt,borderRightWidth:Xt,borderBottomWidth:Xt,borderLeftWidth:Xt,borderRadius:Xt,radius:Xt,borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomRightRadius:Xt,borderBottomLeftRadius:Xt,width:Xt,maxWidth:Xt,height:Xt,maxHeight:Xt,size:Xt,top:Xt,right:Xt,bottom:Xt,left:Xt,padding:Xt,paddingTop:Xt,paddingRight:Xt,paddingBottom:Xt,paddingLeft:Xt,margin:Xt,marginTop:Xt,marginRight:Xt,marginBottom:Xt,marginLeft:Xt,rotate:Vf,rotateX:Vf,rotateY:Vf,rotateZ:Vf,scale:z5,scaleX:z5,scaleY:z5,scaleZ:z5,skew:Vf,skewX:Vf,skewY:Vf,distance:Xt,translateX:Xt,translateY:Xt,translateZ:Xt,x:Xt,y:Xt,z:Xt,perspective:Xt,transformPerspective:Xt,opacity:Sg,originX:Ek,originY:Ek,originZ:Xt,zIndex:Tk,fillOpacity:Sg,strokeOpacity:Sg,numOctaves:Tk};function t_(e,t,n,i){const{style:o,vars:u,transform:c,transformKeys:p,transformOrigin:h}=e;p.length=0;let v=!1,b=!1,x=!0;for(const N in t){const _=t[N];if(vP(N)){u[N]=_;continue}const T=wP[N],A=_Z(_,T);if(ub.has(N)){if(v=!0,c[N]=A,p.push(N),!x)continue;_!==(T.default||0)&&(x=!1)}else N.startsWith("origin")?(b=!0,h[N]=A):o[N]=A}if(v||i?o.transform=wZ(e,n,x,i):!t.transform&&o.transform&&(o.transform="none"),b){const{originX:N="50%",originY:_="50%",originZ:T=0}=h;o.transformOrigin=`${N} ${_} ${T}`}}const n_=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function _P(e,t,n){for(const i in t)!Mu(t[i])&&!hP(i,n)&&(e[i]=t[i])}function FZ({transformTemplate:e},t,n){return k.exports.useMemo(()=>{const i=n_();return t_(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}function zZ(e,t,n){const i=e.style||{},o={};return _P(o,i,e),Object.assign(o,FZ(e,t,n)),e.transformValues?e.transformValues(o):o}function BZ(e,t,n){const i={},o=zZ(e,t,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),i.style=o,i}const UZ=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],$Z=["whileTap","onTap","onTapStart","onTapCancel"],jZ=["onPan","onPanStart","onPanSessionStart","onPanEnd"],VZ=["whileInView","onViewportEnter","onViewportLeave","viewport"],HZ=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...VZ,...$Z,...UZ,...jZ]);function X4(e){return HZ.has(e)}let EP=e=>!X4(e);function WZ(e){!e||(EP=t=>t.startsWith("on")?!X4(t):e(t))}try{WZ(require("@emotion/is-prop-valid").default)}catch{}function GZ(e,t,n){const i={};for(const o in e)(EP(o)||n===!0&&X4(o)||!t&&!X4(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function Rk(e,t,n){return typeof e=="string"?e:Xt.transform(t+n*e)}function YZ(e,t,n){const i=Rk(t,e.x,e.width),o=Rk(n,e.y,e.height);return`${i} ${o}`}const qZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZZ={offset:"strokeDashoffset",array:"strokeDasharray"};function KZ(e,t,n=1,i=0,o=!0){e.pathLength=1;const u=o?qZ:ZZ;e[u.offset]=Xt.transform(-i);const c=Xt.transform(t),p=Xt.transform(n);e[u.array]=`${c} ${p}`}function r_(e,{attrX:t,attrY:n,originX:i,originY:o,pathLength:u,pathSpacing:c=1,pathOffset:p=0,...h},v,b){t_(e,h,v,b),e.attrs=e.style,e.style={};const{attrs:x,style:N,dimensions:_}=e;x.transform&&(_&&(N.transform=x.transform),delete x.transform),_&&(i!==void 0||o!==void 0||N.transform)&&(N.transformOrigin=YZ(_,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),u!==void 0&&KZ(x,u,c,p,!1)}const TP=()=>({...n_(),attrs:{}});function XZ(e,t){const n=k.exports.useMemo(()=>{const i=TP();return r_(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_P(i,e.style,e),n.style={...i,...n.style}}return n}function QZ(e=!1){return(n,i,o,u,{latestValues:c},p)=>{const v=(J8(n)?XZ:BZ)(i,c,p),x={...GZ(i,typeof n=="string",e),...v,ref:u};return o&&(x["data-projection-id"]=o),k.exports.createElement(n,x)}}const RP=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function AP(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const u in n)e.style.setProperty(u,n[u])}const kP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function LP(e,t,n,i){AP(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(kP.has(o)?o:RP(o),t.attrs[o])}function i_(e){const{style:t}=e,n={};for(const i in t)(Mu(t[i])||hP(i,e))&&(n[i]=t[i]);return n}function OP(e){const t=i_(e);for(const n in e)if(Mu(e[n])){const i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[i]=e[n]}return t}function MP(e,t,n,i={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),t}const Ug=e=>Array.isArray(e),JZ=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),DP=e=>Ug(e)?e[e.length-1]||0:e;function x4(e){const t=Mu(e)?e.get():e;return JZ(t)?t.toValue():t}function eK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,u){const c={latestValues:tK(i,o,u,e),renderState:t()};return n&&(c.mount=p=>n(i,p,c)),c}const PP=e=>(t,n)=>{const i=k.exports.useContext(IS),o=k.exports.useContext(Lv),u=()=>eK(e,t,i,o);return n?u():BS(u)};function tK(e,t,n,i){const o={},u=i(e);for(const N in u)o[N]=x4(u[N]);let{initial:c,animate:p}=e;const h=zS(e),v=pP(e);t&&v&&!h&&e.inherit!==!1&&(c===void 0&&(c=t.initial),p===void 0&&(p=t.animate));let b=n?n.initial===!1:!1;b=b||c===!1;const x=b?p:c;return x&&typeof x!="boolean"&&!FS(x)&&(Array.isArray(x)?x:[x]).forEach(_=>{const T=MP(e,_);if(!T)return;const{transitionEnd:A,transition:M,...z}=T;for(const P in z){let I=z[P];if(Array.isArray(I)){const F=b?I.length-1:0;I=I[F]}I!==null&&(o[P]=I)}for(const P in A)o[P]=A[P]}),o}const nK={useVisualState:PP({scrapeMotionValuesFromProps:OP,createRenderState:TP,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}r_(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),LP(t,n)}})},rK={useVisualState:PP({scrapeMotionValuesFromProps:i_,createRenderState:n_})};function iK(e,{forwardMotionProps:t=!1},n,i,o){return{...J8(e)?nK:rK,preloadedFeatures:n,useRender:QZ(t),createVisualElement:i,projectionNodeConstructor:o,Component:e}}var Er;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Er||(Er={}));function US(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function m7(e,t,n,i){k.exports.useEffect(()=>{const o=e.current;if(n&&o)return US(o,t,n,i)},[e,t,n,i])}function aK({whileFocus:e,visualElement:t}){const{animationState:n}=t,i=()=>{n&&n.setActive(Er.Focus,!0)},o=()=>{n&&n.setActive(Er.Focus,!1)};m7(t,"focus",e?i:void 0),m7(t,"blur",e?o:void 0)}function IP(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function FP(e){return!!e.touches}function oK(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const sK={pageX:0,pageY:0};function lK(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||sK;return{x:i[t+"X"],y:i[t+"Y"]}}function uK(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function a_(e,t="page"){return{point:FP(e)?lK(e,t):uK(e,t)}}const zP=(e,t=!1)=>{const n=i=>e(i,a_(i));return t?oK(n):n},cK=()=>am&&window.onpointerdown===null,fK=()=>am&&window.ontouchstart===null,dK=()=>am&&window.onmousedown===null,pK={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},mK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function BP(e){return cK()?e:fK()?mK[e]:dK()?pK[e]:e}function sv(e,t,n,i){return US(e,BP(t),zP(n,t==="pointerdown"),i)}function Q4(e,t,n,i){return m7(e,BP(t),n&&zP(n,t==="pointerdown"),i)}function UP(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ak=UP("dragHorizontal"),kk=UP("dragVertical");function $P(e){let t=!1;if(e==="y")t=kk();else if(e==="x")t=Ak();else{const n=Ak(),i=kk();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function jP(){const e=$P(!0);return e?(e(),!1):!0}function Lk(e,t,n){return(i,o)=>{!IP(i)||jP()||(e.animationState&&e.animationState.setActive(Er.Hover,t),n&&n(i,o))}}function hK({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:i}){Q4(i,"pointerenter",e||n?Lk(i,!0,e):void 0,{passive:!e}),Q4(i,"pointerleave",t||n?Lk(i,!1,t):void 0,{passive:!t})}const VP=(e,t)=>t?e===t?!0:VP(e,t.parentElement):!1;function o_(e){return k.exports.useEffect(()=>()=>e(),[])}var Nu=function(){return Nu=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},Nu.apply(this,arguments)};function $S(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function Ov(e,t,n,i){function o(u){return u instanceof n?u:new n(function(c){c(u)})}return new(n||(n=Promise))(function(u,c){function p(b){try{v(i.next(b))}catch(x){c(x)}}function h(b){try{v(i.throw(b))}catch(x){c(x)}}function v(b){b.done?u(b.value):o(b.value).then(p,h)}v((i=i.apply(e,t||[])).next())})}function Mv(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,o,u,c;return c={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function p(v){return function(b){return h([v,b])}}function h(v){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(u=v[0]&2?o.return:v[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,v[1])).done)return u;switch(o=0,u&&(v=[v[0]&2,u.value]),v[0]){case 0:case 1:u=v;break;case 4:return n.label++,{value:v[1],done:!1};case 5:n.label++,o=v[1],v=[0];continue;case 7:v=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(v[0]===6||v[0]===2)){n=0;continue}if(v[0]===3&&(!u||v[1]>u[0]&&v[1]<u[3])){n.label=v[1];break}if(v[0]===6&&n.label<u[1]){n.label=u[1],u=v;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(v);break}u[2]&&n.ops.pop(),n.trys.pop();continue}v=t.call(e,n)}catch(b){v=[6,b],o=0}finally{i=u=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function Ok(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,u=[],c;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)u.push(o.value)}catch(p){c={error:p}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(c)throw c.error}}return u}function h7(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,u;i<o;i++)(u||!(i in t))&&(u||(u=Array.prototype.slice.call(t,0,i)),u[i]=t[i]);return e.concat(u||Array.prototype.slice.call(t))}var db=function(){},Zs=function(){};db=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Zs=function(e,t){if(!e)throw new Error(t)};const J4=(e,t,n)=>Math.min(Math.max(n,e),t),$9=.001,vK=.01,Mk=10,gK=.05,bK=1;function yK({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,u;db(e<=Mk*1e3,"Spring duration must be 10 seconds or less");let c=1-t;c=J4(gK,bK,c),e=J4(vK,Mk,e/1e3),c<1?(o=v=>{const b=v*c,x=b*e,N=b-n,_=v7(v,c),T=Math.exp(-x);return $9-N/_*T},u=v=>{const x=v*c*e,N=x*n+n,_=Math.pow(c,2)*Math.pow(v,2)*e,T=Math.exp(-x),A=v7(Math.pow(v,2),c);return(-o(v)+$9>0?-1:1)*((N-_)*T)/A}):(o=v=>{const b=Math.exp(-v*e),x=(v-n)*e+1;return-$9+b*x},u=v=>{const b=Math.exp(-v*e),x=(n-v)*(e*e);return b*x});const p=5/e,h=xK(o,u,p);if(e=e*1e3,isNaN(h))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(h,2)*i;return{stiffness:v,damping:c*2*Math.sqrt(i*v),duration:e}}}const SK=12;function xK(e,t,n){let i=n;for(let o=1;o<SK;o++)i=i-e(i)/t(i);return i}function v7(e,t){return e*Math.sqrt(1-t*t)}const CK=["duration","bounce"],NK=["stiffness","damping","mass"];function Dk(e,t){return t.some(n=>e[n]!==void 0)}function wK(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Dk(e,NK)&&Dk(e,CK)){const n=yK(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function s_(e){var{from:t=0,to:n=1,restSpeed:i=2,restDelta:o}=e,u=$S(e,["from","to","restSpeed","restDelta"]);const c={done:!1,value:t};let{stiffness:p,damping:h,mass:v,velocity:b,duration:x,isResolvedFromDuration:N}=wK(u),_=Pk,T=Pk;function A(){const M=b?-(b/1e3):0,z=n-t,P=h/(2*Math.sqrt(p*v)),I=Math.sqrt(p/v)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),P<1){const F=v7(I,P);_=$=>{const Y=Math.exp(-P*I*$);return n-Y*((M+P*I*z)/F*Math.sin(F*$)+z*Math.cos(F*$))},T=$=>{const Y=Math.exp(-P*I*$);return P*I*Y*(Math.sin(F*$)*(M+P*I*z)/F+z*Math.cos(F*$))-Y*(Math.cos(F*$)*(M+P*I*z)-F*z*Math.sin(F*$))}}else if(P===1)_=F=>n-Math.exp(-I*F)*(z+(M+I*z)*F);else{const F=I*Math.sqrt(P*P-1);_=$=>{const Y=Math.exp(-P*I*$),Z=Math.min(F*$,300);return n-Y*((M+P*I*z)*Math.sinh(Z)+F*z*Math.cosh(Z))/F}}}return A(),{next:M=>{const z=_(M);if(N)c.done=M>=x;else{const P=T(M)*1e3,I=Math.abs(P)<=i,F=Math.abs(n-z)<=o;c.done=I&&F}return c.value=c.done?n:z,c},flipTarget:()=>{b=-b,[t,n]=[n,t],A()}}}s_.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Pk=e=>0,$g=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Zr=(e,t,n)=>-n*e+n*t+e;function j9(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ik({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,u=0,c=0;if(!t)o=u=c=n;else{const p=n<.5?n*(1+t):n+t-n*t,h=2*n-p;o=j9(h,p,e+1/3),u=j9(h,p,e),c=j9(h,p,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:i}}const _K=(e,t,n)=>{const i=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-i)+i))},EK=[d7,Kf,Yp],Fk=e=>EK.find(t=>t.test(e)),zk=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,HP=(e,t)=>{let n=Fk(e),i=Fk(t);Zs(!!n,zk(e)),Zs(!!i,zk(t));let o=n.parse(e),u=i.parse(t);n===Yp&&(o=Ik(o),n=Kf),i===Yp&&(u=Ik(u),i=Kf);const c=Object.assign({},o);return p=>{for(const h in c)h!=="alpha"&&(c[h]=_K(o[h],u[h],p));return c.alpha=Zr(o.alpha,u.alpha,p),n.transform(c)}},g7=e=>typeof e=="number",TK=(e,t)=>n=>t(e(n)),jS=(...e)=>e.reduce(TK);function WP(e,t){return g7(e)?n=>Zr(e,t,n):co.test(e)?HP(e,t):YP(e,t)}const GP=(e,t)=>{const n=[...e],i=n.length,o=e.map((u,c)=>WP(u,t[c]));return u=>{for(let c=0;c<i;c++)n[c]=o[c](u);return n}},RK=(e,t)=>{const n=Object.assign(Object.assign({},e),t),i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=WP(e[o],t[o]));return o=>{for(const u in i)n[u]=i[u](o);return n}};function Bk(e){const t=Mc.parse(e),n=t.length;let i=0,o=0,u=0;for(let c=0;c<n;c++)i||typeof t[c]=="number"?i++:t[c].hue!==void 0?u++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:u}}const YP=(e,t)=>{const n=Mc.createTransformer(t),i=Bk(e),o=Bk(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?jS(GP(i.parsed,o.parsed),n):(db(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),c=>`${c>0?t:e}`)},AK=(e,t)=>n=>Zr(e,t,n);function kK(e){if(typeof e=="number")return AK;if(typeof e=="string")return co.test(e)?HP:YP;if(Array.isArray(e))return GP;if(typeof e=="object")return RK}function LK(e,t,n){const i=[],o=n||kK(e[0]),u=e.length-1;for(let c=0;c<u;c++){let p=o(e[c],e[c+1]);if(t){const h=Array.isArray(t)?t[c]:t;p=jS(h,p)}i.push(p)}return i}function OK([e,t],[n]){return i=>n($g(e,t,i))}function MK(e,t){const n=e.length,i=n-1;return o=>{let u=0,c=!1;if(o<=e[0]?c=!0:o>=e[i]&&(u=i-1,c=!0),!c){let h=1;for(;h<n&&!(e[h]>o||h===i);h++);u=h-1}const p=$g(e[u],e[u+1],o);return t[u](p)}}function qP(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const u=e.length;Zs(u===t.length,"Both input and output ranges must be the same length"),Zs(!i||!Array.isArray(i)||i.length===u-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const c=LK(t,i,o),p=u===2?OK(e,c):MK(e,c);return n?h=>p(J4(e[0],e[u-1],h)):p}const VS=e=>t=>1-e(1-t),l_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,DK=e=>t=>Math.pow(t,e),ZP=e=>t=>t*t*((e+1)*t-e),PK=e=>{const t=ZP(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},KP=1.525,IK=4/11,FK=8/11,zK=9/10,u_=e=>e,c_=DK(2),BK=VS(c_),XP=l_(c_),QP=e=>1-Math.sin(Math.acos(e)),f_=VS(QP),UK=l_(f_),d_=ZP(KP),$K=VS(d_),jK=l_(d_),VK=PK(KP),HK=4356/361,WK=35442/1805,GK=16061/1805,eS=e=>{if(e===1||e===0)return e;const t=e*e;return e<IK?7.5625*t:e<FK?9.075*t-9.9*e+3.4:e<zK?HK*t-WK*e+GK:10.8*e*e-20.52*e+10.72},YK=VS(eS),qK=e=>e<.5?.5*(1-eS(1-e*2)):.5*eS(e*2-1)+.5;function ZK(e,t){return e.map(()=>t||XP).splice(0,e.length-1)}function KK(e){const t=e.length;return e.map((n,i)=>i!==0?i/(t-1):0)}function XK(e,t){return e.map(n=>n*t)}function C4({from:e=0,to:t=1,ease:n,offset:i,duration:o=300}){const u={done:!1,value:e},c=Array.isArray(t)?t:[e,t],p=XK(i&&i.length===c.length?i:KK(c),o);function h(){return qP(p,c,{ease:Array.isArray(n)?n:ZK(c,n)})}let v=h();return{next:b=>(u.value=v(b),u.done=b>=o,u),flipTarget:()=>{c.reverse(),v=h()}}}function QK({velocity:e=0,from:t=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:u}){const c={done:!1,value:t};let p=n*e;const h=t+p,v=u===void 0?h:u(h);return v!==h&&(p=v-t),{next:b=>{const x=-p*Math.exp(-b/i);return c.done=!(x>o||x<-o),c.value=c.done?v:v+x,c},flipTarget:()=>{}}}const Uk={keyframes:C4,spring:s_,decay:QK};function JK(e){if(Array.isArray(e.to))return C4;if(Uk[e.type])return Uk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?C4:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?s_:C4}const JP=1/60*1e3,eX=typeof performance<"u"?()=>performance.now():()=>Date.now(),eI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(eX()),JP);function tX(e){let t=[],n=[],i=0,o=!1,u=!1;const c=new WeakSet,p={schedule:(h,v=!1,b=!1)=>{const x=b&&o,N=x?t:n;return v&&c.add(h),N.indexOf(h)===-1&&(N.push(h),x&&o&&(i=t.length)),h},cancel:h=>{const v=n.indexOf(h);v!==-1&&n.splice(v,1),c.delete(h)},process:h=>{if(o){u=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(h),c.has(b)&&(p.schedule(b),e())}o=!1,u&&(u=!1,p.process(h))}};return p}const nX=40;let b7=!0,jg=!1,y7=!1;const lv={delta:0,timestamp:0},pb=["read","update","preRender","render","postRender"],HS=pb.reduce((e,t)=>(e[t]=tX(()=>jg=!0),e),{}),rX=pb.reduce((e,t)=>{const n=HS[t];return e[t]=(i,o=!1,u=!1)=>(jg||oX(),n.schedule(i,o,u)),e},{}),iX=pb.reduce((e,t)=>(e[t]=HS[t].cancel,e),{});pb.reduce((e,t)=>(e[t]=()=>HS[t].process(lv),e),{});const aX=e=>HS[e].process(lv),tI=e=>{jg=!1,lv.delta=b7?JP:Math.max(Math.min(e-lv.timestamp,nX),1),lv.timestamp=e,y7=!0,pb.forEach(aX),y7=!1,jg&&(b7=!1,eI(tI))},oX=()=>{jg=!0,b7=!0,y7||eI(tI)},sX=()=>lv;function nI(e,t,n=0){return e-t-n}function lX(e,t,n=0,i=!0){return i?nI(t+-e,t,n):t-(e-t)+n}function uX(e,t,n,i){return i?e>=t+n:e<=-n}const cX=e=>{const t=({delta:n})=>e(n);return{start:()=>rX.update(t,!0),stop:()=>iX.update(t)}};function rI(e){var t,n,{from:i,autoplay:o=!0,driver:u=cX,elapsed:c=0,repeat:p=0,repeatType:h="loop",repeatDelay:v=0,onPlay:b,onStop:x,onComplete:N,onRepeat:_,onUpdate:T}=e,A=$S(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:M}=A,z,P=0,I=A.duration,F,$=!1,Y=!0,Z;const ue=JK(A);!((n=(t=ue).needsInterpolation)===null||n===void 0)&&n.call(t,i,M)&&(Z=qP([0,100],[i,M],{clamp:!1}),i=0,M=100);const ce=ue(Object.assign(Object.assign({},A),{from:i,to:M}));function le(){P++,h==="reverse"?(Y=P%2===0,c=lX(c,I,v,Y)):(c=nI(c,I,v),h==="mirror"&&ce.flipTarget()),$=!1,_&&_()}function ge(){z.stop(),N&&N()}function Ye(ie){if(Y||(ie=-ie),c+=ie,!$){const Ce=ce.next(Math.max(0,c));F=Ce.value,Z&&(F=Z(F)),$=Y?Ce.done:c<=0}T?.(F),$&&(P===0&&(I??(I=c)),P<p?uX(c,I,v,Y)&&le():ge())}function re(){b?.(),z=u(Ye),z.start()}return o&&re(),{stop:()=>{x?.(),z.stop()}}}function iI(e,t){return t?e*(1e3/t):0}function fX({from:e=0,velocity:t=0,min:n,max:i,power:o=.8,timeConstant:u=750,bounceStiffness:c=500,bounceDamping:p=10,restDelta:h=1,modifyTarget:v,driver:b,onUpdate:x,onComplete:N,onStop:_}){let T;function A(I){return n!==void 0&&I<n||i!==void 0&&I>i}function M(I){return n===void 0?i:i===void 0||Math.abs(n-I)<Math.abs(i-I)?n:i}function z(I){T?.stop(),T=rI(Object.assign(Object.assign({},I),{driver:b,onUpdate:F=>{var $;x?.(F),($=I.onUpdate)===null||$===void 0||$.call(I,F)},onComplete:N,onStop:_}))}function P(I){z(Object.assign({type:"spring",stiffness:c,damping:p,restDelta:h},I))}if(A(e))P({from:e,velocity:t,to:M(e)});else{let I=o*t+e;typeof v<"u"&&(I=v(I));const F=M(I),$=F===n?-1:1;let Y,Z;const ue=ce=>{Y=Z,Z=ce,t=iI(ce-Y,sX().delta),($===1&&ce>F||$===-1&&ce<F)&&P({from:ce,to:F,velocity:t})};z({type:"decay",from:e,velocity:t,timeConstant:u,power:o,restDelta:h,modifyTarget:v,onUpdate:A(I)?ue:void 0})}return{stop:()=>T?.stop()}}const S7=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),$k=e=>S7(e)&&e.hasOwnProperty("z"),B5=(e,t)=>Math.abs(e-t);function p_(e,t){if(g7(e)&&g7(t))return B5(e,t);if(S7(e)&&S7(t)){const n=B5(e.x,t.x),i=B5(e.y,t.y),o=$k(e)&&$k(t)?B5(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}const aI=(e,t)=>1-3*t+3*e,oI=(e,t)=>3*t-6*e,sI=e=>3*e,tS=(e,t,n)=>((aI(t,n)*e+oI(t,n))*e+sI(t))*e,lI=(e,t,n)=>3*aI(t,n)*e*e+2*oI(t,n)*e+sI(t),dX=1e-7,pX=10;function mX(e,t,n,i,o){let u,c,p=0;do c=t+(n-t)/2,u=tS(c,i,o)-e,u>0?n=c:t=c;while(Math.abs(u)>dX&&++p<pX);return c}const hX=8,vX=.001;function gX(e,t,n,i){for(let o=0;o<hX;++o){const u=lI(t,n,i);if(u===0)return t;t-=(tS(t,n,i)-e)/u}return t}const N4=11,U5=1/(N4-1);function bX(e,t,n,i){if(e===t&&n===i)return u_;const o=new Float32Array(N4);for(let c=0;c<N4;++c)o[c]=tS(c*U5,e,n);function u(c){let p=0,h=1;const v=N4-1;for(;h!==v&&o[h]<=c;++h)p+=U5;--h;const b=(c-o[h])/(o[h+1]-o[h]),x=p+b*U5,N=lI(x,e,n);return N>=vX?gX(c,x,e,n):N===0?x:mX(c,p,p+U5,e,n)}return c=>c===0||c===1?c:tS(u(c),t,i)}function yX({onTap:e,onTapStart:t,onTapCancel:n,whileTap:i,visualElement:o}){const u=e||t||n||i,c=k.exports.useRef(!1),p=k.exports.useRef(null),h={passive:!(t||e||n||_)};function v(){p.current&&p.current(),p.current=null}function b(){return v(),c.current=!1,o.animationState&&o.animationState.setActive(Er.Tap,!1),!jP()}function x(T,A){!b()||(VP(o.getInstance(),T.target)?e&&e(T,A):n&&n(T,A))}function N(T,A){!b()||n&&n(T,A)}function _(T,A){v(),!c.current&&(c.current=!0,p.current=jS(sv(window,"pointerup",x,h),sv(window,"pointercancel",N,h)),o.animationState&&o.animationState.setActive(Er.Tap,!0),t&&t(T,A))}Q4(o,"pointerdown",u?_:void 0,h),o_(v)}const SX="production",m_=typeof process>"u"||process.env===void 0?SX:"development",jk=new Set;function h_(e,t,n){e||jk.has(t)||(console.warn(t),n&&console.warn(n),jk.add(t))}const x7=new WeakMap,V9=new WeakMap,xX=e=>{const t=x7.get(e.target);t&&t(e)},CX=e=>{e.forEach(xX)};function NX({root:e,...t}){const n=e||document;V9.has(n)||V9.set(n,{});const i=V9.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(CX,{root:e,...t})),i[o]}function wX(e,t,n){const i=NX(t);return x7.set(e,n),i.observe(e),()=>{x7.delete(e),i.unobserve(e)}}function _X({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:i,viewport:o={}}){const u=k.exports.useRef({hasEnteredView:!1,isInView:!1});let c=Boolean(t||n||i);o.once&&u.current.hasEnteredView&&(c=!1),(typeof IntersectionObserver>"u"?RX:TX)(c,u.current,e,o)}const EX={some:0,all:1};function TX(e,t,n,{root:i,margin:o,amount:u="some",once:c}){k.exports.useEffect(()=>{if(!e)return;const p={root:i?.current,rootMargin:o,threshold:typeof u=="number"?u:EX[u]},h=v=>{const{isIntersecting:b}=v;if(t.isInView===b||(t.isInView=b,c&&!b&&t.hasEnteredView))return;b&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Er.InView,b);const x=n.getProps(),N=b?x.onViewportEnter:x.onViewportLeave;N&&N(v)};return wX(n.getInstance(),p,h)},[e,i,o,u])}function RX(e,t,n,{fallback:i=!0}){k.exports.useEffect(()=>{!e||!i||(m_!=="production"&&h_(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Er.InView,!0)}))},[e])}const Xf=e=>t=>(e(t),null),AX={inView:Xf(_X),tap:Xf(yX),focus:Xf(aK),hover:Xf(hK)};function v_(){const e=k.exports.useContext(Lv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=k.exports.useId();return k.exports.useEffect(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function kX(){return LX(k.exports.useContext(Lv))}function LX(e){return e===null?!0:e.isPresent}function uI(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const nS=e=>e*1e3,Vk={linear:u_,easeIn:c_,easeInOut:XP,easeOut:BK,circIn:QP,circInOut:UK,circOut:f_,backIn:d_,backInOut:jK,backOut:$K,anticipate:VK,bounceIn:YK,bounceInOut:qK,bounceOut:eS},Hk=e=>{if(Array.isArray(e)){Zs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return bX(t,n,i,o)}else if(typeof e=="string")return Zs(Vk[e]!==void 0,`Invalid easing type '${e}'`),Vk[e];return e},OX=e=>Array.isArray(e)&&typeof e[0]!="number",Wk=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Mc.test(t)&&!t.startsWith("url(")),Op=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),$5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),H9=()=>({type:"keyframes",ease:"linear",duration:.3}),MX=e=>({type:"keyframes",duration:.8,values:e}),Gk={x:Op,y:Op,z:Op,rotate:Op,rotateX:Op,rotateY:Op,rotateZ:Op,scaleX:$5,scaleY:$5,scale:$5,opacity:H9,backgroundColor:H9,color:H9,default:$5},DX=(e,t)=>{let n;return Ug(t)?n=MX:n=Gk[e]||Gk.default,{to:t,...n(t)}},PX={...wP,color:co,backgroundColor:co,outlineColor:co,fill:co,stroke:co,borderColor:co,borderTopColor:co,borderRightColor:co,borderBottomColor:co,borderLeftColor:co,filter:p7,WebkitFilter:p7},g_=e=>PX[e];function b_(e,t){var n;let i=g_(e);return i!==p7&&(i=Mc),(n=i.getAnimatableNone)===null||n===void 0?void 0:n.call(i,t)}const IX={current:!1};function FX({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:u,repeatType:c,repeatDelay:p,from:h,...v}){return!!Object.keys(v).length}let Yk=!1;function zX({ease:e,times:t,yoyo:n,flip:i,loop:o,...u}){const c={...u};return t&&(c.offset=t),u.duration&&(c.duration=nS(u.duration)),u.repeatDelay&&(c.repeatDelay=nS(u.repeatDelay)),e&&(c.ease=OX(e)?e.map(Hk):Hk(e)),u.type==="tween"&&(c.type="keyframes"),(n||o||i)&&(db(!Yk,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Yk=!0,n?c.repeatType="reverse":o?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=o||n||i||u.repeat),u.type!=="spring"&&(c.type="keyframes"),c}function BX(e,t){var n,i;return(i=(n=(y_(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&i!==void 0?i:0}function UX(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function $X(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),UX(t),FX(e)||(e={...e,...DX(n,t.to)}),{...t,...zX(e)}}function jX(e,t,n,i,o){const u=y_(i,e)||{};let c=u.from!==void 0?u.from:t.get();const p=Wk(e,n);c==="none"&&p&&typeof n=="string"?c=b_(e,n):qk(c)&&typeof n=="string"?c=Zk(n):!Array.isArray(n)&&qk(n)&&typeof c=="string"&&(n=Zk(c));const h=Wk(e,c);db(h===p,`You are trying to animate ${e} from "${c}" to "${n}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${n} via the \`style\` property.`);function v(){const x={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:N=>t.set(N)};return u.type==="inertia"||u.type==="decay"?fX({...x,...u}):rI({...$X(u,x,e),onUpdate:N=>{x.onUpdate(N),u.onUpdate&&u.onUpdate(N)},onComplete:()=>{x.onComplete(),u.onComplete&&u.onComplete()}})}function b(){const x=DP(n);return t.set(x),o(),u.onUpdate&&u.onUpdate(x),u.onComplete&&u.onComplete(),{stop:()=>{}}}return!h||!p||u.type===!1?b:v}function qk(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Zk(e){return typeof e=="number"?0:b_("",e)}function y_(e,t){return e[t]||e.default||e}function S_(e,t,n,i={}){return IX.current&&(i={type:!1}),t.start(o=>{let u,c;const p=jX(e,t,n,i,o),h=BX(i,e),v=()=>c=p();return h?u=window.setTimeout(v,nS(h)):v(),()=>{clearTimeout(u),c&&c.stop()}})}const VX=e=>/^\-?\d*\.?\d+$/.test(e),HX=e=>/^0[^.\s]+$/.test(e),cI=1/60*1e3,WX=typeof performance<"u"?()=>performance.now():()=>Date.now(),fI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(WX()),cI);function GX(e){let t=[],n=[],i=0,o=!1,u=!1;const c=new WeakSet,p={schedule:(h,v=!1,b=!1)=>{const x=b&&o,N=x?t:n;return v&&c.add(h),N.indexOf(h)===-1&&(N.push(h),x&&o&&(i=t.length)),h},cancel:h=>{const v=n.indexOf(h);v!==-1&&n.splice(v,1),c.delete(h)},process:h=>{if(o){u=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const b=t[v];b(h),c.has(b)&&(p.schedule(b),e())}o=!1,u&&(u=!1,p.process(h))}};return p}const YX=40;let C7=!0,Vg=!1,N7=!1;const uv={delta:0,timestamp:0},mb=["read","update","preRender","render","postRender"],WS=mb.reduce((e,t)=>(e[t]=GX(()=>Vg=!0),e),{}),Au=mb.reduce((e,t)=>{const n=WS[t];return e[t]=(i,o=!1,u=!1)=>(Vg||ZX(),n.schedule(i,o,u)),e},{}),Hg=mb.reduce((e,t)=>(e[t]=WS[t].cancel,e),{}),W9=mb.reduce((e,t)=>(e[t]=()=>WS[t].process(uv),e),{}),qX=e=>WS[e].process(uv),dI=e=>{Vg=!1,uv.delta=C7?cI:Math.max(Math.min(e-uv.timestamp,YX),1),uv.timestamp=e,N7=!0,mb.forEach(qX),N7=!1,Vg&&(C7=!1,fI(dI))},ZX=()=>{Vg=!0,C7=!0,N7||fI(dI)},w7=()=>uv;function x_(e,t){e.indexOf(t)===-1&&e.push(t)}function C_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class xg{constructor(){this.subscriptions=[]}add(t){return x_(this.subscriptions,t),()=>C_(this.subscriptions,t)}notify(t,n,i){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,i);else for(let u=0;u<o;u++){const c=this.subscriptions[u];c&&c(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const KX=e=>!isNaN(parseFloat(e));class XX{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new xg,this.velocityUpdateSubscribers=new xg,this.renderSubscribers=new xg,this.canTrackVelocity=!1,this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:u}=w7();this.lastUpdated!==u&&(this.timeDelta=o,this.lastUpdated=u,Au.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),i&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Au.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=KX(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?iI(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function bv(e){return new XX(e)}const pI=e=>t=>t.test(e),QX={test:e=>e==="auto",parse:e=>e},mI=[om,Xt,Ru,Vf,RZ,TZ,QX],J1=e=>mI.find(pI(e)),JX=[...mI,co,Mc],eQ=e=>JX.find(pI(e));function tQ(e){const t={};return e.forEachValue((n,i)=>t[i]=n.get()),t}function nQ(e){const t={};return e.forEachValue((n,i)=>t[i]=n.getVelocity()),t}function GS(e,t,n){const i=e.getProps();return MP(i,t,n!==void 0?n:i.custom,tQ(e),nQ(e))}function rQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bv(n))}function iQ(e,t){const n=GS(e,t);let{transitionEnd:i={},transition:o={},...u}=n?e.makeTargetAnimatable(n,!1):{};u={...u,...i};for(const c in u){const p=DP(u[c]);rQ(e,c,p)}}function aQ(e,t,n){var i,o;const u=Object.keys(t).filter(p=>!e.hasValue(p)),c=u.length;if(!!c)for(let p=0;p<c;p++){const h=u[p],v=t[h];let b=null;Array.isArray(v)&&(b=v[0]),b===null&&(b=(o=(i=n[h])!==null&&i!==void 0?i:e.readValue(h))!==null&&o!==void 0?o:t[h]),b!=null&&(typeof b=="string"&&(VX(b)||HX(b))?b=parseFloat(b):!eQ(b)&&Mc.test(v)&&(b=b_(h,v)),e.addValue(h,bv(b)),n[h]===void 0&&(n[h]=b),e.setBaseTarget(h,b))}}function oQ(e,t){return t?(t[e]||t.default||t).from:void 0}function sQ(e,t,n){var i;const o={};for(const u in e){const c=oQ(u,t);o[u]=c!==void 0?c:(i=n.getValue(u))===null||i===void 0?void 0:i.get()}return o}function rS(e){return Boolean(Mu(e)&&e.add)}function lQ(e,t,n={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const o=t.map(u=>_7(e,u,n));i=Promise.all(o)}else if(typeof t=="string")i=_7(e,t,n);else{const o=typeof t=="function"?GS(e,t,n.custom):t;i=hI(e,o,n)}return i.then(()=>e.notifyAnimationComplete(t))}function _7(e,t,n={}){var i;const o=GS(e,t,n.custom);let{transition:u=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(u=n.transitionOverride);const c=o?()=>hI(e,o,n):()=>Promise.resolve(),p=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:b=0,staggerChildren:x,staggerDirection:N}=u;return uQ(e,t,b+v,x,N,n)}:()=>Promise.resolve(),{when:h}=u;if(h){const[v,b]=h==="beforeChildren"?[c,p]:[p,c];return v().then(b)}else return Promise.all([c(),p(n.delay)])}function hI(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var u;let{transition:c=e.getDefaultTransition(),transitionEnd:p,...h}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(c=i);const b=[],x=o&&((u=e.animationState)===null||u===void 0?void 0:u.getState()[o]);for(const N in h){const _=e.getValue(N),T=h[N];if(!_||T===void 0||x&&fQ(x,N))continue;let A={delay:n,...c};e.shouldReduceMotion&&ub.has(N)&&(A={...A,type:!1,delay:0});let M=S_(N,_,T,A);rS(v)&&(v.add(N),M=M.then(()=>v.remove(N))),b.push(M)}return Promise.all(b).then(()=>{p&&iQ(e,p)})}function uQ(e,t,n=0,i=0,o=1,u){const c=[],p=(e.variantChildren.size-1)*i,h=o===1?(v=0)=>v*i:(v=0)=>p-v*i;return Array.from(e.variantChildren).sort(cQ).forEach((v,b)=>{c.push(_7(v,t,{...u,delay:n+h(b)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(c)}function cQ(e,t){return e.sortNodePosition(t)}function fQ({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}const N_=[Er.Animate,Er.InView,Er.Focus,Er.Hover,Er.Tap,Er.Drag,Er.Exit],dQ=[...N_].reverse(),pQ=N_.length;function mQ(e){return t=>Promise.all(t.map(({animation:n,options:i})=>lQ(e,n,i)))}function hQ(e){let t=mQ(e);const n=gQ();let i=!0;const o=(h,v)=>{const b=GS(e,v);if(b){const{transition:x,transitionEnd:N,..._}=b;h={...h,..._,...N}}return h};function u(h){t=h(e)}function c(h,v){var b;const x=e.getProps(),N=e.getVariantContext(!0)||{},_=[],T=new Set;let A={},M=1/0;for(let P=0;P<pQ;P++){const I=dQ[P],F=n[I],$=(b=x[I])!==null&&b!==void 0?b:N[I],Y=Fg($),Z=I===v?F.isActive:null;Z===!1&&(M=P);let ue=$===N[I]&&$!==x[I]&&Y;if(ue&&i&&e.manuallyAnimateOnMount&&(ue=!1),F.protectedKeys={...A},!F.isActive&&Z===null||!$&&!F.prevProp||FS($)||typeof $=="boolean")continue;const ce=vQ(F.prevProp,$);let le=ce||I===v&&F.isActive&&!ue&&Y||P>M&&Y;const ge=Array.isArray($)?$:[$];let Ye=ge.reduce(o,{});Z===!1&&(Ye={});const{prevResolvedValues:re={}}=F,ie={...re,...Ye},Ce=xe=>{le=!0,T.delete(xe),F.needsAnimating[xe]=!0};for(const xe in ie){const K=Ye[xe],be=re[xe];A.hasOwnProperty(xe)||(K!==be?Ug(K)&&Ug(be)?!uI(K,be)||ce?Ce(xe):F.protectedKeys[xe]=!0:K!==void 0?Ce(xe):T.add(xe):K!==void 0&&T.has(xe)?Ce(xe):F.protectedKeys[xe]=!0)}F.prevProp=$,F.prevResolvedValues=Ye,F.isActive&&(A={...A,...Ye}),i&&e.blockInitialAnimation&&(le=!1),le&&!ue&&_.push(...ge.map(xe=>({animation:xe,options:{type:I,...h}})))}if(T.size){const P={};T.forEach(I=>{const F=e.getBaseTarget(I);F!==void 0&&(P[I]=F)}),_.push({animation:P})}let z=Boolean(_.length);return i&&x.initial===!1&&!e.manuallyAnimateOnMount&&(z=!1),i=!1,z?t(_):Promise.resolve()}function p(h,v,b){var x;if(n[h].isActive===v)return Promise.resolve();(x=e.variantChildren)===null||x===void 0||x.forEach(_=>{var T;return(T=_.animationState)===null||T===void 0?void 0:T.setActive(h,v)}),n[h].isActive=v;const N=c(b,h);for(const _ in n)n[_].protectedKeys={};return N}return{animateChanges:c,setActive:p,setAnimateFunction:u,getState:()=>n}}function vQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uI(t,e):!1}function Mp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gQ(){return{[Er.Animate]:Mp(!0),[Er.InView]:Mp(),[Er.Hover]:Mp(),[Er.Tap]:Mp(),[Er.Drag]:Mp(),[Er.Focus]:Mp(),[Er.Exit]:Mp()}}const bQ={animation:Xf(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=hQ(e)),FS(t)&&k.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Xf(e=>{const{custom:t,visualElement:n}=e,[i,o]=v_(),u=k.exports.useContext(Lv);k.exports.useEffect(()=>{n.isPresent=i;const c=n.animationState&&n.animationState.setActive(Er.Exit,!i,{custom:u&&u.custom||t});c&&!i&&c.then(o)},[i])})};class vI{constructor(t,n,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Y9(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,x=p_(v.offset,{x:0,y:0})>=3;if(!b&&!x)return;const{point:N}=v,{timestamp:_}=w7();this.history.push({...N,timestamp:_});const{onStart:T,onMove:A}=this.handlers;b||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=G9(b,this.transformPagePoint),IP(v)&&v.buttons===0){this.handlePointerUp(v,b);return}Au.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:x,onSessionEnd:N}=this.handlers,_=Y9(G9(b,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,_),N&&N(v,_)},FP(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=i;const o=a_(t),u=G9(o,this.transformPagePoint),{point:c}=u,{timestamp:p}=w7();this.history=[{...c,timestamp:p}];const{onSessionStart:h}=n;h&&h(t,Y9(u,this.history)),this.removeListeners=jS(sv(window,"pointermove",this.handlePointerMove),sv(window,"pointerup",this.handlePointerUp),sv(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Hg.update(this.updatePoint)}}function G9(e,t){return t?{point:t(e.point)}:e}function Kk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Y9({point:e},t){return{point:e,delta:Kk(e,gI(t)),offset:Kk(e,yQ(t)),velocity:SQ(t,.1)}}function yQ(e){return e[0]}function gI(e){return e[e.length-1]}function SQ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=gI(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>nS(t)));)n--;if(!i)return{x:0,y:0};const u=(o.timestamp-i.timestamp)/1e3;if(u===0)return{x:0,y:0};const c={x:(o.x-i.x)/u,y:(o.y-i.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function ds(e){return e.max-e.min}function Xk(e,t=0,n=.01){return p_(e,t)<n}function Qk(e,t,n,i=.5){e.origin=i,e.originPoint=Zr(t.min,t.max,e.origin),e.scale=ds(n)/ds(t),(Xk(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Zr(n.min,n.max,e.origin)-e.originPoint,(Xk(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Cg(e,t,n,i){Qk(e.x,t.x,n.x,i?.originX),Qk(e.y,t.y,n.y,i?.originY)}function Jk(e,t,n){e.min=n.min+t.min,e.max=e.min+ds(t)}function xQ(e,t,n){Jk(e.x,t.x,n.x),Jk(e.y,t.y,n.y)}function eL(e,t,n){e.min=t.min-n.min,e.max=e.min+ds(t)}function Ng(e,t,n){eL(e.x,t.x,n.x),eL(e.y,t.y,n.y)}function CQ(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?Zr(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?Zr(n,e,i.max):Math.min(e,n)),e}function tL(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NQ(e,{top:t,left:n,bottom:i,right:o}){return{x:tL(e.x,n,o),y:tL(e.y,t,i)}}function nL(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function wQ(e,t){return{x:nL(e.x,t.x),y:nL(e.y,t.y)}}function _Q(e,t){let n=.5;const i=ds(e),o=ds(t);return o>i?n=$g(t.min,t.max-i,e.min):i>o&&(n=$g(e.min,e.max-o,t.min)),J4(0,1,n)}function EQ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const E7=.35;function TQ(e=E7){return e===!1?e=0:e===!0&&(e=E7),{x:rL(e,"left","right"),y:rL(e,"top","bottom")}}function rL(e,t,n){return{min:iL(e,t),max:iL(e,n)}}function iL(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const aL=()=>({translate:0,scale:1,origin:0,originPoint:0}),wg=()=>({x:aL(),y:aL()}),oL=()=>({min:0,max:0}),Sa=()=>({x:oL(),y:oL()});function yu(e){return[e("x"),e("y")]}function bI({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function RQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function AQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function q9(e){return e===void 0||e===1}function yI({scale:e,scaleX:t,scaleY:n}){return!q9(e)||!q9(t)||!q9(n)}function Hf(e){return yI(e)||sL(e.x)||sL(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function sL(e){return e&&e!=="0%"}function iS(e,t,n){const i=e-n,o=t*i;return n+o}function lL(e,t,n,i,o){return o!==void 0&&(e=iS(e,o,i)),iS(e,n,i)+t}function T7(e,t=0,n=1,i,o){e.min=lL(e.min,t,n,i,o),e.max=lL(e.max,t,n,i,o)}function SI(e,{x:t,y:n}){T7(e.x,t.translate,t.scale,t.originPoint),T7(e.y,n.translate,n.scale,n.originPoint)}function kQ(e,t,n,i=!1){var o,u;const c=n.length;if(!c)return;t.x=t.y=1;let p,h;for(let v=0;v<c;v++)p=n[v],h=p.projectionDelta,((u=(o=p.instance)===null||o===void 0?void 0:o.style)===null||u===void 0?void 0:u.display)!=="contents"&&(i&&p.options.layoutScroll&&p.scroll&&p!==p.root&&rv(e,{x:-p.scroll.x,y:-p.scroll.y}),h&&(t.x*=h.x.scale,t.y*=h.y.scale,SI(e,h)),i&&Hf(p.latestValues)&&rv(e,p.latestValues))}function Gf(e,t){e.min=e.min+t,e.max=e.max+t}function uL(e,t,[n,i,o]){const u=t[o]!==void 0?t[o]:.5,c=Zr(e.min,e.max,u);T7(e,t[n],t[i],c,t.scale)}const LQ=["x","scaleX","originX"],OQ=["y","scaleY","originY"];function rv(e,t){uL(e.x,t,LQ),uL(e.y,t,OQ)}function xI(e,t){return bI(AQ(e.getBoundingClientRect(),t))}function MQ(e,t,n){const i=xI(e,n),{scroll:o}=t;return o&&(Gf(i.x,o.x),Gf(i.y,o.y)),i}const DQ=new WeakMap;class PQ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Sa(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const i=p=>{this.stopAnimation(),n&&this.snapToCursor(a_(p,"page").point)},o=(p,h)=>{var v;const{drag:b,dragPropagation:x,onDragStart:N}=this.getProps();b&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=$P(b),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yu(_=>{var T,A;let M=this.getAxisMotionValue(_).get()||0;if(Ru.test(M)){const z=(A=(T=this.visualElement.projection)===null||T===void 0?void 0:T.layout)===null||A===void 0?void 0:A.actual[_];z&&(M=ds(z)*(parseFloat(M)/100))}this.originPoint[_]=M}),N?.(p,h),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(Er.Drag,!0))},u=(p,h)=>{const{dragPropagation:v,dragDirectionLock:b,onDirectionLock:x,onDrag:N}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:_}=h;if(b&&this.currentDirection===null){this.currentDirection=IQ(_),this.currentDirection!==null&&x?.(this.currentDirection);return}this.updateAxis("x",h.point,_),this.updateAxis("y",h.point,_),this.visualElement.syncRender(),N?.(p,h)},c=(p,h)=>this.stop(p,h);this.panSession=new vI(t,{onSessionStart:i,onStart:o,onMove:u,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Er.Drag,!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!j5(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=CQ(c,this.constraints[t],this.elastic[t])),u.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:i}=this.visualElement.projection||{},o=this.constraints;t&&nv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=NQ(i.actual,t):this.constraints=!1,this.elastic=TQ(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yu(u=>{this.getAxisMotionValue(u)&&(this.constraints[u]=EQ(i.actual[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nv(t))return!1;const i=t.current;Zs(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=MQ(i,o.root,this.visualElement.getTransformPagePoint());let c=wQ(o.layout.actual,u);if(n){const p=n(RQ(c));this.hasMutatedConstraints=!!p,p&&(c=bI(p))}return c}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:p}=this.getProps(),h=this.constraints||{},v=yu(b=>{var x;if(!j5(b,n,this.currentDirection))return;let N=(x=h?.[b])!==null&&x!==void 0?x:{};c&&(N={min:0,max:0});const _=o?200:1e6,T=o?40:1e7,A={type:"inertia",velocity:i?t[b]:0,bounceStiffness:_,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...u,...N};return this.startAxisValueAnimation(b,A)});return Promise.all(v).then(p)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return S_(t,i,0,n)}stopAnimation(){yu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,i;const o="_drag"+t.toUpperCase(),u=this.visualElement.getProps()[o];return u||this.visualElement.getValue(t,(i=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:0)}snapToCursor(t){yu(n=>{const{drag:i}=this.getProps();if(!j5(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:p}=o.layout.actual[n];u.set(t[n]-Zr(c,p,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!nv(i)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};yu(p=>{const h=this.getAxisMotionValue(p);if(h){const v=h.get();u[p]=_Q({min:v,max:v},this.constraints[p])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=c?c({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),yu(p=>{if(!j5(p,n,null))return;const h=this.getAxisMotionValue(p),{min:v,max:b}=this.constraints[p];h.set(Zr(v,b,u[p]))})}addListeners(){var t;DQ.set(this.visualElement,this);const n=this.visualElement.getInstance(),i=sv(n,"pointerdown",v=>{const{drag:b,dragListener:x=!0}=this.getProps();b&&x&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();nv(v)&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,c=u.addEventListener("measure",o);u&&!u.layout&&((t=u.root)===null||t===void 0||t.updateScroll(),u.updateLayout()),o();const p=US(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b})=>{this.isDragging&&b&&(yu(x=>{const N=this.getAxisMotionValue(x);!N||(this.originPoint[x]+=v[x].translate,N.set(N.get()+v[x].translate))}),this.visualElement.syncRender())});return()=>{p(),i(),c(),h?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=E7,dragMomentum:p=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:p}}}function j5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function IQ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function FQ(e){const{dragControls:t,visualElement:n}=e,i=BS(()=>new PQ(n));k.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),k.exports.useEffect(()=>i.addListeners(),[i])}function zQ({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:i,visualElement:o}){const u=e||t||n||i,c=k.exports.useRef(null),{transformPagePoint:p}=k.exports.useContext(X8),h={onSessionStart:i,onStart:t,onMove:e,onEnd:(b,x)=>{c.current=null,n&&n(b,x)}};k.exports.useEffect(()=>{c.current!==null&&c.current.updateHandlers(h)});function v(b){c.current=new vI(b,h,{transformPagePoint:p})}Q4(o,"pointerdown",u&&v),o_(()=>c.current&&c.current.end())}const BQ={pan:Xf(zQ),drag:Xf(FQ)},R7={current:null},CI={current:!1};function UQ(){if(CI.current=!0,!!am)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R7.current=e.matches;e.addListener(t),t()}else R7.current=!1}const V5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function $Q(){const e=V5.map(()=>new xg),t={},n={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{V5.forEach(o=>{var u;const c="on"+o,p=i[c];(u=t[o])===null||u===void 0||u.call(t),p&&(t[o]=n[c](p))})}};return e.forEach((i,o)=>{n["on"+V5[o]]=u=>i.add(u),n["notify"+V5[o]]=(...u)=>i.notify(...u)}),n}function jQ(e,t,n){const{willChange:i}=t;for(const o in t){const u=t[o],c=n[o];if(Mu(u))e.addValue(o,u),rS(i)&&i.add(o),h_(u.version==="7.3.5",`Attempting to mix Framer Motion versions ${u.version} with 7.3.5 may not work as expected.`);else if(Mu(c))e.addValue(o,bv(u)),rS(i)&&i.remove(o);else if(c!==u)if(e.hasValue(o)){const p=e.getValue(o);!p.hasAnimated&&p.set(u)}else{const p=e.getStaticValue(o);e.addValue(o,bv(p!==void 0?p:u))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const NI=Object.keys(zg),VQ=NI.length,wI=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:i,measureViewportBox:o,render:u,readValueFromInstance:c,removeValueFromRenderState:p,sortNodePosition:h,scrapeMotionValuesFromProps:v})=>({parent:b,props:x,presenceId:N,blockInitialAnimation:_,visualState:T,reducedMotionConfig:A},M={})=>{let z=!1;const{latestValues:P,renderState:I}=T;let F;const $=$Q(),Y=new Map,Z=new Map;let ue={};const ce={...P};let le;function ge(){!F||!z||(Ye(),u(F,I,x.style,Ne.projection))}function Ye(){t(Ne,I,P,M,x)}function re(){$.notifyUpdate(P)}function ie(me,we){const De=we.onChange(Ze=>{P[me]=Ze,x.onUpdate&&Au.update(re,!1,!0)}),Pe=we.onRenderRequest(Ne.scheduleRender);Z.set(me,()=>{De(),Pe()})}const{willChange:Ce,...xe}=v(x);for(const me in xe){const we=xe[me];P[me]!==void 0&&Mu(we)&&(we.set(P[me],!1),rS(Ce)&&Ce.add(me))}const K=zS(x),be=pP(x),Ne={treeType:e,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:N,shouldReduceMotion:null,variantChildren:be?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(b?.isMounted()),blockInitialAnimation:_,isMounted:()=>Boolean(F),mount(me){z=!0,F=Ne.current=me,Ne.projection&&Ne.projection.mount(me),be&&b&&!K&&(le=b?.addVariantChild(Ne)),Y.forEach((we,De)=>ie(De,we)),CI.current||UQ(),Ne.shouldReduceMotion=A==="never"?!1:A==="always"?!0:R7.current,b?.children.add(Ne),Ne.setProps(x)},unmount(){var me;(me=Ne.projection)===null||me===void 0||me.unmount(),Hg.update(re),Hg.render(ge),Z.forEach(we=>we()),le?.(),b?.children.delete(Ne),$.clearAllListeners(),F=void 0,z=!1},loadFeatures(me,we,De,Pe,Ze,it){const bt=[];m_!=="production"&&De&&we&&Zs(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let Wt=0;Wt<VQ;Wt++){const Xe=NI[Wt],{isEnabled:ct,Component:wt}=zg[Xe];ct(me)&&wt&&bt.push(k.exports.createElement(wt,{key:Xe,...me,visualElement:Ne}))}if(!Ne.projection&&Ze){Ne.projection=new Ze(Pe,Ne.getLatestValues(),b&&b.projection);const{layoutId:Wt,layout:Xe,drag:ct,dragConstraints:wt,layoutScroll:Bt}=me;Ne.projection.setOptions({layoutId:Wt,layout:Xe,alwaysMeasureLayout:Boolean(ct)||wt&&nv(wt),visualElement:Ne,scheduleRender:()=>Ne.scheduleRender(),animationType:typeof Xe=="string"?Xe:"both",initialPromotionConfig:it,layoutScroll:Bt})}return bt},addVariantChild(me){var we;const De=Ne.getClosestVariantNode();if(De)return(we=De.variantChildren)===null||we===void 0||we.add(me),()=>De.variantChildren.delete(me)},sortNodePosition(me){return!h||e!==me.treeType?0:h(Ne.getInstance(),me.getInstance())},getClosestVariantNode:()=>be?Ne:b?.getClosestVariantNode(),getLayoutId:()=>x.layoutId,getInstance:()=>F,getStaticValue:me=>P[me],setStaticValue:(me,we)=>P[me]=we,getLatestValues:()=>P,setVisibility(me){Ne.isVisible!==me&&(Ne.isVisible=me,Ne.scheduleRender())},makeTargetAnimatable(me,we=!0){return i(Ne,me,x,we)},measureViewportBox(){return o(F,x)},addValue(me,we){Ne.hasValue(me)&&Ne.removeValue(me),Y.set(me,we),P[me]=we.get(),ie(me,we)},removeValue(me){var we;Y.delete(me),(we=Z.get(me))===null||we===void 0||we(),Z.delete(me),delete P[me],p(me,I)},hasValue:me=>Y.has(me),getValue(me,we){let De=Y.get(me);return De===void 0&&we!==void 0&&(De=bv(we),Ne.addValue(me,De)),De},forEachValue:me=>Y.forEach(me),readValue:me=>P[me]!==void 0?P[me]:c(F,me,M),setBaseTarget(me,we){ce[me]=we},getBaseTarget(me){if(n){const we=n(x,me);if(we!==void 0&&!Mu(we))return we}return ce[me]},...$,build(){return Ye(),I},scheduleRender(){Au.render(ge,!1,!0)},syncRender:ge,setProps(me){(me.transformTemplate||x.transformTemplate)&&Ne.scheduleRender(),x=me,$.updatePropListeners(me),ue=jQ(Ne,v(x),ue)},getProps:()=>x,getVariant:me=>{var we;return(we=x.variants)===null||we===void 0?void 0:we[me]},getDefaultTransition:()=>x.transition,getTransformPagePoint:()=>x.transformPagePoint,getVariantContext(me=!1){if(me)return b?.getVariantContext();if(!K){const De=b?.getVariantContext()||{};return x.initial!==void 0&&(De.initial=x.initial),De}const we={};for(let De=0;De<HQ;De++){const Pe=_I[De],Ze=x[Pe];(Fg(Ze)||Ze===!1)&&(we[Pe]=Ze)}return we}};return Ne},_I=["initial",...N_],HQ=_I.length;function A7(e){return typeof e=="string"&&e.startsWith("var(--")}const EI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function WQ(e){const t=EI.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}const GQ=4;function k7(e,t,n=1){Zs(n<=GQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=WQ(e);if(!i)return;const u=window.getComputedStyle(t).getPropertyValue(i);return u?u.trim():A7(o)?k7(o,t,n+1):o}function YQ(e,{...t},n){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const u=o.get();if(!A7(u))return;const c=k7(u,i);c&&o.set(c)});for(const o in t){const u=t[o];if(!A7(u))continue;const c=k7(u,i);!c||(t[o]=c,n&&n[o]===void 0&&(n[o]=u))}return{target:t,transitionEnd:n}}const qQ=new Set(["width","height","top","left","right","bottom","x","y"]),TI=e=>qQ.has(e),ZQ=e=>Object.keys(e).some(TI),RI=(e,t)=>{e.set(t,!1),e.set(t)},H5=e=>e===om||e===Xt;var cL;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(cL||(cL={}));const fL=(e,t)=>parseFloat(e.split(", ")[t]),dL=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return fL(o[1],t);{const u=i.match(/^matrix\((.+)\)$/);return u?fL(u[1],e):0}},KQ=new Set(["x","y","z"]),XQ=K4.filter(e=>!KQ.has(e));function QQ(e){const t=[];return XQ.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const pL={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dL(4,13),y:dL(5,14)},JQ=(e,t,n)=>{const i=t.measureViewportBox(),o=t.getInstance(),u=getComputedStyle(o),{display:c}=u,p={};c==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(v=>{p[v]=pL[v](i,u)}),t.syncRender();const h=t.measureViewportBox();return n.forEach(v=>{const b=t.getValue(v);RI(b,p[v]),e[v]=pL[v](h,u)}),e},eJ=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(TI);let u=[],c=!1;const p=[];if(o.forEach(h=>{const v=e.getValue(h);if(!e.hasValue(h))return;let b=n[h],x=J1(b);const N=t[h];let _;if(Ug(N)){const T=N.length,A=N[0]===null?1:0;b=N[A],x=J1(b);for(let M=A;M<T;M++)_?Zs(J1(N[M])===_,"All keyframes must be of the same type"):(_=J1(N[M]),Zs(_===x||H5(x)&&H5(_),"Keyframes must be of the same dimension as the current value"))}else _=J1(N);if(x!==_)if(H5(x)&&H5(_)){const T=v.get();typeof T=="string"&&v.set(parseFloat(T)),typeof N=="string"?t[h]=parseFloat(N):Array.isArray(N)&&_===Xt&&(t[h]=N.map(parseFloat))}else x?.transform&&_?.transform&&(b===0||N===0)?b===0?v.set(_.transform(b)):t[h]=x.transform(N):(c||(u=QQ(e),c=!0),p.push(h),i[h]=i[h]!==void 0?i[h]:t[h],RI(v,N))}),p.length){const h=p.indexOf("height")>=0?window.pageYOffset:null,v=JQ(t,e,p);return u.length&&u.forEach(([b,x])=>{e.getValue(b).set(x)}),e.syncRender(),am&&h!==null&&window.scrollTo({top:h}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function tJ(e,t,n,i){return ZQ(t)?eJ(e,t,n,i):{target:t,transitionEnd:i}}const nJ=(e,t,n,i)=>{const o=YQ(e,t,i);return t=o.target,i=o.transitionEnd,tJ(e,t,n,i)};function rJ(e){return window.getComputedStyle(e)}const AI={treeType:"dom",readValueFromInstance(e,t){if(ub.has(t)){const n=g_(t);return n&&n.default||0}else{const n=rJ(e),i=(vP(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return xI(e,t)},resetTransform(e,t,n){const{transformTemplate:i}=n;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...i},{transformValues:o},u=!0){let c=sQ(i,t||{},e);if(o&&(n&&(n=o(n)),i&&(i=o(i)),c&&(c=o(c))),u){aQ(e,i,c);const p=nJ(e,i,c,n);n=p.transitionEnd,i=p.target}return{transition:t,transitionEnd:n,...i}},scrapeMotionValuesFromProps:i_,build(e,t,n,i,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),t_(t,n,i,o.transformTemplate)},render:AP},iJ=wI(AI),aJ=wI({...AI,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return ub.has(t)?((n=g_(t))===null||n===void 0?void 0:n.default)||0:(t=kP.has(t)?t:RP(t),e.getAttribute(t))},scrapeMotionValuesFromProps:OP,build(e,t,n,i,o){r_(t,n,i,o.transformTemplate)},render:LP}),oJ=(e,t)=>J8(e)?aJ(t,{enableHardwareAcceleration:!1}):iJ(t,{enableHardwareAcceleration:!0});function mL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eg={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xt.test(e))e=parseFloat(e);else return e;const n=mL(e,t.target.x),i=mL(e,t.target.y);return`${n}% ${i}%`}},hL="_$css",sJ={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=e.includes("var("),u=[];o&&(e=e.replace(EI,_=>(u.push(_),hL)));const c=Mc.parse(e);if(c.length>5)return i;const p=Mc.createTransformer(e),h=typeof c[0]!="number"?1:0,v=n.x.scale*t.x,b=n.y.scale*t.y;c[0+h]/=v,c[1+h]/=b;const x=Zr(v,b,.5);typeof c[2+h]=="number"&&(c[2+h]/=x),typeof c[3+h]=="number"&&(c[3+h]/=x);let N=p(c);if(o){let _=0;N=N.replace(hL,()=>{const T=u[_];return _++,T})}return N}};var lJ="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class uJ extends Ae.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:u}=t;xZ(fJ),u&&(n.group&&n.group.add(u),i&&i.register&&o&&i.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),bg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:u}=this.props,c=i.projection;return c&&(c.isPresent=u,o||t.layoutDependency!==n||n===void 0?c.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?c.promote():c.relegate()||Au.postRender(()=>{var p;!((p=c.getStack())===null||p===void 0)&&p.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),i?.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function cJ(e){const[t,n]=v_(),i=k.exports.useContext(Q8);return C(uJ,{...e,layoutGroup:i,switchLayoutGroup:k.exports.useContext(mP),isPresent:t,safeToRemove:n},void 0,!1,{fileName:lJ,lineNumber:110,columnNumber:13},this)}const fJ={borderRadius:{...eg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eg,borderTopRightRadius:eg,borderBottomLeftRadius:eg,borderBottomRightRadius:eg,boxShadow:sJ},dJ={measureLayout:cJ};function pJ(e,t,n={}){const i=Mu(e)?e:bv(e);return S_("",i,t,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const kI=["TopLeft","TopRight","BottomLeft","BottomRight"],mJ=kI.length,vL=e=>typeof e=="string"?parseFloat(e):e,gL=e=>typeof e=="number"||Xt.test(e);function hJ(e,t,n,i,o,u){var c,p,h,v;o?(e.opacity=Zr(0,(c=n.opacity)!==null&&c!==void 0?c:1,vJ(i)),e.opacityExit=Zr((p=t.opacity)!==null&&p!==void 0?p:1,0,gJ(i))):u&&(e.opacity=Zr((h=t.opacity)!==null&&h!==void 0?h:1,(v=n.opacity)!==null&&v!==void 0?v:1,i));for(let b=0;b<mJ;b++){const x=`border${kI[b]}Radius`;let N=bL(t,x),_=bL(n,x);if(N===void 0&&_===void 0)continue;N||(N=0),_||(_=0),N===0||_===0||gL(N)===gL(_)?(e[x]=Math.max(Zr(vL(N),vL(_),i),0),(Ru.test(_)||Ru.test(N))&&(e[x]+="%")):e[x]=_}(t.rotate||n.rotate)&&(e.rotate=Zr(t.rotate||0,n.rotate||0,i))}function bL(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const vJ=LI(0,.5,f_),gJ=LI(.5,.95,u_);function LI(e,t,n){return i=>i<e?0:i>t?1:n($g(e,t,i))}function yL(e,t){e.min=t.min,e.max=t.max}function Dl(e,t){yL(e.x,t.x),yL(e.y,t.y)}function SL(e,t,n,i,o){return e-=t,e=iS(e,1/n,i),o!==void 0&&(e=iS(e,1/o,i)),e}function bJ(e,t=0,n=1,i=.5,o,u=e,c=e){if(Ru.test(t)&&(t=parseFloat(t),t=Zr(c.min,c.max,t/100)-c.min),typeof t!="number")return;let p=Zr(u.min,u.max,i);e===u&&(p-=t),e.min=SL(e.min,t,n,p,o),e.max=SL(e.max,t,n,p,o)}function xL(e,t,[n,i,o],u,c){bJ(e,t[n],t[i],t[o],t.scale,u,c)}const yJ=["x","scaleX","originX"],SJ=["y","scaleY","originY"];function CL(e,t,n,i){xL(e.x,t,yJ,n?.x,i?.x),xL(e.y,t,SJ,n?.y,i?.y)}function NL(e){return e.translate===0&&e.scale===1}function OI(e){return NL(e.x)&&NL(e.y)}function MI(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function wL(e){return ds(e.x)/ds(e.y)}function xJ(e,t,n=.01){return p_(e,t)<=n}class CJ{constructor(){this.members=[]}add(t){x_(this.members,t),t.scheduleRender()}remove(t){if(C_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){i=u;break}}return i?(this.promote(i),!0):!1}promote(t,n){var i;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((i=t.root)===null||i===void 0)&&i.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:u}=t.options;u===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,o,u,c;(i=(n=t.options).onExitComplete)===null||i===void 0||i.call(n),(c=(o=t.resumingFrom)===null||o===void 0?void 0:(u=o.options).onExitComplete)===null||c===void 0||c.call(u)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const NJ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function _L(e,t,n){const i=e.x.translate/t.x,o=e.y.translate/t.y;let u=`translate3d(${i}px, ${o}px, 0) `;if(u+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:h,rotateX:v,rotateY:b}=n;h&&(u+=`rotate(${h}deg) `),v&&(u+=`rotateX(${v}deg) `),b&&(u+=`rotateY(${b}deg) `)}const c=e.x.scale*t.x,p=e.y.scale*t.y;return u+=`scale(${c}, ${p})`,u===NJ?"none":u}const wJ=(e,t)=>e.depth-t.depth;class _J{constructor(){this.children=[],this.isDirty=!1}add(t){x_(this.children,t),this.isDirty=!0}remove(t){C_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wJ),this.isDirty=!1,this.children.forEach(t)}}const EL=["","X","Y","Z"],TL=1e3;function DI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(c,p={},h=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(LJ),this.nodes.forEach(OJ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=c,this.latestValues=p,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0,c&&this.root.registerPotentialNode(c,this);for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new _J)}addEventListener(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new xg),this.eventHandlers.get(c).add(p)}notifyListeners(c,...p){const h=this.eventHandlers.get(c);h?.notify(...p)}hasListeners(c){return this.eventHandlers.has(c)}registerPotentialNode(c,p){this.potentialNodes.set(c,p)}mount(c,p=!1){var h;if(this.instance)return;this.isSVG=c instanceof SVGElement&&c.tagName!=="svg",this.instance=c;const{layoutId:v,layout:b,visualElement:x}=this.options;if(x&&!x.getInstance()&&x.mount(c),this.root.nodes.add(this),(h=this.parent)===null||h===void 0||h.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),p&&(b||v)&&(this.isLayoutDirty=!0),e){let N;const _=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,clearTimeout(N),N=window.setTimeout(_,250),bg.hasAnimatedSinceResize&&(bg.hasAnimatedSinceResize=!1,this.nodes.forEach(kJ))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&x&&(v||b)&&this.addEventListener("didUpdate",({delta:N,hasLayoutChanged:_,hasRelativeTargetChanged:T,layout:A})=>{var M,z,P,I,F;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=(z=(M=this.options.transition)!==null&&M!==void 0?M:x.getDefaultTransition())!==null&&z!==void 0?z:FJ,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:Z}=x.getProps(),ue=!this.targetLayout||!MI(this.targetLayout,A)||T,ce=!_&&T;if(((P=this.resumeFrom)===null||P===void 0?void 0:P.instance)||ce||_&&(ue||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(N,ce);const le={...y_($,"layout"),onPlay:Y,onComplete:Z};x.shouldReduceMotion&&(le.delay=0,le.type=!1),this.startAnimation(le)}else!_&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((F=(I=this.options).onExitComplete)===null||F===void 0||F.call(I));this.targetLayout=A})}unmount(){var c,p;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(c=this.getStack())===null||c===void 0||c.remove(this),(p=this.parent)===null||p===void 0||p.children.delete(this),this.instance=void 0,Hg.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var c;return this.isAnimationBlocked||((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimationBlocked())||!1}startUpdate(){var c;this.isUpdateBlocked()||(this.isUpdating=!0,(c=this.nodes)===null||c===void 0||c.forEach(MJ))}willUpdate(c=!0){var p,h,v;if(this.root.isUpdateBlocked()){(h=(p=this.options).onExitComplete)===null||h===void 0||h.call(p);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _=0;_<this.path.length;_++){const T=this.path[_];T.shouldResetTransform=!0,T.updateScroll()}const{layoutId:b,layout:x}=this.options;if(b===void 0&&!x)return;const N=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=N?.(this.latestValues,""),this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(RL);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(zJ),this.potentialNodes.clear()),this.nodes.forEach(AJ),this.nodes.forEach(EJ),this.nodes.forEach(TJ),this.clearAllSnapshots(),W9.update(),W9.preRender(),W9.render())}clearAllSnapshots(){this.nodes.forEach(RJ),this.sharedNodes.forEach(DJ)}scheduleUpdateProjection(){Au.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Au.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const c=this.measure(),p=this.removeTransform(this.removeElementScroll(c));OL(p),this.snapshot={measured:c,layout:p,latestValues:{}}}updateLayout(){var c;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const p=this.measure();OL(p);const h=this.layout;this.layout={measured:p,actual:this.removeElementScroll(p)},this.layoutCorrected=Sa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(c=this.options.visualElement)===null||c===void 0||c.notifyLayoutMeasure(this.layout.actual,h?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))}resetTransform(){var c;if(!o)return;const p=this.isLayoutDirty||this.shouldResetTransform,h=this.projectionDelta&&!OI(this.projectionDelta),v=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,b=v?.(this.latestValues,""),x=b!==this.prevTransformTemplateValue;p&&(h||Hf(this.latestValues)||x)&&(o(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:c}=this.options;if(!c)return Sa();const p=c.measureViewportBox(),{scroll:h}=this.root;return h&&(Gf(p.x,h.x),Gf(p.y,h.y)),p}removeElementScroll(c){const p=Sa();Dl(p,c);for(let h=0;h<this.path.length;h++){const v=this.path[h],{scroll:b,options:x,isScrollRoot:N}=v;if(v!==this.root&&b&&x.layoutScroll){if(N){Dl(p,c);const{scroll:_}=this.root;_&&(Gf(p.x,-_.x),Gf(p.y,-_.y))}Gf(p.x,b.x),Gf(p.y,b.y)}}return p}applyTransform(c,p=!1){const h=Sa();Dl(h,c);for(let v=0;v<this.path.length;v++){const b=this.path[v];!p&&b.options.layoutScroll&&b.scroll&&b!==b.root&&rv(h,{x:-b.scroll.x,y:-b.scroll.y}),Hf(b.latestValues)&&rv(h,b.latestValues)}return Hf(this.latestValues)&&rv(h,this.latestValues),h}removeTransform(c){var p;const h=Sa();Dl(h,c);for(let v=0;v<this.path.length;v++){const b=this.path[v];if(!b.instance||!Hf(b.latestValues))continue;yI(b.latestValues)&&b.updateSnapshot();const x=Sa(),N=b.measure();Dl(x,N),CL(h,b.latestValues,(p=b.snapshot)===null||p===void 0?void 0:p.layout,x)}return Hf(this.latestValues)&&CL(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection()}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var c;const{layout:p,layoutId:h}=this.options;!this.layout||!(p||h)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Sa(),this.relativeTargetOrigin=Sa(),Ng(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Dl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Sa(),this.targetWithTransforms=Sa()),this.relativeTarget&&this.relativeTargetOrigin&&((c=this.relativeParent)===null||c===void 0?void 0:c.target)?xQ(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Dl(this.target,this.layout.actual),SI(this.target,this.targetDelta)):Dl(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Sa(),this.relativeTargetOrigin=Sa(),Ng(this.relativeTargetOrigin,this.target,this.relativeParent.target),Dl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||Hf(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var c;const{layout:p,layoutId:h}=this.options;if(this.isTreeAnimating=Boolean(((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||h))return;const v=this.getLead();Dl(this.layoutCorrected,this.layout.actual),kQ(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:b}=v;if(!b)return;this.projectionDelta||(this.projectionDelta=wg(),this.projectionDeltaWithTransform=wg());const x=this.treeScale.x,N=this.treeScale.y,_=this.projectionTransform;Cg(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=_L(this.projectionDelta,this.treeScale),(this.projectionTransform!==_||this.treeScale.x!==x||this.treeScale.y!==N)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var p,h,v;(h=(p=this.options).scheduleRender)===null||h===void 0||h.call(p),c&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(c,p=!1){var h;const v=this.snapshot,b=v?.latestValues||{},x={...this.latestValues},N=wg();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;const _=Sa(),T=v?.isShared,A=(((h=this.getStack())===null||h===void 0?void 0:h.members.length)||0)<=1,M=Boolean(T&&!A&&this.options.crossfade===!0&&!this.path.some(IJ));this.animationProgress=0,this.mixTargetDelta=z=>{var P;const I=z/1e3;AL(N.x,c.x,I),AL(N.y,c.y,I),this.setTargetDelta(N),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(Ng(_,this.layout.actual,this.relativeParent.layout.actual),PJ(this.relativeTarget,this.relativeTargetOrigin,_,I)),T&&(this.animationValues=x,hJ(x,b,this.latestValues,I,M,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(0)}startAnimation(c){var p,h;this.notifyListeners("animationStart"),(p=this.currentAnimation)===null||p===void 0||p.stop(),this.resumingFrom&&((h=this.resumingFrom.currentAnimation)===null||h===void 0||h.stop()),this.pendingAnimation&&(Hg.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Au.update(()=>{bg.hasAnimatedSinceResize=!0,this.currentAnimation=pJ(0,TL,{...c,onUpdate:v=>{var b;this.mixTargetDelta(v),(b=c.onUpdate)===null||b===void 0||b.call(c,v)},onComplete:()=>{var v;(v=c.onComplete)===null||v===void 0||v.call(c),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var c;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(c=this.getStack())===null||c===void 0||c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var c;this.currentAnimation&&((c=this.mixTargetDelta)===null||c===void 0||c.call(this,TL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:p,target:h,layout:v,latestValues:b}=c;if(!(!p||!h||!v)){if(this!==c&&this.layout&&v&&PI(this.options.animationType,this.layout.actual,v.actual)){h=this.target||Sa();const x=ds(this.layout.actual.x);h.x.min=c.target.x.min,h.x.max=h.x.min+x;const N=ds(this.layout.actual.y);h.y.min=c.target.y.min,h.y.max=h.y.min+N}Dl(p,h),rv(p,b),Cg(this.projectionDeltaWithTransform,this.layoutCorrected,p,b)}}registerSharedNode(c,p){var h,v,b;this.sharedNodes.has(c)||this.sharedNodes.set(c,new CJ),this.sharedNodes.get(c).add(p),p.promote({transition:(h=p.options.initialPromotionConfig)===null||h===void 0?void 0:h.transition,preserveFollowOpacity:(b=(v=p.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||b===void 0?void 0:b.call(v,p)})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var c;const{layoutId:p}=this.options;return p?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:p}=this.options;return p?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:p,preserveFollowOpacity:h}={}){const v=this.getStack();v&&v.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetRotation(){const{visualElement:c}=this.options;if(!c)return;let p=!1;const h={};for(let v=0;v<EL.length;v++){const b=EL[v],x="rotate"+b;!c.getStaticValue(x)||(p=!0,h[x]=c.getStaticValue(x),c.setStaticValue(x,0))}if(!!p){c?.syncRender();for(const v in h)c.setStaticValue(v,h[v]);c.scheduleRender()}}getProjectionStyles(c={}){var p,h,v;const b={};if(!this.instance||this.isSVG)return b;if(this.isVisible)b.visibility="";else return{visibility:"hidden"};const x=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,b.opacity="",b.pointerEvents=x4(c.pointerEvents)||"",b.transform=x?x(this.latestValues,""):"none",b;const N=this.getLead();if(!this.projectionDelta||!this.layout||!N.target){const M={};return this.options.layoutId&&(M.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,M.pointerEvents=x4(c.pointerEvents)||""),this.hasProjected&&!Hf(this.latestValues)&&(M.transform=x?x({},""):"none",this.hasProjected=!1),M}const _=N.animationValues||N.latestValues;this.applyTransformsToTarget(),b.transform=_L(this.projectionDeltaWithTransform,this.treeScale,_),x&&(b.transform=x(_,b.transform));const{x:T,y:A}=this.projectionDelta;b.transformOrigin=`${T.origin*100}% ${A.origin*100}% 0`,N.animationValues?b.opacity=N===this?(v=(h=_.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:b.opacity=N===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const M in Z4){if(_[M]===void 0)continue;const{correct:z,applyTo:P}=Z4[M],I=z(_[M],N);if(P){const F=P.length;for(let $=0;$<F;$++)b[P[$]]=I}else b[M]=I}return this.options.layoutId&&(b.pointerEvents=N===this?x4(c.pointerEvents)||"":"none"),b}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var p;return(p=c.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(RL),this.root.sharedNodes.clear()}}}function EJ(e){e.updateLayout()}function TJ(e){var t,n,i;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:u,measured:c}=e.layout,{animationType:p}=e.options;p==="size"?yu(N=>{const _=o.isShared?o.measured[N]:o.layout[N],T=ds(_);_.min=u[N].min,_.max=_.min+T}):PI(p,o.layout,u)&&yu(N=>{const _=o.isShared?o.measured[N]:o.layout[N],T=ds(u[N]);_.max=_.min+T});const h=wg();Cg(h,u,o.layout);const v=wg();o.isShared?Cg(v,e.applyTransform(c,!0),o.measured):Cg(v,u,o.layout);const b=!OI(h);let x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:N,layout:_}=e.relativeParent;if(N&&_){const T=Sa();Ng(T,o.layout,N.layout);const A=Sa();Ng(A,u,_.actual),MI(T,A)||(x=!0)}}e.notifyListeners("didUpdate",{layout:u,snapshot:o,delta:v,layoutDelta:h,hasLayoutChanged:b,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function RJ(e){e.clearSnapshot()}function RL(e){e.clearMeasurements()}function AJ(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function kJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function LJ(e){e.resolveTargetDelta()}function OJ(e){e.calcProjection()}function MJ(e){e.resetRotation()}function DJ(e){e.removeLeadSnapshot()}function AL(e,t,n){e.translate=Zr(t.translate,0,n),e.scale=Zr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kL(e,t,n,i){e.min=Zr(t.min,n.min,i),e.max=Zr(t.max,n.max,i)}function PJ(e,t,n,i){kL(e.x,t.x,n.x,i),kL(e.y,t.y,n.y,i)}function IJ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const FJ={duration:.45,ease:[.4,0,.1,1]};function zJ(e,t){let n=e.root;for(let u=e.path.length-1;u>=0;u--)if(Boolean(e.path[u].instance)){n=e.path[u];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function LL(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function OL(e){LL(e.x),LL(e.y)}function PI(e,t,n){return e==="position"||e==="preserve-aspect"&&!xJ(wL(t),wL(n))}const BJ=DI({attachResizeListener:(e,t)=>US(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Z9={current:void 0},UJ=DI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Z9.current){const e=new BJ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Z9.current=e}return Z9.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),$J={...bQ,...AX,...BQ,...dJ},el=yZ((e,t)=>iK(e,t,$J,oJ,UJ));function II(){const e=k.exports.useRef(!1);return q4(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function jJ(){const e=II(),[t,n]=k.exports.useState(0),i=k.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[k.exports.useCallback(()=>Au.postRender(i),[i]),t]}var VJ="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class HJ extends k.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function WJ({children:e,isPresent:t}){const n=k.exports.useId(),i=k.exports.useRef(null),o=k.exports.useRef({width:0,height:0,top:0,left:0});return k.exports.useInsertionEffect(()=>{const{width:u,height:c,top:p,left:h}=o.current;if(t||!i.current||!u||!c)return;i.current.dataset.motionPopId=n;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${u}px !important;
height: ${c}px !important;
top: ${p}px !important;
left: ${h}px !important;
}
`),()=>{document.head.removeChild(v)}},[t]),C(HJ,{isPresent:t,childRef:i,sizeRef:o,children:k.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:VJ,lineNumber:68,columnNumber:13},this)}var ML="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const K9=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:u,mode:c})=>{const p=BS(GJ),h=k.exports.useId(),v=k.exports.useMemo(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:b=>{p.set(b,!0);for(const x of p.values())if(!x)return;i&&i()},register:b=>(p.set(b,!1),()=>p.delete(b))}),u?void 0:[n]);return k.exports.useMemo(()=>{p.forEach((b,x)=>p.set(x,!1))},[n]),k.exports.useEffect(()=>{!n&&!p.size&&i&&i()},[n]),c==="popLayout"&&(e=C(WJ,{isPresent:n,children:e},void 0,!1,{fileName:ML,lineNumber:48,columnNumber:20},globalThis)),C(Lv.Provider,{value:v,children:e},void 0,!1,{fileName:ML,lineNumber:50,columnNumber:13},globalThis)};function GJ(){return new Map}var X9="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const Kh=e=>e.key||"";function YJ(e,t){e.forEach(n=>{const i=Kh(n);t.set(i,n)})}function qJ(e){const t=[];return k.exports.Children.forEach(e,n=>{k.exports.isValidElement(n)&&t.push(n)}),t}const Fc=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:u=!0,mode:c="sync"})=>{o&&(c="wait",h_(!1,"Replace exitBeforeEnter with mode='wait'"));let[p]=jJ();const h=k.exports.useContext(Q8).forceRender;h&&(p=h);const v=II(),b=qJ(e);let x=b;const N=new Set,_=k.exports.useRef(x),T=k.exports.useRef(new Map).current,A=k.exports.useRef(!0);if(q4(()=>{A.current=!1,YJ(b,T),_.current=x}),o_(()=>{A.current=!0,T.clear(),N.clear()}),A.current)return C(Ui,{children:x.map(I=>C(K9,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:u,mode:c,children:I},Kh(I),!1,{fileName:X9,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);x=[...x];const M=_.current.map(Kh),z=b.map(Kh),P=M.length;for(let I=0;I<P;I++){const F=M[I];z.indexOf(F)===-1&&N.add(F)}return c==="wait"&&N.size&&(x=[]),N.forEach(I=>{if(z.indexOf(I)!==-1)return;const F=T.get(I);if(!F)return;const $=M.indexOf(I),Y=()=>{T.delete(I),N.delete(I);const Z=_.current.findIndex(ue=>ue.key===I);if(_.current.splice(Z,1),!N.size){if(_.current=b,v.current===!1)return;p(),i&&i()}};x.splice($,0,C(K9,{isPresent:!1,onExitComplete:Y,custom:t,presenceAffectsLayout:u,mode:c,children:F},Kh(F),!1,{fileName:X9,lineNumber:143,columnNumber:52},globalThis))}),x=x.map(I=>{const F=I.key;return N.has(F)?I:C(K9,{isPresent:!0,presenceAffectsLayout:u,mode:c,children:I},Kh(I),!1,{fileName:X9,lineNumber:149,columnNumber:46},globalThis)}),m_!=="production"&&c==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),C(Ui,{children:N.size?x:x.map(I=>k.exports.cloneElement(I))},void 0,!1)};var hb="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",vb=(...e)=>e.filter(Boolean).join(" ");function ZJ(){return!0}var KJ=e=>{const{condition:t,message:n}=e;t&&ZJ()&&console.warn(n)},qp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},tg={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function L7(e){switch(e?.direction??"right"){case"right":return tg.slideRight;case"left":return tg.slideLeft;case"bottom":return tg.slideDown;case"top":return tg.slideUp;default:return tg.slideRight}}var Kp={enter:{duration:.2,ease:qp.easeOut},exit:{duration:.1,ease:qp.easeIn}},Ul={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},XJ=e=>e!=null&&parseInt(e.toString(),10)>0,DL={exit:{height:{duration:.2,ease:qp.ease},opacity:{duration:.3,ease:qp.ease}},enter:{height:{duration:.3,ease:qp.ease},opacity:{duration:.4,ease:qp.ease}}},QJ={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:XJ(t)?1:0},height:t,transitionEnd:i?.exit,transition:n?.exit??Ul.exit(DL.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:n?.enter??Ul.enter(DL.enter,o)})},FI=k.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:i,animateOpacity:o=!0,startingHeight:u=0,endingHeight:c="auto",style:p,className:h,transition:v,transitionEnd:b,...x}=e,[N,_]=k.exports.useState(!1);k.exports.useEffect(()=>{const P=setTimeout(()=>{_(!0)});return()=>clearTimeout(P)},[]),KJ({condition:Boolean(u>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const T=parseFloat(u.toString())>0,A={startingHeight:u,endingHeight:c,animateOpacity:o,transition:N?v:{enter:{duration:0}},transitionEnd:{enter:b?.enter,exit:i?b?.exit:{...b?.exit,display:T?"block":"none"}}},M=i?n:!0,z=n||i?"enter":"exit";return C(Fc,{initial:!1,custom:A,children:M&&Ae.createElement(el.div,{ref:t,...x,className:vb("chakra-collapse",h),style:{overflow:"hidden",display:"block",...p},custom:A,variants:QJ,initial:i?"exit":!1,animate:z,exit:"exit"})},void 0,!1,{fileName:hb,lineNumber:190,columnNumber:26},globalThis)});FI.displayName="Collapse";var JJ={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Ul.enter(Kp.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??Ul.exit(Kp.exit,n),transitionEnd:t?.exit})},zI={initial:"exit",animate:"enter",exit:"exit",variants:JJ},eee=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,className:u,transition:c,transitionEnd:p,delay:h,...v}=t,b=o||i?"enter":"exit",x=i?o&&i:!0,N={transition:c,transitionEnd:p,delay:h};return C(Fc,{custom:N,children:x&&Ae.createElement(el.div,{ref:n,className:vb("chakra-fade",u),custom:N,...zI,animate:b,...v})},void 0,!1,{fileName:hb,lineNumber:248,columnNumber:26},this)});eee.displayName="Fade";var tee={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:n?.exit??Ul.exit(Kp.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Ul.enter(Kp.enter,n),transitionEnd:e?.enter})},BI={initial:"exit",animate:"enter",exit:"exit",variants:tee},nee=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:u=!0,initialScale:c=.95,className:p,transition:h,transitionEnd:v,delay:b,...x}=t,N=i?o&&i:!0,_=o||i?"enter":"exit",T={initialScale:c,reverse:u,transition:h,transitionEnd:v,delay:b};return C(Fc,{custom:T,children:N&&Ae.createElement(el.div,{ref:n,className:vb("chakra-offset-slide",p),...BI,animate:_,custom:T,...x})},void 0,!1,{fileName:hb,lineNumber:301,columnNumber:26},this)});nee.displayName="ScaleFade";var PL={exit:{duration:.15,ease:qp.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},ree={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{const{exit:o}=L7({direction:e});return{...o,transition:t?.exit??Ul.exit(PL.exit,i),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{const{enter:o}=L7({direction:e});return{...o,transition:n?.enter??Ul.enter(PL.enter,i),transitionEnd:t?.enter}}},UI=k.exports.forwardRef(function(t,n){const{direction:i="right",style:o,unmountOnExit:u,in:c,className:p,transition:h,transitionEnd:v,delay:b,...x}=t,N=L7({direction:i}),_=Object.assign({position:"fixed"},N.position,o),T=u?c&&u:!0,A=c||u?"enter":"exit",M={transitionEnd:v,transition:h,direction:i,delay:b};return C(Fc,{custom:M,children:T&&Ae.createElement(el.div,{...x,ref:n,initial:"exit",className:vb("chakra-slide",p),animate:A,exit:"exit",custom:M,variants:ree,style:_})},void 0,!1,{fileName:hb,lineNumber:366,columnNumber:26},this)});UI.displayName="Slide";var iee={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??Ul.exit(Kp.exit,o),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Ul.enter(Kp.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:i,reverse:o,delay:u})=>{const c={x:t,y:e};return{opacity:0,transition:n?.exit??Ul.exit(Kp.exit,u),...o?{...c,transitionEnd:i?.exit}:{transitionEnd:{...c,...i?.exit}}}}},O7={initial:"initial",animate:"enter",exit:"exit",variants:iee},aee=k.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:u=!0,className:c,offsetX:p=0,offsetY:h=8,transition:v,transitionEnd:b,delay:x,...N}=t,_=i?o&&i:!0,T=o||i?"enter":"exit",A={offsetX:p,offsetY:h,reverse:u,transition:v,transitionEnd:b,delay:x};return C(Fc,{custom:A,children:_&&Ae.createElement(el.div,{ref:n,className:vb("chakra-offset-slide",c),custom:A,...O7,animate:T,...N})},void 0,!1,{fileName:hb,lineNumber:441,columnNumber:26},this)});aee.displayName="SlideFade";var M7="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",gb=(...e)=>e.filter(Boolean).join(" ");function oee(){return!0}var YS=e=>{const{condition:t,message:n}=e;t&&oee()&&console.warn(n)};function Q9(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[see,qS]=Tr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[lee,w_]=Tr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[uee,Sye,cee,fee]=cP(),$I=qe(function(t,n){const{getButtonProps:i}=w_(),o=i(t,n),u=qS(),c={display:"flex",alignItems:"center",width:"100%",outline:0,...u.button};return Ae.createElement($e.button,{...o,className:gb("chakra-accordion__button",t.className),__css:c})});$I.displayName="AccordionButton";function dee(e){const{onChange:t,defaultIndex:n,index:i,allowMultiple:o,allowToggle:u,...c}=e;hee(e),vee(e);const p=cee(),[h,v]=k.exports.useState(-1);k.exports.useEffect(()=>()=>{v(-1)},[]);const[b,x]=fP({value:i,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:b,setIndex:x,htmlProps:c,getAccordionItemProps:_=>{let T=!1;return _!==null&&(T=Array.isArray(b)?b.includes(_):b===_),{isOpen:T,onChange:M=>{if(_!==null)if(o&&Array.isArray(b)){const z=M?b.concat(_):b.filter(P=>P!==_);x(z)}else M?x(_):u&&x(-1)}}},focusedIndex:h,setFocusedIndex:v,descendants:p}}var[pee,__]=Tr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function mee(e){const{isDisabled:t,isFocusable:n,id:i,...o}=e,{getAccordionItemProps:u,setFocusedIndex:c}=__(),p=k.exports.useRef(null),h=k.exports.useId(),v=i??h,b=`accordion-button-${v}`,x=`accordion-panel-${v}`;gee(e);const{register:N,index:_,descendants:T}=fee({disabled:t&&!n}),{isOpen:A,onChange:M}=u(_===-1?null:_);bee({isOpen:A,isDisabled:t});const z=()=>{M?.(!0)},P=()=>{M?.(!1)},I=k.exports.useCallback(()=>{M?.(!A),c(_)},[_,c,A,M]),F=k.exports.useCallback(ue=>{const le={ArrowDown:()=>{const ge=T.nextEnabled(_);ge?.node.focus()},ArrowUp:()=>{const ge=T.prevEnabled(_);ge?.node.focus()},Home:()=>{const ge=T.firstEnabled();ge?.node.focus()},End:()=>{const ge=T.lastEnabled();ge?.node.focus()}}[ue.key];le&&(ue.preventDefault(),le(ue))},[T,_]),$=k.exports.useCallback(()=>{c(_)},[c,_]),Y=k.exports.useCallback(function(ce={},le=null){return{...ce,type:"button",ref:qr(N,p,le),id:b,disabled:!!t,"aria-expanded":!!A,"aria-controls":x,onClick:Q9(ce.onClick,I),onFocus:Q9(ce.onFocus,$),onKeyDown:Q9(ce.onKeyDown,F)}},[b,t,A,I,$,F,x,N]),Z=k.exports.useCallback(function(ce={},le=null){return{...ce,ref:le,role:"region",id:x,"aria-labelledby":b,hidden:!A}},[b,A,x]);return{isOpen:A,isDisabled:t,isFocusable:n,onOpen:z,onClose:P,getButtonProps:Y,getPanelProps:Z,htmlProps:o}}function hee(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;YS({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function vee(e){YS({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function gee(e){YS({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
`})}function bee(e){YS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function jI(e){const{isOpen:t,isDisabled:n}=w_(),{reduceMotion:i}=__(),o=gb("chakra-accordion__icon",e.className),u=qS(),c={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...u.icon};return C(ms,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:c,...e,children:C("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:M7,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:M7,lineNumber:276,columnNumber:26},this)}jI.displayName="AccordionIcon";var VI=qe(function(t,n){const{children:i,className:o}=t,{htmlProps:u,...c}=mee(t),h={...qS().container,overflowAnchor:"none"},v=k.exports.useMemo(()=>c,[c]);return Ae.createElement(lee,{value:v},Ae.createElement($e.div,{ref:n,...u,className:gb("chakra-accordion__item",o),__css:h},typeof i=="function"?i({isExpanded:!!c.isOpen,isDisabled:!!c.isDisabled}):i))});VI.displayName="AccordionItem";var HI=qe(function(t,n){const{reduceMotion:i}=__(),{getPanelProps:o,isOpen:u}=w_(),c=o(t,n),p=gb("chakra-accordion__panel",t.className),h=qS();i||delete c.hidden;const v=Ae.createElement($e.div,{...c,__css:h.panel,className:p});return i?v:C(FI,{in:u,children:v},void 0,!1,{fileName:M7,lineNumber:336,columnNumber:28},this)});HI.displayName="AccordionPanel";var WI=qe(function({children:t,reduceMotion:n,...i},o){const u=mo("Accordion",i),c=pr(i),{htmlProps:p,descendants:h,...v}=dee(c),b=k.exports.useMemo(()=>({...v,reduceMotion:!!n}),[v,n]);return Ae.createElement(uee,{value:h},Ae.createElement(pee,{value:b},Ae.createElement(see,{value:u},Ae.createElement($e.div,{ref:o,...p,className:gb("chakra-accordion",i.className),__css:u.root},t))))});WI.displayName="Accordion";var yee=(...e)=>e.filter(Boolean).join(" "),See=ob({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ZS=qe((e,t)=>{const n=po("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:u="0.45s",emptyColor:c="transparent",className:p,...h}=pr(e),v=yee("chakra-spinner",p),b={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:c,borderLeftColor:c,animation:`${See} ${u} linear infinite`,...n};return Ae.createElement($e.div,{ref:t,__css:b,className:v,...h},i&&Ae.createElement($e.span,{srOnly:!0},i))});ZS.displayName="Spinner";var tm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",KS=(...e)=>e.filter(Boolean).join(" ");function xee(e){return C(ms,{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"},void 0,!1,{fileName:tm,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:tm,lineNumber:21,columnNumber:26},this)}function Cee(e){return C(ms,{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"},void 0,!1,{fileName:tm,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:tm,lineNumber:30,columnNumber:26},this)}function IL(e){return C(ms,{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:tm,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:tm,lineNumber:39,columnNumber:26},this)}var[Nee,wee]=Tr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[_ee,E_]=Tr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),GI={info:{icon:Cee,colorScheme:"blue"},warning:{icon:IL,colorScheme:"orange"},success:{icon:xee,colorScheme:"green"},error:{icon:IL,colorScheme:"red"},loading:{icon:ZS,colorScheme:"blue"}};function Eee(e){return GI[e].colorScheme}function Tee(e){return GI[e].icon}var YI=qe(function(t,n){const{status:i="info",addRole:o=!0,...u}=pr(t),c=t.colorScheme??Eee(i),p=mo("Alert",{...t,colorScheme:c}),h={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return Ae.createElement(Nee,{value:{status:i}},Ae.createElement(_ee,{value:p},Ae.createElement($e.div,{role:o?"alert":void 0,ref:n,...u,className:KS("chakra-alert",t.className),__css:h})))});YI.displayName="Alert";var qI=qe(function(t,n){const i=E_(),o={display:"inline",...i.description};return Ae.createElement($e.div,{ref:n,...t,className:KS("chakra-alert__desc",t.className),__css:o})});qI.displayName="AlertDescription";function ZI(e){const{status:t}=wee(),n=Tee(t),i=E_(),o=t==="loading"?i.spinner:i.icon;return Ae.createElement($e.span,{display:"inherit",...e,className:KS("chakra-alert__icon",e.className),__css:o},e.children||C(n,{h:"100%",w:"100%"},void 0,!1,{fileName:tm,lineNumber:133,columnNumber:40},this))}ZI.displayName="AlertIcon";var KI=qe(function(t,n){const i=E_();return Ae.createElement($e.div,{ref:n,...t,className:KS("chakra-alert__title",t.className),__css:i.title})});KI.displayName="AlertTitle";var Ree="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function Aee(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function kee(e){const{loading:t,src:n,srcSet:i,onLoad:o,onError:u,crossOrigin:c,sizes:p,ignoreFallback:h}=e,[v,b]=k.exports.useState("pending");k.exports.useEffect(()=>{b(n?"loading":"pending")},[n]);const x=k.exports.useRef(),N=k.exports.useCallback(()=>{if(!n)return;_();const T=new Image;T.src=n,c&&(T.crossOrigin=c),i&&(T.srcset=i),p&&(T.sizes=p),t&&(T.loading=t),T.onload=A=>{_(),b("loaded"),o?.(A)},T.onerror=A=>{_(),b("failed"),u?.(A)},x.current=T},[n,c,i,p,o,u,t]),_=()=>{x.current&&(x.current.onload=null,x.current.onerror=null,x.current=null)};return Eu(()=>{if(!h)return v==="loading"&&N(),()=>{_()}},[v,N,h]),h?"loaded":v}var Lee=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",aS=qe(function(t,n){const{htmlWidth:i,htmlHeight:o,alt:u,...c}=t;return C("img",{width:i,height:o,ref:n,alt:u,...c},void 0,!1,{fileName:Ree,lineNumber:90,columnNumber:26},this)});aS.displayName="NativeImage";var XS=qe(function(t,n){const{fallbackSrc:i,fallback:o,src:u,srcSet:c,align:p,fit:h,loading:v,ignoreFallback:b,crossOrigin:x,fallbackStrategy:N="beforeLoadOrError",referrerPolicy:_,...T}=t,A=i!==void 0||o!==void 0,M=v!=null||b||!A,z=kee({...t,ignoreFallback:M}),P=Lee(z,N),I={ref:n,objectFit:h,objectPosition:p,...M?T:Aee(T,["onError","onLoad"])};return P?o||Ae.createElement($e.img,{as:aS,className:"chakra-image__placeholder",src:i,...I}):Ae.createElement($e.img,{as:aS,src:u,srcSet:c,crossOrigin:x,loading:v,referrerPolicy:_,className:"chakra-image",...I})});XS.displayName="Image";qe((e,t)=>Ae.createElement($e.img,{ref:t,as:aS,className:"chakra-image",...e}));var Oee=Object.create,XI=Object.defineProperty,Mee=Object.getOwnPropertyDescriptor,QI=Object.getOwnPropertyNames,Dee=Object.getPrototypeOf,Pee=Object.prototype.hasOwnProperty,JI=(e,t)=>function(){return t||(0,e[QI(e)[0]])((t={exports:{}}).exports,t),t.exports},Iee=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of QI(t))!Pee.call(e,o)&&o!==n&&XI(e,o,{get:()=>t[o],enumerable:!(i=Mee(t,o))||i.enumerable});return e},Fee=(e,t,n)=>(n=e!=null?Oee(Dee(e)):{},Iee(t||!e||!e.__esModule?XI(n,"default",{value:e,enumerable:!0}):n,e)),zee=JI({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(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;G<L;G++)V[G-1]=arguments[G];be("warn",S,V)}}function K(S){{for(var L=arguments.length,V=new Array(L>1?L-1:0),G=1;G<L;G++)V[G-1]=arguments[G];be("error",S,V)}}function be(S,L,V){{var G=Ce.ReactDebugCurrentFrame,ne=G.getStackAddendum();ne!==""&&(L+="%s",V=V.concat([ne]));var ze=V.map(function(_e){return String(_e)});ze.unshift("Warning: "+L),Function.prototype.apply.call(console[S],console,ze)}}var Ne={};function me(S,L){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",ne=G+"."+L;if(Ne[ne])return;K("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,G),Ne[ne]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,L,V){me(S,"forceUpdate")},enqueueReplaceState:function(S,L,V,G){me(S,"replaceState")},enqueueSetState:function(S,L,V,G){me(S,"setState")}},De=Object.assign,Pe={};Object.freeze(Pe);function Ze(S,L,V){this.props=S,this.context=L,this.refs=Pe,this.updater=V||we}Ze.prototype.isReactComponent={},Ze.prototype.setState=function(S,L){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,L,"setState")},Ze.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var it={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},bt=function(S,L){Object.defineProperty(Ze.prototype,S,{get:function(){xe("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Wt in it)it.hasOwnProperty(Wt)&&bt(Wt,it[Wt])}function Xe(){}Xe.prototype=Ze.prototype;function ct(S,L,V){this.props=S,this.context=L,this.refs=Pe,this.updater=V||we}var wt=ct.prototype=new Xe;wt.constructor=ct,De(wt,Ze.prototype),wt.isPureReactComponent=!0;function Bt(){var S={current:null};return Object.seal(S),S}var Ge=Array.isArray;function Gt(S){return Ge(S)}function ye(S){{var L=typeof Symbol=="function"&&Symbol.toStringTag,V=L&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function et(S){try{return _t(S),!1}catch{return!0}}function _t(S){return""+S}function lt(S){if(et(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(S)),_t(S)}function xn(S,L,V){var G=S.displayName;if(G)return G;var ne=L.displayName||L.name||"";return ne!==""?V+"("+ne+")":V}function $n(S){return S.displayName||"Context"}function Ft(S){if(S==null)return null;if(typeof S.tag=="number"&&K("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case u:return"Fragment";case o:return"Portal";case p:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case N:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var L=S;return $n(L)+".Consumer";case h:var V=S;return $n(V._context)+".Provider";case b:return xn(S,S.render,"ForwardRef");case _:var G=S.displayName||null;return G!==null?G:Ft(S.type)||"Memo";case T:{var ne=S,ze=ne._payload,_e=ne._init;try{return Ft(_e(ze))}catch{return null}}}return null}var on=Object.prototype.hasOwnProperty,Ln={key:!0,ref:!0,__self:!0,__source:!0},gn,He,Je;Je={};function nn(S){if(on.call(S,"ref")){var L=Object.getOwnPropertyDescriptor(S,"ref").get;if(L&&L.isReactWarning)return!1}return S.ref!==void 0}function Ot(S){if(on.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function Oe(S,L){var V=function(){gn||(gn=!0,K("%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)",L))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function qt(S,L){var V=function(){He||(He=!0,K("%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)",L))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function En(S){if(typeof S.ref=="string"&&Y.current&&S.__self&&Y.current.stateNode!==S.__self){var L=Ft(Y.current.type);Je[L]||(K('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',L,S.ref),Je[L]=!0)}}var je=function(S,L,V,G,ne,ze,_e){var Ve={$$typeof:i,type:S,key:L,ref:V,props:_e,_owner:ze};return Ve._store={},Object.defineProperty(Ve._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ve,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ve,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(Ve.props),Object.freeze(Ve)),Ve};function at(S,L,V){var G,ne={},ze=null,_e=null,Ve=null,st=null;if(L!=null){nn(L)&&(_e=L.ref,En(L)),Ot(L)&&(lt(L.key),ze=""+L.key),Ve=L.__self===void 0?null:L.__self,st=L.__source===void 0?null:L.__source;for(G in L)on.call(L,G)&&!Ln.hasOwnProperty(G)&&(ne[G]=L[G])}var xt=arguments.length-2;if(xt===1)ne.children=V;else if(xt>1){for(var Mt=Array(xt),yt=0;yt<xt;yt++)Mt[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Mt),ne.children=Mt}if(S&&S.defaultProps){var Vt=S.defaultProps;for(G in Vt)ne[G]===void 0&&(ne[G]=Vt[G])}if(ze||_e){var Rt=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&Oe(ne,Rt),_e&&qt(ne,Rt)}return je(S,ze,_e,Ve,st,Y.current,ne)}function Tt(S,L){var V=je(S.type,L,S.ref,S._self,S._source,S._owner,S.props);return V}function hn(S,L,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,ne=De({},S.props),ze=S.key,_e=S.ref,Ve=S._self,st=S._source,xt=S._owner;if(L!=null){nn(L)&&(_e=L.ref,xt=Y.current),Ot(L)&&(lt(L.key),ze=""+L.key);var Mt;S.type&&S.type.defaultProps&&(Mt=S.type.defaultProps);for(G in L)on.call(L,G)&&!Ln.hasOwnProperty(G)&&(L[G]===void 0&&Mt!==void 0?ne[G]=Mt[G]:ne[G]=L[G])}var yt=arguments.length-2;if(yt===1)ne.children=V;else if(yt>1){for(var Vt=Array(yt),Rt=0;Rt<yt;Rt++)Vt[Rt]=arguments[Rt+2];ne.children=Vt}return je(S.type,ze,_e,Ve,st,xt,ne)}function Jt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",In=":";function Or(S){var L=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(L,function(ne){return V[ne]});return"$"+G}var On=!1,xi=/\/+/g;function jn(S){return S.replace(xi,"$&/")}function Rn(S,L){return typeof S=="object"&&S!==null&&S.key!=null?(lt(S.key),Or(""+S.key)):L.toString(36)}function Ci(S,L,V,G,ne){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var _e=!1;if(S===null)_e=!0;else switch(ze){case"string":case"number":_e=!0;break;case"object":switch(S.$$typeof){case i:case o:_e=!0}}if(_e){var Ve=S,st=ne(Ve),xt=G===""?Tn+Rn(Ve,0):G;if(Gt(st)){var Mt="";xt!=null&&(Mt=jn(xt)+"/"),Ci(st,L,Mt,"",function(pd){return pd})}else st!=null&&(Jt(st)&&(st.key&&(!Ve||Ve.key!==st.key)&&lt(st.key),st=Tt(st,V+(st.key&&(!Ve||Ve.key!==st.key)?jn(""+st.key)+"/":"")+xt)),L.push(st));return 1}var yt,Vt,Rt=0,Ut=G===""?Tn:G+In;if(Gt(S))for(var ka=0;ka<S.length;ka++)yt=S[ka],Vt=Ut+Rn(yt,ka),Rt+=Ci(yt,L,V,Vt,ne);else{var Ti=P(S);if(typeof Ti=="function"){var Ko=S;Ti===Ko.entries&&(On||xe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),On=!0);for(var Uu=Ti.call(Ko),Mn,La=0;!(Mn=Uu.next()).done;)yt=Mn.value,Vt=Ut+Rn(yt,La++),Rt+=Ci(yt,L,V,Vt,ne)}else if(ze==="object"){var Ns=String(S);throw new Error("Objects are not valid as a React child (found: "+(Ns==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Ns)+"). If you meant to render a collection of children, use an array instead.")}}return Rt}function xr(S,L,V){if(S==null)return S;var G=[],ne=0;return Ci(S,G,"","",function(ze){return L.call(V,ze,ne++)}),G}function zo(S){var L=0;return xr(S,function(){L++}),L}function hs(S,L,V){xr(S,function(){L.apply(this,arguments)},V)}function vs(S){return xr(S,function(L){return L})||[]}function Bo(S){if(!Jt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Uo(S){var L={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:h,_context:L};var V=!1,G=!1,ne=!1;{var ze={$$typeof:v,_context:L};Object.defineProperties(ze,{Provider:{get:function(){return G||(G=!0,K("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> 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 <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> 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("<anonymous>")&&(yt=yt.replace("<anonymous>",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<S.length;V++){var G=S[V];Jt(G)&&ta(G,L)}else if(Jt(S))S._store&&(S._store.validated=!0);else if(S){var ne=P(S);if(typeof ne=="function"&&ne!==S.entries)for(var ze=ne.call(S),_e;!(_e=ze.next()).done;)Jt(_e.value)&&ta(_e.value,L)}}}function Rr(S){{var L=S.type;if(L==null||typeof L=="string")return;var V;if(typeof L=="function")V=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===b||L.$$typeof===_))V=L.propTypes;else return;if(V){var G=Ft(L);al(V,S.props,"prop",G,S)}else if(L.PropTypes!==void 0&&!Ra){Ra=!0;var ne=Ft(L);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&K("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(S){{for(var L=Object.keys(S.props),V=0;V<L.length;V++){var G=L[V];if(G!=="children"&&G!=="key"){cn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),cn(null);break}}S.ref!==null&&(cn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),cn(null))}}function Zo(S,L,V){var G=sn(S);if(!G){var ne="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(ne+=" 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 ze=ol(L);ze?ne+=ze:ne+=qo();var _e;S===null?_e="null":Gt(S)?_e="array":S!==void 0&&S.$$typeof===i?(_e="<"+(Ft(S.type)||"Unknown")+" />",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;st<arguments.length;st++)vo(arguments[st],S);return S===u?ar(Ve):Rr(Ve),Ve}var Xr=!1;function mr(S){var L=Zo.bind(null,S);return L.type=S,Xr||(Xr=!0,xe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(L,"type",{enumerable:!1,get:function(){return xe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),L}function oi(S,L,V){for(var G=hn.apply(this,arguments),ne=2;ne<arguments.length;ne++)vo(arguments[ne],G.type);return Rr(G),G}function Bu(S,L){var V=F.transition;F.transition={};var G=F.transition;F.transition._updatedFibers=new Set;try{S()}finally{if(F.transition=V,V===null&&G._updatedFibers){var ne=G._updatedFibers.size;ne>10&&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=t&&t[L];Aa=V.call(t,"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(;L<S.length;L++){var V=S[L];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(L+1),G}finally{J=!1}}}var ot=Zo,fn=oi,zn=mr,Kt={map:xr,forEach:hs,count:zo,toArray:vs,only:Bo};e.Children=Kt,e.Component=Ze,e.Fragment=u,e.Profiler=p,e.PureComponent=ct,e.StrictMode=c,e.Suspense=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ce,e.cloneElement=fn,e.createContext=Uo,e.createElement=ot,e.createFactory=zn,e.createRef=Bt,e.forwardRef=Ke,e.isValidElement=Jt,e.lazy=Ue,e.memo=Cn,e.startTransition=Bu,e.unstable_act=Wl,e.useCallback=Ni,e.useContext=Zt,e.useDebugValue=_a,e.useDeferredValue=qa,e.useEffect=Vr,e.useId=en,e.useImperativeHandle=zu,e.useInsertionEffect=wa,e.useLayoutEffect=$o,e.useMemo=ho,e.useReducer=Bn,e.useRef=un,e.useState=Vn,e.useSyncExternalStore=Za,e.useTransition=nl,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),Bee=JI({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=zee()}}),FL=Fee(Bee());function QS(e){return FL.Children.toArray(e).filter(t=>(0,FL.isValidElement)(t))}/**
* @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.
*//**
* @license React
* react.production.min.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.
*/var Qf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",JS=(...e)=>e.filter(Boolean).join(" "),zL=e=>e?"":void 0,[Uee,$ee]=Tr({strict:!1,name:"ButtonGroupContext"});function D7(e){const{children:t,className:n,...i}=e,o=k.exports.isValidElement(t)?k.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,u=JS("chakra-button__icon",n);return Ae.createElement($e.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u},o)}D7.displayName="ButtonIcon";function P7(e){const{label:t,placement:n,spacing:i="0.5rem",children:o=C(ZS,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:Qf,lineNumber:56,columnNumber:32},this),className:u,__css:c,...p}=e,h=JS("chakra-button__spinner",u),v=n==="start"?"marginEnd":"marginStart",b=k.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...c}),[c,t,v,i]);return Ae.createElement($e.div,{className:h,...p,__css:b},o)}P7.displayName="ButtonSpinner";function jee(e){const[t,n]=k.exports.useState(!e);return{ref:k.exports.useCallback(u=>{!u||n(u.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Du=qe((e,t)=>{const n=$ee(),i=po("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:u,isActive:c,children:p,leftIcon:h,rightIcon:v,loadingText:b,iconSpacing:x="0.5rem",type:N,spinner:_,spinnerPlacement:T="start",className:A,as:M,...z}=pr(e),P=k.exports.useMemo(()=>{const Y={...i?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!n&&{_focus:Y}}},[i,n]),{ref:I,type:F}=jee(M),$={rightIcon:v,leftIcon:h,iconSpacing:x,children:p};return Ae.createElement($e.button,{disabled:o||u,ref:eZ(t,I),as:M,type:N??F,"data-active":zL(c),"data-loading":zL(u),__css:P,className:JS("chakra-button",A),...z},u&&T==="start"&&C(P7,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x,children:_},void 0,!1,{fileName:Qf,lineNumber:145,columnNumber:67},globalThis),u?b||Ae.createElement($e.span,{opacity:0},C(BL,{...$},void 0,!1,{fileName:Qf,lineNumber:152,columnNumber:22},globalThis)):C(BL,{...$},void 0,!1,{fileName:Qf,lineNumber:154,columnNumber:25},globalThis),u&&T==="end"&&C(P7,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x,children:_},void 0,!1,{fileName:Qf,lineNumber:156,columnNumber:66},globalThis))});Du.displayName="Button";function BL(e){const{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return C(Ui,{children:[t&&C(D7,{marginEnd:o,children:t},void 0,!1,{fileName:Qf,lineNumber:166,columnNumber:96},this),i,n&&C(D7,{marginStart:o,children:n},void 0,!1,{fileName:Qf,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var Vee=qe(function(t,n){const{size:i,colorScheme:o,variant:u,className:c,spacing:p="0.5rem",isAttached:h,isDisabled:v,...b}=t,x=JS("chakra-button__group",c),N=k.exports.useMemo(()=>({size:i,colorScheme:o,variant:u,isDisabled:v}),[i,o,u,v]);let _={display:"inline-flex"};return h?_={..._,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:_={..._,"& > *:not(style) ~ *:not(style)":{marginStart:p}},Ae.createElement(Uee,{value:N},Ae.createElement($e.div,{ref:n,role:"group",__css:_,className:x,"data-attached":h?"":void 0,...b}))});Vee.displayName="ButtonGroup";var bi=qe((e,t)=>{const{icon:n,children:i,isRound:o,"aria-label":u,...c}=e,p=n||i,h=k.exports.isValidElement(p)?k.exports.cloneElement(p,{"aria-hidden":!0,focusable:!1}):null;return C(Du,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":u,...c,children:h},void 0,!1,{fileName:Qf,lineNumber:231,columnNumber:26},globalThis)});bi.displayName="IconButton";var I7="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",Dv=(...e)=>e.filter(Boolean).join(" "),W5=e=>e?"":void 0,J9=e=>e?!0:void 0;function UL(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Hee,eF]=Tr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Wee,Pv]=Tr({strict:!1,name:"FormControlContext"});function Gee(e){const{id:t,isRequired:n,isInvalid:i,isDisabled:o,isReadOnly:u,...c}=e,p=k.exports.useId(),h=t||`field-${p}`,v=`${h}-label`,b=`${h}-feedback`,x=`${h}-helptext`,[N,_]=k.exports.useState(!1),[T,A]=k.exports.useState(!1),[M,z]=k.exports.useState(!1),P=k.exports.useCallback((Z={},ue=null)=>({id:x,...Z,ref:qr(ue,ce=>{!ce||A(!0)})}),[x]),I=k.exports.useCallback((Z={},ue=null)=>({...Z,ref:ue,"data-focus":W5(M),"data-disabled":W5(o),"data-invalid":W5(i),"data-readonly":W5(u),id:Z.id??v,htmlFor:Z.htmlFor??h}),[h,o,M,i,u,v]),F=k.exports.useCallback((Z={},ue=null)=>({id:b,...Z,ref:qr(ue,ce=>{!ce||_(!0)}),"aria-live":"polite"}),[b]),$=k.exports.useCallback((Z={},ue=null)=>({...Z,...c,ref:ue,role:"group"}),[c]),Y=k.exports.useCallback((Z={},ue=null)=>({...Z,ref:ue,role:"presentation","aria-hidden":!0,children:Z.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!u,isDisabled:!!o,isFocused:!!M,onFocus:()=>z(!0),onBlur:()=>z(!1),hasFeedbackText:N,setHasFeedbackText:_,hasHelpText:T,setHasHelpText:A,id:h,labelId:v,feedbackId:b,helpTextId:x,htmlProps:c,getHelpTextProps:P,getErrorMessageProps:F,getRootProps:$,getLabelProps:I,getRequiredIndicatorProps:Y}}var fd=qe(function(t,n){const i=mo("Form",t),o=pr(t),{getRootProps:u,htmlProps:c,...p}=Gee(o),h=Dv("chakra-form-control",t.className);return Ae.createElement(Wee,{value:p},Ae.createElement(Hee,{value:i},Ae.createElement($e.div,{...u({},n),className:h,__css:i.container})))});fd.displayName="FormControl";var Yee=qe(function(t,n){const i=Pv(),o=eF(),u=Dv("chakra-form__helper-text",t.className);return Ae.createElement($e.div,{...i?.getHelpTextProps(t,n),__css:o.helperText,className:u})});Yee.displayName="FormHelperText";function T_(e){const{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...u}=R_(e);return{...u,disabled:t,readOnly:i,required:o,"aria-invalid":J9(n),"aria-required":J9(o),"aria-readonly":J9(i)}}function R_(e){const t=Pv(),{id:n,disabled:i,readOnly:o,required:u,isRequired:c,isInvalid:p,isReadOnly:h,isDisabled:v,onFocus:b,onBlur:x,...N}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&_.push(t.feedbackId),t?.hasHelpText&&_.push(t.helpTextId),{...N,"aria-describedby":_.join(" ")||void 0,id:n??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:o??h??t?.isReadOnly,isRequired:u??c??t?.isRequired,isInvalid:p??t?.isInvalid,onFocus:UL(t?.onFocus,b),onBlur:UL(t?.onBlur,x)}}var[qee,Zee]=Tr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),Kee=qe((e,t)=>{const n=mo("FormError",e),i=pr(e),o=Pv();return o?.isInvalid?Ae.createElement(qee,{value:n},Ae.createElement($e.div,{...o?.getErrorMessageProps(i,t),className:Dv("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Kee.displayName="FormErrorMessage";var Xee=qe((e,t)=>{const n=Zee(),i=Pv();if(!i?.isInvalid)return null;const o=Dv("chakra-form__error-icon",e.className);return C(ms,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:C("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"},void 0,!1,{fileName:I7,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:I7,lineNumber:238,columnNumber:26},globalThis)});Xee.displayName="FormErrorIcon";var sm=qe(function(t,n){const i=po("FormLabel",t),o=pr(t),{className:u,children:c,requiredIndicator:p=C(tF,{},void 0,!1,{fileName:I7,lineNumber:264,columnNumber:41},this),optionalIndicator:h=null,...v}=o,b=Pv(),x=b?.getLabelProps(v,n)??{ref:n,...v};return Ae.createElement($e.label,{...x,className:Dv("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i}},c,b?.isRequired?p:h)});sm.displayName="FormLabel";var tF=qe(function(t,n){const i=Pv(),o=eF();if(!i?.isRequired)return null;const u=Dv("chakra-form__required-indicator",t.className);return Ae.createElement($e.span,{...i?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:u})});tF.displayName="RequiredIndicator";function oS(e,t){const n=k.exports.useRef(!1),i=k.exports.useRef(!1);k.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),k.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var A_={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Qee=$e("span",{baseStyle:A_});Qee.displayName="VisuallyHidden";var Jee=$e("input",{baseStyle:A_});Jee.displayName="VisuallyHiddenInput";var $L=!1,e3=null,yv=!1,F7=new Set,ete=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function tte(e){return!(e.metaKey||!ete&&e.altKey||e.ctrlKey)}function k_(e,t){F7.forEach(n=>n(e,t))}function jL(e){yv=!0,tte(e)&&(e3="keyboard",k_("keyboard",e))}function zh(e){e3="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(yv=!0,k_("pointer",e))}function nte(e){e.target===window||e.target===document||(yv||(e3="keyboard",k_("keyboard",e)),yv=!1)}function rte(){yv=!1}function VL(){return e3!=="pointer"}function ite(){if(typeof window>"u"||$L)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){yv=!0,e.apply(this,n)},document.addEventListener("keydown",jL,!0),document.addEventListener("keyup",jL,!0),window.addEventListener("focus",nte,!0),window.addEventListener("blur",rte,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",zh,!0),document.addEventListener("pointermove",zh,!0),document.addEventListener("pointerup",zh,!0)):(document.addEventListener("mousedown",zh,!0),document.addEventListener("mousemove",zh,!0),document.addEventListener("mouseup",zh,!0)),$L=!0}function ate(e){ite(),e(VL());const t=()=>e(VL());return F7.add(t),()=>{F7.delete(t)}}var Bl="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[xye,ote]=Tr({name:"CheckboxGroupContext",strict:!1}),ste=(...e)=>e.filter(Boolean).join(" "),lo=e=>e?"":void 0;function Gs(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function lte(...e){return function(n){e.forEach(i=>{i?.(n)})}}function ute(e){const t=el;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var nF=ute($e.svg);function cte(e){return C(nF,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:C("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:Bl,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:Bl,lineNumber:116,columnNumber:26},this)}function fte(e){return C(nF,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:C("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:Bl,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:Bl,lineNumber:142,columnNumber:26},this)}function dte({open:e,children:t}){return C(Fc,{initial:!1,children:e&&Ae.createElement(el.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)},void 0,!1,{fileName:Bl,lineNumber:169,columnNumber:26},this)}function pte(e){const{isIndeterminate:t,isChecked:n,...i}=e;return C(dte,{open:n||t,children:C(t?fte:cte,{...i},void 0,!1,{fileName:Bl,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:Bl,lineNumber:190,columnNumber:26},this)}function mte(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function rF(e={}){const t=R_(e),{isDisabled:n,isReadOnly:i,isRequired:o,isInvalid:u,id:c,onBlur:p,onFocus:h,"aria-describedby":v}=t,{defaultChecked:b,isChecked:x,isFocusable:N,onChange:_,isIndeterminate:T,name:A,value:M,tabIndex:z=void 0,"aria-label":P,"aria-labelledby":I,"aria-invalid":F,...$}=e,Y=mte($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),Z=Ha(_),ue=Ha(p),ce=Ha(h),[le,ge]=k.exports.useState(!1),[Ye,re]=k.exports.useState(!1),[ie,Ce]=k.exports.useState(!1),[xe,K]=k.exports.useState(!1);k.exports.useEffect(()=>ate(ge),[]);const be=k.exports.useRef(null),[Ne,me]=k.exports.useState(!0),[we,De]=k.exports.useState(!!b),Pe=x!==void 0,Ze=Pe?x:we,it=k.exports.useCallback(ye=>{if(i||n){ye.preventDefault();return}Pe||De(Ze?ye.target.checked:T?!0:ye.target.checked),Z?.(ye)},[i,n,Ze,Pe,T,Z]);Eu(()=>{be.current&&(be.current.indeterminate=Boolean(T))},[T]),oS(()=>{n&&re(!1)},[n,re]),Eu(()=>{const ye=be.current;!ye?.form||(ye.form.onreset=()=>{De(!!b)})},[]);const bt=n&&!N,Wt=k.exports.useCallback(ye=>{ye.key===" "&&K(!0)},[K]),Xe=k.exports.useCallback(ye=>{ye.key===" "&&K(!1)},[K]);Eu(()=>{if(!be.current)return;be.current.checked!==Ze&&De(be.current.checked)},[be.current]);const ct=k.exports.useCallback((ye={},et=null)=>{const _t=lt=>{Ye&&lt.preventDefault(),K(!0)};return{...ye,ref:et,"data-active":lo(xe),"data-hover":lo(ie),"data-checked":lo(Ze),"data-focus":lo(Ye),"data-focus-visible":lo(Ye&&le),"data-indeterminate":lo(T),"data-disabled":lo(n),"data-invalid":lo(u),"data-readonly":lo(i),"aria-hidden":!0,onMouseDown:Gs(ye.onMouseDown,_t),onMouseUp:Gs(ye.onMouseUp,()=>K(!1)),onMouseEnter:Gs(ye.onMouseEnter,()=>Ce(!0)),onMouseLeave:Gs(ye.onMouseLeave,()=>Ce(!1))}},[xe,Ze,n,Ye,le,ie,T,u,i]),wt=k.exports.useCallback((ye={},et=null)=>({...Y,...ye,ref:qr(et,_t=>{!_t||me(_t.tagName==="LABEL")}),onClick:Gs(ye.onClick,()=>{var _t;Ne||((_t=be.current)==null||_t.click(),requestAnimationFrame(()=>{var lt;(lt=be.current)==null||lt.focus()}))}),"data-disabled":lo(n),"data-checked":lo(Ze),"data-invalid":lo(u)}),[Y,n,Ze,u,Ne]),Bt=k.exports.useCallback((ye={},et=null)=>({...ye,ref:qr(be,et),type:"checkbox",name:A,value:M,id:c,tabIndex:z,onChange:Gs(ye.onChange,it),onBlur:Gs(ye.onBlur,ue,()=>re(!1)),onFocus:Gs(ye.onFocus,ce,()=>re(!0)),onKeyDown:Gs(ye.onKeyDown,Wt),onKeyUp:Gs(ye.onKeyUp,Xe),required:o,checked:Ze,disabled:bt,readOnly:i,"aria-label":P,"aria-labelledby":I,"aria-invalid":F?Boolean(F):u,"aria-describedby":v,"aria-disabled":n,style:A_}),[A,M,c,it,ue,ce,Wt,Xe,o,Ze,bt,i,P,I,F,u,v,n,z]),Ge=k.exports.useCallback((ye={},et=null)=>({...ye,ref:et,onMouseDown:Gs(ye.onMouseDown,HL),onTouchStart:Gs(ye.onTouchStart,HL),"data-disabled":lo(n),"data-checked":lo(Ze),"data-invalid":lo(u)}),[Ze,n,u]);return{state:{isInvalid:u,isFocused:Ye,isChecked:Ze,isActive:xe,isHovered:ie,isIndeterminate:T,isDisabled:n,isReadOnly:i,isRequired:o},getRootProps:wt,getCheckboxProps:ct,getInputProps:Bt,getLabelProps:Ge,htmlProps:Y}}function HL(e){e.preventDefault(),e.stopPropagation()}var hte=$e("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),vte=$e("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),gte=qe(function(t,n){const i=ote(),o={...i,...t},u=mo("Checkbox",o),c=pr(t),{spacing:p="0.5rem",className:h,children:v,iconColor:b,iconSize:x,icon:N=C(pte,{},void 0,!1,{fileName:Bl,lineNumber:505,columnNumber:28},this),isChecked:_,isDisabled:T=i?.isDisabled,onChange:A,inputProps:M,...z}=c;let P=_;i?.value&&c.value&&(P=i.value.includes(c.value));let I=A;i?.onChange&&c.value&&(I=lte(i.onChange,A));const{state:F,getInputProps:$,getCheckboxProps:Y,getLabelProps:Z,getRootProps:ue}=rF({...z,isDisabled:T,isChecked:P,onChange:I}),ce=k.exports.useMemo(()=>({opacity:F.isChecked||F.isIndeterminate?1:0,transform:F.isChecked||F.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:x,color:b,...u.icon}),[b,x,F.isChecked,F.isIndeterminate,u.icon]),le=k.exports.cloneElement(N,{__css:ce,isIndeterminate:F.isIndeterminate,isChecked:F.isChecked});return C(vte,{__css:u.container,className:ste("chakra-checkbox",h),...ue(),children:[C("input",{className:"chakra-checkbox__input",...$(M,n)},void 0,!1,{fileName:Bl,lineNumber:548,columnNumber:22},this),C(hte,{__css:u.control,className:"chakra-checkbox__control",...Y(),children:le},void 0,!1,{fileName:Bl,lineNumber:551,columnNumber:23},this),v&&Ae.createElement($e.span,{className:"chakra-checkbox__label",...Z(),__css:{marginStart:p,...u.label}},v)]},void 0,!0,{fileName:Bl,lineNumber:544,columnNumber:26},this)});gte.displayName="Checkbox";var z7="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function bte(e){return C(ms,{focusable:"false","aria-hidden":!0,...e,children:C("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"},void 0,!1,{fileName:z7,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:z7,lineNumber:13,columnNumber:26},this)}var t3=qe(function(t,n){const i=po("CloseButton",t),{children:o,isDisabled:u,__css:c,...p}=pr(t),h={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Ae.createElement($e.button,{type:"button","aria-label":"Close",ref:n,disabled:u,__css:{...h,...i,...c},...p},o||C(bte,{width:"1em",height:"1em"},void 0,!1,{fileName:z7,lineNumber:43,columnNumber:34},this))});t3.displayName="CloseButton";function yte(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function iF(e,t){let n=yte(e);const i=10**(t??10);return n=Math.round(n*i)/i,t?n.toFixed(t):n.toString()}function WL(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function Ste(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function xte(e={}){const{onChange:t,precision:n,defaultValue:i,value:o,step:u=1,min:c=Number.MIN_SAFE_INTEGER,max:p=Number.MAX_SAFE_INTEGER,keepWithinRange:h=!0}=e,v=Ha(t),[b,x]=k.exports.useState(()=>i==null?"":e6(i,u,n)??""),N=typeof o<"u",_=N?o:b,T=aF(Wf(_),u),A=n??T,M=k.exports.useCallback(le=>{le!==_&&(N||x(le.toString()),v?.(le.toString(),Wf(le)))},[v,N,_]),z=k.exports.useCallback(le=>{let ge=le;return h&&(ge=Ste(ge,c,p)),iF(ge,A)},[A,h,p,c]),P=k.exports.useCallback((le=u)=>{let ge;_===""?ge=Wf(le):ge=Wf(_)+le,ge=z(ge),M(ge)},[z,u,M,_]),I=k.exports.useCallback((le=u)=>{let ge;_===""?ge=Wf(-le):ge=Wf(_)-le,ge=z(ge),M(ge)},[z,u,M,_]),F=k.exports.useCallback(()=>{let le;i==null?le="":le=e6(i,u,n)??c,M(le)},[i,n,u,M,c]),$=k.exports.useCallback(le=>{const ge=e6(le,u,A)??c;M(ge)},[A,u,M,c]),Y=Wf(_);return{isOutOfRange:Y>p||Y<c,isAtMax:Y===p,isAtMin:Y===c,precision:A,value:_,valueAsNumber:Y,update:M,reset:F,increment:P,decrement:I,clamp:z,cast:$,setValue:x}}function Wf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function aF(e,t){return Math.max(WL(t),WL(e))}function e6(e,t,n){const i=Wf(e);if(Number.isNaN(i))return;const o=aF(i,t);return iF(i,n??o)}var oF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",sF=`
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100lvh) {
:root {
--chakra-vh: 100lvh;
}
}
`,Cte=()=>C(ab,{styles:sF},void 0,!1,{fileName:oF,lineNumber:29,columnNumber:41},globalThis),Nte=()=>C(ab,{styles:`
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
img,
video {
max-width: 100%;
height: auto;
}
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
outline: none;
box-shadow: none;
}
select::-ms-expand {
display: none;
}
${sF}
`},void 0,!1,{fileName:oF,lineNumber:32,columnNumber:38},globalThis);function B7(e,t,n,i){const o=Ha(n);return k.exports.useEffect(()=>{const u=typeof e=="function"?e():e??document;if(!(!n||!u))return u.addEventListener(t,o,i),()=>{u.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{const u=typeof e=="function"?e():e??document;u?.removeEventListener(t,o,i)}}var wte=lb?k.exports.useLayoutEffect:k.exports.useEffect;function U7(e,t=[]){const n=k.exports.useRef(e);return wte(()=>{n.current=e}),k.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function L_(e,t,n,i){const o=U7(t);return k.exports.useEffect(()=>{const u=H4(n)??document;if(!!t)return u.addEventListener(e,o,i),()=>{u.removeEventListener(e,o,i)}},[e,n,i,o,t]),()=>{(H4(n)??document).removeEventListener(e,o,i)}}function _te(e){const{isOpen:t,ref:n}=e,[i,o]=k.exports.useState(t),[u,c]=k.exports.useState(!1);return k.exports.useEffect(()=>{u||(o(t),c(!0))},[t,u,i]),L_("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!i),onComplete(){var h;const v=YY(n.current),b=new v.CustomEvent("animationend",{bubbles:!0});(h=n.current)==null||h.dispatchEvent(b)}}}function Ete(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Tte(e,t){const n=k.exports.useId();return k.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function sS(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,u=U7(n),c=U7(t),[p,h]=k.exports.useState(e.defaultIsOpen||!1),[v,b]=Ete(i,p),x=Tte(o,"disclosure"),N=k.exports.useCallback(()=>{v||h(!1),c?.()},[v,c]),_=k.exports.useCallback(()=>{v||h(!0),u?.()},[v,u]),T=k.exports.useCallback(()=>{(b?N:_)()},[b,_,N]);return{isOpen:!!b,onOpen:_,onClose:N,onToggle:T,isControlled:v,getButtonProps:(A={})=>({...A,"aria-expanded":b,"aria-controls":x,onClick:oq(A.onClick,T)}),getDisclosureProps:(A={})=>({...A,hidden:!b,id:x})}}var lF=(e,t)=>{const n=k.exports.useRef(!1),i=k.exports.useRef(!1);k.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),k.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Rte(e){const t=e.current;if(!t)return!1;const n=KY(t);return!n||K8(t,n)?!1:!!tq(n)}function Ate(e,t){const{shouldFocus:n,visible:i,focusRef:o}=t,u=n&&!i;lF(()=>{if(!u||Rte(e))return;const c=o?.current||e.current;c&&W4(c,{nextTick:!0})},[u,e,o])}function kte(e,t,n,i){return L_(_q(t),yq(n,t==="pointerdown"),e,i)}function Lte(e){const{ref:t,elements:n,enabled:i}=e,o=Tq("Safari");kte(()=>sb(t.current),"pointerdown",c=>{if(!o||!i)return;const p=c.target,v=(n??[t]).some(b=>{const x=JD(b)?b.current:b;return K8(x,p)});!iP(p)&&v&&(c.preventDefault(),W4(p))})}var Ote={preventScroll:!0,shouldFocus:!1};function Mte(e,t=Ote){const{focusRef:n,preventScroll:i,shouldFocus:o,visible:u}=t,c=JD(e)?e.current:e,p=o&&u,h=k.exports.useCallback(()=>{if(!(!c||!p)&&!K8(c,document.activeElement))if(n?.current)W4(n.current,{preventScroll:i,nextTick:!0});else{const v=aq(c);v.length>0&&W4(v[0],{preventScroll:i,nextTick:!0})}},[p,i,c,n]);lF(()=>{h()},[h]),L_("transitionend",h,c)}function O_(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var lm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",M_=qe(function(t,n){const{htmlSize:i,...o}=t,u=mo("Input",o),c=pr(o),p=T_(c),h=Kr("chakra-input",t.className);return Ae.createElement($e.input,{size:i,...p,__css:u.field,ref:n,className:h})});M_.displayName="Input";M_.id="Input";var[Dte,uF]=Tr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Pte=qe(function(t,n){const i=mo("Input",t),{children:o,className:u,...c}=pr(t),p=Kr("chakra-input__group",u),h={},v=QS(o),b=i.field;v.forEach(N=>{!i||(b&&N.type.id==="InputLeftElement"&&(h.paddingStart=b.height??b.h),b&&N.type.id==="InputRightElement"&&(h.paddingEnd=b.height??b.h),N.type.id==="InputRightAddon"&&(h.borderEndRadius=0),N.type.id==="InputLeftAddon"&&(h.borderStartRadius=0))});const x=v.map(N=>{var _,T;const A=O_({size:((_=N.props)==null?void 0:_.size)||t.size,variant:((T=N.props)==null?void 0:T.variant)||t.variant});return N.type.id!=="Input"?k.exports.cloneElement(N,A):k.exports.cloneElement(N,Object.assign(A,h,N.props))});return Ae.createElement($e.div,{className:p,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...c},C(Dte,{value:i,children:x},void 0,!1,{fileName:lm,lineNumber:90,columnNumber:22},this))});Pte.displayName="InputGroup";var Ite={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Fte=$e("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),D_=qe(function(t,n){const{placement:i="left",...o}=t,u=Ite[i]??{},c=uF();return C(Fte,{ref:n,...o,__css:{...c.addon,...u}},void 0,!1,{fileName:lm,lineNumber:122,columnNumber:26},this)});D_.displayName="InputAddon";var cF=qe(function(t,n){return C(D_,{ref:n,placement:"left",...t,className:Kr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:lm,lineNumber:133,columnNumber:26},this)});cF.displayName="InputLeftAddon";cF.id="InputLeftAddon";var fF=qe(function(t,n){return C(D_,{ref:n,placement:"right",...t,className:Kr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:lm,lineNumber:143,columnNumber:26},this)});fF.displayName="InputRightAddon";fF.id="InputRightAddon";var zte=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),n3=qe(function(t,n){const{placement:i="left",...o}=t,u=uF(),c=u.field,h={[i==="left"?"insetStart":"insetEnd"]:"0",width:c?.height??c?.h,height:c?.height??c?.h,fontSize:c?.fontSize,...u.element};return C(zte,{ref:n,__css:h,...o},void 0,!1,{fileName:lm,lineNumber:181,columnNumber:26},this)});n3.id="InputElement";n3.displayName="InputElement";var dF=qe(function(t,n){const{className:i,...o}=t,u=Kr("chakra-input__left-element",i);return C(n3,{ref:n,placement:"left",className:u,...o},void 0,!1,{fileName:lm,lineNumber:192,columnNumber:26},this)});dF.id="InputLeftElement";dF.displayName="InputLeftElement";var pF=qe(function(t,n){const{className:i,...o}=t,u=Kr("chakra-input__right-element",i);return C(n3,{ref:n,placement:"right",className:u,...o},void 0,!1,{fileName:lm,lineNumber:204,columnNumber:26},this)});pF.id="InputRightElement";pF.displayName="InputRightElement";function Bte(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function ad(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Bte(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):e!=null?t(e):null}var Ks="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",Ute=qe(function(e,t){const{ratio:n=4/3,children:i,className:o,...u}=e,c=k.exports.Children.only(i),p=Kr("chakra-aspect-ratio",o);return Ae.createElement($e.div,{ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:ad(n,h=>`${1/h*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...u},c)});Ute.displayName="AspectRatio";var $te=qe(function(t,n){const i=po("Badge",t),{className:o,...u}=pr(t);return Ae.createElement($e.span,{ref:n,className:Kr("chakra-badge",t.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});$te.displayName="Badge";var Xs=$e("div");Xs.displayName="Box";var mF=qe(function(t,n){const{size:i,centerContent:o=!0,...u}=t;return C(Xs,{ref:n,boxSize:i,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...u},void 0,!1,{fileName:Ks,lineNumber:84,columnNumber:26},this)});mF.displayName="Square";var jte=qe(function(t,n){const{size:i,...o}=t;return C(mF,{size:i,ref:n,borderRadius:"9999px",...o},void 0,!1,{fileName:Ks,lineNumber:98,columnNumber:26},this)});jte.displayName="Circle";var hF=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});hF.displayName="Center";var Vte={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};qe(function(t,n){const{axis:i="both",...o}=t;return Ae.createElement($e.div,{ref:n,__css:Vte[i],...o,position:"absolute"})});var Hte=qe(function(t,n){const i=po("Code",t),{className:o,...u}=pr(t);return Ae.createElement($e.code,{ref:n,className:Kr("chakra-code",t.className),...u,__css:{display:"inline-block",...i}})});Hte.displayName="Code";var Wte=qe(function(t,n){const{className:i,centerContent:o,...u}=pr(t),c=po("Container",t);return Ae.createElement($e.div,{ref:n,className:Kr("chakra-container",i),...u,__css:{...c,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Wte.displayName="Container";var Gte=qe(function(t,n){const{borderLeftWidth:i,borderBottomWidth:o,borderTopWidth:u,borderRightWidth:c,borderWidth:p,borderStyle:h,borderColor:v,...b}=po("Divider",t),{className:x,orientation:N="horizontal",__css:_,...T}=pr(t),A={vertical:{borderLeftWidth:i||c||p||"1px",height:"100%"},horizontal:{borderBottomWidth:o||u||p||"1px",width:"100%"}};return Ae.createElement($e.hr,{ref:n,"aria-orientation":N,...T,__css:{...b,border:"0",borderColor:v,borderStyle:h,...A[N],..._},className:Kr("chakra-divider",x)})});Gte.displayName="Divider";var Sr=qe(function(t,n){const{direction:i,align:o,justify:u,wrap:c,basis:p,grow:h,shrink:v,...b}=t,x={display:"flex",flexDirection:i,alignItems:o,justifyContent:u,flexWrap:c,flexBasis:p,flexGrow:h,flexShrink:v};return Ae.createElement($e.div,{ref:n,__css:x,...b})});Sr.displayName="Flex";var vF=qe(function(t,n){const{templateAreas:i,gap:o,rowGap:u,columnGap:c,column:p,row:h,autoFlow:v,autoRows:b,templateRows:x,autoColumns:N,templateColumns:_,...T}=t,A={display:"grid",gridTemplateAreas:i,gridGap:o,gridRowGap:u,gridColumnGap:c,gridAutoColumns:N,gridColumn:p,gridRow:h,gridAutoFlow:v,gridAutoRows:b,gridTemplateRows:x,gridTemplateColumns:_};return Ae.createElement($e.div,{ref:n,__css:A,...T})});vF.displayName="Grid";function GL(e){return ad(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Yte=qe(function(t,n){const{area:i,colSpan:o,colStart:u,colEnd:c,rowEnd:p,rowSpan:h,rowStart:v,...b}=t,x=O_({gridArea:i,gridColumn:GL(o),gridRow:GL(h),gridColumnStart:u,gridColumnEnd:c,gridRowStart:v,gridRowEnd:p});return Ae.createElement($e.div,{ref:n,__css:x,...b})});Yte.displayName="GridItem";var P_=qe(function(t,n){const i=po("Heading",t),{className:o,...u}=pr(t);return Ae.createElement($e.h2,{ref:n,className:Kr("chakra-heading",t.className),...u,__css:i})});P_.displayName="Heading";qe(function(t,n){const i=po("Mark",t),o=pr(t);return C(Xs,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:Ks,lineNumber:399,columnNumber:26},this)});var qte=qe(function(t,n){const i=po("Kbd",t),{className:o,...u}=pr(t);return Ae.createElement($e.kbd,{ref:n,className:Kr("chakra-kbd",o),...u,__css:{fontFamily:"mono",...i}})});qte.displayName="Kbd";var cv=qe(function(t,n){const i=po("Link",t),{className:o,isExternal:u,...c}=pr(t);return Ae.createElement($e.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:n,className:Kr("chakra-link",o),...c,__css:i})});cv.displayName="Link";qe(function(t,n){const{isExternal:i,target:o,rel:u,className:c,...p}=t;return Ae.createElement($e.a,{...p,ref:n,className:Kr("chakra-linkbox__overlay",c),rel:i?"noopener noreferrer":u,target:i?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});qe(function(t,n){const{className:i,...o}=t;return Ae.createElement($e.div,{ref:n,position:"relative",...o,className:Kr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[Zte,gF]=Tr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),I_=qe(function(t,n){const i=mo("List",t),{children:o,styleType:u="none",stylePosition:c,spacing:p,...h}=pr(t),v=QS(o),x=p?{["& > *:not(style) ~ *:not(style)"]:{mt:p}}:{};return Ae.createElement(Zte,{value:i},Ae.createElement($e.ul,{ref:n,listStyleType:u,listStylePosition:c,role:"list",__css:{...i.container,...x},...h},v))});I_.displayName="List";var Kte=qe((e,t)=>{const{as:n,...i}=e;return C(I_,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:Ks,lineNumber:550,columnNumber:26},globalThis)});Kte.displayName="OrderedList";var Xte=qe(function(t,n){const{as:i,...o}=t;return C(I_,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o},void 0,!1,{fileName:Ks,lineNumber:561,columnNumber:26},this)});Xte.displayName="UnorderedList";var Qte=qe(function(t,n){const i=gF();return Ae.createElement($e.li,{ref:n,...t,__css:i.item})});Qte.displayName="ListItem";var Jte=qe(function(t,n){const i=gF();return C(ms,{ref:n,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:Ks,lineNumber:581,columnNumber:26},this)});Jte.displayName="ListIcon";var ene=qe(function(t,n){const{columns:i,spacingX:o,spacingY:u,spacing:c,minChildWidth:p,...h}=t,v=PS(),b=p?nne(p,v):rne(i);return C(vF,{ref:n,gap:c,columnGap:o,rowGap:u,templateColumns:b,...h},void 0,!1,{fileName:Ks,lineNumber:601,columnNumber:26},this)});ene.displayName="SimpleGrid";function tne(e){return typeof e=="number"?`${e}px`:e}function nne(e,t){return ad(e,n=>{const i=Vq("sizes",n,tne(n))(t);return n===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function rne(e){return ad(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var ine=$e("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});ine.displayName="Spacer";var $7="& > *:not(style) ~ *:not(style)";function ane(e){const{spacing:t,direction:n}=e,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[$7]:ad(n,o=>i[o])}}function one(e){const{spacing:t,direction:n}=e,i={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":ad(n,o=>i[o])}}var bF=e=>Ae.createElement($e.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bF.displayName="StackItem";var F_=qe((e,t)=>{const{isInline:n,direction:i,align:o,justify:u,spacing:c="0.5rem",wrap:p,children:h,divider:v,className:b,shouldWrapChildren:x,...N}=e,_=n?"row":i??"column",T=k.exports.useMemo(()=>ane({direction:_,spacing:c}),[_,c]),A=k.exports.useMemo(()=>one({spacing:c,direction:_}),[c,_]),M=!!v,z=!x&&!M,P=QS(h),I=z?P:P.map(($,Y)=>{const Z=typeof $.key<"u"?$.key:Y,ue=Y+1===P.length,le=x?C(bF,{children:$},Z,!1,{fileName:Ks,lineNumber:749,columnNumber:42},globalThis):$;if(!M)return le;const ge=k.exports.cloneElement(v,{__css:A}),Ye=ue?null:ge;return C(k.exports.Fragment,{children:[le,Ye]},Z,!0,{fileName:Ks,lineNumber:759,columnNumber:28},globalThis)}),F=Kr("chakra-stack",b);return Ae.createElement($e.div,{ref:t,display:"flex",alignItems:o,justifyContent:u,flexDirection:T.flexDirection,flexWrap:p,className:F,__css:M?{}:{[$7]:T[$7]},...N},I)});F_.displayName="Stack";var sne=qe((e,t)=>C(F_,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:Ks,lineNumber:779,columnNumber:59},globalThis));sne.displayName="HStack";var lne=qe((e,t)=>C(F_,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:Ks,lineNumber:805,columnNumber:59},globalThis));lne.displayName="VStack";var Oo=qe(function(t,n){const i=po("Text",t),{className:o,align:u,decoration:c,casing:p,...h}=pr(t),v=O_({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Ae.createElement($e.p,{ref:n,className:Kr("chakra-text",t.className),...v,...h,__css:i})});Oo.displayName="Text";function YL(e){return typeof e=="number"?`${e}px`:e}var une=qe(function(t,n){const{spacing:i="0.5rem",spacingX:o,spacingY:u,children:c,justify:p,direction:h,align:v,className:b,shouldWrapChildren:x,...N}=t,_=k.exports.useMemo(()=>{const{spacingX:A=i,spacingY:M=i}={spacingX:o,spacingY:u};return{"--chakra-wrap-x-spacing":z=>ad(A,P=>YL(t7("space",P)(z))),"--chakra-wrap-y-spacing":z=>ad(M,P=>YL(t7("space",P)(z))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:p,alignItems:v,flexDirection:h,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[i,o,u,p,v,h]),T=x?k.exports.Children.map(c,(A,M)=>C(yF,{children:A},M,!1,{fileName:Ks,lineNumber:888,columnNumber:107},this)):c;return Ae.createElement($e.div,{ref:n,className:Kr("chakra-wrap",b),overflow:"hidden",...N},Ae.createElement($e.ul,{className:"chakra-wrap__list",__css:_},T))});une.displayName="Wrap";var yF=qe(function(t,n){const{className:i,...o}=t;return Ae.createElement($e.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Kr("chakra-wrap__listitem",i),...o})});yF.displayName="WrapItem";var qL="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",cne={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},SF=cne,Bh=()=>{},fne={document:SF,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Bh,removeEventListener:Bh,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Bh,removeListener:Bh}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:Bh,setInterval:()=>0,clearInterval:Bh},dne=fne,pne={window:dne,document:SF},xF=typeof window<"u"?{window,document}:pne,CF=k.exports.createContext(xF);CF.displayName="EnvironmentContext";function NF(e){const{children:t,environment:n}=e,[i,o]=k.exports.useState(null),[u,c]=k.exports.useState(!1);k.exports.useEffect(()=>c(!0),[]);const p=k.exports.useMemo(()=>{if(n)return n;const h=i?.ownerDocument,v=i?.ownerDocument.defaultView;return h?{document:h,window:v}:xF},[i,n]);return C(CF.Provider,{value:p,children:[t,!n&&u&&C("span",{id:"__chakra_env",hidden:!0,ref:h=>{k.exports.startTransition(()=>{h&&o(h)})}},void 0,!1,{fileName:qL,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:qL,lineNumber:134,columnNumber:26},this)}NF.displayName="EnvironmentProvider";var mne=e=>e?"":void 0;function hne(){const e=k.exports.useRef(new Map),t=e.current,n=k.exports.useCallback((o,u,c,p)=>{e.current.set(c,{type:u,el:o,options:p}),o.addEventListener(u,c,p)},[]),i=k.exports.useCallback((o,u,c,p)=>{o.removeEventListener(u,c,p),e.current.delete(c)},[]);return k.exports.useEffect(()=>()=>{t.forEach((o,u)=>{i(o.el,o.type,u,o.options)})},[i,t]),{add:n,remove:i}}function t6(e){const t=e.target,{tagName:n,isContentEditable:i}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&i!==!0}function vne(e={}){const{ref:t,isDisabled:n,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:u=!0,onMouseDown:c,onMouseUp:p,onClick:h,onKeyDown:v,onKeyUp:b,tabIndex:x,onMouseOver:N,onMouseLeave:_,...T}=e,[A,M]=k.exports.useState(!0),[z,P]=k.exports.useState(!1),I=hne(),F=K=>{!K||K.tagName!=="BUTTON"&&M(!1)},$=A?x:x||0,Y=n&&!i,Z=k.exports.useCallback(K=>{if(n){K.stopPropagation(),K.preventDefault();return}K.currentTarget.focus(),h?.(K)},[n,h]),ue=k.exports.useCallback(K=>{z&&t6(K)&&(K.preventDefault(),K.stopPropagation(),P(!1),I.remove(document,"keyup",ue,!1))},[z,I]),ce=k.exports.useCallback(K=>{if(v?.(K),n||K.defaultPrevented||K.metaKey||!t6(K.nativeEvent)||A)return;const be=o&&K.key==="Enter";u&&K.key===" "&&(K.preventDefault(),P(!0)),be&&(K.preventDefault(),K.currentTarget.click()),I.add(document,"keyup",ue,!1)},[n,A,v,o,u,I,ue]),le=k.exports.useCallback(K=>{if(b?.(K),n||K.defaultPrevented||K.metaKey||!t6(K.nativeEvent)||A)return;u&&K.key===" "&&(K.preventDefault(),P(!1),K.currentTarget.click())},[u,A,n,b]),ge=k.exports.useCallback(K=>{K.button===0&&(P(!1),I.remove(document,"mouseup",ge,!1))},[I]),Ye=k.exports.useCallback(K=>{if(K.button!==0)return;if(n){K.stopPropagation(),K.preventDefault();return}A||P(!0),K.currentTarget.focus({preventScroll:!0}),I.add(document,"mouseup",ge,!1),c?.(K)},[n,A,c,I,ge]),re=k.exports.useCallback(K=>{K.button===0&&(A||P(!1),p?.(K))},[p,A]),ie=k.exports.useCallback(K=>{if(n){K.preventDefault();return}N?.(K)},[n,N]),Ce=k.exports.useCallback(K=>{z&&(K.preventDefault(),P(!1)),_?.(K)},[z,_]),xe=qr(t,F);return A?{...T,ref:xe,type:"button","aria-disabled":Y?void 0:n,disabled:Y,onClick:Z,onMouseDown:c,onMouseUp:p,onKeyUp:b,onKeyDown:v,onMouseOver:N,onMouseLeave:_}:{...T,ref:xe,role:"button","data-active":mne(z),"aria-disabled":n?"true":void 0,tabIndex:Y?void 0:$,onClick:Z,onMouseDown:Ye,onMouseUp:re,onKeyUp:le,onKeyDown:ce,onMouseOver:ie,onMouseLeave:Ce}}function gne(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function bne(e){if(!gne(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var yne=e=>e.hasAttribute("tabindex");function Sne(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function wF(e){return e.parentElement&&wF(e.parentElement)?!0:e.hidden}function xne(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function Cne(e){if(!bne(e)||wF(e)||Sne(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in i?i[t]():xne(e)?!0:yne(e)}var Nne=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],wne=Nne.join(),_ne=e=>e.offsetWidth>0&&e.offsetHeight>0;function Ene(e){const t=Array.from(e.querySelectorAll(wne));return t.unshift(e),t.filter(n=>Cne(n)&&_ne(n))}var Do="top",Qs="bottom",Js="right",Po="left",r3="auto",bb=[Do,Qs,Js,Po],Sv="start",Wg="end",Tne="clippingParents",_F="viewport",ng="popper",Rne="reference",ZL=bb.reduce(function(e,t){return e.concat([t+"-"+Sv,t+"-"+Wg])},[]),EF=[].concat(bb,[r3]).reduce(function(e,t){return e.concat([t,t+"-"+Sv,t+"-"+Wg])},[]),Ane="beforeRead",kne="read",Lne="afterRead",One="beforeMain",Mne="main",Dne="afterMain",Pne="beforeWrite",Ine="write",Fne="afterWrite",j7=[Ane,kne,Lne,One,Mne,Dne,Pne,Ine,Fne];function Pu(e){return e?(e.nodeName||"").toLowerCase():null}function tl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nm(e){var t=tl(e).Element;return e instanceof t||e instanceof Element}function fs(e){var t=tl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function z_(e){if(typeof ShadowRoot>"u")return!1;var t=tl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},u=t.elements[n];!fs(u)||!Pu(u)||(Object.assign(u.style,i),Object.keys(o).forEach(function(c){var p=o[c];p===!1?u.removeAttribute(c):u.setAttribute(c,p===!0?"":p)}))})}function Bne(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],u=t.attributes[i]||{},c=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),p=c.reduce(function(h,v){return h[v]="",h},{});!fs(o)||!Pu(o)||(Object.assign(o.style,p),Object.keys(u).forEach(function(h){o.removeAttribute(h)}))})}}const Une={name:"applyStyles",enabled:!0,phase:"write",fn:zne,effect:Bne,requires:["computeStyles"]};function $l(e){return e.split("-")[0]}var Xp=Math.max,lS=Math.min,xv=Math.round;function V7(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function TF(){return!/^((?!chrome|android).)*safari/i.test(V7())}function Cv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,u=1;t&&fs(e)&&(o=e.offsetWidth>0&&xv(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&xv(i.height)/e.offsetHeight||1);var c=nm(e)?tl(e):window,p=c.visualViewport,h=!TF()&&n,v=(i.left+(h&&p?p.offsetLeft:0))/o,b=(i.top+(h&&p?p.offsetTop:0))/u,x=i.width/o,N=i.height/u;return{width:x,height:N,top:b,right:v+x,bottom:b+N,left:v,x:v,y:b}}function B_(e){var t=Cv(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function RF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&z_(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function jl(e){return tl(e).getComputedStyle(e)}function $ne(e){return["table","td","th"].indexOf(Pu(e))>=0}function dd(e){return((nm(e)?e.ownerDocument:e.document)||window.document).documentElement}function i3(e){return Pu(e)==="html"?e:e.assignedSlot||e.parentNode||(z_(e)?e.host:null)||dd(e)}function KL(e){return!fs(e)||jl(e).position==="fixed"?null:e.offsetParent}function jne(e){var t=/firefox/i.test(V7()),n=/Trident/i.test(V7());if(n&&fs(e)){var i=jl(e);if(i.position==="fixed")return null}var o=i3(e);for(z_(o)&&(o=o.host);fs(o)&&["html","body"].indexOf(Pu(o))<0;){var u=jl(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function yb(e){for(var t=tl(e),n=KL(e);n&&$ne(n)&&jl(n).position==="static";)n=KL(n);return n&&(Pu(n)==="html"||Pu(n)==="body"&&jl(n).position==="static")?t:n||jne(e)||t}function U_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _g(e,t,n){return Xp(e,lS(t,n))}function Vne(e,t,n){var i=_g(e,t,n);return i>n?n:i}function AF(){return{top:0,right:0,bottom:0,left:0}}function kF(e){return Object.assign({},AF(),e)}function LF(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Hne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,kF(typeof t!="number"?t:LF(t,bb))};function Wne(e){var t,n=e.state,i=e.name,o=e.options,u=n.elements.arrow,c=n.modifiersData.popperOffsets,p=$l(n.placement),h=U_(p),v=[Po,Js].indexOf(p)>=0,b=v?"height":"width";if(!(!u||!c)){var x=Hne(o.padding,n),N=B_(u),_=h==="y"?Do:Po,T=h==="y"?Qs:Js,A=n.rects.reference[b]+n.rects.reference[h]-c[h]-n.rects.popper[b],M=c[h]-n.rects.reference[h],z=yb(u),P=z?h==="y"?z.clientHeight||0:z.clientWidth||0:0,I=A/2-M/2,F=x[_],$=P-N[b]-x[T],Y=P/2-N[b]/2+I,Z=_g(F,Y,$),ue=h;n.modifiersData[i]=(t={},t[ue]=Z,t.centerOffset=Z-Y,t)}}function Gne(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(fs(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!RF(t.elements.popper,o)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Yne={name:"arrow",enabled:!0,phase:"main",fn:Wne,effect:Gne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nv(e){return e.split("-")[1]}var qne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zne(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:xv(t*o)/o||0,y:xv(n*o)/o||0}}function XL(e){var t,n=e.popper,i=e.popperRect,o=e.placement,u=e.variation,c=e.offsets,p=e.position,h=e.gpuAcceleration,v=e.adaptive,b=e.roundOffsets,x=e.isFixed,N=c.x,_=N===void 0?0:N,T=c.y,A=T===void 0?0:T,M=typeof b=="function"?b({x:_,y:A}):{x:_,y:A};_=M.x,A=M.y;var z=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),I=Po,F=Do,$=window;if(v){var Y=yb(n),Z="clientHeight",ue="clientWidth";if(Y===tl(n)&&(Y=dd(n),jl(Y).position!=="static"&&p==="absolute"&&(Z="scrollHeight",ue="scrollWidth")),Y=Y,o===Do||(o===Po||o===Js)&&u===Wg){F=Qs;var ce=x&&Y===$&&$.visualViewport?$.visualViewport.height:Y[Z];A-=ce-i.height,A*=h?1:-1}if(o===Po||(o===Do||o===Qs)&&u===Wg){I=Js;var le=x&&Y===$&&$.visualViewport?$.visualViewport.width:Y[ue];_-=le-i.width,_*=h?1:-1}}var ge=Object.assign({position:p},v&&qne),Ye=b===!0?Zne({x:_,y:A}):{x:_,y:A};if(_=Ye.x,A=Ye.y,h){var re;return Object.assign({},ge,(re={},re[F]=P?"0":"",re[I]=z?"0":"",re.transform=($.devicePixelRatio||1)<=1?"translate("+_+"px, "+A+"px)":"translate3d("+_+"px, "+A+"px, 0)",re))}return Object.assign({},ge,(t={},t[F]=P?A+"px":"",t[I]=z?_+"px":"",t.transform="",t))}function Kne(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,u=n.adaptive,c=u===void 0?!0:u,p=n.roundOffsets,h=p===void 0?!0:p;{var v=jl(t.elements.popper).transitionProperty||"";c&&["transform","top","right","bottom","left"].some(function(x){return v.indexOf(x)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var b={placement:$l(t.placement),variation:Nv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,XL(Object.assign({},b,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,XL(Object.assign({},b,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kne,data:{}};var G5={passive:!0};function Qne(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,u=o===void 0?!0:o,c=i.resize,p=c===void 0?!0:c,h=tl(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&v.forEach(function(b){b.addEventListener("scroll",n.update,G5)}),p&&h.addEventListener("resize",n.update,G5),function(){u&&v.forEach(function(b){b.removeEventListener("scroll",n.update,G5)}),p&&h.removeEventListener("resize",n.update,G5)}}const Jne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qne,data:{}};var ere={left:"right",right:"left",bottom:"top",top:"bottom"};function w4(e){return e.replace(/left|right|bottom|top/g,function(t){return ere[t]})}var tre={start:"end",end:"start"};function QL(e){return e.replace(/start|end/g,function(t){return tre[t]})}function $_(e){var t=tl(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function j_(e){return Cv(dd(e)).left+$_(e).scrollLeft}function nre(e,t){var n=tl(e),i=dd(e),o=n.visualViewport,u=i.clientWidth,c=i.clientHeight,p=0,h=0;if(o){u=o.width,c=o.height;var v=TF();(v||!v&&t==="fixed")&&(p=o.offsetLeft,h=o.offsetTop)}return{width:u,height:c,x:p+j_(e),y:h}}function rre(e){var t,n=dd(e),i=$_(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=Xp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Xp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-i.scrollLeft+j_(e),h=-i.scrollTop;return jl(o||n).direction==="rtl"&&(p+=Xp(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:p,y:h}}function V_(e){var t=jl(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function OF(e){return["html","body","#document"].indexOf(Pu(e))>=0?e.ownerDocument.body:fs(e)&&V_(e)?e:OF(i3(e))}function Eg(e,t){var n;t===void 0&&(t=[]);var i=OF(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),u=tl(i),c=o?[u].concat(u.visualViewport||[],V_(i)?i:[]):i,p=t.concat(c);return o?p:p.concat(Eg(i3(c)))}function H7(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ire(e,t){var n=Cv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function JL(e,t,n){return t===_F?H7(nre(e,n)):nm(t)?ire(t,n):H7(rre(dd(e)))}function are(e){var t=Eg(i3(e)),n=["absolute","fixed"].indexOf(jl(e).position)>=0,i=n&&fs(e)?yb(e):e;return nm(i)?t.filter(function(o){return nm(o)&&RF(o,i)&&Pu(o)!=="body"}):[]}function ore(e,t,n,i){var o=t==="clippingParents"?are(e):[].concat(t),u=[].concat(o,[n]),c=u[0],p=u.reduce(function(h,v){var b=JL(e,v,i);return h.top=Xp(b.top,h.top),h.right=lS(b.right,h.right),h.bottom=lS(b.bottom,h.bottom),h.left=Xp(b.left,h.left),h},JL(e,c,i));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function MF(e){var t=e.reference,n=e.element,i=e.placement,o=i?$l(i):null,u=i?Nv(i):null,c=t.x+t.width/2-n.width/2,p=t.y+t.height/2-n.height/2,h;switch(o){case Do:h={x:c,y:t.y-n.height};break;case Qs:h={x:c,y:t.y+t.height};break;case Js:h={x:t.x+t.width,y:p};break;case Po:h={x:t.x-n.width,y:p};break;default:h={x:t.x,y:t.y}}var v=o?U_(o):null;if(v!=null){var b=v==="y"?"height":"width";switch(u){case Sv:h[v]=h[v]-(t[b]/2-n[b]/2);break;case Wg:h[v]=h[v]+(t[b]/2-n[b]/2);break}}return h}function Gg(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,u=n.strategy,c=u===void 0?e.strategy:u,p=n.boundary,h=p===void 0?Tne:p,v=n.rootBoundary,b=v===void 0?_F:v,x=n.elementContext,N=x===void 0?ng:x,_=n.altBoundary,T=_===void 0?!1:_,A=n.padding,M=A===void 0?0:A,z=kF(typeof M!="number"?M:LF(M,bb)),P=N===ng?Rne:ng,I=e.rects.popper,F=e.elements[T?P:N],$=ore(nm(F)?F:F.contextElement||dd(e.elements.popper),h,b,c),Y=Cv(e.elements.reference),Z=MF({reference:Y,element:I,strategy:"absolute",placement:o}),ue=H7(Object.assign({},I,Z)),ce=N===ng?ue:Y,le={top:$.top-ce.top+z.top,bottom:ce.bottom-$.bottom+z.bottom,left:$.left-ce.left+z.left,right:ce.right-$.right+z.right},ge=e.modifiersData.offset;if(N===ng&&ge){var Ye=ge[o];Object.keys(le).forEach(function(re){var ie=[Js,Qs].indexOf(re)>=0?1:-1,Ce=[Do,Qs].indexOf(re)>=0?"y":"x";le[re]+=Ye[Ce]*ie})}return le}function sre(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,u=n.rootBoundary,c=n.padding,p=n.flipVariations,h=n.allowedAutoPlacements,v=h===void 0?EF:h,b=Nv(i),x=b?p?ZL:ZL.filter(function(T){return Nv(T)===b}):bb,N=x.filter(function(T){return v.indexOf(T)>=0});N.length===0&&(N=x,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var _=N.reduce(function(T,A){return T[A]=Gg(e,{placement:A,boundary:o,rootBoundary:u,padding:c})[$l(A)],T},{});return Object.keys(_).sort(function(T,A){return _[T]-_[A]})}function lre(e){if($l(e)===r3)return[];var t=w4(e);return[QL(e),t,QL(t)]}function ure(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,u=o===void 0?!0:o,c=n.altAxis,p=c===void 0?!0:c,h=n.fallbackPlacements,v=n.padding,b=n.boundary,x=n.rootBoundary,N=n.altBoundary,_=n.flipVariations,T=_===void 0?!0:_,A=n.allowedAutoPlacements,M=t.options.placement,z=$l(M),P=z===M,I=h||(P||!T?[w4(M)]:lre(M)),F=[M].concat(I).reduce(function(Ze,it){return Ze.concat($l(it)===r3?sre(t,{placement:it,boundary:b,rootBoundary:x,padding:v,flipVariations:T,allowedAutoPlacements:A}):it)},[]),$=t.rects.reference,Y=t.rects.popper,Z=new Map,ue=!0,ce=F[0],le=0;le<F.length;le++){var ge=F[le],Ye=$l(ge),re=Nv(ge)===Sv,ie=[Do,Qs].indexOf(Ye)>=0,Ce=ie?"width":"height",xe=Gg(t,{placement:ge,boundary:b,rootBoundary:x,altBoundary:N,padding:v}),K=ie?re?Js:Po:re?Qs:Do;$[Ce]>Y[Ce]&&(K=w4(K));var be=w4(K),Ne=[];if(u&&Ne.push(xe[Ye]<=0),p&&Ne.push(xe[K]<=0,xe[be]<=0),Ne.every(function(Ze){return Ze})){ce=ge,ue=!1;break}Z.set(ge,Ne)}if(ue)for(var me=T?3:1,we=function(it){var bt=F.find(function(Wt){var Xe=Z.get(Wt);if(Xe)return Xe.slice(0,it).every(function(ct){return ct})});if(bt)return ce=bt,"break"},De=me;De>0;De--){var Pe=we(De);if(Pe==="break")break}t.placement!==ce&&(t.modifiersData[i]._skip=!0,t.placement=ce,t.reset=!0)}}const cre={name:"flip",enabled:!0,phase:"main",fn:ure,requiresIfExists:["offset"],data:{_skip:!1}};function eO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tO(e){return[Do,Js,Qs,Po].some(function(t){return e[t]>=0})}function fre(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,c=Gg(t,{elementContext:"reference"}),p=Gg(t,{altBoundary:!0}),h=eO(c,i),v=eO(p,o,u),b=tO(h),x=tO(v);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":x})}const dre={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fre};function pre(e,t,n){var i=$l(e),o=[Po,Do].indexOf(i)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=u[0],p=u[1];return c=c||0,p=(p||0)*o,[Po,Js].indexOf(i)>=0?{x:p,y:c}:{x:c,y:p}}function mre(e){var t=e.state,n=e.options,i=e.name,o=n.offset,u=o===void 0?[0,0]:o,c=EF.reduce(function(b,x){return b[x]=pre(x,t.rects,u),b},{}),p=c[t.placement],h=p.x,v=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=h,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=c}const hre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mre};function vre(e){var t=e.state,n=e.name;t.modifiersData[n]=MF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gre={name:"popperOffsets",enabled:!0,phase:"read",fn:vre,data:{}};function bre(e){return e==="x"?"y":"x"}function yre(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,u=o===void 0?!0:o,c=n.altAxis,p=c===void 0?!1:c,h=n.boundary,v=n.rootBoundary,b=n.altBoundary,x=n.padding,N=n.tether,_=N===void 0?!0:N,T=n.tetherOffset,A=T===void 0?0:T,M=Gg(t,{boundary:h,rootBoundary:v,padding:x,altBoundary:b}),z=$l(t.placement),P=Nv(t.placement),I=!P,F=U_(z),$=bre(F),Y=t.modifiersData.popperOffsets,Z=t.rects.reference,ue=t.rects.popper,ce=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,le=typeof ce=="number"?{mainAxis:ce,altAxis:ce}:Object.assign({mainAxis:0,altAxis:0},ce),ge=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ye={x:0,y:0};if(!!Y){if(u){var re,ie=F==="y"?Do:Po,Ce=F==="y"?Qs:Js,xe=F==="y"?"height":"width",K=Y[F],be=K+M[ie],Ne=K-M[Ce],me=_?-ue[xe]/2:0,we=P===Sv?Z[xe]:ue[xe],De=P===Sv?-ue[xe]:-Z[xe],Pe=t.elements.arrow,Ze=_&&Pe?B_(Pe):{width:0,height:0},it=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AF(),bt=it[ie],Wt=it[Ce],Xe=_g(0,Z[xe],Ze[xe]),ct=I?Z[xe]/2-me-Xe-bt-le.mainAxis:we-Xe-bt-le.mainAxis,wt=I?-Z[xe]/2+me+Xe+Wt+le.mainAxis:De+Xe+Wt+le.mainAxis,Bt=t.elements.arrow&&yb(t.elements.arrow),Ge=Bt?F==="y"?Bt.clientTop||0:Bt.clientLeft||0:0,Gt=(re=ge?.[F])!=null?re:0,ye=K+ct-Gt-Ge,et=K+wt-Gt,_t=_g(_?lS(be,ye):be,K,_?Xp(Ne,et):Ne);Y[F]=_t,Ye[F]=_t-K}if(p){var lt,xn=F==="x"?Do:Po,$n=F==="x"?Qs:Js,Ft=Y[$],on=$==="y"?"height":"width",Ln=Ft+M[xn],gn=Ft-M[$n],He=[Do,Po].indexOf(z)!==-1,Je=(lt=ge?.[$])!=null?lt:0,nn=He?Ln:Ft-Z[on]-ue[on]-Je+le.altAxis,Ot=He?Ft+Z[on]+ue[on]-Je-le.altAxis:gn,Oe=_&&He?Vne(nn,Ft,Ot):_g(_?nn:Ln,Ft,_?Ot:gn);Y[$]=Oe,Ye[$]=Oe-Ft}t.modifiersData[i]=Ye}}const Sre={name:"preventOverflow",enabled:!0,phase:"main",fn:yre,requiresIfExists:["offset"]};function xre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cre(e){return e===tl(e)||!fs(e)?$_(e):xre(e)}function Nre(e){var t=e.getBoundingClientRect(),n=xv(t.width)/e.offsetWidth||1,i=xv(t.height)/e.offsetHeight||1;return n!==1||i!==1}function wre(e,t,n){n===void 0&&(n=!1);var i=fs(t),o=fs(t)&&Nre(t),u=dd(t),c=Cv(e,o,n),p={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!n)&&((Pu(t)!=="body"||V_(u))&&(p=Cre(t)),fs(t)?(h=Cv(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):u&&(h.x=j_(u))),{x:c.left+p.scrollLeft-h.x,y:c.top+p.scrollTop-h.y,width:c.width,height:c.height}}function _re(e){var t=new Map,n=new Set,i=[];e.forEach(function(u){t.set(u.name,u)});function o(u){n.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(p){if(!n.has(p)){var h=t.get(p);h&&o(h)}}),i.push(u)}return e.forEach(function(u){n.has(u.name)||o(u)}),i}function Ere(e){var t=_re(e);return j7.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function Tre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Bf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(o,u){return o.replace(/%s/,u)},e)}var Dp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Rre='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',nO=["name","enabled","phase","fn","effect","requires","options"];function Are(e){e.forEach(function(t){[].concat(Object.keys(t),nO).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Bf(Dp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Bf(Dp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":j7.indexOf(t.phase)<0&&console.error(Bf(Dp,t.name,'"phase"',"either "+j7.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Bf(Dp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Bf(Dp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Bf(Dp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Bf(Dp,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+nO.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(Bf(Rre,String(t.name),i,i))})})})}function kre(e,t){var n=new Set;return e.filter(function(i){var o=t(i);if(!n.has(o))return n.add(o),!0})}function Lre(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var rO="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ore="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",iO={placement:"bottom",modifiers:[],strategy:"absolute"};function aO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Mre(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?iO:o;return function(p,h,v){v===void 0&&(v=u);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},iO,u),modifiersData:{},elements:{reference:p,popper:h},attributes:{},styles:{}},x=[],N=!1,_={state:b,setOptions:function(z){var P=typeof z=="function"?z(b.options):z;A(),b.options=Object.assign({},u,b.options,P),b.scrollParents={reference:nm(p)?Eg(p):p.contextElement?Eg(p.contextElement):[],popper:Eg(h)};var I=Ere(Lre([].concat(i,b.options.modifiers)));b.orderedModifiers=I.filter(function(ge){return ge.enabled});{var F=kre([].concat(I,b.options.modifiers),function(ge){var Ye=ge.name;return Ye});if(Are(F),$l(b.options.placement)===r3){var $=b.orderedModifiers.find(function(ge){var Ye=ge.name;return Ye==="flip"});$||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Y=jl(h),Z=Y.marginTop,ue=Y.marginRight,ce=Y.marginBottom,le=Y.marginLeft;[Z,ue,ce,le].some(function(ge){return parseFloat(ge)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return T(),_.update()},forceUpdate:function(){if(!N){var z=b.elements,P=z.reference,I=z.popper;if(!aO(P,I)){console.error(rO);return}b.rects={reference:wre(P,yb(I),b.options.strategy==="fixed"),popper:B_(I)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(ge){return b.modifiersData[ge.name]=Object.assign({},ge.data)});for(var F=0,$=0;$<b.orderedModifiers.length;$++){if(F+=1,F>100){console.error(Ore);break}if(b.reset===!0){b.reset=!1,$=-1;continue}var Y=b.orderedModifiers[$],Z=Y.fn,ue=Y.options,ce=ue===void 0?{}:ue,le=Y.name;typeof Z=="function"&&(b=Z({state:b,options:ce,name:le,instance:_})||b)}}},update:Tre(function(){return new Promise(function(M){_.forceUpdate(),M(b)})}),destroy:function(){A(),N=!0}};if(!aO(p,h))return console.error(rO),_;_.setOptions(v).then(function(M){!N&&v.onFirstUpdate&&v.onFirstUpdate(M)});function T(){b.orderedModifiers.forEach(function(M){var z=M.name,P=M.options,I=P===void 0?{}:P,F=M.effect;if(typeof F=="function"){var $=F({state:b,name:z,instance:_,options:I}),Y=function(){};x.push($||Y)}})}function A(){x.forEach(function(M){return M()}),x=[]}return _}}var Dre=[Jne,gre,Xne,Une,hre,cre,Sre,Yne,dre],Pre=Mre({defaultModifiers:Dre}),Uh=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),yi={arrowShadowColor:Uh("--popper-arrow-shadow-color"),arrowSize:Uh("--popper-arrow-size","8px"),arrowSizeHalf:Uh("--popper-arrow-size-half"),arrowBg:Uh("--popper-arrow-bg"),transformOrigin:Uh("--popper-transform-origin"),arrowOffset:Uh("--popper-arrow-offset")};function Ire(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var Fre={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},zre=e=>Fre[e],oO={scroll:!0,resize:!0};function Bre(e){let t;return typeof e=="object"?t={enabled:!0,options:{...oO,...e}}:t={enabled:e,options:oO},t}var Ure={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},$re={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{sO(e)},effect:({state:e})=>()=>{sO(e)}},sO=e=>{e.elements.popper.style.setProperty(yi.transformOrigin.var,zre(e.placement))},jre={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Vre(e)}},Vre=e=>{var t;if(!e.placement)return;const n=Hre(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:yi.arrowSize.varRef,height:yi.arrowSize.varRef,zIndex:-1});const i={[yi.arrowSizeHalf.var]:`calc(${yi.arrowSize.varRef} / 2)`,[yi.arrowOffset.var]:`calc(${yi.arrowSizeHalf.varRef} * -1)`};for(const o in i)e.elements.arrow.style.setProperty(o,i[o])}},Hre=e=>{if(e.startsWith("top"))return{property:"bottom",value:yi.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:yi.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:yi.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:yi.arrowOffset.varRef}},Wre={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{lO(e)},effect:({state:e})=>()=>{lO(e)}},lO=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:yi.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:Ire(e.placement)})},Gre={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},Yre={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function qre(e,t="ltr"){var n;const i=((n=Gre[e])==null?void 0:n[t])||e;return t==="ltr"?i:Yre[e]??i}function DF(e={}){const{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:u=8,eventListeners:c=!0,offset:p,gutter:h=8,flip:v=!0,boundary:b="clippingParents",preventOverflow:x=!0,matchWidth:N,direction:_="ltr"}=e,T=k.exports.useRef(null),A=k.exports.useRef(null),M=k.exports.useRef(null),z=qre(i,_),P=k.exports.useRef(()=>{}),I=k.exports.useCallback(()=>{var le;!t||!T.current||!A.current||((le=P.current)==null||le.call(P),M.current=Pre(T.current,A.current,{placement:z,modifiers:[Wre,jre,$re,{...Ure,enabled:!!N},{name:"eventListeners",...Bre(c)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:p??[0,h]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:b}},...n??[]],strategy:o}),M.current.forceUpdate(),P.current=M.current.destroy)},[z,t,n,N,c,u,p,h,v,x,b,o]);k.exports.useEffect(()=>()=>{var le;!T.current&&!A.current&&((le=M.current)==null||le.destroy(),M.current=null)},[]);const F=k.exports.useCallback(le=>{T.current=le,I()},[I]),$=k.exports.useCallback((le={},ge=null)=>({...le,ref:qr(F,ge)}),[F]),Y=k.exports.useCallback(le=>{A.current=le,I()},[I]),Z=k.exports.useCallback((le={},ge=null)=>({...le,ref:qr(Y,ge),style:{...le.style,position:o,minWidth:N?void 0:"max-content",inset:"0 auto auto 0"}}),[o,Y,N]),ue=k.exports.useCallback((le={},ge=null)=>{const{size:Ye,shadowColor:re,bg:ie,style:Ce,...xe}=le;return{...xe,ref:ge,"data-popper-arrow":"",style:Zre(le)}},[]),ce=k.exports.useCallback((le={},ge=null)=>({...le,ref:ge,"data-popper-arrow-inner":""}),[]);return{update(){var le;(le=M.current)==null||le.update()},forceUpdate(){var le;(le=M.current)==null||le.forceUpdate()},transformOrigin:yi.transformOrigin.varRef,referenceRef:F,popperRef:Y,getPopperProps:Z,getArrowProps:ue,getArrowInnerProps:ce,getReferenceProps:$}}function Zre(e){const{size:t,shadowColor:n,bg:i,style:o}=e,u={...o,position:"absolute"};return t&&(u["--popper-arrow-size"]=t),n&&(u["--popper-arrow-shadow-color"]=n),i&&(u["--popper-arrow-bg"]=i),u}function PF(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,u=Ha(n),c=Ha(t),[p,h]=k.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:p,b=i!==void 0,x=o??`disclosure-${k.exports.useId()}`,N=k.exports.useCallback(()=>{b||h(!1),c?.()},[b,c]),_=k.exports.useCallback(()=>{b||h(!0),u?.()},[b,u]),T=k.exports.useCallback(()=>{v?N():_()},[v,_,N]);function A(z={}){return{...z,"aria-expanded":v,"aria-controls":x,onClick(P){var I;(I=z.onClick)==null||I.call(z,P),T()}}}function M(z={}){return{...z,hidden:!v,id:x}}return{isOpen:v,onOpen:_,onClose:N,onToggle:T,isControlled:b,getButtonProps:A,getDisclosureProps:M}}function IF(e){const{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!!(!n||i||o==="keepMounted"&&t)}var td="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[Kre,Xre]=Tr({strict:!1,name:"PortalManagerContext"});function FF(e){const{children:t,zIndex:n}=e;return C(Kre,{value:{zIndex:n},children:t},void 0,!1,{fileName:td,lineNumber:12,columnNumber:26},this)}FF.displayName="PortalManager";var[zF,Qre]=Tr({strict:!1,name:"PortalContext"}),H_="chakra-portal",Jre=".chakra-portal",eie=e=>C("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:td,lineNumber:29,columnNumber:44},globalThis),tie=e=>{const{appendToParentPortal:t,children:n}=e,[i,o]=k.exports.useState(null),u=k.exports.useRef(null),[,c]=k.exports.useState({});k.exports.useEffect(()=>c({}),[]);const p=Qre(),h=Xre();Eu(()=>{if(!i)return;const b=i.ownerDocument,x=t?p??b.body:b.body;if(!x)return;u.current=b.createElement("div"),u.current.className=H_,x.appendChild(u.current),c({});const N=u.current;return()=>{x.contains(N)&&x.removeChild(N)}},[i]);const v=h?.zIndex?C(eie,{zIndex:h?.zIndex,children:n},void 0,!1,{fileName:td,lineNumber:65,columnNumber:83},globalThis):n;return u.current?Rv.exports.createPortal(C(zF,{value:u.current,children:v},void 0,!1,{fileName:td,lineNumber:68,columnNumber:56},globalThis),u.current):C("span",{ref:b=>{b&&o(b)}},void 0,!1,{fileName:td,lineNumber:70,columnNumber:52},globalThis)},nie=e=>{const{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,u=o??(typeof window<"u"?document.body:void 0),c=k.exports.useMemo(()=>{const h=o?.ownerDocument.createElement("div");return h&&(h.className=H_),h},[o]),[,p]=k.exports.useState({});return Eu(()=>p({}),[]),Eu(()=>{if(!(!c||!u))return u.appendChild(c),()=>{u.removeChild(c)}},[c,u]),u&&c?Rv.exports.createPortal(C(zF,{value:i?c:null,children:t},void 0,!1,{fileName:td,lineNumber:98,columnNumber:41},globalThis),c):null};function um(e){const{containerRef:t,...n}=e;return t?C(nie,{containerRef:t,...n},void 0,!1,{fileName:td,lineNumber:106,columnNumber:41},this):C(tie,{...n},void 0,!1,{fileName:td,lineNumber:109,columnNumber:24},this)}um.defaultProps={appendToParentPortal:!0};um.className=H_;um.selector=Jre;um.displayName="Portal";var rie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$h=new WeakMap,Y5=new WeakMap,q5={},n6=0,iie=function(e,t,n,i){var o=Array.isArray(e)?e:[e];q5[n]||(q5[n]=new WeakMap);var u=q5[n],c=[],p=new Set,h=new Set(o),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};o.forEach(v);var b=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(N){if(p.has(N))b(N);else{var _=N.getAttribute(i),T=_!==null&&_!=="false",A=($h.get(N)||0)+1,M=(u.get(N)||0)+1;$h.set(N,A),u.set(N,M),c.push(N),A===1&&T&&Y5.set(N,!0),M===1&&N.setAttribute(n,"true"),T||N.setAttribute(i,"true")}})};return b(t),p.clear(),n6++,function(){c.forEach(function(x){var N=$h.get(x)-1,_=u.get(x)-1;$h.set(x,N),u.set(x,_),N||(Y5.has(x)||x.removeAttribute(i),Y5.delete(x)),_||x.removeAttribute(n)}),n6--,n6||($h=new WeakMap,$h=new WeakMap,Y5=new WeakMap,q5={})}},aie=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||rie(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),iie(i,o,n,"aria-hidden")):function(){return null}};function oie(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u<i.length;u++)o=i[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Lt={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var uO=Object.getOwnPropertySymbols,sie=Object.prototype.hasOwnProperty,lie=Object.prototype.propertyIsEnumerable;function uie(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function cie(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(u){return t[u]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(u){o[u]=u}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var fie=cie()?Object.assign:function(e,t){for(var n,i=uie(e),o,u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)sie.call(n,c)&&(i[c]=n[c]);if(uO){o=uO(n);for(var p=0;p<o.length;p++)lie.call(n,o[p])&&(i[o[p]]=n[o[p]])}}return i},die="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",BF=die,UF=Function.call.bind(Object.prototype.hasOwnProperty),W7=function(){};{var pie=BF,G7={},mie=UF;W7=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function $F(e,t,n,i,o){for(var u in e)if(mie(e,u)){var c;try{if(typeof e[u]!="function"){var p=Error((i||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=e[u](t,u,i,n,null,pie)}catch(v){c=v}if(c&&!(c instanceof Error)&&W7((i||"React class")+": type specification of "+n+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in G7)){G7[c.message]=!0;var h=o?o():"";W7("Failed "+n+" type: "+c.message+(h??""))}}}$F.resetWarningCache=function(){G7={}};var hie=$F,vie=kS.exports,gie=fie,jh=BF,r6=UF,cO=hie,Xh=function(){};Xh=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function Z5(){return null}var bie=function(e,t){var n=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function o(re){var ie=re&&(n&&re[n]||re[i]);if(typeof ie=="function")return ie}var u="<<anonymous>>",c={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:x(),arrayOf:N,element:_(),elementType:T(),instanceOf:A,node:I(),objectOf:z,oneOf:M,oneOfType:P,shape:$,exact:Y};function p(re,ie){return re===ie?re!==0||1/re===1/ie:re!==re&&ie!==ie}function h(re,ie){this.message=re,this.data=ie&&typeof ie=="object"?ie:{},this.stack=""}h.prototype=Error.prototype;function v(re){var ie={},Ce=0;function xe(be,Ne,me,we,De,Pe,Ze){if(we=we||u,Pe=Pe||me,Ze!==jh){if(t){var it=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw it.name="Invariant Violation",it}else if(typeof console<"u"){var bt=we+":"+me;!ie[bt]&&Ce<3&&(Xh("You are manually calling a React.PropTypes validation function for the `"+Pe+"` prop on `"+we+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ie[bt]=!0,Ce++)}}return Ne[me]==null?be?Ne[me]===null?new h("The "+De+" `"+Pe+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new h("The "+De+" `"+Pe+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:re(Ne,me,we,De,Pe)}var K=xe.bind(null,!1);return K.isRequired=xe.bind(null,!0),K}function b(re){function ie(Ce,xe,K,be,Ne,me){var we=Ce[xe],De=ce(we);if(De!==re){var Pe=le(we);return new h("Invalid "+be+" `"+Ne+"` of type "+("`"+Pe+"` supplied to `"+K+"`, expected ")+("`"+re+"`."),{expectedType:re})}return null}return v(ie)}function x(){return v(Z5)}function N(re){function ie(Ce,xe,K,be,Ne){if(typeof re!="function")return new h("Property `"+Ne+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var me=Ce[xe];if(!Array.isArray(me)){var we=ce(me);return new h("Invalid "+be+" `"+Ne+"` of type "+("`"+we+"` supplied to `"+K+"`, expected an array."))}for(var De=0;De<me.length;De++){var Pe=re(me,De,K,be,Ne+"["+De+"]",jh);if(Pe instanceof Error)return Pe}return null}return v(ie)}function _(){function re(ie,Ce,xe,K,be){var Ne=ie[Ce];if(!e(Ne)){var me=ce(Ne);return new h("Invalid "+K+" `"+be+"` of type "+("`"+me+"` supplied to `"+xe+"`, expected a single ReactElement."))}return null}return v(re)}function T(){function re(ie,Ce,xe,K,be){var Ne=ie[Ce];if(!vie.isValidElementType(Ne)){var me=ce(Ne);return new h("Invalid "+K+" `"+be+"` of type "+("`"+me+"` supplied to `"+xe+"`, expected a single ReactElement type."))}return null}return v(re)}function A(re){function ie(Ce,xe,K,be,Ne){if(!(Ce[xe]instanceof re)){var me=re.name||u,we=Ye(Ce[xe]);return new h("Invalid "+be+" `"+Ne+"` of type "+("`"+we+"` supplied to `"+K+"`, expected ")+("instance of `"+me+"`."))}return null}return v(ie)}function M(re){if(!Array.isArray(re))return arguments.length>1?Xh("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Xh("Invalid argument supplied to oneOf, expected an array."),Z5;function ie(Ce,xe,K,be,Ne){for(var me=Ce[xe],we=0;we<re.length;we++)if(p(me,re[we]))return null;var De=JSON.stringify(re,function(Ze,it){var bt=le(it);return bt==="symbol"?String(it):it});return new h("Invalid "+be+" `"+Ne+"` of value `"+String(me)+"` "+("supplied to `"+K+"`, expected one of "+De+"."))}return v(ie)}function z(re){function ie(Ce,xe,K,be,Ne){if(typeof re!="function")return new h("Property `"+Ne+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var me=Ce[xe],we=ce(me);if(we!=="object")return new h("Invalid "+be+" `"+Ne+"` of type "+("`"+we+"` supplied to `"+K+"`, expected an object."));for(var De in me)if(r6(me,De)){var Pe=re(me,De,K,be,Ne+"."+De,jh);if(Pe instanceof Error)return Pe}return null}return v(ie)}function P(re){if(!Array.isArray(re))return Xh("Invalid argument supplied to oneOfType, expected an instance of array."),Z5;for(var ie=0;ie<re.length;ie++){var Ce=re[ie];if(typeof Ce!="function")return Xh("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(Ce)+" at index "+ie+"."),Z5}function xe(K,be,Ne,me,we){for(var De=[],Pe=0;Pe<re.length;Pe++){var Ze=re[Pe],it=Ze(K,be,Ne,me,we,jh);if(it==null)return null;it.data&&r6(it.data,"expectedType")&&De.push(it.data.expectedType)}var bt=De.length>0?", expected one of type ["+De.join(", ")+"]":"";return new h("Invalid "+me+" `"+we+"` supplied to "+("`"+Ne+"`"+bt+"."))}return v(xe)}function I(){function re(ie,Ce,xe,K,be){return Z(ie[Ce])?null:new h("Invalid "+K+" `"+be+"` supplied to "+("`"+xe+"`, expected a ReactNode."))}return v(re)}function F(re,ie,Ce,xe,K){return new h((re||"React class")+": "+ie+" type `"+Ce+"."+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function $(re){function ie(Ce,xe,K,be,Ne){var me=Ce[xe],we=ce(me);if(we!=="object")return new h("Invalid "+be+" `"+Ne+"` of type `"+we+"` "+("supplied to `"+K+"`, expected `object`."));for(var De in re){var Pe=re[De];if(typeof Pe!="function")return F(K,be,Ne,De,le(Pe));var Ze=Pe(me,De,K,be,Ne+"."+De,jh);if(Ze)return Ze}return null}return v(ie)}function Y(re){function ie(Ce,xe,K,be,Ne){var me=Ce[xe],we=ce(me);if(we!=="object")return new h("Invalid "+be+" `"+Ne+"` of type `"+we+"` "+("supplied to `"+K+"`, expected `object`."));var De=gie({},Ce[xe],re);for(var Pe in De){var Ze=re[Pe];if(r6(re,Pe)&&typeof Ze!="function")return F(K,be,Ne,Pe,le(Ze));if(!Ze)return new h("Invalid "+be+" `"+Ne+"` key `"+Pe+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(Ce[xe],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(re),null," "));var it=Ze(me,Pe,K,be,Ne+"."+Pe,jh);if(it)return it}return null}return v(ie)}function Z(re){switch(typeof re){case"number":case"string":case"undefined":return!0;case"boolean":return!re;case"object":if(Array.isArray(re))return re.every(Z);if(re===null||e(re))return!0;var ie=o(re);if(ie){var Ce=ie.call(re),xe;if(ie!==re.entries){for(;!(xe=Ce.next()).done;)if(!Z(xe.value))return!1}else for(;!(xe=Ce.next()).done;){var K=xe.value;if(K&&!Z(K[1]))return!1}}else return!1;return!0;default:return!1}}function ue(re,ie){return re==="symbol"?!0:ie?ie["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ie instanceof Symbol:!1}function ce(re){var ie=typeof re;return Array.isArray(re)?"array":re instanceof RegExp?"object":ue(ie,re)?"symbol":ie}function le(re){if(typeof re>"u"||re===null)return""+re;var ie=ce(re);if(ie==="object"){if(re instanceof Date)return"date";if(re instanceof RegExp)return"regexp"}return ie}function ge(re){var ie=le(re);switch(ie){case"array":case"object":return"an "+ie;case"boolean":case"date":case"regexp":return"a "+ie;default:return ie}}function Ye(re){return!re.constructor||!re.constructor.name?u:re.constructor.name}return c.checkPropTypes=cO,c.resetWarningCache=cO.resetWarningCache,c.PropTypes=c,c};{var yie=kS.exports,Sie=!0;Lt.exports=bie(yie.isElement,Sie)}var Y7="data-focus-lock",jF="data-focus-lock-disabled",xie="data-no-focus-lock",Cie="data-autofocus-inside",Nie="data-no-autofocus";function wie(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _ie(e,t){var n=k.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}function VF(e,t){return _ie(t||null,function(n){return e.forEach(function(i){return wie(i,n)})})}var i6={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};Lt.exports.node;function HF(e){return e}function WF(e,t){t===void 0&&(t=HF);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var c=t(u,i);return n.push(c),function(){n=n.filter(function(p){return p!==c})}},assignSyncMedium:function(u){for(i=!0;n.length;){var c=n;n=[],c.forEach(u)}n={push:function(p){return u(p)},filter:function(){return n}}},assignMedium:function(u){i=!0;var c=[];if(n.length){var p=n;n=[],p.forEach(u),c=n}var h=function(){var b=c;c=[],b.forEach(u)},v=function(){return Promise.resolve().then(h)};v(),n={push:function(b){c.push(b),v()},filter:function(b){return c=c.filter(b),n}}}};return o}function W_(e,t){return t===void 0&&(t=HF),WF(e,t)}function GF(e){e===void 0&&(e={});var t=WF(null);return t.options=Nu({async:!0,ssr:!1},e),t}var Eie="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",YF=function(e){var t=e.sideCar,n=$S(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C(i,{...Nu({},n)},void 0,!1,{fileName:Eie,lineNumber:12,columnNumber:12},this)};YF.isSideCarExport=!0;function Tie(e,t){return e.useMedium(t),YF}var qF=W_({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),ZF=W_(),Rie=W_(),Aie=GF({async:!0}),rg="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",kie=[],G_=k.exports.forwardRef(function(t,n){var i,o=k.exports.useState(),u=o[0],c=o[1],p=k.exports.useRef(),h=k.exports.useRef(!1),v=k.exports.useRef(null),b=t.children,x=t.disabled,N=t.noFocusGuards,_=t.persistentFocus,T=t.crossFrame,A=t.autoFocus,M=t.allowTextSelection,z=t.group,P=t.className,I=t.whiteList,F=t.hasPositiveIndices,$=t.shards,Y=$===void 0?kie:$,Z=t.as,ue=Z===void 0?"div":Z,ce=t.lockProps,le=ce===void 0?{}:ce,ge=t.sideCar,Ye=t.returnFocus,re=t.focusOptions,ie=t.onActivation,Ce=t.onDeactivation,xe=k.exports.useState({}),K=xe[0],be=k.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,p.current&&ie&&ie(p.current),h.current=!0},[ie]),Ne=k.exports.useCallback(function(){h.current=!1,Ce&&Ce(p.current)},[Ce]);k.exports.useEffect(function(){x||(v.current=null)},[]);var me=k.exports.useCallback(function(Xe){var ct=v.current;if(ct&&ct.focus){var wt=typeof Ye=="function"?Ye(ct):Ye;if(wt){var Bt=typeof wt=="object"?wt:void 0;v.current=null,Xe?Promise.resolve().then(function(){return ct.focus(Bt)}):ct.focus(Bt)}}},[Ye]),we=k.exports.useCallback(function(Xe){h.current&&qF.useMedium(Xe)},[]),De=ZF.useMedium,Pe=k.exports.useCallback(function(Xe){p.current!==Xe&&(p.current=Xe,c(Xe))},[]);typeof M<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),k.exports.useEffect(function(){p.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ze=Pg((i={},i[jF]=x&&"disabled",i[Y7]=z,i),le),it=N!==!0,bt=it&&N!=="tail",Wt=VF([n,Pe]);return C(Ui,{children:[it&&[C("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:i6},"guard-first",!1,{fileName:rg,lineNumber:130,columnNumber:3},this),F?C("div",{"data-focus-guard":!0,tabIndex:x?-1:1,style:i6},"guard-nearest",!1,{fileName:rg,lineNumber:136,columnNumber:37},this):null],!x&&C(ge,{id:K,sideCar:Aie,observed:u,disabled:x,persistentFocus:_,crossFrame:T,autoFocus:A,whiteList:I,shards:Y,onActivation:be,onDeactivation:Ne,returnFocus:me,focusOptions:re},void 0,!1,{fileName:rg,lineNumber:141,columnNumber:41},this),C(ue,{ref:Wt,...Ze,className:P,onBlur:De,onFocus:we,children:b},void 0,!1,{fileName:rg,lineNumber:155,columnNumber:20},this),bt&&C("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:i6},void 0,!1,{fileName:rg,lineNumber:161,columnNumber:51},this)]},void 0,!0)});G_.propTypes={children:Lt.exports.node,disabled:Lt.exports.bool,returnFocus:Lt.exports.oneOfType([Lt.exports.bool,Lt.exports.object,Lt.exports.func]),focusOptions:Lt.exports.object,noFocusGuards:Lt.exports.bool,hasPositiveIndices:Lt.exports.bool,allowTextSelection:Lt.exports.bool,autoFocus:Lt.exports.bool,persistentFocus:Lt.exports.bool,crossFrame:Lt.exports.bool,group:Lt.exports.string,className:Lt.exports.string,whiteList:Lt.exports.func,shards:Lt.exports.arrayOf(Lt.exports.any),as:Lt.exports.oneOfType([Lt.exports.string,Lt.exports.func,Lt.exports.object]),lockProps:Lt.exports.object,onActivation:Lt.exports.func,onDeactivation:Lt.exports.func,sideCar:Lt.exports.any.isRequired};G_.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const KF=G_;function q7(e,t){return q7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},q7(e,t)}function Lie(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,q7(e,t)}function XF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oie="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function Mie(e,t){{if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var u=[],c;function p(){c=e(u.map(function(v){return v.props})),t(c)}var h=function(v){Lie(b,v);function b(){return v.apply(this,arguments)||this}b.peek=function(){return c};var x=b.prototype;return x.componentDidMount=function(){u.push(this),p()},x.componentDidUpdate=function(){p()},x.componentWillUnmount=function(){var _=u.indexOf(this);u.splice(_,1),p()},x.render=function(){return C(o,{...this.props},void 0,!1,{fileName:Oie,lineNumber:67,columnNumber:29},this)},b}(k.exports.PureComponent);return XF(h,"displayName","SideEffect("+n(o)+")"),h}}var Fu=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Z7=function(e){return Array.isArray(e)?e:[e]},Die=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},QF=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},JF=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Pie=function(e,t){return!e||JF(e)||!Die(e)&&t(QF(e))},ez=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=Pie(t,ez.bind(void 0,e));return e.set(t,i),i},Iie=function(e,t){return e&&!JF(e)?Bie(e)?t(QF(e)):!1:!0},tz=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=Iie(t,tz.bind(void 0,e));return e.set(t,i),i},nz=function(e){return e.dataset},Fie=function(e){return e.tagName==="BUTTON"},rz=function(e){return e.tagName==="INPUT"},iz=function(e){return rz(e)&&e.type==="radio"},zie=function(e){return!((rz(e)||Fie(e))&&(e.type==="hidden"||e.disabled))},Bie=function(e){var t=e.getAttribute(Nie);return![!0,"true",""].includes(t)},Y_=function(e){var t;return Boolean(e&&((t=nz(e))===null||t===void 0?void 0:t.focusGuard))},uS=function(e){return!Y_(e)},Uie=function(e){return Boolean(e)},$ie=function(e,t){var n=e.tabIndex-t.tabIndex,i=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||i},az=function(e,t,n){return Fu(e).map(function(i,o){return{node:i,index:o,tabIndex:n&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort($ie)},jie=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],q_=jie.join(","),Vie="".concat(q_,", [data-focus-guard]"),oz=function(e,t){var n;return Fu(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(i,o){return i.concat(o.matches(t?Vie:q_)?[o]:[],oz(o))},[])},Z_=function(e,t){return e.reduce(function(n,i){return n.concat(oz(i,t),i.parentNode?Fu(i.parentNode.querySelectorAll(q_)).filter(function(o){return o===i}):[])},[])},Hie=function(e){var t=e.querySelectorAll("[".concat(Cie,"]"));return Fu(t).map(function(n){return Z_([n])}).reduce(function(n,i){return n.concat(i)},[])},K_=function(e,t){return Fu(e).filter(function(n){return ez(t,n)}).filter(function(n){return zie(n)})},fO=function(e,t){return t===void 0&&(t=new Map),Fu(e).filter(function(n){return tz(t,n)})},K7=function(e,t,n){return az(K_(Z_(e,n),t),!0,n)},dO=function(e,t){return az(K_(Z_(e),t),!1)},Wie=function(e,t){return K_(Hie(e),t)},Yg=function(e,t){return(e.shadowRoot?Yg(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Fu(e.children).some(function(n){return Yg(n,t)})},Gie=function(e){for(var t=new Set,n=e.length,i=0;i<n;i+=1)for(var o=i+1;o<n;o+=1){var u=e[i].compareDocumentPosition(e[o]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(c,p){return!t.has(p)})},sz=function(e){return e.parentNode?sz(e.parentNode):e},X_=function(e){var t=Z7(e);return t.filter(Boolean).reduce(function(n,i){var o=i.getAttribute(Y7);return n.push.apply(n,o?Gie(Fu(sz(i).querySelectorAll("[".concat(Y7,'="').concat(o,'"]:not([').concat(jF,'="disabled"])')))):[i]),n},[])},lz=function(e){return e.activeElement?e.activeElement.shadowRoot?lz(e.activeElement.shadowRoot):e.activeElement:void 0},Q_=function(){return document.activeElement?document.activeElement.shadowRoot?lz(document.activeElement.shadowRoot):document.activeElement:void 0},Yie=function(e){return e===document.activeElement},qie=function(e){return Boolean(Fu(e.querySelectorAll("iframe")).some(function(t){return Yie(t)}))},uz=function(e){var t=document&&Q_();return!t||t.dataset&&t.dataset.focusGuard?!1:X_(e).some(function(n){return Yg(n,t)||qie(n)})},Zie=function(){var e=document&&Q_();return e?Fu(document.querySelectorAll("[".concat(xie,"]"))).some(function(t){return Yg(t,e)}):!1},Kie=function(e,t){return t.filter(iz).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},J_=function(e,t){return iz(e)&&e.name?Kie(e,t):e},Xie=function(e){var t=new Set;return e.forEach(function(n){return t.add(J_(n,e))}),e.filter(function(n){return t.has(n)})},pO=function(e){return e[0]&&e.length>1?J_(e[0],e):e[0]},mO=function(e,t){return e.length>1?e.indexOf(J_(e[t],e)):t},cz="NEW_FOCUS",Qie=function(e,t,n,i){var o=e.length,u=e[0],c=e[o-1],p=Y_(n);if(!(n&&e.indexOf(n)>=0)){var h=n!==void 0?t.indexOf(n):-1,v=i?t.indexOf(i):h,b=i?e.indexOf(i):-1,x=h-v,N=t.indexOf(u),_=t.indexOf(c),T=Xie(t),A=n!==void 0?T.indexOf(n):-1,M=A-(i?T.indexOf(i):h),z=mO(e,0),P=mO(e,o-1);if(h===-1||b===-1)return cz;if(!x&&b>=0)return b;if(h<=N&&p&&Math.abs(x)>1)return P;if(h>=_&&p&&Math.abs(x)>1)return z;if(x&&Math.abs(M)>1)return b;if(h<=N)return P;if(h>_)return z;if(x)return Math.abs(x)>1?b:(o+b+x)%o}},X7=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&X7(e.parentNode.host||e.parentNode,t),t},a6=function(e,t){for(var n=X7(e),i=X7(t),o=0;o<n.length;o+=1){var u=n[o];if(i.indexOf(u)>=0)return u}return!1},fz=function(e,t,n){var i=Z7(e),o=Z7(t),u=i[0],c=!1;return o.filter(Boolean).forEach(function(p){c=a6(c||p,p)||c,n.filter(Boolean).forEach(function(h){var v=a6(u,h);v&&(!c||Yg(v,c)?c=v:c=a6(v,c))})}),c},Jie=function(e,t){return e.reduce(function(n,i){return n.concat(Wie(i,t))},[])},eae=function(e){return function(t){var n;return t.autofocus||!!(!((n=nz(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},tae=function(e,t){var n=new Map;return t.forEach(function(i){return n.set(i.node,i)}),e.map(function(i){return n.get(i)}).filter(Uie)},nae=function(e,t){var n=document&&Q_(),i=X_(e).filter(uS),o=fz(n||e,e,i),u=new Map,c=dO(i,u),p=K7(i,u).filter(function(_){var T=_.node;return uS(T)});if(!(!p[0]&&(p=c,!p[0]))){var h=dO([o],u).map(function(_){var T=_.node;return T}),v=tae(h,p),b=v.map(function(_){var T=_.node;return T}),x=Qie(b,h,n,t);if(x===cz){var N=fO(c.map(function(_){var T=_.node;return T})).filter(eae(Jie(i,u)));return{node:N&&N.length?pO(N):pO(fO(b))}}return x===void 0?x:v[x]}},rae=function(e){var t=X_(e).filter(uS),n=fz(e,e,t),i=new Map,o=K7([n],i,!0),u=K7(t,i).filter(function(c){var p=c.node;return uS(p)}).map(function(c){var p=c.node;return p});return o.map(function(c){var p=c.node,h=c.index;return{node:p,index:h,lockItem:u.indexOf(p)>=0,guard:Y_(p)}})},iae=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},o6=0,s6=!1,aae=function(e,t,n){n===void 0&&(n={});var i=nae(e,t);if(!s6&&i){if(o6>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),s6=!0,setTimeout(function(){s6=!1},1);return}o6++,iae(i.node,n.focusOptions),o6--}};const dz=aae;function pz(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var oae=function(){return document&&document.activeElement===document.body},sae=function(){return oae()||Zie()},fv=null,iv=null,dv=null,qg=!1,lae=function(){return!0},uae=function(t){return(fv.whiteList||lae)(t)},cae=function(t,n){dv={observerNode:t,portaledElement:n}},fae=function(t){return dv&&dv.portaledElement===t};function hO(e,t,n,i){var o=null,u=e;do{var c=i[u];if(c.guard)c.node.dataset.focusAutoGuard&&(o=c);else if(c.lockItem){if(u!==e)return;o=null}else break}while((u+=n)!==t);o&&(o.node.tabIndex=0)}var dae=function(t){return t&&"current"in t?t.current:t},pae=function(t){return t?Boolean(qg):qg==="meanwhile"},mae=function e(t,n,i){return n&&(n.host===t&&(!n.activeElement||i.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,i))},hae=function(t,n){return n.some(function(i){return mae(t,i,i)})},cS=function(){var t=!1;if(fv){var n=fv,i=n.observed,o=n.persistentFocus,u=n.autoFocus,c=n.shards,p=n.crossFrame,h=n.focusOptions,v=i||dv&&dv.portaledElement,b=document&&document.activeElement;if(v){var x=[v].concat(c.map(dae).filter(Boolean));if((!b||uae(b))&&(o||pae(p)||!sae()||!iv&&u)&&(v&&!(uz(x)||b&&hae(b,x)||fae(b))&&(document&&!iv&&b&&!u?(b.blur&&b.blur(),document.body.focus()):(t=dz(x,iv,{focusOptions:h}),dv={})),qg=!1,iv=document&&document.activeElement),document){var N=document&&document.activeElement,_=rae(x),T=_.map(function(A){var M=A.node;return M}).indexOf(N);T>-1&&(_.filter(function(A){var M=A.guard,z=A.node;return M&&z.dataset.focusAutoGuard}).forEach(function(A){var M=A.node;return M.removeAttribute("tabIndex")}),hO(T,_.length,1,_),hO(T,-1,-1,_))}}}return t},mz=function(t){cS()&&t&&(t.stopPropagation(),t.preventDefault())},eE=function(){return pz(cS)},vae=function(t){var n=t.target,i=t.currentTarget;i.contains(n)||cae(i,n)},gae=function(){return null};Lt.exports.node.isRequired;var hz=function(){qg="just",setTimeout(function(){qg="meanwhile"},0)},bae=function(){document.addEventListener("focusin",mz),document.addEventListener("focusout",eE),window.addEventListener("blur",hz)},yae=function(){document.removeEventListener("focusin",mz),document.removeEventListener("focusout",eE),window.removeEventListener("blur",hz)};function Sae(e){return e.filter(function(t){var n=t.disabled;return!n})}function xae(e){var t=e.slice(-1)[0];t&&!fv&&bae();var n=fv,i=n&&t&&t.id===n.id;fv=t,n&&!i&&(n.onDeactivation(),e.filter(function(o){var u=o.id;return u===n.id}).length||n.returnFocus(!t)),t?(iv=null,(!i||n.observed!==t.observed)&&t.onActivation(),cS(),pz(cS)):(yae(),iv=null)}qF.assignSyncMedium(vae);ZF.assignMedium(eE);Rie.assignMedium(function(e){return e({moveFocusInside:dz,focusInside:uz})});const Cae=Mie(Sae,xae)(gae);var Nae="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",vz=k.exports.forwardRef(function(t,n){return C(KF,{sideCar:Cae,ref:n,...t},void 0,!1,{fileName:Nae,lineNumber:16,columnNumber:23},this)}),gz=KF.propTypes||{};gz.sideCar;var wae=oie(gz,["sideCar"]);vz.propTypes=wae;const _ae=vz;var Eae="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",bz=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:i,restoreFocus:o,children:u,isDisabled:c,autoFocus:p,persistentFocus:h,lockFocusAcrossFrames:v}=e,b=k.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&Ene(i.current).length===0&&requestAnimationFrame(()=>{var T;(T=i.current)==null||T.focus()})},[t,i]),x=k.exports.useCallback(()=>{var _;(_=n?.current)==null||_.focus()},[n]);return C(_ae,{crossFrame:v,persistentFocus:h,autoFocus:p,disabled:c,onActivation:b,onDeactivation:x,returnFocus:o&&!n,children:u},void 0,!1,{fileName:Eae,lineNumber:38,columnNumber:26},globalThis)};bz.displayName="FocusLock";var _4="right-scroll-bar-position",E4="width-before-scroll-bar",Tae="with-scroll-bars-hidden",Rae="--removed-body-scroll-bar-size",yz=GF(),vO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",l6=function(){},a3=k.exports.forwardRef(function(e,t){var n=k.exports.useRef(null),i=k.exports.useState({onScrollCapture:l6,onWheelCapture:l6,onTouchMoveCapture:l6}),o=i[0],u=i[1],c=e.forwardProps,p=e.children,h=e.className,v=e.removeScrollBar,b=e.enabled,x=e.shards,N=e.sideCar,_=e.noIsolation,T=e.inert,A=e.allowPinchZoom,M=e.as,z=M===void 0?"div":M,P=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),I=N,F=VF([n,t]),$=Nu(Nu({},P),o);return C(Ui,{children:[b&&C(I,{sideCar:yz,removeScrollBar:v,shards:x,noIsolation:_,inert:T,setCallbacks:u,allowPinchZoom:!!A,lockRef:n},void 0,!1,{fileName:vO,lineNumber:24,columnNumber:21},this),c?k.exports.cloneElement(k.exports.Children.only(p),Nu(Nu({},$),{ref:F})):C(z,{...Nu({},$,{className:h,ref:F}),children:p},void 0,!1,{fileName:vO,lineNumber:25,columnNumber:142},this)]},void 0,!0)});a3.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};a3.classNames={fullWidth:E4,zeroRight:_4};var Aae=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kae(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Aae();return t&&e.setAttribute("nonce",t),e}function Lae(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oae(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mae=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kae())&&(Lae(t,n),Oae(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Dae=function(){var e=Mae();return function(t,n){k.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sz=function(){var e=Dae(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},Pae={left:0,top:0,right:0,gap:0},u6=function(e){return parseInt(e||"",10)||0},Iae=function(e){var t=window.getComputedStyle(document.body);t.overflowY==="hidden"&&console.error("react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body");var n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[u6(n),u6(i),u6(o)]},Fae=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pae;var t=Iae(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},zae="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",Bae=Sz(),Uae=function(e,t,n,i){var o=e.left,u=e.top,c=e.right,p=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Tae,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(p,"px ").concat(i,`;
}
body {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(u,`px;
padding-right: `).concat(c,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(p,"px ").concat(i,`;
`),n==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(_4,` {
right: `).concat(p,"px ").concat(i,`;
}
.`).concat(E4,` {
margin-right: `).concat(p,"px ").concat(i,`;
}
.`).concat(_4," .").concat(_4,` {
right: 0 `).concat(i,`;
}
.`).concat(E4," .").concat(E4,` {
margin-right: 0 `).concat(i,`;
}
body {
`).concat(Rae,": ").concat(p,`px;
}
`)},$ae=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i,u=k.exports.useMemo(function(){return Fae(o)},[o]);return C(Bae,{styles:Uae(u,!t,o,n?"":"!important")},void 0,!1,{fileName:zae,lineNumber:27,columnNumber:12},this)},Q7=!1;if(typeof window<"u")try{var K5=Object.defineProperty({},"passive",{get:function(){return Q7=!0,!0}});window.addEventListener("test",K5,K5),window.removeEventListener("test",K5,K5)}catch{Q7=!1}var Vh=Q7?{passive:!1}:!1,jae=function(e){return e.tagName==="TEXTAREA"},xz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jae(e)&&n[t]==="visible")},Vae=function(e){return xz(e,"overflowY")},Hae=function(e){return xz(e,"overflowX")},gO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Cz(e,n);if(i){var o=Nz(e,n),u=o[1],c=o[2];if(u>c)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Wae=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Gae=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Cz=function(e,t){return e==="v"?Vae(t):Hae(t)},Nz=function(e,t){return e==="v"?Wae(t):Gae(t)},Yae=function(e,t){return e==="h"&&t==="rtl"?-1:1},qae=function(e,t,n,i,o){var u=Yae(e,window.getComputedStyle(t).direction),c=u*i,p=n.target,h=t.contains(p),v=!1,b=c>0,x=0,N=0;do{var _=Nz(e,p),T=_[0],A=_[1],M=_[2],z=A-M-u*T;(T||z)&&Cz(e,p)&&(x+=z,N+=T),p=p.parentNode}while(!h&&p!==document.body||h&&(t.contains(p)||t===p));return(b&&(o&&x===0||!o&&c>x)||!b&&(o&&N===0||!o&&-c>N))&&(v=!0),v},bO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",X5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yO=function(e){return[e.deltaX,e.deltaY]},SO=function(e){return e&&"current"in e?e.current:e},Zae=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kae=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Xae=0,Hh=[];function Qae(e){var t=k.exports.useRef([]),n=k.exports.useRef([0,0]),i=k.exports.useRef(),o=k.exports.useState(Xae++)[0],u=k.exports.useState(function(){return Sz()})[0],c=k.exports.useRef(e);k.exports.useEffect(function(){c.current=e},[e]),k.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var A=h7([e.lockRef.current],(e.shards||[]).map(SO),!0).filter(Boolean);return A.forEach(function(M){return M.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var p=k.exports.useCallback(function(A,M){if("touches"in A&&A.touches.length===2)return!c.current.allowPinchZoom;var z=X5(A),P=n.current,I="deltaX"in A?A.deltaX:P[0]-z[0],F="deltaY"in A?A.deltaY:P[1]-z[1],$,Y=A.target,Z=Math.abs(I)>Math.abs(F)?"h":"v";if("touches"in A&&Z==="h"&&Y.type==="range")return!1;var ue=gO(Z,Y);if(!ue)return!0;if(ue?$=Z:($=Z==="v"?"h":"v",ue=gO(Z,Y)),!ue)return!1;if(!i.current&&"changedTouches"in A&&(I||F)&&(i.current=$),!$)return!0;var ce=i.current||$;return qae(ce,M,A,ce==="h"?I:F,!0)},[]),h=k.exports.useCallback(function(A){var M=A;if(!(!Hh.length||Hh[Hh.length-1]!==u)){var z="deltaY"in M?yO(M):X5(M),P=t.current.filter(function($){return $.name===M.type&&$.target===M.target&&Zae($.delta,z)})[0];if(P&&P.should){M.cancelable&&M.preventDefault();return}if(!P){var I=(c.current.shards||[]).map(SO).filter(Boolean).filter(function($){return $.contains(M.target)}),F=I.length>0?p(M,I[0]):!c.current.noIsolation;F&&M.cancelable&&M.preventDefault()}}},[]),v=k.exports.useCallback(function(A,M,z,P){var I={name:A,delta:M,target:z,should:P};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(F){return F!==I})},1)},[]),b=k.exports.useCallback(function(A){n.current=X5(A),i.current=void 0},[]),x=k.exports.useCallback(function(A){v(A.type,yO(A),A.target,p(A,e.lockRef.current))},[]),N=k.exports.useCallback(function(A){v(A.type,X5(A),A.target,p(A,e.lockRef.current))},[]);k.exports.useEffect(function(){return Hh.push(u),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:N}),document.addEventListener("wheel",h,Vh),document.addEventListener("touchmove",h,Vh),document.addEventListener("touchstart",b,Vh),function(){Hh=Hh.filter(function(A){return A!==u}),document.removeEventListener("wheel",h,Vh),document.removeEventListener("touchmove",h,Vh),document.removeEventListener("touchstart",b,Vh)}},[]);var _=e.removeScrollBar,T=e.inert;return C(Ui,{children:[T?C(u,{styles:Kae(o)},void 0,!1,{fileName:bO,lineNumber:144,columnNumber:17},this):null,_?C($ae,{gapMode:"margin"},void 0,!1,{fileName:bO,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Jae=Tie(yz,Qae);var eoe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",wz=k.exports.forwardRef(function(e,t){return C(a3,{...Nu({},e,{ref:t,sideCar:Jae})},void 0,!1,{fileName:eoe,lineNumber:5,columnNumber:74},this)});wz.classNames=a3.classNames;const toe=wz;var Mo="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",cm=(...e)=>e.filter(Boolean).join(" ");function dg(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var noe=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},J7=new noe;function roe(e,t){k.exports.useEffect(()=>(t&&J7.add(e),()=>{J7.remove(e)}),[t,e])}function ioe(e){const{isOpen:t,onClose:n,id:i,closeOnOverlayClick:o=!0,closeOnEsc:u=!0,useInert:c=!0,onOverlayClick:p,onEsc:h}=e,v=k.exports.useRef(null),b=k.exports.useRef(null),[x,N,_]=ooe(i,"chakra-modal","chakra-modal--header","chakra-modal--body");aoe(v,t&&c),roe(v,t);const T=k.exports.useRef(null),A=k.exports.useCallback(ue=>{T.current=ue.target},[]),M=k.exports.useCallback(ue=>{ue.key==="Escape"&&(ue.stopPropagation(),u&&n?.(),h?.())},[u,n,h]),[z,P]=k.exports.useState(!1),[I,F]=k.exports.useState(!1),$=k.exports.useCallback((ue={},ce=null)=>({role:"dialog",...ue,ref:qr(ce,v),id:x,tabIndex:-1,"aria-modal":!0,"aria-labelledby":z?N:void 0,"aria-describedby":I?_:void 0,onClick:dg(ue.onClick,le=>le.stopPropagation())}),[_,I,x,N,z]),Y=k.exports.useCallback(ue=>{ue.stopPropagation(),T.current===ue.target&&(!J7.isTopModal(v)||(o&&n?.(),p?.()))},[n,o,p]),Z=k.exports.useCallback((ue={},ce=null)=>({...ue,ref:qr(ce,b),onClick:dg(ue.onClick,Y),onKeyDown:dg(ue.onKeyDown,M),onMouseDown:dg(ue.onMouseDown,A)}),[M,A,Y]);return{isOpen:t,onClose:n,headerId:N,bodyId:_,setBodyMounted:F,setHeaderMounted:P,dialogRef:v,overlayRef:b,getDialogProps:$,getDialogContainerProps:Z}}function aoe(e,t){const n=e.current;k.exports.useEffect(()=>{if(!(!e.current||!t))return aie(e.current)},[t,e,n])}function ooe(e,...t){const n=k.exports.useId(),i=e||n;return k.exports.useMemo(()=>t.map(o=>`${o}-${i}`),[i,t])}var[soe,fm]=Tr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[loe,od]=Tr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),wv=e=>{const{portalProps:t,children:n,autoFocus:i,trapFocus:o,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:p,blockScrollOnMount:h,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:N,onCloseComplete:_}=e,T=mo("Modal",e),M={...ioe(e),autoFocus:i,trapFocus:o,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:p,blockScrollOnMount:h,allowPinchZoom:v,preserveScrollBarGap:b,motionPreset:x,lockFocusAcrossFrames:N};return C(loe,{value:M,children:C(soe,{value:T,children:C(Fc,{onExitComplete:_,children:M.isOpen&&C(um,{...t,children:n},void 0,!1,{fileName:Mo,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:Mo,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:Mo,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:Mo,lineNumber:189,columnNumber:26},globalThis)};wv.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};wv.displayName="Modal";var fS=qe((e,t)=>{const{className:n,...i}=e,{bodyId:o,setBodyMounted:u}=od();k.exports.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=cm("chakra-modal__body",n),p=fm();return Ae.createElement($e.div,{ref:t,className:c,id:o,...i,__css:p.body})});fS.displayName="ModalBody";var tE=qe((e,t)=>{const{onClick:n,className:i,...o}=e,{onClose:u}=od(),c=cm("chakra-modal__close-btn",i),p=fm();return C(t3,{ref:t,__css:p.closeButton,className:c,onClick:dg(n,h=>{h.stopPropagation(),u()}),...o},void 0,!1,{fileName:Mo,lineNumber:241,columnNumber:26},globalThis)});tE.displayName="ModalCloseButton";function _z(e){const{autoFocus:t,trapFocus:n,dialogRef:i,initialFocusRef:o,blockScrollOnMount:u,allowPinchZoom:c,finalFocusRef:p,returnFocusOnClose:h,preserveScrollBarGap:v,lockFocusAcrossFrames:b}=od(),[x,N]=v_();return k.exports.useEffect(()=>{!x&&N&&setTimeout(N)},[x,N]),C(bz,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:p,restoreFocus:h,contentRef:i,lockFocusAcrossFrames:b,children:C(toe,{removeScrollBar:!v,allowPinchZoom:c,enabled:u,forwardProps:!0,children:e.children},void 0,!1,{fileName:Mo,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:Mo,lineNumber:284,columnNumber:26},this)}var uoe={slideInBottom:{...O7,custom:{offsetY:16,reverse:!0}},slideInRight:{...O7,custom:{offsetX:16,reverse:!0}},scale:{...BI,custom:{initialScale:.95,reverse:!0}},none:{}},coe=$e(el.section),Ez=k.exports.forwardRef((e,t)=>{const{preset:n,...i}=e,o=uoe[n];return C(coe,{ref:t,...o,...i},void 0,!1,{fileName:Mo,lineNumber:324,columnNumber:26},globalThis)});Ez.displayName="ModalTransition";var Zg=qe((e,t)=>{const{className:n,children:i,containerProps:o,...u}=e,{getDialogProps:c,getDialogContainerProps:p}=od(),h=c(u,t),v=p(o),b=cm("chakra-modal__content",n),x=fm(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:T}=od();return Ae.createElement(_z,null,Ae.createElement($e.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:_},C(Ez,{preset:T,className:b,...h,__css:N,children:i},void 0,!1,{fileName:Mo,lineNumber:366,columnNumber:22},globalThis)))});Zg.displayName="ModalContent";var nE=qe((e,t)=>{const{className:n,...i}=e,o=cm("chakra-modal__footer",n),u=fm(),c={display:"flex",alignItems:"center",justifyContent:"flex-end",...u.footer};return Ae.createElement($e.footer,{ref:t,...i,__css:c,className:o})});nE.displayName="ModalFooter";var rE=qe((e,t)=>{const{className:n,...i}=e,{headerId:o,setHeaderMounted:u}=od();k.exports.useEffect(()=>(u(!0),()=>u(!1)),[u]);const c=cm("chakra-modal__header",n),p=fm(),h={flex:0,...p.header};return Ae.createElement($e.header,{ref:t,className:c,id:o,...i,__css:h})});rE.displayName="ModalHeader";var foe=$e(el.div),Kg=qe((e,t)=>{const{className:n,transition:i,...o}=e,u=cm("chakra-modal__overlay",n),c=fm(),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...c.overlay},{motionPreset:h}=od();return C(foe,{...h==="none"?{}:zI,__css:p,ref:t,className:u,...o},void 0,!1,{fileName:Mo,lineNumber:450,columnNumber:26},globalThis)});Kg.displayName="ModalOverlay";function doe(e){const{leastDestructiveRef:t,...n}=e;return C(wv,{...n,initialFocusRef:t},void 0,!1,{fileName:Mo,lineNumber:464,columnNumber:26},this)}var poe=qe((e,t)=>C(Zg,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:Mo,lineNumber:469,columnNumber:70},globalThis)),[Cye,moe]=Tr(),hoe=$e(UI),voe=qe((e,t)=>{const{className:n,children:i,...o}=e,{getDialogProps:u,getDialogContainerProps:c,isOpen:p}=od(),h=u(o,t),v=c(),b=cm("chakra-modal__content",n),x=fm(),N={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{placement:T}=moe();return Ae.createElement($e.div,{...v,className:"chakra-modal__content-container",__css:_},C(_z,{children:C(hoe,{direction:T,in:p,className:b,...h,__css:N,children:i},void 0,!1,{fileName:Mo,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:Mo,lineNumber:547,columnNumber:22},globalThis))});voe.displayName="DrawerContent";function goe(e,t){const n=Ha(e);k.exports.useEffect(()=>{let i=null;const o=()=>n();return t!==null&&(i=window.setInterval(o,t)),()=>{i&&window.clearInterval(i)}},[t,n])}var sd="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",Tz=(...e)=>e.filter(Boolean).join(" "),c6=e=>e?!0:void 0;function hu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var boe=e=>C(ms,{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"},void 0,!1,{fileName:sd,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:sd,lineNumber:31,columnNumber:51},globalThis),yoe=e=>C(ms,{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"},void 0,!1,{fileName:sd,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:sd,lineNumber:38,columnNumber:49},globalThis);function xO(e,t,n,i){k.exports.useEffect(()=>{if(!e.current||!i)return;const o=e.current.ownerDocument.defaultView??window,u=Array.isArray(t)?t:[t],c=new o.MutationObserver(p=>{for(const h of p)h.type==="attributes"&&h.attributeName&&u.includes(h.attributeName)&&n(h)});return c.observe(e.current,{attributes:!0,attributeFilter:u}),()=>c.disconnect()})}var Soe=50,CO=300;function xoe(e,t){const[n,i]=k.exports.useState(!1),[o,u]=k.exports.useState(null),[c,p]=k.exports.useState(!0),h=k.exports.useRef(null),v=()=>clearTimeout(h.current);goe(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?Soe:null);const b=k.exports.useCallback(()=>{c&&e(),h.current=setTimeout(()=>{p(!1),i(!0),u("increment")},CO)},[e,c]),x=k.exports.useCallback(()=>{c&&t(),h.current=setTimeout(()=>{p(!1),i(!0),u("decrement")},CO)},[t,c]),N=k.exports.useCallback(()=>{p(!0),i(!1),v()},[]);return k.exports.useEffect(()=>()=>v(),[]),{up:b,down:x,stop:N,isSpinning:n}}var Coe=/^[Ee0-9+\-.]$/;function Noe(e){return Coe.test(e)}function woe(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function _oe(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:i=!0,min:o=Number.MIN_SAFE_INTEGER,max:u=Number.MAX_SAFE_INTEGER,step:c=1,isReadOnly:p,isDisabled:h,isRequired:v,isInvalid:b,pattern:x="[0-9]*(.[0-9]+)?",inputMode:N="decimal",allowMouseWheel:_,id:T,onChange:A,precision:M,name:z,"aria-describedby":P,"aria-label":I,"aria-labelledby":F,onFocus:$,onBlur:Y,onInvalid:Z,getAriaValueText:ue,isValidCharacter:ce,format:le,parse:ge,...Ye}=e,re=Ha($),ie=Ha(Y),Ce=Ha(Z),xe=Ha(ce??Noe),K=Ha(ue),be=xte(e),{update:Ne,increment:me,decrement:we}=be,[De,Pe]=k.exports.useState(!1),Ze=!(p||h),it=k.exports.useRef(null),bt=k.exports.useRef(null),Wt=k.exports.useRef(null),Xe=k.exports.useRef(null),ct=k.exports.useCallback(Oe=>Oe.split("").filter(xe).join(""),[xe]),wt=k.exports.useCallback(Oe=>ge?.(Oe)??Oe,[ge]),Bt=k.exports.useCallback(Oe=>(le?.(Oe)??Oe).toString(),[le]);oS(()=>{(be.valueAsNumber>u||be.valueAsNumber<o)&&Ce?.("rangeOverflow",Bt(be.value),be.valueAsNumber)},[be.valueAsNumber,be.value,Bt,Ce]),Eu(()=>{if(!it.current)return;if(it.current.value!=be.value){const qt=wt(it.current.value);be.setValue(ct(qt))}},[wt,ct]);const Ge=k.exports.useCallback((Oe=c)=>{Ze&&me(Oe)},[me,Ze,c]),Gt=k.exports.useCallback((Oe=c)=>{Ze&&we(Oe)},[we,Ze,c]),ye=xoe(Ge,Gt);xO(Wt,"disabled",ye.stop,ye.isSpinning),xO(Xe,"disabled",ye.stop,ye.isSpinning);const et=k.exports.useCallback(Oe=>{if(Oe.nativeEvent.isComposing)return;const En=wt(Oe.currentTarget.value);Ne(ct(En)),bt.current={start:Oe.currentTarget.selectionStart,end:Oe.currentTarget.selectionEnd}},[Ne,ct,wt]),_t=k.exports.useCallback(Oe=>{var qt;re?.(Oe),bt.current&&(Oe.target.selectionStart=bt.current.start??((qt=Oe.currentTarget.value)==null?void 0:qt.length),Oe.currentTarget.selectionEnd=bt.current.end??Oe.currentTarget.selectionStart)},[re]),lt=k.exports.useCallback(Oe=>{if(Oe.nativeEvent.isComposing)return;woe(Oe,xe)||Oe.preventDefault();const qt=xn(Oe)*c,En=Oe.key,at={ArrowUp:()=>Ge(qt),ArrowDown:()=>Gt(qt),Home:()=>Ne(o),End:()=>Ne(u)}[En];at&&(Oe.preventDefault(),at(Oe))},[xe,c,Ge,Gt,Ne,o,u]),xn=Oe=>{let qt=1;return(Oe.metaKey||Oe.ctrlKey)&&(qt=.1),Oe.shiftKey&&(qt=10),qt},$n=k.exports.useMemo(()=>{const Oe=K?.(be.value);if(Oe!=null)return Oe;const qt=be.value.toString();return qt||void 0},[be.value,K]),Ft=k.exports.useCallback(()=>{let Oe=be.value;Oe!==""&&(be.valueAsNumber<o&&(Oe=o),be.valueAsNumber>u&&(Oe=u),be.cast(Oe))},[be,u,o]),on=k.exports.useCallback(()=>{Pe(!1),n&&Ft()},[n,Pe,Ft]),Ln=k.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var Oe;(Oe=it.current)==null||Oe.focus()})},[t]),gn=k.exports.useCallback(Oe=>{Oe.preventDefault(),ye.up(),Ln()},[Ln,ye]),He=k.exports.useCallback(Oe=>{Oe.preventDefault(),ye.down(),Ln()},[Ln,ye]);B7(()=>it.current,"wheel",Oe=>{var qt;const je=(((qt=it.current)==null?void 0:qt.ownerDocument)??document).activeElement===it.current;if(!_||!je)return;Oe.preventDefault();const at=xn(Oe)*c,Tt=Math.sign(Oe.deltaY);Tt===-1?Ge(at):Tt===1&&Gt(at)},{passive:!1});const Je=k.exports.useCallback((Oe={},qt=null)=>{const En=h||i&&be.isAtMax;return{...Oe,ref:qr(qt,Wt),role:"button",tabIndex:-1,onPointerDown:hu(Oe.onPointerDown,je=>{En||gn(je)}),onPointerLeave:hu(Oe.onPointerLeave,ye.stop),onPointerUp:hu(Oe.onPointerUp,ye.stop),disabled:En,"aria-disabled":c6(En)}},[be.isAtMax,i,gn,ye.stop,h]),nn=k.exports.useCallback((Oe={},qt=null)=>{const En=h||i&&be.isAtMin;return{...Oe,ref:qr(qt,Xe),role:"button",tabIndex:-1,onPointerDown:hu(Oe.onPointerDown,je=>{En||He(je)}),onPointerLeave:hu(Oe.onPointerLeave,ye.stop),onPointerUp:hu(Oe.onPointerUp,ye.stop),disabled:En,"aria-disabled":c6(En)}},[be.isAtMin,i,He,ye.stop,h]),Ot=k.exports.useCallback((Oe={},qt=null)=>({name:z,inputMode:N,type:"text",pattern:x,"aria-labelledby":F,"aria-label":I,"aria-describedby":P,id:T,disabled:h,...Oe,readOnly:Oe.readOnly??p,"aria-readonly":Oe.readOnly??p,"aria-required":Oe.required??v,required:Oe.required??v,ref:qr(it,qt),value:Bt(be.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":u,"aria-valuenow":Number.isNaN(be.valueAsNumber)?void 0:be.valueAsNumber,"aria-invalid":c6(b??be.isOutOfRange),"aria-valuetext":$n,autoComplete:"off",autoCorrect:"off",onChange:hu(Oe.onChange,et),onKeyDown:hu(Oe.onKeyDown,lt),onFocus:hu(Oe.onFocus,_t,()=>Pe(!0)),onBlur:hu(Oe.onBlur,ie,on)}),[z,N,x,F,I,Bt,P,T,h,v,p,b,be.value,be.valueAsNumber,be.isOutOfRange,o,u,$n,et,lt,_t,ie,on]);return{value:Bt(be.value),valueAsNumber:be.valueAsNumber,isFocused:De,isDisabled:h,isReadOnly:p,getIncrementButtonProps:Je,getDecrementButtonProps:nn,getInputProps:Ot,htmlProps:Ye}}var[Eoe,o3]=Tr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[Toe,iE]=Tr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Rz=qe(function(t,n){const i=mo("NumberInput",t),o=pr(t),u=R_(o),{htmlProps:c,...p}=_oe(u),h=k.exports.useMemo(()=>p,[p]);return Ae.createElement(Toe,{value:h},Ae.createElement(Eoe,{value:i},Ae.createElement($e.div,{...c,ref:n,className:Tz("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});Rz.displayName="NumberInput";var Roe=qe(function(t,n){const i=o3();return Ae.createElement($e.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});Roe.displayName="NumberInputStepper";var Az=qe(function(t,n){const{getInputProps:i}=iE(),o=i(t,n),u=o3();return Ae.createElement($e.input,{...o,className:Tz("chakra-numberinput__field",t.className),__css:{width:"100%",...u.field}})});Az.displayName="NumberInputField";var kz=$e("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Lz=qe(function(t,n){const i=o3(),{getDecrementButtonProps:o}=iE(),u=o(t,n);return C(kz,{...u,__css:i.stepper,children:t.children??C(boe,{},void 0,!1,{fileName:sd,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:sd,lineNumber:509,columnNumber:26},this)});Lz.displayName="NumberDecrementStepper";var Oz=qe(function(t,n){const{getIncrementButtonProps:i}=iE(),o=i(t,n),u=o3();return C(kz,{...o,__css:u.stepper,children:t.children??C(yoe,{},void 0,!1,{fileName:sd,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:sd,lineNumber:519,columnNumber:26},this)});Oz.displayName="NumberIncrementStepper";var dS="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/popover/dist/index.esm.js",Sb=(...e)=>e.filter(Boolean).join(" ");function Aoe(e,...t){return koe(e)?e(...t):e}var koe=e=>typeof e=="function";function vu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function Loe(...e){return function(n){e.forEach(i=>{i?.(n)})}}var[Ooe,dm]=Tr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[Moe,xb]=Tr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),Wh={click:"click",hover:"hover"};function Doe(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:i,id:o,returnFocusOnClose:u=!0,autoFocus:c=!0,arrowSize:p,arrowShadowColor:h,trigger:v=Wh.click,openDelay:b=200,closeDelay:x=200,isLazy:N,lazyBehavior:_="unmount",computePositionOnMount:T,...A}=e,{isOpen:M,onClose:z,onOpen:P,onToggle:I}=PF(e),F=k.exports.useRef(null),$=k.exports.useRef(null),Y=k.exports.useRef(null),Z=k.exports.useRef(!1),ue=k.exports.useRef(!1);M&&(ue.current=!0);const[ce,le]=k.exports.useState(!1),[ge,Ye]=k.exports.useState(!1),re=k.exports.useId(),ie=o??re,[Ce,xe,K,be]=["popover-trigger","popover-content","popover-header","popover-body"].map(et=>`${et}-${ie}`),{referenceRef:Ne,getArrowProps:me,getPopperProps:we,getArrowInnerProps:De,forceUpdate:Pe}=DF({...A,enabled:M||!!T}),Ze=_te({isOpen:M,ref:Y});Lte({enabled:M,ref:$}),Ate(Y,{focusRef:$,visible:M,shouldFocus:u&&v===Wh.click}),Mte(Y,{focusRef:i,visible:M,shouldFocus:c&&v===Wh.click});const it=IF({wasSelected:ue.current,enabled:N,mode:_,isSelected:Ze.present}),bt=k.exports.useCallback((et={},_t=null)=>{const lt={...et,style:{...et.style,transformOrigin:yi.transformOrigin.varRef,[yi.arrowSize.var]:p?`${p}px`:void 0,[yi.arrowShadowColor.var]:h},ref:qr(Y,_t),children:it?et.children:null,id:xe,tabIndex:-1,role:"dialog",onKeyDown:vu(et.onKeyDown,xn=>{n&&xn.key==="Escape"&&z()}),onBlur:vu(et.onBlur,xn=>{const $n=NO(xn),Ft=f6(Y.current,$n),on=f6($.current,$n);M&&t&&(!Ft&&!on)&&z()}),"aria-labelledby":ce?K:void 0,"aria-describedby":ge?be:void 0};return v===Wh.hover&&(lt.role="tooltip",lt.onMouseEnter=vu(et.onMouseEnter,()=>{Z.current=!0}),lt.onMouseLeave=vu(et.onMouseLeave,xn=>{xn.nativeEvent.relatedTarget!==null&&(Z.current=!1,setTimeout(z,x))})),lt},[it,xe,ce,K,ge,be,v,n,z,M,t,x,h,p]),Wt=k.exports.useCallback((et={},_t=null)=>we({...et,style:{visibility:M?"visible":"hidden",...et.style}},_t),[M,we]),Xe=k.exports.useCallback((et,_t=null)=>({...et,ref:qr(_t,F,Ne)}),[F,Ne]),ct=k.exports.useRef(),wt=k.exports.useRef(),Bt=k.exports.useCallback(et=>{F.current==null&&Ne(et)},[Ne]),Ge=k.exports.useCallback((et={},_t=null)=>{const lt={...et,ref:qr($,_t,Bt),id:Ce,"aria-haspopup":"dialog","aria-expanded":M,"aria-controls":xe};return v===Wh.click&&(lt.onClick=vu(et.onClick,I)),v===Wh.hover&&(lt.onFocus=vu(et.onFocus,()=>{ct.current===void 0&&P()}),lt.onBlur=vu(et.onBlur,xn=>{const $n=NO(xn),Ft=!f6(Y.current,$n);M&&t&&Ft&&z()}),lt.onKeyDown=vu(et.onKeyDown,xn=>{xn.key==="Escape"&&z()}),lt.onMouseEnter=vu(et.onMouseEnter,()=>{Z.current=!0,ct.current=window.setTimeout(P,b)}),lt.onMouseLeave=vu(et.onMouseLeave,()=>{Z.current=!1,ct.current&&(clearTimeout(ct.current),ct.current=void 0),wt.current=window.setTimeout(()=>{Z.current===!1&&z()},x)})),lt},[Ce,M,xe,v,Bt,I,P,t,z,b,x]);k.exports.useEffect(()=>()=>{ct.current&&clearTimeout(ct.current),wt.current&&clearTimeout(wt.current)},[]);const Gt=k.exports.useCallback((et={},_t=null)=>({...et,id:K,ref:qr(_t,lt=>{le(!!lt)})}),[K]),ye=k.exports.useCallback((et={},_t=null)=>({...et,id:be,ref:qr(_t,lt=>{Ye(!!lt)})}),[be]);return{forceUpdate:Pe,isOpen:M,onAnimationComplete:Ze.onComplete,onClose:z,getAnchorProps:Xe,getArrowProps:me,getArrowInnerProps:De,getPopoverPositionerProps:Wt,getPopoverProps:bt,getTriggerProps:Ge,getHeaderProps:Gt,getBodyProps:ye}}function f6(e,t){return e===t||e?.contains(t)}function NO(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function aE(e){const t=mo("Popover",e),{children:n,...i}=pr(e),o=PS(),u=Doe({...i,direction:o.direction});return C(Ooe,{value:u,children:C(Moe,{value:t,children:Aoe(n,{isOpen:u.isOpen,onClose:u.onClose,forceUpdate:u.forceUpdate})},void 0,!1,{fileName:dS,lineNumber:325,columnNumber:22},this)},void 0,!1,{fileName:dS,lineNumber:323,columnNumber:26},this)}aE.displayName="Popover";function oE(e){const{bg:t,bgColor:n,backgroundColor:i}=e,{getArrowProps:o,getArrowInnerProps:u}=dm(),c=xb(),p=t??n??i;return Ae.createElement($e.div,{...o(),className:"chakra-popover__arrow-positioner"},Ae.createElement($e.div,{className:Sb("chakra-popover__arrow",e.className),...u(e),__css:{...c.arrow,"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0}}))}oE.displayName="PopoverArrow";var Poe=qe(function(t,n){const{getBodyProps:i}=dm(),o=xb();return Ae.createElement($e.div,{...i(t,n),className:Sb("chakra-popover__body",t.className),__css:o.body})});Poe.displayName="PopoverBody";var Ioe=qe(function(t,n){const{onClose:i}=dm(),o=xb();return C(t3,{size:"sm",onClick:i,className:Sb("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t},void 0,!1,{fileName:dS,lineNumber:384,columnNumber:26},this)});Ioe.displayName="PopoverCloseButton";function Foe(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var zoe={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Boe=el($e.section),sE=qe(function(t,n){const{isOpen:i}=dm();return Ae.createElement(Boe,{ref:n,variants:Foe(t.variants),...t,initial:!1,animate:i?"enter":"exit"})});sE.defaultProps={variants:zoe};sE.displayName="PopoverTransition";var lE=qe(function(t,n){const{rootProps:i,...o}=t,{getPopoverProps:u,getPopoverPositionerProps:c,onAnimationComplete:p}=dm(),h=xb(),v={position:"relative",display:"flex",flexDirection:"column",...h.content};return Ae.createElement($e.div,{...c(i),__css:h.popper,className:"chakra-popover__popper"},C(sE,{...u(o,n),onAnimationComplete:Loe(p,o.onAnimationComplete),className:Sb("chakra-popover__content",t.className),__css:v},void 0,!1,{fileName:dS,lineNumber:470,columnNumber:22},this))});lE.displayName="PopoverContent";var Mz=qe(function(t,n){const{getHeaderProps:i}=dm(),o=xb();return Ae.createElement($e.header,{...i(t,n),className:Sb("chakra-popover__header",t.className),__css:o.header})});Mz.displayName="PopoverHeader";function uE(e){const t=k.exports.Children.only(e.children),{getTriggerProps:n}=dm();return k.exports.cloneElement(t,n(t.props,t.ref))}uE.displayName="PopoverTrigger";var wO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function Uoe(e,t,n){return(e-t)*100/(n-t)}ob({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});ob({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var $oe=ob({"0%":{left:"-40%"},"100%":{left:"100%"}}),joe=ob({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Voe(e){const{value:t=0,min:n,max:i,valueText:o,getValueText:u,isIndeterminate:c}=e,p=Uoe(t,n,i);return{bind:{"data-indeterminate":c?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":c?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof u=="function"?u(t,p):o})(),role:"progressbar"},percent:p,value:t}}var[Hoe,Woe]=Tr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Goe=e=>{const{min:t,max:n,value:i,isIndeterminate:o,...u}=e,c=Voe({value:i,min:t,max:n,isIndeterminate:o}),p=Woe(),h={height:"100%",...p.filledTrack};return Ae.createElement($e.div,{style:{width:`${c.percent}%`,...u.style},...c.bind,...u,__css:h})},Dz=e=>{var t;const{value:n,min:i=0,max:o=100,hasStripe:u,isAnimated:c,children:p,borderRadius:h,isIndeterminate:v,"aria-label":b,"aria-labelledby":x,...N}=pr(e),_=mo("Progress",e),T=h??((t=_.track)==null?void 0:t.borderRadius),A={animation:`${joe} 1s linear infinite`},P={...!v&&u&&c&&A,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${$oe} 1s ease infinite normal none running`}},I={overflow:"hidden",position:"relative",..._.track};return Ae.createElement($e.div,{borderRadius:T,__css:I,...N},C(Hoe,{value:_,children:[C(Goe,{"aria-label":b,"aria-labelledby":x,min:i,max:o,value:n,isIndeterminate:v,css:P,borderRadius:T},void 0,!1,{fileName:wO,lineNumber:232,columnNumber:22},globalThis),p]},void 0,!0,{fileName:wO,lineNumber:230,columnNumber:22},globalThis))};Dz.displayName="Progress";var Yoe=$e("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Yoe.displayName="CircularProgressLabel";var rm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",qoe=(...e)=>e.filter(Boolean).join(" "),Zoe=e=>e?"":void 0;function Koe(e,t){const n={},i={};for(const[o,u]of Object.entries(e))t.includes(o)?n[o]=u:i[o]=u;return[n,i]}var Pz=qe(function(t,n){const{children:i,placeholder:o,className:u,...c}=t;return Ae.createElement($e.select,{...c,ref:n,className:qoe("chakra-select",u)},o&&C("option",{value:"",children:o},void 0,!1,{fileName:rm,lineNumber:42,columnNumber:37},this),i)});Pz.displayName="SelectField";var Iz=qe((e,t)=>{var n;const i=mo("Select",e),{rootProps:o,placeholder:u,icon:c,color:p,height:h,h:v,minH:b,minHeight:x,iconColor:N,iconSize:_,...T}=pr(e),[A,M]=Koe(T,_G),z=T_(M),P={width:"100%",height:"fit-content",position:"relative",color:p},I={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(n=i.field)==null?void 0:n._focus}};return Ae.createElement($e.div,{className:"chakra-select__wrapper",__css:P,...A,...o},C(Pz,{ref:t,height:v??h,minH:b??x,placeholder:u,...z,__css:I,children:e.children},void 0,!1,{fileName:rm,lineNumber:86,columnNumber:22},globalThis),C(Fz,{"data-disabled":Zoe(z.disabled),...(N||p)&&{color:N||p},__css:i.icon,..._&&{fontSize:_},children:c},void 0,!1,{fileName:rm,lineNumber:93,columnNumber:39},globalThis))});Iz.displayName="Select";var Xoe=e=>C("svg",{viewBox:"0 0 24 24",...e,children:C("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:rm,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:rm,lineNumber:101,columnNumber:46},globalThis),Qoe=$e("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Fz=e=>{const{children:t=C(Xoe,{},void 0,!1,{fileName:rm,lineNumber:120,columnNumber:38},globalThis),...n}=e,i=k.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return C(Qoe,{...n,className:"chakra-select__icon-wrapper",children:k.exports.isValidElement(t)?i:null},void 0,!1,{fileName:rm,lineNumber:132,columnNumber:26},globalThis)};Fz.displayName="SelectIcon";var Joe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",ese=(...e)=>e.filter(Boolean).join(" "),_O=e=>e?"":void 0,s3=qe(function(t,n){const i=mo("Switch",t),{spacing:o="0.5rem",children:u,...c}=pr(t),{state:p,getInputProps:h,getCheckboxProps:v,getRootProps:b,getLabelProps:x}=rF(c),N=k.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),_=k.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),T=k.exports.useMemo(()=>({userSelect:"none",marginStart:o,...i.label}),[o,i.label]);return Ae.createElement($e.label,{...b(),className:ese("chakra-switch",t.className),__css:N},C("input",{className:"chakra-switch__input",...h({},n)},void 0,!1,{fileName:Joe,lineNumber:53,columnNumber:22},this),Ae.createElement($e.span,{...v(),className:"chakra-switch__track",__css:_},Ae.createElement($e.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":_O(p.isChecked),"data-hover":_O(p.isHovered)})),u&&Ae.createElement($e.span,{className:"chakra-switch__label",...x(),__css:T},u))});s3.displayName="Switch";var Iv=(...e)=>e.filter(Boolean).join(" ");function e8(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[tse,zz,nse,rse]=cP();function ise(e){const{defaultIndex:t,onChange:n,index:i,isManual:o,isLazy:u,lazyBehavior:c="unmount",orientation:p="horizontal",direction:h="ltr",...v}=e,[b,x]=k.exports.useState(t??0),[N,_]=fP({defaultValue:t??0,value:i,onChange:n});k.exports.useEffect(()=>{i!=null&&x(i)},[i]);const T=nse(),A=k.exports.useId();return{id:`tabs-${e.id??A}`,selectedIndex:N,focusedIndex:b,setSelectedIndex:_,setFocusedIndex:x,isManual:o,isLazy:u,lazyBehavior:c,orientation:p,descendants:T,direction:h,htmlProps:v}}var[ase,Cb]=Tr({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function ose(e){const{focusedIndex:t,orientation:n,direction:i}=Cb(),o=zz(),u=k.exports.useCallback(c=>{const p=()=>{var P;const I=o.nextEnabled(t);I&&((P=I.node)==null||P.focus())},h=()=>{var P;const I=o.prevEnabled(t);I&&((P=I.node)==null||P.focus())},v=()=>{var P;const I=o.firstEnabled();I&&((P=I.node)==null||P.focus())},b=()=>{var P;const I=o.lastEnabled();I&&((P=I.node)==null||P.focus())},x=n==="horizontal",N=n==="vertical",_=c.key,T=i==="ltr"?"ArrowLeft":"ArrowRight",A=i==="ltr"?"ArrowRight":"ArrowLeft",z={[T]:()=>x&&h(),[A]:()=>x&&p(),ArrowDown:()=>N&&p(),ArrowUp:()=>N&&h(),Home:v,End:b}[_];z&&(c.preventDefault(),z(c))},[o,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:e8(e.onKeyDown,u)}}function sse(e){const{isDisabled:t,isFocusable:n,...i}=e,{setSelectedIndex:o,isManual:u,id:c,setFocusedIndex:p,selectedIndex:h}=Cb(),{index:v,register:b}=rse({disabled:t&&!n}),x=v===h,N=()=>{o(v)},_=()=>{p(v),!u&&!(t&&n)&&o(v)},T=vne({...i,ref:qr(b,e.ref),isDisabled:t,isFocusable:n,onClick:e8(e.onClick,N)}),A="button";return{...T,id:Bz(c,v),role:"tab",tabIndex:x?0:-1,type:A,"aria-selected":x,"aria-controls":Uz(c,v),onFocus:t?void 0:e8(e.onFocus,_)}}var[lse,use]=Tr({});function cse(e){const t=Cb(),{id:n,selectedIndex:i}=t,u=QS(e.children).map((c,p)=>k.exports.createElement(lse,{key:p,value:{isSelected:p===i,id:Uz(n,p),tabId:Bz(n,p),selectedIndex:i}},c));return{...e,children:u}}function fse(e){const{children:t,...n}=e,{isLazy:i,lazyBehavior:o}=Cb(),{isSelected:u,id:c,tabId:p}=use(),h=k.exports.useRef(!1);u&&(h.current=!0);const v=IF({wasSelected:h.current,isSelected:u,enabled:i,mode:o});return{tabIndex:0,...n,children:v?t:null,role:"tabpanel","aria-labelledby":p,hidden:!u,id:c}}function dse(){const e=Cb(),t=zz(),{selectedIndex:n,orientation:i}=e,o=i==="horizontal",u=i==="vertical",[c,p]=k.exports.useState(()=>{if(o)return{left:0,width:0};if(u)return{top:0,height:0}}),[h,v]=k.exports.useState(!1);return Eu(()=>{if(n==null)return;const b=t.item(n);if(b==null)return;o&&p({left:b.node.offsetLeft,width:b.node.offsetWidth}),u&&p({top:b.node.offsetTop,height:b.node.offsetHeight});const x=requestAnimationFrame(()=>{v(!0)});return()=>{x&&cancelAnimationFrame(x)}},[n,o,u,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:h?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...c}}function Bz(e,t){return`${e}--tab-${t}`}function Uz(e,t){return`${e}--tabpanel-${t}`}var[pse,Nb]=Tr({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),$z=qe(function(t,n){const i=mo("Tabs",t),{children:o,className:u,...c}=pr(t),{htmlProps:p,descendants:h,...v}=ise(c),b=k.exports.useMemo(()=>v,[v]),{isFitted:x,...N}=p;return Ae.createElement(tse,{value:h},Ae.createElement(ase,{value:b},Ae.createElement(pse,{value:i},Ae.createElement($e.div,{className:Iv("chakra-tabs",u),ref:n,...N,__css:i.root},o))))});$z.displayName="Tabs";var mse=qe(function(t,n){const i=dse(),o={...t.style,...i},u=Nb();return Ae.createElement($e.div,{ref:n,...t,className:Iv("chakra-tabs__tab-indicator",t.className),style:o,__css:u.indicator})});mse.displayName="TabIndicator";var hse=qe(function(t,n){const i=ose({...t,ref:n}),o=Nb(),u={display:"flex",...o.tablist};return Ae.createElement($e.div,{...i,className:Iv("chakra-tabs__tablist",t.className),__css:u})});hse.displayName="TabList";var jz=qe(function(t,n){const i=fse({...t,ref:n}),o=Nb();return Ae.createElement($e.div,{outline:"0",...i,className:Iv("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});jz.displayName="TabPanel";var Vz=qe(function(t,n){const i=cse(t),o=Nb();return Ae.createElement($e.div,{...i,width:"100%",ref:n,className:Iv("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});Vz.displayName="TabPanels";var Hz=qe(function(t,n){const i=Nb(),o=sse({...t,ref:n}),u={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...i.tab};return Ae.createElement($e.button,{...o,className:Iv("chakra-tabs__tab",t.className),__css:u})});Hz.displayName="Tab";var vse=(...e)=>e.filter(Boolean).join(" ");function gse(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}var bse=["h","minH","height","minHeight"],Wz=qe((e,t)=>{const n=po("Textarea",e),{className:i,rows:o,...u}=pr(e),c=T_(u),p=o?gse(n,bse):n;return Ae.createElement($e.textarea,{ref:t,rows:o,...c,className:vse("chakra-textarea",i),__css:p})});Wz.displayName="Textarea";function dr(e,t={}){let n=!1;function i(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...b){i();for(const x of b)t[x]=h(x);return dr(e,t)}function u(...b){for(const x of b)x in t||(t[x]=h(x));return dr(e,t)}function c(){return Object.fromEntries(Object.entries(t).map(([x,N])=>[x,N.selector]))}function p(){return Object.fromEntries(Object.entries(t).map(([x,N])=>[x,N.className]))}function h(b){const _=`chakra-${(["container","root"].includes(b??"")?[e]:[e,b]).filter(Boolean).join("__")}`;return{className:_,selector:`.${_}`,toString:()=>b}}return{parts:o,toPart:h,extend:u,selectors:c,classnames:p,get keys(){return Object.keys(t)},__type:{}}}var yse=dr("accordion").parts("root","container","button","panel").extend("icon"),Sse=dr("alert").parts("title","description","container").extend("icon","spinner"),xse=dr("avatar").parts("label","badge","container").extend("excessLabel","group"),Cse=dr("breadcrumb").parts("link","item","container").extend("separator");dr("button").parts();var Nse=dr("checkbox").parts("control","icon","container").extend("label");dr("progress").parts("track","filledTrack").extend("label");var wse=dr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),_se=dr("editable").parts("preview","input","textarea"),Ese=dr("form").parts("container","requiredIndicator","helperText"),Tse=dr("formError").parts("text","icon"),Rse=dr("input").parts("addon","field","element"),Ase=dr("list").parts("container","item","icon"),kse=dr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Lse=dr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Ose=dr("numberinput").parts("root","field","stepperGroup","stepper");dr("pininput").parts("field");var Mse=dr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Dse=dr("progress").parts("label","filledTrack","track"),Pse=dr("radio").parts("container","control","label"),Ise=dr("select").parts("field","icon"),Fse=dr("slider").parts("container","track","thumb","filledTrack","mark"),zse=dr("stat").parts("container","label","helpText","number","icon"),Bse=dr("switch").parts("container","track","thumb"),Use=dr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),$se=dr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),jse=dr("tag").parts("container","label","closeButton");function Na(e,t){Vse(e)&&(e="100%");var n=Hse(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Q5(e){return Math.min(1,Math.max(0,e))}function Vse(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Hse(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Gz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function J5(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zp(e){return e.length===1?"0"+e:String(e)}function Wse(e,t,n){return{r:Na(e,255)*255,g:Na(t,255)*255,b:Na(n,255)*255}}function EO(e,t,n){e=Na(e,255),t=Na(t,255),n=Na(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),u=0,c=0,p=(i+o)/2;if(i===o)c=0,u=0;else{var h=i-o;switch(c=p>.5?h/(2-i-o):h/(i+o),i){case e:u=(t-n)/h+(t<n?6:0);break;case t:u=(n-e)/h+2;break;case n:u=(e-t)/h+4;break}u/=6}return{h:u,s:c,l:p}}function d6(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gse(e,t,n){var i,o,u;if(e=Na(e,360),t=Na(t,100),n=Na(n,100),t===0)o=n,u=n,i=n;else{var c=n<.5?n*(1+t):n+t-n*t,p=2*n-c;i=d6(p,c,e+1/3),o=d6(p,c,e),u=d6(p,c,e-1/3)}return{r:i*255,g:o*255,b:u*255}}function TO(e,t,n){e=Na(e,255),t=Na(t,255),n=Na(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),u=0,c=i,p=i-o,h=i===0?0:p/i;if(i===o)u=0;else{switch(i){case e:u=(t-n)/p+(t<n?6:0);break;case t:u=(n-e)/p+2;break;case n:u=(e-t)/p+4;break}u/=6}return{h:u,s:h,v:c}}function Yse(e,t,n){e=Na(e,360)*6,t=Na(t,100),n=Na(n,100);var i=Math.floor(e),o=e-i,u=n*(1-t),c=n*(1-o*t),p=n*(1-(1-o)*t),h=i%6,v=[n,c,u,u,p,n][h],b=[p,n,n,c,u,u][h],x=[u,u,p,n,n,c][h];return{r:v*255,g:b*255,b:x*255}}function RO(e,t,n,i){var o=[Zp(Math.round(e).toString(16)),Zp(Math.round(t).toString(16)),Zp(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function qse(e,t,n,i,o){var u=[Zp(Math.round(e).toString(16)),Zp(Math.round(t).toString(16)),Zp(Math.round(n).toString(16)),Zp(Zse(i))];return o&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))&&u[3].startsWith(u[3].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function Zse(e){return Math.round(parseFloat(e)*255).toString(16)}function AO(e){return ls(e)/255}function ls(e){return parseInt(e,16)}function Kse(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var t8={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Xse(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,u=null,c=!1,p=!1;return typeof e=="string"&&(e=ele(e)),typeof e=="object"&&(wc(e.r)&&wc(e.g)&&wc(e.b)?(t=Wse(e.r,e.g,e.b),c=!0,p=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wc(e.h)&&wc(e.s)&&wc(e.v)?(i=J5(e.s),o=J5(e.v),t=Yse(e.h,i,o),c=!0,p="hsv"):wc(e.h)&&wc(e.s)&&wc(e.l)&&(i=J5(e.s),u=J5(e.l),t=Gse(e.h,i,u),c=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Gz(n),{ok:c,format:e.format||p,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Qse="[-\\+]?\\d+%?",Jse="[-\\+]?\\d*\\.\\d+%?",Jf="(?:".concat(Jse,")|(?:").concat(Qse,")"),p6="[\\s|\\(]+(".concat(Jf,")[,|\\s]+(").concat(Jf,")[,|\\s]+(").concat(Jf,")\\s*\\)?"),m6="[\\s|\\(]+(".concat(Jf,")[,|\\s]+(").concat(Jf,")[,|\\s]+(").concat(Jf,")[,|\\s]+(").concat(Jf,")\\s*\\)?"),Il={CSS_UNIT:new RegExp(Jf),rgb:new RegExp("rgb"+p6),rgba:new RegExp("rgba"+m6),hsl:new RegExp("hsl"+p6),hsla:new RegExp("hsla"+m6),hsv:new RegExp("hsv"+p6),hsva:new RegExp("hsva"+m6),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ele(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(t8[e])e=t8[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Il.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Il.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Il.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Il.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Il.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Il.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Il.hex8.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),a:AO(n[4]),format:t?"name":"hex8"}:(n=Il.hex6.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),format:t?"name":"hex"}:(n=Il.hex4.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),a:AO(n[4]+n[4]),format:t?"name":"hex8"}:(n=Il.hex3.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wc(e){return Boolean(Il.CSS_UNIT.exec(String(e)))}var wb=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=Kse(t)),this.originalInput=t;var o=Xse(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,i,o,u=t.r/255,c=t.g/255,p=t.b/255;return u<=.03928?n=u/12.92:n=Math.pow((u+.055)/1.055,2.4),c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),p<=.03928?o=p/12.92:o=Math.pow((p+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Gz(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=TO(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=TO(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=EO(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=EO(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),RO(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),qse(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Na(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Na(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+RO(this.r,this.g,this.b,!1),n=0,i=Object.entries(t8);n<i.length;n++){var o=i[n],u=o[0],c=o[1];if(t===c)return u}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var i=!1,o=this.a<1&&this.a>=0,u=!n&&o&&(t.startsWith("hex")||t==="name");return u?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Q5(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Q5(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Q5(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Q5(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),u=n/100,c={r:(o.r-i.r)*u+i.r,g:(o.g-i.g)*u+i.g,b:(o.b-i.b)*u+i.b,a:(o.a-i.a)*u+i.a};return new e(c)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,u=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,u.push(new e(i));return u},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),i=n.h,o=n.s,u=n.v,c=[],p=1/t;t--;)c.push(new e({h:i,s:o,v:u})),u=(u+p)%1;return c},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,o=[this],u=360/t,c=1;c<t;c++)o.push(new e({h:(i+c*u)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Yz(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(Yz(e));return e.count=t,n}var i=tle(e.hue,e.seed),o=nle(i,e),u=rle(i,o,e),c={h:i,s:o,v:u};return e.alpha!==void 0&&(c.a=e.alpha),new wb(c)}function tle(e,t){var n=ale(e),i=pS(n,t);return i<0&&(i=360+i),i}function nle(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return pS([0,100],t.seed);var n=qz(e).saturationRange,i=n[0],o=n[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=o-10;break;case"light":o=55;break}return pS([i,o],t.seed)}function rle(e,t,n){var i=ile(e,t),o=100;switch(n.luminosity){case"dark":o=i+20;break;case"light":i=(o+i)/2;break;case"random":i=0,o=100;break}return pS([i,o],n.seed)}function ile(e,t){for(var n=qz(e).lowerBounds,i=0;i<n.length-1;i++){var o=n[i][0],u=n[i][1],c=n[i+1][0],p=n[i+1][1];if(t>=o&&t<=c){var h=(p-u)/(c-o),v=u-h*o;return h*t+v}}return 0}function ale(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=Kz.find(function(c){return c.name===e});if(n){var i=Zz(n);if(i.hueRange)return i.hueRange}var o=new wb(e);if(o.isValid){var u=o.toHsv().h;return[u,u]}}return[0,360]}function qz(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=Kz;t<n.length;t++){var i=n[t],o=Zz(i);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function pS(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(i+o*(n-i))}function Zz(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],i=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[i,o]}}var Kz=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function ole(e,t,n,i,o){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:o;return e===o?n:e}var sle=e=>Object.keys(e).length===0,Bi=(e,t,n)=>{const i=ole(e,`colors.${t}`,t),{isValid:o}=new wb(i);return o?i:n},lle=e=>t=>{const n=Bi(t,e);return new wb(n).isDark()?"dark":"light"},ule=e=>t=>lle(e)(t)==="dark",_v=(e,t)=>n=>{const i=Bi(n,e);return new wb(i).setAlpha(t).toRgbString()};function kO(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function cle(e){const t=Yz().toHexString();return!e||sle(e)?t:e.string&&e.colors?dle(e.string,e.colors):e.string&&!e.colors?fle(e.string):e.colors&&!e.string?ple(e.colors):t}function fle(e){let t=0;if(e.length===0)return t.toString();for(let i=0;i<e.length;i+=1)t=e.charCodeAt(i)+((t<<5)-t),t=t&t;let n="#";for(let i=0;i<3;i+=1)n+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return n}function dle(e,t){let n=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)n=e.charCodeAt(i)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function ple(e){return e[Math.floor(Math.random()*e.length)]}function Be(e,t){return n=>n.colorMode==="dark"?t:e}function cE(e){const{orientation:t,vertical:n,horizontal:i}=e;return t?t==="vertical"?n:i:{}}function mle(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Xz(e){return mle(e)&&e.reference?e.reference:String(e)}var l3=(e,...t)=>t.map(Xz).join(` ${e} `).replace(/calc/g,""),LO=(...e)=>`calc(${l3("+",...e)})`,OO=(...e)=>`calc(${l3("-",...e)})`,n8=(...e)=>`calc(${l3("*",...e)})`,MO=(...e)=>`calc(${l3("/",...e)})`,DO=e=>{const t=Xz(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:n8(t,-1)},kc=Object.assign(e=>({add:(...t)=>kc(LO(e,...t)),subtract:(...t)=>kc(OO(e,...t)),multiply:(...t)=>kc(n8(e,...t)),divide:(...t)=>kc(MO(e,...t)),negate:()=>kc(DO(e)),toString:()=>e.toString()}),{add:LO,subtract:OO,multiply:n8,divide:MO,negate:DO});function hle(e){return!Number.isInteger(parseFloat(e.toString()))}function vle(e,t="-"){return e.replace(/\s+/g,t)}function Qz(e){const t=vle(e.toString());return t.includes("\\.")?e:hle(e)?t.replace(".","\\."):e}function gle(e,t=""){return[t,Qz(e)].filter(Boolean).join("-")}function ble(e,t){return`var(${Qz(e)}${t?`, ${t}`:""})`}function yle(e,t=""){return`--${gle(e,t)}`}function Fo(e,t){const n=yle(e,t?.prefix);return{variable:n,reference:ble(n,Sle(t?.fallback))}}function Sle(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:xle,defineMultiStyleConfig:Cle}=Fr(yse.keys),Nle={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},wle={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},_le={pt:"2",px:"4",pb:"5"},Ele={fontSize:"1.25em"},Tle=xle({container:Nle,button:wle,panel:_le,icon:Ele}),Rle=Cle({baseStyle:Tle}),{definePartsStyle:_b,defineMultiStyleConfig:Ale}=Fr(Sse.keys),Dc=cd("alert-fg"),Eb=cd("alert-bg"),kle=_b({container:{bg:Eb.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Dc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Dc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function fE(e){const{theme:t,colorScheme:n}=e,i=Bi(t,`${n}.100`,n),o=_v(`${n}.200`,.16)(t);return Be(i,o)(e)}var Lle=_b(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Eb.variable]:fE(e),[Dc.variable]:`colors.${n}`}}}),Ole=_b(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Eb.variable]:fE(e),[Dc.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Dc.reference}}}),Mle=_b(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Eb.variable]:fE(e),[Dc.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Dc.reference}}}),Dle=_b(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e),i=Be("white","gray.900")(e);return{container:{[Eb.variable]:`colors.${n}`,[Dc.variable]:`colors.${i}`,color:Dc.reference}}}),Ple={subtle:Lle,"left-accent":Ole,"top-accent":Mle,solid:Dle},Ile=Ale({baseStyle:kle,variants:Ple,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Jz={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Fle={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},zle={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Ble={...Jz,...Fle,container:zle},eB=Ble,Ule=e=>typeof e=="function";function ai(e,...t){return Ule(e)?e(...t):e}var{definePartsStyle:tB,defineMultiStyleConfig:$le}=Fr(xse.keys),jle=e=>({borderRadius:"full",border:"0.2em solid",borderColor:Be("white","gray.800")(e)}),Vle=e=>({bg:Be("gray.200","whiteAlpha.400")(e)}),Hle=e=>{const{name:t,theme:n}=e,i=t?cle({string:t}):"gray.400",o=ule(i)(n);let u="white";o||(u="gray.800");const c=Be("white","gray.800")(e);return{bg:i,color:u,borderColor:c,verticalAlign:"top"}},Wle=tB(e=>({badge:ai(jle,e),excessLabel:ai(Vle,e),container:ai(Hle,e)}));function Uf(e){const t=e!=="100%"?eB[e]:void 0;return tB({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var Gle={"2xs":Uf(4),xs:Uf(6),sm:Uf(8),md:Uf(12),lg:Uf(16),xl:Uf(24),"2xl":Uf(32),full:Uf("100%")},Yle=$le({baseStyle:Wle,sizes:Gle,defaultProps:{size:"md"}}),qle={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},Zle=e=>{const{colorScheme:t,theme:n}=e,i=_v(`${t}.500`,.6)(n);return{bg:Be(`${t}.500`,i)(e),color:Be("white","whiteAlpha.800")(e)}},Kle=e=>{const{colorScheme:t,theme:n}=e,i=_v(`${t}.200`,.16)(n);return{bg:Be(`${t}.100`,i)(e),color:Be(`${t}.800`,`${t}.200`)(e)}},Xle=e=>{const{colorScheme:t,theme:n}=e,i=_v(`${t}.200`,.8)(n),o=Bi(n,`${t}.500`),u=Be(o,i)(e);return{color:u,boxShadow:`inset 0 0 0px 1px ${u}`}},Qle={solid:Zle,subtle:Kle,outline:Xle},Tg={baseStyle:qle,variants:Qle,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Jle,definePartsStyle:eue}=Fr(Cse.keys),tue={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},nue=eue({link:tue}),rue=Jle({baseStyle:nue}),iue={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},nB=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:Be("inherit","whiteAlpha.900")(e),_hover:{bg:Be("gray.100","whiteAlpha.200")(e)},_active:{bg:Be("gray.200","whiteAlpha.300")(e)}};const i=_v(`${t}.200`,.12)(n),o=_v(`${t}.200`,.24)(n);return{color:Be(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Be(`${t}.50`,i)(e)},_active:{bg:Be(`${t}.100`,o)(e)}}},aue=e=>{const{colorScheme:t}=e,n=Be("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...ai(nB,e)}},oue={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},sue=e=>{const{colorScheme:t}=e;if(t==="gray"){const p=Be("gray.100","whiteAlpha.200")(e);return{bg:p,_hover:{bg:Be("gray.200","whiteAlpha.300")(e),_disabled:{bg:p}},_active:{bg:Be("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:i="white",hoverBg:o=`${t}.600`,activeBg:u=`${t}.700`}=oue[t]??{},c=Be(n,`${t}.200`)(e);return{bg:c,color:Be(i,"gray.800")(e),_hover:{bg:Be(o,`${t}.300`)(e),_disabled:{bg:c}},_active:{bg:Be(u,`${t}.400`)(e)}}},lue=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Be(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Be(`${t}.700`,`${t}.500`)(e)}}},uue={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},cue={ghost:nB,outline:aue,solid:sue,link:lue,unstyled:uue},fue={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},due={baseStyle:iue,variants:cue,sizes:fue,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:T4,defineMultiStyleConfig:pue}=Fr(Nse.keys),Rg=cd("checkbox-size"),mue=e=>{const{colorScheme:t}=e;return{w:Rg.reference,h:Rg.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Be(`${t}.500`,`${t}.200`)(e),borderColor:Be(`${t}.500`,`${t}.200`)(e),color:Be("white","gray.900")(e),_hover:{bg:Be(`${t}.600`,`${t}.300`)(e),borderColor:Be(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Be("gray.200","transparent")(e),bg:Be("gray.200","whiteAlpha.300")(e),color:Be("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Be(`${t}.500`,`${t}.200`)(e),borderColor:Be(`${t}.500`,`${t}.200`)(e),color:Be("white","gray.900")(e)},_disabled:{bg:Be("gray.100","whiteAlpha.100")(e),borderColor:Be("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Be("red.500","red.300")(e)}}},hue={_disabled:{cursor:"not-allowed"}},vue={userSelect:"none",_disabled:{opacity:.4}},gue={transitionProperty:"transform",transitionDuration:"normal"},bue=T4(e=>({icon:gue,container:hue,control:ai(mue,e),label:vue})),yue={sm:T4({control:{[Rg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:T4({control:{[Rg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:T4({control:{[Rg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},mS=pue({baseStyle:bue,sizes:yue,defaultProps:{size:"md",colorScheme:"blue"}}),Ag=Fo("close-button-size"),Sue=e=>{const t=Be("blackAlpha.100","whiteAlpha.100")(e),n=Be("blackAlpha.200","whiteAlpha.200")(e);return{w:[Ag.reference],h:[Ag.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},xue={lg:{[Ag.variable]:"sizes.10",fontSize:"md"},md:{[Ag.variable]:"sizes.8",fontSize:"xs"},sm:{[Ag.variable]:"sizes.6",fontSize:"2xs"}},Cue={baseStyle:Sue,sizes:xue,defaultProps:{size:"md"}},{variants:Nue,defaultProps:wue}=Tg,_ue={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Eue={baseStyle:_ue,variants:Nue,defaultProps:wue},Tue={w:"100%",mx:"auto",maxW:"prose",px:"4"},Rue={baseStyle:Tue},Aue={opacity:.6,borderColor:"inherit"},kue={borderStyle:"solid"},Lue={borderStyle:"dashed"},Oue={solid:kue,dashed:Lue},Mue={baseStyle:Aue,variants:Oue,defaultProps:{variant:"solid"}},{definePartsStyle:r8,defineMultiStyleConfig:Due}=Fr(wse.keys);function Gh(e){return r8(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Pue={bg:"blackAlpha.600",zIndex:"overlay"},Iue={display:"flex",zIndex:"modal",justifyContent:"center"},Fue=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:Be("white","gray.700")(e),color:"inherit",boxShadow:Be("lg","dark-lg")(e)}},zue={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Bue={position:"absolute",top:"2",insetEnd:"3"},Uue={px:"6",py:"2",flex:"1",overflow:"auto"},$ue={px:"6",py:"4"},jue=r8(e=>({overlay:Pue,dialogContainer:Iue,dialog:ai(Fue,e),header:zue,closeButton:Bue,body:Uue,footer:$ue})),Vue={xs:Gh("xs"),sm:Gh("md"),md:Gh("lg"),lg:Gh("2xl"),xl:Gh("4xl"),full:Gh("full")},Hue=Due({baseStyle:jue,sizes:Vue,defaultProps:{size:"xs"}}),{definePartsStyle:Wue,defineMultiStyleConfig:Gue}=Fr(_se.keys),Yue={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},que={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Zue={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Kue=Wue({preview:Yue,input:que,textarea:Zue}),Xue=Gue({baseStyle:Kue}),{definePartsStyle:Que,defineMultiStyleConfig:Jue}=Fr(Ese.keys),ece=e=>({marginStart:"1",color:Be("red.500","red.300")(e)}),tce=e=>({mt:"2",color:Be("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),nce=Que(e=>({container:{width:"100%",position:"relative"},requiredIndicator:ai(ece,e),helperText:ai(tce,e)})),rce=Jue({baseStyle:nce}),{definePartsStyle:ice,defineMultiStyleConfig:ace}=Fr(Tse.keys),oce=e=>({color:Be("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),sce=e=>({marginEnd:"0.5em",color:Be("red.500","red.300")(e)}),lce=ice(e=>({text:ai(oce,e),icon:ai(sce,e)})),uce=ace({baseStyle:lce}),cce={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},fce={baseStyle:cce},dce={fontFamily:"heading",fontWeight:"bold"},pce={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},mce={baseStyle:dce,sizes:pce,defaultProps:{size:"xl"}},{definePartsStyle:Lc,defineMultiStyleConfig:hce}=Fr(Rse.keys),vce=Lc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),$f={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},gce={lg:Lc({field:$f.lg,addon:$f.lg}),md:Lc({field:$f.md,addon:$f.md}),sm:Lc({field:$f.sm,addon:$f.sm}),xs:Lc({field:$f.xs,addon:$f.xs})};function dE(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Be("blue.500","blue.300")(e),errorBorderColor:n||Be("red.500","red.300")(e)}}var bce=Lc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dE(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Be("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Bi(t,i),boxShadow:`0 0 0 1px ${Bi(t,i)}`},_focusVisible:{zIndex:1,borderColor:Bi(t,n),boxShadow:`0 0 0 1px ${Bi(t,n)}`}},addon:{border:"1px solid",borderColor:Be("inherit","whiteAlpha.50")(e),bg:Be("gray.100","whiteAlpha.300")(e)}}}),yce=Lc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dE(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Be("gray.100","whiteAlpha.50")(e),_hover:{bg:Be("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Bi(t,i)},_focusVisible:{bg:"transparent",borderColor:Bi(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Be("gray.100","whiteAlpha.50")(e)}}}),Sce=Lc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=dE(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Bi(t,i),boxShadow:`0px 1px 0px 0px ${Bi(t,i)}`},_focusVisible:{borderColor:Bi(t,n),boxShadow:`0px 1px 0px 0px ${Bi(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),xce=Lc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Cce={outline:bce,filled:yce,flushed:Sce,unstyled:xce},ir=hce({baseStyle:vce,sizes:gce,variants:Cce,defaultProps:{size:"md",variant:"outline"}}),Nce=e=>({bg:Be("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),wce={baseStyle:Nce},_ce={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Ece={baseStyle:_ce},{defineMultiStyleConfig:Tce,definePartsStyle:Rce}=Fr(Ase.keys),Ace={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},kce=Rce({icon:Ace}),Lce=Tce({baseStyle:kce}),{defineMultiStyleConfig:Oce,definePartsStyle:Mce}=Fr(kse.keys),Dce=e=>({bg:Be("#fff","gray.700")(e),boxShadow:Be("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),Pce=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:Be("gray.100","whiteAlpha.100")(e)},_active:{bg:Be("gray.200","whiteAlpha.200")(e)},_expanded:{bg:Be("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Ice={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Fce={opacity:.6},zce={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Bce={transitionProperty:"common",transitionDuration:"normal"},Uce=Mce(e=>({button:Bce,list:ai(Dce,e),item:ai(Pce,e),groupTitle:Ice,command:Fce,divider:zce})),$ce=Oce({baseStyle:Uce}),{defineMultiStyleConfig:jce,definePartsStyle:i8}=Fr(Lse.keys),Vce={bg:"blackAlpha.600",zIndex:"modal"},Hce=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},Wce=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:Be("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:Be("lg","dark-lg")(e)}},Gce={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Yce={position:"absolute",top:"2",insetEnd:"3"},qce=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Zce={px:"6",py:"4"},Kce=i8(e=>({overlay:Vce,dialogContainer:ai(Hce,e),dialog:ai(Wce,e),header:Gce,closeButton:Yce,body:ai(qce,e),footer:Zce}));function Pl(e){return i8(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Xce={xs:Pl("xs"),sm:Pl("sm"),md:Pl("md"),lg:Pl("lg"),xl:Pl("xl"),"2xl":Pl("2xl"),"3xl":Pl("3xl"),"4xl":Pl("4xl"),"5xl":Pl("5xl"),"6xl":Pl("6xl"),full:Pl("full")},Qce=jce({baseStyle:Kce,sizes:Xce,defaultProps:{size:"md"}}),Jce={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},rB=Jce,{defineMultiStyleConfig:efe,definePartsStyle:iB}=Fr(Ose.keys),pE=Fo("number-input-stepper-width"),aB=Fo("number-input-input-padding"),tfe=kc(pE).add("0.5rem").toString(),nfe={[pE.variable]:"sizes.6",[aB.variable]:tfe},rfe=e=>{var t;return((t=ai(ir.baseStyle,e))==null?void 0:t.field)??{}},ife={width:[pE.reference]},afe=e=>({borderStart:"1px solid",borderStartColor:Be("inherit","whiteAlpha.300")(e),color:Be("inherit","whiteAlpha.800")(e),_active:{bg:Be("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),ofe=iB(e=>({root:nfe,field:rfe,stepperGroup:ife,stepper:ai(afe,e)??{}}));function e4(e){var t,n;const i=(t=ir.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},u=((n=i.field)==null?void 0:n.fontSize)??"md",c=rB.fontSizes[u];return iB({field:{...i.field,paddingInlineEnd:aB.reference,verticalAlign:"top"},stepper:{fontSize:kc(c).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var sfe={xs:e4("xs"),sm:e4("sm"),md:e4("md"),lg:e4("lg")},lfe=efe({baseStyle:ofe,sizes:sfe,variants:ir.variants,defaultProps:ir.defaultProps}),PO,ufe={...(PO=ir.baseStyle)==null?void 0:PO.field,textAlign:"center"},cfe={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},IO,ffe={outline:e=>{var t,n;return((n=ai((t=ir.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=ai((t=ir.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=ai((t=ir.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((IO=ir.variants)==null?void 0:IO.unstyled.field)??{}},dfe={baseStyle:ufe,sizes:cfe,variants:ffe,defaultProps:ir.defaultProps},{defineMultiStyleConfig:pfe,definePartsStyle:mfe}=Fr(Mse.keys),h6=Fo("popper-bg"),hfe=Fo("popper-arrow-bg"),vfe=Fo("popper-arrow-shadow-color"),gfe={zIndex:10},bfe=e=>{const t=Be("white","gray.700")(e),n=Be("gray.200","whiteAlpha.300")(e);return{[h6.variable]:`colors.${t}`,bg:h6.reference,[hfe.variable]:h6.reference,[vfe.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},yfe={px:3,py:2,borderBottomWidth:"1px"},Sfe={px:3,py:2},xfe={px:3,py:2,borderTopWidth:"1px"},Cfe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Nfe=mfe(e=>({popper:gfe,content:bfe(e),header:yfe,body:Sfe,footer:xfe,closeButton:Cfe})),wfe=pfe({baseStyle:Nfe}),{defineMultiStyleConfig:_fe,definePartsStyle:pg}=Fr(Dse.keys),Efe=e=>{const{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,u=Be(kO(),kO("1rem","rgba(0,0,0,0.1)"))(e),c=Be(`${t}.500`,`${t}.200`)(e),p=`linear-gradient(
to right,
transparent 0%,
${Bi(n,c)} 50%,
transparent 100%
)`;return{...!i&&o&&u,...i?{bgImage:p}:{bgColor:c}}},Tfe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Rfe=e=>({bg:Be("gray.100","whiteAlpha.300")(e)}),Afe=e=>({transitionProperty:"common",transitionDuration:"slow",...Efe(e)}),kfe=pg(e=>({label:Tfe,filledTrack:Afe(e),track:Rfe(e)})),Lfe={xs:pg({track:{h:"1"}}),sm:pg({track:{h:"2"}}),md:pg({track:{h:"3"}}),lg:pg({track:{h:"4"}})},Ofe=_fe({sizes:Lfe,baseStyle:kfe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Mfe,definePartsStyle:R4}=Fr(Pse.keys),Dfe=e=>{var t;const n=(t=ai(mS.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Pfe=R4(e=>{var t,n,i,o;return{label:(n=(t=mS).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(i=mS).baseStyle)==null?void 0:o.call(i,e).container,control:Dfe(e)}}),Ife={md:R4({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:R4({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:R4({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Ffe=Mfe({baseStyle:Pfe,sizes:Ife,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zfe,definePartsStyle:Bfe}=Fr(Ise.keys),Ufe=e=>{var t;return{...(t=ir.baseStyle)==null?void 0:t.field,bg:Be("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Be("white","gray.700")(e)}}},$fe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},jfe=Bfe(e=>({field:Ufe(e),icon:$fe})),t4={paddingInlineEnd:"8"},FO,zO,BO,UO,$O,jO,VO,HO,Vfe={lg:{...(FO=ir.sizes)==null?void 0:FO.lg,field:{...(zO=ir.sizes)==null?void 0:zO.lg.field,...t4}},md:{...(BO=ir.sizes)==null?void 0:BO.md,field:{...(UO=ir.sizes)==null?void 0:UO.md.field,...t4}},sm:{...($O=ir.sizes)==null?void 0:$O.sm,field:{...(jO=ir.sizes)==null?void 0:jO.sm.field,...t4}},xs:{...(VO=ir.sizes)==null?void 0:VO.xs,field:{...(HO=ir.sizes)==null?void 0:HO.sm.field,...t4},icon:{insetEnd:"1"}}},Hfe=zfe({baseStyle:jfe,sizes:Vfe,variants:ir.variants,defaultProps:ir.defaultProps}),Wfe=cd("skeleton-start-color"),Gfe=cd("skeleton-end-color"),Yfe=e=>{const t=Be("gray.100","gray.800")(e),n=Be("gray.400","gray.600")(e),{startColor:i=t,endColor:o=n,theme:u}=e,c=Bi(u,i),p=Bi(u,o);return{[Wfe.variable]:c,[Gfe.variable]:p,opacity:.7,borderRadius:"2px",borderColor:c,background:p}},qfe={baseStyle:Yfe},Zfe=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Be("white","gray.700")(e)}}),Kfe={baseStyle:Zfe},{defineMultiStyleConfig:Xfe,definePartsStyle:u3}=Fr(Fse.keys),Xg=cd("slider-thumb-size"),Qg=cd("slider-track-size"),Qfe=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...cE({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Jfe=e=>({...cE({orientation:e.orientation,horizontal:{h:Qg.reference},vertical:{w:Qg.reference}}),overflow:"hidden",borderRadius:"sm",bg:Be("gray.200","whiteAlpha.200")(e),_disabled:{bg:Be("gray.300","whiteAlpha.300")(e)}}),ede=e=>{const{orientation:t}=e;return{...cE({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Xg.reference,h:Xg.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},tde=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Be(`${t}.500`,`${t}.200`)(e)}},nde=u3(e=>({container:Qfe(e),track:Jfe(e),thumb:ede(e),filledTrack:tde(e)})),rde=u3({container:{[Xg.variable]:"sizes.4",[Qg.variable]:"sizes.1"}}),ide=u3({container:{[Xg.variable]:"sizes.3.5",[Qg.variable]:"sizes.1"}}),ade=u3({container:{[Xg.variable]:"sizes.2.5",[Qg.variable]:"sizes.0.5"}}),ode={lg:rde,md:ide,sm:ade},sde=Xfe({baseStyle:nde,sizes:ode,defaultProps:{size:"md",colorScheme:"blue"}}),Hp=Fo("spinner-size"),lde={width:[Hp.reference],height:[Hp.reference]},ude={xs:{[Hp.variable]:"sizes.3"},sm:{[Hp.variable]:"sizes.4"},md:{[Hp.variable]:"sizes.6"},lg:{[Hp.variable]:"sizes.8"},xl:{[Hp.variable]:"sizes.12"}},cde={baseStyle:lde,sizes:ude,defaultProps:{size:"md"}},{defineMultiStyleConfig:fde,definePartsStyle:oB}=Fr(zse.keys),dde={fontWeight:"medium"},pde={opacity:.8,marginBottom:"2"},mde={verticalAlign:"baseline",fontWeight:"semibold"},hde={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},vde=oB({container:{},label:dde,helpText:pde,number:mde,icon:hde}),gde={md:oB({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},bde=fde({baseStyle:vde,sizes:gde,defaultProps:{size:"md"}}),{defineMultiStyleConfig:yde,definePartsStyle:A4}=Fr(Bse.keys),kg=Fo("switch-track-width"),Qp=Fo("switch-track-height"),v6=Fo("switch-track-diff"),Sde=kc.subtract(kg,Qp),a8=Fo("switch-thumb-x"),xde=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[kg.reference],height:[Qp.reference],transitionProperty:"common",transitionDuration:"fast",bg:Be("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:Be(`${t}.500`,`${t}.200`)(e)}}},Cde={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Qp.reference],height:[Qp.reference],_checked:{transform:`translateX(${a8.reference})`}},Nde=A4(e=>({container:{[v6.variable]:Sde,[a8.variable]:v6.reference,_rtl:{[a8.variable]:kc(v6).negate().toString()}},track:xde(e),thumb:Cde})),wde={sm:A4({container:{[kg.variable]:"1.375rem",[Qp.variable]:"sizes.3"}}),md:A4({container:{[kg.variable]:"1.875rem",[Qp.variable]:"sizes.4"}}),lg:A4({container:{[kg.variable]:"2.875rem",[Qp.variable]:"sizes.6"}})},_de=yde({baseStyle:Nde,sizes:wde,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ede,definePartsStyle:pv}=Fr(Use.keys),Tde=pv({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),hS={"&[data-is-numeric=true]":{textAlign:"end"}},Rde=pv(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...hS},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...hS},caption:{color:Be("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Ade=pv(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...hS},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...hS},caption:{color:Be("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e)},td:{background:Be(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),kde={simple:Rde,striped:Ade,unstyled:{}},Lde={sm:pv({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:pv({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:pv({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Ode=Ede({baseStyle:Tde,variants:kde,sizes:Lde,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Mde,definePartsStyle:ku}=Fr($se.keys),Dde=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},Pde=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Ide=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Fde={p:4},zde=ku(e=>({root:Dde(e),tab:Pde(e),tablist:Ide(e),tabpanel:Fde})),Bde={sm:ku({tab:{py:1,px:4,fontSize:"sm"}}),md:ku({tab:{fontSize:"md",py:2,px:4}}),lg:ku({tab:{fontSize:"lg",py:3,px:4}})},Ude=ku(e=>{const{colorScheme:t,orientation:n}=e,i=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",u=i?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[u]:"-2px",_selected:{color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:Be("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),$de=ku(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:Be("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),jde=ku(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:Be("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:Be("#fff","gray.800")(e),color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Vde=ku(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Bi(n,`${t}.700`),bg:Bi(n,`${t}.100`)}}}}),Hde=ku(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:Be("gray.600","inherit")(e),_selected:{color:Be("#fff","gray.800")(e),bg:Be(`${t}.600`,`${t}.300`)(e)}}}}),Wde=ku({}),Gde={line:Ude,enclosed:$de,"enclosed-colored":jde,"soft-rounded":Vde,"solid-rounded":Hde,unstyled:Wde},Yde=Mde({baseStyle:zde,sizes:Bde,variants:Gde,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:qde,definePartsStyle:Jp}=Fr(jse.keys),Zde={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Kde={lineHeight:1.2,overflow:"visible"},Xde={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Qde=Jp({container:Zde,label:Kde,closeButton:Xde}),Jde={sm:Jp({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Jp({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Jp({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},epe={subtle:Jp(e=>{var t;return{container:(t=Tg.variants)==null?void 0:t.subtle(e)}}),solid:Jp(e=>{var t;return{container:(t=Tg.variants)==null?void 0:t.solid(e)}}),outline:Jp(e=>{var t;return{container:(t=Tg.variants)==null?void 0:t.outline(e)}})},tpe=qde({variants:epe,baseStyle:Qde,sizes:Jde,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),WO,npe={...(WO=ir.baseStyle)==null?void 0:WO.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},GO,rpe={outline:e=>{var t;return((t=ir.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=ir.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=ir.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((GO=ir.variants)==null?void 0:GO.unstyled.field)??{}},YO,qO,ZO,KO,ipe={xs:((YO=ir.sizes)==null?void 0:YO.xs.field)??{},sm:((qO=ir.sizes)==null?void 0:qO.sm.field)??{},md:((ZO=ir.sizes)==null?void 0:ZO.md.field)??{},lg:((KO=ir.sizes)==null?void 0:KO.lg.field)??{}},ape={baseStyle:npe,sizes:ipe,variants:rpe,defaultProps:{size:"md",variant:"outline"}},g6=Fo("tooltip-bg"),XO=Fo("tooltip-fg"),ope=Fo("popper-arrow-bg"),spe=e=>{const t=Be("gray.700","gray.300")(e),n=Be("whiteAlpha.900","gray.900")(e);return{bg:g6.reference,color:XO.reference,[g6.variable]:`colors.${t}`,[XO.variable]:`colors.${n}`,[ope.variable]:g6.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},lpe={baseStyle:spe},upe={Accordion:Rle,Alert:Ile,Avatar:Yle,Badge:Tg,Breadcrumb:rue,Button:due,Checkbox:mS,CloseButton:Cue,Code:Eue,Container:Rue,Divider:Mue,Drawer:Hue,Editable:Xue,Form:rce,FormError:uce,FormLabel:fce,Heading:mce,Input:ir,Kbd:wce,Link:Ece,List:Lce,Menu:$ce,Modal:Qce,NumberInput:lfe,PinInput:dfe,Popover:wfe,Progress:Ofe,Radio:Ffe,Select:Hfe,Skeleton:qfe,SkipLink:Kfe,Slider:sde,Spinner:cde,Stat:bde,Switch:_de,Table:Ode,Tabs:Yde,Tag:tpe,Textarea:ape,Tooltip:lpe},cpe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},fpe=cpe,dpe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},ppe=dpe,mpe={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},hpe=mpe,vpe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},gpe=vpe,bpe={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},ype=bpe,Spe={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},xpe={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Cpe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Npe={property:Spe,easing:xpe,duration:Cpe},wpe=Npe,_pe={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Epe=_pe,Tpe={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Rpe=Tpe,Ape={breakpoints:ppe,zIndices:Epe,radii:gpe,blur:Rpe,colors:hpe,...rB,sizes:eB,shadows:ype,space:Jz,borders:fpe,transition:wpe},kpe={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Lpe={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}};function Ope(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Mpe=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Dpe(e){return Ope(e)?Mpe.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Ppe="ltr",Ipe={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},sB={semanticTokens:kpe,direction:Ppe,...Ape,components:upe,styles:Lpe,config:Ipe};function Fpe(e,t){const n=Ha(e);k.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{n()},t),()=>{i&&window.clearTimeout(i)}},[t,n])}var Oc="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function o8(e,...t){return zpe(e)?e(...t):e}var zpe=e=>typeof e=="function";function Bpe(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var Upe=(e,t)=>e.find(n=>n.id===t);function QO(e,t){const n=lB(e,t),i=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:i}}function lB(e,t){for(const[n,i]of Object.entries(e))if(Upe(i,t))return n}function $pe(e){const t=e.includes("right"),n=e.includes("left");let i="center";return t&&(i="flex-end"),n&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function jpe(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,u=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",c=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:i,bottom:o,right:u,left:c}}var Vpe={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},wu=Hpe(Vpe);function Hpe(e){let t=e;const n=new Set,i=o=>{t=o(t),n.forEach(u=>u())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{i(()=>e),n.delete(o)}),removeToast:(o,u)=>{i(c=>({...c,[u]:c[u].filter(p=>p.id!=o)}))},notify:(o,u)=>{const c=Wpe(o,u),{position:p,id:h}=c;return i(v=>{const x=p.includes("top")?[c,...v[p]??[]]:[...v[p]??[],c];return{...v,[p]:x}}),h},update:(o,u)=>{!o||i(c=>{const p={...c},{position:h,index:v}=QO(p,o);return h&&v!==-1&&(p[h][v]={...p[h][v],...u,message:uB(u)}),p})},closeAll:({positions:o}={})=>{i(u=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((h,v)=>(h[v]=u[v].map(b=>({...b,requestClose:!0})),h),{...u}))},close:o=>{i(u=>{const c=lB(u,o);return c?{...u,[c]:u[c].map(p=>p.id==o?{...p,requestClose:!0}:p)}:u})},isActive:o=>Boolean(QO(wu.getState(),o).position)}}var JO=0;function Wpe(e,t={}){JO+=1;const n=t.id??JO,i=t.position??"bottom";return{id:n,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>wu.removeToast(String(n),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Gpe=e=>{const{status:t,variant:n="solid",id:i,title:o,isClosable:u,onClose:c,description:p,icon:h}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Ae.createElement(YI,{addRole:!1,status:t,variant:n,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},C(ZI,{children:h},void 0,!1,{fileName:Oc,lineNumber:237,columnNumber:22},globalThis),Ae.createElement($e.div,{flex:"1",maxWidth:"100%"},o&&C(KI,{id:v?.title,children:o},void 0,!1,{fileName:Oc,lineNumber:240,columnNumber:31},globalThis),p&&C(qI,{id:v?.description,display:"block",children:p},void 0,!1,{fileName:Oc,lineNumber:242,columnNumber:45},globalThis)),u&&C(t3,{size:"sm",onClick:c,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:Oc,lineNumber:245,columnNumber:51},globalThis))};function uB(e={}){const{render:t,toastComponent:n=Gpe}=e;return o=>typeof t=="function"?t(o):C(n,{...o,...e},void 0,!1,{fileName:Oc,lineNumber:259,columnNumber:28},this)}function Ype(e,t){const n=o=>({...t,...o,position:Bpe(o?.position??t?.position,e)}),i=o=>{const u=n(o),c=uB(u);return wu.notify(c,u)};return i.update=(o,u)=>{wu.update(o,n(u))},i.promise=(o,u)=>{const c=i({...u.loading,status:"loading",duration:null});o.then(p=>i.update(c,{status:"success",duration:5e3,...o8(u.success,p)})).catch(p=>i.update(c,{status:"error",duration:5e3,...o8(u.error,p)}))},i.closeAll=wu.closeAll,i.close=wu.close,i.isActive=wu.isActive,i}function cB(e){const{theme:t}=sP();return k.exports.useMemo(()=>Ype(t.direction,e),[e,t.direction])}var qpe={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[n]:i*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},fB=k.exports.memo(e=>{const{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:u=!1,position:c="bottom",duration:p=5e3,containerStyle:h,motionVariants:v=qpe,toastSpacing:b="0.5rem"}=e,[x,N]=k.exports.useState(p),_=kX();oS(()=>{_||i?.()},[_]),oS(()=>{N(p)},[p]);const T=()=>N(null),A=()=>N(p),M=()=>{_&&o()};k.exports.useEffect(()=>{_&&u&&o()},[_,u,o]),Fpe(M,x);const z=k.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...h}),[h,b]),P=k.exports.useMemo(()=>$pe(c),[c]);return Ae.createElement(el.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:T,onHoverEnd:A,custom:{position:c},style:P},Ae.createElement($e.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:z},o8(n,{id:t,onClose:M})))});fB.displayName="ToastComponent";var Zpe=e=>{const t=k.exports.useSyncExternalStore(wu.subscribe,wu.getState,wu.getState),{children:n,motionVariants:i,component:o=fB,portalProps:u}=e,p=Object.keys(t).map(h=>{const v=t[h];return C("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${h}`,style:jpe(h),children:C(Fc,{initial:!1,children:v.map(b=>C(o,{motionVariants:i,...b},b.id,!1,{fileName:Oc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:Oc,lineNumber:432,columnNumber:24},globalThis)},h,!1,{fileName:Oc,lineNumber:426,columnNumber:28},globalThis)});return C(Ui,{children:[n,C(um,{...u,children:p},void 0,!1,{fileName:Oc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},eM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function Kpe(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function Xpe(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var Qpe={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};function ig(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var s8=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},l8=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Jpe(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnEsc:u=!0,onOpen:c,onClose:p,placement:h,id:v,isOpen:b,defaultIsOpen:x,arrowSize:N=10,arrowShadowColor:_,arrowPadding:T,modifiers:A,isDisabled:M,gutter:z,offset:P,direction:I,...F}=e,{isOpen:$,onOpen:Y,onClose:Z}=PF({isOpen:b,defaultIsOpen:x,onOpen:c,onClose:p}),{referenceRef:ue,getPopperProps:ce,getArrowInnerProps:le,getArrowProps:ge}=DF({enabled:$,placement:h,arrowPadding:T,modifiers:A,gutter:z,offset:P,direction:I}),Ye=k.exports.useId(),ie=`tooltip-${v??Ye}`,Ce=k.exports.useRef(null),xe=k.exports.useRef(),K=k.exports.useRef(),be=k.exports.useCallback(()=>{K.current&&(clearTimeout(K.current),K.current=void 0),Z()},[Z]),Ne=eme(Ce,be),me=k.exports.useCallback(()=>{if(!M&&!xe.current){Ne();const Xe=l8(Ce);xe.current=Xe.setTimeout(Y,t)}},[Ne,M,Y,t]),we=k.exports.useCallback(()=>{xe.current&&(clearTimeout(xe.current),xe.current=void 0);const Xe=l8(Ce);K.current=Xe.setTimeout(be,n)},[n,be]),De=k.exports.useCallback(()=>{$&&i&&we()},[i,we,$]),Pe=k.exports.useCallback(()=>{$&&o&&we()},[o,we,$]),Ze=k.exports.useCallback(Xe=>{$&&Xe.key==="Escape"&&we()},[$,we]);B7(()=>s8(Ce),"keydown",u?Ze:void 0),k.exports.useEffect(()=>()=>{clearTimeout(xe.current),clearTimeout(K.current)},[]),B7(()=>Ce.current,"mouseleave",we);const it=k.exports.useCallback((Xe={},ct=null)=>({...Xe,ref:qr(Ce,ct,ue),onMouseEnter:ig(Xe.onMouseEnter,me),onClick:ig(Xe.onClick,De),onMouseDown:ig(Xe.onMouseDown,Pe),onFocus:ig(Xe.onFocus,me),onBlur:ig(Xe.onBlur,we),"aria-describedby":$?ie:void 0}),[me,we,Pe,$,ie,De,ue]),bt=k.exports.useCallback((Xe={},ct=null)=>ce({...Xe,style:{...Xe.style,[yi.arrowSize.var]:N?`${N}px`:void 0,[yi.arrowShadowColor.var]:_}},ct),[ce,N,_]),Wt=k.exports.useCallback((Xe={},ct=null)=>{const wt={...Xe.style,position:"relative",transformOrigin:yi.transformOrigin.varRef};return{ref:ct,...F,...Xe,id:ie,role:"tooltip",style:wt}},[F,ie]);return{isOpen:$,show:me,hide:we,getTriggerProps:it,getTooltipProps:Wt,getTooltipPositionerProps:bt,getArrowProps:ge,getArrowInnerProps:le}}var b6="chakra-ui:close-tooltip";function eme(e,t){return k.exports.useEffect(()=>{const n=s8(e);return n.addEventListener(b6,t),()=>n.removeEventListener(b6,t)},[t,e]),()=>{const n=s8(e),i=l8(e);n.dispatchEvent(new i.CustomEvent(b6))}}var tme=$e(el.div),Ca=qe((e,t)=>{const n=po("Tooltip",e),i=pr(e),o=PS(),{children:u,label:c,shouldWrapChildren:p,"aria-label":h,hasArrow:v,bg:b,portalProps:x,background:N,backgroundColor:_,bgColor:T,...A}=i,M=N??_??b??T;if(M){n.bg=M;const ue=FG(o,"colors",M);n[yi.arrowBg.var]=ue}const z=Jpe({...A,direction:o.direction}),P=typeof u=="string"||p;let I;if(P)I=Ae.createElement($e.span,{tabIndex:0,...z.getTriggerProps()},u);else{const ue=k.exports.Children.only(u);I=k.exports.cloneElement(ue,z.getTriggerProps(ue.props,ue.ref))}const F=!!h,$=z.getTooltipProps({},t),Y=F?Kpe($,["role","id"]):$,Z=Xpe($,["role","id"]);return c?C(Ui,{children:[I,C(Fc,{children:z.isOpen&&Ae.createElement(um,{...x},Ae.createElement($e.div,{...z.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},C(tme,{variants:Qpe,...Y,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[c,F&&Ae.createElement($e.span,{srOnly:!0,...Z},h),v&&Ae.createElement($e.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Ae.createElement($e.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]},void 0,!0,{fileName:eM,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:eM,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):C(Ui,{children:u},void 0,!1)});Ca.displayName="Tooltip";var Pp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",nme=e=>{const{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:u={},environment:c,cssVarsRoot:p}=e,h=C(NF,{environment:c,children:t},void 0,!1,{fileName:Pp,lineNumber:25,columnNumber:37},globalThis);return C(Hq,{theme:u,cssVarsRoot:p,children:C(AD,{colorModeManager:n,options:u.config,children:[o?C(Nte,{},void 0,!1,{fileName:Pp,lineNumber:34,columnNumber:33},globalThis):C(Cte,{},void 0,!1,{fileName:Pp,lineNumber:34,columnNumber:87},globalThis),C(Gq,{},void 0,!1,{fileName:Pp,lineNumber:34,columnNumber:143},globalThis),i?C(FF,{zIndex:i,children:h},void 0,!1,{fileName:Pp,lineNumber:34,columnNumber:214},globalThis):h]},void 0,!0,{fileName:Pp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:Pp,lineNumber:28,columnNumber:26},globalThis)},tM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function rme({children:e,theme:t=sB,toastOptions:n,...i}){return C(nme,{theme:t,...i,children:[e,C(Zpe,{...n},void 0,!1,{fileName:tM,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:tM,lineNumber:62,columnNumber:26},this)}function ime(...e){let t=[...e],n=e[e.length-1];return Dpe(n)&&t.length>1?t=t.slice(0,t.length-1):n=sB,uq(...t.map(i=>o=>ev(i)?i(o):ame(o,i)))(n)}function ame(...e){return rd({},...e,dB)}function dB(e,t,n,i){if((ev(e)||ev(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...o)=>{const u=ev(e)?e(...o):e,c=ev(t)?t(...o):t;return rd({},u,c,dB)}}function ea(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];{var o=mme[e],u=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+u)}}function ld(e){return!!e&&!!e[Ir]}function Pc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===hme}(e)||Array.isArray(e)||!!e[lM]||!!e.constructor[lM]||mE(e)||hE(e))}function im(e,t,n){n===void 0&&(n=!1),Fv(e)===0?(n?Object.keys:hv)(e).forEach(function(i){n&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,o){return t(o,i,e)})}function Fv(e){var t=e[Ir];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:mE(e)?2:hE(e)?3:0}function mv(e,t){return Fv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ome(e,t){return Fv(e)===2?e.get(t):e[t]}function pB(e,t,n){var i=Fv(e);i===2?e.set(t,n):i===3?(e.delete(t),e.add(n)):e[t]=n}function mB(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function mE(e){return dme&&e instanceof Map}function hE(e){return pme&&e instanceof Set}function Yf(e){return e.o||e.t}function vE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=vB(e);delete t[Ir];for(var n=hv(t),i=0;i<n.length;i++){var o=n[i],u=t[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(t[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function gE(e,t){return t===void 0&&(t=!1),bE(e)||ld(e)||!Pc(e)||(Fv(e)>1&&(e.set=e.add=e.clear=e.delete=sme),Object.freeze(e),t&&im(e,function(n,i){return gE(i,!0)},!0)),e}function sme(){ea(2)}function bE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Lu(e){var t=d8[e];return t||ea(18,e),t}function lme(e,t){d8[e]||(d8[e]=t)}function u8(){return Ev||ea(0),Ev}function y6(e,t){t&&(Lu("Patches"),e.u=[],e.s=[],e.v=t)}function vS(e){c8(e),e.p.forEach(ume),e.p=null}function c8(e){e===Ev&&(Ev=e.l)}function nM(e){return Ev={p:[],l:Ev,h:e,m:!0,_:0}}function ume(e){var t=e[Ir];t.i===0||t.i===1?t.j():t.O=!0}function S6(e,t){t._=t.p.length;var n=t.p[0],i=e!==void 0&&e!==n;return t.h.g||Lu("ES5").S(t,e,i),i?(n[Ir].P&&(vS(t),ea(4)),Pc(e)&&(e=gS(t,e),t.l||bS(t,e)),t.u&&Lu("Patches").M(n[Ir].t,e,t.u,t.s)):e=gS(t,n,[]),vS(t),t.u&&t.v(t.u,t.s),e!==hB?e:void 0}function gS(e,t,n){if(bE(t))return t;var i=t[Ir];if(!i)return im(t,function(u,c){return rM(e,i,t,u,c,n)},!0),t;if(i.A!==e)return t;if(!i.P)return bS(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=vE(i.k):i.o;im(i.i===3?new Set(o):o,function(u,c){return rM(e,i,o,u,c,n)}),bS(e,o,!1),n&&e.u&&Lu("Patches").R(i,n,e.u,e.s)}return i.o}function rM(e,t,n,i,o,u){if(o===n&&ea(5),ld(o)){var c=gS(e,o,u&&t&&t.i!==3&&!mv(t.D,i)?u.concat(i):void 0);if(pB(n,i,c),!ld(c))return;e.m=!1}if(Pc(o)&&!bE(o)){if(!e.h.F&&e._<1)return;gS(e,o),t&&t.A.l||bS(e,o)}}function bS(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&gE(t,n)}function x6(e,t){var n=e[Ir];return(n?Yf(n):e)[t]}function iM(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function qf(e){e.P||(e.P=!0,e.l&&qf(e.l))}function C6(e){e.o||(e.o=vE(e.t))}function f8(e,t,n){var i=mE(t)?Lu("MapSet").N(t,n):hE(t)?Lu("MapSet").T(t,n):e.g?function(o,u){var c=Array.isArray(o),p={i:c?1:0,A:u?u.A:u8(),P:!1,I:!1,D:{},l:u,t:o,k:null,o:null,j:null,C:!1},h=p,v=Jg;c&&(h=[p],v=mg);var b=Proxy.revocable(h,v),x=b.revoke,N=b.proxy;return p.k=N,p.j=x,N}(t,n):Lu("ES5").J(t,n);return(n?n.A:u8()).p.push(i),i}function cme(e){return ld(e)||ea(22,e),function t(n){if(!Pc(n))return n;var i,o=n[Ir],u=Fv(n);if(o){if(!o.P&&(o.i<4||!Lu("ES5").K(o)))return o.t;o.I=!0,i=aM(n,u),o.I=!1}else i=aM(n,u);return im(i,function(c,p){o&&ome(o.t,c)===p||pB(i,c,t(p))}),u===3?new Set(i):i}(e)}function aM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vE(e)}function fme(){function e(c,p){var h=u[c];return h?h.enumerable=p:u[c]=h={configurable:!0,enumerable:p,get:function(){var v=this[Ir];return o(v),Jg.get(v,c)},set:function(v){var b=this[Ir];o(b),Jg.set(b,c,v)}},h}function t(c){for(var p=c.length-1;p>=0;p--){var h=c[p][Ir];if(!h.P)switch(h.i){case 5:i(h)&&qf(h);break;case 4:n(h)&&qf(h)}}}function n(c){for(var p=c.t,h=c.k,v=hv(h),b=v.length-1;b>=0;b--){var x=v[b];if(x!==Ir){var N=p[x];if(N===void 0&&!mv(p,x))return!0;var _=h[x],T=_&&_[Ir];if(T?T.t!==N:!mB(_,N))return!0}}var A=!!p[Ir];return v.length!==hv(p).length+(A?0:1)}function i(c){var p=c.k;if(p.length!==c.t.length)return!0;var h=Object.getOwnPropertyDescriptor(p,p.length-1);if(h&&!h.get)return!0;for(var v=0;v<p.length;v++)if(!p.hasOwnProperty(v))return!0;return!1}function o(c){c.O&&ea(3,JSON.stringify(Yf(c)))}var u={};lme("ES5",{J:function(c,p){var h=Array.isArray(c),v=function(x,N){if(x){for(var _=Array(N.length),T=0;T<N.length;T++)Object.defineProperty(_,""+T,e(T,!0));return _}var A=vB(N);delete A[Ir];for(var M=hv(A),z=0;z<M.length;z++){var P=M[z];A[P]=e(P,x||!!A[P].enumerable)}return Object.create(Object.getPrototypeOf(N),A)}(h,c),b={i:h?5:4,A:p?p.A:u8(),P:!1,I:!1,D:{},l:p,t:c,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Ir,{value:b,writable:!0}),v},S:function(c,p,h){h?ld(p)&&p[Ir].A===c&&t(c.p):(c.u&&function v(b){if(b&&typeof b=="object"){var x=b[Ir];if(x){var N=x.t,_=x.k,T=x.D,A=x.i;if(A===4)im(_,function(F){F!==Ir&&(N[F]!==void 0||mv(N,F)?T[F]||v(_[F]):(T[F]=!0,qf(x)))}),im(N,function(F){_[F]!==void 0||mv(_,F)||(T[F]=!1,qf(x))});else if(A===5){if(i(x)&&(qf(x),T.length=!0),_.length<N.length)for(var M=_.length;M<N.length;M++)T[M]=!1;else for(var z=N.length;z<_.length;z++)T[z]=!0;for(var P=Math.min(_.length,N.length),I=0;I<P;I++)_.hasOwnProperty(I)||(T[I]=!0),T[I]===void 0&&v(_[I])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?n(c):i(c)}})}var oM,Ev,yE=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dme=typeof Map<"u",pme=typeof Set<"u",sM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hB=yE?Symbol.for("immer-nothing"):((oM={})["immer-nothing"]=!0,oM),lM=yE?Symbol.for("immer-draftable"):"__$immer_draftable",Ir=yE?Symbol.for("immer-state"):"__$immer_state",mme={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"},hme=""+Object.prototype.constructor,hv=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,vB=Object.getOwnPropertyDescriptors||function(e){var t={};return hv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},d8={},Jg={get:function(e,t){if(t===Ir)return e;var n=Yf(e);if(!mv(n,t))return function(o,u,c){var p,h=iM(u,c);return h?"value"in h?h.value:(p=h.get)===null||p===void 0?void 0:p.call(o.k):void 0}(e,n,t);var i=n[t];return e.I||!Pc(i)?i:i===x6(e.t,t)?(C6(e),e.o[t]=f8(e.A.h,i,e)):i},has:function(e,t){return t in Yf(e)},ownKeys:function(e){return Reflect.ownKeys(Yf(e))},set:function(e,t,n){var i=iM(Yf(e),t);if(i?.set)return i.set.call(e.k,n),!0;if(!e.P){var o=x6(Yf(e),t),u=o?.[Ir];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(mB(n,o)&&(n!==void 0||mv(e.t,t)))return!0;C6(e),qf(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return x6(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,C6(e),qf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Yf(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty:function(){ea(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ea(12)}},mg={};im(Jg,function(e,t){mg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),mg.deleteProperty=function(e,t){return isNaN(parseInt(t))&&ea(13),mg.set.call(this,e,t,void 0)},mg.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&ea(14),Jg.set.call(this,e[0],t,n,e[0])};var vme=function(){function e(n){var i=this;this.g=sM,this.F=!0,this.produce=function(o,u,c){if(typeof o=="function"&&typeof u!="function"){var p=u;u=o;var h=i;return function(A){var M=this;A===void 0&&(A=p);for(var z=arguments.length,P=Array(z>1?z-1:0),I=1;I<z;I++)P[I-1]=arguments[I];return h.produce(A,function(F){var $;return($=u).call.apply($,[M,F].concat(P))})}}var v;if(typeof u!="function"&&ea(6),c!==void 0&&typeof c!="function"&&ea(7),Pc(o)){var b=nM(i),x=f8(i,o,void 0),N=!0;try{v=u(x),N=!1}finally{N?vS(b):c8(b)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(A){return y6(b,c),S6(A,b)},function(A){throw vS(b),A}):(y6(b,c),S6(v,b))}if(!o||typeof o!="object"){if((v=u(o))===void 0&&(v=o),v===hB&&(v=void 0),i.F&&gE(v,!0),c){var _=[],T=[];Lu("Patches").M(o,v,_,T),c(_,T)}return v}ea(21,o)},this.produceWithPatches=function(o,u){if(typeof o=="function")return function(v){for(var b=arguments.length,x=Array(b>1?b-1:0),N=1;N<b;N++)x[N-1]=arguments[N];return i.produceWithPatches(v,function(_){return o.apply(void 0,[_].concat(x))})};var c,p,h=i.produce(o,u,function(v,b){c=v,p=b});return typeof Promise<"u"&&h instanceof Promise?h.then(function(v){return[v,c,p]}):[h,c,p]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Pc(n)||ea(8),ld(n)&&(n=cme(n));var i=nM(this),o=f8(this,n,void 0);return o[Ir].C=!0,c8(i),o},t.finishDraft=function(n,i){var o=n&&n[Ir];o&&o.C||ea(9),o.I&&ea(10);var u=o.A;return y6(u,i),S6(void 0,u)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!sM&&ea(20),this.g=n},t.applyPatches=function(n,i){var o;for(o=i.length-1;o>=0;o--){var u=i[o];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}o>-1&&(i=i.slice(o+1));var c=Lu("Patches").$;return ld(n)?c(n,i):this.produce(n,function(p){return c(p,i)})},e}(),ps=new vme,gB=ps.produce;ps.produceWithPatches.bind(ps);ps.setAutoFreeze.bind(ps);ps.setUseProxies.bind(ps);ps.applyPatches.bind(ps);ps.createDraft.bind(ps);ps.finishDraft.bind(ps);function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function cM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uM(Object(n),!0).forEach(function(i){XF(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var fM=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),N6=function(){return Math.random().toString(36).substring(7).split("").join(".")},em={INIT:"@@redux/INIT"+N6(),REPLACE:"@@redux/REPLACE"+N6(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+N6()}};function bB(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gme(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Sme(e))return"date";if(yme(e))return"error";var n=bme(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function bme(e){return typeof e.constructor=="function"?e.constructor.name:null}function yme(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Sme(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function jp(e){var t=typeof e;return t=gme(e),t}function SE(e,t,n){var i;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+jp(n)+"'");return n(SE)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+jp(e)+"'");var o=e,u=t,c=[],p=c,h=!1;function v(){p===c&&(p=c.slice())}function b(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function x(A){if(typeof A!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+jp(A)+"'");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var M=!0;return v(),p.push(A),function(){if(!!M){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");M=!1,v();var P=p.indexOf(A);p.splice(P,1),c=null}}}function N(A){if(!bB(A))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+jp(A)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof A.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,u=o(u,A)}finally{h=!1}for(var M=c=p,z=0;z<M.length;z++){var P=M[z];P()}return A}function _(A){if(typeof A!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+jp(A));o=A,N({type:em.REPLACE})}function T(){var A,M=x;return A={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error("Expected the observer to be an object. Instead, received: '"+jp(P)+"'");function I(){P.next&&P.next(b())}I();var F=M(I);return{unsubscribe:F}}},A[fM]=function(){return this},A}return N({type:em.INIT}),i={dispatch:N,subscribe:x,getState:b,replaceReducer:_},i[fM]=T,i}function p8(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function xme(e,t,n,i){var o=Object.keys(t),u=n&&n.type===em.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!bB(e))return"The "+u+' has unexpected type of "'+jp(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var c=Object.keys(e).filter(function(p){return!t.hasOwnProperty(p)&&!i[p]});if(c.forEach(function(p){i[p]=!0}),!(n&&n.type===em.REPLACE)&&c.length>0)return"Unexpected "+(c.length>1?"keys":"key")+" "+('"'+c.join('", "')+'" found in '+u+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function Cme(e){Object.keys(e).forEach(function(t){var n=e[t],i=n(void 0,{type:em.INIT});if(typeof i>"u")throw new Error('The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:em.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+em.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function yB(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];typeof e[o]>"u"&&p8('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var u=Object.keys(n),c;c={};var p;try{Cme(n)}catch(h){p=h}return function(v,b){if(v===void 0&&(v={}),p)throw p;{var x=xme(v,n,b,c);x&&p8(x)}for(var N=!1,_={},T=0;T<u.length;T++){var A=u[T],M=n[A],z=v[A],P=M(z,b);if(typeof P>"u"){var I=b&&b.type;throw new Error("When called with an action of type "+(I?'"'+String(I)+'"':"(unknown type)")+', the slice reducer for key "'+A+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}_[A]=P,N=N||P!==z}return N=N||u.length!==Object.keys(v).length,N?_:v}}function yS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function Nme(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return function(){var o=i.apply(void 0,arguments),u=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},c={getState:o.getState,dispatch:function(){return u.apply(void 0,arguments)}},p=t.map(function(h){return h(c)});return u=yS.apply(void 0,p)(o.dispatch),cM(cM({},o),{},{dispatch:u})}}}function dM(){}typeof dM.name=="string"&&dM.name!=="isCrushed"&&p8('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var SS="NOT_FOUND";function wme(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:SS},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function _me(e,t){var n=[];function i(p){var h=n.findIndex(function(b){return t(p,b.key)});if(h>-1){var v=n[h];return h>0&&(n.splice(h,1),n.unshift(v)),v.value}return SS}function o(p,h){i(p)===SS&&(n.unshift({key:p,value:h}),n.length>e&&n.pop())}function u(){return n}function c(){n=[]}return{get:i,put:o,getEntries:u,clear:c}}var Eme=function(t,n){return t===n};function Tme(e){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;for(var o=n.length,u=0;u<o;u++)if(!e(n[u],i[u]))return!1;return!0}}function Rme(e,t){var n=typeof t=="object"?t:{equalityCheck:t},i=n.equalityCheck,o=i===void 0?Eme:i,u=n.maxSize,c=u===void 0?1:u,p=n.resultEqualityCheck,h=Tme(o),v=c===1?wme(h):_me(c,h);function b(){var x=v.get(arguments);if(x===SS){if(x=e.apply(null,arguments),p){var N=v.getEntries(),_=N.find(function(T){return p(T.value,x)});_&&(x=_.value)}v.put(arguments,x)}return x}return b.clearCache=function(){return v.clear()},b}function Ame(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var n=t.map(function(i){return typeof i=="function"?"function "+(i.name||"unnamed")+"()":typeof i}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function kme(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=function(){for(var c=arguments.length,p=new Array(c),h=0;h<c;h++)p[h]=arguments[h];var v=0,b,x={memoizeOptions:void 0},N=p.pop();if(typeof N=="object"&&(x=N,N=p.pop()),typeof N!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof N+"]");var _=x,T=_.memoizeOptions,A=T===void 0?n:T,M=Array.isArray(A)?A:[A],z=Ame(p),P=e.apply(void 0,[function(){return v++,N.apply(null,arguments)}].concat(M)),I=e(function(){for(var $=[],Y=z.length,Z=0;Z<Y;Z++)$.push(z[Z].apply(null,arguments));return b=P.apply(null,$),b});return Object.assign(I,{resultFunc:N,memoizedResultFunc:P,dependencies:z,lastResult:function(){return b},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),I};return o}var Ga=kme(Rme);function SB(e){var t=function(i){var o=i.dispatch,u=i.getState;return function(c){return function(p){return typeof p=="function"?p(o,u,e):c(p)}}};return t}var xB=SB();xB.withExtraArgument=SB;const pM=xB;var Lme=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();globalThis&&globalThis.__generator;var xS=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},Ome=Object.defineProperty,mM=Object.getOwnPropertySymbols,Mme=Object.prototype.hasOwnProperty,Dme=Object.prototype.propertyIsEnumerable,hM=function(e,t,n){return t in e?Ome(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},eb=function(e,t){for(var n in t||(t={}))Mme.call(t,n)&&hM(e,n,t[n]);if(mM)for(var i=0,o=mM(t);i<o.length;i++){var n=o[i];Dme.call(t,n)&&hM(e,n,t[n])}return e},Pme=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yS:yS.apply(null,arguments)};function CB(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function NB(e,t){var n=0;return{measureTime:function(i){var o=Date.now();try{return i()}finally{var u=Date.now();n+=u-o}},warnIfExceeded:function(){n>e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+`ms.
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var Ime=function(e){Lme(t,e);function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,xS([void 0],n[0].concat(this)))):new(t.bind.apply(t,xS([void 0],n.concat(this))))},t}(Array);function m8(e){return Pc(e)?gB(e,function(){}):e}var Fme="Invariant failed";function vM(e,t){if(!e)throw new Error(Fme+": "+(t||""))}function zme(e,t,n,i){return JSON.stringify(e,Bme(t,i),n)}function Bme(e,t){var n=[],i=[];return t||(t=function(o,u){return n[0]===u?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(u)).join(".")+"]"}),function(o,u){if(n.length>0){var c=n.indexOf(this);~c?n.splice(c+1):n.push(this),~c?i.splice(c,1/0,o):i.push(o),~n.indexOf(u)&&(u=t.call(this,o,u))}else n.push(u);return e==null?u:e.call(this,o,u)}}function Ume(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function $me(e,t,n){var i=wB(e,t,n);return{detectMutations:function(){return _B(e,t,i,n)}}}function wB(e,t,n,i){t===void 0&&(t=[]),i===void 0&&(i="");var o={value:n};if(!e(n)){o.children={};for(var u in n){var c=i?i+"."+u:u;t.length&&t.indexOf(c)!==-1||(o.children[u]=wB(e,t,n[u],c))}}return o}function _B(e,t,n,i,o,u){t===void 0&&(t=[]),o===void 0&&(o=!1),u===void 0&&(u="");var c=n?n.value:void 0,p=c===i;if(o&&!p&&!Number.isNaN(i))return{wasMutated:!0,path:u};if(e(c)||e(i))return{wasMutated:!1};var h={};for(var v in n.children)h[v]=!0;for(var v in i)h[v]=!0;for(var v in h){var b=u?u+"."+v:v;if(!(t.length&&t.indexOf(b)!==-1)){var x=_B(e,t,n.children[v],i[v],p,b);if(x.wasMutated)return x}}return{wasMutated:!1}}function jme(e){e===void 0&&(e={});var t=e.isImmutable,n=t===void 0?Ume:t,i=e.ignoredPaths,o=e.warnAfter,u=o===void 0?32:o,c=e.ignore;i=i||c;var p=$me.bind(null,n,i);return function(h){var v=h.getState,b=v(),x=p(b),N;return function(_){return function(T){var A=NB(u,"ImmutableStateInvariantMiddleware");A.measureTime(function(){b=v(),N=x.detectMutations(),x=p(b),vM(!N.wasMutated,"A state mutation was detected between dispatches, in the path '"+(N.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var M=_(T);return A.measureTime(function(){b=v(),N=x.detectMutations(),x=p(b),N.wasMutated&&vM(!N.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(N.path||"")+". Take a look at the reducer(s) handling the action "+zme(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),A.warnIfExceeded(),M}}}}function EB(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||CB(e)}function h8(e,t,n,i,o){t===void 0&&(t=""),n===void 0&&(n=EB),o===void 0&&(o=[]);var u;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var c=i!=null?i(e):Object.entries(e),p=o.length>0,h=0,v=c;h<v.length;h++){var b=v[h],x=b[0],N=b[1],_=t?t+"."+x:x;if(!(p&&o.indexOf(_)>=0)){if(!n(N))return{keyPath:_,value:N};if(typeof N=="object"&&(u=h8(N,_,n,i,o),u))return u}}return!1}function Vme(e){e===void 0&&(e={});var t=e.isSerializable,n=t===void 0?EB:t,i=e.getEntries,o=e.ignoredActions,u=o===void 0?[]:o,c=e.ignoredActionPaths,p=c===void 0?["meta.arg","meta.baseQueryMeta"]:c,h=e.ignoredPaths,v=h===void 0?[]:h,b=e.warnAfter,x=b===void 0?32:b,N=e.ignoreState,_=N===void 0?!1:N,T=e.ignoreActions,A=T===void 0?!1:T;return function(M){return function(z){return function(P){var I=z(P),F=NB(x,"SerializableStateInvariantMiddleware");return!A&&!(u.length&&u.indexOf(P.type)!==-1)&&F.measureTime(function(){var $=h8(P,"",n,i,p);if($){var Y=$.keyPath,Z=$.value;console.error("A non-serializable value was detected in an action, in the path: `"+Y+"`. Value:",Z,`
Take a look at the logic that dispatched this action: `,P,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),_||(F.measureTime(function(){var $=M.getState(),Y=h8($,"",n,i,v);if(Y){var Z=Y.keyPath,ue=Y.value;console.error("A non-serializable value was detected in the state, in the path: `"+Z+"`. Value:",ue,`
Take a look at the reducer(s) handling this action type: `+P.type+`.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),F.warnIfExceeded()),I}}}}function w6(e){return typeof e=="boolean"}function Hme(){return function(t){return Wme(t)}}function Wme(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,i=e.immutableCheck,o=i===void 0?!0:i,u=e.serializableCheck,c=u===void 0?!0:u,p=new Ime;n&&(w6(n)?p.push(pM):p.push(pM.withExtraArgument(n.extraArgument)));{if(o){var h={};w6(o)||(h=o),p.unshift(jme(h))}if(c){var v={};w6(c)||(v=c),p.push(Vme(v))}}return p}var Gme=!1;function Yme(e){var t=Hme(),n=e||{},i=n.reducer,o=i===void 0?void 0:i,u=n.middleware,c=u===void 0?t():u,p=n.devTools,h=p===void 0?!0:p,v=n.preloadedState,b=v===void 0?void 0:v,x=n.enhancers,N=x===void 0?void 0:x,_;if(typeof o=="function")_=o;else if(CB(o))_=yB(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var T=c;if(typeof T=="function"&&(T=T(t),!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(T.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Nme.apply(void 0,T),M=yS;h&&(M=Pme(eb({trace:!Gme},typeof h=="object"&&h)));var z=[A];Array.isArray(N)?z=xS([A],N):typeof N=="function"&&(z=N(z));var P=M.apply(void 0,z);return SE(_,b,P)}function fo(e,t){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var u=t.apply(void 0,i);if(!u)throw new Error("prepareAction did not return an object");return eb(eb({type:e,payload:u.payload},"meta"in u&&{meta:u.meta}),"error"in u&&{error:u.error})}return{type:e,payload:i[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(i){return i.type===e},n}function TB(e){var t={},n=[],i,o={addCase:function(u,c){{if(n.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var p=typeof u=="string"?u:u.type;if(p in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[p]=c,o},addMatcher:function(u,c){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:u,reducer:c}),o},addDefaultCase:function(u){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=u,o}};return e(o),[t,n,i]}function qme(e){return typeof e=="function"}function Zme(e,t,n,i){n===void 0&&(n=[]);var o=typeof t=="function"?TB(t):[t,n,i],u=o[0],c=o[1],p=o[2],h;if(qme(e))h=function(){return m8(e())};else{var v=m8(e);h=function(){return v}}function b(x,N){x===void 0&&(x=h());var _=xS([u[N.type]],c.filter(function(T){var A=T.matcher;return A(N)}).map(function(T){var A=T.reducer;return A}));return _.filter(function(T){return!!T}).length===0&&(_=[p]),_.reduce(function(T,A){if(A)if(ld(T)){var M=T,z=A(M,N);return z===void 0?T:z}else{if(Pc(T))return gB(T,function(P){return A(P,N)});var z=A(T,N);if(z===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return z}return T},x)}return b.getInitialState=h,b}function Kme(e,t){return e+"/"+t}function xE(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var n=typeof e.initialState=="function"?e.initialState:m8(e.initialState),i=e.reducers||{},o=Object.keys(i),u={},c={},p={};o.forEach(function(b){var x=i[b],N=Kme(t,b),_,T;"reducer"in x?(_=x.reducer,T=x.prepare):_=x,u[b]=_,c[N]=_,p[b]=T?fo(N,T):fo(N)});function h(){var b=typeof e.extraReducers=="function"?TB(e.extraReducers):[e.extraReducers],x=b[0],N=x===void 0?{}:x,_=b[1],T=_===void 0?[]:_,A=b[2],M=A===void 0?void 0:A,z=eb(eb({},N),c);return Zme(n,z,T,M)}var v;return{name:t,reducer:function(b,x){return v||(v=h()),v(b,x)},actions:p,caseReducers:u,getInitialState:function(){return v||(v=h()),v.getInitialState()}}}var CE="listenerMiddleware";fo(CE+"/add");fo(CE+"/removeAll");fo(CE+"/remove");fme();var RB={exports:{}},AB={};/**
* @license React
* use-sync-external-store-shim.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=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(I){{for(var F=arguments.length,$=new Array(F>1?F-1:0),Y=1;Y<F;Y++)$[Y-1]=arguments[Y];i("error",I,$)}}function i(I,F,$){{var Y=t.ReactDebugCurrentFrame,Z=Y.getStackAddendum();Z!==""&&(F+="%s",$=$.concat([Z]));var ue=$.map(function(ce){return String(ce)});ue.unshift("Warning: "+F),Function.prototype.apply.call(console[I],console,ue)}}function o(I,F){return I===F&&(I!==0||1/I===1/F)||I!==I&&F!==F}var u=typeof Object.is=="function"?Object.is:o,c=e.useState,p=e.useEffect,h=e.useLayoutEffect,v=e.useDebugValue,b=!1,x=!1;function N(I,F,$){b||e.startTransition!==void 0&&(b=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var Y=F();if(!x){var Z=F();u(Y,Z)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}var ue=c({inst:{value:Y,getSnapshot:F}}),ce=ue[0].inst,le=ue[1];return h(function(){ce.value=Y,ce.getSnapshot=F,_(ce)&&le({inst:ce})},[I,Y,F]),p(function(){_(ce)&&le({inst:ce});var ge=function(){_(ce)&&le({inst:ce})};return I(ge)},[I]),v(Y),Y}function _(I){var F=I.getSnapshot,$=I.value;try{var Y=F();return!u($,Y)}catch{return!0}}function T(I,F,$){return F()}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M=!A,z=M?T:N,P=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:z;AB.useSyncExternalStore=P,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=AB})(RB);var kB={exports:{}},LB={};/**
* @license React
* use-sync-external-store-shim/with-selector.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=RB.exports;function n(b,x){return b===x&&(b!==0||1/b===1/x)||b!==b&&x!==x}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,p=e.useMemo,h=e.useDebugValue;function v(b,x,N,_,T){var A=u(null),M;A.current===null?(M={hasValue:!1,value:null},A.current=M):M=A.current;var z=p(function(){var $=!1,Y,Z,ue=function(Ye){if(!$){$=!0,Y=Ye;var re=_(Ye);if(T!==void 0&&M.hasValue){var ie=M.value;if(T(ie,re))return Z=ie,ie}return Z=re,re}var Ce=Y,xe=Z;if(i(Ce,Ye))return xe;var K=_(Ye);return T!==void 0&&T(xe,K)?xe:(Y=Ye,Z=K,K)},ce=N===void 0?null:N,le=function(){return ue(x())},ge=ce===null?void 0:function(){return ue(ce())};return[le,ge]},[x,N,_,T]),P=z[0],I=z[1],F=o(b,P,I);return c(function(){M.hasValue=!0,M.value=F},[F]),h(F),F}LB.useSyncExternalStoreWithSelector=v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=LB})(kB);function Xme(e){e()}let OB=Xme;const Qme=e=>OB=e,Jme=()=>OB,Ic=Ae.createContext(null);Ic.displayName="ReactRedux";function MB(){const e=k.exports.useContext(Ic);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const ehe=()=>{throw new Error("uSES not initialized!")};let DB=ehe;const the=e=>{DB=e},nhe=(e,t)=>e===t;function rhe(e=Ic){const t=e===Ic?MB:()=>k.exports.useContext(e);return function(i,o=nhe){{if(!i)throw new Error("You must pass a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof o!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:u,subscription:c,getServerState:p}=t(),h=DB(c.addNestedSub,u.getState,p||u.getState,i,o);return k.exports.useDebugValue(h),h}}const ihe=rhe();var ahe={exports:{}},fr={};/**
* @license React
* react-is.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(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),T=!1,A=!1,M=!1,z=!1,P=!1,I;I=Symbol.for("react.module.reference");function F(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===n||ye===o||P||ye===i||ye===v||ye===b||z||ye===_||T||A||M||typeof ye=="object"&&ye!==null&&(ye.$$typeof===N||ye.$$typeof===x||ye.$$typeof===u||ye.$$typeof===c||ye.$$typeof===h||ye.$$typeof===I||ye.getModuleId!==void 0))}function $(ye){if(typeof ye=="object"&&ye!==null){var et=ye.$$typeof;switch(et){case e:var _t=ye.type;switch(_t){case n:case o:case i:case v:case b:return _t;default:var lt=_t&&_t.$$typeof;switch(lt){case p:case c:case h:case N:case x:case u:return lt;default:return et}}case t:return et}}}var Y=c,Z=u,ue=e,ce=h,le=n,ge=N,Ye=x,re=t,ie=o,Ce=i,xe=v,K=b,be=!1,Ne=!1;function me(ye){return be||(be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(ye){return Ne||(Ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(ye){return $(ye)===c}function Pe(ye){return $(ye)===u}function Ze(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function it(ye){return $(ye)===h}function bt(ye){return $(ye)===n}function Wt(ye){return $(ye)===N}function Xe(ye){return $(ye)===x}function ct(ye){return $(ye)===t}function wt(ye){return $(ye)===o}function Bt(ye){return $(ye)===i}function Ge(ye){return $(ye)===v}function Gt(ye){return $(ye)===b}fr.ContextConsumer=Y,fr.ContextProvider=Z,fr.Element=ue,fr.ForwardRef=ce,fr.Fragment=le,fr.Lazy=ge,fr.Memo=Ye,fr.Portal=re,fr.Profiler=ie,fr.StrictMode=Ce,fr.Suspense=xe,fr.SuspenseList=K,fr.isAsyncMode=me,fr.isConcurrentMode=we,fr.isContextConsumer=De,fr.isContextProvider=Pe,fr.isElement=Ze,fr.isForwardRef=it,fr.isFragment=bt,fr.isLazy=Wt,fr.isMemo=Xe,fr.isPortal=ct,fr.isProfiler=wt,fr.isStrictMode=Bt,fr.isSuspense=Ge,fr.isSuspenseList=Gt,fr.isValidElementType=F,fr.typeOf=$})();(function(e){e.exports=fr})(ahe);function ohe(){const e=Jme();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],o=t;for(;o;)i.push(o),o=o.next;return i},subscribe(i){let o=!0,u=n={callback:i,next:null,prev:n};return u.prev?u.prev.next=u:t=u,function(){!o||t===null||(o=!1,u.next?u.next.prev=u.prev:n=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}const gM={notify(){},get:()=>[]};function she(e,t){let n,i=gM;function o(x){return h(),i.subscribe(x)}function u(){i.notify()}function c(){b.onStateChange&&b.onStateChange()}function p(){return Boolean(n)}function h(){n||(n=t?t.addNestedSub(c):e.subscribe(c),i=ohe())}function v(){n&&(n(),n=void 0,i.clear(),i=gM)}const b={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:p,trySubscribe:h,tryUnsubscribe:v,getListeners:()=>i};return b}const lhe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uhe=lhe?k.exports.useLayoutEffect:k.exports.useEffect;var che="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function fhe({store:e,context:t,children:n,serverState:i}){const o=k.exports.useMemo(()=>{const p=she(e);return{store:e,subscription:p,getServerState:i?()=>i:void 0}},[e,i]),u=k.exports.useMemo(()=>e.getState(),[e]);return uhe(()=>{const{subscription:p}=o;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),u!==e.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[o,u]),C((t||Ic).Provider,{value:o,children:n},void 0,!1,{fileName:che,lineNumber:39,columnNumber:23},this)}function PB(e=Ic){const t=e===Ic?MB:()=>k.exports.useContext(e);return function(){const{store:i}=t();return i}}const dhe=PB();function phe(e=Ic){const t=e===Ic?dhe:PB(e);return function(){return t().dispatch}}const mhe=phe();the(kB.exports.useSyncExternalStoreWithSelector);Qme(Rv.exports.unstable_batchedUpdates);var NE="persist:",IB="persist/FLUSH",wE="persist/REHYDRATE",FB="persist/PAUSE",zB="persist/PERSIST",BB="persist/PURGE",UB="persist/REGISTER",hhe=-1;function Lg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lg=function(n){return typeof n}:Lg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lg(e)}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function vhe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(n,!0).forEach(function(i){ghe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function ghe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bhe(e,t,n,i){var o=i.debug,u=vhe({},n);return e&&Lg(e)==="object"&&Object.keys(e).forEach(function(c){if(c!=="_persist"){if(t[c]!==n[c]){o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",c);return}u[c]=e[c]}}),o&&e&&Lg(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),u}function yhe(e){var t=e.blacklist||null,n=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,u="".concat(e.keyPrefix!==void 0?e.keyPrefix:NE).concat(e.key),c=e.storage,p;e.serialize===!1?p=function($){return $}:typeof e.serialize=="function"?p=e.serialize:p=She;var h=e.writeFailHandler||null,v={},b={},x=[],N=null,_=null,T=function($){Object.keys($).forEach(function(Y){!z(Y)||v[Y]!==$[Y]&&x.indexOf(Y)===-1&&x.push(Y)}),Object.keys(v).forEach(function(Y){$[Y]===void 0&&z(Y)&&x.indexOf(Y)===-1&&v[Y]!==void 0&&x.push(Y)}),N===null&&(N=setInterval(A,o)),v=$};function A(){if(x.length===0){N&&clearInterval(N),N=null;return}var F=x.shift(),$=i.reduce(function(Y,Z){return Z.in(Y,F,v)},v[F]);if($!==void 0)try{b[F]=p($)}catch(Y){console.error("redux-persist/createPersistoid: error serializing state",Y)}else delete b[F];x.length===0&&M()}function M(){Object.keys(b).forEach(function(F){v[F]===void 0&&delete b[F]}),_=c.setItem(u,p(b)).catch(P)}function z(F){return!(n&&n.indexOf(F)===-1&&F!=="_persist"||t&&t.indexOf(F)!==-1)}function P(F){h&&h(F),F&&console.error("Error storing data",F)}var I=function(){for(;x.length!==0;)A();return _||Promise.resolve()};return{update:T,flush:I}}function She(e){return JSON.stringify(e)}function xhe(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:NE).concat(e.key),i=e.storage,o=e.debug,u;return e.deserialize===!1?u=function(p){return p}:typeof e.deserialize=="function"?u=e.deserialize:u=Che,i.getItem(n).then(function(c){if(c)try{var p={},h=u(c);return Object.keys(h).forEach(function(v){p[v]=t.reduceRight(function(b,x){return x.out(b,v,h)},u(h[v]))}),p}catch(v){throw o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(c),v),v}else return})}function Che(e){return JSON.parse(e)}function Nhe(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:NE).concat(e.key);return t.removeItem(n,whe)}function whe(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yM(n,!0).forEach(function(i){_he(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ehe(e,t){if(e==null)return{};var n=The(e,t),i,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)i=u[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function The(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u<i.length;u++)o=i[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Rhe=5e3;function $B(e,t){{if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:hhe;e.debug;var i=e.stateReconciler===void 0?bhe:e.stateReconciler,o=e.getStoredState||xhe,u=e.timeout!==void 0?e.timeout:Rhe,c=null,p=!1,h=!0,v=function(x){return x._persist.rehydrated&&c&&!h&&c.update(x),x};return function(b,x){var N=b||{},_=N._persist,T=Ehe(N,["_persist"]),A=T;if(x.type===zB){var M=!1,z=function(ue,ce){M&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),ue,ce),M||(x.rehydrate(e.key,ue,ce),M=!0)};if(u&&setTimeout(function(){!M&&z(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},u),h=!1,c||(c=yhe(e)),_)return _c({},t(A,x),{_persist:_});if(typeof x.rehydrate!="function"||typeof x.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return x.register(e.key),o(e).then(function(Z){var ue=e.migrate||function(ce,le){return Promise.resolve(ce)};ue(Z,n).then(function(ce){z(ce)},function(ce){ce&&console.error("redux-persist: migration error",ce),z(void 0,ce)})},function(Z){z(void 0,Z)}),_c({},t(A,x),{_persist:{version:n,rehydrated:!1}})}else{if(x.type===BB)return p=!0,x.result(Nhe(e)),_c({},t(A,x),{_persist:_});if(x.type===IB)return x.result(c&&c.flush()),_c({},t(A,x),{_persist:_});if(x.type===FB)h=!0;else if(x.type===wE){if(p)return _c({},A,{_persist:_c({},_,{rehydrated:!0})});if(x.key===e.key){var P=t(A,x),I=x.payload,F=i!==!1&&I!==void 0?i(I,b,P,e):P,$=_c({},F,{_persist:_c({},_,{rehydrated:!0})});return v($)}}}if(!_)return t(b,x);var Y=t(A,x);return Y===A?b:v(_c({},Y,{_persist:_}))}}function SM(e){return Lhe(e)||khe(e)||Ahe()}function Ahe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function khe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Lhe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function v8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(n,!0).forEach(function(i){Ohe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Ohe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jB={registry:[],bootstrapped:!1},Mhe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jB,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case UB:return v8({},t,{registry:[].concat(SM(t.registry),[n.key])});case wE:var i=t.registry.indexOf(n.key),o=SM(t.registry);return o.splice(i,1),v8({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Dhe(e,t,n){{var i=t||{},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(b){i[b]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(b,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var u=n||!1,c=SE(Mhe,jB,t&&t.enhancer?t.enhancer:void 0),p=function(x){c.dispatch({type:UB,key:x})},h=function(x,N,_){var T={type:wE,payload:N,err:_,key:x};e.dispatch(T),c.dispatch(T),u&&v.getState().bootstrapped&&(u(),u=!1)},v=v8({},c,{purge:function(){var x=[];return e.dispatch({type:BB,result:function(_){x.push(_)}}),Promise.all(x)},flush:function(){var x=[];return e.dispatch({type:IB,result:function(_){x.push(_)}}),Promise.all(x)},pause:function(){e.dispatch({type:FB})},persist:function(){e.dispatch({type:zB,register:p,rehydrate:h})}});return t&&t.manualPersist||v.persist(),v}var _E={},EE={};EE.__esModule=!0;EE.default=Fhe;function k4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k4=function(n){return typeof n}:k4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k4(e)}function _6(){}var Phe={getItem:_6,setItem:_6,removeItem:_6};function Ihe(e){if((typeof self>"u"?"undefined":k4(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Fhe(e){var t="".concat(e,"Storage");return Ihe(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),Phe)}_E.__esModule=!0;_E.default=Uhe;var zhe=Bhe(EE);function Bhe(e){return e&&e.__esModule?e:{default:e}}function Uhe(e){var t=(0,zhe.default)(e);return{getItem:function(i){return new Promise(function(o,u){o(t.getItem(i))})},setItem:function(i,o){return new Promise(function(u,c){u(t.setItem(i,o))})},removeItem:function(i){return new Promise(function(o,u){o(t.removeItem(i))})}}}var TE=void 0,$he=jhe(_E);function jhe(e){return e&&e.__esModule?e:{default:e}}var Vhe=(0,$he.default)("local");TE=Vhe;const g8=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),Hhe=e=>{const i=e.split(",").map(o=>o.split(":")).map(o=>({seed:Number(o[0]),weight:Number(o[1])}));return RE(i)?i:!1},RE=e=>Boolean(typeof e=="string"?Hhe(e):e.length&&!e.some(t=>{const{seed:n,weight:i}=t,o=!isNaN(parseInt(n.toString(),10)),u=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(o&&u)})),b8=e=>e.reduce((t,n,i,o)=>{const{seed:u,weight:c}=n;return t+=`${u}:${c}`,i!==o.length-1&&(t+=","),t},""),Whe=e=>e.split(",").map(i=>i.split(":")).map(i=>[parseInt(i[0]),parseFloat(i[1])]),VB={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,hiresFix:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:null,maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunFacetool:!1,facetoolStrength:.8,facetoolType:"gfpgan",codeformerFidelity:.75,shouldRandomizeSeed:!0,showAdvancedOptions:!0,activeTab:0,shouldShowImageDetails:!1,shouldShowGallery:!1},Ghe=VB,HB=xE({name:"options",initialState:Ghe,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=g8(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setFacetoolStrength:(e,t)=>{e.facetoolStrength=t.payload},setCodeformerFidelity:(e,t)=>{e.codeformerFidelity=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setHiresFix:(e,t)=>{e.hiresFix=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:i}=t.payload,o={...e,[n]:i};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&i===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{type:n,sampler:i,prompt:o,seed:u,variations:c,steps:p,cfg_scale:h,threshold:v,perlin:b,seamless:x,hires_fix:N,width:_,height:T,strength:A,fit:M,init_image_path:z,mask_image_path:P}=t.payload.image;n==="img2img"?(z&&(e.initialImagePath=z),P&&(e.maskPath=P),A&&(e.img2imgStrength=A),typeof M=="boolean"&&(e.shouldFitToWidthHeight=M),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,c&&c.length>0?(e.seedWeights=b8(c),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,u&&(e.seed=u,e.shouldRandomizeSeed=!1),o&&(e.prompt=g8(o)),i&&(e.sampler=i),p&&(e.steps=p),h&&(e.cfgScale=h),v&&(e.threshold=v),typeof v>"u"&&(e.threshold=0),b&&(e.perlin=b),typeof b>"u"&&(e.perlin=0),typeof x=="boolean"&&(e.seamless=x),typeof N=="boolean"&&(e.hiresFix=N),_&&(e.width=_),T&&(e.height=T)},resetOptionsState:e=>({...e,...VB}),setShouldRunFacetool:(e,t)=>{e.shouldRunFacetool=t.payload},setFacetoolType:(e,t)=>{e.facetoolType=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload},setShowAdvancedOptions:(e,t)=>{e.showAdvancedOptions=t.payload},setActiveTab:(e,t)=>{e.activeTab=t.payload},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShouldShowGallery:(e,t)=>{e.shouldShowGallery=t.payload}}}),{setPrompt:WB,setIterations:Yhe,setSteps:GB,setCfgScale:YB,setThreshold:qhe,setPerlin:Zhe,setHeight:qB,setWidth:ZB,setSampler:KB,setSeed:Tb,setSeamless:XB,setHiresFix:QB,setImg2imgStrength:JB,setFacetoolStrength:L4,setFacetoolType:O4,setCodeformerFidelity:eU,setUpscalingLevel:y8,setUpscalingStrength:S8,setShouldUseInitImage:Nye,setInitialImagePath:Tv,setMaskPath:x8,resetSeed:wye,resetOptionsState:_ye,setShouldFitToWidthHeight:tU,setParameter:Eye,setShouldGenerateVariations:Khe,setSeedWeights:nU,setVariationAmount:Xhe,setAllParameters:rU,setShouldRunFacetool:Qhe,setShouldRunESRGAN:Jhe,setShouldRandomizeSeed:eve,setShowAdvancedOptions:tve,setActiveTab:Rc,setShouldShowImageDetails:nve,setShouldShowGallery:CM}=HB.actions,rve=HB.reducer;var Wa={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,i="4.17.21",o=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",v=500,b="__lodash_placeholder__",x=1,N=2,_=4,T=1,A=2,M=1,z=2,P=4,I=8,F=16,$=32,Y=64,Z=128,ue=256,ce=512,le=30,ge="...",Ye=800,re=16,ie=1,Ce=2,xe=3,K=1/0,be=9007199254740991,Ne=17976931348623157e292,me=0/0,we=4294967295,De=we-1,Pe=we>>>1,Ze=[["ary",Z],["bind",M],["bindKey",z],["curry",I],["curryRight",F],["flip",ce],["partial",$],["partialRight",Y],["rearg",ue]],it="[object Arguments]",bt="[object Array]",Wt="[object AsyncFunction]",Xe="[object Boolean]",ct="[object Date]",wt="[object DOMException]",Bt="[object Error]",Ge="[object Function]",Gt="[object GeneratorFunction]",ye="[object Map]",et="[object Number]",_t="[object Null]",lt="[object Object]",xn="[object Promise]",$n="[object Proxy]",Ft="[object RegExp]",on="[object Set]",Ln="[object String]",gn="[object Symbol]",He="[object Undefined]",Je="[object WeakMap]",nn="[object WeakSet]",Ot="[object ArrayBuffer]",Oe="[object DataView]",qt="[object Float32Array]",En="[object Float64Array]",je="[object Int8Array]",at="[object Int16Array]",Tt="[object Int32Array]",hn="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Tn="[object Uint16Array]",In="[object Uint32Array]",Or=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jn=/&(?:amp|lt|gt|quot|#39);/g,Rn=/[&<>"']/g,Ci=RegExp(jn.source),xr=RegExp(Rn.source),zo=/<%-([\s\S]+?)%>/g,hs=/<%([\s\S]+?)%>/g,vs=/<%=([\s\S]+?)%>/g,Bo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uo=/^\w*$/,vr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$i=/[\\^$.*+?()[\]{}|]/g,Ya=RegExp($i.source),ji=/^\s+/,X=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ke=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,nt=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vn=/\w*$/,Bn=/^[-+]0x[0-9a-f]+$/i,un=/^0b[01]+$/i,Vr=/^\[object .+?Constructor\]$/,wa=/^0o[0-7]+$/i,$o=/^(?:0|[1-9]\d*)$/,Ni=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ho=/($^)/,zu=/['\n\r\u2028\u2029\\]/g,_a="\\ud800-\\udfff",nl="\\u0300-\\u036f",qa="\\ufe20-\\ufe2f",en="\\u20d0-\\u20ff",Za=nl+qa+en,wi="\\u2700-\\u27bf",jo="a-z\\xdf-\\xf6\\xf8-\\xff",gs="\\xac\\xb1\\xd7\\xf7",Vo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bs="\\u2000-\\u206f",ys=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ho="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",Ss=gs+Vo+bs+ys,rl="['\u2019]",il="["+_a+"]",Ea="["+Ss+"]",zr="["+Za+"]",Vi="\\d+",_i="["+wi+"]",Hi="["+jo+"]",xs="[^"+_a+Ss+Vi+wi+jo+Ho+"]",Go="\\ud83c[\\udffb-\\udfff]",Cs="(?:"+zr+"|"+Go+")",Hl="[^"+_a+"]",Ei="(?:\\ud83c[\\udde6-\\uddff]){2}",Yo="[\\ud800-\\udbff][\\udc00-\\udfff]",Wi="["+Ho+"]",Ta="\\u200d",al="(?:"+Hi+"|"+xs+")",cn="(?:"+Wi+"|"+xs+")",Ra="(?:"+rl+"(?:d|ll|m|re|s|t|ve))?",qo="(?:"+rl+"(?:D|LL|M|RE|S|T|VE))?",jt=Cs+"?",ol="["+Wo+"]?",Cr="(?:"+Ta+"(?:"+[Hl,Ei,Yo].join("|")+")"+ol+jt+")*",Ka="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ta="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vo=ol+jt+Cr,Rr="(?:"+[_i,Ei,Yo].join("|")+")"+vo,ar="(?:"+[Hl+zr+"?",zr,Ei,Yo,il].join("|")+")",Zo=RegExp(rl,"g"),Xr=RegExp(zr,"g"),mr=RegExp(Go+"(?="+Go+")|"+ar+vo,"g"),oi=RegExp([Wi+"?"+Hi+"+"+Ra+"(?="+[Ea,Wi,"$"].join("|")+")",cn+"+"+qo+"(?="+[Ea,Wi+al,"$"].join("|")+")",Wi+"?"+al+"+"+Ra,Wi+"+"+qo,ta,Ka,Vi,Rr].join("|"),"g"),Bu=RegExp("["+Ta+_a+Za+Wo+"]"),go=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Aa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sl=-1,vn={};vn[qt]=vn[En]=vn[je]=vn[at]=vn[Tt]=vn[hn]=vn[Jt]=vn[Tn]=vn[In]=!0,vn[it]=vn[bt]=vn[Ot]=vn[Xe]=vn[Oe]=vn[ct]=vn[Bt]=vn[Ge]=vn[ye]=vn[et]=vn[lt]=vn[Ft]=vn[on]=vn[Ln]=vn[Je]=!1;var Fn={};Fn[it]=Fn[bt]=Fn[Ot]=Fn[Oe]=Fn[Xe]=Fn[ct]=Fn[qt]=Fn[En]=Fn[je]=Fn[at]=Fn[Tt]=Fn[ye]=Fn[et]=Fn[lt]=Fn[Ft]=Fn[on]=Fn[Ln]=Fn[gn]=Fn[hn]=Fn[Jt]=Fn[Tn]=Fn[In]=!0,Fn[Bt]=Fn[Ge]=Fn[Je]=!1;var Wl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Gi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},J={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pe=parseFloat,ot=parseInt,fn=typeof Ac=="object"&&Ac&&Ac.Object===Object&&Ac,zn=typeof self=="object"&&self&&self.Object===Object&&self,Kt=fn||zn||Function("return this")(),S=t&&!t.nodeType&&t,L=S&&!0&&e&&!e.nodeType&&e,V=L&&L.exports===S,G=V&&fn.process,ne=function(){try{var oe=L&&L.require&&L.require("util").types;return oe||G&&G.binding&&G.binding("util")}catch{}}(),ze=ne&&ne.isArrayBuffer,_e=ne&&ne.isDate,Ve=ne&&ne.isMap,st=ne&&ne.isRegExp,xt=ne&&ne.isSet,Mt=ne&&ne.isTypedArray;function yt(oe,Re,Se){switch(Se.length){case 0:return oe.call(Re);case 1:return oe.call(Re,Se[0]);case 2:return oe.call(Re,Se[0],Se[1]);case 3:return oe.call(Re,Se[0],Se[1],Se[2])}return oe.apply(Re,Se)}function Vt(oe,Re,Se,ht){for(var rn=-1,Zn=oe==null?0:oe.length;++rn<Zn;){var Qr=oe[rn];Re(ht,Qr,Se(Qr),oe)}return ht}function Rt(oe,Re){for(var Se=-1,ht=oe==null?0:oe.length;++Se<ht&&Re(oe[Se],Se,oe)!==!1;);return oe}function Ut(oe,Re){for(var Se=oe==null?0:oe.length;Se--&&Re(oe[Se],Se,oe)!==!1;);return oe}function ka(oe,Re){for(var Se=-1,ht=oe==null?0:oe.length;++Se<ht;)if(!Re(oe[Se],Se,oe))return!1;return!0}function Ti(oe,Re){for(var Se=-1,ht=oe==null?0:oe.length,rn=0,Zn=[];++Se<ht;){var Qr=oe[Se];Re(Qr,Se,oe)&&(Zn[rn++]=Qr)}return Zn}function Ko(oe,Re){var Se=oe==null?0:oe.length;return!!Se&&$u(oe,Re,0)>-1}function Uu(oe,Re,Se){for(var ht=-1,rn=oe==null?0:oe.length;++ht<rn;)if(Se(Re,oe[ht]))return!0;return!1}function Mn(oe,Re){for(var Se=-1,ht=oe==null?0:oe.length,rn=Array(ht);++Se<ht;)rn[Se]=Re(oe[Se],Se,oe);return rn}function La(oe,Re){for(var Se=-1,ht=Re.length,rn=oe.length;++Se<ht;)oe[rn+Se]=Re[Se];return oe}function Ns(oe,Re,Se,ht){var rn=-1,Zn=oe==null?0:oe.length;for(ht&&Zn&&(Se=oe[++rn]);++rn<Zn;)Se=Re(Se,oe[rn],rn,oe);return Se}function pd(oe,Re,Se,ht){var rn=oe==null?0:oe.length;for(ht&&rn&&(Se=oe[--rn]);rn--;)Se=Re(Se,oe[rn],rn,oe);return Se}function Uv(oe,Re){for(var Se=-1,ht=oe==null?0:oe.length;++Se<ht;)if(Re(oe[Se],Se,oe))return!0;return!1}var d3=hd("length");function kb(oe){return oe.split("")}function $v(oe){return oe.match(sn)||[]}function jv(oe,Re,Se){var ht;return Se(oe,function(rn,Zn,Qr){if(Re(rn,Zn,Qr))return ht=Zn,!1}),ht}function md(oe,Re,Se,ht){for(var rn=oe.length,Zn=Se+(ht?1:-1);ht?Zn--:++Zn<rn;)if(Re(oe[Zn],Zn,oe))return Zn;return-1}function $u(oe,Re,Se){return Re===Re?Wv(oe,Re,Se):md(oe,ws,Se)}function p3(oe,Re,Se,ht){for(var rn=Se-1,Zn=oe.length;++rn<Zn;)if(ht(oe[rn],Re))return rn;return-1}function ws(oe){return oe!==oe}function Lb(oe,Re){var Se=oe==null?0:oe.length;return Se?zc(oe,Re)/Se:me}function hd(oe){return function(Re){return Re==null?n:Re[oe]}}function vd(oe){return function(Re){return oe==null?n:oe[Re]}}function mm(oe,Re,Se,ht,rn){return rn(oe,function(Zn,Qr,Jn){Se=ht?(ht=!1,Zn):Re(Se,Zn,Qr,Jn)}),Se}function m3(oe,Re){var Se=oe.length;for(oe.sort(Re);Se--;)oe[Se]=oe[Se].value;return oe}function zc(oe,Re){for(var Se,ht=-1,rn=oe.length;++ht<rn;){var Zn=Re(oe[ht]);Zn!==n&&(Se=Se===n?Zn:Se+Zn)}return Se}function hm(oe,Re){for(var Se=-1,ht=Array(oe);++Se<oe;)ht[Se]=Re(Se);return ht}function Oa(oe,Re){return Mn(Re,function(Se){return[Se,oe[Se]]})}function _s(oe){return oe&&oe.slice(0,Ib(oe)+1).replace(ji,"")}function Hn(oe){return function(Re){return oe(Re)}}function Xo(oe,Re){return Mn(Re,function(Se){return oe[Se]})}function ju(oe,Re){return oe.has(Re)}function gd(oe,Re){for(var Se=-1,ht=oe.length;++Se<ht&&$u(Re,oe[Se],0)>-1;);return Se}function Ob(oe,Re){for(var Se=oe.length;Se--&&$u(Re,oe[Se],0)>-1;);return Se}function bd(oe,Re){for(var Se=oe.length,ht=0;Se--;)oe[Se]===Re&&++ht;return ht}var h3=vd(Wl),v3=vd(Gi);function Vv(oe){return"\\"+J[oe]}function g3(oe,Re){return oe==null?n:oe[Re]}function Bc(oe){return Bu.test(oe)}function b3(oe){return go.test(oe)}function Mb(oe){for(var Re,Se=[];!(Re=oe.next()).done;)Se.push(Re.value);return Se}function Hv(oe){var Re=-1,Se=Array(oe.size);return oe.forEach(function(ht,rn){Se[++Re]=[rn,ht]}),Se}function Db(oe,Re){return function(Se){return oe(Re(Se))}}function Gl(oe,Re){for(var Se=-1,ht=oe.length,rn=0,Zn=[];++Se<ht;){var Qr=oe[Se];(Qr===Re||Qr===b)&&(oe[Se]=b,Zn[rn++]=Se)}return Zn}function yd(oe){var Re=-1,Se=Array(oe.size);return oe.forEach(function(ht){Se[++Re]=ht}),Se}function Uc(oe){var Re=-1,Se=Array(oe.size);return oe.forEach(function(ht){Se[++Re]=[ht,ht]}),Se}function Wv(oe,Re,Se){for(var ht=Se-1,rn=oe.length;++ht<rn;)if(oe[ht]===Re)return ht;return-1}function Pb(oe,Re,Se){for(var ht=Se+1;ht--;)if(oe[ht]===Re)return ht;return ht}function Vu(oe){return Bc(oe)?S3(oe):d3(oe)}function Qo(oe){return Bc(oe)?x3(oe):kb(oe)}function Ib(oe){for(var Re=oe.length;Re--&&X.test(oe.charAt(Re)););return Re}var y3=vd(W);function S3(oe){for(var Re=mr.lastIndex=0;mr.test(oe);)++Re;return Re}function x3(oe){return oe.match(mr)||[]}function C3(oe){return oe.match(oi)||[]}var N3=function oe(Re){Re=Re==null?Kt:$c.defaults(Kt.Object(),Re,$c.pick(Kt,Aa));var Se=Re.Array,ht=Re.Date,rn=Re.Error,Zn=Re.Function,Qr=Re.Math,Jn=Re.Object,ll=Re.RegExp,vm=Re.String,Xa=Re.TypeError,ul=Se.prototype,w3=Zn.prototype,jc=Jn.prototype,gm=Re["__core-js_shared__"],bm=w3.toString,er=jc.hasOwnProperty,Fb=0,zb=function(){var l=/[^.]+$/.exec(gm&&gm.keys&&gm.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Sd=jc.toString,na=bm.call(Jn),Bb=Kt._,_3=ll("^"+bm.call(er).replace($i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ym=V?Re.Buffer:n,Yl=Re.Symbol,Sm=Re.Uint8Array,Ub=ym?ym.allocUnsafe:n,xd=Db(Jn.getPrototypeOf,Jn),xm=Jn.create,Vc=jc.propertyIsEnumerable,Cm=ul.splice,Hc=Yl?Yl.isConcatSpreadable:n,Cd=Yl?Yl.iterator:n,Hu=Yl?Yl.toStringTag:n,Nm=function(){try{var l=Ql(Jn,"defineProperty");return l({},"",{}),l}catch{}}(),Gv=Re.clearTimeout!==Kt.clearTimeout&&Re.clearTimeout,Yv=ht&&ht.now!==Kt.Date.now&&ht.now,Wc=Re.setTimeout!==Kt.setTimeout&&Re.setTimeout,cl=Qr.ceil,Nd=Qr.floor,qv=Jn.getOwnPropertySymbols,$b=ym?ym.isBuffer:n,jb=Re.isFinite,Vb=ul.join,Hb=Db(Jn.keys,Jn),Hr=Qr.max,si=Qr.min,E3=ht.now,Wb=Re.parseInt,Gb=Qr.random,T3=ul.reverse,Zv=Ql(Re,"DataView"),fl=Ql(Re,"Map"),wd=Ql(Re,"Promise"),Es=Ql(Re,"Set"),Gc=Ql(Re,"WeakMap"),Yc=Ql(Jn,"create"),qc=Gc&&new Gc,Zc={},Kc=rc(Zv),wm=rc(fl),_m=rc(wd),Kv=rc(Es),R3=rc(Gc),Xc=Yl?Yl.prototype:n,_d=Xc?Xc.valueOf:n,Yb=Xc?Xc.toString:n;function B(l){if(kr(l)&&!ln(l)&&!(l instanceof An)){if(l instanceof bo)return l;if(er.call(l,"__wrapped__"))return wy(l)}return new bo(l)}var ql=function(){function l(){}return function(d){if(!wr(d))return{};if(xm)return xm(d);l.prototype=d;var g=new l;return l.prototype=n,g}}();function dl(){}function bo(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}B.templateSettings={escape:zo,evaluate:hs,interpolate:vs,variable:"",imports:{_:B}},B.prototype=dl.prototype,B.prototype.constructor=B,bo.prototype=ql(dl.prototype),bo.prototype.constructor=bo;function An(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function zt(){var l=new An(this.__wrapped__);return l.__actions__=ui(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=ui(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=ui(this.__views__),l}function Qc(){if(this.__filtered__){var l=new An(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function Wr(){var l=this.__wrapped__.value(),d=this.__dir__,g=ln(l),E=d<0,D=g?l.length:0,j=Hm(0,D,this.__views__),q=j.start,Q=j.end,se=Q-q,Me=E?Q:q-1,ke=this.__iteratees__,Ie=ke.length,Qe=0,vt=si(se,this.__takeCount__);if(!g||!E&&D==se&&vt==se)return Mm(l,this.__actions__);var It=[];e:for(;se--&&Qe<vt;){Me+=d;for(var mn=-1,$t=l[Me];++mn<Ie;){var yn=ke[mn],kn=yn.iteratee,Zi=yn.type,br=kn($t);if(Zi==Ce)$t=br;else if(!br){if(Zi==ie)continue e;break e}}It[Qe++]=$t}return It}An.prototype=ql(dl.prototype),An.prototype.constructor=An;function dn(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Wu(){this.__data__=Yc?Yc(null):{},this.size=0}function Ed(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function Xv(l){var d=this.__data__;if(Yc){var g=d[l];return g===h?n:g}return er.call(d,l)?d[l]:n}function Un(l){var d=this.__data__;return Yc?d[l]!==n:er.call(d,l)}function pl(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Yc&&d===n?h:d,this}dn.prototype.clear=Wu,dn.prototype.delete=Ed,dn.prototype.get=Xv,dn.prototype.has=Un,dn.prototype.set=pl;function Yi(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Gu(){this.__data__=[],this.size=0}function Jo(l){var d=this.__data__,g=Am(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():Cm.call(d,g,1),--this.size,!0}function ml(l){var d=this.__data__,g=Am(d,l);return g<0?n:d[g][1]}function Yu(l){return Am(this.__data__,l)>-1}function Em(l,d){var g=this.__data__,E=Am(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}Yi.prototype.clear=Gu,Yi.prototype.delete=Jo,Yi.prototype.get=ml,Yi.prototype.has=Yu,Yi.prototype.set=Em;function hl(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function A3(){this.size=0,this.__data__={hash:new dn,map:new(fl||Yi),string:new dn}}function Td(l){var d=jm(this,l).delete(l);return this.size-=d?1:0,d}function ra(l){return jm(this,l).get(l)}function Qv(l){return jm(this,l).has(l)}function qb(l,d){var g=jm(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}hl.prototype.clear=A3,hl.prototype.delete=Td,hl.prototype.get=ra,hl.prototype.has=Qv,hl.prototype.set=qb;function vl(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new hl;++d<g;)this.add(l[d])}function qu(l){return this.__data__.set(l,h),this}function Jv(l){return this.__data__.has(l)}vl.prototype.add=vl.prototype.push=qu,vl.prototype.has=Jv;function Jr(l){var d=this.__data__=new Yi(l);this.size=d.size}function Tm(){this.__data__=new Yi,this.size=0}function e0(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function t0(l){return this.__data__.get(l)}function Rd(l){return this.__data__.has(l)}function Jc(l,d){var g=this.__data__;if(g instanceof Yi){var E=g.__data__;if(!fl||E.length<o-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new hl(E)}return g.set(l,d),this.size=g.size,this}Jr.prototype.clear=Tm,Jr.prototype.delete=e0,Jr.prototype.get=t0,Jr.prototype.has=Rd,Jr.prototype.set=Jc;function Ts(l,d){var g=ln(l),E=!g&&ac(l),D=!g&&!E&&Fs(l),j=!g&&!E&&!D&&nu(l),q=g||E||D||j,Q=q?hm(l.length,vm):[],se=Q.length;for(var Me in l)(d||er.call(l,Me))&&!(q&&(Me=="length"||D&&(Me=="offset"||Me=="parent")||j&&(Me=="buffer"||Me=="byteLength"||Me=="byteOffset")||Ds(Me,se)))&&Q.push(Me);return Q}function Zb(l){var d=l.length;return d?l[yo(0,d-1)]:n}function Zu(l,d){return Gm(ui(l),Zl(d,0,l.length))}function Kb(l){return Gm(ui(l))}function Rm(l,d,g){(g!==n&&!ts(l[d],g)||g===n&&!(d in l))&&Rs(l,d,g)}function Ad(l,d,g){var E=l[d];(!(er.call(l,d)&&ts(E,g))||g===n&&!(d in l))&&Rs(l,d,g)}function Am(l,d){for(var g=l.length;g--;)if(ts(l[g][0],d))return g;return-1}function Xb(l,d,g,E){return Kl(l,function(D,j,q){d(E,D,g(D),q)}),E}function n0(l,d){return l&&qi(d,di(d),l)}function Qb(l,d){return l&&qi(d,Ia(d),l)}function Rs(l,d,g){d=="__proto__"&&Nm?Nm(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function r0(l,d){for(var g=-1,E=d.length,D=Se(E),j=l==null;++g<E;)D[g]=j?n:K0(l,d[g]);return D}function Zl(l,d,g){return l===l&&(g!==n&&(l=l<=g?l:g),d!==n&&(l=l>=d?l:d)),l}function Qa(l,d,g,E,D,j){var q,Q=d&x,se=d&N,Me=d&_;if(g&&(q=D?g(l,E,D,j):g(l)),q!==n)return q;if(!wr(l))return l;var ke=ln(l);if(ke){if(q=ci(l),!Q)return ui(l,q)}else{var Ie=Nr(l),Qe=Ie==Ge||Ie==Gt;if(Fs(l))return Im(l,Q);if(Ie==lt||Ie==it||Qe&&!D){if(q=se||Qe?{}:by(l),!Q)return se?U3(l,Qb(q,l)):to(l,n0(q,l))}else{if(!Fn[Ie])return D?l:{};q=V3(l,Ie,Q)}}j||(j=new Jr);var vt=j.get(l);if(vt)return vt;j.set(l,q),G0(l)?l.forEach(function($t){q.add(Qa($t,d,g,$t,l,j))}):W0(l)&&l.forEach(function($t,yn){q.set(yn,Qa($t,d,g,yn,l,j))});var It=Me?se?nc:Vd:se?Ia:di,mn=ke?n:It(l);return Rt(mn||l,function($t,yn){mn&&(yn=$t,$t=l[yn]),Ad(q,yn,Qa($t,d,g,yn,l,j))}),q}function k3(l){var d=di(l);return function(g){return Jb(g,l,d)}}function Jb(l,d,g){var E=g.length;if(l==null)return!E;for(l=Jn(l);E--;){var D=g[E],j=d[D],q=l[D];if(q===n&&!(D in l)||!j(q))return!1}return!0}function ey(l,d,g){if(typeof l!="function")throw new Xa(c);return xl(function(){l.apply(n,g)},d)}function Mr(l,d,g,E){var D=-1,j=Ko,q=!0,Q=l.length,se=[],Me=d.length;if(!Q)return se;g&&(d=Mn(d,Hn(g))),E?(j=Uu,q=!1):d.length>=o&&(j=ju,q=!1,d=new vl(d));e:for(;++D<Q;){var ke=l[D],Ie=g==null?ke:g(ke);if(ke=E||ke!==0?ke:0,q&&Ie===Ie){for(var Qe=Me;Qe--;)if(d[Qe]===Ie)continue e;se.push(ke)}else j(d,Ie,E)||se.push(ke)}return se}var Kl=zd(gr),kd=zd(rt,!0);function i0(l,d){var g=!0;return Kl(l,function(E,D,j){return g=!!d(E,D,j),g}),g}function As(l,d,g){for(var E=-1,D=l.length;++E<D;){var j=l[E],q=d(j);if(q!=null&&(Q===n?q===q&&!wn(q):g(q,Q)))var Q=q,se=j}return se}function L3(l,d,g,E){var D=l.length;for(g=an(g),g<0&&(g=-g>D?0:D+g),E=E===n||E>D?D:an(E),E<0&&(E+=D),E=g>E?0:sc(E);g<E;)l[g++]=d;return l}function km(l,d){var g=[];return Kl(l,function(E,D,j){d(E,D,j)&&g.push(E)}),g}function Ri(l,d,g,E,D){var j=-1,q=l.length;for(g||(g=w0),D||(D=[]);++j<q;){var Q=l[j];d>0&&g(Q)?d>1?Ri(Q,d-1,g,E,D):La(D,Q):E||(D[D.length]=Q)}return D}var a0=lf(),Ku=lf(!0);function gr(l,d){return l&&a0(l,d,di)}function rt(l,d){return l&&Ku(l,d,di)}function Ja(l,d){return Ti(d,function(g){return zs(l[g])})}function Ai(l,d){d=Ls(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[Da(d[g++])];return g&&g==E?l:n}function ty(l,d,g){var E=d(l);return ln(l)?E:La(E,g(l))}function ia(l){return l==null?l===n?He:_t:Hu&&Hu in Jn(l)?gy(l):R0(l)}function o0(l,d){return l>d}function O3(l,d){return l!=null&&er.call(l,d)}function M3(l,d){return l!=null&&d in Jn(l)}function li(l,d,g){return l>=si(d,g)&&l<Hr(d,g)}function s0(l,d,g){for(var E=g?Uu:Ko,D=l[0].length,j=l.length,q=j,Q=Se(j),se=1/0,Me=[];q--;){var ke=l[q];q&&d&&(ke=Mn(ke,Hn(d))),se=si(ke.length,se),Q[q]=!g&&(d||D>=120&&ke.length>=120)?new vl(q&&ke):n}ke=l[0];var Ie=-1,Qe=Q[0];e:for(;++Ie<D&&Me.length<se;){var vt=ke[Ie],It=d?d(vt):vt;if(vt=g||vt!==0?vt:0,!(Qe?ju(Qe,It):E(Me,It,g))){for(q=j;--q;){var mn=Q[q];if(!(mn?ju(mn,It):E(l[q],It,g)))continue e}Qe&&Qe.push(It),Me.push(vt)}}return Me}function D3(l,d,g,E){return gr(l,function(D,j,q){d(E,g(D),j,q)}),E}function Ld(l,d,g){d=Ls(d,l),l=Sl(l,d);var E=l==null?l:l[Da(xo(d))];return E==null?n:yt(E,l,g)}function l0(l){return kr(l)&&ia(l)==it}function Od(l){return kr(l)&&ia(l)==Ot}function ef(l){return kr(l)&&ia(l)==ct}function Md(l,d,g,E,D){return l===d?!0:l==null||d==null||!kr(l)&&!kr(d)?l!==l&&d!==d:P3(l,d,g,E,Md,D)}function P3(l,d,g,E,D,j){var q=ln(l),Q=ln(d),se=q?bt:Nr(l),Me=Q?bt:Nr(d);se=se==it?lt:se,Me=Me==it?lt:Me;var ke=se==lt,Ie=Me==lt,Qe=se==Me;if(Qe&&Fs(l)){if(!Fs(d))return!1;q=!0,ke=!1}if(Qe&&!ke)return j||(j=new Jr),q||nu(l)?jd(l,d,g,E,D,j):vy(l,d,se,g,E,D,j);if(!(g&T)){var vt=ke&&er.call(l,"__wrapped__"),It=Ie&&er.call(d,"__wrapped__");if(vt||It){var mn=vt?l.value():l,$t=It?d.value():d;return j||(j=new Jr),D(mn,$t,g,E,j)}}return Qe?(j||(j=new Jr),BE(l,d,g,E,D,j)):!1}function I3(l){return kr(l)&&Nr(l)==ye}function u0(l,d,g,E){var D=g.length,j=D,q=!E;if(l==null)return!j;for(l=Jn(l);D--;){var Q=g[D];if(q&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++D<j;){Q=g[D];var se=Q[0],Me=l[se],ke=Q[1];if(q&&Q[2]){if(Me===n&&!(se in l))return!1}else{var Ie=new Jr;if(E)var Qe=E(Me,ke,se,l,d,Ie);if(!(Qe===n?Md(ke,Me,T|A,E,Ie):Qe))return!1}}return!0}function ny(l){if(!wr(l)||E0(l))return!1;var d=zs(l)?_3:Vr;return d.test(rc(l))}function F3(l){return kr(l)&&ia(l)==Ft}function ry(l){return kr(l)&&Nr(l)==on}function iy(l){return kr(l)&&op(l.length)&&!!vn[ia(l)]}function ay(l){return typeof l=="function"?l:l==null?Fa:typeof l=="object"?ln(l)?d0(l[0],l[1]):sy(l):hp(l)}function c0(l){if(!df(l))return Hb(l);var d=[];for(var g in Jn(l))er.call(l,g)&&g!="constructor"&&d.push(g);return d}function z3(l){if(!wr(l))return q3(l);var d=df(l),g=[];for(var E in l)E=="constructor"&&(d||!er.call(l,E))||g.push(E);return g}function f0(l,d){return l<d}function oy(l,d){var g=-1,E=ti(l)?Se(l.length):[];return Kl(l,function(D,j,q){E[++g]=d(D,j,q)}),E}function sy(l){var d=Vm(l);return d.length==1&&d[0][2]?T0(d[0][0],d[0][1]):function(g){return g===l||u0(g,l,d)}}function d0(l,d){return Wm(l)&&yy(d)?T0(Da(l),d):function(g){var E=K0(g,l);return E===n&&E===d?xf(g,l):Md(d,E,T|A)}}function Lm(l,d,g,E,D){l!==d&&a0(d,function(j,q){if(D||(D=new Jr),wr(j))ly(l,d,q,g,Lm,E,D);else{var Q=E?E(Ps(l,q),j,q+"",l,d,D):n;Q===n&&(Q=j),Rm(l,q,Q)}},Ia)}function ly(l,d,g,E,D,j,q){var Q=Ps(l,g),se=Ps(d,g),Me=q.get(se);if(Me){Rm(l,g,Me);return}var ke=j?j(Q,se,g+"",l,d,q):n,Ie=ke===n;if(Ie){var Qe=ln(se),vt=!Qe&&Fs(se),It=!Qe&&!vt&&nu(se);ke=se,Qe||vt||It?ln(Q)?ke=Q:Ar(Q)?ke=ui(Q):vt?(Ie=!1,ke=Im(se,!0)):It?(Ie=!1,ke=Fm(se,!0)):ke=[]:oc(se)||ac(se)?(ke=Q,ac(Q)?ke=q0(Q):(!wr(Q)||zs(Q))&&(ke=by(se))):Ie=!1}Ie&&(q.set(se,ke),D(ke,se,E,j,q),q.delete(se)),Rm(l,g,ke)}function uy(l,d){var g=l.length;if(!!g)return d+=d<0?g:0,Ds(d,g)?l[d]:n}function cy(l,d,g){d.length?d=Mn(d,function(j){return ln(j)?function(q){return Ai(q,j.length===1?j[0]:j)}:j}):d=[Fa];var E=-1;d=Mn(d,Hn(Pt()));var D=oy(l,function(j,q,Q){var se=Mn(d,function(Me){return Me(j)});return{criteria:se,index:++E,value:j}});return m3(D,function(j,q){return dy(j,q,g)})}function p0(l,d){return Dt(l,d,function(g,E){return xf(l,E)})}function Dt(l,d,g){for(var E=-1,D=d.length,j={};++E<D;){var q=d[E],Q=Ai(l,q);g(Q,q)&&Fe(j,Ls(q,l),Q)}return j}function Nn(l){return function(d){return Ai(d,l)}}function Wn(l,d,g,E){var D=E?p3:$u,j=-1,q=d.length,Q=l;for(l===d&&(d=ui(d)),g&&(Q=Mn(l,Hn(g)));++j<q;)for(var se=0,Me=d[j],ke=g?g(Me):Me;(se=D(Q,ke,se,E))>-1;)Q!==l&&Cm.call(Q,se,1),Cm.call(l,se,1);return l}function Br(l,d){for(var g=l?d.length:0,E=g-1;g--;){var D=d[g];if(g==E||D!==j){var j=D;Ds(D)?Cm.call(l,D,1):Dd(l,D)}}return l}function yo(l,d){return l+Nd(Gb()*(d-l+1))}function fy(l,d,g,E){for(var D=-1,j=Hr(cl((d-l)/(g||1)),0),q=Se(j);j--;)q[E?j:++D]=l,l+=g;return q}function m0(l,d){var g="";if(!l||d<1||d>be)return g;do d%2&&(g+=l),d=Nd(d/2),d&&(l+=l);while(d);return g}function bn(l,d){return Is(Gd(l,d,Fa),l+"")}function B3(l){return Zb(Cf(l))}function h0(l,d){var g=Cf(l);return Gm(g,Zl(d,0,g.length))}function Fe(l,d,g,E){if(!wr(l))return l;d=Ls(d,l);for(var D=-1,j=d.length,q=j-1,Q=l;Q!=null&&++D<j;){var se=Da(d[D]),Me=g;if(se==="__proto__"||se==="constructor"||se==="prototype")return l;if(D!=q){var ke=Q[se];Me=E?E(ke,se,Q):n,Me===n&&(Me=wr(ke)?ke:Ds(d[D+1])?[]:{})}Ad(Q,se,Me),Q=Q[se]}return l}var ei=qc?function(l,d){return qc.set(l,d),l}:Fa,Yt=Nm?function(l,d){return Nm(l,"toString",{configurable:!0,enumerable:!1,value:s1(d),writable:!0})}:Fa;function tf(l){return Gm(Cf(l))}function Gr(l,d,g){var E=-1,D=l.length;d<0&&(d=-d>D?0:D+d),g=g>D?D:g,g<0&&(g+=D),D=d>g?0:g-d>>>0,d>>>=0;for(var j=Se(D);++E<D;)j[E]=l[E+d];return j}function Xu(l,d){var g;return Kl(l,function(E,D,j){return g=d(E,D,j),!g}),!!g}function eo(l,d,g){var E=0,D=l==null?E:l.length;if(typeof d=="number"&&d===d&&D<=Pe){for(;E<D;){var j=E+D>>>1,q=l[j];q!==null&&!wn(q)&&(g?q<=d:q<d)?E=j+1:D=j}return D}return Qu(l,d,Fa,g)}function Qu(l,d,g,E){var D=0,j=l==null?0:l.length;if(j===0)return 0;d=g(d);for(var q=d!==d,Q=d===null,se=wn(d),Me=d===n;D<j;){var ke=Nd((D+j)/2),Ie=g(l[ke]),Qe=Ie!==n,vt=Ie===null,It=Ie===Ie,mn=wn(Ie);if(q)var $t=E||It;else Me?$t=It&&(E||Qe):Q?$t=It&&Qe&&(E||!vt):se?$t=It&&Qe&&!vt&&(E||!mn):vt||mn?$t=!1:$t=E?Ie<=d:Ie<d;$t?D=ke+1:j=ke}return si(j,De)}function Ju(l,d){for(var g=-1,E=l.length,D=0,j=[];++g<E;){var q=l[g],Q=d?d(q):q;if(!g||!ts(Q,se)){var se=Q;j[D++]=q===0?0:q}}return j}function nf(l){return typeof l=="number"?l:wn(l)?me:+l}function aa(l){if(typeof l=="string")return l;if(ln(l))return Mn(l,aa)+"";if(wn(l))return Yb?Yb.call(l):"";var d=l+"";return d=="0"&&1/l==-K?"-0":d}function ks(l,d,g){var E=-1,D=Ko,j=l.length,q=!0,Q=[],se=Q;if(g)q=!1,D=Uu;else if(j>=o){var Me=d?null:$d(l);if(Me)return yd(Me);q=!1,D=ju,se=new vl}else se=d?[]:Q;e:for(;++E<j;){var ke=l[E],Ie=d?d(ke):ke;if(ke=g||ke!==0?ke:0,q&&Ie===Ie){for(var Qe=se.length;Qe--;)if(se[Qe]===Ie)continue e;d&&se.push(Ie),Q.push(ke)}else D(se,Ie,g)||(se!==Q&&se.push(Ie),Q.push(ke))}return Q}function Dd(l,d){return d=Ls(d,l),l=Sl(l,d),l==null||delete l[Da(xo(d))]}function Om(l,d,g,E){return Fe(l,d,g(Ai(l,d)),E)}function rf(l,d,g,E){for(var D=l.length,j=E?D:-1;(E?j--:++j<D)&&d(l[j],j,l););return g?Gr(l,E?0:j,E?j+1:D):Gr(l,E?j+1:0,E?D:j)}function Mm(l,d){var g=l;return g instanceof An&&(g=g.value()),Ns(d,function(E,D){return D.func.apply(D.thisArg,La([E],D.args))},g)}function Pd(l,d,g){var E=l.length;if(E<2)return E?ks(l[0]):[];for(var D=-1,j=Se(E);++D<E;)for(var q=l[D],Q=-1;++Q<E;)Q!=D&&(j[D]=Mr(j[D]||q,l[Q],d,g));return ks(Ri(j,1),d,g)}function Dm(l,d,g){for(var E=-1,D=l.length,j=d.length,q={};++E<D;){var Q=E<j?d[E]:n;g(q,l[E],Q)}return q}function Id(l){return Ar(l)?l:[]}function Fd(l){return typeof l=="function"?l:Fa}function Ls(l,d){return ln(l)?l:Wm(l,d)?[l]:A0(Xn(l))}var v0=bn;function Os(l,d,g){var E=l.length;return g=g===n?E:g,!d&&g>=E?l:Gr(l,d,g)}var Pm=Gv||function(l){return Kt.clearTimeout(l)};function Im(l,d){if(d)return l.slice();var g=l.length,E=Ub?Ub(g):new l.constructor(g);return l.copy(E),E}function af(l){var d=new l.constructor(l.byteLength);return new Sm(d).set(new Sm(l)),d}function of(l,d){var g=d?af(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function g0(l){var d=new l.constructor(l.source,Vn.exec(l));return d.lastIndex=l.lastIndex,d}function b0(l){return _d?Jn(_d.call(l)):{}}function Fm(l,d){var g=d?af(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function zm(l,d){if(l!==d){var g=l!==n,E=l===null,D=l===l,j=wn(l),q=d!==n,Q=d===null,se=d===d,Me=wn(d);if(!Q&&!Me&&!j&&l>d||j&&q&&se&&!Q&&!Me||E&&q&&se||!g&&se||!D)return 1;if(!E&&!j&&!Me&&l<d||Me&&g&&D&&!E&&!j||Q&&g&&D||!q&&D||!se)return-1}return 0}function dy(l,d,g){for(var E=-1,D=l.criteria,j=d.criteria,q=D.length,Q=g.length;++E<q;){var se=zm(D[E],j[E]);if(se){if(E>=Q)return se;var Me=g[E];return se*(Me=="desc"?-1:1)}}return l.index-d.index}function sf(l,d,g,E){for(var D=-1,j=l.length,q=g.length,Q=-1,se=d.length,Me=Hr(j-q,0),ke=Se(se+Me),Ie=!E;++Q<se;)ke[Q]=d[Q];for(;++D<q;)(Ie||D<j)&&(ke[g[D]]=l[D]);for(;Me--;)ke[Q++]=l[D++];return ke}function y0(l,d,g,E){for(var D=-1,j=l.length,q=-1,Q=g.length,se=-1,Me=d.length,ke=Hr(j-Q,0),Ie=Se(ke+Me),Qe=!E;++D<ke;)Ie[D]=l[D];for(var vt=D;++se<Me;)Ie[vt+se]=d[se];for(;++q<Q;)(Qe||D<j)&&(Ie[vt+g[q]]=l[D++]);return Ie}function ui(l,d){var g=-1,E=l.length;for(d||(d=Se(E));++g<E;)d[g]=l[g];return d}function qi(l,d,g,E){var D=!g;g||(g={});for(var j=-1,q=d.length;++j<q;){var Q=d[j],se=E?E(g[Q],l[Q],Q,g,l):n;se===n&&(se=l[Q]),D?Rs(g,Q,se):Ad(g,Q,se)}return g}function to(l,d){return qi(l,oa(l),d)}function U3(l,d){return qi(l,Ms(l),d)}function tr(l,d){return function(g,E){var D=ln(g)?Vt:Xb,j=d?d():{};return D(g,l,Pt(E,2),j)}}function gl(l){return bn(function(d,g){var E=-1,D=g.length,j=D>1?g[D-1]:n,q=D>2?g[2]:n;for(j=l.length>3&&typeof j=="function"?(D--,j):n,q&&fi(g[0],g[1],q)&&(j=D<3?n:j,D=1),d=Jn(d);++E<D;){var Q=g[E];Q&&l(d,Q,E,j)}return d})}function zd(l,d){return function(g,E){if(g==null)return g;if(!ti(g))return l(g,E);for(var D=g.length,j=d?D:-1,q=Jn(g);(d?j--:++j<D)&&E(q[j],j,q)!==!1;);return g}}function lf(l){return function(d,g,E){for(var D=-1,j=Jn(d),q=E(d),Q=q.length;Q--;){var se=q[l?Q:++D];if(g(j[se],se,j)===!1)break}return d}}function Bm(l,d,g){var E=d&M,D=Bd(l);function j(){var q=this&&this!==Kt&&this instanceof j?D:l;return q.apply(E?g:this,arguments)}return j}function py(l){return function(d){d=Xn(d);var g=Bc(d)?Qo(d):n,E=g?g[0]:d.charAt(0),D=g?Os(g,1).join(""):d.slice(1);return E[l]()+D}}function uf(l){return function(d){return Ns(o1(dp(d).replace(Zo,"")),l,"")}}function Bd(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=ql(l.prototype),E=l.apply(g,d);return wr(E)?E:g}}function $3(l,d,g){var E=Bd(l);function D(){for(var j=arguments.length,q=Se(j),Q=j,se=ff(D);Q--;)q[Q]=arguments[Q];var Me=j<3&&q[0]!==se&&q[j-1]!==se?[]:Gl(q,se);if(j-=Me.length,j<g)return hy(l,d,cf,D.placeholder,n,q,Me,n,n,g-j);var ke=this&&this!==Kt&&this instanceof D?E:l;return yt(ke,this,q)}return D}function Um(l){return function(d,g,E){var D=Jn(d);if(!ti(d)){var j=Pt(g,3);d=di(d),g=function(Q){return j(D[Q],Q,D)}}var q=l(d,g,E);return q>-1?D[j?d[q]:q]:n}}function my(l){return yl(function(d){var g=d.length,E=g,D=bo.prototype.thru;for(l&&d.reverse();E--;){var j=d[E];if(typeof j!="function")throw new Xa(c);if(D&&!q&&Hd(j)=="wrapper")var q=new bo([],!0)}for(E=q?E:g;++E<g;){j=d[E];var Q=Hd(j),se=Q=="wrapper"?N0(j):n;se&&_0(se[0])&&se[1]==(Z|I|$|ue)&&!se[4].length&&se[9]==1?q=q[Hd(se[0])].apply(q,se[3]):q=j.length==1&&_0(j)?q[Q]():q.thru(j)}return function(){var Me=arguments,ke=Me[0];if(q&&Me.length==1&&ln(ke))return q.plant(ke).value();for(var Ie=0,Qe=g?d[Ie].apply(this,Me):ke;++Ie<g;)Qe=d[Ie].call(this,Qe);return Qe}})}function cf(l,d,g,E,D,j,q,Q,se,Me){var ke=d&Z,Ie=d&M,Qe=d&z,vt=d&(I|F),It=d&ce,mn=Qe?n:Bd(l);function $t(){for(var yn=arguments.length,kn=Se(yn),Zi=yn;Zi--;)kn[Zi]=arguments[Zi];if(vt)var br=ff($t),la=bd(kn,br);if(E&&(kn=sf(kn,E,D,vt)),j&&(kn=y0(kn,j,q,vt)),yn-=la,vt&&yn<Me){var _r=Gl(kn,br);return hy(l,d,cf,$t.placeholder,g,kn,_r,Q,se,Me-yn)}var ni=Ie?g:this,Ki=Qe?ni[l]:l;return yn=kn.length,Q?kn=Jl(kn,Q):It&&yn>1&&kn.reverse(),ke&&se<yn&&(kn.length=se),this&&this!==Kt&&this instanceof $t&&(Ki=mn||Bd(Ki)),Ki.apply(ni,kn)}return $t}function S0(l,d){return function(g,E){return D3(g,l,d(E),{})}}function $m(l,d){return function(g,E){var D;if(g===n&&E===n)return d;if(g!==n&&(D=g),E!==n){if(D===n)return E;typeof g=="string"||typeof E=="string"?(g=aa(g),E=aa(E)):(g=nf(g),E=nf(E)),D=l(g,E)}return D}}function x0(l){return yl(function(d){return d=Mn(d,Hn(Pt())),bn(function(g){var E=this;return l(d,function(D){return yt(D,E,g)})})})}function ec(l,d){d=d===n?" ":aa(d);var g=d.length;if(g<2)return g?m0(d,l):d;var E=m0(d,cl(l/Vu(d)));return Bc(d)?Os(Qo(E),0,l).join(""):E.slice(0,l)}function j3(l,d,g,E){var D=d&M,j=Bd(l);function q(){for(var Q=-1,se=arguments.length,Me=-1,ke=E.length,Ie=Se(ke+se),Qe=this&&this!==Kt&&this instanceof q?j:l;++Me<ke;)Ie[Me]=E[Me];for(;se--;)Ie[Me++]=arguments[++Q];return yt(Qe,D?g:this,Ie)}return q}function C0(l){return function(d,g,E){return E&&typeof E!="number"&&fi(d,g,E)&&(g=E=n),d=Cl(d),g===n?(g=d,d=0):g=Cl(g),E=E===n?d<g?1:-1:Cl(E),fy(d,g,E,l)}}function Ud(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=Co(d),g=Co(g)),l(d,g)}}function hy(l,d,g,E,D,j,q,Q,se,Me){var ke=d&I,Ie=ke?q:n,Qe=ke?n:q,vt=ke?j:n,It=ke?n:j;d|=ke?$:Y,d&=~(ke?Y:$),d&P||(d&=~(M|z));var mn=[l,d,D,vt,Ie,It,Qe,Q,se,Me],$t=g.apply(n,mn);return _0(l)&&pf($t,mn),$t.placeholder=E,xy($t,l,d)}function bl(l){var d=Qr[l];return function(g,E){if(g=Co(g),E=E==null?0:si(an(E),292),E&&jb(g)){var D=(Xn(g)+"e").split("e"),j=d(D[0]+"e"+(+D[1]+E));return D=(Xn(j)+"e").split("e"),+(D[0]+"e"+(+D[1]-E))}return d(g)}}var $d=Es&&1/yd(new Es([,-0]))[1]==K?function(l){return new Es(l)}:f1;function Xl(l){return function(d){var g=Nr(d);return g==ye?Hv(d):g==on?Uc(d):Oa(d,l(d))}}function es(l,d,g,E,D,j,q,Q){var se=d&z;if(!se&&typeof l!="function")throw new Xa(c);var Me=E?E.length:0;if(Me||(d&=~($|Y),E=D=n),q=q===n?q:Hr(an(q),0),Q=Q===n?Q:an(Q),Me-=D?D.length:0,d&Y){var ke=E,Ie=D;E=D=n}var Qe=se?n:N0(l),vt=[l,d,g,E,D,ke,Ie,j,q,Q];if(Qe&&Sy(vt,Qe),l=vt[0],d=vt[1],g=vt[2],E=vt[3],D=vt[4],Q=vt[9]=vt[9]===n?se?0:l.length:Hr(vt[9]-Me,0),!Q&&d&(I|F)&&(d&=~(I|F)),!d||d==M)var It=Bm(l,d,g);else d==I||d==F?It=$3(l,d,Q):(d==$||d==(M|$))&&!D.length?It=j3(l,d,g,E):It=cf.apply(n,vt);var mn=Qe?ei:pf;return xy(mn(It,vt),l,d)}function Ma(l,d,g,E){return l===n||ts(l,jc[g])&&!er.call(E,g)?d:l}function tc(l,d,g,E,D,j){return wr(l)&&wr(d)&&(j.set(d,l),Lm(l,d,n,tc,j),j.delete(d)),l}function pn(l){return oc(l)?n:l}function jd(l,d,g,E,D,j){var q=g&T,Q=l.length,se=d.length;if(Q!=se&&!(q&&se>Q))return!1;var Me=j.get(l),ke=j.get(d);if(Me&&ke)return Me==d&&ke==l;var Ie=-1,Qe=!0,vt=g&A?new vl:n;for(j.set(l,d),j.set(d,l);++Ie<Q;){var It=l[Ie],mn=d[Ie];if(E)var $t=q?E(mn,It,Ie,d,l,j):E(It,mn,Ie,l,d,j);if($t!==n){if($t)continue;Qe=!1;break}if(vt){if(!Uv(d,function(yn,kn){if(!ju(vt,kn)&&(It===yn||D(It,yn,g,E,j)))return vt.push(kn)})){Qe=!1;break}}else if(!(It===mn||D(It,mn,g,E,j))){Qe=!1;break}}return j.delete(l),j.delete(d),Qe}function vy(l,d,g,E,D,j,q){switch(g){case Oe:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Ot:return!(l.byteLength!=d.byteLength||!j(new Sm(l),new Sm(d)));case Xe:case ct:case et:return ts(+l,+d);case Bt:return l.name==d.name&&l.message==d.message;case Ft:case Ln:return l==d+"";case ye:var Q=Hv;case on:var se=E&T;if(Q||(Q=yd),l.size!=d.size&&!se)return!1;var Me=q.get(l);if(Me)return Me==d;E|=A,q.set(l,d);var ke=jd(Q(l),Q(d),E,D,j,q);return q.delete(l),ke;case gn:if(_d)return _d.call(l)==_d.call(d)}return!1}function BE(l,d,g,E,D,j){var q=g&T,Q=Vd(l),se=Q.length,Me=Vd(d),ke=Me.length;if(se!=ke&&!q)return!1;for(var Ie=se;Ie--;){var Qe=Q[Ie];if(!(q?Qe in d:er.call(d,Qe)))return!1}var vt=j.get(l),It=j.get(d);if(vt&&It)return vt==d&&It==l;var mn=!0;j.set(l,d),j.set(d,l);for(var $t=q;++Ie<se;){Qe=Q[Ie];var yn=l[Qe],kn=d[Qe];if(E)var Zi=q?E(kn,yn,Qe,d,l,j):E(yn,kn,Qe,l,d,j);if(!(Zi===n?yn===kn||D(yn,kn,g,E,j):Zi)){mn=!1;break}$t||($t=Qe=="constructor")}if(mn&&!$t){var br=l.constructor,la=d.constructor;br!=la&&"constructor"in l&&"constructor"in d&&!(typeof br=="function"&&br instanceof br&&typeof la=="function"&&la instanceof la)&&(mn=!1)}return j.delete(l),j.delete(d),mn}function yl(l){return Is(Gd(l,n,Ry),l+"")}function Vd(l){return ty(l,di,oa)}function nc(l){return ty(l,Ia,Ms)}var N0=qc?function(l){return qc.get(l)}:f1;function Hd(l){for(var d=l.name+"",g=Zc[d],E=er.call(Zc,d)?g.length:0;E--;){var D=g[E],j=D.func;if(j==null||j==l)return D.name}return d}function ff(l){var d=er.call(B,"placeholder")?B:l;return d.placeholder}function Pt(){var l=B.iteratee||u1;return l=l===u1?ay:l,arguments.length?l(arguments[0],arguments[1]):l}function jm(l,d){var g=l.__data__;return W3(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Vm(l){for(var d=di(l),g=d.length;g--;){var E=d[g],D=l[E];d[g]=[E,D,yy(D)]}return d}function Ql(l,d){var g=g3(l,d);return ny(g)?g:n}function gy(l){var d=er.call(l,Hu),g=l[Hu];try{l[Hu]=n;var E=!0}catch{}var D=Sd.call(l);return E&&(d?l[Hu]=g:delete l[Hu]),D}var oa=qv?function(l){return l==null?[]:(l=Jn(l),Ti(qv(l),function(d){return Vc.call(l,d)}))}:p1,Ms=qv?function(l){for(var d=[];l;)La(d,oa(l)),l=xd(l);return d}:p1,Nr=ia;(Zv&&Nr(new Zv(new ArrayBuffer(1)))!=Oe||fl&&Nr(new fl)!=ye||wd&&Nr(wd.resolve())!=xn||Es&&Nr(new Es)!=on||Gc&&Nr(new Gc)!=Je)&&(Nr=function(l){var d=ia(l),g=d==lt?l.constructor:n,E=g?rc(g):"";if(E)switch(E){case Kc:return Oe;case wm:return ye;case _m:return xn;case Kv:return on;case R3:return Je}return d});function Hm(l,d,g){for(var E=-1,D=g.length;++E<D;){var j=g[E],q=j.size;switch(j.type){case"drop":l+=q;break;case"dropRight":d-=q;break;case"take":d=si(d,l+q);break;case"takeRight":l=Hr(l,d-q);break}}return{start:l,end:d}}function Wd(l){var d=l.match(Ke);return d?d[1].split(Nt):[]}function So(l,d,g){d=Ls(d,l);for(var E=-1,D=d.length,j=!1;++E<D;){var q=Da(d[E]);if(!(j=l!=null&&g(l,q)))break;l=l[q]}return j||++E!=D?j:(D=l==null?0:l.length,!!D&&op(D)&&Ds(q,D)&&(ln(l)||ac(l)))}function ci(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&er.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function by(l){return typeof l.constructor=="function"&&!df(l)?ql(xd(l)):{}}function V3(l,d,g){var E=l.constructor;switch(d){case Ot:return af(l);case Xe:case ct:return new E(+l);case Oe:return of(l,g);case qt:case En:case je:case at:case Tt:case hn:case Jt:case Tn:case In:return Fm(l,g);case ye:return new E;case et:case Ln:return new E(l);case Ft:return g0(l);case on:return new E;case gn:return b0(l)}}function H3(l,d){var g=d.length;if(!g)return l;var E=g-1;return d[E]=(g>1?"& ":"")+d[E],d=d.join(g>2?", ":" "),l.replace(Ue,`{
/* [wrapped with `+d+`] */
`)}function w0(l){return ln(l)||ac(l)||!!(Hc&&l&&l[Hc])}function Ds(l,d){var g=typeof l;return d=d??be,!!d&&(g=="number"||g!="symbol"&&$o.test(l))&&l>-1&&l%1==0&&l<d}function fi(l,d,g){if(!wr(g))return!1;var E=typeof d;return(E=="number"?ti(g)&&Ds(d,g.length):E=="string"&&d in g)?ts(g[d],l):!1}function Wm(l,d){if(ln(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||wn(l)?!0:Uo.test(l)||!Bo.test(l)||d!=null&&l in Jn(d)}function W3(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function _0(l){var d=Hd(l),g=B[d];if(typeof g!="function"||!(d in An.prototype))return!1;if(l===g)return!0;var E=N0(g);return!!E&&l===E[0]}function E0(l){return!!zb&&zb in l}var G3=gm?zs:m1;function df(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||jc;return l===g}function yy(l){return l===l&&!wr(l)}function T0(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==n||l in Jn(g))}}function Y3(l){var d=th(l,function(E){return g.size===v&&g.clear(),E}),g=d.cache;return d}function Sy(l,d){var g=l[1],E=d[1],D=g|E,j=D<(M|z|Z),q=E==Z&&g==I||E==Z&&g==ue&&l[7].length<=d[8]||E==(Z|ue)&&d[7].length<=d[8]&&g==I;if(!(j||q))return l;E&M&&(l[2]=d[2],D|=g&M?0:P);var Q=d[3];if(Q){var se=l[3];l[3]=se?sf(se,Q,d[4]):Q,l[4]=se?Gl(l[3],b):d[4]}return Q=d[5],Q&&(se=l[5],l[5]=se?y0(se,Q,d[6]):Q,l[6]=se?Gl(l[5],b):d[6]),Q=d[7],Q&&(l[7]=Q),E&Z&&(l[8]=l[8]==null?d[8]:si(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=D,l}function q3(l){var d=[];if(l!=null)for(var g in Jn(l))d.push(g);return d}function R0(l){return Sd.call(l)}function Gd(l,d,g){return d=Hr(d===n?l.length-1:d,0),function(){for(var E=arguments,D=-1,j=Hr(E.length-d,0),q=Se(j);++D<j;)q[D]=E[d+D];D=-1;for(var Q=Se(d+1);++D<d;)Q[D]=E[D];return Q[d]=g(q),yt(l,this,Q)}}function Sl(l,d){return d.length<2?l:Ai(l,Gr(d,0,-1))}function Jl(l,d){for(var g=l.length,E=si(d.length,g),D=ui(l);E--;){var j=d[E];l[E]=Ds(j,g)?D[j]:n}return l}function Ps(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var pf=Cy(ei),xl=Wc||function(l,d){return Kt.setTimeout(l,d)},Is=Cy(Yt);function xy(l,d,g){var E=d+"";return Is(l,H3(E,Ny(Wd(E),g)))}function Cy(l){var d=0,g=0;return function(){var E=E3(),D=re-(E-g);if(g=E,D>0){if(++d>=Ye)return arguments[0]}else d=0;return l.apply(n,arguments)}}function Gm(l,d){var g=-1,E=l.length,D=E-1;for(d=d===n?E:d;++g<d;){var j=yo(g,D),q=l[j];l[j]=l[g],l[g]=q}return l.length=d,l}var A0=Y3(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(vr,function(g,E,D,j){d.push(D?j.replace(nt,"$1"):E||g)}),d});function Da(l){if(typeof l=="string"||wn(l))return l;var d=l+"";return d=="0"&&1/l==-K?"-0":d}function rc(l){if(l!=null){try{return bm.call(l)}catch{}try{return l+""}catch{}}return""}function Ny(l,d){return Rt(Ze,function(g){var E="_."+g[0];d&g[1]&&!Ko(l,E)&&l.push(E)}),l.sort()}function wy(l){if(l instanceof An)return l.clone();var d=new bo(l.__wrapped__,l.__chain__);return d.__actions__=ui(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Ym(l,d,g){(g?fi(l,d,g):d===n)?d=1:d=Hr(an(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var D=0,j=0,q=Se(cl(E/d));D<E;)q[j++]=Gr(l,D,D+=d);return q}function _y(l){for(var d=-1,g=l==null?0:l.length,E=0,D=[];++d<g;){var j=l[d];j&&(D[E++]=j)}return D}function Z3(){var l=arguments.length;if(!l)return[];for(var d=Se(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return La(ln(g)?ui(g):[g],Ri(d,1))}var Yd=bn(function(l,d){return Ar(l)?Mr(l,Ri(d,1,Ar,!0)):[]}),qd=bn(function(l,d){var g=xo(d);return Ar(g)&&(g=n),Ar(l)?Mr(l,Ri(d,1,Ar,!0),Pt(g,2)):[]}),mf=bn(function(l,d){var g=xo(d);return Ar(g)&&(g=n),Ar(l)?Mr(l,Ri(d,1,Ar,!0),n,g):[]});function k0(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:an(d),Gr(l,d<0?0:d,E)):[]}function Ey(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:an(d),d=E-d,Gr(l,0,d<0?0:d)):[]}function K3(l,d){return l&&l.length?rf(l,Pt(d,3),!0,!0):[]}function X3(l,d){return l&&l.length?rf(l,Pt(d,3),!0):[]}function Q3(l,d,g,E){var D=l==null?0:l.length;return D?(g&&typeof g!="number"&&fi(l,d,g)&&(g=0,E=D),L3(l,d,g,E)):[]}function Ty(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var D=g==null?0:an(g);return D<0&&(D=Hr(E+D,0)),md(l,Pt(d,3),D)}function qm(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var D=E-1;return g!==n&&(D=an(g),D=g<0?Hr(E+D,0):si(D,E-1)),md(l,Pt(d,3),D,!0)}function Ry(l){var d=l==null?0:l.length;return d?Ri(l,1):[]}function Zm(l){var d=l==null?0:l.length;return d?Ri(l,K):[]}function L0(l,d){var g=l==null?0:l.length;return g?(d=d===n?1:an(d),Ri(l,d)):[]}function Ay(l){for(var d=-1,g=l==null?0:l.length,E={};++d<g;){var D=l[d];E[D[0]]=D[1]}return E}function ky(l){return l&&l.length?l[0]:n}function J3(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var D=g==null?0:an(g);return D<0&&(D=Hr(E+D,0)),$u(l,d,D)}function ex(l){var d=l==null?0:l.length;return d?Gr(l,0,-1):[]}var tx=bn(function(l){var d=Mn(l,Id);return d.length&&d[0]===l[0]?s0(d):[]}),Zd=bn(function(l){var d=xo(l),g=Mn(l,Id);return d===xo(g)?d=n:g.pop(),g.length&&g[0]===l[0]?s0(g,Pt(d,2)):[]}),O0=bn(function(l){var d=xo(l),g=Mn(l,Id);return d=typeof d=="function"?d:n,d&&g.pop(),g.length&&g[0]===l[0]?s0(g,n,d):[]});function Kd(l,d){return l==null?"":Vb.call(l,d)}function xo(l){var d=l==null?0:l.length;return d?l[d-1]:n}function nx(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var D=E;return g!==n&&(D=an(g),D=D<0?Hr(E+D,0):si(D,E-1)),d===d?Pb(l,d,D):md(l,ws,D,!0)}function Ly(l,d){return l&&l.length?uy(l,an(d)):n}var Oy=bn(Xd);function Xd(l,d){return l&&l.length&&d&&d.length?Wn(l,d):l}function Km(l,d,g){return l&&l.length&&d&&d.length?Wn(l,d,Pt(g,2)):l}function My(l,d,g){return l&&l.length&&d&&d.length?Wn(l,d,n,g):l}var no=yl(function(l,d){var g=l==null?0:l.length,E=r0(l,d);return Br(l,Mn(d,function(D){return Ds(D,g)?+D:D}).sort(zm)),E});function hf(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,D=[],j=l.length;for(d=Pt(d,3);++E<j;){var q=l[E];d(q,E,l)&&(g.push(q),D.push(E))}return Br(l,D),g}function Qd(l){return l==null?l:T3.call(l)}function Jd(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&fi(l,d,g)?(d=0,g=E):(d=d==null?0:an(d),g=g===n?E:an(g)),Gr(l,d,g)):[]}function rx(l,d){return eo(l,d)}function M0(l,d,g){return Qu(l,d,Pt(g,2))}function D0(l,d){var g=l==null?0:l.length;if(g){var E=eo(l,d);if(E<g&&ts(l[E],d))return E}return-1}function ep(l,d){return eo(l,d,!0)}function ix(l,d,g){return Qu(l,d,Pt(g,2),!0)}function Xm(l,d){var g=l==null?0:l.length;if(g){var E=eo(l,d,!0)-1;if(ts(l[E],d))return E}return-1}function Dy(l){return l&&l.length?Ju(l):[]}function ax(l,d){return l&&l.length?Ju(l,Pt(d,2)):[]}function ox(l){var d=l==null?0:l.length;return d?Gr(l,1,d):[]}function sx(l,d,g){return l&&l.length?(d=g||d===n?1:an(d),Gr(l,0,d<0?0:d)):[]}function P0(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===n?1:an(d),d=E-d,Gr(l,d<0?0:d,E)):[]}function lx(l,d){return l&&l.length?rf(l,Pt(d,3),!1,!0):[]}function ux(l,d){return l&&l.length?rf(l,Pt(d,3)):[]}var cx=bn(function(l){return ks(Ri(l,1,Ar,!0))}),fx=bn(function(l){var d=xo(l);return Ar(d)&&(d=n),ks(Ri(l,1,Ar,!0),Pt(d,2))}),dx=bn(function(l){var d=xo(l);return d=typeof d=="function"?d:n,ks(Ri(l,1,Ar,!0),n,d)});function Py(l){return l&&l.length?ks(l):[]}function px(l,d){return l&&l.length?ks(l,Pt(d,2)):[]}function mx(l,d){return d=typeof d=="function"?d:n,l&&l.length?ks(l,n,d):[]}function I0(l){if(!(l&&l.length))return[];var d=0;return l=Ti(l,function(g){if(Ar(g))return d=Hr(g.length,d),!0}),hm(d,function(g){return Mn(l,hd(g))})}function Iy(l,d){if(!(l&&l.length))return[];var g=I0(l);return d==null?g:Mn(g,function(E){return yt(d,n,E)})}var hx=bn(function(l,d){return Ar(l)?Mr(l,d):[]}),vx=bn(function(l){return Pd(Ti(l,Ar))}),F0=bn(function(l){var d=xo(l);return Ar(d)&&(d=n),Pd(Ti(l,Ar),Pt(d,2))}),gx=bn(function(l){var d=xo(l);return d=typeof d=="function"?d:n,Pd(Ti(l,Ar),n,d)}),bx=bn(I0);function yx(l,d){return Dm(l||[],d||[],Ad)}function Fy(l,d){return Dm(l||[],d||[],Fe)}var Sx=bn(function(l){var d=l.length,g=d>1?l[d-1]:n;return g=typeof g=="function"?(l.pop(),g):n,Iy(l,g)});function zy(l){var d=B(l);return d.__chain__=!0,d}function xx(l,d){return d(l),l}function Qm(l,d){return d(l)}var Cx=yl(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,D=function(j){return r0(j,l)};return d>1||this.__actions__.length||!(E instanceof An)||!Ds(g)?this.thru(D):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:Qm,args:[D],thisArg:n}),new bo(E,this.__chain__).thru(function(j){return d&&!j.length&&j.push(n),j}))});function Nx(){return zy(this)}function wx(){return new bo(this.value(),this.__chain__)}function By(){this.__values__===n&&(this.__values__=yf(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function z0(){return this}function tp(l){for(var d,g=this;g instanceof dl;){var E=wy(g);E.__index__=0,E.__values__=n,d?D.__wrapped__=E:d=E;var D=E;g=g.__wrapped__}return D.__wrapped__=l,d}function _x(){var l=this.__wrapped__;if(l instanceof An){var d=l;return this.__actions__.length&&(d=new An(this)),d=d.reverse(),d.__actions__.push({func:Qm,args:[Qd],thisArg:n}),new bo(d,this.__chain__)}return this.thru(Qd)}function Uy(){return Mm(this.__wrapped__,this.__actions__)}var $y=tr(function(l,d,g){er.call(l,g)?++l[g]:Rs(l,g,1)});function jy(l,d,g){var E=ln(l)?ka:i0;return g&&fi(l,d,g)&&(d=n),E(l,Pt(d,3))}function Ex(l,d){var g=ln(l)?Ti:km;return g(l,Pt(d,3))}var Vy=Um(Ty),Tx=Um(qm);function Rx(l,d){return Ri(Jm(l,d),1)}function Ax(l,d){return Ri(Jm(l,d),K)}function Hy(l,d,g){return g=g===n?1:an(g),Ri(Jm(l,d),g)}function B0(l,d){var g=ln(l)?Rt:Kl;return g(l,Pt(d,3))}function U0(l,d){var g=ln(l)?Ut:kd;return g(l,Pt(d,3))}var vf=tr(function(l,d,g){er.call(l,g)?l[g].push(d):Rs(l,g,[d])});function kx(l,d,g,E){l=ti(l)?l:Cf(l),g=g&&!E?an(g):0;var D=l.length;return g<0&&(g=Hr(D+g,0)),ah(l)?g<=D&&l.indexOf(d,g)>-1:!!D&&$u(l,d,g)>-1}var Lx=bn(function(l,d,g){var E=-1,D=typeof d=="function",j=ti(l)?Se(l.length):[];return Kl(l,function(q){j[++E]=D?yt(d,q,g):Ld(q,d,g)}),j}),Ox=tr(function(l,d,g){Rs(l,g,d)});function Jm(l,d){var g=ln(l)?Mn:oy;return g(l,Pt(d,3))}function Mx(l,d,g,E){return l==null?[]:(ln(d)||(d=d==null?[]:[d]),g=E?n:g,ln(g)||(g=g==null?[]:[g]),cy(l,d,g))}var Dx=tr(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function Wy(l,d,g){var E=ln(l)?Ns:mm,D=arguments.length<3;return E(l,Pt(d,4),g,D,Kl)}function Px(l,d,g){var E=ln(l)?pd:mm,D=arguments.length<3;return E(l,Pt(d,4),g,D,kd)}function Ix(l,d){var g=ln(l)?Ti:km;return g(l,nh(Pt(d,3)))}function Gy(l){var d=ln(l)?Zb:B3;return d(l)}function np(l,d,g){(g?fi(l,d,g):d===n)?d=1:d=an(d);var E=ln(l)?Zu:h0;return E(l,d)}function rp(l){var d=ln(l)?Kb:tf;return d(l)}function Fx(l){if(l==null)return 0;if(ti(l))return ah(l)?Vu(l):l.length;var d=Nr(l);return d==ye||d==on?l.size:c0(l).length}function zx(l,d,g){var E=ln(l)?Uv:Xu;return g&&fi(l,d,g)&&(d=n),E(l,Pt(d,3))}var Bx=bn(function(l,d){if(l==null)return[];var g=d.length;return g>1&&fi(l,d[0],d[1])?d=[]:g>2&&fi(d[0],d[1],d[2])&&(d=[d[0]]),cy(l,Ri(d,1),[])}),ic=Yv||function(){return Kt.Date.now()};function Ux(l,d){if(typeof d!="function")throw new Xa(c);return l=an(l),function(){if(--l<1)return d.apply(this,arguments)}}function $0(l,d,g){return d=g?n:d,d=l&&d==null?l.length:d,es(l,Z,n,n,n,n,d)}function Yy(l,d){var g;if(typeof d!="function")throw new Xa(c);return l=an(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=n),g}}var eh=bn(function(l,d,g){var E=M;if(g.length){var D=Gl(g,ff(eh));E|=$}return es(l,E,d,g,D)}),j0=bn(function(l,d,g){var E=M|z;if(g.length){var D=Gl(g,ff(j0));E|=$}return es(d,E,l,g,D)});function qy(l,d,g){d=g?n:d;var E=es(l,I,n,n,n,n,n,d);return E.placeholder=qy.placeholder,E}function Zy(l,d,g){d=g?n:d;var E=es(l,F,n,n,n,n,n,d);return E.placeholder=Zy.placeholder,E}function Ky(l,d,g){var E,D,j,q,Q,se,Me=0,ke=!1,Ie=!1,Qe=!0;if(typeof l!="function")throw new Xa(c);d=Co(d)||0,wr(g)&&(ke=!!g.leading,Ie="maxWait"in g,j=Ie?Hr(Co(g.maxWait)||0,d):j,Qe="trailing"in g?!!g.trailing:Qe);function vt(_r){var ni=E,Ki=D;return E=D=n,Me=_r,q=l.apply(Ki,ni),q}function It(_r){return Me=_r,Q=xl(yn,d),ke?vt(_r):q}function mn(_r){var ni=_r-se,Ki=_r-Me,ki=d-ni;return Ie?si(ki,j-Ki):ki}function $t(_r){var ni=_r-se,Ki=_r-Me;return se===n||ni>=d||ni<0||Ie&&Ki>=j}function yn(){var _r=ic();if($t(_r))return kn(_r);Q=xl(yn,mn(_r))}function kn(_r){return Q=n,Qe&&E?vt(_r):(E=D=n,q)}function Zi(){Q!==n&&Pm(Q),Me=0,E=se=D=Q=n}function br(){return Q===n?q:kn(ic())}function la(){var _r=ic(),ni=$t(_r);if(E=arguments,D=this,se=_r,ni){if(Q===n)return It(se);if(Ie)return Pm(Q),Q=xl(yn,d),vt(se)}return Q===n&&(Q=xl(yn,d)),q}return la.cancel=Zi,la.flush=br,la}var $x=bn(function(l,d){return ey(l,1,d)}),jx=bn(function(l,d,g){return ey(l,Co(d)||0,g)});function Vx(l){return es(l,ce)}function th(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Xa(c);var g=function(){var E=arguments,D=d?d.apply(this,E):E[0],j=g.cache;if(j.has(D))return j.get(D);var q=l.apply(this,E);return g.cache=j.set(D,q)||j,q};return g.cache=new(th.Cache||hl),g}th.Cache=hl;function nh(l){if(typeof l!="function")throw new Xa(c);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function Hx(l){return Yy(2,l)}var Wx=v0(function(l,d){d=d.length==1&&ln(d[0])?Mn(d[0],Hn(Pt())):Mn(Ri(d,1),Hn(Pt()));var g=d.length;return bn(function(E){for(var D=-1,j=si(E.length,g);++D<j;)E[D]=d[D].call(this,E[D]);return yt(l,this,E)})}),sa=bn(function(l,d){var g=Gl(d,ff(sa));return es(l,$,n,d,g)}),gf=bn(function(l,d){var g=Gl(d,ff(gf));return es(l,Y,n,d,g)}),Xy=yl(function(l,d){return es(l,ue,n,n,n,d)});function Gx(l,d){if(typeof l!="function")throw new Xa(c);return d=d===n?d:an(d),bn(l,d)}function Qy(l,d){if(typeof l!="function")throw new Xa(c);return d=d==null?0:Hr(an(d),0),bn(function(g){var E=g[d],D=Os(g,0,d);return E&&La(D,E),yt(l,this,D)})}function Yx(l,d,g){var E=!0,D=!0;if(typeof l!="function")throw new Xa(c);return wr(g)&&(E="leading"in g?!!g.leading:E,D="trailing"in g?!!g.trailing:D),Ky(l,d,{leading:E,maxWait:d,trailing:D})}function qx(l){return $0(l,1)}function Zx(l,d){return sa(Fd(d),l)}function Jy(){if(!arguments.length)return[];var l=arguments[0];return ln(l)?l:[l]}function e2(l){return Qa(l,_)}function Kx(l,d){return d=typeof d=="function"?d:n,Qa(l,_,d)}function Xx(l){return Qa(l,x|_)}function t2(l,d){return d=typeof d=="function"?d:n,Qa(l,x|_,d)}function V0(l,d){return d==null||Jb(l,d,di(d))}function ts(l,d){return l===d||l!==l&&d!==d}var Qx=Ud(o0),Jx=Ud(function(l,d){return l>=d}),ac=l0(function(){return arguments}())?l0:function(l){return kr(l)&&er.call(l,"callee")&&!Vc.call(l,"callee")},ln=Se.isArray,eC=ze?Hn(ze):Od;function ti(l){return l!=null&&op(l.length)&&!zs(l)}function Ar(l){return kr(l)&&ti(l)}function ip(l){return l===!0||l===!1||kr(l)&&ia(l)==Xe}var Fs=$b||m1,tC=_e?Hn(_e):ef;function nC(l){return kr(l)&&l.nodeType===1&&!oc(l)}function n2(l){if(l==null)return!0;if(ti(l)&&(ln(l)||typeof l=="string"||typeof l.splice=="function"||Fs(l)||nu(l)||ac(l)))return!l.length;var d=Nr(l);if(d==ye||d==on)return!l.size;if(df(l))return!c0(l).length;for(var g in l)if(er.call(l,g))return!1;return!0}function rC(l,d){return Md(l,d)}function rh(l,d,g){g=typeof g=="function"?g:n;var E=g?g(l,d):n;return E===n?Md(l,d,n,g):!!E}function eu(l){if(!kr(l))return!1;var d=ia(l);return d==Bt||d==wt||typeof l.message=="string"&&typeof l.name=="string"&&!oc(l)}function H0(l){return typeof l=="number"&&jb(l)}function zs(l){if(!wr(l))return!1;var d=ia(l);return d==Ge||d==Gt||d==Wt||d==$n}function ap(l){return typeof l=="number"&&l==an(l)}function op(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=be}function wr(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function kr(l){return l!=null&&typeof l=="object"}var W0=Ve?Hn(Ve):I3;function r2(l,d){return l===d||u0(l,d,Vm(d))}function i2(l,d,g){return g=typeof g=="function"?g:n,u0(l,d,Vm(d),g)}function tu(l){return bf(l)&&l!=+l}function iC(l){if(G3(l))throw new rn(u);return ny(l)}function aC(l){return l===null}function oC(l){return l==null}function bf(l){return typeof l=="number"||kr(l)&&ia(l)==et}function oc(l){if(!kr(l)||ia(l)!=lt)return!1;var d=xd(l);if(d===null)return!0;var g=er.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&bm.call(g)==na}var ih=st?Hn(st):F3;function sC(l){return ap(l)&&l>=-be&&l<=be}var G0=xt?Hn(xt):ry;function ah(l){return typeof l=="string"||!ln(l)&&kr(l)&&ia(l)==Ln}function wn(l){return typeof l=="symbol"||kr(l)&&ia(l)==gn}var nu=Mt?Hn(Mt):iy;function oh(l){return l===n}function sp(l){return kr(l)&&Nr(l)==Je}function a2(l){return kr(l)&&ia(l)==nn}var o2=Ud(f0),Y0=Ud(function(l,d){return l<=d});function yf(l){if(!l)return[];if(ti(l))return ah(l)?Qo(l):ui(l);if(Cd&&l[Cd])return Mb(l[Cd]());var d=Nr(l),g=d==ye?Hv:d==on?yd:Cf;return g(l)}function Cl(l){if(!l)return l===0?l:0;if(l=Co(l),l===K||l===-K){var d=l<0?-1:1;return d*Ne}return l===l?l:0}function an(l){var d=Cl(l),g=d%1;return d===d?g?d-g:d:0}function sc(l){return l?Zl(an(l),0,we):0}function Co(l){if(typeof l=="number")return l;if(wn(l))return me;if(wr(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=wr(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_s(l);var g=un.test(l);return g||wa.test(l)?ot(l.slice(2),g?2:8):Bn.test(l)?me:+l}function q0(l){return qi(l,Ia(l))}function lC(l){return l?Zl(an(l),-be,be):l===0?l:0}function Xn(l){return l==null?"":aa(l)}var Pa=gl(function(l,d){if(df(d)||ti(d)){qi(d,di(d),l);return}for(var g in d)er.call(d,g)&&Ad(l,g,d[g])}),Sf=gl(function(l,d){qi(d,Ia(d),l)}),lc=gl(function(l,d,g,E){qi(d,Ia(d),l,E)}),ru=gl(function(l,d,g,E){qi(d,di(d),l,E)}),s2=yl(r0);function uc(l,d){var g=ql(l);return d==null?g:n0(g,d)}var cc=bn(function(l,d){l=Jn(l);var g=-1,E=d.length,D=E>2?d[2]:n;for(D&&fi(d[0],d[1],D)&&(E=1);++g<E;)for(var j=d[g],q=Ia(j),Q=-1,se=q.length;++Q<se;){var Me=q[Q],ke=l[Me];(ke===n||ts(ke,jc[Me])&&!er.call(l,Me))&&(l[Me]=j[Me])}return l}),sh=bn(function(l){return l.push(n,tc),yt(d2,n,l)});function Z0(l,d){return jv(l,Pt(d,3),gr)}function lh(l,d){return jv(l,Pt(d,3),rt)}function lp(l,d){return l==null?l:a0(l,Pt(d,3),Ia)}function l2(l,d){return l==null?l:Ku(l,Pt(d,3),Ia)}function uh(l,d){return l&&gr(l,Pt(d,3))}function u2(l,d){return l&&rt(l,Pt(d,3))}function c2(l){return l==null?[]:Ja(l,di(l))}function uC(l){return l==null?[]:Ja(l,Ia(l))}function K0(l,d,g){var E=l==null?n:Ai(l,d);return E===n?g:E}function ch(l,d){return l!=null&&So(l,d,O3)}function xf(l,d){return l!=null&&So(l,d,M3)}var f2=S0(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=Sd.call(d)),l[d]=g},s1(Fa)),cC=S0(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=Sd.call(d)),er.call(l,d)?l[d].push(g):l[d]=[g]},Pt),fh=bn(Ld);function di(l){return ti(l)?Ts(l):c0(l)}function Ia(l){return ti(l)?Ts(l,!0):z3(l)}function fC(l,d){var g={};return d=Pt(d,3),gr(l,function(E,D,j){Rs(g,d(E,D,j),E)}),g}function dC(l,d){var g={};return d=Pt(d,3),gr(l,function(E,D,j){Rs(g,D,d(E,D,j))}),g}var pC=gl(function(l,d,g){Lm(l,d,g)}),d2=gl(function(l,d,g,E){Lm(l,d,g,E)}),mC=yl(function(l,d){var g={};if(l==null)return g;var E=!1;d=Mn(d,function(j){return j=Ls(j,l),E||(E=j.length>1),j}),qi(l,nc(l),g),E&&(g=Qa(g,x|N|_,pn));for(var D=d.length;D--;)Dd(g,d[D]);return g});function hC(l,d){return p2(l,nh(Pt(d)))}var vC=yl(function(l,d){return l==null?{}:p0(l,d)});function p2(l,d){if(l==null)return{};var g=Mn(nc(l),function(E){return[E]});return d=Pt(d),Dt(l,g,function(E,D){return d(E,D[0])})}function X0(l,d,g){d=Ls(d,l);var E=-1,D=d.length;for(D||(D=1,l=n);++E<D;){var j=l==null?n:l[Da(d[E])];j===n&&(E=D,j=g),l=zs(j)?j.call(l):j}return l}function Q0(l,d,g){return l==null?l:Fe(l,d,g)}function J0(l,d,g,E){return E=typeof E=="function"?E:n,l==null?l:Fe(l,d,g,E)}var dh=Xl(di),m2=Xl(Ia);function up(l,d,g){var E=ln(l),D=E||Fs(l)||nu(l);if(d=Pt(d,4),g==null){var j=l&&l.constructor;D?g=E?new j:[]:wr(l)?g=zs(j)?ql(xd(l)):{}:g={}}return(D?Rt:gr)(l,function(q,Q,se){return d(g,q,Q,se)}),g}function cp(l,d){return l==null?!0:Dd(l,d)}function gC(l,d,g){return l==null?l:Om(l,d,Fd(g))}function h2(l,d,g,E){return E=typeof E=="function"?E:n,l==null?l:Om(l,d,Fd(g),E)}function Cf(l){return l==null?[]:Xo(l,di(l))}function bC(l){return l==null?[]:Xo(l,Ia(l))}function v2(l,d,g){return g===n&&(g=d,d=n),g!==n&&(g=Co(g),g=g===g?g:0),d!==n&&(d=Co(d),d=d===d?d:0),Zl(Co(l),d,g)}function yC(l,d,g){return d=Cl(d),g===n?(g=d,d=0):g=Cl(g),l=Co(l),li(l,d,g)}function SC(l,d,g){if(g&&typeof g!="boolean"&&fi(l,d,g)&&(d=g=n),g===n&&(typeof d=="boolean"?(g=d,d=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&d===n?(l=0,d=1):(l=Cl(l),d===n?(d=l,l=0):d=Cl(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var D=Gb();return si(l+D*(d-l+pe("1e-"+((D+"").length-1))),d)}return yo(l,d)}var g2=uf(function(l,d,g){return d=d.toLowerCase(),l+(g?fp(d):d)});function fp(l){return a1(Xn(l).toLowerCase())}function dp(l){return l=Xn(l),l&&l.replace(Ni,h3).replace(Xr,"")}function ph(l,d,g){l=Xn(l),d=aa(d);var E=l.length;g=g===n?E:Zl(an(g),0,E);var D=g;return g-=d.length,g>=0&&l.slice(g,D)==d}function pp(l){return l=Xn(l),l&&xr.test(l)?l.replace(Rn,v3):l}function mp(l){return l=Xn(l),l&&Ya.test(l)?l.replace($i,"\\$&"):l}var xC=uf(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),e1=uf(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),t1=py("toLowerCase");function CC(l,d,g){l=Xn(l),d=an(d);var E=d?Vu(l):0;if(!d||E>=d)return l;var D=(d-E)/2;return ec(Nd(D),g)+l+ec(cl(D),g)}function NC(l,d,g){l=Xn(l),d=an(d);var E=d?Vu(l):0;return d&&E<d?l+ec(d-E,g):l}function UE(l,d,g){l=Xn(l),d=an(d);var E=d?Vu(l):0;return d&&E<d?ec(d-E,g)+l:l}function wC(l,d,g){return g||d==null?d=0:d&&(d=+d),Wb(Xn(l).replace(ji,""),d||0)}function _C(l,d,g){return(g?fi(l,d,g):d===n)?d=1:d=an(d),m0(Xn(l),d)}function EC(){var l=arguments,d=Xn(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var TC=uf(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function RC(l,d,g){return g&&typeof g!="number"&&fi(l,d,g)&&(d=g=n),g=g===n?we:g>>>0,g?(l=Xn(l),l&&(typeof d=="string"||d!=null&&!ih(d))&&(d=aa(d),!d&&Bc(l))?Os(Qo(l),0,g):l.split(d,g)):[]}var AC=uf(function(l,d,g){return l+(g?" ":"")+a1(d)});function n1(l,d,g){return l=Xn(l),g=g==null?0:Zl(an(g),0,l.length),d=aa(d),l.slice(g,g+d.length)==d}function kC(l,d,g){var E=B.templateSettings;g&&fi(l,d,g)&&(d=n),l=Xn(l),d=lc({},d,E,Ma);var D=lc({},d.imports,E.imports,Ma),j=di(D),q=Xo(D,j),Q,se,Me=0,ke=d.interpolate||ho,Ie="__p += '",Qe=ll((d.escape||ho).source+"|"+ke.source+"|"+(ke===vs?Zt:ho).source+"|"+(d.evaluate||ho).source+"|$","g"),vt="//# sourceURL="+(er.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sl+"]")+`
`;l.replace(Qe,function($t,yn,kn,Zi,br,la){return kn||(kn=Zi),Ie+=l.slice(Me,la).replace(zu,Vv),yn&&(Q=!0,Ie+=`' +
__e(`+yn+`) +
'`),br&&(se=!0,Ie+=`';
`+br+`;
__p += '`),kn&&(Ie+=`' +
((__t = (`+kn+`)) == null ? '' : __t) +
'`),Me=la+$t.length,$t}),Ie+=`';
`;var It=er.call(d,"variable")&&d.variable;if(!It)Ie=`with (obj) {
`+Ie+`
}
`;else if(Cn.test(It))throw new rn(p);Ie=(se?Ie.replace(Or,""):Ie).replace(On,"$1").replace(xi,"$1;"),Ie="function("+(It||"obj")+`) {
`+(It?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(se?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ie+`return __p
}`;var mn=y2(function(){return Zn(j,vt+"return "+Ie).apply(n,q)});if(mn.source=Ie,eu(mn))throw mn;return mn}function LC(l){return Xn(l).toLowerCase()}function r1(l){return Xn(l).toUpperCase()}function OC(l,d,g){if(l=Xn(l),l&&(g||d===n))return _s(l);if(!l||!(d=aa(d)))return l;var E=Qo(l),D=Qo(d),j=gd(E,D),q=Ob(E,D)+1;return Os(E,j,q).join("")}function i1(l,d,g){if(l=Xn(l),l&&(g||d===n))return l.slice(0,Ib(l)+1);if(!l||!(d=aa(d)))return l;var E=Qo(l),D=Ob(E,Qo(d))+1;return Os(E,0,D).join("")}function b2(l,d,g){if(l=Xn(l),l&&(g||d===n))return l.replace(ji,"");if(!l||!(d=aa(d)))return l;var E=Qo(l),D=gd(E,Qo(d));return Os(E,D).join("")}function MC(l,d){var g=le,E=ge;if(wr(d)){var D="separator"in d?d.separator:D;g="length"in d?an(d.length):g,E="omission"in d?aa(d.omission):E}l=Xn(l);var j=l.length;if(Bc(l)){var q=Qo(l);j=q.length}if(g>=j)return l;var Q=g-Vu(E);if(Q<1)return E;var se=q?Os(q,0,Q).join(""):l.slice(0,Q);if(D===n)return se+E;if(q&&(Q+=se.length-Q),ih(D)){if(l.slice(Q).search(D)){var Me,ke=se;for(D.global||(D=ll(D.source,Xn(Vn.exec(D))+"g")),D.lastIndex=0;Me=D.exec(ke);)var Ie=Me.index;se=se.slice(0,Ie===n?Q:Ie)}}else if(l.indexOf(aa(D),Q)!=Q){var Qe=se.lastIndexOf(D);Qe>-1&&(se=se.slice(0,Qe))}return se+E}function DC(l){return l=Xn(l),l&&Ci.test(l)?l.replace(jn,y3):l}var PC=uf(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),a1=py("toUpperCase");function o1(l,d,g){return l=Xn(l),d=g?n:d,d===n?b3(l)?C3(l):$v(l):l.match(d)||[]}var y2=bn(function(l,d){try{return yt(l,n,d)}catch(g){return eu(g)?g:new rn(g)}}),IC=yl(function(l,d){return Rt(d,function(g){g=Da(g),Rs(l,g,eh(l[g],l))}),l});function FC(l){var d=l==null?0:l.length,g=Pt();return l=d?Mn(l,function(E){if(typeof E[1]!="function")throw new Xa(c);return[g(E[0]),E[1]]}):[],bn(function(E){for(var D=-1;++D<d;){var j=l[D];if(yt(j[0],this,E))return yt(j[1],this,E)}})}function zC(l){return k3(Qa(l,x))}function s1(l){return function(){return l}}function BC(l,d){return l==null||l!==l?d:l}var UC=my(),l1=my(!0);function Fa(l){return l}function u1(l){return ay(typeof l=="function"?l:Qa(l,x))}function $C(l){return sy(Qa(l,x))}function jC(l,d){return d0(l,Qa(d,x))}var VC=bn(function(l,d){return function(g){return Ld(g,l,d)}}),HC=bn(function(l,d){return function(g){return Ld(l,g,d)}});function c1(l,d,g){var E=di(d),D=Ja(d,E);g==null&&!(wr(d)&&(D.length||!E.length))&&(g=d,d=l,l=this,D=Ja(d,di(d)));var j=!(wr(g)&&"chain"in g)||!!g.chain,q=zs(l);return Rt(D,function(Q){var se=d[Q];l[Q]=se,q&&(l.prototype[Q]=function(){var Me=this.__chain__;if(j||Me){var ke=l(this.__wrapped__),Ie=ke.__actions__=ui(this.__actions__);return Ie.push({func:se,args:arguments,thisArg:l}),ke.__chain__=Me,ke}return se.apply(l,La([this.value()],arguments))})}),l}function WC(){return Kt._===this&&(Kt._=Bb),this}function f1(){}function S2(l){return l=an(l),bn(function(d){return uy(d,l)})}var d1=x0(Mn),GC=x0(ka),YC=x0(Uv);function hp(l){return Wm(l)?hd(Da(l)):Nn(l)}function vp(l){return function(d){return l==null?n:Ai(l,d)}}var qC=C0(),ZC=C0(!0);function p1(){return[]}function m1(){return!1}function KC(){return{}}function XC(){return""}function QC(){return!0}function x2(l,d){if(l=an(l),l<1||l>be)return[];var g=we,E=si(l,we);d=Pt(d),l-=we;for(var D=hm(E,d);++g<l;)d(g);return D}function JC(l){return ln(l)?Mn(l,Da):wn(l)?[l]:ui(A0(Xn(l)))}function eN(l){var d=++Fb;return Xn(l)+d}var tN=$m(function(l,d){return l+d},0),nN=bl("ceil"),rN=$m(function(l,d){return l/d},1),iN=bl("floor");function aN(l){return l&&l.length?As(l,Fa,o0):n}function oN(l,d){return l&&l.length?As(l,Pt(d,2),o0):n}function sN(l){return Lb(l,Fa)}function lN(l,d){return Lb(l,Pt(d,2))}function uN(l){return l&&l.length?As(l,Fa,f0):n}function cN(l,d){return l&&l.length?As(l,Pt(d,2),f0):n}var fN=$m(function(l,d){return l*d},1),dN=bl("round"),pN=$m(function(l,d){return l-d},0);function mN(l){return l&&l.length?zc(l,Fa):0}function Nf(l,d){return l&&l.length?zc(l,Pt(d,2)):0}return B.after=Ux,B.ary=$0,B.assign=Pa,B.assignIn=Sf,B.assignInWith=lc,B.assignWith=ru,B.at=s2,B.before=Yy,B.bind=eh,B.bindAll=IC,B.bindKey=j0,B.castArray=Jy,B.chain=zy,B.chunk=Ym,B.compact=_y,B.concat=Z3,B.cond=FC,B.conforms=zC,B.constant=s1,B.countBy=$y,B.create=uc,B.curry=qy,B.curryRight=Zy,B.debounce=Ky,B.defaults=cc,B.defaultsDeep=sh,B.defer=$x,B.delay=jx,B.difference=Yd,B.differenceBy=qd,B.differenceWith=mf,B.drop=k0,B.dropRight=Ey,B.dropRightWhile=K3,B.dropWhile=X3,B.fill=Q3,B.filter=Ex,B.flatMap=Rx,B.flatMapDeep=Ax,B.flatMapDepth=Hy,B.flatten=Ry,B.flattenDeep=Zm,B.flattenDepth=L0,B.flip=Vx,B.flow=UC,B.flowRight=l1,B.fromPairs=Ay,B.functions=c2,B.functionsIn=uC,B.groupBy=vf,B.initial=ex,B.intersection=tx,B.intersectionBy=Zd,B.intersectionWith=O0,B.invert=f2,B.invertBy=cC,B.invokeMap=Lx,B.iteratee=u1,B.keyBy=Ox,B.keys=di,B.keysIn=Ia,B.map=Jm,B.mapKeys=fC,B.mapValues=dC,B.matches=$C,B.matchesProperty=jC,B.memoize=th,B.merge=pC,B.mergeWith=d2,B.method=VC,B.methodOf=HC,B.mixin=c1,B.negate=nh,B.nthArg=S2,B.omit=mC,B.omitBy=hC,B.once=Hx,B.orderBy=Mx,B.over=d1,B.overArgs=Wx,B.overEvery=GC,B.overSome=YC,B.partial=sa,B.partialRight=gf,B.partition=Dx,B.pick=vC,B.pickBy=p2,B.property=hp,B.propertyOf=vp,B.pull=Oy,B.pullAll=Xd,B.pullAllBy=Km,B.pullAllWith=My,B.pullAt=no,B.range=qC,B.rangeRight=ZC,B.rearg=Xy,B.reject=Ix,B.remove=hf,B.rest=Gx,B.reverse=Qd,B.sampleSize=np,B.set=Q0,B.setWith=J0,B.shuffle=rp,B.slice=Jd,B.sortBy=Bx,B.sortedUniq=Dy,B.sortedUniqBy=ax,B.split=RC,B.spread=Qy,B.tail=ox,B.take=sx,B.takeRight=P0,B.takeRightWhile=lx,B.takeWhile=ux,B.tap=xx,B.throttle=Yx,B.thru=Qm,B.toArray=yf,B.toPairs=dh,B.toPairsIn=m2,B.toPath=JC,B.toPlainObject=q0,B.transform=up,B.unary=qx,B.union=cx,B.unionBy=fx,B.unionWith=dx,B.uniq=Py,B.uniqBy=px,B.uniqWith=mx,B.unset=cp,B.unzip=I0,B.unzipWith=Iy,B.update=gC,B.updateWith=h2,B.values=Cf,B.valuesIn=bC,B.without=hx,B.words=o1,B.wrap=Zx,B.xor=vx,B.xorBy=F0,B.xorWith=gx,B.zip=bx,B.zipObject=yx,B.zipObjectDeep=Fy,B.zipWith=Sx,B.entries=dh,B.entriesIn=m2,B.extend=Sf,B.extendWith=lc,c1(B,B),B.add=tN,B.attempt=y2,B.camelCase=g2,B.capitalize=fp,B.ceil=nN,B.clamp=v2,B.clone=e2,B.cloneDeep=Xx,B.cloneDeepWith=t2,B.cloneWith=Kx,B.conformsTo=V0,B.deburr=dp,B.defaultTo=BC,B.divide=rN,B.endsWith=ph,B.eq=ts,B.escape=pp,B.escapeRegExp=mp,B.every=jy,B.find=Vy,B.findIndex=Ty,B.findKey=Z0,B.findLast=Tx,B.findLastIndex=qm,B.findLastKey=lh,B.floor=iN,B.forEach=B0,B.forEachRight=U0,B.forIn=lp,B.forInRight=l2,B.forOwn=uh,B.forOwnRight=u2,B.get=K0,B.gt=Qx,B.gte=Jx,B.has=ch,B.hasIn=xf,B.head=ky,B.identity=Fa,B.includes=kx,B.indexOf=J3,B.inRange=yC,B.invoke=fh,B.isArguments=ac,B.isArray=ln,B.isArrayBuffer=eC,B.isArrayLike=ti,B.isArrayLikeObject=Ar,B.isBoolean=ip,B.isBuffer=Fs,B.isDate=tC,B.isElement=nC,B.isEmpty=n2,B.isEqual=rC,B.isEqualWith=rh,B.isError=eu,B.isFinite=H0,B.isFunction=zs,B.isInteger=ap,B.isLength=op,B.isMap=W0,B.isMatch=r2,B.isMatchWith=i2,B.isNaN=tu,B.isNative=iC,B.isNil=oC,B.isNull=aC,B.isNumber=bf,B.isObject=wr,B.isObjectLike=kr,B.isPlainObject=oc,B.isRegExp=ih,B.isSafeInteger=sC,B.isSet=G0,B.isString=ah,B.isSymbol=wn,B.isTypedArray=nu,B.isUndefined=oh,B.isWeakMap=sp,B.isWeakSet=a2,B.join=Kd,B.kebabCase=xC,B.last=xo,B.lastIndexOf=nx,B.lowerCase=e1,B.lowerFirst=t1,B.lt=o2,B.lte=Y0,B.max=aN,B.maxBy=oN,B.mean=sN,B.meanBy=lN,B.min=uN,B.minBy=cN,B.stubArray=p1,B.stubFalse=m1,B.stubObject=KC,B.stubString=XC,B.stubTrue=QC,B.multiply=fN,B.nth=Ly,B.noConflict=WC,B.noop=f1,B.now=ic,B.pad=CC,B.padEnd=NC,B.padStart=UE,B.parseInt=wC,B.random=SC,B.reduce=Wy,B.reduceRight=Px,B.repeat=_C,B.replace=EC,B.result=X0,B.round=dN,B.runInContext=oe,B.sample=Gy,B.size=Fx,B.snakeCase=TC,B.some=zx,B.sortedIndex=rx,B.sortedIndexBy=M0,B.sortedIndexOf=D0,B.sortedLastIndex=ep,B.sortedLastIndexBy=ix,B.sortedLastIndexOf=Xm,B.startCase=AC,B.startsWith=n1,B.subtract=pN,B.sum=mN,B.sumBy=Nf,B.template=kC,B.times=x2,B.toFinite=Cl,B.toInteger=an,B.toLength=sc,B.toLower=LC,B.toNumber=Co,B.toSafeInteger=lC,B.toString=Xn,B.toUpper=r1,B.trim=OC,B.trimEnd=i1,B.trimStart=b2,B.truncate=MC,B.unescape=DC,B.uniqueId=eN,B.upperCase=PC,B.upperFirst=a1,B.each=B0,B.eachRight=U0,B.first=ky,c1(B,function(){var l={};return gr(B,function(d,g){er.call(B.prototype,g)||(l[g]=d)}),l}(),{chain:!1}),B.VERSION=i,Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){B[l].placeholder=B}),Rt(["drop","take"],function(l,d){An.prototype[l]=function(g){g=g===n?1:Hr(an(g),0);var E=this.__filtered__&&!d?new An(this):this.clone();return E.__filtered__?E.__takeCount__=si(g,E.__takeCount__):E.__views__.push({size:si(g,we),type:l+(E.__dir__<0?"Right":"")}),E},An.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),Rt(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==ie||g==xe;An.prototype[l]=function(D){var j=this.clone();return j.__iteratees__.push({iteratee:Pt(D,3),type:g}),j.__filtered__=j.__filtered__||E,j}}),Rt(["head","last"],function(l,d){var g="take"+(d?"Right":"");An.prototype[l]=function(){return this[g](1).value()[0]}}),Rt(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");An.prototype[l]=function(){return this.__filtered__?new An(this):this[g](1)}}),An.prototype.compact=function(){return this.filter(Fa)},An.prototype.find=function(l){return this.filter(l).head()},An.prototype.findLast=function(l){return this.reverse().find(l)},An.prototype.invokeMap=bn(function(l,d){return typeof l=="function"?new An(this):this.map(function(g){return Ld(g,l,d)})}),An.prototype.reject=function(l){return this.filter(nh(Pt(l)))},An.prototype.slice=function(l,d){l=an(l);var g=this;return g.__filtered__&&(l>0||d<0)?new An(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==n&&(d=an(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},An.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},An.prototype.toArray=function(){return this.take(we)},gr(An.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),D=B[E?"take"+(d=="last"?"Right":""):d],j=E||/^find/.test(d);!D||(B.prototype[d]=function(){var q=this.__wrapped__,Q=E?[1]:arguments,se=q instanceof An,Me=Q[0],ke=se||ln(q),Ie=function(yn){var kn=D.apply(B,La([yn],Q));return E&&Qe?kn[0]:kn};ke&&g&&typeof Me=="function"&&Me.length!=1&&(se=ke=!1);var Qe=this.__chain__,vt=!!this.__actions__.length,It=j&&!Qe,mn=se&&!vt;if(!j&&ke){q=mn?q:new An(this);var $t=l.apply(q,Q);return $t.__actions__.push({func:Qm,args:[Ie],thisArg:n}),new bo($t,Qe)}return It&&mn?l.apply(this,Q):($t=this.thru(Ie),It?E?$t.value()[0]:$t.value():$t)})}),Rt(["pop","push","shift","sort","splice","unshift"],function(l){var d=ul[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);B.prototype[l]=function(){var D=arguments;if(E&&!this.__chain__){var j=this.value();return d.apply(ln(j)?j:[],D)}return this[g](function(q){return d.apply(ln(q)?q:[],D)})}}),gr(An.prototype,function(l,d){var g=B[d];if(g){var E=g.name+"";er.call(Zc,E)||(Zc[E]=[]),Zc[E].push({name:d,func:g})}}),Zc[cf(n,z).name]=[{name:"wrapper",func:n}],An.prototype.clone=zt,An.prototype.reverse=Qc,An.prototype.value=Wr,B.prototype.at=Cx,B.prototype.chain=Nx,B.prototype.commit=wx,B.prototype.next=By,B.prototype.plant=tp,B.prototype.reverse=_x,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Uy,B.prototype.first=B.prototype.head,Cd&&(B.prototype[Cd]=z0),B},$c=N3();L?((L.exports=$c)._=$c,S._=$c):Kt._=$c}).call(Ac)})(Wa,Wa.exports);const tb=Wa.exports,ive={currentImageUuid:"",images:[],areMoreImagesAvailable:!0},iU=xE({name:"gallery",initialState:ive,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,i=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(c=>c.uuid===n),u=Wa.exports.clamp(o,0,i.length-1);e.currentImage=i.length?i[u]:void 0,e.currentImageUuid=i.length?i[u].uuid:""}e.images=i},addImage:(e,t)=>{const n=t.payload,{uuid:i,mtime:o}=n;e.images.unshift(n),e.currentImageUuid=i,e.intermediateImage=void 0,e.currentImage=n,e.latest_mtime=o},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},selectNextImage:e=>{const{images:t,currentImage:n}=e;if(n){const i=t.findIndex(o=>o.uuid===n.uuid);if(tb.inRange(i,0,t.length)){const o=t[i+1];e.currentImage=o,e.currentImageUuid=o.uuid}}},selectPrevImage:e=>{const{images:t,currentImage:n}=e;if(n){const i=t.findIndex(o=>o.uuid===n.uuid);if(tb.inRange(i,1,t.length+1)){const o=t[i-1];e.currentImage=o,e.currentImageUuid=o.uuid}}},addGalleryImages:(e,t)=>{const{images:n,areMoreImagesAvailable:i}=t.payload;if(n.length>0){if(e.images=e.images.concat(n).sort((o,u)=>u.mtime-o.mtime),!e.currentImage){const o=n[0];e.currentImage=o,e.currentImageUuid=o.uuid}e.latest_mtime=n[0].mtime,e.earliest_mtime=n[n.length-1].mtime}i!==void 0&&(e.areMoreImagesAvailable=i)}}}),{addImage:E6,clearIntermediateImage:NM,removeImage:ave,setCurrentImage:ove,addGalleryImages:sve,setIntermediateImage:lve,selectNextImage:aU,selectPrevImage:oU}=iU.actions,uve=iU.reducer,cve={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",hasError:!1,wasErrorSeen:!0},fve=cve,sU=xE({name:"system",initialState:fve,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Server error",e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?"Connected":"Disconnected"},addLogEntry:(e,t)=>{const{timestamp:n,message:i,level:o}=t.payload,c={timestamp:n,message:i,level:o||"info"};e.log.push(c)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.hasError=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload},processingCanceled:e=>{e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Processing canceled"}}}),{setShouldDisplayInProgress:dve,setIsProcessing:M4,addLogEntry:Ao,setShouldShowLogViewer:wM,setIsConnected:_M,setSocketId:Tye,setShouldConfirmOnDelete:lU,setOpenAccordions:pve,setSystemStatus:mve,setCurrentStatus:EM,setSystemConfig:hve,setShouldDisplayGuides:vve,processingCanceled:gve,errorOccurred:bve,errorSeen:uU}=sU.actions,yve=sU.reducer,Iu=Object.create(null);Iu.open="0";Iu.close="1";Iu.ping="2";Iu.pong="3";Iu.message="4";Iu.upgrade="5";Iu.noop="6";const D4=Object.create(null);Object.keys(Iu).forEach(e=>{D4[Iu[e]]=e});const Sve={type:"error",data:"parser error"},xve=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Cve=typeof ArrayBuffer=="function",Nve=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,cU=({type:e,data:t},n,i)=>xve&&t instanceof Blob?n?i(t):TM(t,i):Cve&&(t instanceof ArrayBuffer||Nve(t))?n?i(t):TM(new Blob([t]),i):i(Iu[e]+(t||"")),TM=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+i)},n.readAsDataURL(e)},RM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<RM.length;e++)hg[RM.charCodeAt(e)]=e;const wve=e=>{let t=e.length*.75,n=e.length,i,o=0,u,c,p,h;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),b=new Uint8Array(v);for(i=0;i<n;i+=4)u=hg[e.charCodeAt(i)],c=hg[e.charCodeAt(i+1)],p=hg[e.charCodeAt(i+2)],h=hg[e.charCodeAt(i+3)],b[o++]=u<<2|c>>4,b[o++]=(c&15)<<4|p>>2,b[o++]=(p&3)<<6|h&63;return v},_ve=typeof ArrayBuffer=="function",fU=(e,t)=>{if(typeof e!="string")return{type:"message",data:dU(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Eve(e.substring(1),t)}:D4[n]?e.length>1?{type:D4[n],data:e.substring(1)}:{type:D4[n]}:Sve},Eve=(e,t)=>{if(_ve){const n=wve(e);return dU(n,t)}else return{base64:!0,data:e}},dU=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},pU=String.fromCharCode(30),Tve=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((u,c)=>{cU(u,!1,p=>{i[c]=p,++o===n&&t(i.join(pU))})})},Rve=(e,t)=>{const n=e.split(pU),i=[];for(let o=0;o<n.length;o++){const u=fU(n[o],t);if(i.push(u),u.type==="error")break}return i},mU=4;function Si(e){if(e)return Ave(e)}function Ave(e){for(var t in Si.prototype)e[t]=Si.prototype[t];return e}Si.prototype.on=Si.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Si.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Si.prototype.off=Si.prototype.removeListener=Si.prototype.removeAllListeners=Si.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===t||i.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Si.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,t)}return this};Si.prototype.emitReserved=Si.prototype.emit;Si.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Si.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ed=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function hU(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const kve=setTimeout,Lve=clearTimeout;function c3(e,t){t.useNativeTimers?(e.setTimeoutFn=kve.bind(ed),e.clearTimeoutFn=Lve.bind(ed)):(e.setTimeoutFn=setTimeout.bind(ed),e.clearTimeoutFn=clearTimeout.bind(ed))}const Ove=1.33;function Mve(e){return typeof e=="string"?Dve(e):Math.ceil((e.byteLength||e.size)*Ove)}function Dve(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}class Pve extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class vU extends Si{constructor(t){super(),this.writable=!1,c3(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,i){return super.emitReserved("error",new Pve(t,n,i)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=fU(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const gU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),C8=64,Ive={};let AM=0,n4=0,kM;function LM(e){let t="";do t=gU[e%C8]+t,e=Math.floor(e/C8);while(e>0);return t}function bU(){const e=LM(+new Date);return e!==kM?(AM=0,kM=e):e+"."+LM(AM++)}for(;n4<C8;n4++)Ive[gU[n4]]=n4;function yU(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Fve(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let u=n[i].split("=");t[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return t}let SU=!1;try{SU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zve=SU;function xU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||zve))return new XMLHttpRequest}catch{}if(!t)try{return new ed[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Bve(){}const Uve=function(){return new xU({xdomain:!1}).responseType!=null}();class $ve extends vU{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let o=location.port;o||(o=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==i}const n=t&&t.forceBase64;this.supportsBinary=Uve&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};Rve(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Tve(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=bU()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const o=yU(t),u=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(u?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Ou(this.uri(),t)}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,u)=>{this.onError("xhr post error",o,u)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}class Ou extends Si{constructor(t,n){super(),c3(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=hU(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new xU(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Ou.requestsCount++,Ou.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Bve,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ou.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Ou.requestsCount=0;Ou.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",OM);else if(typeof addEventListener=="function"){const e="onpagehide"in ed?"pagehide":"unload";addEventListener(e,OM,!1)}}function OM(){for(let e in Ou.requests)Ou.requests.hasOwnProperty(e)&&Ou.requests[e].abort()}const jve=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),r4=ed.WebSocket||ed.MozWebSocket,MM=!0,Vve="arraybuffer",DM=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Hve extends vU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,i=DM?{}:hU(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=MM&&!DM?n?new r4(t,n):new r4(t):new r4(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Vve,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;cU(i,this.supportsBinary,u=>{const c={};try{MM&&this.ws.send(u)}catch{}o&&jve(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=bU()),this.supportsBinary||(t.b64=1);const o=yU(t),u=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(u?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}check(){return!!r4}}const Wve={websocket:Hve,polling:$ve},Gve=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Yve=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function N8(e){const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let o=Gve.exec(e||""),u={},c=14;for(;c--;)u[Yve[c]]=o[c]||"";return n!=-1&&i!=-1&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=qve(u,u.path),u.queryKey=Zve(u,u.query),u}function qve(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&i.splice(0,1),t.substr(t.length-1,1)=="/"&&i.splice(i.length-1,1),i}function Zve(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,u){o&&(n[o]=u)}),n}class Zf extends Si{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=N8(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=N8(n.host).host),c3(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Fve(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=mU,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Wve[t](i)}open(){let t;if(this.opts.rememberUpgrade&&Zf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),i=!1;Zf.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",x=>{if(!i)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Zf.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(b(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const N=new Error("probe error");N.transport=n.name,this.emitReserved("upgradeError",N)}}))};function u(){i||(i=!0,b(),n.close(),n=null)}const c=x=>{const N=new Error("probe error: "+x);N.transport=n.name,u(),this.emitReserved("upgradeError",N)};function p(){c("transport closed")}function h(){c("socket closed")}function v(x){n&&x.name!==n.name&&u()}const b=()=>{n.removeListener("open",o),n.removeListener("error",c),n.removeListener("close",p),this.off("close",h),this.off("upgrading",v)};n.once("open",o),n.once("error",c),n.once("close",p),this.once("close",h),this.once("upgrading",v),n.open()}onOpen(){if(this.readyState="open",Zf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=Mve(o)),i>0&&n>this.maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}write(t,n,i){return this.sendPacket("message",t,n,i),this}send(t,n,i){return this.sendPacket("message",t,n,i),this}sendPacket(t,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const u={type:t,data:n,options:i};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():t()}):this.upgrading?i():t()),this}onError(t){Zf.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let i=0;const o=t.length;for(;i<o;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}Zf.protocol=mU;function Kve(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=N8(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const u=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+u+":"+i.port+t,i.href=i.protocol+"://"+u+(n&&n.port===i.port?"":":"+i.port),i}const Xve=typeof ArrayBuffer=="function",Qve=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,CU=Object.prototype.toString,Jve=typeof Blob=="function"||typeof Blob<"u"&&CU.call(Blob)==="[object BlobConstructor]",e0e=typeof File=="function"||typeof File<"u"&&CU.call(File)==="[object FileConstructor]";function AE(e){return Xve&&(e instanceof ArrayBuffer||Qve(e))||Jve&&e instanceof Blob||e0e&&e instanceof File}function P4(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(P4(e[n]))return!0;return!1}if(AE(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return P4(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&P4(e[n]))return!0;return!1}function t0e(e){const t=[],n=e.data,i=e;return i.data=w8(n,t),i.attachments=t.length,{packet:i,buffers:t}}function w8(e,t){if(!e)return e;if(AE(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=w8(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=w8(e[i],t));return n}return e}function n0e(e,t){return e.data=_8(e.data,t),e.attachments=void 0,e}function _8(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=_8(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=_8(e[n],t));return e}const r0e=5;var qn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(qn||(qn={}));class i0e{constructor(t){this.replacer=t}encode(t){return(t.type===qn.EVENT||t.type===qn.ACK)&&P4(t)?(t.type=t.type===qn.EVENT?qn.BINARY_EVENT:qn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===qn.BINARY_EVENT||t.type===qn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=t0e(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}class kE extends Si{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t),n.type===qn.BINARY_EVENT||n.type===qn.BINARY_ACK?(this.reconstructor=new a0e(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(AE(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(qn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===qn.BINARY_EVENT||i.type===qn.BINARY_ACK){const u=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const c=t.substring(u,n);if(c!=Number(c)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(c)}if(t.charAt(n+1)==="/"){const u=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(u,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const u=n+1;for(;++n;){const c=t.charAt(n);if(c==null||Number(c)!=c){--n;break}if(n===t.length)break}i.id=Number(t.substring(u,n+1))}if(t.charAt(++n)){const u=this.tryParse(t.substr(n));if(kE.isPayloadValid(i.type,u))i.data=u;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case qn.CONNECT:return typeof n=="object";case qn.DISCONNECT:return n===void 0;case qn.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case qn.EVENT:case qn.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case qn.ACK:case qn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class a0e{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=n0e(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const o0e=Object.freeze(Object.defineProperty({__proto__:null,protocol:r0e,get PacketType(){return qn},Encoder:i0e,Decoder:kE},Symbol.toStringTag,{value:"Module"}));function Fl(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const s0e=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class NU extends Si{constructor(t,n,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Fl(t,"open",this.onopen.bind(this)),Fl(t,"packet",this.onpacket.bind(this)),Fl(t,"error",this.onerror.bind(this)),Fl(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(s0e.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const i={type:qn.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,p=n.pop();this._registerAckCallback(c,p),i.id=c}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,n){const i=this.flags.timeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===t&&this.sendBuffer.splice(u,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...u)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...u])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:qn.CONNECT,data:t})}):this.packet({type:qn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case qn.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case qn.EVENT:case qn.BINARY_EVENT:this.onevent(t);break;case qn.ACK:case qn.BINARY_ACK:this.onack(t);break;case qn.DISCONNECT:this.ondisconnect();break;case qn.CONNECT_ERROR:this.destroy();const i=new Error(t.data.message);i.data=t.data.data,this.emitReserved("connect_error",i);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:qn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:qn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function zv(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}zv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};zv.prototype.reset=function(){this.attempts=0};zv.prototype.setMin=function(e){this.ms=e};zv.prototype.setMax=function(e){this.max=e};zv.prototype.setJitter=function(e){this.jitter=e};class E8 extends Si{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,c3(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new zv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||o0e;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Zf(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=Fl(n,"open",function(){i.onopen(),t&&t()}),u=Fl(n,"error",c=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",c),t?t(c):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const c=this._timeout;c===0&&o();const p=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},c);this.opts.autoUnref&&p.unref(),this.subs.push(function(){clearTimeout(p)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Fl(t,"ping",this.onping.bind(this)),Fl(t,"data",this.ondata.bind(this)),Fl(t,"error",this.onerror.bind(this)),Fl(t,"close",this.onclose.bind(this)),Fl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let i=this.nsps[t];return i||(i=new NU(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[i],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ag={};function I4(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Kve(e,t.path||"/socket.io"),i=n.source,o=n.id,u=n.path,c=ag[o]&&u in ag[o].nsps,p=t.forceNew||t["force new connection"]||t.multiplex===!1||c;let h;return p?h=new E8(i,t):(ag[o]||(ag[o]=new E8(i,t)),h=ag[o]),n.query&&!t.query&&(t.query=n.queryKey),h.socket(n.path,t)}Object.assign(I4,{Manager:E8,Socket:NU,io:I4,connect:I4});let i4;const l0e=new Uint8Array(16);function u0e(){if(!i4&&(i4=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i4))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i4(l0e)}const ya=[];for(let e=0;e<256;++e)ya.push((e+256).toString(16).slice(1));function c0e(e,t=0){return(ya[e[t+0]]+ya[e[t+1]]+ya[e[t+2]]+ya[e[t+3]]+"-"+ya[e[t+4]]+ya[e[t+5]]+"-"+ya[e[t+6]]+ya[e[t+7]]+"-"+ya[e[t+8]]+ya[e[t+9]]+"-"+ya[e[t+10]]+ya[e[t+11]]+ya[e[t+12]]+ya[e[t+13]]+ya[e[t+14]]+ya[e[t+15]]).toLowerCase()}const f0e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),PM={randomUUID:f0e};function a4(e,t,n){if(PM.randomUUID&&!t&&!e)return PM.randomUUID();e=e||{};const i=e.random||(e.rng||u0e)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=i[o];return t}return c0e(i)}var d0e=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,p0e=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,m0e=/[^-+\dA-Z]/g;function ko(e,t,n,i){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(IM[t]||t||IM.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(i=!0));var u=function(){return n?"getUTC":"get"},c=function(){return e[u()+"Date"]()},p=function(){return e[u()+"Day"]()},h=function(){return e[u()+"Month"]()},v=function(){return e[u()+"FullYear"]()},b=function(){return e[u()+"Hours"]()},x=function(){return e[u()+"Minutes"]()},N=function(){return e[u()+"Seconds"]()},_=function(){return e[u()+"Milliseconds"]()},T=function(){return n?0:e.getTimezoneOffset()},A=function(){return h0e(e)},M=function(){return v0e(e)},z={d:function(){return c()},dd:function(){return as(c())},ddd:function(){return To.dayNames[p()]},DDD:function(){return FM({y:v(),m:h(),d:c(),_:u(),dayName:To.dayNames[p()],short:!0})},dddd:function(){return To.dayNames[p()+7]},DDDD:function(){return FM({y:v(),m:h(),d:c(),_:u(),dayName:To.dayNames[p()+7]})},m:function(){return h()+1},mm:function(){return as(h()+1)},mmm:function(){return To.monthNames[h()]},mmmm:function(){return To.monthNames[h()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return as(v(),4)},h:function(){return b()%12||12},hh:function(){return as(b()%12||12)},H:function(){return b()},HH:function(){return as(b())},M:function(){return x()},MM:function(){return as(x())},s:function(){return N()},ss:function(){return as(N())},l:function(){return as(_(),3)},L:function(){return as(Math.floor(_()/10))},t:function(){return b()<12?To.timeNames[0]:To.timeNames[1]},tt:function(){return b()<12?To.timeNames[2]:To.timeNames[3]},T:function(){return b()<12?To.timeNames[4]:To.timeNames[5]},TT:function(){return b()<12?To.timeNames[6]:To.timeNames[7]},Z:function(){return i?"GMT":n?"UTC":g0e(e)},o:function(){return(T()>0?"-":"+")+as(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)},p:function(){return(T()>0?"-":"+")+as(Math.floor(Math.abs(T())/60),2)+":"+as(Math.floor(Math.abs(T())%60),2)},S:function(){return["th","st","nd","rd"][c()%10>3?0:(c()%100-c()%10!=10)*c()%10]},W:function(){return A()},WW:function(){return as(A())},N:function(){return M()}};return t.replace(d0e,function(P){return P in z?z[P]():P.slice(1,P.length-1)})}var IM={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},To={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},as=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},FM=function(t){var n=t.y,i=t.m,o=t.d,u=t._,c=t.dayName,p=t.short,h=p===void 0?!1:p,v=new Date,b=new Date;b.setDate(b[u+"Date"]()-1);var x=new Date;x.setDate(x[u+"Date"]()+1);var N=function(){return v[u+"Date"]()},_=function(){return v[u+"Month"]()},T=function(){return v[u+"FullYear"]()},A=function(){return b[u+"Date"]()},M=function(){return b[u+"Month"]()},z=function(){return b[u+"FullYear"]()},P=function(){return x[u+"Date"]()},I=function(){return x[u+"Month"]()},F=function(){return x[u+"FullYear"]()};return T()===n&&_()===i&&N()===o?h?"Tdy":"Today":z()===n&&M()===i&&A()===o?h?"Ysd":"Yesterday":F()===n&&I()===i&&P()===o?h?"Tmw":"Tomorrow":c},h0e=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=new Date(n.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var o=n.getTimezoneOffset()-i.getTimezoneOffset();n.setHours(n.getHours()-o);var u=(n-i)/(864e5*7);return 1+Math.floor(u)},v0e=function(t){var n=t.getDay();return n===0&&(n=7),n},g0e=function(t){return(String(t).match(p0e)||[""]).pop().replace(m0e,"").replace(/GMT\+0000/g,"UTC")};const T8=fo("socketio/generateImage"),b0e=fo("socketio/runESRGAN"),y0e=fo("socketio/runFacetool"),S0e=fo("socketio/deleteImage"),wU=fo("socketio/requestImages"),x0e=fo("socketio/requestNewImages"),C0e=fo("socketio/cancelProcessing"),N0e=fo("socketio/uploadInitialImage");fo("socketio/uploadMaskImage");const w0e=fo("socketio/requestSystemConfig"),_0e=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(_M(!0)),t(EM("Connected")),n().gallery.latest_mtime?t(x0e()):t(wU())}catch(i){console.error(i)}},onDisconnect:()=>{try{t(_M(!1)),t(EM("Disconnected")),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(i){console.error(i)}},onGenerationResult:i=>{try{const{url:o,mtime:u,metadata:c}=i,p=a4();t(E6({uuid:p,url:o,mtime:u,metadata:c})),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Image generated: ${o}`}))}catch(o){console.error(o)}},onIntermediateResult:i=>{try{const o=a4(),{url:u,metadata:c,mtime:p}=i;t(lve({uuid:o,url:u,mtime:p,metadata:c})),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Intermediate image generated: ${u}`}))}catch(o){console.error(o)}},onPostprocessingResult:i=>{try{const{url:o,metadata:u,mtime:c}=i;t(E6({uuid:a4(),url:o,mtime:c,metadata:u})),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Postprocessed: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:i=>{try{t(M4(!0)),t(mve(i))}catch(o){console.error(o)}},onError:i=>{const{message:o,additionalData:u}=i;try{t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(bve()),t(NM())}catch(c){console.error(c)}},onGalleryImages:i=>{const{images:o,areMoreImagesAvailable:u}=i,c=o.map(p=>{const{url:h,metadata:v,mtime:b}=p;return{uuid:a4(),url:h,mtime:b,metadata:v}});t(sve({images:c,areMoreImagesAvailable:u})),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(gve());const{intermediateImage:i}=n().gallery;i&&(t(E6(i)),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Intermediate image saved: ${i.url}`})),t(NM())),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:i=>{const{url:o,uuid:u}=i;t(ave(u));const{initialImagePath:c,maskPath:p}=n().options;c===o&&t(Tv("")),p===o&&t(x8("")),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:i=>{const{url:o}=i;t(Tv(o)),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:i=>{const{url:o}=i;t(x8(o)),t(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:i=>{t(hve(i))}}},E0e=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],T0e=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],R0e=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],A0e=[{key:"2x",value:2},{key:"4x",value:4}],LE=0,OE=4294967295,k0e=["gfpgan","codeformer"],_U=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),L0e=(e,t)=>{const{prompt:n,iterations:i,steps:o,cfgScale:u,threshold:c,perlin:p,height:h,width:v,sampler:b,seed:x,seamless:N,hiresFix:_,shouldUseInitImage:T,img2imgStrength:A,initialImagePath:M,maskPath:z,shouldFitToWidthHeight:P,shouldGenerateVariations:I,variationAmount:F,seedWeights:$,shouldRunESRGAN:Y,upscalingLevel:Z,upscalingStrength:ue,shouldRunFacetool:ce,facetoolStrength:le,codeformerFidelity:ge,facetoolType:Ye,shouldRandomizeSeed:re}=e,{shouldDisplayInProgress:ie}=t,Ce={prompt:n,iterations:i,steps:o,cfg_scale:u,threshold:c,perlin:p,height:h,width:v,sampler_name:b,seed:x,seamless:N,hires_fix:_,progress_images:ie};Ce.seed=re?_U(LE,OE):x,T&&(Ce.init_img=M,Ce.strength=A,Ce.fit=P,z&&(Ce.init_mask=z)),I?(Ce.variation_amount=F,$&&(Ce.with_variations=Whe($))):Ce.variation_amount=0;let xe=!1,K=!1;return Y&&(xe={level:Z,strength:ue}),ce&&(K={type:Ye,strength:le},Ye==="codeformer"&&(K.codeformer_fidelity=ge)),{generationParameters:Ce,esrganParameters:xe,facetoolParameters:K}};var T6=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function R6(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function EU(e,t){for(var n=t.slice(0,t.length-1),i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function TU(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function O0e(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,u=0;u<n.length;u++)i.indexOf(n[u])===-1&&(o=!1);return o}var ME={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":T6?173:189,"=":T6?61:187,";":T6?59:186,"'":222,"[":219,"]":221,"\\":220},ud={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},R8={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},xa={16:!1,18:!1,17:!1,91:!1},vi={};for(var o4=1;o4<20;o4++)ME["f".concat(o4)]=111+o4;var Pr=[],zM=!1,RU="all",AU=[],f3=function(t){return ME[t.toLowerCase()]||ud[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function kU(e){RU=e||"all"}function nb(){return RU||"all"}function M0e(){return Pr.slice(0)}function D0e(e){var t=e.target||e.srcElement,n=t.tagName,i=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function P0e(e){return typeof e=="string"&&(e=f3(e)),Pr.indexOf(e)!==-1}function I0e(e,t){var n,i;e||(e=nb());for(var o in vi)if(Object.prototype.hasOwnProperty.call(vi,o))for(n=vi[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1):i++;nb()===e&&kU(t||"all")}function F0e(e){var t=e.keyCode||e.which||e.charCode,n=Pr.indexOf(t);if(n>=0&&Pr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Pr.splice(0,Pr.length),(t===93||t===224)&&(t=91),t in xa){xa[t]=!1;for(var i in ud)ud[i]===t&&(us[i]=!1)}}function z0e(e){if(typeof e>"u")Object.keys(vi).forEach(function(c){return delete vi[c]});else if(Array.isArray(e))e.forEach(function(c){c.key&&A6(c)});else if(typeof e=="object")e.key&&A6(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=n[0],u=n[1];typeof o=="function"&&(u=o,o=""),A6({key:e,scope:o,method:u,splitKey:"+"})}}var A6=function(t){var n=t.key,i=t.scope,o=t.method,u=t.splitKey,c=u===void 0?"+":u,p=TU(n);p.forEach(function(h){var v=h.split(c),b=v.length,x=v[b-1],N=x==="*"?"*":f3(x);if(!!vi[N]){i||(i=nb());var _=b>1?EU(ud,v):[];vi[N]=vi[N].filter(function(T){var A=o?T.method===o:!0;return!(A&&T.scope===i&&O0e(T.mods,_))})}})};function BM(e,t,n,i){if(t.element===i){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var u in xa)Object.prototype.hasOwnProperty.call(xa,u)&&(!xa[u]&&t.mods.indexOf(+u)>-1||xa[u]&&t.mods.indexOf(+u)===-1)&&(o=!1);(t.mods.length===0&&!xa[16]&&!xa[18]&&!xa[17]&&!xa[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function UM(e,t){var n=vi["*"],i=e.keyCode||e.which||e.charCode;if(!!us.filter.call(this,e)){if((i===93||i===224)&&(i=91),Pr.indexOf(i)===-1&&i!==229&&Pr.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(T){var A=R8[T];e[T]&&Pr.indexOf(A)===-1?Pr.push(A):!e[T]&&Pr.indexOf(A)>-1?Pr.splice(Pr.indexOf(A),1):T==="metaKey"&&e[T]&&Pr.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Pr=Pr.slice(Pr.indexOf(A))))}),i in xa){xa[i]=!0;for(var o in ud)ud[o]===i&&(us[o]=!0);if(!n)return}for(var u in xa)Object.prototype.hasOwnProperty.call(xa,u)&&(xa[u]=e[R8[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Pr.indexOf(17)===-1&&Pr.push(17),Pr.indexOf(18)===-1&&Pr.push(18),xa[17]=!0,xa[18]=!0);var c=nb();if(n)for(var p=0;p<n.length;p++)n[p].scope===c&&(e.type==="keydown"&&n[p].keydown||e.type==="keyup"&&n[p].keyup)&&BM(e,n[p],c,t);if(i in vi){for(var h=0;h<vi[i].length;h++)if((e.type==="keydown"&&vi[i][h].keydown||e.type==="keyup"&&vi[i][h].keyup)&&vi[i][h].key){for(var v=vi[i][h],b=v.splitKey,x=v.key.split(b),N=[],_=0;_<x.length;_++)N.push(f3(x[_]));N.sort().join("")===Pr.sort().join("")&&BM(e,v,c,t)}}}}function B0e(e){return AU.indexOf(e)>-1}function us(e,t,n){Pr=[];var i=TU(e),o=[],u="all",c=document,p=0,h=!1,v=!0,b="+",x=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(u=t.scope),t.element&&(c=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(x=t.capture),typeof t.splitKey=="string"&&(b=t.splitKey)),typeof t=="string"&&(u=t);p<i.length;p++)e=i[p].split(b),o=[],e.length>1&&(o=EU(ud,e)),e=e[e.length-1],e=e==="*"?"*":f3(e),e in vi||(vi[e]=[]),vi[e].push({keyup:h,keydown:v,scope:u,mods:o,shortcut:i[p],method:n,key:i[p],splitKey:b,element:c});typeof c<"u"&&!B0e(c)&&window&&(AU.push(c),R6(c,"keydown",function(N){UM(N,c)},x),zM||(zM=!0,R6(window,"focus",function(){Pr=[]},x)),R6(c,"keyup",function(N){UM(N,c),F0e(N)},x))}function U0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(vi).forEach(function(n){var i=vi[n].find(function(o){return o.scope===t&&o.shortcut===e});i&&i.method&&i.method()})}var k6={setScope:kU,getScope:nb,deleteScope:I0e,getPressedKeyCodes:M0e,isPressed:P0e,filter:D0e,trigger:U0e,unbind:z0e,keyMap:ME,modifier:ud,modifierMap:R8};for(var L6 in k6)Object.prototype.hasOwnProperty.call(k6,L6)&&(us[L6]=k6[L6]);if(typeof window<"u"){var $0e=window.hotkeys;us.noConflict=function(e){return e&&window.hotkeys===us&&(window.hotkeys=$0e),us},window.hotkeys=us}us.filter=function(){return!0};var LU=function(t,n){var i=t.target,o=i&&i.tagName;return Boolean(o&&n&&n.includes(o))},j0e=function(t){return LU(t,["INPUT","TEXTAREA","SELECT"])};function ii(e,t,n,i){n instanceof Array&&(i=n,n=void 0);var o=n||{},u=o.enableOnTags,c=o.filter,p=o.keyup,h=o.keydown,v=o.filterPreventDefault,b=v===void 0?!0:v,x=o.enabled,N=x===void 0?!0:x,_=o.enableOnContentEditable,T=_===void 0?!1:_,A=k.exports.useRef(null),M=k.exports.useCallback(function(z,P){var I,F;return c&&!c(z)?!b:j0e(z)&&!LU(z,u)||(I=z.target)!=null&&I.isContentEditable&&!T?!0:A.current===null||document.activeElement===A.current||(F=A.current)!=null&&F.contains(document.activeElement)?(t(z,P),!0):!1},i?[A,u,c].concat(i):[A,u,c]);return k.exports.useEffect(function(){if(!N){us.unbind(e,M);return}return p&&h!==!0&&(n.keydown=!1),us(e,n||{},M),function(){return us.unbind(e,M)}},[M,e,N]),A}us.isPressed;var O6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/InpaintingWIP.tsx";function V0e(){return C("div",{className:"work-in-progress inpainting-work-in-progress",children:[C("h1",{children:"Inpainting"},void 0,!1,{fileName:O6,lineNumber:6,columnNumber:7},this),C("p",{children:"Inpainting is available as a part of the Invoke AI Command Line Interface. A dedicated WebUI interface will be released in the near future."},void 0,!1,{fileName:O6,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:O6,lineNumber:5,columnNumber:5},this)}var M6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/NodesWIP.tsx";function H0e(){return C("div",{className:"work-in-progress nodes-work-in-progress",children:[C("h1",{children:"Nodes"},void 0,!1,{fileName:M6,lineNumber:6,columnNumber:7},this),C("p",{children:"A node based system for the generation of images is under development currently. Stay tuned for updates about this amazing feature."},void 0,!1,{fileName:M6,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:M6,lineNumber:5,columnNumber:5},this)}var D6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/OutpaintingWIP.tsx";function W0e(){return C("div",{className:"work-in-progress outpainting-work-in-progress",children:[C("h1",{children:"Outpainting"},void 0,!1,{fileName:D6,lineNumber:6,columnNumber:7},this),C("p",{children:"Outpainting is available as a part of the Invoke AI Command Line Interface. A dedicated WebUI interface will be released in the near future."},void 0,!1,{fileName:D6,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:D6,lineNumber:5,columnNumber:5},this)}var s4="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/PostProcessingWIP.tsx";const G0e=()=>C("div",{className:"work-in-progress post-processing-work-in-progress",children:[C("h1",{children:"Post Processing"},void 0,!1,{fileName:s4,lineNumber:6,columnNumber:7},void 0),C("p",{children:"Invoke AI offers a wide variety of post processing features. Image Upscaling and Face Restoration are already available in the WebUI. You can access them from the Advanced Options menu of the Text To Image tab. A dedicated UI will be released soon."},void 0,!1,{fileName:s4,lineNumber:7,columnNumber:7},void 0),C("p",{children:"The Invoke AI Command Line Interface offers various other features including Embiggen, High Resolution Fixing and more."},void 0,!1,{fileName:s4,lineNumber:13,columnNumber:7},void 0)]},void 0,!0,{fileName:s4,lineNumber:5,columnNumber:5},void 0);var $M="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/ImageToImageIcon.tsx";const Y0e=kv({displayName:"ImageToImageIcon",viewBox:"0 0 3543 3543",path:C("g",{transform:"matrix(1.10943,0,0,1.10943,-206.981,-213.533)",children:C("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M688.533,2405.95L542.987,2405.95C349.532,2405.95 192.47,2248.89 192.47,2055.44L192.47,542.987C192.47,349.532 349.532,192.47 542.987,192.47L2527.88,192.47C2721.33,192.47 2878.4,349.532 2878.4,542.987L2878.4,1172.79L3023.94,1172.79C3217.4,1172.79 3374.46,1329.85 3374.46,1523.3C3374.46,1523.3 3374.46,3035.75 3374.46,3035.75C3374.46,3229.21 3217.4,3386.27 3023.94,3386.27L1039.05,3386.27C845.595,3386.27 688.533,3229.21 688.533,3035.75L688.533,2405.95ZM3286.96,2634.37L3286.96,1523.3C3286.96,1378.14 3169.11,1260.29 3023.94,1260.29C3023.94,1260.29 1039.05,1260.29 1039.05,1260.29C893.887,1260.29 776.033,1378.14 776.033,1523.3L776.033,2489.79L1440.94,1736.22L2385.83,2775.59L2880.71,2200.41L3286.96,2634.37ZM2622.05,1405.51C2778.5,1405.51 2905.51,1532.53 2905.51,1688.98C2905.51,1845.42 2778.5,1972.44 2622.05,1972.44C2465.6,1972.44 2338.58,1845.42 2338.58,1688.98C2338.58,1532.53 2465.6,1405.51 2622.05,1405.51ZM2790.9,1172.79L1323.86,1172.79L944.882,755.906L279.97,1509.47L279.97,542.987C279.97,397.824 397.824,279.97 542.987,279.97C542.987,279.97 2527.88,279.97 2527.88,279.97C2673.04,279.97 2790.9,397.824 2790.9,542.987L2790.9,1172.79ZM2125.98,425.197C2282.43,425.197 2409.45,552.213 2409.45,708.661C2409.45,865.11 2282.43,992.126 2125.98,992.126C1969.54,992.126 1842.52,865.11 1842.52,708.661C1842.52,552.213 1969.54,425.197 2125.98,425.197Z"},void 0,!1,{fileName:$M,lineNumber:8,columnNumber:7},void 0)},void 0,!1,{fileName:$M,lineNumber:7,columnNumber:5},void 0)});var q0e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/InpaintIcon.tsx";const Z0e=kv({displayName:"InpaintIcon",viewBox:"0 0 3543 3543",path:C("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,768.593C3543.31,517.323 3339.31,313.324 3088.04,313.324L455.269,313.324C203.999,313.324 0,517.323 0,768.593C0,768.593 0,2774.71 0,2774.71C0,3025.98 203.999,3229.98 455.269,3229.98L3088.04,3229.98C3339.31,3229.98 3543.31,3025.98 3543.31,2774.71C3543.31,2774.71 3543.31,768.593 3543.31,768.593ZM3446.56,2252.63L3446.56,768.593C3446.56,570.718 3285.91,410.068 3088.04,410.068C3088.04,410.068 455.269,410.068 455.269,410.068C257.394,410.068 96.745,570.718 96.745,768.593L96.745,2061.49L988.344,1051.01L1326.63,1423.12C1281.74,1438.3 1227.39,1454.93 1158.26,1480.89C995.738,1541.9 944.356,1613.28 911.834,1718.7C884.979,1805.76 875.814,1922.93 811.322,2093.5C763.918,2218.87 765.18,2304.83 790.606,2364.87C817.014,2427.22 869.858,2467.73 941.71,2493.83C1023.86,2523.67 1134.43,2534.25 1242.45,2557.97C1365.72,2585.04 1455.23,2643.2 1532.76,2665.96C1587.03,2681.89 1637.04,2683.6 1686.56,2663.56C1731.54,2645.36 1777.95,2607.64 1825.43,2535.92C1874.9,2461.2 1979.98,2369.94 2102.8,2276.91L2241.64,2429.63L2739.91,1850.53C2754.47,1841.35 2767.47,1833.12 2778.66,1825.94C2832.6,1791.35 2866.82,1742.41 2884.38,1682.61L2898.06,1666.72L3446.56,2252.63ZM1680.71,2559.9C1666.7,2570.37 1652.86,2577.22 1638.81,2580.95L1610.62,2588.45L1625.61,2644.82L1653.8,2637.33C1674.48,2631.83 1695.02,2622.04 1715.64,2606.61L1739,2589.14L1704.06,2542.43L1680.71,2559.9ZM1541.62,2570.42C1524.94,2564.58 1507.63,2557.37 1489.49,2549.48L1462.75,2537.84L1439.48,2591.33L1466.22,2602.97C1485.74,2611.46 1504.38,2619.18 1522.33,2625.47L1549.86,2635.12L1569.15,2580.07L1541.62,2570.42ZM1381.21,2503.1C1363.08,2496.04 1344.17,2489.24 1324.38,2483.03L1296.55,2474.29L1279.07,2529.94L1306.9,2538.68C1325.41,2544.49 1343.09,2550.86 1360.05,2557.46L1387.23,2568.04L1408.39,2513.68L1381.21,2503.1ZM1788.46,2430.83C1773.91,2447.61 1761.19,2463.86 1750.55,2479.44L1734.09,2503.52L1782.25,2536.43L1798.71,2512.35C1808.2,2498.46 1819.56,2484 1832.53,2469.04L1851.64,2447.01L1807.57,2408.79L1788.46,2430.83ZM1262.54,2466.49C1243.17,2462.24 1223.71,2458.43 1204.35,2454.87L1175.67,2449.6L1165.12,2506.97L1193.81,2512.24C1212.52,2515.68 1231.32,2519.35 1250.03,2523.46L1278.52,2529.72L1291.03,2472.74L1262.54,2466.49ZM1089.5,2434.66C1070.28,2431.1 1051.6,2427.35 1033.72,2423.15L1005.32,2416.49L992.002,2473.28L1020.4,2479.94C1039.14,2484.34 1058.71,2488.28 1078.86,2492.02L1107.54,2497.34L1118.18,2439.99L1089.5,2434.66ZM932.182,2386.94C917.545,2378.53 904.788,2368.71 894.532,2356.8L875.504,2334.69L831.294,2372.75L850.322,2394.85C864.755,2411.62 882.513,2425.67 903.11,2437.51L928.396,2452.05L957.469,2401.48L932.182,2386.94ZM1917.04,2306.1C1901.59,2319.37 1886.77,2332.5 1872.67,2345.44L1851.18,2365.17L1890.64,2408.14L1912.12,2388.41C1925.76,2375.89 1940.1,2363.19 1955.04,2350.36L1977.17,2331.36L1939.17,2287.1L1917.04,2306.1ZM866.485,2267.79C866.715,2251.85 868.706,2234.39 872.54,2215.21L878.257,2186.61L821.055,2175.17L815.338,2203.77C810.733,2226.81 808.434,2247.8 808.158,2266.94L807.737,2296.11L866.064,2296.95L866.485,2267.79ZM2055.08,2195.63C2039.24,2207.6 2023.66,2219.55 2008.43,2231.46L1985.45,2249.43L2021.38,2295.38L2044.36,2277.42C2059.34,2265.7 2074.66,2253.95 2090.23,2242.18L2113.51,2224.61L2078.35,2178.06L2055.08,2195.63ZM2197.62,2092.3C2181.57,2103.52 2165.6,2114.82 2149.74,2126.16L2126.02,2143.12L2159.95,2190.57L2183.67,2173.61C2199.36,2162.38 2215.18,2151.21 2231.05,2140.1L2254.95,2123.38L2221.52,2075.58L2197.62,2092.3ZM905.788,2108.14C912.858,2088.7 919.236,2069.96 925.03,2051.88L933.93,2024.1L878.378,2006.3L869.478,2034.08C863.905,2051.47 857.769,2069.5 850.968,2088.2L840.998,2115.61L895.817,2135.55L905.788,2108.14ZM2342.87,1993.45C2326.76,2004.15 2310.52,2015.01 2294.22,2026L2270.04,2042.31L2302.65,2090.67L2326.83,2074.37C2343.01,2063.45 2359.14,2052.67 2375.14,2042.04L2399.44,2025.91L2367.17,1977.31L2342.87,1993.45ZM2489.92,1897.67C2473.88,1907.94 2457.46,1918.5 2440.74,1929.32L2416.26,1945.16L2447.95,1994.14L2472.44,1978.29C2489.07,1967.53 2505.41,1957.02 2521.37,1946.8L2545.93,1931.07L2514.48,1881.94L2489.92,1897.67ZM956.972,1937.49C961.849,1917.31 966.133,1898.15 970.079,1879.93L976.253,1851.43L919.241,1839.08L913.067,1867.59C909.215,1885.38 905.033,1904.08 900.271,1923.79L893.42,1952.13L950.121,1965.84L956.972,1937.49ZM2638.01,1803.95C2622.5,1813.69 2605.98,1824.08 2588.59,1835.04L2563.91,1850.59L2595.02,1899.94L2619.69,1884.38C2637.05,1873.44 2653.55,1863.08 2669.03,1853.35L2693.73,1837.84L2662.71,1788.44L2638.01,1803.95ZM2769.59,1708.14C2760.26,1721.07 2748.81,1732.54 2735.03,1742.4L2711.31,1759.37L2745.25,1806.81L2768.97,1789.84C2788.08,1776.17 2803.93,1760.22 2816.88,1742.3L2833.95,1718.65L2786.67,1684.5L2769.59,1708.14ZM995.304,1767.43C1000.24,1748.86 1005.64,1731.66 1012.23,1715.62L1023.31,1688.64L969.359,1666.47L958.273,1693.45C950.767,1711.72 944.551,1731.29 938.928,1752.44L931.436,1780.63L987.812,1795.62L995.304,1767.43ZM1071.42,1633.09C1083.85,1622.63 1098.26,1612.75 1115.07,1603.23L1140.45,1588.86L1111.71,1538.1L1086.33,1552.47C1066.11,1563.92 1048.82,1575.88 1033.86,1588.46L1011.55,1607.24L1049.11,1651.87L1071.42,1633.09ZM2804.87,1559.28C2805.5,1578.06 2804.95,1596.1 2803,1613.27L2799.72,1642.25L2857.68,1648.81L2860.97,1619.83C2863.22,1599.96 2863.9,1579.07 2863.17,1557.33L2862.2,1528.18L2803.9,1530.12L2804.87,1559.28ZM1217.5,1558.88C1236.87,1551.88 1254.98,1545.61 1271.98,1539.88L1299.62,1530.55L1280.97,1475.28L1253.33,1484.6C1235.96,1490.46 1217.45,1496.87 1197.66,1504.02L1170.23,1513.94L1190.07,1568.8L1217.5,1558.88ZM1383.15,1502.63C1403.9,1495.17 1422.61,1487.67 1439.93,1479.27L1466.18,1466.54L1440.73,1414.06L1414.48,1426.78C1398.91,1434.33 1382.06,1441.03 1363.41,1447.74L1335.96,1457.62L1355.71,1512.51L1383.15,1502.63ZM2777.41,1393.4C2782.33,1412.11 2786.73,1430.56 2790.49,1448.67L2796.42,1477.23L2853.54,1465.37L2847.6,1436.81C2843.64,1417.72 2839.01,1398.28 2833.83,1378.57L2826.41,1350.36L2770,1365.19L2777.41,1393.4ZM1541.19,1401.64C1553.52,1387.35 1565.77,1370.94 1578.31,1351.79L1594.28,1327.39L1545.48,1295.44L1529.5,1319.84C1518.52,1336.62 1507.83,1351.02 1497.03,1363.53L1477.97,1385.61L1522.14,1423.72L1541.19,1401.64ZM2725.02,1229.27C2731.61,1247.45 2738.01,1265.61 2744.12,1283.7L2753.45,1311.33L2808.72,1292.66L2799.38,1265.03C2793.13,1246.53 2786.6,1227.96 2779.85,1209.37L2769.9,1181.95L2715.07,1201.86L2725.02,1229.27ZM1636.99,1247.12C1644.26,1232.56 1651.77,1217.04 1659.58,1200.45C1660.59,1198.3 1661.61,1196.15 1662.61,1194.02L1675.08,1167.65L1622.34,1142.72L1609.88,1169.09C1608.86,1171.25 1607.83,1173.42 1606.81,1175.59C1599.2,1191.75 1591.88,1206.88 1584.8,1221.06L1571.77,1247.16L1623.96,1273.21L1636.99,1247.12ZM2251.58,766.326C2320.04,672.986 2430.48,612.355 2554.96,612.355C2762.48,612.355 2930.95,780.83 2930.95,988.344C2930.95,1087.56 2892.44,1177.85 2829.58,1245.06C2804.67,1171.95 2775.67,1097.93 2747.18,1026.98C2699.54,908.311 2654.38,849.115 2602.9,816.501C2565.59,792.868 2523.88,781.903 2471.8,777.274C2416.47,772.355 2346.53,774.829 2251.58,766.326ZM2662.3,1066.95C2669.46,1084.79 2676.66,1102.83 2683.81,1120.98L2694.51,1148.12L2748.78,1126.72L2738.08,1099.59C2730.88,1081.32 2723.64,1063.18 2716.44,1045.23L2705.58,1018.16L2651.44,1039.88L2662.3,1066.95ZM1713.81,1090.65C1723.08,1073.13 1732.27,1056.54 1741.52,1040.87L1756.33,1015.74L1706.08,986.113L1691.27,1011.24C1681.59,1027.65 1671.95,1045.03 1662.25,1063.39L1648.61,1089.17L1700.18,1116.44L1713.81,1090.65ZM2584.06,922.671C2594.47,934.345 2604.5,948.467 2614.55,965.492L2629.38,990.608L2679.62,960.949L2664.79,935.834C2652.56,915.134 2640.26,898.042 2627.6,883.849L2608.19,862.079L2564.65,900.901L2584.06,922.671ZM1805.33,949.853C1817.51,935.859 1830.16,923.259 1843.5,912.06L1865.85,893.314L1828.36,848.625L1806.01,867.372C1790.4,880.469 1775.59,895.178 1761.34,911.545L1742.18,933.541L1786.17,971.849L1805.33,949.853ZM2446.47,869.303C2466.17,870.516 2483.98,872.335 2500.35,875.649L2528.94,881.438L2540.51,824.265L2511.93,818.476C2493.13,814.67 2472.68,812.474 2450.05,811.08L2420.94,809.287L2417.35,867.51L2446.47,869.303ZM1935.15,861.305C1951.44,856.036 1968.78,851.999 1987.35,849.144L2016.18,844.713L2007.32,787.057L1978.49,791.488C1956.68,794.84 1936.32,799.616 1917.19,805.802L1889.44,814.778L1907.39,870.28L1935.15,861.305ZM2271.35,861.832C2292.28,863.33 2311.95,864.351 2330.47,865.114L2359.61,866.316L2362.01,808.032L2332.87,806.83C2314.9,806.09 2295.82,805.1 2275.51,803.648L2246.42,801.567L2242.26,859.751L2271.35,861.832ZM2097.81,844.858C2115.7,845.771 2134.46,847.337 2154.17,849.543L2183.16,852.787L2189.65,794.816L2160.66,791.572C2139.72,789.228 2119.79,787.57 2100.78,786.6L2071.65,785.114L2068.68,843.372L2097.81,844.858Z"},void 0,!1,{fileName:q0e,lineNumber:7,columnNumber:5},void 0)});var K0e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/NodesIcon.tsx";const X0e=kv({displayName:"NodesIcon",viewBox:"0 0 3543 3543",path:C("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,770.787C3543.31,515.578 3336.11,308.38 3080.9,308.38L462.407,308.38C207.197,308.38 0,515.578 0,770.787L0,2766.03C0,3021.24 207.197,3228.44 462.407,3228.44L3080.9,3228.44C3336.11,3228.44 3543.31,3021.24 3543.31,2766.03C3543.31,2766.03 3543.31,770.787 3543.31,770.787ZM3427.88,770.787L3427.88,2766.03C3427.88,2957.53 3272.4,3113.01 3080.9,3113.01C3080.9,3113.01 462.407,3113.01 462.407,3113.01C270.906,3113.01 115.431,2957.53 115.431,2766.03L115.431,770.787C115.431,579.286 270.906,423.812 462.407,423.812L3080.9,423.812C3272.4,423.812 3427.88,579.286 3427.88,770.787ZM1214.23,1130.69L1321.47,1130.69C1324.01,1130.69 1326.54,1130.53 1329.05,1130.2C1329.05,1130.2 1367.3,1125.33 1397.94,1149.8C1421.63,1168.72 1437.33,1204.3 1437.33,1265.48L1437.33,2078.74L1220.99,2078.74C1146.83,2078.74 1086.61,2138.95 1086.61,2213.12L1086.61,2762.46C1086.61,2836.63 1146.83,2896.84 1220.99,2896.84L1770.34,2896.84C1844.5,2896.84 1904.71,2836.63 1904.71,2762.46L1904.71,2213.12C1904.71,2138.95 1844.5,2078.74 1770.34,2078.74L1554,2078.74L1554,1604.84C1625.84,1658.19 1703.39,1658.1 1703.39,1658.1C1703.54,1658.1 1703.69,1658.11 1703.84,1658.11L2362.2,1658.11L2362.2,1874.44C2362.2,1948.61 2422.42,2008.82 2496.58,2008.82L3045.93,2008.82C3120.09,2008.82 3180.3,1948.61 3180.3,1874.44L3180.3,1325.1C3180.3,1250.93 3120.09,1190.72 3045.93,1190.72L2496.58,1190.72C2422.42,1190.72 2362.2,1250.93 2362.2,1325.1L2362.2,1558.97L2362.2,1541.44L1704.23,1541.44C1702.2,1541.37 1650.96,1539.37 1609.51,1499.26C1577.72,1468.49 1554,1416.47 1554,1331.69L1554,1265.48C1554,1153.86 1513.98,1093.17 1470.76,1058.64C1411.24,1011.1 1338.98,1012.58 1319.15,1014.03L1214.23,1014.03L1214.23,796.992C1214.23,722.828 1154.02,662.617 1079.85,662.617L530.507,662.617C456.343,662.617 396.131,722.828 396.131,796.992L396.131,1346.34C396.131,1420.5 456.343,1480.71 530.507,1480.71L1079.85,1480.71C1154.02,1480.71 1214.23,1420.5 1214.23,1346.34L1214.23,1130.69Z"},void 0,!1,{fileName:K0e,lineNumber:7,columnNumber:5},void 0)});var Q0e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/OutpaintIcon.tsx";const J0e=kv({displayName:"OutpaintIcon",viewBox:"0 0 3543 3543",path:C("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,766.352C3543.31,516.705 3340.63,314.024 3090.98,314.024L452.328,314.024C202.681,314.024 0,516.705 0,766.352L0,2776.95C0,3026.6 202.681,3229.28 452.328,3229.28C452.328,3229.28 3090.98,3229.28 3090.98,3229.28C3340.63,3229.28 3543.31,3026.6 3543.31,2776.95C3543.31,2776.95 3543.31,766.352 3543.31,766.352ZM3454.26,766.352L3454.26,2776.95C3454.26,2977.46 3291.48,3140.24 3090.98,3140.24L452.328,3140.24C251.825,3140.24 89.043,2977.46 89.043,2776.95C89.043,2776.95 89.043,766.352 89.043,766.352C89.043,565.849 251.825,403.067 452.328,403.067C452.328,403.067 3090.98,403.067 3090.98,403.067C3291.48,403.067 3454.26,565.849 3454.26,766.352ZM1294.01,2603.04L1394.01,2603.04L1394.01,2553.04L1294.01,2553.04L1294.01,2603.04ZM2494.01,2603.04L2524.53,2603.04C2541.26,2603.04 2557.62,2601.44 2573.47,2598.39L2598.02,2593.66L2588.56,2544.56L2564.01,2549.29C2551.23,2551.75 2538.03,2553.04 2524.53,2553.04L2494.01,2553.04L2494.01,2603.04ZM2344.01,2603.04L2444.01,2603.04L2444.01,2553.04L2344.01,2553.04L2344.01,2603.04ZM994.01,2603.04L1094.01,2603.04L1094.01,2553.04L994.01,2553.04L994.01,2603.04ZM1144.01,2603.04L1244.01,2603.04L1244.01,2553.04L1144.01,2553.04L1144.01,2603.04ZM2194.01,2603.04L2294.01,2603.04L2294.01,2553.04L2194.01,2553.04L2194.01,2603.04ZM2044.01,2603.04L2144.01,2603.04L2144.01,2553.04L2044.01,2553.04L2044.01,2603.04ZM1894.01,2603.04L1994.01,2603.04L1994.01,2553.04L1894.01,2553.04L1894.01,2603.04ZM1744.01,2603.04L1844.01,2603.04L1844.01,2553.04L1744.01,2553.04L1744.01,2603.04ZM1444.01,2603.04L1544.01,2603.04L1544.01,2553.04L1444.01,2553.04L1444.01,2603.04ZM1594.01,2603.04L1694.01,2603.04L1694.01,2553.04L1594.01,2553.04L1594.01,2603.04ZM864.145,2551.46C878.835,2562.5 894.741,2572 911.624,2579.74L934.352,2590.15L955.18,2544.7L932.452,2534.28C918.844,2528.05 906.024,2520.39 894.185,2511.49L874.199,2496.47L844.16,2536.44L864.145,2551.46ZM2674.44,2554.92C2689.46,2544.16 2703.28,2531.82 2715.65,2518.14L2732.42,2499.61L2695.35,2466.06L2678.58,2484.6C2668.59,2495.63 2657.44,2505.59 2645.32,2514.28L2625,2528.84L2654.12,2569.48L2674.44,2554.92ZM865.632,1911.31L1339.59,1374.15L2030.89,2134.59L2392.97,1713.77L2677.68,2017.9L2677.68,2324.93C2677.68,2424.23 2597.06,2504.85 2497.76,2504.85C2497.76,2504.85 1045.55,2504.85 1045.55,2504.85C946.251,2504.85 865.632,2424.23 865.632,2324.93L865.632,1911.31ZM771.251,2417.22C776.455,2435.14 783.552,2452.26 792.313,2468.35L804.27,2490.3L848.18,2466.39L836.223,2444.43C829.171,2431.49 823.457,2417.7 819.268,2403.28L812.297,2379.27L764.28,2393.21L771.251,2417.22ZM2770.36,2422.83C2775.83,2405.47 2779.52,2387.33 2781.2,2368.61L2783.43,2343.71L2733.64,2339.24L2731.4,2364.14C2730.05,2379.21 2727.08,2393.82 2722.67,2407.79L2715.15,2431.63L2762.84,2446.67L2770.36,2422.83ZM761.068,2236.12L761.068,2336.12L811.068,2336.12L811.068,2236.12L761.068,2236.12ZM2782.24,2291.41L2782.24,2191.41L2732.24,2191.41L2732.24,2291.41L2782.24,2291.41ZM761.068,2086.12L761.068,2186.12L811.068,2186.12L811.068,2086.12L761.068,2086.12ZM2782.24,2141.41L2782.24,2041.4L2732.24,2041.4L2732.24,2141.41L2782.24,2141.41ZM761.068,1936.12L761.068,2036.12L811.068,2036.12L811.068,1936.12L761.068,1936.12ZM2782.24,1991.4L2782.24,1891.4L2732.24,1891.4L2732.24,1991.4L2782.24,1991.4ZM761.068,1786.12L761.068,1886.12L811.068,1886.12L811.068,1786.12L761.068,1786.12ZM2782.24,1841.4L2782.24,1741.41L2732.24,1741.41L2732.24,1841.4L2782.24,1841.4ZM761.068,1636.12L761.068,1736.12L811.068,1736.12L811.068,1636.12L761.068,1636.12ZM2782.24,1691.41L2782.24,1591.41L2732.24,1591.41L2732.24,1691.41L2782.24,1691.41ZM761.068,1486.12L761.068,1586.12L811.068,1586.12L811.068,1486.12L761.068,1486.12ZM2203.72,1132.2C2318.18,1132.2 2411.11,1225.13 2411.11,1339.59C2411.11,1454.05 2318.18,1546.98 2203.72,1546.98C2089.26,1546.98 1996.33,1454.05 1996.33,1339.59C1996.33,1225.13 2089.26,1132.2 2203.72,1132.2ZM2782.24,1541.41L2782.24,1441.41L2732.24,1441.41L2732.24,1541.41L2782.24,1541.41ZM761.068,1336.12L761.068,1436.12L811.068,1436.12L811.068,1336.12L761.068,1336.12ZM2782.24,1391.41L2782.24,1291.41L2732.24,1291.41L2732.24,1391.41L2782.24,1391.41ZM761.068,1186.12L761.068,1286.12L811.068,1286.12L811.068,1186.12L761.068,1186.12ZM2732.24,1197.98L2732.24,1241.41L2782.24,1241.41L2782.24,1172.98L2781.03,1172.98C2780.06,1162.82 2778.49,1152.83 2776.36,1143.04L2771.04,1118.62L2722.18,1129.24L2727.5,1153.67C2730.61,1167.95 2732.24,1182.78 2732.24,1197.98ZM804.386,1055C794.186,1070.26 785.572,1086.67 778.777,1103.99L769.647,1127.26L816.194,1145.52L825.324,1122.25C830.797,1108.3 837.738,1095.08 845.955,1082.79L859.848,1062L818.279,1034.21L804.386,1055ZM2730.5,1043.14C2719.39,1028.39 2706.73,1014.86 2692.77,1002.81L2673.84,986.48L2641.17,1024.34L2660.1,1040.67C2671.37,1050.39 2681.59,1061.31 2690.56,1073.22L2705.6,1093.19L2745.54,1063.11L2730.5,1043.14ZM933.266,954.821C915.698,961.006 898.998,969.041 883.402,978.694L862.144,991.851L888.457,1034.37L909.715,1021.21C922.275,1013.44 935.723,1006.96 949.871,1001.98L973.452,993.681L956.848,946.518L933.266,954.821ZM2596.18,950.378C2578.71,945.327 2560.49,942.072 2541.72,940.832L2516.78,939.183L2513.48,989.074L2538.43,990.723C2553.54,991.722 2568.22,994.341 2582.28,998.409L2606.3,1005.36L2620.19,957.325L2596.18,950.378ZM2165.09,940.265L2065.09,940.265L2065.09,990.265L2165.09,990.265L2165.09,940.265ZM2015.09,940.265L1915.09,940.265L1915.09,990.265L2015.09,990.265L2015.09,940.265ZM1115.08,940.265L1015.08,940.265L1015.08,990.265L1115.08,990.265L1115.08,940.265ZM1865.08,940.265L1765.08,940.265L1765.08,990.265L1865.08,990.265L1865.08,940.265ZM1265.08,940.265L1165.08,940.265L1165.08,990.265L1265.08,990.265L1265.08,940.265ZM1415.08,940.265L1315.08,940.265L1315.08,990.265L1415.08,990.265L1415.08,940.265ZM1565.08,940.265L1465.08,940.265L1465.08,990.265L1565.08,990.265L1565.08,940.265ZM1715.08,940.265L1615.08,940.265L1615.08,990.265L1715.08,990.265L1715.08,940.265ZM2465.09,940.265L2365.09,940.265L2365.09,990.265L2465.09,990.265L2465.09,940.265ZM2315.09,940.265L2215.09,940.265L2215.09,990.265L2315.09,990.265L2315.09,940.265Z"},void 0,!1,{fileName:Q0e,lineNumber:7,columnNumber:5},void 0)});var e1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/PostprocessingIcon.tsx";const t1e=kv({displayName:"PostprocessingIcon",viewBox:"0 0 3543 3543",path:C("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M709.477,1596.53L992.591,1275.66L2239.09,2646.81L2891.95,1888.03L3427.88,2460.51L3427.88,994.78C3427.88,954.66 3421.05,916.122 3408.5,880.254L3521.9,855.419C3535.8,899.386 3543.31,946.214 3543.31,994.78L3543.31,2990.02C3543.31,3245.23 3336.11,3452.43 3080.9,3452.43C3080.9,3452.43 462.407,3452.43 462.407,3452.43C207.197,3452.43 -0,3245.23 -0,2990.02L-0,994.78C-0,739.571 207.197,532.373 462.407,532.373L505.419,532.373L504.644,532.546L807.104,600.085C820.223,601.729 832.422,607.722 841.77,617.116C850.131,625.517 855.784,636.21 858.055,647.804L462.407,647.804C270.906,647.804 115.431,803.279 115.431,994.78L115.431,2075.73L-0,2101.5L115.431,2127.28L115.431,2269.78L220.47,2150.73L482.345,2209.21C503.267,2211.83 522.722,2221.39 537.63,2236.37C552.538,2251.35 562.049,2270.9 564.657,2291.93L671.84,2776.17L779.022,2291.93C781.631,2270.9 791.141,2251.35 806.05,2236.37C820.958,2221.39 840.413,2211.83 861.334,2209.21L1353.15,2101.5L861.334,1993.8C840.413,1991.18 820.958,1981.62 806.05,1966.64C791.141,1951.66 781.631,1932.11 779.022,1911.08L709.477,1596.53ZM671.84,1573.09L725.556,2006.07C726.863,2016.61 731.63,2026.4 739.101,2033.91C746.573,2041.42 756.323,2046.21 766.808,2047.53L1197.68,2101.5L766.808,2155.48C756.323,2156.8 746.573,2161.59 739.101,2169.09C731.63,2176.6 726.863,2186.4 725.556,2196.94L671.84,2629.92L618.124,2196.94C616.817,2186.4 612.05,2176.6 604.579,2169.09C597.107,2161.59 587.357,2156.8 576.872,2155.48L146.001,2101.5L576.872,2047.53C587.357,2046.21 597.107,2041.42 604.579,2033.91C612.05,2026.4 616.817,2016.61 618.124,2006.07L671.84,1573.09ZM609.035,1710.36L564.657,1911.08C562.049,1932.11 552.538,1951.66 537.63,1966.64C522.722,1981.62 503.267,1991.18 482.345,1993.8L328.665,2028.11L609.035,1710.36ZM2297.12,938.615L2451.12,973.003C2480.59,976.695 2507.99,990.158 2528.99,1011.26C2549.99,1032.37 2563.39,1059.9 2567.07,1089.52L2672.73,1566.9C2634.5,1580.11 2593.44,1587.29 2550.72,1587.29C2344.33,1587.29 2176.77,1419.73 2176.77,1213.34C2176.77,1104.78 2223.13,1006.96 2297.12,938.615ZM2718.05,76.925L2793.72,686.847C2795.56,701.69 2802.27,715.491 2812.8,726.068C2823.32,736.644 2837.06,743.391 2851.83,745.242L3458.78,821.28L2851.83,897.318C2837.06,899.168 2823.32,905.916 2812.8,916.492C2802.27,927.068 2795.56,940.87 2793.72,955.712L2718.05,1565.63L2642.38,955.712C2640.54,940.87 2633.83,927.068 2623.3,916.492C2612.78,905.916 2599.04,899.168 2584.27,897.318L1977.32,821.28L2584.27,745.242C2599.04,743.391 2612.78,736.644 2623.3,726.068C2633.83,715.491 2640.54,701.69 2642.38,686.847L2718.05,76.925ZM2883.68,1043.06C2909.88,1094.13 2924.67,1152.02 2924.67,1213.34C2924.67,1335.4 2866.06,1443.88 2775.49,1512.14L2869.03,1089.52C2871.07,1073.15 2876.07,1057.42 2883.68,1043.06ZM925.928,201.2L959.611,472.704C960.431,479.311 963.42,485.455 968.105,490.163C972.79,494.871 978.904,497.875 985.479,498.698L1255.66,532.546L985.479,566.395C978.904,567.218 972.79,570.222 968.105,574.93C963.42,579.638 960.431,585.781 959.611,592.388L925.928,863.893L892.245,592.388C891.425,585.781 888.436,579.638 883.751,574.93C879.066,570.222 872.952,567.218 866.378,566.395L596.195,532.546L866.378,498.698C872.952,497.875 879.066,494.871 883.751,490.163C888.436,485.455 891.425,479.311 892.245,472.704L925.928,201.2ZM2864.47,532.373L3080.9,532.373C3258.7,532.373 3413.2,632.945 3490.58,780.281L3319.31,742.773C3257.14,683.925 3173.2,647.804 3080.9,647.804L2927.07,647.804C2919.95,642.994 2913.25,637.473 2907.11,631.298C2886.11,610.194 2872.71,582.655 2869.03,553.04L2864.47,532.373ZM1352.36,532.373L2571.64,532.373L2567.07,553.04C2563.39,582.655 2549.99,610.194 2528.99,631.298C2522.85,637.473 2516.16,642.994 2509.03,647.804L993.801,647.804C996.072,636.21 1001.73,625.517 1010.09,617.116C1019.43,607.722 1031.63,601.729 1044.75,600.085L1353.15,532.546L1352.36,532.373Z"},void 0,!1,{fileName:e1e,lineNumber:7,columnNumber:5},void 0)});var jM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/TextToImageIcon.tsx";const n1e=kv({displayName:"TextToImageIcon",viewBox:"0 0 3543 3543",path:C("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",transform:"matrix(1.11667,0,0,1.1066,-231.131,-213.062)",children:C("path",{d:"M2209.59,1137.35L2209.59,1098.17C2177.13,1108.99 2125.74,1121.91 2055.41,1136.94C2054.77,1137.08 2054.14,1137.21 2053.49,1137.35L1662.79,1137.35C1687.75,1101.98 1720.8,1074.35 1761.93,1054.44C1808.52,1031.9 1875.69,1012.22 1963.45,995.386C2081.86,973.146 2163.91,952.409 2209.59,933.174L2209.59,907.929C2209.59,859.241 2197.57,824.529 2173.53,803.792C2149.48,783.054 2104.1,772.686 2037.38,772.686C1992.3,772.686 1957.14,781.552 1931.89,799.284C1906.64,817.015 1886.21,848.121 1870.58,892.601L1640.67,851.127C1666.51,758.56 1710.99,690.037 1774.11,645.557C1837.22,601.077 1930.99,578.837 2055.41,578.837C2168.42,578.837 2252.57,592.211 2307.87,618.959C2363.17,645.707 2402.09,679.668 2424.63,720.842C2447.17,762.016 2458.44,837.602 2458.44,947.6L2456.7,1137.35L3021.34,1137.35C3214.79,1137.35 3371.86,1294.41 3371.86,1487.87C3371.86,1487.87 3371.86,3000.32 3371.86,3000.32C3371.86,3193.78 3214.79,3350.84 3021.34,3350.84C3021.34,3350.84 1036.45,3350.84 1036.45,3350.84C842.991,3350.84 685.93,3193.78 685.93,3000.32L685.93,1487.87C685.93,1400.21 718.174,1320.03 771.448,1258.54L772.123,1257.76L607.408,1257.76L498.311,1558L215.202,1558L730.028,236.22L1012.24,236.22L1373.06,1137.35L2209.59,1137.35ZM3284.36,2598.93L3284.36,1487.87C3284.36,1342.71 3166.5,1224.85 3021.34,1224.85C3021.34,1224.85 1036.45,1224.85 1036.45,1224.85C891.284,1224.85 773.43,1342.71 773.43,1487.87L773.43,2454.35L1438.34,1700.79L2383.22,2740.16L2878.11,2164.98L3284.36,2598.93ZM2619.44,1370.08C2775.89,1370.08 2902.91,1497.1 2902.91,1653.54C2902.91,1809.99 2775.89,1937.01 2619.44,1937.01C2462.99,1937.01 2335.98,1809.99 2335.98,1653.54C2335.98,1497.1 2462.99,1370.08 2619.44,1370.08ZM772.877,1256.89L772.849,1256.93L773.167,1256.57L772.877,1256.89ZM773.634,1256.04L773.563,1256.12L773.985,1255.64L773.634,1256.04ZM774.394,1255.18L774.276,1255.31L774.746,1254.78L774.394,1255.18ZM775.157,1254.32L774.988,1254.51L775.493,1253.95L775.157,1254.32ZM775.923,1253.47L775.698,1253.72L776.237,1253.12L775.923,1253.47ZM776.691,1252.62L776.403,1252.94L776.979,1252.3L776.691,1252.62ZM777.462,1251.77L777.098,1252.17L777.723,1251.49L777.462,1251.77ZM925.081,1155.44C868.026,1174.57 817.508,1207.99 777.775,1251.43C817.511,1207.99 868.031,1174.57 925.081,1155.44ZM925.646,1155.25L925.108,1155.43L926.103,1155.1L925.646,1155.25ZM935.286,1152.2C932.214,1153.12 929.159,1154.09 926.13,1155.09C929.165,1154.09 932.219,1153.12 935.286,1152.2ZM935.716,1152.07L935.384,1152.17L936.292,1151.89L935.716,1152.07ZM936.843,1151.73L936.451,1151.85L937.327,1151.59L936.843,1151.73ZM937.972,1151.4L937.514,1151.53L938.377,1151.28L937.972,1151.4ZM939.102,1151.07L938.57,1151.22L939.438,1150.97L939.102,1151.07ZM940.233,1150.74L939.613,1150.92L940.505,1150.67L940.233,1150.74ZM946.659,1148.98C944.639,1149.51 942.626,1150.07 940.626,1150.63C942.631,1150.06 944.642,1149.51 946.659,1148.98ZM947.056,1148.87L946.829,1148.93L947.659,1148.71L947.056,1148.87ZM948.198,1148.57L947.919,1148.65L948.705,1148.44L948.198,1148.57ZM949.342,1148.28L949.008,1148.37L949.771,1148.17L949.342,1148.28ZM950.488,1147.99L950.096,1148.09L950.848,1147.9L950.488,1147.99ZM951.635,1147.7L951.182,1147.81L951.932,1147.63L951.635,1147.7ZM952.783,1147.42L952.262,1147.55L953.022,1147.36L952.783,1147.42ZM953.933,1147.14L953.327,1147.28L954.115,1147.09L953.933,1147.14ZM958.213,1146.13C956.927,1146.42 955.644,1146.73 954.354,1147.04C955.637,1146.73 956.923,1146.43 958.213,1146.13ZM958.547,1146.06L958.409,1146.09L959.174,1145.91L958.547,1146.06ZM959.704,1145.79L959.517,1145.84L960.229,1145.68L959.704,1145.79ZM960.863,1145.54L960.626,1145.59L961.311,1145.44L960.863,1145.54ZM962.023,1145.28L961.736,1145.35L962.406,1145.2L962.023,1145.28ZM963.184,1145.03L962.846,1145.11L963.508,1144.97L963.184,1145.03ZM964.347,1144.79L963.956,1144.87L964.615,1144.73L964.347,1144.79ZM965.511,1144.55L965.066,1144.64L965.725,1144.5L965.511,1144.55ZM966.677,1144.31L966.172,1144.41L966.838,1144.28L966.677,1144.31ZM967.844,1144.08L967.269,1144.19L967.953,1144.05L967.844,1144.08ZM970.183,1143.62C969.793,1143.69 969.403,1143.77 969.013,1143.85L969.055,1143.84C969.413,1143.77 969.771,1143.7 970.129,1143.63L970.183,1143.62ZM971.354,1143.4L971.245,1143.42L971.882,1143.3L971.354,1143.4ZM972.526,1143.18L972.37,1143.21L972.987,1143.09L972.526,1143.18ZM973.7,1142.96L973.496,1143L974.103,1142.89L973.7,1142.96ZM974.876,1142.75L974.624,1142.8L975.225,1142.69L974.876,1142.75ZM976.052,1142.55L975.754,1142.6L976.349,1142.49L976.052,1142.55ZM977.23,1142.34L976.885,1142.4L977.476,1142.3L977.23,1142.34ZM978.41,1142.14L978.019,1142.21L978.605,1142.11L978.41,1142.14ZM979.59,1141.95L979.156,1142.02L979.736,1141.92L979.59,1141.95ZM980.772,1141.76L980.299,1141.83L980.868,1141.74L980.772,1141.76ZM981.955,1141.57L981.464,1141.65L982.002,1141.56L981.955,1141.57ZM983.14,1141.39L983.1,1141.39L983.605,1141.32L983.14,1141.39ZM984.326,1141.21L984.239,1141.22L984.778,1141.14L984.326,1141.21ZM985.513,1141.03L985.379,1141.05L985.928,1140.97L985.513,1141.03ZM986.702,1140.86L986.521,1140.89L987.073,1140.81L986.702,1140.86ZM987.891,1140.69L987.665,1140.73L988.218,1140.65L987.891,1140.69ZM989.082,1140.53L988.811,1140.57L989.363,1140.49L989.082,1140.53ZM990.275,1140.37L989.96,1140.41L990.508,1140.34L990.275,1140.37ZM991.468,1140.22L991.113,1140.26L991.654,1140.19L991.468,1140.22ZM992.663,1140.07L992.273,1140.12L992.8,1140.05L992.663,1140.07ZM993.859,1139.92L993.447,1139.97L993.948,1139.91L993.859,1139.92ZM995.056,1139.78L994.671,1139.82L995.097,1139.77L995.056,1139.78ZM996.255,1139.64L996.23,1139.64L996.578,1139.6L996.255,1139.64ZM997.454,1139.5L997.383,1139.51L997.852,1139.46L997.454,1139.5ZM998.655,1139.37L998.537,1139.38L999.041,1139.33L998.655,1139.37ZM999.857,1139.24L999.693,1139.26L1000.21,1139.21L999.857,1139.24ZM1001.06,1139.12L1000.85,1139.14L1001.38,1139.09L1001.06,1139.12ZM1002.26,1139L1002.01,1139.03L1002.54,1138.98L1002.26,1139ZM1003.47,1138.89L1003.18,1138.91L1003.7,1138.87L1003.47,1138.89ZM1004.68,1138.78L1004.34,1138.81L1004.86,1138.76L1004.68,1138.78ZM1005.89,1138.67L1005.52,1138.7L1006.02,1138.66L1005.89,1138.67ZM1007.1,1138.57L1006.71,1138.6L1007.18,1138.56L1007.1,1138.57ZM1008.31,1138.47L1007.96,1138.5L1008.35,1138.46L1008.31,1138.47ZM1009.52,1138.37L1009.5,1138.38L1009.72,1138.36L1009.52,1138.37ZM1010.73,1138.28L1010.67,1138.29L1011.1,1138.26L1010.73,1138.28ZM1011.94,1138.2L1011.84,1138.2L1012.32,1138.17L1011.94,1138.2ZM1013.16,1138.12L1013,1138.13L1013.51,1138.09L1013.16,1138.12ZM1014.37,1138.04L1014.17,1138.05L1014.69,1138.02L1014.37,1138.04ZM1015.59,1137.96L1015.35,1137.98L1015.86,1137.95L1015.59,1137.96ZM1016.81,1137.89L1016.52,1137.91L1017.04,1137.88L1016.81,1137.89ZM1018.03,1137.83L1017.7,1137.85L1018.21,1137.82L1018.03,1137.83ZM1019.25,1137.77L1018.89,1137.79L1019.39,1137.76L1019.25,1137.77ZM1020.47,1137.71L1020.1,1137.73L1020.56,1137.71L1020.47,1137.71ZM1021.69,1137.66L1021.36,1137.67L1021.74,1137.66L1021.69,1137.66ZM1022.92,1137.61L1022.91,1137.61L1023.02,1137.61L1022.92,1137.61ZM1024.14,1137.57L1024.09,1137.57L1024.49,1137.55L1024.14,1137.57ZM1025.37,1137.52L1025.27,1137.53L1025.74,1137.51L1025.37,1137.52ZM1026.6,1137.49L1026.45,1137.49L1026.94,1137.48L1026.6,1137.49ZM1027.82,1137.46L1027.63,1137.46L1028.14,1137.45L1027.82,1137.46ZM1029.05,1137.43L1028.81,1137.43L1029.33,1137.42L1029.05,1137.43ZM1030.28,1137.41L1030,1137.41L1030.52,1137.4L1030.28,1137.41ZM1031.51,1137.39L1031.19,1137.39L1031.7,1137.38L1031.51,1137.39ZM1032.75,1137.37L1032.39,1137.38L1032.89,1137.37L1032.75,1137.37ZM1033.98,1137.36L1033.61,1137.36L1034.07,1137.36L1033.98,1137.36ZM1035.21,1137.35L1034.87,1137.36L1035.26,1137.35L1035.21,1137.35ZM1050.1,1035.06L867.977,544.575L689.455,1035.06L1050.1,1035.06Z"},void 0,!1,{fileName:jM,lineNumber:13,columnNumber:7},void 0)},void 0,!1,{fileName:jM,lineNumber:7,columnNumber:5},void 0)});var zl=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OTHER=2]="OTHER",e[e.SEED=3]="SEED",e[e.VARIATIONS=4]="VARIATIONS",e[e.UPSCALE=5]="UPSCALE",e[e.FACE_CORRECTION=6]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=7]="IMAGE_TO_IMAGE",e))(zl||{});const r1e={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[5]:{text:"Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[6]:{text:"Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}};var l4="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAISwitch.tsx";const pm=e=>{const{label:t,isDisabled:n=!1,fontSize:i="md",size:o="md",width:u="auto",...c}=e;return C(fd,{isDisabled:n,width:u,children:C(Sr,{justifyContent:"space-between",alignItems:"center",children:[t&&C(sm,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:l4,lineNumber:30,columnNumber:11},void 0),C(s3,{size:o,className:"switch-button",...c},void 0,!1,{fileName:l4,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:l4,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:l4,lineNumber:27,columnNumber:5},void 0)};var P6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestore.tsx";function OU(){const e=gt(o=>o.system.isGFPGANAvailable),t=gt(o=>o.options.shouldRunFacetool),n=Sn();return C(Sr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[C("p",{children:"Restore Face"},void 0,!1,{fileName:P6,lineNumber:32,columnNumber:7},this),C(pm,{isDisabled:!e,isChecked:t,onChange:o=>n(Qhe(o.target.checked))},void 0,!1,{fileName:P6,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:P6,lineNumber:26,columnNumber:5},this)}var Ip="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAINumberInput.tsx";const VM=/^-?(0\.)?\.?$/,Vl=e=>{const{label:t,styleClass:n,isDisabled:i=!1,showStepper:o=!0,fontSize:u="1rem",size:c="sm",width:p,textAlign:h,isInvalid:v,value:b,onChange:x,min:N,max:_,isInteger:T=!0,...A}=e,[M,z]=k.exports.useState(String(b));k.exports.useEffect(()=>{!M.match(VM)&&b!==Number(M)&&z(String(b))},[b,M]);const P=F=>{z(F),F.match(VM)||x(T?Math.floor(Number(F)):Number(F))},I=F=>{const $=tb.clamp(T?Math.floor(Number(F.target.value)):Number(F.target.value),N,_);z(String($)),x($)};return C(fd,{isDisabled:i,isInvalid:v,className:`number-input ${n}`,children:[t&&C(sm,{fontSize:u,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"number-input-label",children:t},void 0,!1,{fileName:Ip,lineNumber:103,columnNumber:9},void 0),C(Rz,{size:c,...A,className:"number-input-field",value:M,keepWithinRange:!0,clampValueOnBlur:!1,onChange:P,onBlur:I,children:[C(Az,{fontSize:u,className:"number-input-entry",width:p,textAlign:h},void 0,!1,{fileName:Ip,lineNumber:123,columnNumber:9},void 0),C("div",{className:"number-input-stepper",style:o?{display:"block"}:{display:"none"},children:[C(Oz,{className:"number-input-stepper-button"},void 0,!1,{fileName:Ip,lineNumber:133,columnNumber:11},void 0),C(Lz,{className:"number-input-stepper-button"},void 0,!1,{fileName:Ip,lineNumber:134,columnNumber:11},void 0)]},void 0,!0,{fileName:Ip,lineNumber:129,columnNumber:9},void 0)]},void 0,!0,{fileName:Ip,lineNumber:113,columnNumber:7},void 0)]},void 0,!0,{fileName:Ip,lineNumber:97,columnNumber:5},void 0)};var og="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAISelect.tsx";const Rb=e=>{const{label:t,isDisabled:n,validValues:i,size:o="sm",fontSize:u="md",styleClass:c,...p}=e;return C(fd,{isDisabled:n,className:`iai-select ${c}`,children:[C(sm,{fontSize:u,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"iai-select-label",children:t},void 0,!1,{fileName:og,lineNumber:25,columnNumber:7},void 0),C(Iz,{fontSize:u,size:o,...p,className:"iai-select-picker",children:i.map(h=>typeof h=="string"||typeof h=="number"?C("option",{value:h,className:"iai-select-option",children:h},h,!1,{fileName:og,lineNumber:42,columnNumber:13},void 0):C("option",{value:h.value,children:h.key},h.value,!1,{fileName:og,lineNumber:46,columnNumber:13},void 0))},void 0,!1,{fileName:og,lineNumber:34,columnNumber:7},void 0)]},void 0,!0,{fileName:og,lineNumber:24,columnNumber:5},void 0)};var u4="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestoreOptions.tsx";const i1e=Ga(e=>e.options,e=>({facetoolStrength:e.facetoolStrength,facetoolType:e.facetoolType,codeformerFidelity:e.codeformerFidelity}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),a1e=Ga(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),DE=()=>{const e=Sn(),{facetoolStrength:t,facetoolType:n,codeformerFidelity:i}=gt(i1e),{isGFPGANAvailable:o}=gt(a1e),u=h=>e(L4(h)),c=h=>e(eU(h)),p=h=>e(O4(h.target.value));return C(Sr,{direction:"column",gap:2,children:[C(Rb,{label:"Type",validValues:k0e.concat(),value:n,onChange:p},void 0,!1,{fileName:u4,lineNumber:71,columnNumber:7},void 0),C(Vl,{isDisabled:!o,label:"Strength",step:.05,min:0,max:1,onChange:u,value:t,width:"90px",isInteger:!1},void 0,!1,{fileName:u4,lineNumber:77,columnNumber:7},void 0),n==="codeformer"&&C(Vl,{isDisabled:!o,label:"Fidelity",step:.05,min:0,max:1,onChange:c,value:i,width:"90px",isInteger:!1},void 0,!1,{fileName:u4,lineNumber:89,columnNumber:9},void 0)]},void 0,!0,{fileName:u4,lineNumber:70,columnNumber:5},void 0)};var o1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageFit.tsx";function s1e(){const e=Sn(),t=gt(i=>i.options.shouldFitToWidthHeight);return C(pm,{label:"Fit Initial Image To Output Size",isChecked:t,onChange:i=>e(tU(i.target.checked))},void 0,!1,{fileName:o1e,lineNumber:21,columnNumber:5},this)}var l1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageToImageStrength.tsx";function u1e(e){const{label:t="Strength",styleClass:n}=e,i=gt(c=>c.options.img2imgStrength),o=Sn();return C(Vl,{label:t,step:.01,min:.01,max:.99,onChange:c=>o(JB(c)),value:i,width:"90px",isInteger:!1,styleClass:n},void 0,!1,{fileName:l1e,lineNumber:26,columnNumber:5},this)}var c1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/RandomizeSeed.tsx";function f1e(){const e=Sn(),t=gt(i=>i.options.shouldRandomizeSeed);return C(pm,{label:"Randomize Seed",isChecked:t,onChange:i=>e(eve(i.target.checked))},void 0,!1,{fileName:c1e,lineNumber:22,columnNumber:5},this)}var d1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Seed.tsx";function p1e(){const e=gt(u=>u.options.seed),t=gt(u=>u.options.shouldRandomizeSeed),n=gt(u=>u.options.shouldGenerateVariations),i=Sn(),o=u=>i(Tb(u));return C(Vl,{label:"Seed",step:1,precision:0,flexGrow:1,min:LE,max:OE,isDisabled:t,isInvalid:e<0&&n,onChange:o,value:e,width:"10rem"},void 0,!1,{fileName:d1e,lineNumber:25,columnNumber:5},this)}var HM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/ShuffleSeed.tsx";function m1e(){const e=Sn(),t=gt(i=>i.options.shouldRandomizeSeed);return C(Du,{size:"sm",isDisabled:t,onClick:()=>e(Tb(_U(LE,OE))),children:C("p",{children:"Shuffle"},void 0,!1,{fileName:HM,lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:HM,lineNumber:22,columnNumber:5},this)}var h1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Threshold.tsx";function v1e(){const e=Sn(),t=gt(i=>i.options.threshold);return C(Vl,{label:"Threshold",min:0,max:1e3,step:.1,onChange:i=>e(qhe(i)),value:t,isInteger:!1},void 0,!1,{fileName:h1e,lineNumber:19,columnNumber:5},this)}var g1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Perlin.tsx";function b1e(){const e=Sn(),t=gt(i=>i.options.perlin);return C(Vl,{label:"Perlin Noise",min:0,max:1,step:.05,onChange:i=>e(Zhe(i)),value:t,isInteger:!1},void 0,!1,{fileName:g1e,lineNumber:17,columnNumber:5},this)}var Ec="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/SeedOptions.tsx";const MU=()=>C(Sr,{gap:2,direction:"column",children:[C(f1e,{},void 0,!1,{fileName:Ec,lineNumber:14,columnNumber:7},void 0),C(Sr,{gap:2,children:[C(p1e,{},void 0,!1,{fileName:Ec,lineNumber:16,columnNumber:9},void 0),C(m1e,{},void 0,!1,{fileName:Ec,lineNumber:17,columnNumber:9},void 0)]},void 0,!0,{fileName:Ec,lineNumber:15,columnNumber:7},void 0),C(Sr,{gap:2,children:C(v1e,{},void 0,!1,{fileName:Ec,lineNumber:20,columnNumber:9},void 0)},void 0,!1,{fileName:Ec,lineNumber:19,columnNumber:7},void 0),C(Sr,{gap:2,children:C(b1e,{},void 0,!1,{fileName:Ec,lineNumber:23,columnNumber:9},void 0)},void 0,!1,{fileName:Ec,lineNumber:22,columnNumber:7},void 0)]},void 0,!0,{fileName:Ec,lineNumber:13,columnNumber:5},void 0);var I6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/Upscale.tsx";function DU(){const e=gt(o=>o.system.isESRGANAvailable),t=gt(o=>o.options.shouldRunESRGAN),n=Sn();return C(Sr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[C("p",{children:"Upscale"},void 0,!1,{fileName:I6,lineNumber:30,columnNumber:7},this),C(pm,{isDisabled:!e,isChecked:t,onChange:o=>n(Jhe(o.target.checked))},void 0,!1,{fileName:I6,lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:I6,lineNumber:24,columnNumber:5},this)}var F6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/UpscaleOptions.tsx";const y1e=Ga(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),S1e=Ga(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),PE=()=>{const e=Sn(),{upscalingLevel:t,upscalingStrength:n}=gt(y1e),{isESRGANAvailable:i}=gt(S1e);return C("div",{className:"upscale-options",children:[C(Rb,{isDisabled:!i,label:"Scale",value:t,onChange:c=>e(y8(Number(c.target.value))),validValues:A0e},void 0,!1,{fileName:F6,lineNumber:64,columnNumber:7},void 0),C(Vl,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:c=>e(S8(c)),value:n,isInteger:!1},void 0,!1,{fileName:F6,lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:F6,lineNumber:63,columnNumber:5},void 0)};var x1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/GenerateVariations.tsx";function C1e(){const e=gt(i=>i.options.shouldGenerateVariations),t=Sn();return C(pm,{isChecked:e,width:"auto",onChange:i=>t(Khe(i.target.checked))},void 0,!1,{fileName:x1e,lineNumber:22,columnNumber:5},this)}var z6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/Variations.tsx";function PU(){return C(Sr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[C("p",{children:"Variations"},void 0,!1,{fileName:z6,lineNumber:13,columnNumber:7},this),C(C1e,{},void 0,!1,{fileName:z6,lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:z6,lineNumber:7,columnNumber:5},this)}var B6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIInput.tsx";function N1e(e){const{label:t,styleClass:n,isDisabled:i=!1,fontSize:o="1rem",width:u,isInvalid:c,...p}=e;return C(fd,{className:`input ${n}`,isInvalid:c,isDisabled:i,flexGrow:1,children:[C(sm,{fontSize:o,marginBottom:1,whiteSpace:"nowrap",className:"input-label",children:t},void 0,!1,{fileName:B6,lineNumber:30,columnNumber:7},this),C(M_,{...p,className:"input-entry",size:"sm",width:u},void 0,!1,{fileName:B6,lineNumber:38,columnNumber:7},this)]},void 0,!0,{fileName:B6,lineNumber:24,columnNumber:5},this)}var w1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/SeedWeights.tsx";function _1e(){const e=gt(o=>o.options.seedWeights),t=gt(o=>o.options.shouldGenerateVariations),n=Sn(),i=o=>n(nU(o.target.value));return C(N1e,{label:"Seed Weights",value:e,isInvalid:t&&!(RE(e)||e===""),isDisabled:!t,onChange:i},void 0,!1,{fileName:w1e,lineNumber:26,columnNumber:5},this)}var E1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationAmount.tsx";function T1e(){const e=gt(o=>o.options.variationAmount),t=gt(o=>o.options.shouldGenerateVariations),n=Sn();return C(Vl,{label:"Variation Amount",value:e,step:.01,min:0,max:1,isDisabled:!t,onChange:o=>n(Xhe(o)),isInteger:!1},void 0,!1,{fileName:E1e,lineNumber:24,columnNumber:5},this)}var U6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationsOptions.tsx";const IU=()=>C(Sr,{gap:2,direction:"column",children:[C(T1e,{},void 0,!1,{fileName:U6,lineNumber:11,columnNumber:7},void 0),C(_1e,{},void 0,!1,{fileName:U6,lineNumber:12,columnNumber:7},void 0)]},void 0,!0,{fileName:U6,lineNumber:10,columnNumber:5},void 0);var $6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainAdvancedOptions.tsx";function FU(){const e=gt(i=>i.options.showAdvancedOptions),t=Sn();return C("div",{className:"advanced_options_checker",children:[C("input",{type:"checkbox",name:"advanced_options",id:"",onChange:i=>t(tve(i.target.checked)),checked:e},void 0,!1,{fileName:$6,lineNumber:16,columnNumber:7},this),C("label",{htmlFor:"advanced_options",children:"Advanced Options"},void 0,!1,{fileName:$6,lineNumber:23,columnNumber:7},this)]},void 0,!0,{fileName:$6,lineNumber:15,columnNumber:5},this)}var R1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainCFGScale.tsx";function A1e(){const e=Sn(),t=gt(i=>i.options.cfgScale);return C(Vl,{label:"CFG Scale",step:.5,min:1,max:200,onChange:i=>e(YB(i)),value:t,width:IE,fontSize:Bv,styleClass:"main-option-block",textAlign:"center",isInteger:!1},void 0,!1,{fileName:R1e,lineNumber:14,columnNumber:5},this)}var k1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainHeight.tsx";function L1e(){const e=gt(i=>i.options.height),t=Sn();return C(Rb,{label:"Height",value:e,flexGrow:1,onChange:i=>t(qB(Number(i.target.value))),validValues:R0e,fontSize:Bv,styleClass:"main-option-block"},void 0,!1,{fileName:k1e,lineNumber:16,columnNumber:5},this)}var O1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainIterations.tsx";function M1e(){const e=Sn(),t=gt(i=>i.options.iterations);return C(Vl,{label:"Images",step:1,min:1,max:9999,onChange:i=>e(Yhe(i)),value:t,width:IE,fontSize:Bv,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:O1e,lineNumber:16,columnNumber:5},this)}var D1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainSampler.tsx";function P1e(){const e=gt(i=>i.options.sampler),t=Sn();return C(Rb,{label:"Sampler",value:e,onChange:i=>t(KB(i.target.value)),validValues:E0e,fontSize:Bv,styleClass:"main-option-block"},void 0,!1,{fileName:D1e,lineNumber:16,columnNumber:5},this)}var I1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainSteps.tsx";function F1e(){const e=Sn(),t=gt(i=>i.options.steps);return C(Vl,{label:"Steps",min:1,max:9999,step:1,onChange:i=>e(GB(i)),value:t,width:IE,fontSize:Bv,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:I1e,lineNumber:14,columnNumber:5},this)}var z1e="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainWidth.tsx";function B1e(){const e=gt(i=>i.options.width),t=Sn();return C(Rb,{label:"Width",value:e,flexGrow:1,onChange:i=>t(ZB(Number(i.target.value))),validValues:T0e,fontSize:Bv,styleClass:"main-option-block"},void 0,!1,{fileName:z1e,lineNumber:16,columnNumber:5},this)}var gu="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainOptions.tsx";const Bv="0.9rem",IE="auto";function zU(){return C("div",{className:"main-options",children:C("div",{className:"main-options-list",children:[C("div",{className:"main-options-row",children:[C(M1e,{},void 0,!1,{fileName:gu,lineNumber:16,columnNumber:11},this),C(F1e,{},void 0,!1,{fileName:gu,lineNumber:17,columnNumber:11},this),C(A1e,{},void 0,!1,{fileName:gu,lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:gu,lineNumber:15,columnNumber:9},this),C("div",{className:"main-options-row",children:[C(B1e,{},void 0,!1,{fileName:gu,lineNumber:21,columnNumber:11},this),C(L1e,{},void 0,!1,{fileName:gu,lineNumber:22,columnNumber:11},this),C(P1e,{},void 0,!1,{fileName:gu,lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:gu,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:gu,lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:gu,lineNumber:13,columnNumber:5},this)}var BU={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},WM=Ae.createContext&&Ae.createContext(BU),F4="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",nd=globalThis&&globalThis.__assign||function(){return nd=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nd.apply(this,arguments)},U1e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};function UU(e){return e&&e.map(function(t,n){return Ae.createElement(t.tag,nd({key:n},t.attr),UU(t.child))})}function hr(e){return function(t){return C($1e,{...nd({attr:nd({},e.attr)},t),children:UU(e.child)},void 0,!1,{fileName:F4,lineNumber:39,columnNumber:12},this)}}function $1e(e){var t=function(n){var i=e.attr,o=e.size,u=e.title,c=U1e(e,["attr","size","title"]),p=o||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),C("svg",{...nd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,c,{className:h,style:nd(nd({color:e.color||n.color},n.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),children:[u&&C("title",{children:u},void 0,!1,{fileName:F4,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:F4,lineNumber:55,columnNumber:12},this)};return WM!==void 0?C(WM.Consumer,{children:function(n){return t(n)}},void 0,!1,{fileName:F4,lineNumber:70,columnNumber:38},this):t(BU)}function j1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function V1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11.75a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zm6 0a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37a9.974 9.974 0 0010.41 3.97c.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"}}]})(e)}function $U(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function H1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}}]})(e)}function W1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function G1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"}}]})(e)}function jU(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function Y1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"}}]})(e)}function q1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function GM(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function Z1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function K1e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}var Yh="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuidePopover.tsx";const X1e=Ga(e=>e.system,e=>e.shouldDisplayGuides),Q1e=({children:e,feature:t})=>{const n=gt(X1e),{text:i}=r1e[t];return n?C(aE,{trigger:"hover",children:[C(uE,{children:C(Xs,{children:e},void 0,!1,{fileName:Yh,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:Yh,lineNumber:30,columnNumber:7},void 0),C(lE,{className:"guide-popover-content",maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[C(oE,{className:"guide-popover-arrow"},void 0,!1,{fileName:Yh,lineNumber:39,columnNumber:9},void 0),C("div",{className:"guide-popover-guide-content",children:i},void 0,!1,{fileName:Yh,lineNumber:40,columnNumber:9},void 0)]},void 0,!0,{fileName:Yh,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:Yh,lineNumber:29,columnNumber:5},void 0):C(Ui,{},void 0,!1)};var j6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuideIcon.tsx";const J1e=qe(({feature:e,icon:t=$U},n)=>C(Q1e,{feature:e,children:C(Xs,{ref:n,children:C(ms,{as:t},void 0,!1,{fileName:j6,lineNumber:16,columnNumber:9},void 0)},void 0,!1,{fileName:j6,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:j6,lineNumber:14,columnNumber:5},void 0));var qh="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AccordionItems/InvokeAccordionItem.tsx";function ege(e){const{header:t,feature:n,options:i}=e;return C(VI,{className:"advanced-settings-item",children:[C("h2",{children:C($I,{className:"advanced-settings-header",children:[t,C(J1e,{feature:n},void 0,!1,{fileName:qh,lineNumber:25,columnNumber:11},this),C(jI,{},void 0,!1,{fileName:qh,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:qh,lineNumber:23,columnNumber:9},this)},void 0,!1,{fileName:qh,lineNumber:22,columnNumber:7},this),C(HI,{className:"advanced-settings-panel",children:i},void 0,!1,{fileName:qh,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:qh,lineNumber:21,columnNumber:5},this)}var YM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OptionsAccordion.tsx";const VU=e=>{const{accordionInfo:t}=e,n=gt(c=>c.system.openAccordions),i=Sn();return C(WI,{defaultIndex:n,allowMultiple:!0,reduceMotion:!0,onChange:c=>i(pve(c)),className:"advanced-settings",children:(()=>{const c=[];return t&&Object.keys(t).forEach(p=>{c.push(C(ege,{header:t[p].header,feature:t[p].feature,options:t[p].options},p,!1,{fileName:YM,lineNumber:40,columnNumber:11},void 0))}),c})()},void 0,!1,{fileName:YM,lineNumber:53,columnNumber:5},void 0)};var qM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/HiresOptions.tsx";const tge=()=>{const e=Sn(),t=gt(i=>i.options.hiresFix);return C(Sr,{gap:2,direction:"column",children:C(pm,{label:"High Res Optimization",fontSize:"md",isChecked:t,onChange:i=>e(QB(i.target.checked))},void 0,!1,{fileName:qM,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:qM,lineNumber:21,columnNumber:5},void 0)};var ZM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/SeamlessOptions.tsx";const nge=()=>{const e=Sn(),t=gt(i=>i.options.seamless);return C(Sr,{gap:2,direction:"column",children:C(pm,{label:"Seamless tiling",fontSize:"md",isChecked:t,onChange:i=>e(XB(i.target.checked))},void 0,!1,{fileName:ZM,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:ZM,lineNumber:17,columnNumber:5},void 0)};var V6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OutputOptions.tsx";const HU=()=>C(Sr,{gap:2,direction:"column",children:[C(nge,{},void 0,!1,{fileName:V6,lineNumber:10,columnNumber:7},void 0),C(tge,{},void 0,!1,{fileName:V6,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:V6,lineNumber:9,columnNumber:5},void 0);var KM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIButton.tsx";const vg=e=>{const{label:t,tooltip:n="",size:i="sm",...o}=e;return C(Ca,{label:n,children:C(Du,{size:i,...o,children:t},void 0,!1,{fileName:KM,lineNumber:17,columnNumber:7},void 0)},void 0,!1,{fileName:KM,lineNumber:16,columnNumber:5},void 0)},XM=Ga(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed,activeTab:e.activeTab}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),FE=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),WU=()=>{const{prompt:e}=gt(XM),{shouldGenerateVariations:t,seedWeights:n,maskPath:i,initialImagePath:o,seed:u,activeTab:c}=gt(XM),{isProcessing:p,isConnected:h}=gt(FE);return k.exports.useMemo(()=>!(!e||Boolean(e.match(/^[\s\r\n]+$/))||e&&!o&&c===1||i&&!o||p||!h||t&&(!(RE(n)||n==="")||u===-1)),[e,i,o,p,h,t,n,u,c])};var rge="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/InvokeButton.tsx";function ige(){const e=Sn(),t=WU();return C(vg,{label:"Invoke","aria-label":"Invoke",type:"submit",isDisabled:!t,onClick:()=>{e(T8())},className:"invoke-btn"},void 0,!1,{fileName:rge,lineNumber:16,columnNumber:5},this)}var QM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIIconButton.tsx";const Wp=e=>{const{tooltip:t="",tooltipPlacement:n="bottom",onClick:i,...o}=e;return C(Ca,{label:t,hasArrow:!0,placement:n,children:C(bi,{...o,cursor:i?"pointer":"unset",onClick:i},void 0,!1,{fileName:QM,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:QM,lineNumber:21,columnNumber:5},void 0)};var JM="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/CancelButton.tsx";function age(){const e=Sn(),{isProcessing:t,isConnected:n}=gt(FE),i=()=>e(C0e());return ii("shift+x",()=>{(n||t)&&i()},[n,t]),C(Wp,{icon:C(K1e,{},void 0,!1,{fileName:JM,lineNumber:26,columnNumber:13},this),tooltip:"Cancel","aria-label":"Cancel",isDisabled:!n||!t,onClick:i,className:"cancel-btn"},void 0,!1,{fileName:JM,lineNumber:25,columnNumber:5},this)}var H6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/ProcessButtons.tsx";const GU=()=>C("div",{className:"process-buttons",children:[C(ige,{},void 0,!1,{fileName:H6,lineNumber:10,columnNumber:7},void 0),C(age,{},void 0,!1,{fileName:H6,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:H6,lineNumber:9,columnNumber:5},void 0);var W6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/PromptInput/PromptInput.tsx";const oge=Ga(e=>e.options,e=>({prompt:e.prompt}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),YU=()=>{const e=k.exports.useRef(null),{prompt:t}=gt(oge),{isProcessing:n}=gt(FE),i=Sn(),o=WU(),u=p=>{i(WB(p.target.value))};ii("ctrl+enter",()=>{o&&i(T8())},[o]),ii("alt+a",()=>{e.current?.focus()},[]);const c=p=>{p.key==="Enter"&&p.shiftKey===!1&&o&&(p.preventDefault(),i(T8()))};return C("div",{className:"prompt-bar",children:C(fd,{isInvalid:t.length===0||Boolean(t.match(/^[\s\r\n]+$/)),isDisabled:n,children:C(Wz,{id:"prompt",name:"prompt",placeholder:"I'm dreaming of...",size:"lg",value:t,onChange:u,onKeyDown:c,resize:"vertical",height:30,ref:e},void 0,!1,{fileName:W6,lineNumber:73,columnNumber:9},void 0)},void 0,!1,{fileName:W6,lineNumber:69,columnNumber:7},void 0)},void 0,!1,{fileName:W6,lineNumber:68,columnNumber:5},void 0)};var Xi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImagePanel.tsx";function sge(){const e=gt(n=>n.options.showAdvancedOptions),t={seed:{header:C(Xs,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:Xi,lineNumber:29,columnNumber:9},this),feature:zl.SEED,options:C(MU,{},void 0,!1,{fileName:Xi,lineNumber:34,columnNumber:16},this)},variations:{header:C(PU,{},void 0,!1,{fileName:Xi,lineNumber:37,columnNumber:15},this),feature:zl.VARIATIONS,options:C(IU,{},void 0,!1,{fileName:Xi,lineNumber:39,columnNumber:16},this)},face_restore:{header:C(OU,{},void 0,!1,{fileName:Xi,lineNumber:42,columnNumber:15},this),feature:zl.FACE_CORRECTION,options:C(DE,{},void 0,!1,{fileName:Xi,lineNumber:44,columnNumber:16},this)},upscale:{header:C(DU,{},void 0,!1,{fileName:Xi,lineNumber:47,columnNumber:15},this),feature:zl.UPSCALE,options:C(PE,{},void 0,!1,{fileName:Xi,lineNumber:49,columnNumber:16},this)},other:{header:C(Xs,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:Xi,lineNumber:53,columnNumber:9},this),feature:zl.OTHER,options:C(HU,{},void 0,!1,{fileName:Xi,lineNumber:58,columnNumber:16},this)}};return C("div",{className:"image-to-image-panel",children:[C(YU,{},void 0,!1,{fileName:Xi,lineNumber:64,columnNumber:7},this),C(GU,{},void 0,!1,{fileName:Xi,lineNumber:65,columnNumber:7},this),C(zU,{},void 0,!1,{fileName:Xi,lineNumber:66,columnNumber:7},this),C(u1e,{label:"Image To Image Strength",styleClass:"main-option-block image-to-image-strength-main-option"},void 0,!1,{fileName:Xi,lineNumber:67,columnNumber:7},this),C(s1e,{},void 0,!1,{fileName:Xi,lineNumber:71,columnNumber:7},this),C(FU,{},void 0,!1,{fileName:Xi,lineNumber:72,columnNumber:7},this),e?C(VU,{accordionInfo:t},void 0,!1,{fileName:Xi,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:Xi,lineNumber:63,columnNumber:5},this)}function lge(e){return hr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function uge(e){return hr({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(e)}function cge(e){return hr({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}]})(e)}function fge(e){return hr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}}]})(e)}function dge(e){return hr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}}]})(e)}function pge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function mge(e){return hr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function hge(e){return hr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function vge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}}]})(e)}function gge(e){return hr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function bge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(e)}function yge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function Sge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(e)}function xge(e){return hr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function Cge(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}var Nge=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ab(e,t){var n=wge(e);if(typeof n.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function wge(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),o=Nge.get(i);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var _ge=[".DS_Store","Thumbs.db"];function Ege(e){return Ov(this,void 0,void 0,function(){return Mv(this,function(t){return CS(e)&&Tge(e.dataTransfer)?[2,Lge(e.dataTransfer,e.type)]:Rge(e)?[2,Age(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,kge(e)]:[2,[]]})})}function Tge(e){return CS(e)}function Rge(e){return CS(e)&&CS(e.target)}function CS(e){return typeof e=="object"&&e!==null}function Age(e){return A8(e.target.files).map(function(t){return Ab(t)})}function kge(e){return Ov(this,void 0,void 0,function(){var t;return Mv(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return Ab(i)})]}})})}function Lge(e,t){return Ov(this,void 0,void 0,function(){var n,i;return Mv(this,function(o){switch(o.label){case 0:return e.items?(n=A8(e.items).filter(function(u){return u.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Oge))]):[3,2];case 1:return i=o.sent(),[2,eD(qU(i))];case 2:return[2,eD(A8(e.files).map(function(u){return Ab(u)}))]}})})}function eD(e){return e.filter(function(t){return _ge.indexOf(t.name)===-1})}function A8(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function Oge(e){if(typeof e.webkitGetAsEntry!="function")return tD(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ZU(t):tD(e)}function qU(e){return e.reduce(function(t,n){return h7(h7([],Ok(t),!1),Ok(Array.isArray(n)?qU(n):[n]),!1)},[])}function tD(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ab(t);return Promise.resolve(n)}function Mge(e){return Ov(this,void 0,void 0,function(){return Mv(this,function(t){return[2,e.isDirectory?ZU(e):Dge(e)]})})}function ZU(e){var t=e.createReader();return new Promise(function(n,i){var o=[];function u(){var c=this;t.readEntries(function(p){return Ov(c,void 0,void 0,function(){var h,v,b;return Mv(this,function(x){switch(x.label){case 0:if(p.length)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return h=x.sent(),n(h),[3,4];case 3:return v=x.sent(),i(v),[3,4];case 4:return[3,6];case 5:b=Promise.all(p.map(Mge)),o.push(b),u(),x.label=6;case 6:return[2]}})})},function(p){i(p)})}u()})}function Dge(e){return Ov(this,void 0,void 0,function(){return Mv(this,function(t){return[2,new Promise(function(n,i){e.file(function(o){var u=Ab(o,e.fullPath);n(u)},function(o){i(o)})})]})})}var Pge=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",o=(e.type||"").toLowerCase(),u=o.replace(/\/.*$/,"");return n.some(function(c){var p=c.trim().toLowerCase();return p.charAt(0)==="."?i.toLowerCase().endsWith(p):p.endsWith("/*")?u===p.replace(/\/.*$/,""):o===p})}return!0};function nD(e){return zge(e)||Fge(e)||XU(e)||Ige()}function Ige(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zge(e){if(Array.isArray(e))return k8(e)}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function iD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(i){KU(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function KU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rb(e,t){return $ge(e)||Uge(e,t)||XU(e,t)||Bge()}function Bge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XU(e,t){if(!!e){if(typeof e=="string")return k8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k8(e,t)}}function k8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Uge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,u=!1,c,p;try{for(n=n.call(e);!(o=(c=n.next()).done)&&(i.push(c.value),!(t&&i.length===t));o=!0);}catch(h){u=!0,p=h}finally{try{!o&&n.return!=null&&n.return()}finally{if(u)throw p}}return i}}function $ge(e){if(Array.isArray(e))return e}var jge="file-invalid-type",Vge="file-too-large",Hge="file-too-small",Wge="too-many-files",Gge=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:jge,message:"File type must be ".concat(n)}},aD=function(t){return{code:Vge,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},oD=function(t){return{code:Hge,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Yge={code:Wge,message:"Too many files"};function QU(e,t){var n=e.type==="application/x-moz-file"||Pge(e,t);return[n,n?null:Gge(t)]}function JU(e,t,n){if(Gp(e.size))if(Gp(t)&&Gp(n)){if(e.size>n)return[!1,aD(n)];if(e.size<t)return[!1,oD(t)]}else{if(Gp(t)&&e.size<t)return[!1,oD(t)];if(Gp(n)&&e.size>n)return[!1,aD(n)]}return[!0,null]}function Gp(e){return e!=null}function qge(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,u=e.multiple,c=e.maxFiles,p=e.validator;return!u&&t.length>1||u&&c>=1&&t.length>c?!1:t.every(function(h){var v=QU(h,n),b=rb(v,1),x=b[0],N=JU(h,i,o),_=rb(N,1),T=_[0],A=p?p(h):null;return x&&T&&!A})}function NS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function c4(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function sD(e){e.preventDefault()}function Zge(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Kge(e){return e.indexOf("Edge/")!==-1}function Xge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Zge(e)||Kge(e)}function bu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),c=1;c<o;c++)u[c-1]=arguments[c];return t.some(function(p){return!NS(i)&&p&&p.apply(void 0,[i].concat(u)),NS(i)})}}function Qge(){return"showOpenFilePicker"in window}function Jge(e){if(Gp(e)){var t=Object.entries(e).filter(function(n){var i=rb(n,2),o=i[0],u=i[1],c=!0;return e$(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),c=!1),(!Array.isArray(u)||!u.every(t$))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),c=!1),c}).reduce(function(n,i){var o=rb(i,2),u=o[0],c=o[1];return iD(iD({},n),{},KU({},u,c))},{});return[{accept:t}]}return e}function ebe(e){if(Gp(e))return Object.entries(e).reduce(function(t,n){var i=rb(n,2),o=i[0],u=i[1];return[].concat(nD(t),[o],nD(u))},[]).filter(function(t){return e$(t)||t$(t)}).join(",")}function tbe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function nbe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function e$(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function t$(e){return/^.*\.[\w]+$/.test(e)}var rbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",ibe=["children"],abe=["open"],obe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],sbe=["refKey","onChange","onClick"];function lbe(e){return fbe(e)||cbe(e)||n$(e)||ube()}function ube(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fbe(e){if(Array.isArray(e))return L8(e)}function G6(e,t){return mbe(e)||pbe(e,t)||n$(e,t)||dbe()}function dbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n$(e,t){if(!!e){if(typeof e=="string")return L8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L8(e,t)}}function L8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function pbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,u=!1,c,p;try{for(n=n.call(e);!(o=(c=n.next()).done)&&(i.push(c.value),!(t&&i.length===t));o=!0);}catch(h){u=!0,p=h}finally{try{!o&&n.return!=null&&n.return()}finally{if(u)throw p}}return i}}function mbe(e){if(Array.isArray(e))return e}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(i){O8(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function O8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wS(e,t){if(e==null)return{};var n=hbe(e,t),i,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)i=u[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function hbe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u<i.length;u++)o=i[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var zE=k.exports.forwardRef(function(e,t){var n=e.children,i=wS(e,ibe),o=i$(i),u=o.open,c=wS(o,abe);return k.exports.useImperativeHandle(t,function(){return{open:u}},[u]),C(k.exports.Fragment,{children:n(jr(jr({},c),{},{open:u}))},void 0,!1,{fileName:rbe,lineNumber:70,columnNumber:23},this)});zE.displayName="Dropzone";var r$={disabled:!1,getFilesFromEvent:Ege,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};zE.defaultProps=r$;zE.propTypes={children:Lt.exports.func,accept:Lt.exports.objectOf(Lt.exports.arrayOf(Lt.exports.string)),multiple:Lt.exports.bool,preventDropOnDocument:Lt.exports.bool,noClick:Lt.exports.bool,noKeyboard:Lt.exports.bool,noDrag:Lt.exports.bool,noDragEventsBubbling:Lt.exports.bool,minSize:Lt.exports.number,maxSize:Lt.exports.number,maxFiles:Lt.exports.number,disabled:Lt.exports.bool,getFilesFromEvent:Lt.exports.func,onFileDialogCancel:Lt.exports.func,onFileDialogOpen:Lt.exports.func,useFsAccessApi:Lt.exports.bool,autoFocus:Lt.exports.bool,onDragEnter:Lt.exports.func,onDragLeave:Lt.exports.func,onDragOver:Lt.exports.func,onDrop:Lt.exports.func,onDropAccepted:Lt.exports.func,onDropRejected:Lt.exports.func,onError:Lt.exports.func,validator:Lt.exports.func};var M8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function i$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=jr(jr({},r$),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,p=t.multiple,h=t.maxFiles,v=t.onDragEnter,b=t.onDragLeave,x=t.onDragOver,N=t.onDrop,_=t.onDropAccepted,T=t.onDropRejected,A=t.onFileDialogCancel,M=t.onFileDialogOpen,z=t.useFsAccessApi,P=t.autoFocus,I=t.preventDropOnDocument,F=t.noClick,$=t.noKeyboard,Y=t.noDrag,Z=t.noDragEventsBubbling,ue=t.onError,ce=t.validator,le=k.exports.useMemo(function(){return ebe(n)},[n]),ge=k.exports.useMemo(function(){return Jge(n)},[n]),Ye=k.exports.useMemo(function(){return typeof M=="function"?M:uD},[M]),re=k.exports.useMemo(function(){return typeof A=="function"?A:uD},[A]),ie=k.exports.useRef(null),Ce=k.exports.useRef(null),xe=k.exports.useReducer(vbe,M8),K=G6(xe,2),be=K[0],Ne=K[1],me=be.isFocused,we=be.isFileDialogActive,De=k.exports.useRef(typeof window<"u"&&window.isSecureContext&&z&&Qge()),Pe=function(){!De.current&&we&&setTimeout(function(){if(Ce.current){var Je=Ce.current.files;Je.length||(Ne({type:"closeDialog"}),re())}},300)};k.exports.useEffect(function(){return window.addEventListener("focus",Pe,!1),function(){window.removeEventListener("focus",Pe,!1)}},[Ce,we,re,De]);var Ze=k.exports.useRef([]),it=function(Je){ie.current&&ie.current.contains(Je.target)||(Je.preventDefault(),Ze.current=[])};k.exports.useEffect(function(){return I&&(document.addEventListener("dragover",sD,!1),document.addEventListener("drop",it,!1)),function(){I&&(document.removeEventListener("dragover",sD),document.removeEventListener("drop",it))}},[ie,I]),k.exports.useEffect(function(){return!i&&P&&ie.current&&ie.current.focus(),function(){}},[ie,P,i]);var bt=k.exports.useCallback(function(He){ue?ue(He):console.error(He)},[ue]),Wt=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He),Ze.current=[].concat(lbe(Ze.current),[He.target]),c4(He)&&Promise.resolve(o(He)).then(function(Je){if(!(NS(He)&&!Z)){var nn=Je.length,Ot=nn>0&&qge({files:Je,accept:le,minSize:c,maxSize:u,multiple:p,maxFiles:h,validator:ce}),Oe=nn>0&&!Ot;Ne({isDragAccept:Ot,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),v&&v(He)}}).catch(function(Je){return bt(Je)})},[o,v,bt,Z,le,c,u,p,h,ce]),Xe=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He);var Je=c4(He);if(Je&&He.dataTransfer)try{He.dataTransfer.dropEffect="copy"}catch{}return Je&&x&&x(He),!1},[x,Z]),ct=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He);var Je=Ze.current.filter(function(Ot){return ie.current&&ie.current.contains(Ot)}),nn=Je.indexOf(He.target);nn!==-1&&Je.splice(nn,1),Ze.current=Je,!(Je.length>0)&&(Ne({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),c4(He)&&b&&b(He))},[ie,b,Z]),wt=k.exports.useCallback(function(He,Je){var nn=[],Ot=[];He.forEach(function(Oe){var qt=QU(Oe,le),En=G6(qt,2),je=En[0],at=En[1],Tt=JU(Oe,c,u),hn=G6(Tt,2),Jt=hn[0],Tn=hn[1],In=ce?ce(Oe):null;if(je&&Jt&&!In)nn.push(Oe);else{var Or=[at,Tn];In&&(Or=Or.concat(In)),Ot.push({file:Oe,errors:Or.filter(function(On){return On})})}}),(!p&&nn.length>1||p&&h>=1&&nn.length>h)&&(nn.forEach(function(Oe){Ot.push({file:Oe,errors:[Yge]})}),nn.splice(0)),Ne({acceptedFiles:nn,fileRejections:Ot,type:"setFiles"}),N&&N(nn,Ot,Je),Ot.length>0&&T&&T(Ot,Je),nn.length>0&&_&&_(nn,Je)},[Ne,p,le,c,u,h,N,_,T,ce]),Bt=k.exports.useCallback(function(He){He.preventDefault(),He.persist(),Ft(He),Ze.current=[],c4(He)&&Promise.resolve(o(He)).then(function(Je){NS(He)&&!Z||wt(Je,He)}).catch(function(Je){return bt(Je)}),Ne({type:"reset"})},[o,wt,bt,Z]),Ge=k.exports.useCallback(function(){if(De.current){Ne({type:"openDialog"}),Ye();var He={multiple:p,types:ge};window.showOpenFilePicker(He).then(function(Je){return o(Je)}).then(function(Je){wt(Je,null),Ne({type:"closeDialog"})}).catch(function(Je){tbe(Je)?(re(Je),Ne({type:"closeDialog"})):nbe(Je)?(De.current=!1,Ce.current?(Ce.current.value=null,Ce.current.click()):bt(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):bt(Je)});return}Ce.current&&(Ne({type:"openDialog"}),Ye(),Ce.current.value=null,Ce.current.click())},[Ne,Ye,re,z,wt,bt,ge,p]),Gt=k.exports.useCallback(function(He){!ie.current||!ie.current.isEqualNode(He.target)||(He.key===" "||He.key==="Enter"||He.keyCode===32||He.keyCode===13)&&(He.preventDefault(),Ge())},[ie,Ge]),ye=k.exports.useCallback(function(){Ne({type:"focus"})},[]),et=k.exports.useCallback(function(){Ne({type:"blur"})},[]),_t=k.exports.useCallback(function(){F||(Xge()?setTimeout(Ge,0):Ge())},[F,Ge]),lt=function(Je){return i?null:Je},xn=function(Je){return $?null:lt(Je)},$n=function(Je){return Y?null:lt(Je)},Ft=function(Je){Z&&Je.stopPropagation()},on=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,nn=Je===void 0?"ref":Je,Ot=He.role,Oe=He.onKeyDown,qt=He.onFocus,En=He.onBlur,je=He.onClick,at=He.onDragEnter,Tt=He.onDragOver,hn=He.onDragLeave,Jt=He.onDrop,Tn=wS(He,obe);return jr(jr(O8({onKeyDown:xn(bu(Oe,Gt)),onFocus:xn(bu(qt,ye)),onBlur:xn(bu(En,et)),onClick:lt(bu(je,_t)),onDragEnter:$n(bu(at,Wt)),onDragOver:$n(bu(Tt,Xe)),onDragLeave:$n(bu(hn,ct)),onDrop:$n(bu(Jt,Bt)),role:typeof Ot=="string"&&Ot!==""?Ot:"presentation"},nn,ie),!i&&!$?{tabIndex:0}:{}),Tn)}},[ie,Gt,ye,et,_t,Wt,Xe,ct,Bt,$,Y,i]),Ln=k.exports.useCallback(function(He){He.stopPropagation()},[]),gn=k.exports.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Je=He.refKey,nn=Je===void 0?"ref":Je,Ot=He.onChange,Oe=He.onClick,qt=wS(He,sbe),En=O8({accept:le,multiple:p,type:"file",style:{display:"none"},onChange:lt(bu(Ot,Bt)),onClick:lt(bu(Oe,Ln)),tabIndex:-1},nn,Ce);return jr(jr({},En),qt)}},[Ce,n,p,Bt,i]);return jr(jr({},be),{},{isFocused:me&&!i,getRootProps:on,getInputProps:gn,rootRef:ie,inputRef:Ce,open:lt(Ge)})}function vbe(e,t){switch(t.type){case"focus":return jr(jr({},e),{},{isFocused:!0});case"blur":return jr(jr({},e),{},{isFocused:!1});case"openDialog":return jr(jr({},M8),{},{isFileDialogActive:!0});case"closeDialog":return jr(jr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return jr(jr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return jr(jr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return jr({},M8);default:return e}}function uD(){}var cD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ImageUploader.tsx";const gbe=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n,styleClass:i})=>{const o=k.exports.useCallback((v,b)=>{b.forEach(x=>{n(x)}),v.forEach(x=>{t(x)})},[t,n]),{getRootProps:u,getInputProps:c,open:p}=i$({onDrop:o,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),h=v=>{v.stopPropagation(),p()};return C(Xs,{...u(),flexGrow:3,className:`${i}`,children:[C("input",{...c({multiple:!1})},void 0,!1,{fileName:cD,lineNumber:59,columnNumber:7},void 0),k.exports.cloneElement(e,{onClick:h})]},void 0,!0,{fileName:cD,lineNumber:58,columnNumber:5},void 0)};var fD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/InvokeImageUploader.tsx";function bbe(e){const{label:t,icon:n,dispatcher:i,styleClass:o,onMouseOver:u,OnMouseout:c}=e,p=cB(),h=Sn(),v=k.exports.useCallback(x=>h(i(x)),[h,i]),b=k.exports.useCallback(x=>{const N=x.errors.reduce((_,T)=>_+`
`+T.message,"");p({title:"Upload failed",description:N,status:"error",isClosable:!0})},[p]);return C(gbe,{fileAcceptedCallback:v,fileRejectionCallback:b,styleClass:o,children:C(Du,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:u,onMouseOut:c,leftIcon:n,width:"100%",children:t||null},void 0,!1,{fileName:fD,lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:fD,lineNumber:47,columnNumber:5},this)}var Ro="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const ybe=Ga(e=>e.system,e=>e.shouldConfirmOnDelete),a$=k.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:u}=sS(),c=Sn(),p=gt(ybe),h=k.exports.useRef(null),v=N=>{N.stopPropagation(),p?o():b()},b=()=>{c(S0e(e)),u()};ii("del",()=>{p?o():b()},[e,p]);const x=N=>c(lU(!N.target.checked));return C(Ui,{children:[k.exports.cloneElement(t,{onClick:v,ref:n}),C(doe,{isOpen:i,leastDestructiveRef:h,onClose:u,children:C(Kg,{children:C(poe,{children:[C(rE,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:Ro,lineNumber:98,columnNumber:15},void 0),C(fS,{children:C(Sr,{direction:"column",gap:5,children:[C(Oo,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:Ro,lineNumber:104,columnNumber:19},void 0),C(fd,{children:C(Sr,{alignItems:"center",children:[C(sm,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:Ro,lineNumber:109,columnNumber:23},void 0),C(s3,{checked:!p,onChange:x},void 0,!1,{fileName:Ro,lineNumber:110,columnNumber:23},void 0)]},void 0,!0,{fileName:Ro,lineNumber:108,columnNumber:21},void 0)},void 0,!1,{fileName:Ro,lineNumber:107,columnNumber:19},void 0)]},void 0,!0,{fileName:Ro,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:Ro,lineNumber:102,columnNumber:15},void 0),C(nE,{children:[C(Du,{ref:h,onClick:u,children:"Cancel"},void 0,!1,{fileName:Ro,lineNumber:119,columnNumber:17},void 0),C(Du,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:Ro,lineNumber:122,columnNumber:17},void 0)]},void 0,!0,{fileName:Ro,lineNumber:118,columnNumber:15},void 0)]},void 0,!0,{fileName:Ro,lineNumber:97,columnNumber:13},void 0)},void 0,!1,{fileName:Ro,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:Ro,lineNumber:91,columnNumber:9},void 0)]},void 0,!0)});var Fp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const dD=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:i,actionButton:o,children:u})=>C(aE,{trigger:"hover",closeDelay:n,children:[C(uE,{children:C(Xs,{children:u},void 0,!1,{fileName:Fp,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:Fp,lineNumber:30,columnNumber:7},void 0),C(lE,{className:`popover-content ${t}`,children:[C(oE,{className:"popover-arrow"},void 0,!1,{fileName:Fp,lineNumber:34,columnNumber:9},void 0),C(Mz,{className:"popover-header",children:e},void 0,!1,{fileName:Fp,lineNumber:35,columnNumber:9},void 0),C("div",{className:"popover-options",children:[i||null,o]},void 0,!0,{fileName:Fp,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:Fp,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:Fp,lineNumber:29,columnNumber:5},void 0);var mi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Sbe=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),o$=({image:e})=>{const t=Sn(),n=gt(z=>z.options.shouldShowImageDetails),i=cB(),o=gt(z=>z.gallery.intermediateImage),u=gt(z=>z.options.upscalingLevel),c=gt(z=>z.options.facetoolStrength),{isProcessing:p,isConnected:h,isGFPGANAvailable:v,isESRGANAvailable:b}=gt(Sbe),x=()=>{t(Tv(e.url)),t(Rc(1))};ii("shift+i",()=>{e?(x(),i({title:"Sent To Image To Image",status:"success",duration:2500,isClosable:!0})):i({title:"No Image Loaded",description:"No image found to send to image to image module.",status:"error",duration:2500,isClosable:!0})},[e]);const N=()=>t(rU(e.metadata));ii("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(N(),i({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})):i({title:"Parameters Not Set",description:"No metadata found for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const _=()=>t(Tb(e.metadata.image.seed));ii("s",()=>{e?.metadata?.image?.seed?(_(),i({title:"Seed Set",status:"success",duration:2500,isClosable:!0})):i({title:"Seed Not Set",description:"Could not find seed for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const T=()=>t(b0e(e));ii("u",()=>{b&&Boolean(!o)&&h&&!p&&u?T():i({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,b,o,h,p,u]);const A=()=>t(y0e(e));ii("r",()=>{v&&Boolean(!o)&&h&&!p&&c?A():i({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,v,o,h,p,c]);const M=()=>t(nve(!n));return ii("i",()=>{e?M():i({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,n]),C("div",{className:"current-image-options",children:[C(Wp,{icon:C(q1e,{},void 0,!1,{fileName:mi,lineNumber:244,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:x},void 0,!1,{fileName:mi,lineNumber:243,columnNumber:7},void 0),C(vg,{label:"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:N},void 0,!1,{fileName:mi,lineNumber:250,columnNumber:7},void 0),C(vg,{label:"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:_},void 0,!1,{fileName:mi,lineNumber:258,columnNumber:7},void 0),C(dD,{title:"Restore Faces",popoverOptions:C(DE,{},void 0,!1,{fileName:mi,lineNumber:266,columnNumber:25},void 0),actionButton:C(vg,{label:"Restore Faces",isDisabled:!v||Boolean(o)||!(h&&!p)||!c,onClick:A},void 0,!1,{fileName:mi,lineNumber:268,columnNumber:11},void 0),children:C(Wp,{icon:C(V1e,{},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:mi,lineNumber:280,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:264,columnNumber:7},void 0),C(dD,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:C(PE,{},void 0,!1,{fileName:mi,lineNumber:286,columnNumber:25},void 0),actionButton:C(vg,{label:"Upscale Image",isDisabled:!b||Boolean(o)||!(h&&!p)||!u,onClick:T},void 0,!1,{fileName:mi,lineNumber:288,columnNumber:11},void 0),children:C(Wp,{icon:C(G1e,{},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:mi,lineNumber:300,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:283,columnNumber:7},void 0),C(Wp,{icon:C(H1e,{},void 0,!1,{fileName:mi,lineNumber:304,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:M},void 0,!1,{fileName:mi,lineNumber:303,columnNumber:7},void 0),C(a$,{image:e,children:C(Wp,{icon:C(j1e,{},void 0,!1,{fileName:mi,lineNumber:312,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(o)},void 0,!1,{fileName:mi,lineNumber:311,columnNumber:9},void 0)},void 0,!1,{fileName:mi,lineNumber:310,columnNumber:7},void 0)]},void 0,!0,{fileName:mi,lineNumber:242,columnNumber:5},void 0)};var Tc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const xbe=Ga(e=>e.gallery,e=>{const t=e.images.findIndex(i=>i.uuid===e?.currentImage?.uuid),n=e.images.length;return{isOnFirstImage:t===0,isOnLastImage:!isNaN(t)&&t===n-1}},{memoizeOptions:{resultEqualityCheck:tb.isEqual}});function s$(e){const{imageToDisplay:t}=e,n=Sn(),{isOnFirstImage:i,isOnLastImage:o}=gt(xbe),u=gt(N=>N.options.shouldShowImageDetails),[c,p]=k.exports.useState(!1),h=()=>{p(!0)},v=()=>{p(!1)},b=()=>{n(oU())},x=()=>{n(aU())};return C("div",{className:"current-image-preview",children:[C(XS,{src:t.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Tc,lineNumber:65,columnNumber:7},this),!u&&C("div",{className:"current-image-next-prev-buttons",children:[C("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!i&&C(bi,{"aria-label":"Previous image",icon:C(fge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:81,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Tc,lineNumber:79,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:73,columnNumber:11},this),C("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:h,onMouseOut:v,children:c&&!o&&C(bi,{"aria-label":"Next image",icon:C(dge,{className:"next-prev-button"},void 0,!1,{fileName:Tc,lineNumber:95,columnNumber:23},this),variant:"unstyled",onClick:x},void 0,!1,{fileName:Tc,lineNumber:93,columnNumber:15},this)},void 0,!1,{fileName:Tc,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:Tc,lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:Tc,lineNumber:64,columnNumber:5},this)}var av="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/node_modules/@chakra-ui/icon/dist/index.esm.js",pD={path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:av,lineNumber:14,columnNumber:22},globalThis),C("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:av,lineNumber:18,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:av,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:av,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},l$=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:u=!1,children:c,className:p,__css:h,...v}=e,b=Kr("chakra-icon",p),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...h},N={ref:t,focusable:u,className:b,__css:x},_=i??pD.viewBox;if(n&&typeof n!="string")return Ae.createElement($e.svg,{as:n,...N,...v});const T=c??pD.path;return Ae.createElement($e.svg,{verticalAlign:"middle",viewBox:_,...N,...v},T)});l$.displayName="Icon";function Et(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,u=k.exports.Children.toArray(e.path),c=qe((p,h)=>C(l$,{ref:h,viewBox:t,...o,...p,children:u.length?u:C("path",{fill:"currentColor",d:n},void 0,!1,{fileName:av,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:av,lineNumber:88,columnNumber:60},this));return c.displayName=i,c}var dt="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Et({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Et({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Et({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Et({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Et({displayName:"SunIcon",path:C("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[C("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:dt,lineNumber:42,columnNumber:22},globalThis),C("path",{d:"M12 1v2"},void 0,!1,{fileName:dt,lineNumber:46,columnNumber:23},globalThis),C("path",{d:"M12 21v2"},void 0,!1,{fileName:dt,lineNumber:48,columnNumber:23},globalThis),C("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:50,columnNumber:23},globalThis),C("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:dt,lineNumber:52,columnNumber:23},globalThis),C("path",{d:"M1 12h2"},void 0,!1,{fileName:dt,lineNumber:54,columnNumber:23},globalThis),C("path",{d:"M21 12h2"},void 0,!1,{fileName:dt,lineNumber:56,columnNumber:23},globalThis),C("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:58,columnNumber:23},globalThis),C("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:dt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:36,columnNumber:25},globalThis)});Et({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Et({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:C("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:dt,lineNumber:77,columnNumber:25},globalThis)});Et({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Et({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});Et({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Et({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Et({displayName:"ViewIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:dt,lineNumber:119,columnNumber:22},globalThis),C("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:dt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:117,columnNumber:25},globalThis)});Et({displayName:"ViewOffIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:dt,lineNumber:134,columnNumber:22},globalThis),C("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:dt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:132,columnNumber:25},globalThis)});Et({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Et({displayName:"DeleteIcon",path:C("g",{fill:"currentColor",children:C("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:dt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:153,columnNumber:25},globalThis)});Et({displayName:"RepeatIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:dt,lineNumber:166,columnNumber:22},globalThis),C("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:dt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:164,columnNumber:25},globalThis)});Et({displayName:"RepeatClockIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:dt,lineNumber:179,columnNumber:22},globalThis),C("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:dt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:177,columnNumber:25},globalThis)});Et({displayName:"EditIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:dt,lineNumber:195,columnNumber:22},globalThis),C("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:dt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:190,columnNumber:25},globalThis)});Et({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Et({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Et({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Et({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Et({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Et({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Et({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Et({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Et({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var u$=Et({displayName:"ExternalLinkIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:dt,lineNumber:275,columnNumber:22},globalThis),C("path",{d:"M15 3h6v6"},void 0,!1,{fileName:dt,lineNumber:277,columnNumber:23},globalThis),C("path",{d:"M10 14L21 3"},void 0,!1,{fileName:dt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:270,columnNumber:25},globalThis)});Et({displayName:"LinkIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:dt,lineNumber:290,columnNumber:22},globalThis),C("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:dt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:288,columnNumber:25},globalThis)});Et({displayName:"PlusSquareIcon",path:C("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[C("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:dt,lineNumber:306,columnNumber:22},globalThis),C("path",{d:"M12 8v8"},void 0,!1,{fileName:dt,lineNumber:313,columnNumber:23},globalThis),C("path",{d:"M8 12h8"},void 0,!1,{fileName:dt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:301,columnNumber:25},globalThis)});Et({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Et({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Et({displayName:"TimeIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:dt,lineNumber:342,columnNumber:22},globalThis),C("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:dt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:340,columnNumber:25},globalThis)});Et({displayName:"ArrowRightIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:dt,lineNumber:355,columnNumber:22},globalThis),C("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:dt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:353,columnNumber:25},globalThis)});Et({displayName:"ArrowLeftIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:dt,lineNumber:368,columnNumber:22},globalThis),C("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:dt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:366,columnNumber:25},globalThis)});Et({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Et({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Et({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Et({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Et({displayName:"EmailIcon",path:C("g",{fill:"currentColor",children:[C("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:dt,lineNumber:410,columnNumber:22},globalThis),C("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:dt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:408,columnNumber:25},globalThis)});Et({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Et({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Et({displayName:"SpinnerIcon",path:C(Ui,{children:[C("defs",{children:C("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[C("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:dt,lineNumber:443,columnNumber:22},globalThis),C("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:dt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:dt,lineNumber:437,columnNumber:83},globalThis),C("g",{transform:"translate(2)",fill:"none",children:[C("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:dt,lineNumber:453,columnNumber:22},globalThis),C("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:dt,lineNumber:459,columnNumber:23},globalThis),C("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:dt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Et({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});Et({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:C("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:dt,lineNumber:484,columnNumber:25},globalThis)});Et({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Et({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});Et({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});Et({displayName:"InfoOutlineIcon",path:C("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[C("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:dt,lineNumber:521,columnNumber:22},globalThis),C("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:dt,lineNumber:527,columnNumber:23},globalThis),C("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:dt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:516,columnNumber:25},globalThis)});Et({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});Et({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Et({displayName:"QuestionOutlineIcon",path:C("g",{stroke:"currentColor",strokeWidth:"1.5",children:[C("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"},void 0,!1,{fileName:dt,lineNumber:568,columnNumber:22},globalThis),C("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"},void 0,!1,{fileName:dt,lineNumber:572,columnNumber:23},globalThis),C("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:dt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:dt,lineNumber:565,columnNumber:25},globalThis)});Et({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});Et({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Et({viewBox:"0 0 14 14",path:C("g",{fill:"currentColor",children:C("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:dt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:603,columnNumber:25},globalThis)});Et({displayName:"MinusIcon",path:C("g",{fill:"currentColor",children:C("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:dt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:dt,lineNumber:614,columnNumber:25},globalThis)});Et({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function c$(e){return hr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}var kt="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetaDataViewer/ImageMetadataViewer.tsx";const Dr=({label:e,value:t,onClick:n,isLink:i,labelPosition:o})=>C(Sr,{gap:2,children:[n&&C(Ca,{label:`Recall ${e}`,children:C(bi,{"aria-label":"Use this parameter",icon:C(c$,{},void 0,!1,{fileName:kt,lineNumber:64,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:kt,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:kt,lineNumber:61,columnNumber:9},void 0),C(Sr,{direction:o?"column":"row",children:[C(Oo,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:kt,lineNumber:73,columnNumber:9},void 0),i?C(cv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:kt,lineNumber:77,columnNumber:11},void 0):C(Oo,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:kt,lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:kt,lineNumber:72,columnNumber:7},void 0)]},void 0,!0,{fileName:kt,lineNumber:59,columnNumber:5},void 0),Cbe=(e,t)=>e.image.uuid===t.image.uuid,f$=k.exports.memo(({image:e,styleClass:t})=>{const n=Sn(),i=e?.metadata?.image||{},{type:o,postprocessing:u,sampler:c,prompt:p,seed:h,variations:v,steps:b,cfg_scale:x,seamless:N,hires_fix:_,width:T,height:A,strength:M,fit:z,init_image_path:P,mask_image_path:I,orig_path:F,scale:$}=i,Y=JSON.stringify(i,null,2);return C("div",{className:`image-metadata-viewer ${t}`,children:C(Sr,{gap:1,direction:"column",width:"100%",children:[C(Sr,{gap:2,children:[C(Oo,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:kt,lineNumber:140,columnNumber:13},void 0),C(cv,{href:e.url,isExternal:!0,children:[e.url,C(u$,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:143,columnNumber:15},void 0)]},void 0,!0,{fileName:kt,lineNumber:141,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:139,columnNumber:11},void 0),Object.keys(i).length>0?C(Ui,{children:[o&&C(Dr,{label:"Generation type",value:o},void 0,!1,{fileName:kt,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(o)&&C(Dr,{label:"Original image",value:F},void 0,!1,{fileName:kt,lineNumber:150,columnNumber:17},void 0),o==="gfpgan"&&M!==void 0&&C(Dr,{label:"Fix faces strength",value:M,onClick:()=>n(L4(M))},void 0,!1,{fileName:kt,lineNumber:153,columnNumber:17},void 0),o==="esrgan"&&$!==void 0&&C(Dr,{label:"Upscaling scale",value:$,onClick:()=>n(y8($))},void 0,!1,{fileName:kt,lineNumber:160,columnNumber:17},void 0),o==="esrgan"&&M!==void 0&&C(Dr,{label:"Upscaling strength",value:M,onClick:()=>n(S8(M))},void 0,!1,{fileName:kt,lineNumber:167,columnNumber:17},void 0),p&&C(Dr,{label:"Prompt",labelPosition:"top",value:g8(p),onClick:()=>n(WB(p))},void 0,!1,{fileName:kt,lineNumber:174,columnNumber:17},void 0),h!==void 0&&C(Dr,{label:"Seed",value:h,onClick:()=>n(Tb(h))},void 0,!1,{fileName:kt,lineNumber:182,columnNumber:17},void 0),c&&C(Dr,{label:"Sampler",value:c,onClick:()=>n(KB(c))},void 0,!1,{fileName:kt,lineNumber:189,columnNumber:17},void 0),b&&C(Dr,{label:"Steps",value:b,onClick:()=>n(GB(b))},void 0,!1,{fileName:kt,lineNumber:196,columnNumber:17},void 0),x!==void 0&&C(Dr,{label:"CFG scale",value:x,onClick:()=>n(YB(x))},void 0,!1,{fileName:kt,lineNumber:203,columnNumber:17},void 0),v&&v.length>0&&C(Dr,{label:"Seed-weight pairs",value:b8(v),onClick:()=>n(nU(b8(v)))},void 0,!1,{fileName:kt,lineNumber:210,columnNumber:17},void 0),N&&C(Dr,{label:"Seamless",value:N,onClick:()=>n(XB(N))},void 0,!1,{fileName:kt,lineNumber:219,columnNumber:17},void 0),_&&C(Dr,{label:"High Resolution Optimization",value:_,onClick:()=>n(QB(_))},void 0,!1,{fileName:kt,lineNumber:226,columnNumber:17},void 0),T&&C(Dr,{label:"Width",value:T,onClick:()=>n(ZB(T))},void 0,!1,{fileName:kt,lineNumber:233,columnNumber:17},void 0),A&&C(Dr,{label:"Height",value:A,onClick:()=>n(qB(A))},void 0,!1,{fileName:kt,lineNumber:240,columnNumber:17},void 0),P&&C(Dr,{label:"Initial image",value:P,isLink:!0,onClick:()=>n(Tv(P))},void 0,!1,{fileName:kt,lineNumber:247,columnNumber:17},void 0),I&&C(Dr,{label:"Mask image",value:I,isLink:!0,onClick:()=>n(x8(I))},void 0,!1,{fileName:kt,lineNumber:255,columnNumber:17},void 0),o==="img2img"&&M&&C(Dr,{label:"Image to image strength",value:M,onClick:()=>n(JB(M))},void 0,!1,{fileName:kt,lineNumber:263,columnNumber:17},void 0),z&&C(Dr,{label:"Image to image fit",value:z,onClick:()=>n(tU(z))},void 0,!1,{fileName:kt,lineNumber:270,columnNumber:17},void 0),u&&u.length>0&&C(Ui,{children:[C(P_,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:kt,lineNumber:278,columnNumber:19},void 0),u.map((Z,ue)=>{if(Z.type==="esrgan"){const{scale:ce,strength:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:kt,lineNumber:293,columnNumber:29},void 0),C(Dr,{label:"Scale",value:ce,onClick:()=>n(y8(ce))},void 0,!1,{fileName:kt,lineNumber:296,columnNumber:29},void 0),C(Dr,{label:"Strength",value:le,onClick:()=>n(S8(le))},void 0,!1,{fileName:kt,lineNumber:301,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:287,columnNumber:27},void 0)}else if(Z.type==="gfpgan"){const{strength:ce}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:kt,lineNumber:319,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("gfpgan"))}},void 0,!1,{fileName:kt,lineNumber:323,columnNumber:29},void 0)]},ue,!0,{fileName:kt,lineNumber:313,columnNumber:27},void 0)}else if(Z.type==="codeformer"){const{strength:ce,fidelity:le}=Z;return C(Sr,{pl:"2rem",gap:1,direction:"column",children:[C(Oo,{size:"md",children:`${ue+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:kt,lineNumber:342,columnNumber:29},void 0),C(Dr,{label:"Strength",value:ce,onClick:()=>{n(L4(ce)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:346,columnNumber:29},void 0),le&&C(Dr,{label:"Fidelity",value:le,onClick:()=>{n(eU(le)),n(O4("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:355,columnNumber:31},void 0)]},ue,!0,{fileName:kt,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),C(Sr,{gap:2,direction:"column",children:[C(Sr,{gap:2,children:[C(Ca,{label:"Copy metadata JSON",children:C(bi,{"aria-label":"Copy metadata JSON",icon:C(hge,{},void 0,!1,{fileName:kt,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(Y)},void 0,!1,{fileName:kt,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:kt,lineNumber:373,columnNumber:19},void 0),C(Oo,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:kt,lineNumber:385,columnNumber:19},void 0)]},void 0,!0,{fileName:kt,lineNumber:372,columnNumber:17},void 0),C("div",{className:"image-json-viewer",children:C("pre",{children:Y},void 0,!1,{fileName:kt,lineNumber:388,columnNumber:19},void 0)},void 0,!1,{fileName:kt,lineNumber:387,columnNumber:17},void 0)]},void 0,!0,{fileName:kt,lineNumber:371,columnNumber:15},void 0)]},void 0,!0):C(hF,{width:"100%",pt:10,children:C(Oo,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:kt,lineNumber:394,columnNumber:15},void 0)},void 0,!1,{fileName:kt,lineNumber:393,columnNumber:13},void 0)]},void 0,!0,{fileName:kt,lineNumber:138,columnNumber:9},void 0)},void 0,!1,{fileName:kt,lineNumber:137,columnNumber:7},void 0)},Cbe);var zp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function mD(){const e=gt(i=>i.options.initialImagePath),t=Sn();return C("div",{className:"init-image-preview",children:[C("div",{className:"init-image-preview-header",children:[C("h1",{children:"Initial Image"},void 0,!1,{fileName:zp,lineNumber:21,columnNumber:9},this),C(bi,{isDisabled:!e,size:"sm","aria-label":"Reset Initial Image",onClick:i=>{i.stopPropagation(),t(Tv(null))},icon:C(jU,{},void 0,!1,{fileName:zp,lineNumber:27,columnNumber:17},this)},void 0,!1,{fileName:zp,lineNumber:22,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:20,columnNumber:7},this),e&&C("div",{className:"init-image-image",children:C(XS,{fit:"contain",src:e,rounded:"md"},void 0,!1,{fileName:zp,lineNumber:32,columnNumber:11},this)},void 0,!1,{fileName:zp,lineNumber:31,columnNumber:9},this)]},void 0,!0,{fileName:zp,lineNumber:19,columnNumber:5},this)}var os="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";function Nbe(){const e=gt(u=>u.options.initialImagePath),{currentImage:t,intermediateImage:n}=gt(u=>u.gallery),i=gt(u=>u.options.shouldShowImageDetails),o=n||t;return C("div",{className:"image-to-image-display",style:o?{gridAutoRows:"max-content auto"}:{gridAutoRows:"auto"},children:e?C(Ui,{children:o?C(Ui,{children:[C(o$,{image:o},void 0,!1,{fileName:os,lineNumber:40,columnNumber:15},this),C("div",{className:"image-to-image-dual-preview-container",children:[C("div",{className:"image-to-image-dual-preview",children:[C(mD,{},void 0,!1,{fileName:os,lineNumber:43,columnNumber:19},this),C("div",{className:"image-to-image-current-image-display",children:C(s$,{imageToDisplay:o},void 0,!1,{fileName:os,lineNumber:45,columnNumber:21},this)},void 0,!1,{fileName:os,lineNumber:44,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:42,columnNumber:17},this),i&&C(f$,{image:o,styleClass:"img2img-metadata"},void 0,!1,{fileName:os,lineNumber:49,columnNumber:19},this)]},void 0,!0,{fileName:os,lineNumber:41,columnNumber:15},this)]},void 0,!0):C("div",{className:"image-to-image-single-preview",children:C(mD,{},void 0,!1,{fileName:os,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:os,lineNumber:57,columnNumber:13},this)},void 0,!1):C("div",{className:"upload-image",children:C(bbe,{label:"Upload or Drop Image Here",icon:C(Cge,{},void 0,!1,{fileName:os,lineNumber:66,columnNumber:19},this),styleClass:"image-to-image-upload-btn",dispatcher:N0e},void 0,!1,{fileName:os,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:os,lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:os,lineNumber:28,columnNumber:5},this)}var wbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",_be=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hi=globalThis&&globalThis.__assign||function(){return hi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},hi.apply(this,arguments)},hD={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},vD={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},f4={width:"20px",height:"20px",position:"absolute"},Ebe={top:hi(hi({},hD),{top:"-5px"}),right:hi(hi({},vD),{left:void 0,right:"-5px"}),bottom:hi(hi({},hD),{top:void 0,bottom:"-5px"}),left:hi(hi({},vD),{left:"-5px"}),topRight:hi(hi({},f4),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:hi(hi({},f4),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:hi(hi({},f4),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:hi(hi({},f4),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Tbe=function(e){_be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(i){n.props.onResizeStart(i,n.props.direction)},n.onTouchStart=function(i){n.props.onResizeStart(i,n.props.direction)},n}return t.prototype.render=function(){return C("div",{className:this.props.className||"",style:hi(hi({position:"absolute",userSelect:"none"},Ebe[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children},void 0,!1,{fileName:wbe,lineNumber:68,columnNumber:17},this)},t}(k.exports.PureComponent),d4="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/index.js",Rbe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Su=globalThis&&globalThis.__assign||function(){return Su=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Su.apply(this,arguments)},Abe={width:"auto",height:"auto"},p4=function(e,t,n){return Math.max(Math.min(e,n),t)},gD=function(e,t){return Math.round(e/t)*t},Zh=function(e,t){return new RegExp(e,"i").test(t)},m4=function(e){return Boolean(e.touches&&e.touches.length)},kbe=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},bD=function(e,t,n){n===void 0&&(n=0);var i=t.reduce(function(u,c,p){return Math.abs(c-e)<Math.abs(t[u]-e)?p:u},0),o=Math.abs(t[i]-e);return n===0||o<n?t[i]:e},Y6=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},h4=function(e,t,n,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return n*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return i*o}}return e},Lbe=function(e,t,n,i,o,u,c){return i=h4(i,e.width,t,n),o=h4(o,e.height,t,n),u=h4(u,e.width,t,n),c=h4(c,e.height,t,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof u>"u"?void 0:Number(u),minHeight:typeof c>"u"?void 0:Number(c)}},Obe=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],yD="__resizable_base__",d$=function(e){Rbe(t,e);function t(n){var i=e.call(this,n)||this;return i.ratio=1,i.resizable=null,i.parentLeft=0,i.parentTop=0,i.resizableLeft=0,i.resizableRight=0,i.resizableTop=0,i.resizableBottom=0,i.targetLeft=0,i.targetTop=0,i.appendBase=function(){if(!i.resizable||!i.window)return null;var o=i.parentNode;if(!o)return null;var u=i.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(yD):u.className+=yD,o.appendChild(u),u},i.removeBase=function(o){var u=i.parentNode;!u||u.removeChild(o)},i.ref=function(o){o&&(i.resizable=o)},i.state={isResizing:!1,width:typeof(i.propsSize&&i.propsSize.width)>"u"?"auto":i.propsSize&&i.propsSize.width,height:typeof(i.propsSize&&i.propsSize.height)>"u"?"auto":i.propsSize&&i.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},i.onResizeStart=i.onResizeStart.bind(i),i.onMouseMove=i.onMouseMove.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Abe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,u=this.resizable.offsetHeight,c=this.resizable.style.position;c!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:u,this.resizable.style.position=c}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,o=function(p){if(typeof n.state[p]>"u"||n.state[p]==="auto")return"auto";if(n.propsSize&&n.propsSize[p]&&n.propsSize[p].toString().endsWith("%")){if(n.state[p].toString().endsWith("%"))return n.state[p].toString();var h=n.getParentSize(),v=Number(n.state[p].toString().replace("px","")),b=v/h[p]*100;return b+"%"}return Y6(n.state[p])},u=i&&typeof i.width<"u"&&!this.state.isResizing?Y6(i.width):o("width"),c=i&&typeof i.height<"u"&&!this.state.isResizing?Y6(i.height):o("height");return{width:u,height:c}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var u={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(n),u},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof o>"u"||o==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var o=this.props.boundsByDirection,u=this.state.direction,c=o&&Zh("left",u),p=o&&Zh("top",u),h,v;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(h=c?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),v=p?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(h=c?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=p?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(h=c?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=p?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return h&&Number.isFinite(h)&&(n=n&&n<h?n:h),v&&Number.isFinite(v)&&(i=i&&i<v?i:v),{maxWidth:n,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(n,i){var o=this.props.scale||1,u=this.props.resizeRatio||1,c=this.state,p=c.direction,h=c.original,v=this.props,b=v.lockAspectRatio,x=v.lockAspectRatioExtraHeight,N=v.lockAspectRatioExtraWidth,_=h.width,T=h.height,A=x||0,M=N||0;return Zh("right",p)&&(_=h.width+(n-h.x)*u/o,b&&(T=(_-M)/this.ratio+A)),Zh("left",p)&&(_=h.width-(n-h.x)*u/o,b&&(T=(_-M)/this.ratio+A)),Zh("bottom",p)&&(T=h.height+(i-h.y)*u/o,b&&(_=(T-A)*this.ratio+M)),Zh("top",p)&&(T=h.height-(i-h.y)*u/o,b&&(_=(T-A)*this.ratio+M)),{newWidth:_,newHeight:T}},t.prototype.calculateNewSizeFromAspectRatio=function(n,i,o,u){var c=this.props,p=c.lockAspectRatio,h=c.lockAspectRatioExtraHeight,v=c.lockAspectRatioExtraWidth,b=typeof u.width>"u"?10:u.width,x=typeof o.width>"u"||o.width<0?n:o.width,N=typeof u.height>"u"?10:u.height,_=typeof o.height>"u"||o.height<0?i:o.height,T=h||0,A=v||0;if(p){var M=(N-T)*this.ratio+A,z=(_-T)*this.ratio+A,P=(b-A)/this.ratio+T,I=(x-A)/this.ratio+T,F=Math.max(b,M),$=Math.min(x,z),Y=Math.max(N,P),Z=Math.min(_,I);n=p4(n,F,$),i=p4(i,Y,Z)}else n=p4(n,b,x),i=p4(i,N,_);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left,this.parentTop=i.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var u=this.resizable.getBoundingClientRect(),c=u.left,p=u.top,h=u.right,v=u.bottom;this.resizableLeft=c,this.resizableRight=h,this.resizableTop=p,this.resizableBottom=v}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var o=0,u=0;if(n.nativeEvent&&kbe(n.nativeEvent)?(o=n.nativeEvent.clientX,u=n.nativeEvent.clientY):n.nativeEvent&&m4(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,u=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var c=this.props.onResizeStart(n,i,this.resizable);if(c===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var p,h=this.window.getComputedStyle(this.resizable);if(h.flexBasis!=="auto"){var v=this.parentNode;if(v){var b=this.window.getComputedStyle(v).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",p=h.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var x={original:{x:o,y:u,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:p};this.setState(x)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&m4(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,u=o.maxWidth,c=o.maxHeight,p=o.minWidth,h=o.minHeight,v=m4(n)?n.touches[0].clientX:n.clientX,b=m4(n)?n.touches[0].clientY:n.clientY,x=this.state,N=x.direction,_=x.original,T=x.width,A=x.height,M=this.getParentSize(),z=Lbe(M,this.window.innerWidth,this.window.innerHeight,u,c,p,h);u=z.maxWidth,c=z.maxHeight,p=z.minWidth,h=z.minHeight;var P=this.calculateNewSizeFromDirection(v,b),I=P.newHeight,F=P.newWidth,$=this.calculateNewMaxFromBoundary(u,c);this.props.snap&&this.props.snap.x&&(F=bD(F,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(I=bD(I,this.props.snap.y,this.props.snapGap));var Y=this.calculateNewSizeFromAspectRatio(F,I,{width:$.maxWidth,height:$.maxHeight},{width:p,height:h});if(F=Y.newWidth,I=Y.newHeight,this.props.grid){var Z=gD(F,this.props.grid[0]),ue=gD(I,this.props.grid[1]),ce=this.props.snapGap||0;F=ce===0||Math.abs(Z-F)<=ce?Z:F,I=ce===0||Math.abs(ue-I)<=ce?ue:I}var le={width:F-_.width,height:I-_.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var ge=F/M.width*100;F=ge+"%"}else if(T.endsWith("vw")){var Ye=F/this.window.innerWidth*100;F=Ye+"vw"}else if(T.endsWith("vh")){var re=F/this.window.innerHeight*100;F=re+"vh"}}if(A&&typeof A=="string"){if(A.endsWith("%")){var ge=I/M.height*100;I=ge+"%"}else if(A.endsWith("vw")){var Ye=I/this.window.innerWidth*100;I=Ye+"vw"}else if(A.endsWith("vh")){var re=I/this.window.innerHeight*100;I=re+"vh"}}var ie={width:this.createSizeForCssProperty(F,"width"),height:this.createSizeForCssProperty(I,"height")};this.flexDir==="row"?ie.flexBasis=ie.width:this.flexDir==="column"&&(ie.flexBasis=ie.height),Rv.exports.flushSync(function(){i.setState(ie)}),this.props.onResize&&this.props.onResize(n,N,this.resizable,le)}},t.prototype.onMouseUp=function(n){var i=this.state,o=i.isResizing,u=i.direction,c=i.original;if(!(!o||!this.resizable)){var p={width:this.size.width-c.width,height:this.size.height-c.height};this.props.onResizeStop&&this.props.onResizeStop(n,u,this.resizable,p),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Su(Su({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,i=this.props,o=i.enable,u=i.handleStyles,c=i.handleClasses,p=i.handleWrapperStyle,h=i.handleWrapperClass,v=i.handleComponent;if(!o)return null;var b=Object.keys(o).map(function(x){return o[x]!==!1?C(Tbe,{direction:x,onResizeStart:n.onResizeStart,replaceStyles:u&&u[x],className:c&&c[x],children:v&&v[x]?v[x]:null},x,!1,{fileName:d4,lineNumber:704,columnNumber:25},this):null});return C("div",{className:h,style:p,children:b},void 0,!1,{fileName:d4,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(c,p){return Obe.indexOf(p)!==-1||(c[p]=n.props[p]),c},{}),o=Su(Su(Su({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var u=this.props.as||"div";return C(u,{...Su({ref:this.ref,style:o,className:this.props.className},i),children:[this.state.isResizing&&C("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:d4,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:d4,lineNumber:725,columnNumber:17},this)},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.exports.PureComponent),SD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-masonry-css/dist/react-masonry-css.module.js";function Mbe(e,t){if(e==null)return{};var n=Dbe(e,t),i,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)i=u[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function Dbe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,u;for(u=0;u<i.length;u++)o=i[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function sg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(i){Pbe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pbe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ibe={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},q6=2;class p$ extends Ae.Component{constructor(t){super(t),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this);let n;this.props.breakpointCols&&this.props.breakpointCols.default?n=this.props.breakpointCols.default:n=parseInt(this.props.breakpointCols)||q6,this.state={columnCount:n}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){if(!window||!window.requestAnimationFrame){this.reCalculateColumnCount();return}window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})}reCalculateColumnCount(){const t=window&&window.innerWidth||1/0;let n=this.props.breakpointCols;typeof n!="object"&&(n={default:parseInt(n)||q6});let i=1/0,o=n.default||q6;for(let u in n){const c=parseInt(u);c>0&&t<=c&&c<i&&(i=c,o=n[u])}o=Math.max(1,parseInt(o)||1),this.state.columnCount!==o&&this.setState({columnCount:o})}itemsInColumns(){const t=this.state.columnCount,n=new Array(t),i=Ae.Children.toArray(this.props.children);for(let o=0;o<i.length;o++){const u=o%t;n[u]||(n[u]=[]),n[u].push(i[o])}return n}renderColumns(){const{column:t,columnAttrs:n={},columnClassName:i}=this.props,o=this.itemsInColumns(),u=`${100/o.length}%`;let c=i;c&&typeof c!="string"&&(this.logDeprecated('The property "columnClassName" requires a string'),typeof c>"u"&&(c="my-masonry-grid_column"));const p=sg(sg(sg({},t),n),{},{style:sg(sg({},n.style),{},{width:u}),className:c});return o.map((h,v)=>k.exports.createElement("div",{...p,key:v,__self:this,__source:{fileName:SD,lineNumber:167,columnNumber:27}},h))}logDeprecated(t){console.error("[Masonry]",t)}render(){const t=this.props,{children:n,breakpointCols:i,columnClassName:o,columnAttrs:u,column:c,className:p}=t,h=Mbe(t,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let v=p;return typeof p!="string"&&(this.logDeprecated('The property "className" requires a string'),typeof p>"u"&&(v="my-masonry-grid")),C("div",{...h,className:v,children:this.renderColumns()},void 0,!1,{fileName:SD,lineNumber:201,columnNumber:25},this)}}p$.defaultProps=Ibe;var Qi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Fbe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,zbe=k.exports.memo(e=>{const[t,n]=k.exports.useState(!1),i=Sn(),o=gt(M=>M.options.activeTab),{image:u,isSelected:c}=e,{url:p,uuid:h,metadata:v}=u,b=()=>n(!0),x=()=>n(!1),N=M=>{M.stopPropagation(),i(rU(v))},_=M=>{M.stopPropagation(),i(Tb(u.metadata.image.seed))},T=M=>{M.stopPropagation(),i(Tv(u.url)),o!==1&&i(Rc(1))};return C(Xs,{position:"relative",className:"hoverable-image",onMouseOver:b,onMouseOut:x,children:[C(XS,{objectFit:"cover",rounded:"md",src:p,loading:"lazy",className:"hoverable-image-image"},void 0,!1,{fileName:Qi,lineNumber:71,columnNumber:7},void 0),C("div",{className:"hoverable-image-content",onClick:()=>i(ove(u)),children:c&&C(ms,{width:"50%",height:"50%",as:pge,className:"hoverable-image-check"},void 0,!1,{fileName:Qi,lineNumber:80,columnNumber:11},void 0)},void 0,!1,{fileName:Qi,lineNumber:78,columnNumber:7},void 0),t&&C("div",{className:"hoverable-image-icons",children:[C(Ca,{label:"Delete image",hasArrow:!0,children:C(a$,{image:u,children:C(bi,{colorScheme:"red","aria-label":"Delete image",icon:C(xge,{},void 0,!1,{fileName:Qi,lineNumber:95,columnNumber:23},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:Qi,lineNumber:92,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:91,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:90,columnNumber:11},void 0),["txt2img","img2img"].includes(u?.metadata?.image?.type)&&C(Ca,{label:"Use All Parameters",hasArrow:!0,children:C(bi,{"aria-label":"Use All Parameters",icon:C(c$,{},void 0,!1,{fileName:Qi,lineNumber:106,columnNumber:23},void 0),size:"xs",fontSize:18,variant:"imageHoverIconButton",onClickCapture:N},void 0,!1,{fileName:Qi,lineNumber:104,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:103,columnNumber:13},void 0),u?.metadata?.image?.seed!==void 0&&C(Ca,{label:"Use Seed",hasArrow:!0,children:C(bi,{"aria-label":"Use Seed",icon:C(yge,{},void 0,!1,{fileName:Qi,lineNumber:118,columnNumber:23},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:_},void 0,!1,{fileName:Qi,lineNumber:116,columnNumber:15},void 0)},void 0,!1,{fileName:Qi,lineNumber:115,columnNumber:13},void 0),C(Ca,{label:"Send To Image To Image",hasArrow:!0,children:C(bi,{"aria-label":"Send To Image To Image",icon:C(vge,{},void 0,!1,{fileName:Qi,lineNumber:129,columnNumber:21},void 0),size:"xs",fontSize:16,variant:"imageHoverIconButton",onClickCapture:T},void 0,!1,{fileName:Qi,lineNumber:127,columnNumber:13},void 0)},void 0,!1,{fileName:Qi,lineNumber:126,columnNumber:11},void 0)]},void 0,!0,{fileName:Qi,lineNumber:89,columnNumber:9},void 0)]},h,!0,{fileName:Qi,lineNumber:64,columnNumber:5},void 0)},Fbe);var uo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";function m$(){const{images:e,currentImageUuid:t,areMoreImagesAvailable:n}=gt(N=>N.gallery),i=gt(N=>N.options.shouldShowGallery),o=gt(N=>N.options.activeTab),u=Sn(),[c,p]=k.exports.useState(),h=N=>{p(Math.floor((window.innerWidth-N.x)/120))},v=()=>{u(CM(!i))},b=()=>{u(CM(!1))},x=()=>{u(wU())};return ii("g",()=>{v()},[i]),ii("left",()=>{u(oU())},[]),ii("right",()=>{u(aU())},[]),C("div",{className:"image-gallery-area",children:[!i&&C(Wp,{tooltip:"Show Gallery",tooltipPlacement:"top","aria-label":"Show Gallery",onClick:v,className:"image-gallery-popup-btn",children:C(GM,{},void 0,!1,{fileName:uo,lineNumber:82,columnNumber:11},this)},void 0,!1,{fileName:uo,lineNumber:75,columnNumber:9},this),i&&C(d$,{defaultSize:{width:"300",height:"100%"},minWidth:"300",maxWidth:o==1?"300":"600",className:"image-gallery-popup",onResize:h,children:[C("div",{className:"image-gallery-header",children:[C("h1",{children:"Your Invocations"},void 0,!1,{fileName:uo,lineNumber:96,columnNumber:13},this),C(bi,{size:"sm","aria-label":"Close Gallery",onClick:b,className:"image-gallery-close-btn",icon:C(jU,{},void 0,!1,{fileName:uo,lineNumber:102,columnNumber:21},this)},void 0,!1,{fileName:uo,lineNumber:97,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:95,columnNumber:11},this),C("div",{className:"image-gallery-container",children:[e.length?C(p$,{className:"masonry-grid",columnClassName:"masonry-grid_column",breakpointCols:c,children:e.map(N=>{const{uuid:_}=N;return C(zbe,{image:N,isSelected:t===_},_,!1,{fileName:uo,lineNumber:117,columnNumber:21},this)})},void 0,!1,{fileName:uo,lineNumber:107,columnNumber:15},this):C("div",{className:"image-gallery-container-placeholder",children:[C(GM,{},void 0,!1,{fileName:uo,lineNumber:128,columnNumber:17},this),C("p",{children:"No Images In Gallery"},void 0,!1,{fileName:uo,lineNumber:129,columnNumber:17},this)]},void 0,!0,{fileName:uo,lineNumber:127,columnNumber:15},this),C(Du,{onClick:x,isDisabled:!n,className:"image-gallery-load-more-btn",children:n?"Load More":"All Images Loaded"},void 0,!1,{fileName:uo,lineNumber:132,columnNumber:13},this)]},void 0,!0,{fileName:uo,lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:uo,lineNumber:87,columnNumber:9},this)]},void 0,!0,{fileName:uo,lineNumber:73,columnNumber:5},this)}var lg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx";function Bbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"image-to-image-workarea",children:[C(sge,{},void 0,!1,{fileName:lg,lineNumber:14,columnNumber:7},this),C("div",{className:"image-to-image-display-area",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C(Nbe,{},void 0,!1,{fileName:lg,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:lg,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:lg,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:lg,lineNumber:13,columnNumber:5},this)}var ja="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function Ube(){const e=gt(n=>n.options.showAdvancedOptions),t={seed:{header:C(Xs,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:ja,lineNumber:29,columnNumber:9},this),feature:zl.SEED,options:C(MU,{},void 0,!1,{fileName:ja,lineNumber:34,columnNumber:16},this)},variations:{header:C(PU,{},void 0,!1,{fileName:ja,lineNumber:37,columnNumber:15},this),feature:zl.VARIATIONS,options:C(IU,{},void 0,!1,{fileName:ja,lineNumber:39,columnNumber:16},this)},face_restore:{header:C(OU,{},void 0,!1,{fileName:ja,lineNumber:42,columnNumber:15},this),feature:zl.FACE_CORRECTION,options:C(DE,{},void 0,!1,{fileName:ja,lineNumber:44,columnNumber:16},this)},upscale:{header:C(DU,{},void 0,!1,{fileName:ja,lineNumber:47,columnNumber:15},this),feature:zl.UPSCALE,options:C(PE,{},void 0,!1,{fileName:ja,lineNumber:49,columnNumber:16},this)},other:{header:C(Xs,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:ja,lineNumber:58,columnNumber:9},this),feature:zl.OTHER,options:C(HU,{},void 0,!1,{fileName:ja,lineNumber:63,columnNumber:16},this)}};return C("div",{className:"text-to-image-panel",children:[C(YU,{},void 0,!1,{fileName:ja,lineNumber:69,columnNumber:7},this),C(GU,{},void 0,!1,{fileName:ja,lineNumber:70,columnNumber:7},this),C(zU,{},void 0,!1,{fileName:ja,lineNumber:71,columnNumber:7},this),C(FU,{},void 0,!1,{fileName:ja,lineNumber:72,columnNumber:7},this),e?C(VU,{accordionInfo:t},void 0,!1,{fileName:ja,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:ja,lineNumber:68,columnNumber:5},this)}var Bp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const $be=()=>{const{currentImage:e,intermediateImage:t}=gt(o=>o.gallery),n=gt(o=>o.options.shouldShowImageDetails),i=t||e;return i?C("div",{className:"current-image-display",children:[C("div",{className:"current-image-tools",children:C(o$,{image:i},void 0,!1,{fileName:Bp,lineNumber:24,columnNumber:9},void 0)},void 0,!1,{fileName:Bp,lineNumber:23,columnNumber:7},void 0),C(s$,{imageToDisplay:i},void 0,!1,{fileName:Bp,lineNumber:26,columnNumber:7},void 0),n&&C(f$,{image:i,styleClass:"current-image-metadata"},void 0,!1,{fileName:Bp,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:Bp,lineNumber:22,columnNumber:5},void 0):C("div",{className:"current-image-display-placeholder",children:C(Z1e,{},void 0,!1,{fileName:Bp,lineNumber:36,columnNumber:7},void 0)},void 0,!1,{fileName:Bp,lineNumber:35,columnNumber:5},void 0)};var ug="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImage.tsx";function jbe(){const e=gt(t=>t.options.shouldShowGallery);return C("div",{className:"text-to-image-workarea",children:[C(Ube,{},void 0,!1,{fileName:ug,lineNumber:14,columnNumber:7},this),C("div",{className:"text-to-image-display",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[C($be,{},void 0,!1,{fileName:ug,lineNumber:23,columnNumber:9},this),C(m$,{},void 0,!1,{fileName:ug,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:ug,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:ug,lineNumber:13,columnNumber:5},this)}var Ji="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const Qh={txt2img:{title:C(n1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:22,columnNumber:12},void 0),panel:C(jbe,{},void 0,!1,{fileName:Ji,lineNumber:23,columnNumber:12},void 0),tooltip:"Text To Image"},img2img:{title:C(Y0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:27,columnNumber:12},void 0),panel:C(Bbe,{},void 0,!1,{fileName:Ji,lineNumber:28,columnNumber:12},void 0),tooltip:"Image To Image"},inpainting:{title:C(Z0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:32,columnNumber:12},void 0),panel:C(V0e,{},void 0,!1,{fileName:Ji,lineNumber:33,columnNumber:12},void 0),tooltip:"Inpainting"},outpainting:{title:C(J0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:37,columnNumber:12},void 0),panel:C(W0e,{},void 0,!1,{fileName:Ji,lineNumber:38,columnNumber:12},void 0),tooltip:"Outpainting"},nodes:{title:C(X0e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:42,columnNumber:12},void 0),panel:C(H0e,{},void 0,!1,{fileName:Ji,lineNumber:43,columnNumber:12},void 0),tooltip:"Nodes"},postprocess:{title:C(t1e,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:Ji,lineNumber:47,columnNumber:12},void 0),panel:C(G0e,{},void 0,!1,{fileName:Ji,lineNumber:48,columnNumber:12},void 0),tooltip:"Post Processing"}},Vbe=tb.map(Qh,(e,t)=>t);function Hbe(){const e=gt(o=>o.options.activeTab),t=Sn();ii("1",()=>{t(Rc(0))}),ii("2",()=>{t(Rc(1))}),ii("3",()=>{t(Rc(2))}),ii("4",()=>{t(Rc(3))}),ii("5",()=>{t(Rc(4))}),ii("6",()=>{t(Rc(5))});const n=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(Ca,{hasArrow:!0,label:Qh[u].tooltip,placement:"right",children:C(Hz,{children:Qh[u].title},void 0,!1,{fileName:Ji,lineNumber:95,columnNumber:11},this)},u,!1,{fileName:Ji,lineNumber:89,columnNumber:9},this))}),o},i=()=>{const o=[];return Object.keys(Qh).forEach(u=>{o.push(C(jz,{className:"app-tabs-panel",children:Qh[u].panel},u,!1,{fileName:Ji,lineNumber:106,columnNumber:9},this))}),o};return C($z,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:o=>{t(Rc(o))},children:[C("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:Ji,lineNumber:125,columnNumber:7},this),C(Vz,{className:"app-tabs-panels",children:i()},void 0,!1,{fileName:Ji,lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:Ji,lineNumber:115,columnNumber:5},this)}const Wbe=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(M4(!0));const o={...i().options};Vbe[o.activeTab]==="txt2img"&&(o.shouldUseInitImage=!1);const{generationParameters:u,esrganParameters:c,facetoolParameters:p}=L0e(o,i().system);t.emit("generateImage",u,c,p),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...u,...c,...p})}`}))},emitRunESRGAN:o=>{n(M4(!0));const{upscalingLevel:u,upscalingStrength:c}=i().options,p={upscale:[u,c]};t.emit("runPostprocessing",o,{type:"esrgan",...p}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...p})}`}))},emitRunFacetool:o=>{n(M4(!0));const{facetoolType:u,facetoolStrength:c,codeformerFidelity:p}=i().options,h={facetool_strength:c};u==="codeformer"&&(h.codeformer_fidelity=p),t.emit("runPostprocessing",o,{type:u,...h}),n(Ao({timestamp:ko(new Date,"isoDateTime"),message:`Face restoration (${u}) requested: ${JSON.stringify({file:o.url,...h})}`}))},emitDeleteImage:o=>{const{url:u,uuid:c}=o;t.emit("deleteImage",u,c)},emitRequestImages:()=>{const{earliest_mtime:o}=i().gallery;t.emit("requestImages",o)},emitRequestNewImages:()=>{const{latest_mtime:o}=i().gallery;t.emit("requestLatestImages",o)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},Gbe=()=>{const{origin:e}=new URL(window.location.href),t=I4(e,{timeout:6e4,path:window.location.pathname+"socket.io"});let n=!1;return o=>u=>c=>{const{onConnect:p,onDisconnect:h,onError:v,onPostprocessingResult:b,onGenerationResult:x,onIntermediateResult:N,onProgressUpdate:_,onGalleryImages:T,onProcessingCanceled:A,onImageDeleted:M,onInitialImageUploaded:z,onMaskImageUploaded:P,onSystemConfig:I}=_0e(o),{emitGenerateImage:F,emitRunESRGAN:$,emitRunFacetool:Y,emitDeleteImage:Z,emitRequestImages:ue,emitRequestNewImages:ce,emitCancelProcessing:le,emitUploadInitialImage:ge,emitUploadMaskImage:Ye,emitRequestSystemConfig:re}=Wbe(o,t);switch(n||(t.on("connect",()=>p()),t.on("disconnect",()=>h()),t.on("error",ie=>v(ie)),t.on("generationResult",ie=>x(ie)),t.on("postprocessingResult",ie=>b(ie)),t.on("intermediateResult",ie=>N(ie)),t.on("progressUpdate",ie=>_(ie)),t.on("galleryImages",ie=>T(ie)),t.on("processingCanceled",()=>{A()}),t.on("imageDeleted",ie=>{M(ie)}),t.on("initialImageUploaded",ie=>{z(ie)}),t.on("maskImageUploaded",ie=>{P(ie)}),t.on("systemConfig",ie=>{I(ie)}),n=!0),c.type){case"socketio/generateImage":{F();break}case"socketio/runESRGAN":{$(c.payload);break}case"socketio/runFacetool":{Y(c.payload);break}case"socketio/deleteImage":{Z(c.payload);break}case"socketio/requestImages":{ue();break}case"socketio/requestNewImages":{ce();break}case"socketio/cancelProcessing":{le();break}case"socketio/uploadInitialImage":{ge(c.payload);break}case"socketio/uploadMaskImage":{Ye(c.payload);break}case"socketio/requestSystemConfig":{re();break}}u(c)}},Ybe={key:"root",storage:TE,blacklist:["gallery","system"]},qbe={key:"system",storage:TE,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Zbe=yB({options:rve,gallery:uve,system:$B(qbe,yve)}),Kbe=$B(Ybe,Zbe),h$=Yme({reducer:Kbe,middleware:e=>e({serializableCheck:!1}).concat(Gbe())}),Sn=mhe,gt=ihe;function z4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z4=function(n){return typeof n}:z4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},z4(e)}function Xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Qbe(e,t,n){return t&&CD(e.prototype,t),n&&CD(e,n),e}function Jbe(e,t){return t&&(z4(t)==="object"||typeof t=="function")?t:B4(e)}function D8(e){return D8=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},D8(e)}function B4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P8(e,t)}function P8(e,t){return P8=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},P8(e,t)}function U4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v$=function(e){eye(t,e);function t(){var n,i;Xbe(this,t);for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return i=Jbe(this,(n=D8(t)).call.apply(n,[this].concat(u))),U4(B4(i),"state",{bootstrapped:!1}),U4(B4(i),"_unsubscribe",void 0),U4(B4(i),"handlePersistorState",function(){var p=i.props.persistor,h=p.getState(),v=h.bootstrapped;v&&(i.props.onBeforeLift?Promise.resolve(i.props.onBeforeLift()).finally(function(){return i.setState({bootstrapped:!0})}):i.setState({bootstrapped:!0}),i._unsubscribe&&i._unsubscribe())}),i}return Qbe(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(k.exports.PureComponent);U4(v$,"defaultProps",{children:null,loading:null});const ND=ime({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var wD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const g$=()=>C(Sr,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:C(ZS,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:wD,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:wD,lineNumber:5,columnNumber:9},void 0);var tye="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const nye=Ga(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),rye=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=gt(nye),o=t?Math.round(t*100/n):0;return C(Dz,{height:"4px",value:o,isIndeterminate:e&&!i,className:"progress-bar"},void 0,!1,{fileName:tye,lineNumber:30,columnNumber:5},void 0)},iye=""+new URL("logo.13003d72.png",import.meta.url).href;var cg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function aye(e){const{title:t,hotkey:n,description:i}=e;return C("div",{className:"hotkey-modal-item",children:[C("div",{className:"hotkey-info",children:[C("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:cg,lineNumber:14,columnNumber:9},this),i&&C("p",{className:"hotkey-description",children:i},void 0,!1,{fileName:cg,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:cg,lineNumber:13,columnNumber:7},this),C("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:cg,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:cg,lineNumber:12,columnNumber:5},this)}var Up="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function oye({children:e}){const{isOpen:t,onOpen:n,onClose:i}=sS(),o=[{title:"Invoke",desc:"Generate an image",hotkey:"Ctrl+Enter"},{title:"Cancel",desc:"Cancel image generation",hotkey:"Shift+X"},{title:"Toggle Gallery",desc:"Open and close the gallery drawer",hotkey:"G"},{title:"Set Seed",desc:"Use the seed of the current image",hotkey:"S"},{title:"Set Parameters",desc:"Use all parameters of the current image",hotkey:"A"},{title:"Restore Faces",desc:"Restore the current image",hotkey:"R"},{title:"Upscale",desc:"Upscale the current image",hotkey:"U"},{title:"Show Info",desc:"Show metadata info of the current image",hotkey:"I"},{title:"Send To Image To Image",desc:"Send the current image to Image to Image module",hotkey:"Shift+I"},{title:"Delete Image",desc:"Delete the current image",hotkey:"Del"},{title:"Focus Prompt",desc:"Focus the prompt input area",hotkey:"Alt+A"},{title:"Previous Image",desc:"Display the previous image in the gallery",hotkey:"Arrow left"},{title:"Next Image",desc:"Display the next image in the gallery",hotkey:"Arrow right"},{title:"Change Tabs",desc:"Switch to another workspace",hotkey:"1-6"},{title:"Theme Toggle",desc:"Switch between dark and light modes",hotkey:"Shift+D"},{title:"Console Toggle",desc:"Open and close console",hotkey:"`"}],u=()=>{const c=[];return o.forEach((p,h)=>{c.push(C(aye,{title:p.title,description:p.desc,hotkey:p.hotkey},h,!1,{fileName:Up,lineNumber:91,columnNumber:9},this))}),c};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:Up,lineNumber:109,columnNumber:9},this),C(Zg,{className:"hotkeys-modal",children:[C(tE,{},void 0,!1,{fileName:Up,lineNumber:111,columnNumber:11},this),C("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:Up,lineNumber:112,columnNumber:11},this),C("div",{className:"hotkeys-modal-items",children:u()},void 0,!1,{fileName:Up,lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:Up,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:Up,lineNumber:108,columnNumber:7},this)]},void 0,!0)}var Z6="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function K6({settingTitle:e,isChecked:t,dispatcher:n}){const i=Sn();return C(fd,{className:"settings-modal-item",children:[C(sm,{marginBottom:1,children:e},void 0,!1,{fileName:Z6,lineNumber:17,columnNumber:7},this),C(s3,{isChecked:t,onChange:o=>i(n(o.target.checked))},void 0,!1,{fileName:Z6,lineNumber:18,columnNumber:7},this)]},void 0,!0,{fileName:Z6,lineNumber:16,columnNumber:5},this)}var $r="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const sye=Ga(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}},{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),lye=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=sS(),{isOpen:o,onOpen:u,onClose:c}=sS(),{shouldDisplayInProgress:p,shouldConfirmOnDelete:h,shouldDisplayGuides:v}=gt(sye),b=()=>{b$.purge().then(()=>{i(),u()})};return C(Ui,{children:[k.exports.cloneElement(e,{onClick:n}),C(wv,{isOpen:t,onClose:i,children:[C(Kg,{},void 0,!1,{fileName:$r,lineNumber:95,columnNumber:9},void 0),C(Zg,{className:"settings-modal",children:[C(rE,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:$r,lineNumber:97,columnNumber:11},void 0),C(tE,{},void 0,!1,{fileName:$r,lineNumber:98,columnNumber:11},void 0),C(fS,{className:"settings-modal-content",children:[C("div",{className:"settings-modal-items",children:[C(K6,{settingTitle:"Display In-Progress Images (slower)",isChecked:p,dispatcher:dve},void 0,!1,{fileName:$r,lineNumber:101,columnNumber:15},void 0),C(K6,{settingTitle:"Confirm on Delete",isChecked:h,dispatcher:lU},void 0,!1,{fileName:$r,lineNumber:107,columnNumber:15},void 0),C(K6,{settingTitle:"Display Help Icons",isChecked:v,dispatcher:vve},void 0,!1,{fileName:$r,lineNumber:113,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:100,columnNumber:13},void 0),C("div",{className:"settings-modal-reset",children:[C(P_,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:121,columnNumber:15},void 0),C(Oo,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."},void 0,!1,{fileName:$r,lineNumber:122,columnNumber:15},void 0),C(Oo,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."},void 0,!1,{fileName:$r,lineNumber:127,columnNumber:15},void 0),C(Du,{colorScheme:"red",onClick:b,children:"Reset Web UI"},void 0,!1,{fileName:$r,lineNumber:132,columnNumber:15},void 0)]},void 0,!0,{fileName:$r,lineNumber:120,columnNumber:13},void 0)]},void 0,!0,{fileName:$r,lineNumber:99,columnNumber:11},void 0),C(nE,{children:C(Du,{onClick:i,children:"Close"},void 0,!1,{fileName:$r,lineNumber:139,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:138,columnNumber:11},void 0)]},void 0,!0,{fileName:$r,lineNumber:96,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:94,columnNumber:7},void 0),C(wv,{closeOnOverlayClick:!1,isOpen:o,onClose:c,isCentered:!0,children:[C(Kg,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:$r,lineNumber:150,columnNumber:9},void 0),C(Zg,{children:C(fS,{pb:6,pt:6,children:C(Sr,{justifyContent:"center",children:C(Oo,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:$r,lineNumber:154,columnNumber:15},void 0)},void 0,!1,{fileName:$r,lineNumber:153,columnNumber:13},void 0)},void 0,!1,{fileName:$r,lineNumber:152,columnNumber:11},void 0)},void 0,!1,{fileName:$r,lineNumber:151,columnNumber:9},void 0)]},void 0,!0,{fileName:$r,lineNumber:144,columnNumber:7},void 0)]},void 0,!0)};var _D="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const uye=Ga(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),cye=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:i,currentStatus:o,hasError:u,wasErrorSeen:c}=gt(uye),p=Sn();let h;e&&!u?h="status-good":h="status-bad";let v=o;return["generating","preparing","saving image","restoring faces","upscaling"].includes(v.toLowerCase())&&(h="status-working"),v&&t&&i>1&&(v+=` (${n}/${i})`),C(Ca,{label:u&&!c?"Click to clear, check logs for details":void 0,children:C(Oo,{cursor:u&&!c?"pointer":"initial",onClick:()=>{(u||!c)&&p(uU())},className:`status ${h}`,children:v},void 0,!1,{fileName:_D,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:_D,lineNumber:82,columnNumber:5},void 0)};var ur="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const fye=()=>{const{colorMode:e,toggleColorMode:t}=z8();ii("shift+d",()=>{t()},[e,t]);const n=e=="light"?C(bge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:48},void 0):C(Sge,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:61},void 0),i=e=="light"?18:20;return C("div",{className:"site-header",children:[C("div",{className:"site-header-left-side",children:[C("img",{src:iye,alt:"invoke-ai-logo"},void 0,!1,{fileName:ur,lineNumber:35,columnNumber:9},void 0),C("h1",{children:["invoke ",C("strong",{children:"ai"},void 0,!1,{fileName:ur,lineNumber:37,columnNumber:18},void 0)]},void 0,!0,{fileName:ur,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:34,columnNumber:7},void 0),C("div",{className:"site-header-right-side",children:[C(cye,{},void 0,!1,{fileName:ur,lineNumber:42,columnNumber:9},void 0),C(lye,{children:C(bi,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:C(W1e,{},void 0,!1,{fileName:ur,lineNumber:50,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:45,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:44,columnNumber:9},void 0),C(oye,{children:C(bi,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:C(Y1e,{},void 0,!1,{fileName:ur,lineNumber:60,columnNumber:19},void 0)},void 0,!1,{fileName:ur,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:54,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:C($U,{},void 0,!1,{fileName:ur,lineNumber:75,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:71,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:64,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Github",placement:"bottom",children:C(bi,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:C(uge,{},void 0,!1,{fileName:ur,lineNumber:89,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:88,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:82,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:81,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Discord",placement:"bottom",children:C(bi,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:C(cv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:C(lge,{},void 0,!1,{fileName:ur,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:ur,lineNumber:102,columnNumber:15},void 0)},void 0,!1,{fileName:ur,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:95,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:"Theme",placement:"bottom",children:C(bi,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:i,icon:n},void 0,!1,{fileName:ur,lineNumber:110,columnNumber:11},void 0)},void 0,!1,{fileName:ur,lineNumber:109,columnNumber:9},void 0)]},void 0,!0,{fileName:ur,lineNumber:41,columnNumber:7},void 0)]},void 0,!0,{fileName:ur,lineNumber:33,columnNumber:5},void 0)};var Ys="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/Console.tsx";const dye=Ga(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),pye=Ga(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Wa.exports.isEqual}}),mye=()=>{const e=Sn(),t=gt(dye),{shouldShowLogViewer:n,hasError:i,wasErrorSeen:o}=gt(pye),[u,c]=k.exports.useState(!0),p=k.exports.useRef(null);k.exports.useLayoutEffect(()=>{p.current!==null&&u&&(p.current.scrollTop=p.current.scrollHeight)},[u,t,n]);const h=()=>{e(uU()),e(wM(!n))};return ii("`",()=>{e(wM(!n))},[n]),C(Ui,{children:[n&&C(d$,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0},maxHeight:"90vh",children:C("div",{className:"console",ref:p,children:t.map((v,b)=>{const{timestamp:x,message:N,level:_}=v;return C("div",{className:`console-entry console-${_}-color`,children:[C("p",{className:"console-timestamp",children:[x,":"]},void 0,!0,{fileName:Ys,lineNumber:94,columnNumber:19},void 0),C("p",{className:"console-message",children:N},void 0,!1,{fileName:Ys,lineNumber:95,columnNumber:19},void 0)]},b,!0,{fileName:Ys,lineNumber:93,columnNumber:17},void 0)})},void 0,!1,{fileName:Ys,lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:81,columnNumber:9},void 0),n&&C(Ca,{hasArrow:!0,label:u?"Autoscroll On":"Autoscroll Off",children:C(bi,{className:`console-autoscroll-icon-button ${u&&"autoscroll-enabled"}`,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:C(cge,{},void 0,!1,{fileName:Ys,lineNumber:111,columnNumber:19},void 0),onClick:()=>c(!u)},void 0,!1,{fileName:Ys,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Ys,lineNumber:103,columnNumber:9},void 0),C(Ca,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:C(bi,{className:`console-toggle-icon-button ${(i||!o)&&"error-seen"}`,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?C(gge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:39},void 0):C(mge,{},void 0,!1,{fileName:Ys,lineNumber:126,columnNumber:53},void 0),onClick:h},void 0,!1,{fileName:Ys,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Ys,lineNumber:116,columnNumber:7},void 0)]},void 0,!0)};function hye(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(o=>o)};(!{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV||{BASE_URL:"./",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}var jf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";hye();const vye=()=>{const e=Sn(),[t,n]=k.exports.useState(!1);return k.exports.useEffect(()=>{e(w0e()),n(!0)},[e]),t?C("div",{className:"App",children:[C(rye,{},void 0,!1,{fileName:jf,lineNumber:24,columnNumber:7},void 0),C("div",{className:"app-content",children:[C(fye,{},void 0,!1,{fileName:jf,lineNumber:26,columnNumber:9},void 0),C(Hbe,{},void 0,!1,{fileName:jf,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:jf,lineNumber:25,columnNumber:7},void 0),C("div",{className:"app-console",children:C(mye,{},void 0,!1,{fileName:jf,lineNumber:30,columnNumber:9},void 0)},void 0,!1,{fileName:jf,lineNumber:29,columnNumber:7},void 0)]},void 0,!0,{fileName:jf,lineNumber:23,columnNumber:5},void 0):C(g$,{},void 0,!1,{fileName:jf,lineNumber:34,columnNumber:5},void 0)};var $p="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const b$=Dhe(h$);Q6.createRoot(document.getElementById("root")).render(C(Ae.StrictMode,{children:C(fhe,{store:h$,children:C(v$,{loading:C(g$,{},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:29},void 0),persistor:b$,children:C(rme,{theme:ND,children:[C(xW,{initialColorMode:ND.config.initialColorMode},void 0,!1,{fileName:$p,lineNumber:23,columnNumber:11},void 0),C(vye,{},void 0,!1,{fileName:$p,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:$p,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:$p,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:$p,lineNumber:19,columnNumber:3},void 0));