InvokeAI/frontend/dist/assets/index.2d646c45.js
2022-10-22 07:54:39 +13:00

691 lines
1.2 MiB

function iY(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 s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{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 s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aY(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},$7={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"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),k=Symbol.iterator,I="@@iterator";function D(S){if(S===null||typeof S!="object")return null;var L=k&&S[k]||S[I];return typeof L=="function"?L:null}var P={current:null},F={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},Y={},Q=null;function ie(S){Q=S}Y.setExtraStackFrame=function(S){Q=S},Y.getCurrentStack=null,Y.getStackAddendum=function(){var S="";Q&&(S+=Q);var L=Y.getCurrentStack;return L&&(S+=L()||""),S};var ae=!1,pe=!1,$e=!1,te=!1,ee=!1,be={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:F,ReactCurrentOwner:q};be.ReactDebugCurrentFrame=Y,be.ReactCurrentActQueue=z;function Ce(S){{for(var L=arguments.length,V=new Array(L>1?L-1:0),G=1;G<L;G++)V[G-1]=arguments[G];le("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];le("error",S,V)}}function le(S,L,V){{var G=be.ReactDebugCurrentFrame,se=G.getStackAddendum();se!==""&&(L+="%s",V=V.concat([se]));var ze=V.map(function(Ee){return String(Ee)});ze.unshift("Warning: "+L),Function.prototype.apply.call(console[S],console,ze)}}var ve={};function de(S,L){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",se=G+"."+L;if(ve[se])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),ve[se]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,L,V){de(S,"forceUpdate")},enqueueReplaceState:function(S,L,V,G){de(S,"replaceState")},enqueueSetState:function(S,L,V,G){de(S,"setState")}},Le=Object.assign,Me={};Object.freeze(Me);function Ze(S,L,V){this.props=S,this.context=L,this.refs=Me,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 Je={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)."]},it=function(S,L){Object.defineProperty(Ze.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Rt in Je)Je.hasOwnProperty(Rt)&&it(Rt,Je[Rt])}function Ve(){}Ve.prototype=Ze.prototype;function at(S,L,V){this.props=S,this.context=L,this.refs=Me,this.updater=V||we}var St=at.prototype=new Ve;St.constructor=at,Le(St,Ze.prototype),St.isPureReactComponent=!0;function Dt(){var S={current:null};return Object.seal(S),S}var He=Array.isArray;function jt(S){return He(S)}function Se(S){{var L=typeof Symbol=="function"&&Symbol.toStringTag,V=L&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function tt(S){try{return Ct(S),!1}catch{return!0}}function Ct(S){return""+S}function nt(S){if(tt(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Se(S)),Ct(S)}function on(S,L,V){var G=S.displayName;if(G)return G;var se=L.displayName||L.name||"";return se!==""?V+"("+se+")":V}function Ln(S){return S.displayName||"Context"}function _t(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 s:return"Fragment";case o:return"Portal";case p:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var L=S;return Ln(L)+".Consumer";case m:var V=S;return Ln(V._context)+".Provider";case g:return on(S,S.render,"ForwardRef");case w:var G=S.displayName||null;return G!==null?G:_t(S.type)||"Memo";case T:{var se=S,ze=se._payload,Ee=se._init;try{return _t(Ee(ze))}catch{return null}}}return null}var sn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},bn,Ye,et;et={};function nn(S){if(sn.call(S,"ref")){var L=Object.getOwnPropertyDescriptor(S,"ref").get;if(L&&L.isReactWarning)return!1}return S.ref!==void 0}function Pt(S){if(sn.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function De(S,L){var V=function(){bn||(bn=!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(){Ye||(Ye=!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 _n(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var L=_t(q.current.type);et[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),et[L]=!0)}}var We=function(S,L,V,G,se,ze,Ee){var Ge={$$typeof:i,type:S,key:L,ref:V,props:Ee,_owner:ze};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function lt(S,L,V){var G,se={},ze=null,Ee=null,Ge=null,ct=null;if(L!=null){nn(L)&&(Ee=L.ref,_n(L)),Pt(L)&&(nt(L.key),ze=""+L.key),Ge=L.__self===void 0?null:L.__self,ct=L.__source===void 0?null:L.__source;for(G in L)sn.call(L,G)&&!kn.hasOwnProperty(G)&&(se[G]=L[G])}var wt=arguments.length-2;if(wt===1)se.children=V;else if(wt>1){for(var It=Array(wt),yt=0;yt<wt;yt++)It[yt]=arguments[yt+2];Object.freeze&&Object.freeze(It),se.children=It}if(S&&S.defaultProps){var Wt=S.defaultProps;for(G in Wt)se[G]===void 0&&(se[G]=Wt[G])}if(ze||Ee){var Ot=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&De(se,Ot),Ee&&qt(se,Ot)}return We(S,ze,Ee,Ge,ct,q.current,se)}function At(S,L){var V=We(S.type,L,S.ref,S._self,S._source,S._owner,S.props);return V}function vn(S,L,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,se=Le({},S.props),ze=S.key,Ee=S.ref,Ge=S._self,ct=S._source,wt=S._owner;if(L!=null){nn(L)&&(Ee=L.ref,wt=q.current),Pt(L)&&(nt(L.key),ze=""+L.key);var It;S.type&&S.type.defaultProps&&(It=S.type.defaultProps);for(G in L)sn.call(L,G)&&!kn.hasOwnProperty(G)&&(L[G]===void 0&&It!==void 0?se[G]=It[G]:se[G]=L[G])}var yt=arguments.length-2;if(yt===1)se.children=V;else if(yt>1){for(var Wt=Array(yt),Ot=0;Ot<yt;Ot++)Wt[Ot]=arguments[Ot+2];se.children=Wt}return We(S.type,ze,Ee,Ge,ct,wt,se)}function Jt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",$n=":";function Dr(S){var L=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(L,function(se){return V[se]});return"$"+G}var Mn=!1,wi=/\/+/g;function jn(S){return S.replace(wi,"$&/")}function Rn(S,L){return typeof S=="object"&&S!==null&&S.key!=null?(nt(S.key),Dr(""+S.key)):L.toString(36)}function Ni(S,L,V,G,se){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var Ee=!1;if(S===null)Ee=!0;else switch(ze){case"string":case"number":Ee=!0;break;case"object":switch(S.$$typeof){case i:case o:Ee=!0}}if(Ee){var Ge=S,ct=se(Ge),wt=G===""?Tn+Rn(Ge,0):G;if(jt(ct)){var It="";wt!=null&&(It=jn(wt)+"/"),Ni(ct,L,It,"",function(_d){return _d})}else ct!=null&&(Jt(ct)&&(ct.key&&(!Ge||Ge.key!==ct.key)&&nt(ct.key),ct=At(ct,V+(ct.key&&(!Ge||Ge.key!==ct.key)?jn(""+ct.key)+"/":"")+wt)),L.push(ct));return 1}var yt,Wt,Ot=0,Ut=G===""?Tn:G+$n;if(jt(S))for(var La=0;La<S.length;La++)yt=S[La],Wt=Ut+Rn(yt,La),Ot+=Ni(yt,L,V,Wt,se);else{var Ai=D(S);if(typeof Ai=="function"){var Qo=S;Ai===Qo.entries&&(Mn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mn=!0);for(var Gu=Ai.call(Qo),Dn,ka=0;!(Dn=Gu.next()).done;)yt=Dn.value,Wt=Ut+Rn(yt,ka++),Ot+=Ni(yt,L,V,Wt,se)}else if(ze==="object"){var Es=String(S);throw new Error("Objects are not valid as a React child (found: "+(Es==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Es)+"). If you meant to render a collection of children, use an array instead.")}}return Ot}function xr(S,L,V){if(S==null)return S;var G=[],se=0;return Ni(S,G,"","",function(ze){return L.call(V,ze,se++)}),G}function Bo(S){var L=0;return xr(S,function(){L++}),L}function gs(S,L,V){xr(S,function(){L.apply(this,arguments)},V)}function bs(S){return xr(S,function(L){return L})||[]}function Uo(S){if(!Jt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function jo(S){var L={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:m,_context:L};var V=!1,G=!1,se=!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(Ee){L.Provider=Ee}},_currentValue:{get:function(){return L._currentValue},set:function(Ee){L._currentValue=Ee}},_currentValue2:{get:function(){return L._currentValue2},set:function(Ee){L._currentValue2=Ee}},_threadCount:{get:function(){return L._threadCount},set:function(Ee){L._threadCount=Ee}},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(Ee){se||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ee),se=!0)}}}),L.Consumer=ze}return L._currentRenderer=null,L._currentRenderer2=null,L}var hr=-1,Vi=0,qa=1,Hi=2;function X(S){if(S._status===hr){var L=S._result,V=L();if(V.then(function(ze){if(S._status===Vi||S._status===hr){var Ee=S;Ee._status=qa,Ee._result=ze}},function(ze){if(S._status===Vi||S._status===hr){var Ee=S;Ee._status=Hi,Ee._result=ze}}),S._status===hr){var G=S;G._status=Vi,G._result=V}}if(S._status===qa){var se=S._result;return se===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?`,se),"default"in se||K(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,se),se.default}else throw S._result}function Ue(S){var L={_status:hr,_result:S},V={$$typeof:T,_payload:L,_init:X};{var G,se;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 se},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."),se=ze,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Xe(S){S!=null&&S.$$typeof===w?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:g,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 Et;Et=Symbol.for("react.module.reference");function ln(S){return!!(typeof S=="string"||typeof S=="function"||S===s||S===p||ee||S===u||S===b||S===C||te||S===A||ae||pe||$e||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===w||S.$$typeof===m||S.$$typeof===v||S.$$typeof===g||S.$$typeof===Et||S.getModuleId!==void 0))}function Cn(S,L){ln(S)||K("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:w,type:S,compare:L===void 0?null:L};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(se){G=se,!S.name&&!S.displayName&&(S.displayName=se)}})}return V}function ot(){var S=P.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=ot();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=ot();return L.useState(S)}function Bn(S,L,V){var G=ot();return G.useReducer(S,L,V)}function cn(S){var L=ot();return L.useRef(S)}function Wr(S,L){var V=ot();return V.useEffect(S,L)}function Ea(S,L){var V=ot();return V.useInsertionEffect(S,L)}function Vo(S,L){var V=ot();return V.useLayoutEffect(S,L)}function Ei(S,L){var V=ot();return V.useCallback(S,L)}function go(S,L){var V=ot();return V.useMemo(S,L)}function Hu(S,L,V){var G=ot();return G.useImperativeHandle(S,L,V)}function _a(S,L){{var V=ot();return V.useDebugValue(S,L)}}function al(){var S=ot();return S.useTransition()}function Za(S){var L=ot();return L.useDeferredValue(S)}function en(){var S=ot();return S.useId()}function Ka(S,L,V){var G=ot();return G.useSyncExternalStore(S,L,V)}var _i=0,Ho,ys,Wo,xs,Ss,Go,Yo;function Cs(){}Cs.__reactDisabledLog=!0;function ol(){{if(_i===0){Ho=console.log,ys=console.info,Wo=console.warn,xs=console.error,Ss=console.group,Go=console.groupCollapsed,Yo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:Cs,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}_i++}}function sl(){{if(_i--,_i===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Le({},S,{value:Ho}),info:Le({},S,{value:ys}),warn:Le({},S,{value:Wo}),error:Le({},S,{value:xs}),group:Le({},S,{value:Ss}),groupCollapsed:Le({},S,{value:Go}),groupEnd:Le({},S,{value:Yo})})}_i<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ta=be.ReactCurrentDispatcher,Br;function Wi(S,L,V){{if(Br===void 0)try{throw Error()}catch(se){var G=se.stack.trim().match(/\n( *(at )?)/);Br=G&&G[1]||""}return`
`+Br+S}}var Ti=!1,Gi;{var ws=typeof WeakMap=="function"?WeakMap:Map;Gi=new ws}function qo(S,L){if(!S||Ti)return"";{var V=Gi.get(S);if(V!==void 0)return V}var G;Ti=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=Ta.current,Ta.current=null,ol();try{if(L){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(Ut){G=Ut}Reflect.construct(S,[],Ee)}else{try{Ee.call()}catch(Ut){G=Ut}S.call(Ee.prototype)}}else{try{throw Error()}catch(Ut){G=Ut}S()}}catch(Ut){if(Ut&&G&&typeof Ut.stack=="string"){for(var Ge=Ut.stack.split(`
`),ct=G.stack.split(`
`),wt=Ge.length-1,It=ct.length-1;wt>=1&&It>=0&&Ge[wt]!==ct[It];)It--;for(;wt>=1&&It>=0;wt--,It--)if(Ge[wt]!==ct[It]){if(wt!==1||It!==1)do if(wt--,It--,It<0||Ge[wt]!==ct[It]){var yt=`
`+Ge[wt].replace(" at new "," at ");return S.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Gi.set(S,yt),yt}while(wt>=1&&It>=0);break}}}finally{Ti=!1,Ta.current=ze,sl(),Error.prepareStackTrace=se}var Wt=S?S.displayName||S.name:"",Ot=Wt?Wi(Wt):"";return typeof S=="function"&&Gi.set(S,Ot),Ot}function Ns(S,L,V){return qo(S,!1)}function Yl(S){var L=S.prototype;return!!(L&&L.isReactComponent)}function Ri(S,L,V){if(S==null)return"";if(typeof S=="function")return qo(S,Yl(S));if(typeof S=="string")return Wi(S);switch(S){case b:return Wi("Suspense");case C:return Wi("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case g:return Ns(S.render);case w:return Ri(S.type,L,V);case T:{var G=S,se=G._payload,ze=G._init;try{return Ri(ze(se),L,V)}catch{}}}return""}var Zo={},Yi=be.ReactDebugCurrentFrame;function Ra(S){if(S){var L=S._owner,V=Ri(S.type,S._source,L?L.type:null);Yi.setExtraStackFrame(V)}else Yi.setExtraStackFrame(null)}function ll(S,L,V,G,se){{var ze=Function.call.bind(sn);for(var Ee in S)if(ze(S,Ee)){var Ge=void 0;try{if(typeof S[Ee]!="function"){var ct=Error((G||"React class")+": "+V+" type `"+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ct.name="Invariant Violation",ct}Ge=S[Ee](L,Ee,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(wt){Ge=wt}Ge&&!(Ge instanceof Error)&&(Ra(se),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,Ee,typeof Ge),Ra(null)),Ge instanceof Error&&!(Ge.message in Zo)&&(Zo[Ge.message]=!0,Ra(se),K("Failed %s type: %s",V,Ge.message),Ra(null))}}}function fn(S){if(S){var L=S._owner,V=Ri(S.type,S._source,L?L.type:null);ie(V)}else ie(null)}var Aa;Aa=!1;function Ko(){if(q.current){var S=_t(q.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function Ht(S){if(S!==void 0){var L=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
Check your code at `+L+":"+V+"."}return""}function ul(S){return S!=null?Ht(S.__source):""}var Sr={};function Xa(S){var L=Ko();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 na(S,L){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Xa(L);if(!Sr[V]){Sr[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+_t(S._owner.type)+"."),fn(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),fn(null)}}}function bo(S,L){if(typeof S=="object"){if(jt(S))for(var V=0;V<S.length;V++){var G=S[V];Jt(G)&&na(G,L)}else if(Jt(S))S._store&&(S._store.validated=!0);else if(S){var se=D(S);if(typeof se=="function"&&se!==S.entries)for(var ze=se.call(S),Ee;!(Ee=ze.next()).done;)Jt(Ee.value)&&na(Ee.value,L)}}}function Or(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===g||L.$$typeof===w))V=L.propTypes;else return;if(V){var G=_t(L);ll(V,S.props,"prop",G,S)}else if(L.PropTypes!==void 0&&!Aa){Aa=!0;var se=_t(L);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"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"){fn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),fn(null);break}}S.ref!==null&&(fn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),fn(null))}}function Xo(S,L,V){var G=ln(S);if(!G){var se="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(se+=" 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=ul(L);ze?se+=ze:se+=Ko();var Ee;S===null?Ee="null":jt(S)?Ee="array":S!==void 0&&S.$$typeof===i?(Ee="<"+(_t(S.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Ee=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",Ee,se)}var Ge=lt.apply(this,arguments);if(Ge==null)return Ge;if(G)for(var ct=2;ct<arguments.length;ct++)bo(arguments[ct],S);return S===s?ar(Ge):Or(Ge),Ge}var Jr=!1;function mr(S){var L=Xo.bind(null,S);return L.type=S,Jr||(Jr=!0,Ce("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 Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),L}function li(S,L,V){for(var G=vn.apply(this,arguments),se=2;se<arguments.length;se++)bo(arguments[se],G.type);return Or(G),G}function Wu(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 se=G._updatedFibers.size;se>10&&Ce("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 yo=!1,Oa=null;function cl(S){if(Oa===null)try{var L=("require"+Math.random()).slice(0,7),V=e&&e[L];Oa=V.call(e,"timers").setImmediate}catch{Oa=function(se){yo===!1&&(yo=!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=se,ze.port2.postMessage(void 0)}}return Oa(S)}var gn=0,Fn=!1;function ql(S){{var L=gn;gn++,z.current===null&&(z.current=[]);var V=z.isBatchingLegacy,G;try{if(z.isBatchingLegacy=!0,G=S(),!V&&z.didScheduleLegacyUpdate){var se=z.current;se!==null&&(z.didScheduleLegacyUpdate=!1,ge(se))}}catch(Wt){throw qi(L),Wt}finally{z.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var ze=G,Ee=!1,Ge={then:function(Wt,Ot){Ee=!0,ze.then(function(Ut){qi(L),gn===0?W(Ut,Wt,Ot):Wt(Ut)},function(Ut){qi(L),Ot(Ut)})}};return!Fn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ee||(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 () => ...);"))}),Ge}else{var ct=G;if(qi(L),gn===0){var wt=z.current;wt!==null&&(ge(wt),z.current=null);var It={then:function(Wt,Ot){z.current===null?(z.current=[],W(ct,Wt,Ot)):Wt(ct)}};return It}else{var yt={then:function(Wt,Ot){Wt(ct)}};return yt}}}}function qi(S){S!==gn-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. "),gn=S}function W(S,L,V){{var G=z.current;if(G!==null)try{ge(G),cl(function(){G.length===0?(z.current=null,L(S)):W(S,L,V)})}catch(se){V(se)}else L(S)}}var ne=!1;function ge(S){if(!ne){ne=!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{ne=!1}}}var ut=Xo,dn=li,zn=mr,Kt={map:xr,forEach:gs,count:Bo,toArray:bs,only:Uo};t.Children=Kt,t.Component=Ze,t.Fragment=s,t.Profiler=p,t.PureComponent=at,t.StrictMode=u,t.Suspense=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=be,t.cloneElement=dn,t.createContext=jo,t.createElement=ut,t.createFactory=zn,t.createRef=Dt,t.forwardRef=Xe,t.isValidElement=Jt,t.lazy=Ue,t.memo=Cn,t.startTransition=Wu,t.unstable_act=ql,t.useCallback=Ei,t.useContext=Zt,t.useDebugValue=_a,t.useDeferredValue=Za,t.useEffect=Wr,t.useId=en,t.useImperativeHandle=Hu,t.useInsertionEffect=Ea,t.useLayoutEffect=Vo,t.useMemo=go,t.useReducer=Bn,t.useRef=cn,t.useState=Vn,t.useSyncExternalStore=Ka,t.useTransition=al,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})($7,$7.exports);(function(e){e.exports=$7.exports})(E);const _e=aY(E.exports),F7=iY({__proto__:null,default:_e},[E.exports]);var z7={},Wc={exports:{}},us={},YP={exports:{}},qP={};/**
* @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(We,lt){var At=We.length;We.push(lt),p(We,lt,At)}function s(We){return We.length===0?null:We[0]}function u(We){if(We.length===0)return null;var lt=We[0],At=We.pop();return At!==lt&&(We[0]=At,m(We,At,0)),lt}function p(We,lt,At){for(var vn=At;vn>0;){var Jt=vn-1>>>1,Tn=We[Jt];if(v(Tn,lt)>0)We[Jt]=lt,We[vn]=Tn,vn=Jt;else return}}function m(We,lt,At){for(var vn=At,Jt=We.length,Tn=Jt>>>1;vn<Tn;){var $n=(vn+1)*2-1,Dr=We[$n],Mn=$n+1,wi=We[Mn];if(v(Dr,lt)<0)Mn<Jt&&v(wi,Dr)<0?(We[vn]=wi,We[Mn]=lt,vn=Mn):(We[vn]=Dr,We[$n]=lt,vn=$n);else if(Mn<Jt&&v(wi,lt)<0)We[vn]=wi,We[Mn]=lt,vn=Mn;else return}}function v(We,lt){var At=We.sortIndex-lt.sortIndex;return At!==0?At:We.id-lt.id}var g=1,b=2,C=3,w=4,T=5;function A(We,lt){}var k=typeof performance=="object"&&typeof performance.now=="function";if(k){var I=performance;e.unstable_now=function(){return I.now()}}else{var D=Date,P=D.now();e.unstable_now=function(){return D.now()-P}}var F=1073741823,z=-1,q=250,Y=5e3,Q=1e4,ie=F,ae=[],pe=[],$e=1,te=null,ee=C,be=!1,Ce=!1,K=!1,le=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,de=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(We){for(var lt=s(pe);lt!==null;){if(lt.callback===null)u(pe);else if(lt.startTime<=We)u(pe),lt.sortIndex=lt.expirationTime,o(ae,lt);else return;lt=s(pe)}}function Le(We){if(K=!1,we(We),!Ce)if(s(ae)!==null)Ce=!0,nn(Me);else{var lt=s(pe);lt!==null&&Pt(Le,lt.startTime-We)}}function Me(We,lt){Ce=!1,K&&(K=!1,De()),be=!0;var At=ee;try{var vn;if(!n)return Ze(We,lt)}finally{te=null,ee=At,be=!1}}function Ze(We,lt){var At=lt;for(we(At),te=s(ae);te!==null&&!t&&!(te.expirationTime>At&&(!We||Ln()));){var vn=te.callback;if(typeof vn=="function"){te.callback=null,ee=te.priorityLevel;var Jt=te.expirationTime<=At,Tn=vn(Jt);At=e.unstable_now(),typeof Tn=="function"?te.callback=Tn:te===s(ae)&&u(ae),we(At)}else u(ae);te=s(ae)}if(te!==null)return!0;var $n=s(pe);return $n!==null&&Pt(Le,$n.startTime-At),!1}function Je(We,lt){switch(We){case g:case b:case C:case w:case T:break;default:We=C}var At=ee;ee=We;try{return lt()}finally{ee=At}}function it(We){var lt;switch(ee){case g:case b:case C:lt=C;break;default:lt=ee;break}var At=ee;ee=lt;try{return We()}finally{ee=At}}function Rt(We){var lt=ee;return function(){var At=ee;ee=lt;try{return We.apply(this,arguments)}finally{ee=At}}}function Ve(We,lt,At){var vn=e.unstable_now(),Jt;if(typeof At=="object"&&At!==null){var Tn=At.delay;typeof Tn=="number"&&Tn>0?Jt=vn+Tn:Jt=vn}else Jt=vn;var $n;switch(We){case g:$n=z;break;case b:$n=q;break;case T:$n=ie;break;case w:$n=Q;break;case C:default:$n=Y;break}var Dr=Jt+$n,Mn={id:$e++,callback:lt,priorityLevel:We,startTime:Jt,expirationTime:Dr,sortIndex:-1};return Jt>vn?(Mn.sortIndex=Jt,o(pe,Mn),s(ae)===null&&Mn===s(pe)&&(K?De():K=!0,Pt(Le,Jt-vn))):(Mn.sortIndex=Dr,o(ae,Mn),!Ce&&!be&&(Ce=!0,nn(Me))),Mn}function at(){}function St(){!Ce&&!be&&(Ce=!0,nn(Me))}function Dt(){return s(ae)}function He(We){We.callback=null}function jt(){return ee}var Se=!1,tt=null,Ct=-1,nt=i,on=-1;function Ln(){var We=e.unstable_now()-on;return!(We<nt)}function _t(){}function sn(We){if(We<0||We>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}We>0?nt=Math.floor(1e3/We):nt=i}var kn=function(){if(tt!==null){var We=e.unstable_now();on=We;var lt=!0,At=!0;try{At=tt(lt,We)}finally{At?bn():(Se=!1,tt=null)}}else Se=!1},bn;if(typeof de=="function")bn=function(){de(kn)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,et=Ye.port2;Ye.port1.onmessage=kn,bn=function(){et.postMessage(null)}}else bn=function(){le(kn,0)};function nn(We){tt=We,Se||(Se=!0,bn())}function Pt(We,lt){Ct=le(function(){We(e.unstable_now())},lt)}function De(){ve(Ct),Ct=-1}var qt=_t,_n=null;e.unstable_IdlePriority=T,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=w,e.unstable_NormalPriority=C,e.unstable_Profiling=_n,e.unstable_UserBlockingPriority=b,e.unstable_cancelCallback=He,e.unstable_continueExecution=St,e.unstable_forceFrameRate=sn,e.unstable_getCurrentPriorityLevel=jt,e.unstable_getFirstCallbackNode=Dt,e.unstable_next=it,e.unstable_pauseExecution=at,e.unstable_requestPaint=qt,e.unstable_runWithPriority=Je,e.unstable_scheduleCallback=Ve,e.unstable_shouldYield=Ln,e.unstable_wrapCallback=Rt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(qP);(function(e){e.exports=qP})(YP);/**
* @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=E.exports,t=YP.exports,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(r){i=r}function s(r){if(!i){for(var a=arguments.length,l=new Array(a>1?a-1:0),f=1;f<a;f++)l[f-1]=arguments[f];p("warn",r,l)}}function u(r){if(!i){for(var a=arguments.length,l=new Array(a>1?a-1:0),f=1;f<a;f++)l[f-1]=arguments[f];p("error",r,l)}}function p(r,a,l){{var f=n.ReactDebugCurrentFrame,h=f.getStackAddendum();h!==""&&(a+="%s",l=l.concat([h]));var x=l.map(function(_){return String(_)});x.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,x)}}var m=0,v=1,g=2,b=3,C=4,w=5,T=6,A=7,k=8,I=9,D=10,P=11,F=12,z=13,q=14,Y=15,Q=16,ie=17,ae=18,pe=19,$e=21,te=22,ee=23,be=24,Ce=25,K=!0,le=!1,ve=!1,de=!1,we=!1,Le=!0,Me=!1,Ze=!1,Je=!0,it=!0,Rt=!0,Ve=new Set,at={},St={};function Dt(r,a){He(r,a),He(r+"Capture",a)}function He(r,a){at[r]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),at[r]=a;{var l=r.toLowerCase();St[l]=r,r==="onDoubleClick"&&(St.ondblclick=r)}for(var f=0;f<a.length;f++)Ve.add(a[f])}var jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Se=Object.prototype.hasOwnProperty;function tt(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return l}}function Ct(r){try{return nt(r),!1}catch{return!0}}function nt(r){return""+r}function on(r,a){if(Ct(r))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,tt(r)),nt(r)}function Ln(r){if(Ct(r))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tt(r)),nt(r)}function _t(r,a){if(Ct(r))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,tt(r)),nt(r)}function sn(r,a){if(Ct(r))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,tt(r)),nt(r)}function kn(r){if(Ct(r))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",tt(r)),nt(r)}function bn(r){if(Ct(r))return u("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.",tt(r)),nt(r)}var Ye=0,et=1,nn=2,Pt=3,De=4,qt=5,_n=6,We=":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",lt=We+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",At=new RegExp("^["+We+"]["+lt+"]*$"),vn={},Jt={};function Tn(r){return Se.call(Jt,r)?!0:Se.call(vn,r)?!1:At.test(r)?(Jt[r]=!0,!0):(vn[r]=!0,u("Invalid attribute name: `%s`",r),!1)}function $n(r,a,l){return a!==null?a.type===Ye:l?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function Dr(r,a,l,f){if(l!==null&&l.type===Ye)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(l!==null)return!l.acceptsBooleans;var h=r.toLowerCase().slice(0,5);return h!=="data-"&&h!=="aria-"}default:return!1}}function Mn(r,a,l,f){if(a===null||typeof a>"u"||Dr(r,a,l,f))return!0;if(f)return!1;if(l!==null)switch(l.type){case Pt:return!a;case De:return a===!1;case qt:return isNaN(a);case _n:return isNaN(a)||a<1}return!1}function wi(r){return Rn.hasOwnProperty(r)?Rn[r]:null}function jn(r,a,l,f,h,x,_){this.acceptsBooleans=a===nn||a===Pt||a===De,this.attributeName=f,this.attributeNamespace=h,this.mustUseProperty=l,this.propertyName=r,this.type=a,this.sanitizeURL=x,this.removeEmptyString=_}var Rn={},Ni=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ni.forEach(function(r){Rn[r]=new jn(r,Ye,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0],l=r[1];Rn[a]=new jn(a,et,!1,l,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,Pt,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){Rn[r]=new jn(r,Pt,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){Rn[r]=new jn(r,De,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){Rn[r]=new jn(r,_n,!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,Bo=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,Bo);Rn[a]=new jn(a,et,!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,Bo);Rn[a]=new jn(a,et,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(xr,Bo);Rn[a]=new jn(a,et,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){Rn[r]=new jn(r,et,!1,r.toLowerCase(),null,!1,!1)});var gs="xlinkHref";Rn[gs]=new jn("xlinkHref",et,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){Rn[r]=new jn(r,et,!1,r.toLowerCase(),null,!0,!0)});var bs=/^[\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,Uo=!1;function jo(r){!Uo&&bs.test(r)&&(Uo=!0,u("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 hr(r,a,l,f){if(f.mustUseProperty){var h=f.propertyName;return r[h]}else{on(l,a),f.sanitizeURL&&jo(""+l);var x=f.attributeName,_=null;if(f.type===De){if(r.hasAttribute(x)){var O=r.getAttribute(x);return O===""?!0:Mn(a,l,f,!1)?O:O===""+l?l:O}}else if(r.hasAttribute(x)){if(Mn(a,l,f,!1))return r.getAttribute(x);if(f.type===Pt)return l;_=r.getAttribute(x)}return Mn(a,l,f,!1)?_===null?l:_:_===""+l?l:_}}function Vi(r,a,l,f){{if(!Tn(a))return;if(!r.hasAttribute(a))return l===void 0?void 0:null;var h=r.getAttribute(a);return on(l,a),h===""+l?l:h}}function qa(r,a,l,f){var h=wi(a);if(!$n(a,h,f)){if(Mn(a,l,h,f)&&(l=null),f||h===null){if(Tn(a)){var x=a;l===null?r.removeAttribute(x):(on(l,a),r.setAttribute(x,""+l))}return}var _=h.mustUseProperty;if(_){var O=h.propertyName;if(l===null){var M=h.type;r[O]=M===Pt?!1:""}else r[O]=l;return}var U=h.attributeName,H=h.attributeNamespace;if(l===null)r.removeAttribute(U);else{var oe=h.type,re;oe===Pt||oe===De&&l===!0?re="":(on(l,U),re=""+l,h.sanitizeURL&&jo(re.toString())),H?r.setAttributeNS(H,U,re):r.setAttribute(U,re)}}}var Hi=Symbol.for("react.element"),X=Symbol.for("react.portal"),Ue=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Et=Symbol.for("react.profiler"),ln=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),ot=Symbol.for("react.forward_ref"),Zt=Symbol.for("react.suspense"),Vn=Symbol.for("react.suspense_list"),Bn=Symbol.for("react.memo"),cn=Symbol.for("react.lazy"),Wr=Symbol.for("react.scope"),Ea=Symbol.for("react.debug_trace_mode"),Vo=Symbol.for("react.offscreen"),Ei=Symbol.for("react.legacy_hidden"),go=Symbol.for("react.cache"),Hu=Symbol.for("react.tracing_marker"),_a=Symbol.iterator,al="@@iterator";function Za(r){if(r===null||typeof r!="object")return null;var a=_a&&r[_a]||r[al];return typeof a=="function"?a:null}var en=Object.assign,Ka=0,_i,Ho,ys,Wo,xs,Ss,Go;function Yo(){}Yo.__reactDisabledLog=!0;function Cs(){{if(Ka===0){_i=console.log,Ho=console.info,ys=console.warn,Wo=console.error,xs=console.group,Ss=console.groupCollapsed,Go=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Yo,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Ka++}}function ol(){{if(Ka--,Ka===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:en({},r,{value:_i}),info:en({},r,{value:Ho}),warn:en({},r,{value:ys}),error:en({},r,{value:Wo}),group:en({},r,{value:xs}),groupCollapsed:en({},r,{value:Ss}),groupEnd:en({},r,{value:Go})})}Ka<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sl=n.ReactCurrentDispatcher,Ta;function Br(r,a,l){{if(Ta===void 0)try{throw Error()}catch(h){var f=h.stack.trim().match(/\n( *(at )?)/);Ta=f&&f[1]||""}return`
`+Ta+r}}var Wi=!1,Ti;{var Gi=typeof WeakMap=="function"?WeakMap:Map;Ti=new Gi}function ws(r,a){if(!r||Wi)return"";{var l=Ti.get(r);if(l!==void 0)return l}var f;Wi=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=sl.current,sl.current=null,Cs();try{if(a){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(xe){f=xe}Reflect.construct(r,[],_)}else{try{_.call()}catch(xe){f=xe}r.call(_.prototype)}}else{try{throw Error()}catch(xe){f=xe}r()}}catch(xe){if(xe&&f&&typeof xe.stack=="string"){for(var O=xe.stack.split(`
`),M=f.stack.split(`
`),U=O.length-1,H=M.length-1;U>=1&&H>=0&&O[U]!==M[H];)H--;for(;U>=1&&H>=0;U--,H--)if(O[U]!==M[H]){if(U!==1||H!==1)do if(U--,H--,H<0||O[U]!==M[H]){var oe=`
`+O[U].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),typeof r=="function"&&Ti.set(r,oe),oe}while(U>=1&&H>=0);break}}}finally{Wi=!1,sl.current=x,ol(),Error.prepareStackTrace=h}var re=r?r.displayName||r.name:"",ye=re?Br(re):"";return typeof r=="function"&&Ti.set(r,ye),ye}function qo(r,a,l){return ws(r,!0)}function Ns(r,a,l){return ws(r,!1)}function Yl(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function Ri(r,a,l){if(r==null)return"";if(typeof r=="function")return ws(r,Yl(r));if(typeof r=="string")return Br(r);switch(r){case Zt:return Br("Suspense");case Vn:return Br("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case ot:return Ns(r.render);case Bn:return Ri(r.type,a,l);case cn:{var f=r,h=f._payload,x=f._init;try{return Ri(x(h),a,l)}catch{}}}return""}function Zo(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case w:return Br(r.type);case Q:return Br("Lazy");case z:return Br("Suspense");case pe:return Br("SuspenseList");case m:case g:case Y:return Ns(r.type);case P:return Ns(r.type.render);case v:return qo(r.type);default:return""}}function Yi(r){try{var a="",l=r;do a+=Zo(l),l=l.return;while(l);return a}catch(f){return`
Error generating stack: `+f.message+`
`+f.stack}}function Ra(r,a,l){var f=r.displayName;if(f)return f;var h=a.displayName||a.name||"";return h!==""?l+"("+h+")":l}function ll(r){return r.displayName||"Context"}function fn(r){if(r==null)return null;if(typeof r.tag=="number"&&u("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 Et:return"Profiler";case Xe:return"StrictMode";case Zt:return"Suspense";case Vn:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Cn:var a=r;return ll(a)+".Consumer";case ln:var l=r;return ll(l._context)+".Provider";case ot:return Ra(r,r.render,"ForwardRef");case Bn:var f=r.displayName||null;return f!==null?f:fn(r.type)||"Memo";case cn:{var h=r,x=h._payload,_=h._init;try{return fn(_(x))}catch{return null}}}return null}function Aa(r,a,l){var f=a.displayName||a.name||"";return r.displayName||(f!==""?l+"("+f+")":l)}function Ko(r){return r.displayName||"Context"}function Ht(r){var a=r.tag,l=r.type;switch(a){case be:return"Cache";case I:var f=l;return Ko(f)+".Consumer";case D:var h=l;return Ko(h._context)+".Provider";case ae:return"DehydratedFragment";case P:return Aa(l,l.render,"ForwardRef");case A:return"Fragment";case w:return l;case C:return"Portal";case b:return"Root";case T:return"Text";case Q:return fn(l);case k:return l===Xe?"StrictMode":"Mode";case te:return"Offscreen";case F:return"Profiler";case $e:return"Scope";case z:return"Suspense";case pe:return"SuspenseList";case Ce:return"TracingMarker";case v:case m:case ie:case g:case q:case Y:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;break}return null}var ul=n.ReactDebugCurrentFrame,Sr=null,Xa=!1;function na(){{if(Sr===null)return null;var r=Sr._debugOwner;if(r!==null&&typeof r<"u")return Ht(r)}return null}function bo(){return Sr===null?"":Yi(Sr)}function Or(){ul.getCurrentStack=null,Sr=null,Xa=!1}function ar(r){ul.getCurrentStack=r===null?null:bo,Sr=r,Xa=!1}function Xo(){return Sr}function Jr(r){Xa=r}function mr(r){return""+r}function li(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return bn(r),r;default:return""}}var Wu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yo(r,a){Wu[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("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||u("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 Oa(r){var a=r.type,l=r.nodeName;return l&&l.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function cl(r){return r._valueTracker}function gn(r){r._valueTracker=null}function Fn(r){var a="";return r&&(Oa(r)?a=r.checked?"true":"false":a=r.value),a}function ql(r){var a=Oa(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);bn(r[a]);var f=""+r[a];if(!(r.hasOwnProperty(a)||typeof l>"u"||typeof l.get!="function"||typeof l.set!="function")){var h=l.get,x=l.set;Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(O){bn(O),f=""+O,x.call(this,O)}}),Object.defineProperty(r,a,{enumerable:l.enumerable});var _={getValue:function(){return f},setValue:function(O){bn(O),f=""+O},stopTracking:function(){gn(r),delete r[a]}};return _}}function qi(r){cl(r)||(r._valueTracker=ql(r))}function W(r){if(!r)return!1;var a=cl(r);if(!a)return!0;var l=a.getValue(),f=Fn(r);return f!==l?(a.setValue(f),!0):!1}function ne(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 ge=!1,ut=!1,dn=!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 l=r,f=a.checked,h=en({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??l._wrapperState.initialChecked});return h}function L(r,a){yo("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!ut&&(u("%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",na()||"A component",a.type),ut=!0),a.value!==void 0&&a.defaultValue!==void 0&&!ge&&(u("%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",na()||"A component",a.type),ge=!0);var l=r,f=a.defaultValue==null?"":a.defaultValue;l._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:li(a.value!=null?a.value:f),controlled:Kt(a)}}function V(r,a){var l=r,f=a.checked;f!=null&&qa(l,"checked",f,!1)}function G(r,a){var l=r;{var f=Kt(a);!l._wrapperState.controlled&&f&&!zn&&(u("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),l._wrapperState.controlled&&!f&&!dn&&(u("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"),dn=!0)}V(r,a);var h=li(a.value),x=a.type;if(h!=null)x==="number"?(h===0&&l.value===""||l.value!=h)&&(l.value=mr(h)):l.value!==mr(h)&&(l.value=mr(h));else if(x==="submit"||x==="reset"){l.removeAttribute("value");return}a.hasOwnProperty("value")?Ge(l,a.type,h):a.hasOwnProperty("defaultValue")&&Ge(l,a.type,li(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(l.defaultChecked=!!a.defaultChecked)}function se(r,a,l){var f=r;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type,x=h==="submit"||h==="reset";if(x&&(a.value===void 0||a.value===null))return;var _=mr(f._wrapperState.initialValue);l||_!==f.value&&(f.value=_),f.defaultValue=_}var O=f.name;O!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,O!==""&&(f.name=O)}function ze(r,a){var l=r;G(l,a),Ee(l,a)}function Ee(r,a){var l=a.name;if(a.type==="radio"&&l!=null){for(var f=r;f.parentNode;)f=f.parentNode;on(l,"name");for(var h=f.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),x=0;x<h.length;x++){var _=h[x];if(!(_===r||_.form!==r.form)){var O=zt(_);if(!O)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(_),G(_,O)}}}}function Ge(r,a,l){(a!=="number"||ne(r.ownerDocument)!==r)&&(l==null?r.defaultValue=mr(r._wrapperState.initialValue):r.defaultValue!==mr(l)&&(r.defaultValue=mr(l)))}var ct=!1,wt=!1,It=!1;function yt(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(l){l!=null&&(typeof l=="string"||typeof l=="number"||wt||(wt=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(It||(It=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!ct&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ct=!0)}function Wt(r,a){a.value!=null&&r.setAttribute("value",mr(li(a.value)))}var Ot=Array.isArray;function Ut(r){return Ot(r)}var La;La=!1;function Ai(){var r=na();return r?`
Check the render method of \``+r+"`.":""}var Qo=["value","defaultValue"];function Gu(r){{yo("select",r);for(var a=0;a<Qo.length;a++){var l=Qo[a];if(r[l]!=null){var f=Ut(r[l]);r.multiple&&!f?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,Ai()):!r.multiple&&f&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,Ai())}}}}function Dn(r,a,l,f){var h=r.options;if(a){for(var x=l,_={},O=0;O<x.length;O++)_["$"+x[O]]=!0;for(var M=0;M<h.length;M++){var U=_.hasOwnProperty("$"+h[M].value);h[M].selected!==U&&(h[M].selected=U),U&&f&&(h[M].defaultSelected=!0)}}else{for(var H=mr(li(l)),oe=null,re=0;re<h.length;re++){if(h[re].value===H){h[re].selected=!0,f&&(h[re].defaultSelected=!0);return}oe===null&&!h[re].disabled&&(oe=h[re])}oe!==null&&(oe.selected=!0)}}function ka(r,a){return en({},a,{value:void 0})}function Es(r,a){var l=r;Gu(a),l._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!La&&(u("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"),La=!0)}function _d(r,a){var l=r;l.multiple=!!a.multiple;var f=a.value;f!=null?Dn(l,!!a.multiple,f,!1):a.defaultValue!=null&&Dn(l,!!a.multiple,a.defaultValue,!0)}function i0(r,a){var l=r,f=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Dn(l,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?Dn(l,!!a.multiple,a.defaultValue,!0):Dn(l,!!a.multiple,a.multiple?[]:"",!1))}function Z3(r,a){var l=r,f=a.value;f!=null&&Dn(l,!!a.multiple,f,!1)}var Qb=!1;function a0(r,a){var l=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(l._wrapperState.initialValue)});return f}function o0(r,a){var l=r;yo("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Qb&&(u("%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",na()||"A component"),Qb=!0);var f=a.value;if(f==null){var h=a.children,x=a.defaultValue;if(h!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ut(h)){if(h.length>1)throw new Error("<textarea> can only have at most one child.");h=h[0]}x=h}}x==null&&(x=""),f=x}l._wrapperState={initialValue:li(f)}}function Td(r,a){var l=r,f=li(a.value),h=li(a.defaultValue);if(f!=null){var x=mr(f);x!==l.value&&(l.value=x),a.defaultValue==null&&l.defaultValue!==x&&(l.defaultValue=x)}h!=null&&(l.defaultValue=mr(h))}function Yu(r,a){var l=r,f=l.textContent;f===l._wrapperState.initialValue&&f!==""&&f!==null&&(l.value=f)}function K3(r,a){Td(r,a)}var _s="http://www.w3.org/1999/xhtml",Jb="http://www.w3.org/1998/Math/MathML",Rd="http://www.w3.org/2000/svg";function Ad(r){switch(r){case"svg":return Rd;case"math":return Jb;default:return _s}}function Om(r,a){return r==null||r===_s?Ad(a):r===Rd&&a==="foreignObject"?_s:r}var X3=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,l,f,h){MSApp.execUnsafeLocalFunction(function(){return r(a,l,f,h)})}:r},qc,Lm=X3(function(r,a){if(r.namespaceURI===Rd&&!("innerHTML"in r)){qc=qc||document.createElement("div"),qc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var l=qc.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild);return}r.innerHTML=a}),Ma=1,Ts=3,Hn=8,Jo=9,qu=11,Od=function(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===Ts){l.nodeValue=a;return}}r.textContent=a},ey={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"]},Ld={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 Q3(r,a){return r+a.charAt(0).toUpperCase()+a.substring(1)}var J3=["Webkit","ms","Moz","O"];Object.keys(Ld).forEach(function(r){J3.forEach(function(a){Ld[Q3(a,r)]=Ld[r]})});function s0(r,a,l){var f=a==null||typeof a=="boolean"||a==="";return f?"":!l&&typeof a=="number"&&a!==0&&!(Ld.hasOwnProperty(r)&&Ld[r])?a+"px":(sn(a,r),(""+a).trim())}var e4=/([A-Z])/g,Zc=/^ms-/;function t4(r){return r.replace(e4,"-$1").toLowerCase().replace(Zc,"-ms-")}var ty=function(){};{var l0=/^(?:webkit|moz|o)[A-Z]/,ny=/^-ms-/,Zl=/-(.)/g,kd=/;\s*$/,Kc={},u0={},ry=!1,Zu=!1,es=function(r){return r.replace(Zl,function(a,l){return l.toUpperCase()})},iy=function(r){Kc.hasOwnProperty(r)&&Kc[r]||(Kc[r]=!0,u("Unsupported style property %s. Did you mean %s?",r,es(r.replace(ny,"ms-"))))},n4=function(r){Kc.hasOwnProperty(r)&&Kc[r]||(Kc[r]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},r4=function(r,a){u0.hasOwnProperty(a)&&u0[a]||(u0[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,a.replace(kd,"")))},i4=function(r,a){ry||(ry=!0,u("`NaN` is an invalid value for the `%s` css style property.",r))},a4=function(r,a){Zu||(Zu=!0,u("`Infinity` is an invalid value for the `%s` css style property.",r))};ty=function(r,a){r.indexOf("-")>-1?iy(r):l0.test(r)?n4(r):kd.test(a)&&r4(r,a),typeof a=="number"&&(isNaN(a)?i4(r,a):isFinite(a)||a4(r,a))}}var o4=ty;function Xc(r){{var a="",l="";for(var f in r)if(!!r.hasOwnProperty(f)){var h=r[f];if(h!=null){var x=f.indexOf("--")===0;a+=l+(x?f:t4(f))+":",a+=s0(f,h,x),l=";"}}return a||null}}function ce(r,a){var l=r.style;for(var f in a)if(!!a.hasOwnProperty(f)){var h=f.indexOf("--")===0;h||o4(f,a[f]);var x=s0(f,a[f],h);f==="float"&&(f="cssFloat"),h?l.setProperty(f,x):l[f]=x}}function Ae(r){return r==null||typeof r=="boolean"||r===""}function Ne(r){var a={};for(var l in r)for(var f=ey[l]||[l],h=0;h<f.length;h++)a[f[h]]=l;return a}function vt(r,a){{if(!a)return;var l=Ne(r),f=Ne(a),h={};for(var x in l){var _=l[x],O=f[x];if(O&&_!==O){var M=_+","+O;if(h[M])continue;h[M]=!0,u("%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.",Ae(r[_])?"Removing":"Updating",_,O)}}}}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),ei="__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"||!(ei 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&&u("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 fl(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 km={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"},Qa={"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},dl={},s4=new RegExp("^(aria)-["+lt+"]*$"),Qc=new RegExp("^(aria)[A-Z]["+lt+"]*$");function Mm(r,a){{if(Se.call(dl,a)&&dl[a])return!0;if(Qc.test(a)){var l="aria-"+a.slice(4).toLowerCase(),f=Qa.hasOwnProperty(l)?l:null;if(f==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),dl[a]=!0,!0;if(a!==f)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),dl[a]=!0,!0}if(s4.test(a)){var h=a.toLowerCase(),x=Qa.hasOwnProperty(h)?h:null;if(x==null)return dl[a]=!0,!1;if(a!==x)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,x),dl[a]=!0,!0}}return!0}function Dm(r,a){{var l=[];for(var f in a){var h=Mm(r,f);h||l.push(f)}var x=l.map(function(_){return"`"+_+"`"}).join(", ");l.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r):l.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r)}}function er(r,a){fl(r,a)||Dm(r,a)}var ay=!1;function oy(r,a){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;a!=null&&a.value===null&&!ay&&(ay=!0,r==="select"&&a.multiple?u("`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):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var Md=function(){};{var ra={},sy=/^on./,l4=/^on[^A-Z]/,Pm=new RegExp("^(aria)-["+lt+"]*$"),Kl=new RegExp("^(aria)[A-Z]["+lt+"]*$");Md=function(r,a,l,f){if(Se.call(ra,a)&&ra[a])return!0;var h=a.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return u("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."),ra[a]=!0,!0;if(f!=null){var x=f.registrationNameDependencies,_=f.possibleRegistrationNames;if(x.hasOwnProperty(a))return!0;var O=_.hasOwnProperty(h)?_[h]:null;if(O!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,O),ra[a]=!0,!0;if(sy.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),ra[a]=!0,!0}else if(sy.test(a))return l4.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),ra[a]=!0,!0;if(Pm.test(a)||Kl.test(a))return!0;if(h==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ra[a]=!0,!0;if(h==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ra[a]=!0,!0;if(h==="is"&&l!==null&&l!==void 0&&typeof l!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),ra[a]=!0,!0;if(typeof l=="number"&&isNaN(l))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),ra[a]=!0,!0;var M=wi(a),U=M!==null&&M.type===Ye;if(km.hasOwnProperty(h)){var H=km[h];if(H!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,H),ra[a]=!0,!0}else if(!U&&a!==h)return u("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,h),ra[a]=!0,!0;return typeof l=="boolean"&&Dr(a,l,M,!1)?(l?u('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()}.',l,a,a,l,a):u('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.',l,a,a,l,a,a,a),ra[a]=!0,!0):U?!0:Dr(a,l,M,!1)?(ra[a]=!0,!1):((l==="false"||l==="true")&&M!==null&&M.type===Pt&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,a,l==="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,l),ra[a]=!0),!0)}}var Im=function(r,a,l){{var f=[];for(var h in a){var x=Md(r,h,a[h],l);x||f.push(h)}var _=f.map(function(O){return"`"+O+"`"}).join(", ");f.length===1?u("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 ",_,r):f.length>1&&u("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 ",_,r)}};function ly(r,a,l){fl(r,a)||Im(r,a,l)}var Dd=1,$m=1<<1,Jc=1<<2,Fm=Dd|$m|Jc,ef=null;function Pd(r){ef!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ef=r}function Ku(){ef===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ef=null}function zm(r){return r===ef}function c0(r){var a=r.target||r.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Ts?a.parentNode:a}var f0=null,tf=null,pl=null;function Id(r){var a=Qe(r);if(!!a){if(typeof f0!="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 l=a.stateNode;if(l){var f=zt(l);f0(a.stateNode,a.type,f)}}}function d0(r){f0=r}function uy(r){tf?pl?pl.push(r):pl=[r]:tf=r}function cy(){return tf!==null||pl!==null}function fy(){if(!!tf){var r=tf,a=pl;if(tf=null,pl=null,Id(r),a)for(var l=0;l<a.length;l++)Id(a[l])}}var dy=function(r,a){return r(a)},Gr=function(){},ui=!1;function u4(){var r=cy();r&&(Gr(),fy())}function py(r,a,l){if(ui)return r(a,l);ui=!0;try{return dy(r,a,l)}finally{ui=!1,u4()}}function my(r,a,l){dy=r,Gr=l}function c4(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function p0(r,a,l){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!!(l.disabled&&c4(a));default:return!1}}function ml(r,a){var l=r.stateNode;if(l===null)return null;var f=zt(l);if(f===null)return null;var h=f[a];if(p0(a,r.type,f))return null;if(h&&typeof h!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof h+"` type.");return h}var $d=!1;if(jt)try{var Rs={};Object.defineProperty(Rs,"passive",{get:function(){$d=!0}}),window.addEventListener("test",Rs,Rs),window.removeEventListener("test",Rs,Rs)}catch{$d=!1}function nf(r,a,l,f,h,x,_,O,M){var U=Array.prototype.slice.call(arguments,3);try{a.apply(l,U)}catch(H){this.onError(H)}}var rf=nf;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var af=document.createElement("react");rf=function(a,l,f,h,x,_,O,M,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"),oe=!1,re=!0,ye=window.event,xe=Object.getOwnPropertyDescriptor(window,"event");function Te(){af.removeEventListener(Re,Lt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ye)}var mt=Array.prototype.slice.call(arguments,3);function Lt(){oe=!0,Te(),l.apply(f,mt),re=!1}var Nt,In=!1,En=!1;function me(he){if(Nt=he.error,In=!0,Nt===null&&he.colno===0&&he.lineno===0&&(En=!0),he.defaultPrevented&&Nt!=null&&typeof Nt=="object")try{Nt._suppressLogging=!0}catch{}}var Re="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",me),af.addEventListener(Re,Lt,!1),H.initEvent(Re,!1,!1),af.dispatchEvent(H),xe&&Object.defineProperty(window,"event",xe),oe&&re&&(In?En&&(Nt=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.")):Nt=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(Nt)),window.removeEventListener("error",me),!oe)return Te(),nf.apply(this,arguments)}}var of=rf,sf=!1,Bm=null,Um=!1,m0=null,f4={onError:function(r){sf=!0,Bm=r}};function lf(r,a,l,f,h,x,_,O,M){sf=!1,Bm=null,of.apply(f4,arguments)}function Fd(r,a,l,f,h,x,_,O,M){if(lf.apply(this,arguments),sf){var U=Xl();Um||(Um=!0,m0=U)}}function hy(){if(Um){var r=m0;throw Um=!1,m0=null,r}}function B(){return sf}function Xl(){if(sf){var r=Bm;return sf=!1,Bm=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 hl(r){return r._reactInternals}function xo(r){return r._reactInternals!==void 0}function An(r,a){r._reactInternals=a}var Bt=0,uf=1,Yr=2,pn=4,Xu=16,zd=32,h0=64,Un=128,vl=256,Zi=512,Qu=1024,ts=2048,gl=4096,Ju=8192,jm=16384,bl=ts|pn|h0|Zi|Qu|jm,d4=32767,Bd=32768,ia=65536,v0=131072,vy=1048576,yl=2097152,ec=4194304,g0=8388608,ti=16777216,Vm=33554432,b0=pn|Qu|0,y0=Yr|pn|Xu|zd|Zi|gl|Ju,Ud=pn|h0|Zi|Ju,cf=ts|Xu,As=ec|g0|yl,gy=n.ReactCurrentOwner;function tc(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(Yr|gl))!==Bt&&(l=a.return),f=a.return;while(f)}return a.tag===b?l:null}function by(r){if(r.tag===z){var a=r.memoizedState;if(a===null){var l=r.alternate;l!==null&&(a=l.memoizedState)}if(a!==null)return a.dehydrated}return null}function Hm(r){return r.tag===b?r.stateNode.containerInfo:null}function jd(r){return tc(r)===r}function Wm(r){{var a=gy.current;if(a!==null&&a.tag===v){var l=a,f=l.stateNode;f._warnedAboutRefsInRender||u("%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.",Ht(l)||"A component"),f._warnedAboutRefsInRender=!0}}var h=hl(r);return h?tc(h)===h:!1}function yy(r){if(tc(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function x0(r){var a=r.alternate;if(!a){var l=tc(r);if(l===null)throw new Error("Unable to find node on an unmounted component.");return l!==r?null:r}for(var f=r,h=a;;){var x=f.return;if(x===null)break;var _=x.alternate;if(_===null){var O=x.return;if(O!==null){f=h=O;continue}break}if(x.child===_.child){for(var M=x.child;M;){if(M===f)return yy(x),r;if(M===h)return yy(x),a;M=M.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==h.return)f=x,h=_;else{for(var U=!1,H=x.child;H;){if(H===f){U=!0,f=x,h=_;break}if(H===h){U=!0,h=x,f=_;break}H=H.sibling}if(!U){for(H=_.child;H;){if(H===f){U=!0,f=_,h=x;break}if(H===h){U=!0,h=_,f=x;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!==h)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!==b)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?r:a}function xy(r){var a=x0(r);return a!==null?Os(a):null}function Os(r){if(r.tag===w||r.tag===T)return r;for(var a=r.child;a!==null;){var l=Os(a);if(l!==null)return l;a=a.sibling}return null}function S0(r){var a=x0(r);return a!==null?Ql(a):null}function Ql(r){if(r.tag===w||r.tag===T)return r;for(var a=r.child;a!==null;){if(a.tag!==C){var l=Ql(a);if(l!==null)return l}a=a.sibling}return null}var Ja=t.unstable_scheduleCallback,p4=t.unstable_cancelCallback,Sy=t.unstable_shouldYield,Cy=t.unstable_requestPaint,Pr=t.unstable_now,Jl=t.unstable_getCurrentPriorityLevel,Vd=t.unstable_ImmediatePriority,C0=t.unstable_UserBlockingPriority,Ls=t.unstable_NormalPriority,m4=t.unstable_LowPriority,Gm=t.unstable_IdlePriority,Oi=t.unstable_yieldValue,w0=t.unstable_setDisableYieldValue,nc=null,vr=null,st=null,eo=!1,Li=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function wy(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 u("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{Je&&(r=en({},r,{getLaneLabelMap:g4,injectProfilingHooks:E0})),nc=a.inject(r),vr=a}catch(l){u("React instrumentation encountered an error: %s.",l)}return!!a.checkDCE}function aa(r,a){if(vr&&typeof vr.onScheduleFiberRoot=="function")try{vr.onScheduleFiberRoot(nc,r,a)}catch(l){eo||(eo=!0,u("React instrumentation encountered an error: %s",l))}}function N0(r,a){if(vr&&typeof vr.onCommitFiberRoot=="function")try{var l=(r.current.flags&Un)===Un;if(it){var f;switch(a){case sa:f=Vd;break;case Ps:f=C0;break;case Cr:f=Ls;break;case oh:f=Gm;break;default:f=Ls;break}vr.onCommitFiberRoot(nc,r,f,l)}}catch(h){eo||(eo=!0,u("React instrumentation encountered an error: %s",h))}}function h4(r){if(vr&&typeof vr.onPostCommitFiberRoot=="function")try{vr.onPostCommitFiberRoot(nc,r)}catch(a){eo||(eo=!0,u("React instrumentation encountered an error: %s",a))}}function v4(r){if(vr&&typeof vr.onCommitFiberUnmount=="function")try{vr.onCommitFiberUnmount(nc,r)}catch(a){eo||(eo=!0,u("React instrumentation encountered an error: %s",a))}}function ci(r){if(typeof Oi=="function"&&(w0(r),o(r)),vr&&typeof vr.setStrictMode=="function")try{vr.setStrictMode(nc,r)}catch(a){eo||(eo=!0,u("React instrumentation encountered an error: %s",a))}}function E0(r){st=r}function g4(){{for(var r=new Map,a=1,l=0;l<M0;l++){var f=w4(a);r.set(a,f),a*=2}return r}}function Hd(r){st!==null&&typeof st.markCommitStarted=="function"&&st.markCommitStarted(r)}function _0(){st!==null&&typeof st.markCommitStopped=="function"&&st.markCommitStopped()}function Wd(r){st!==null&&typeof st.markComponentRenderStarted=="function"&&st.markComponentRenderStarted(r)}function ff(){st!==null&&typeof st.markComponentRenderStopped=="function"&&st.markComponentRenderStopped()}function Gd(r){st!==null&&typeof st.markComponentPassiveEffectMountStarted=="function"&&st.markComponentPassiveEffectMountStarted(r)}function b4(){st!==null&&typeof st.markComponentPassiveEffectMountStopped=="function"&&st.markComponentPassiveEffectMountStopped()}function y4(r){st!==null&&typeof st.markComponentPassiveEffectUnmountStarted=="function"&&st.markComponentPassiveEffectUnmountStarted(r)}function T0(){st!==null&&typeof st.markComponentPassiveEffectUnmountStopped=="function"&&st.markComponentPassiveEffectUnmountStopped()}function Ny(r){st!==null&&typeof st.markComponentLayoutEffectMountStarted=="function"&&st.markComponentLayoutEffectMountStarted(r)}function x4(){st!==null&&typeof st.markComponentLayoutEffectMountStopped=="function"&&st.markComponentLayoutEffectMountStopped()}function Ey(r){st!==null&&typeof st.markComponentLayoutEffectUnmountStarted=="function"&&st.markComponentLayoutEffectUnmountStarted(r)}function _y(){st!==null&&typeof st.markComponentLayoutEffectUnmountStopped=="function"&&st.markComponentLayoutEffectUnmountStopped()}function Ty(r,a,l){st!==null&&typeof st.markComponentErrored=="function"&&st.markComponentErrored(r,a,l)}function R0(r,a,l){st!==null&&typeof st.markComponentSuspended=="function"&&st.markComponentSuspended(r,a,l)}function S4(r){st!==null&&typeof st.markLayoutEffectsStarted=="function"&&st.markLayoutEffectsStarted(r)}function A0(){st!==null&&typeof st.markLayoutEffectsStopped=="function"&&st.markLayoutEffectsStopped()}function Ry(r){st!==null&&typeof st.markPassiveEffectsStarted=="function"&&st.markPassiveEffectsStarted(r)}function Ay(){st!==null&&typeof st.markPassiveEffectsStopped=="function"&&st.markPassiveEffectsStopped()}function O0(r){st!==null&&typeof st.markRenderStarted=="function"&&st.markRenderStarted(r)}function Ym(){st!==null&&typeof st.markRenderYielded=="function"&&st.markRenderYielded()}function Oy(){st!==null&&typeof st.markRenderStopped=="function"&&st.markRenderStopped()}function Ly(r){st!==null&&typeof st.markRenderScheduled=="function"&&st.markRenderScheduled(r)}function ky(r,a){st!==null&&typeof st.markForceUpdateScheduled=="function"&&st.markForceUpdateScheduled(r,a)}function L0(r,a){st!==null&&typeof st.markStateUpdateScheduled=="function"&&st.markStateUpdateScheduled(r,a)}var $t=0,wn=1,Wn=2,Ur=8,So=16,My=Math.clz32?Math.clz32:C4,k0=Math.log,yn=Math.LN2;function C4(r){var a=r>>>0;return a===0?32:31-(k0(a)/yn|0)|0}var M0=31,Fe=0,ni=0,Yt=1,df=2,qr=4,rc=8,to=16,ic=32,ac=4194240,pf=64,oa=128,ks=256,Yd=512,qm=1024,mf=2048,Zm=4096,qd=8192,Km=16384,Zd=32768,Kd=65536,Ms=131072,D0=262144,Ds=524288,Xm=1048576,Qm=2097152,hf=130023424,vf=4194304,P0=8388608,I0=16777216,Jm=33554432,eh=67108864,Dy=vf,gf=134217728,$0=268435455,fi=268435456,Ki=536870912,no=1073741824;function w4(r){{if(r&Yt)return"Sync";if(r&df)return"InputContinuousHydration";if(r&qr)return"InputContinuous";if(r&rc)return"DefaultHydration";if(r&to)return"Default";if(r&ic)return"TransitionHydration";if(r&ac)return"Transition";if(r&hf)return"Retry";if(r&gf)return"SelectiveHydration";if(r&fi)return"IdleHydration";if(r&Ki)return"Idle";if(r&no)return"Offscreen"}}var tr=-1,xl=pf,Xd=vf;function bf(r){switch(Sl(r)){case Yt:return Yt;case df:return df;case qr:return qr;case rc:return rc;case to:return to;case ic:return ic;case pf:case oa:case ks:case Yd:case qm:case mf:case Zm:case qd:case Km:case Zd:case Kd:case Ms:case D0:case Ds:case Xm:case Qm:return r&ac;case vf:case P0:case I0:case Jm:case eh:return r&hf;case gf:return gf;case fi:return fi;case Ki:return Ki;case no:return no;default:return u("Should have found matching lanes. This is a bug in React."),r}}function th(r,a){var l=r.pendingLanes;if(l===Fe)return Fe;var f=Fe,h=r.suspendedLanes,x=r.pingedLanes,_=l&$0;if(_!==Fe){var O=_&~h;if(O!==Fe)f=bf(O);else{var M=_&x;M!==Fe&&(f=bf(M))}}else{var U=l&~h;U!==Fe?f=bf(U):x!==Fe&&(f=bf(x))}if(f===Fe)return Fe;if(a!==Fe&&a!==f&&(a&h)===Fe){var H=Sl(f),oe=Sl(a);if(H>=oe||H===to&&(oe&ac)!==Fe)return a}(f&qr)!==Fe&&(f|=l&to);var re=r.entangledLanes;if(re!==Fe)for(var ye=r.entanglements,xe=f&re;xe>0;){var Te=eu(xe),mt=1<<Te;f|=ye[Te],xe&=~mt}return f}function Py(r,a){for(var l=r.eventTimes,f=tr;a>0;){var h=eu(a),x=1<<h,_=l[h];_>f&&(f=_),a&=~x}return f}function yf(r,a){switch(r){case Yt:case df:case qr:return a+250;case rc:case to:case ic:case pf:case oa:case ks:case Yd:case qm:case mf:case Zm:case qd:case Km:case Zd:case Kd:case Ms:case D0:case Ds:case Xm:case Qm:return a+5e3;case vf:case P0:case I0:case Jm:case eh:return tr;case gf:case fi:case Ki:case no:return tr;default:return u("Should have found matching lanes. This is a bug in React."),tr}}function Qd(r,a){for(var l=r.pendingLanes,f=r.suspendedLanes,h=r.pingedLanes,x=r.expirationTimes,_=l;_>0;){var O=eu(_),M=1<<O,U=x[O];U===tr?((M&f)===Fe||(M&h)!==Fe)&&(x[O]=yf(M,a)):U<=a&&(r.expiredLanes|=M),_&=~M}}function N4(r){return bf(r.pendingLanes)}function nh(r){var a=r.pendingLanes&~no;return a!==Fe?a:a&no?no:Fe}function Iy(r){return(r&Yt)!==Fe}function xf(r){return(r&$0)!==Fe}function F0(r){return(r&hf)===r}function rh(r){var a=Yt|qr|to;return(r&a)===Fe}function z0(r){return(r&ac)===r}function oc(r,a){var l=df|qr|rc|to;return(a&l)!==Fe}function E4(r,a){return(a&r.expiredLanes)!==Fe}function B0(r){return(r&ac)!==Fe}function Jd(){var r=xl;return xl<<=1,(xl&ac)===Fe&&(xl=pf),r}function $y(){var r=Xd;return Xd<<=1,(Xd&hf)===Fe&&(Xd=vf),r}function Sl(r){return r&-r}function ep(r){return Sl(r)}function eu(r){return 31-My(r)}function ns(r){return eu(r)}function Da(r,a){return(r&a)!==Fe}function sc(r,a){return(r&a)===a}function mn(r,a){return r|a}function tp(r,a){return r&~a}function Fy(r,a){return r&a}function GT(r){return r}function Cl(r,a){return r!==ni&&r<a?r:a}function np(r){for(var a=[],l=0;l<M0;l++)a.push(r);return a}function lc(r,a,l){r.pendingLanes|=a,a!==Ki&&(r.suspendedLanes=Fe,r.pingedLanes=Fe);var f=r.eventTimes,h=ns(a);f[h]=l}function U0(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var l=r.expirationTimes,f=a;f>0;){var h=eu(f),x=1<<h;l[h]=tr,f&=~x}}function rp(r,a,l){r.pingedLanes|=r.suspendedLanes&a}function Sf(r,a){var l=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,h=r.eventTimes,x=r.expirationTimes,_=l;_>0;){var O=eu(_),M=1<<O;f[O]=Fe,h[O]=tr,x[O]=tr,_&=~M}}function Ft(r,a){for(var l=r.entangledLanes|=a,f=r.entanglements,h=l;h;){var x=eu(h),_=1<<x;_&a|f[x]&a&&(f[x]|=a),h&=~_}}function ih(r,a){var l=Sl(a),f;switch(l){case qr:f=df;break;case to:f=rc;break;case pf:case oa:case ks:case Yd:case qm:case mf:case Zm:case qd:case Km:case Zd:case Kd:case Ms:case D0:case Ds:case Xm:case Qm:case vf:case P0:case I0:case Jm:case eh:f=ic;break;case Ki:f=fi;break;default:f=ni;break}return(f&(r.suspendedLanes|a))!==ni?ni:f}function ah(r,a,l){if(!!Li)for(var f=r.pendingUpdatersLaneMap;l>0;){var h=ns(l),x=1<<h,_=f[h];_.add(a),l&=~x}}function tu(r,a){if(!!Li)for(var l=r.pendingUpdatersLaneMap,f=r.memoizedUpdaters;a>0;){var h=ns(a),x=1<<h,_=l[h];_.size>0&&(_.forEach(function(O){var M=O.alternate;(M===null||!f.has(M))&&f.add(O)}),_.clear()),a&=~x}}function zy(r,a){return null}var sa=Yt,Ps=qr,Cr=to,oh=Ki,ip=ni;function Co(){return ip}function di(r){ip=r}function By(r,a){var l=ip;try{return ip=r,a()}finally{ip=l}}function _4(r,a){return r!==0&&r<a?r:a}function T4(r,a){return r===0||r>a?r:a}function j0(r,a){return r!==0&&r<a}function Is(r){var a=Sl(r);return j0(sa,a)?j0(Ps,a)?xf(a)?Cr:oh:Ps:sa}function pi(r){var a=r.current.memoizedState;return a.isDehydrated}var sh;function R4(r){sh=r}function V0(r){sh(r)}var H0;function A4(r){H0=r}var Cf;function Uy(r){Cf=r}var W0;function O4(r){W0=r}var jy;function L4(r){jy=r}var G0=!1,ap=[],wl=null,nu=null,$s=null,wf=new Map,Nl=new Map,Fs=[],Vy=["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 Hy(r){return Vy.indexOf(r)>-1}function lh(r,a,l,f,h){return{blockedOn:r,domEventName:a,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]}}function Y0(r,a){switch(r){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":nu=null;break;case"mouseover":case"mouseout":$s=null;break;case"pointerover":case"pointerout":{var l=a.pointerId;wf.delete(l);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;Nl.delete(f);break}}}function Pa(r,a,l,f,h,x){if(r===null||r.nativeEvent!==x){var _=lh(a,l,f,h,x);if(a!==null){var O=Qe(a);O!==null&&H0(O)}return _}r.eventSystemFlags|=f;var M=r.targetContainers;return h!==null&&M.indexOf(h)===-1&&M.push(h),r}function uc(r,a,l,f,h){switch(a){case"focusin":{var x=h;return wl=Pa(wl,r,a,l,f,x),!0}case"dragenter":{var _=h;return nu=Pa(nu,r,a,l,f,_),!0}case"mouseover":{var O=h;return $s=Pa($s,r,a,l,f,O),!0}case"pointerover":{var M=h,U=M.pointerId;return wf.set(U,Pa(wf.get(U)||null,r,a,l,f,M)),!0}case"gotpointercapture":{var H=h,oe=H.pointerId;return Nl.set(oe,Pa(Nl.get(oe)||null,r,a,l,f,H)),!0}}return!1}function Wy(r){var a=Ie(r.target);if(a!==null){var l=tc(a);if(l!==null){var f=l.tag;if(f===z){var h=by(l);if(h!==null){r.blockedOn=h,jy(r.priority,function(){Cf(l)});return}}else if(f===b){var x=l.stateNode;if(pi(x)){r.blockedOn=Hm(l);return}}}}r.blockedOn=null}function Gy(r){for(var a=W0(),l={blockedOn:null,target:r,priority:a},f=0;f<Fs.length&&j0(a,Fs[f].priority);f++);Fs.splice(f,0,l),f===0&&Wy(l)}function uh(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;a.length>0;){var l=a[0],f=Z0(r.domEventName,r.eventSystemFlags,l,r.nativeEvent);if(f===null){var h=r.nativeEvent,x=new h.constructor(h.type,h);Pd(x),h.target.dispatchEvent(x),Ku()}else{var _=Qe(f);return _!==null&&H0(_),r.blockedOn=f,!1}a.shift()}return!0}function Yy(r,a,l){uh(r)&&l.delete(a)}function k4(){G0=!1,wl!==null&&uh(wl)&&(wl=null),nu!==null&&uh(nu)&&(nu=null),$s!==null&&uh($s)&&($s=null),wf.forEach(Yy),Nl.forEach(Yy)}function op(r,a){r.blockedOn===a&&(r.blockedOn=null,G0||(G0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,k4)))}function sp(r){if(ap.length>0){op(ap[0],r);for(var a=1;a<ap.length;a++){var l=ap[a];l.blockedOn===r&&(l.blockedOn=null)}}wl!==null&&op(wl,r),nu!==null&&op(nu,r),$s!==null&&op($s,r);var f=function(O){return op(O,r)};wf.forEach(f),Nl.forEach(f);for(var h=0;h<Fs.length;h++){var x=Fs[h];x.blockedOn===r&&(x.blockedOn=null)}for(;Fs.length>0;){var _=Fs[0];if(_.blockedOn!==null)break;Wy(_),_.blockedOn===null&&Fs.shift()}}var Nf=n.ReactCurrentBatchConfig,q0=!0;function qy(r){q0=!!r}function M4(){return q0}function D4(r,a,l){var f=Xy(a),h;switch(f){case sa:h=P4;break;case Ps:h=Zy;break;case Cr:default:h=ch;break}return h.bind(null,a,l,r)}function P4(r,a,l,f){var h=Co(),x=Nf.transition;Nf.transition=null;try{di(sa),ch(r,a,l,f)}finally{di(h),Nf.transition=x}}function Zy(r,a,l,f){var h=Co(),x=Nf.transition;Nf.transition=null;try{di(Ps),ch(r,a,l,f)}finally{di(h),Nf.transition=x}}function ch(r,a,l,f){!q0||Ky(r,a,l,f)}function Ky(r,a,l,f){var h=Z0(r,a,l,f);if(h===null){f1(r,a,f,fh,l),Y0(r,f);return}if(uc(h,r,a,l,f)){f.stopPropagation();return}if(Y0(r,f),a&Jc&&Hy(r)){for(;h!==null;){var x=Qe(h);x!==null&&V0(x);var _=Z0(r,a,l,f);if(_===null&&f1(r,a,f,fh,l),_===h)break;h=_}h!==null&&f.stopPropagation();return}f1(r,a,f,null,l)}var fh=null;function Z0(r,a,l,f){fh=null;var h=c0(f),x=Ie(h);if(x!==null){var _=tc(x);if(_===null)x=null;else{var O=_.tag;if(O===z){var M=by(_);if(M!==null)return M;x=null}else if(O===b){var U=_.stateNode;if(pi(U))return Hm(_);x=null}else _!==x&&(x=null)}}return fh=x,null}function Xy(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 sa;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 Ps;case"message":{var a=Jl();switch(a){case Vd:return sa;case C0:return Ps;case Ls:case m4:return Cr;case Gm:return oh;default:return Cr}}default:return Cr}}function Qy(r,a,l){return r.addEventListener(a,l,!1),l}function I4(r,a,l){return r.addEventListener(a,l,!0),l}function $4(r,a,l,f){return r.addEventListener(a,l,{capture:!0,passive:f}),l}function F4(r,a,l,f){return r.addEventListener(a,l,{passive:f}),l}var lp=null,K0=null,up=null;function wo(r){return lp=r,K0=e2(),!0}function z4(){lp=null,K0=null,up=null}function Jy(){if(up)return up;var r,a=K0,l=a.length,f,h=e2(),x=h.length;for(r=0;r<l&&a[r]===h[r];r++);var _=l-r;for(f=1;f<=_&&a[l-f]===h[x-f];f++);var O=f>1?1-f:void 0;return up=h.slice(r,O),up}function e2(){return"value"in lp?lp.value:lp.textContent}function cp(r){var a,l=r.keyCode;return"charCode"in r?(a=r.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),a>=32||a===13?a:0}function dh(){return!0}function t2(){return!1}function ro(r){function a(l,f,h,x,_){this._reactName=l,this._targetInst=h,this.type=f,this.nativeEvent=x,this.target=_,this.currentTarget=null;for(var O in r)if(!!r.hasOwnProperty(O)){var M=r[O];M?this[O]=M(x):this[O]=x[O]}var U=x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1;return U?this.isDefaultPrevented=dh:this.isDefaultPrevented=t2,this.isPropagationStopped=t2,this}return en(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;!l||(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=dh)},stopPropagation:function(){var l=this.nativeEvent;!l||(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=dh)},persist:function(){},isPersistent:dh}),a}var Ef={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fp=ro(Ef),dp=en({},Ef,{view:0,detail:0}),B4=ro(dp),X0,Q0,pp;function U4(r){r!==pp&&(pp&&r.type==="mousemove"?(X0=r.screenX-pp.screenX,Q0=r.screenY-pp.screenY):(X0=0,Q0=0),pp=r)}var ph=en({},dp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:t1,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:(U4(r),X0)},movementY:function(r){return"movementY"in r?r.movementY:Q0}}),n2=ro(ph),j4=en({},ph,{dataTransfer:0}),V4=ro(j4),H4=en({},dp,{relatedTarget:0}),J0=ro(H4),W4=en({},Ef,{animationName:0,elapsedTime:0,pseudoElement:0}),G4=ro(W4),Y4=en({},Ef,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),q4=ro(Y4),Z4=en({},Ef,{data:0}),r2=ro(Z4),K4=r2,X4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e1={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 i2(r){if(r.key){var a=X4[r.key]||r.key;if(a!=="Unidentified")return a}if(r.type==="keypress"){var l=cp(r);return l===13?"Enter":String.fromCharCode(l)}return r.type==="keydown"||r.type==="keyup"?e1[r.keyCode]||"Unidentified":""}var Q4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J4(r){var a=this,l=a.nativeEvent;if(l.getModifierState)return l.getModifierState(r);var f=Q4[r];return f?!!l[f]:!1}function t1(r){return J4}var eC=en({},dp,{key:i2,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:t1,charCode:function(r){return r.type==="keypress"?cp(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?cp(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),tC=ro(eC),nC=en({},ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a2=ro(nC),rC=en({},dp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:t1}),o2=ro(rC),iC=en({},Ef,{propertyName:0,elapsedTime:0,pseudoElement:0}),mh=ro(iC),aC=en({},ph,{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}),oC=ro(aC),sC=[9,13,27,32],s2=229,n1=jt&&"CompositionEvent"in window,mp=null;jt&&"documentMode"in document&&(mp=document.documentMode);var lC=jt&&"TextEvent"in window&&!mp,l2=jt&&(!n1||mp&&mp>8&&mp<=11),u2=32,c2=String.fromCharCode(u2);function uC(){Dt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Dt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Dt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var f2=!1;function cC(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function fC(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function dC(r,a){return r==="keydown"&&a.keyCode===s2}function d2(r,a){switch(r){case"keyup":return sC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==s2;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r1(r){var a=r.detail;return typeof a=="object"&&"data"in a?a.data:null}function i1(r){return r.locale==="ko"}var _f=!1;function pC(r,a,l,f,h){var x,_;if(n1?x=fC(a):_f?d2(a,f)&&(x="onCompositionEnd"):dC(a,f)&&(x="onCompositionStart"),!x)return null;l2&&!i1(f)&&(!_f&&x==="onCompositionStart"?_f=wo(h):x==="onCompositionEnd"&&_f&&(_=Jy()));var O=an(l,x);if(O.length>0){var M=new r2(x,a,null,f,h);if(r.push({event:M,listeners:O}),_)M.data=_;else{var U=r1(f);U!==null&&(M.data=U)}}}function mC(r,a){switch(r){case"compositionend":return r1(a);case"keypress":var l=a.which;return l!==u2?null:(f2=!0,c2);case"textInput":var f=a.data;return f===c2&&f2?null:f;default:return null}}function hC(r,a){if(_f){if(r==="compositionend"||!n1&&d2(r,a)){var l=Jy();return z4(),_f=!1,l}return null}switch(r){case"paste":return null;case"keypress":if(!cC(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return l2&&!i1(a)?null:a.data;default:return null}}function hh(r,a,l,f,h){var x;if(lC?x=mC(a,f):x=hC(a,f),!x)return null;var _=an(l,"onBeforeInput");if(_.length>0){var O=new K4("onBeforeInput","beforeinput",null,f,h);r.push({event:O,listeners:_}),O.data=x}}function vC(r,a,l,f,h,x,_){pC(r,a,l,f,h),hh(r,a,l,f,h)}var gC={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 p2(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!gC[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 bC(r){if(!jt)return!1;var a="on"+r,l=a in document;if(!l){var f=document.createElement("div");f.setAttribute(a,"return;"),l=typeof f[a]=="function"}return l}function yC(){Dt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function m2(r,a,l,f){uy(f);var h=an(a,"onChange");if(h.length>0){var x=new fp("onChange","change",null,l,f);r.push({event:x,listeners:h})}}var hp=null,vp=null;function xC(r){var a=r.nodeName&&r.nodeName.toLowerCase();return a==="select"||a==="input"&&r.type==="file"}function SC(r){var a=[];m2(a,vp,r,c0(r)),py(CC,a)}function CC(r){c1(r,0)}function cc(r){var a=gt(r);if(W(a))return r}function wC(r,a){if(r==="change")return a}var a1=!1;jt&&(a1=bC("input")&&(!document.documentMode||document.documentMode>9));function h2(r,a){hp=r,vp=a,hp.attachEvent("onpropertychange",o1)}function vh(){!hp||(hp.detachEvent("onpropertychange",o1),hp=null,vp=null)}function o1(r){r.propertyName==="value"&&cc(vp)&&SC(r)}function v2(r,a,l){r==="focusin"?(vh(),h2(a,l)):r==="focusout"&&vh()}function g2(r,a){if(r==="selectionchange"||r==="keyup"||r==="keydown")return cc(vp)}function b2(r){var a=r.nodeName;return a&&a.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function NC(r,a){if(r==="click")return cc(a)}function EC(r,a){if(r==="input"||r==="change")return cc(a)}function _C(r){var a=r._wrapperState;!a||!a.controlled||r.type!=="number"||Ge(r,"number",r.value)}function gh(r,a,l,f,h,x,_){var O=l?gt(l):window,M,U;if(xC(O)?M=wC:p2(O)?a1?M=EC:(M=g2,U=v2):b2(O)&&(M=NC),M){var H=M(a,l);if(H){m2(r,H,f,h);return}}U&&U(a,O,l),a==="focusout"&&_C(O)}function bh(){He("onMouseEnter",["mouseout","mouseover"]),He("onMouseLeave",["mouseout","mouseover"]),He("onPointerEnter",["pointerout","pointerover"]),He("onPointerLeave",["pointerout","pointerover"])}function TC(r,a,l,f,h,x,_){var O=a==="mouseover"||a==="pointerover",M=a==="mouseout"||a==="pointerout";if(O&&!zm(f)){var U=f.relatedTarget||f.fromElement;if(U&&(Ie(U)||Oe(U)))return}if(!(!M&&!O)){var H;if(h.window===h)H=h;else{var oe=h.ownerDocument;oe?H=oe.defaultView||oe.parentWindow:H=window}var re,ye;if(M){var xe=f.relatedTarget||f.toElement;if(re=l,ye=xe?Ie(xe):null,ye!==null){var Te=tc(ye);(ye!==Te||ye.tag!==w&&ye.tag!==T)&&(ye=null)}}else re=null,ye=l;if(re!==ye){var mt=n2,Lt="onMouseLeave",Nt="onMouseEnter",In="mouse";(a==="pointerout"||a==="pointerover")&&(mt=a2,Lt="onPointerLeave",Nt="onPointerEnter",In="pointer");var En=re==null?H:gt(re),me=ye==null?H:gt(ye),Re=new mt(Lt,In+"leave",re,f,h);Re.target=En,Re.relatedTarget=me;var he=null,qe=Ie(h);if(qe===l){var ht=new mt(Nt,In+"enter",ye,f,h);ht.target=me,ht.relatedTarget=En,he=ht}WC(r,Re,he,re,ye)}}}function RC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var la=typeof Object.is=="function"?Object.is:RC;function Tf(r,a){if(la(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),f=Object.keys(a);if(l.length!==f.length)return!1;for(var h=0;h<l.length;h++){var x=l[h];if(!Se.call(a,x)||!la(r[x],a[x]))return!1}return!0}function y2(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function AC(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function x2(r,a){for(var l=y2(r),f=0,h=0;l;){if(l.nodeType===Ts){if(h=f+l.textContent.length,f<=a&&h>=a)return{node:l,offset:a-f};f=h}l=y2(AC(l))}}function OC(r){var a=r.ownerDocument,l=a&&a.defaultView||window,f=l.getSelection&&l.getSelection();if(!f||f.rangeCount===0)return null;var h=f.anchorNode,x=f.anchorOffset,_=f.focusNode,O=f.focusOffset;try{h.nodeType,_.nodeType}catch{return null}return LC(r,h,x,_,O)}function LC(r,a,l,f,h){var x=0,_=-1,O=-1,M=0,U=0,H=r,oe=null;e:for(;;){for(var re=null;H===a&&(l===0||H.nodeType===Ts)&&(_=x+l),H===f&&(h===0||H.nodeType===Ts)&&(O=x+h),H.nodeType===Ts&&(x+=H.nodeValue.length),(re=H.firstChild)!==null;)oe=H,H=re;for(;;){if(H===r)break e;if(oe===a&&++M===l&&(_=x),oe===f&&++U===h&&(O=x),(re=H.nextSibling)!==null)break;H=oe,oe=H.parentNode}H=re}return _===-1||O===-1?null:{start:_,end:O}}function kC(r,a){var l=r.ownerDocument||document,f=l&&l.defaultView||window;if(!!f.getSelection){var h=f.getSelection(),x=r.textContent.length,_=Math.min(a.start,x),O=a.end===void 0?_:Math.min(a.end,x);if(!h.extend&&_>O){var M=O;O=_,_=M}var U=x2(r,_),H=x2(r,O);if(U&&H){if(h.rangeCount===1&&h.anchorNode===U.node&&h.anchorOffset===U.offset&&h.focusNode===H.node&&h.focusOffset===H.offset)return;var oe=l.createRange();oe.setStart(U.node,U.offset),h.removeAllRanges(),_>O?(h.addRange(oe),h.extend(H.node,H.offset)):(oe.setEnd(H.node,H.offset),h.addRange(oe))}}}function S2(r){return r&&r.nodeType===Ts}function C2(r,a){return!r||!a?!1:r===a?!0:S2(r)?!1:S2(a)?C2(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1}function MC(r){return r&&r.ownerDocument&&C2(r.ownerDocument.documentElement,r)}function DC(r){try{return typeof r.contentWindow.location.href=="string"}catch{return!1}}function w2(){for(var r=window,a=ne();a instanceof r.HTMLIFrameElement;){if(DC(a))r=a.contentWindow;else return a;a=ne(r.document)}return a}function s1(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 rs(){var r=w2();return{focusedElem:r,selectionRange:s1(r)?IC(r):null}}function PC(r){var a=w2(),l=r.focusedElem,f=r.selectionRange;if(a!==l&&MC(l)){f!==null&&s1(l)&&fc(l,f);for(var h=[],x=l;x=x.parentNode;)x.nodeType===Ma&&h.push({element:x,left:x.scrollLeft,top:x.scrollTop});typeof l.focus=="function"&&l.focus();for(var _=0;_<h.length;_++){var O=h[_];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}}function IC(r){var a;return"selectionStart"in r?a={start:r.selectionStart,end:r.selectionEnd}:a=OC(r),a||{start:0,end:0}}function fc(r,a){var l=a.start,f=a.end;f===void 0&&(f=l),"selectionStart"in r?(r.selectionStart=l,r.selectionEnd=Math.min(f,r.value.length)):kC(r,a)}var un=jt&&"documentMode"in document&&document.documentMode<=11;function $C(){Dt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ri=null,Lr=null,gp=null,zs=!1;function FC(r){if("selectionStart"in r&&s1(r))return{start:r.selectionStart,end:r.selectionEnd};var a=r.ownerDocument&&r.ownerDocument.defaultView||window,l=a.getSelection();return{anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}}function zC(r){return r.window===r?r.document:r.nodeType===Jo?r:r.ownerDocument}function N2(r,a,l){var f=zC(l);if(!(zs||ri==null||ri!==ne(f))){var h=FC(ri);if(!gp||!Tf(gp,h)){gp=h;var x=an(Lr,"onSelect");if(x.length>0){var _=new fp("onSelect","select",null,a,l);r.push({event:_,listeners:x}),_.target=ri}}}}function BC(r,a,l,f,h,x,_){var O=l?gt(l):window;switch(a){case"focusin":(p2(O)||O.contentEditable==="true")&&(ri=O,Lr=l,gp=null);break;case"focusout":ri=null,Lr=null,gp=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,N2(r,f,h);break;case"selectionchange":if(un)break;case"keydown":case"keyup":N2(r,f,h)}}function yh(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var ru={animationend:yh("Animation","AnimationEnd"),animationiteration:yh("Animation","AnimationIteration"),animationstart:yh("Animation","AnimationStart"),transitionend:yh("Transition","TransitionEnd")},l1={},Bs={};jt&&(Bs=document.createElement("div").style,"AnimationEvent"in window||(delete ru.animationend.animation,delete ru.animationiteration.animation,delete ru.animationstart.animation),"TransitionEvent"in window||delete ru.transitionend.transition);function bp(r){if(l1[r])return l1[r];if(!ru[r])return r;var a=ru[r];for(var l in a)if(a.hasOwnProperty(l)&&l in Bs)return l1[r]=a[l];return r}var yp=bp("animationend"),wr=bp("animationiteration"),kr=bp("animationstart"),u1=bp("transitionend"),E2=new Map,_2=["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 iu(r,a){E2.set(r,a),Dt(a,[r])}function UC(){for(var r=0;r<_2.length;r++){var a=_2[r],l=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);iu(l,"on"+f)}iu(yp,"onAnimationEnd"),iu(wr,"onAnimationIteration"),iu(kr,"onAnimationStart"),iu("dblclick","onDoubleClick"),iu("focusin","onFocus"),iu("focusout","onBlur"),iu(u1,"onTransitionEnd")}function jC(r,a,l,f,h,x,_){var O=E2.get(a);if(O!==void 0){var M=fp,U=a;switch(a){case"keypress":if(cp(f)===0)return;case"keydown":case"keyup":M=tC;break;case"focusin":U="focus",M=J0;break;case"focusout":U="blur",M=J0;break;case"beforeblur":case"afterblur":M=J0;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=n2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=V4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=o2;break;case yp:case wr:case kr:M=G4;break;case u1:M=mh;break;case"scroll":M=B4;break;case"wheel":M=oC;break;case"copy":case"cut":case"paste":M=q4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=a2;break}var H=(x&Jc)!==0;{var oe=!H&&a==="scroll",re=El(l,O,f.type,H,oe);if(re.length>0){var ye=new M(O,U,null,f,h);r.push({event:ye,listeners:re})}}}}UC(),bh(),yC(),$C(),uC();function VC(r,a,l,f,h,x,_){jC(r,a,l,f,h,x);var O=(x&Fm)===0;O&&(TC(r,a,l,f,h),gh(r,a,l,f,h),BC(r,a,l,f,h),vC(r,a,l,f,h))}var Rf=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],dc=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Rf));function xh(r,a,l){var f=r.type||"unknown-event";r.currentTarget=l,Fd(f,a,void 0,r),r.currentTarget=null}function HC(r,a,l){var f;if(l)for(var h=a.length-1;h>=0;h--){var x=a[h],_=x.instance,O=x.currentTarget,M=x.listener;if(_!==f&&r.isPropagationStopped())return;xh(r,M,O),f=_}else for(var U=0;U<a.length;U++){var H=a[U],oe=H.instance,re=H.currentTarget,ye=H.listener;if(oe!==f&&r.isPropagationStopped())return;xh(r,ye,re),f=oe}}function c1(r,a){for(var l=(a&Jc)!==0,f=0;f<r.length;f++){var h=r[f],x=h.event,_=h.listeners;HC(x,_,l)}hy()}function Sh(r,a,l,f,h){var x=c0(l),_=[];VC(_,r,f,l,x,a),c1(_,a)}function Nn(r,a){dc.has(r)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var l=!1,f=Vt(a),h=Xn(r,l);f.has(h)||(T2(a,r,$m,l),f.add(h))}function au(r,a,l){dc.has(r)&&!a&&u('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|=Jc),T2(l,r,f,a)}var Ch="_reactListening"+Math.random().toString(36).slice(2);function xp(r){if(!r[Ch]){r[Ch]=!0,Ve.forEach(function(l){l!=="selectionchange"&&(dc.has(l)||au(l,!1,r),au(l,!0,r))});var a=r.nodeType===Jo?r:r.ownerDocument;a!==null&&(a[Ch]||(a[Ch]=!0,au("selectionchange",!1,a)))}}function T2(r,a,l,f,h){var x=D4(r,a,l),_=void 0;$d&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(_=!0),r=r,f?_!==void 0?$4(r,a,x,_):I4(r,a,x):_!==void 0?F4(r,a,x,_):Qy(r,a,x)}function R2(r,a){return r===a||r.nodeType===Hn&&r.parentNode===a}function f1(r,a,l,f,h){var x=f;if((a&Dd)===0&&(a&$m)===0){var _=h;if(f!==null){var O=f;e:for(;;){if(O===null)return;var M=O.tag;if(M===b||M===C){var U=O.stateNode.containerInfo;if(R2(U,_))break;if(M===C)for(var H=O.return;H!==null;){var oe=H.tag;if(oe===b||oe===C){var re=H.stateNode.containerInfo;if(R2(re,_))return}H=H.return}for(;U!==null;){var ye=Ie(U);if(ye===null)return;var xe=ye.tag;if(xe===w||xe===T){O=x=ye;continue e}U=U.parentNode}}O=O.return}}}py(function(){return Sh(r,a,l,x)})}function Af(r,a,l){return{instance:r,listener:a,currentTarget:l}}function El(r,a,l,f,h,x){for(var _=a!==null?a+"Capture":null,O=f?_:a,M=[],U=r,H=null;U!==null;){var oe=U,re=oe.stateNode,ye=oe.tag;if(ye===w&&re!==null&&(H=re,O!==null)){var xe=ml(U,O);xe!=null&&M.push(Af(U,xe,H))}if(h)break;U=U.return}return M}function an(r,a){for(var l=a+"Capture",f=[],h=r;h!==null;){var x=h,_=x.stateNode,O=x.tag;if(O===w&&_!==null){var M=_,U=ml(h,l);U!=null&&f.unshift(Af(h,U,M));var H=ml(h,a);H!=null&&f.push(Af(h,H,M))}h=h.return}return f}function pc(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==w);return r||null}function No(r,a){for(var l=r,f=a,h=0,x=l;x;x=pc(x))h++;for(var _=0,O=f;O;O=pc(O))_++;for(;h-_>0;)l=pc(l),h--;for(;_-h>0;)f=pc(f),_--;for(var M=h;M--;){if(l===f||f!==null&&l===f.alternate)return l;l=pc(l),f=pc(f)}return null}function d1(r,a,l,f,h){for(var x=a._reactName,_=[],O=l;O!==null&&O!==f;){var M=O,U=M.alternate,H=M.stateNode,oe=M.tag;if(U!==null&&U===f)break;if(oe===w&&H!==null){var re=H;if(h){var ye=ml(O,x);ye!=null&&_.unshift(Af(O,ye,re))}else if(!h){var xe=ml(O,x);xe!=null&&_.push(Af(O,xe,re))}}O=O.return}_.length!==0&&r.push({event:a,listeners:_})}function WC(r,a,l,f,h){var x=f&&h?No(f,h):null;f!==null&&d1(r,a,f,x,!1),h!==null&&l!==null&&d1(r,l,h,x,!0)}function Xn(r,a){return r+"__"+(a?"capture":"bubble")}var Ia=!1,Of="dangerouslySetInnerHTML",mc="suppressContentEditableWarning",ou="suppressHydrationWarning",A2="autoFocus",hc="children",vc="style",wh="__html",p1,Nh,Sp,O2,Eh,L2,k2;p1={dialog:!0,webview:!0},Nh=function(r,a){er(r,a),oy(r,a),ly(r,a,{registrationNameDependencies:at,possibleRegistrationNames:St})},L2=jt&&!document.documentMode,Sp=function(r,a,l){if(!Ia){var f=_h(l),h=_h(a);h!==f&&(Ia=!0,u("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(h),JSON.stringify(f)))}},O2=function(r){if(!Ia){Ia=!0;var a=[];r.forEach(function(l){a.push(l)}),u("Extra attributes from the server: %s",a)}},Eh=function(r,a){a===!1?u("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):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)},k2=function(r,a){var l=r.namespaceURI===_s?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return l.innerHTML=a,l.innerHTML};var GC=/\r\n?/g,m1=/\u0000|\uFFFD/g;function _h(r){kn(r);var a=typeof r=="string"?r:""+r;return a.replace(GC,`
`).replace(m1,"")}function Lf(r,a,l,f){var h=_h(a),x=_h(r);if(x!==h&&(f&&(Ia||(Ia=!0,u('Text content did not match. Server: "%s" Client: "%s"',x,h))),l&&K))throw new Error("Text content does not match server-rendered HTML.")}function M2(r){return r.nodeType===Jo?r:r.ownerDocument}function YC(){}function Th(r){r.onclick=YC}function mi(r,a,l,f,h){for(var x in f)if(!!f.hasOwnProperty(x)){var _=f[x];if(x===vc)_&&Object.freeze(_),ce(a,_);else if(x===Of){var O=_?_[wh]:void 0;O!=null&&Lm(a,O)}else if(x===hc)if(typeof _=="string"){var M=r!=="textarea"||_!=="";M&&Od(a,_)}else typeof _=="number"&&Od(a,""+_);else x===mc||x===ou||x===A2||(at.hasOwnProperty(x)?_!=null&&(typeof _!="function"&&Eh(x,_),x==="onScroll"&&Nn("scroll",a)):_!=null&&qa(a,x,_,h))}}function $a(r,a,l,f){for(var h=0;h<a.length;h+=2){var x=a[h],_=a[h+1];x===vc?ce(r,_):x===Of?Lm(r,_):x===hc?Od(r,_):qa(r,x,_,f)}}function qC(r,a,l,f){var h,x=M2(l),_,O=f;if(O===_s&&(O=Ad(r)),O===_s){if(h=fl(r,a),!h&&r!==r.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var M=x.createElement("div");M.innerHTML="<script><\/script>";var U=M.firstChild;_=M.removeChild(U)}else if(typeof a.is=="string")_=x.createElement(r,{is:a.is});else if(_=x.createElement(r),r==="select"){var H=_;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else _=x.createElementNS(O,r);return O===_s&&!h&&Object.prototype.toString.call(_)==="[object HTMLUnknownElement]"&&!Se.call(p1,r)&&(p1[r]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),_}function ZC(r,a){return M2(a).createTextNode(r)}function KC(r,a,l,f){var h=fl(a,l);Nh(a,l);var x;switch(a){case"dialog":Nn("cancel",r),Nn("close",r),x=l;break;case"iframe":case"object":case"embed":Nn("load",r),x=l;break;case"video":case"audio":for(var _=0;_<Rf.length;_++)Nn(Rf[_],r);x=l;break;case"source":Nn("error",r),x=l;break;case"img":case"image":case"link":Nn("error",r),Nn("load",r),x=l;break;case"details":Nn("toggle",r),x=l;break;case"input":L(r,l),x=S(r,l),Nn("invalid",r);break;case"option":yt(r,l),x=l;break;case"select":Es(r,l),x=ka(r,l),Nn("invalid",r);break;case"textarea":o0(r,l),x=a0(r,l),Nn("invalid",r);break;default:x=l}switch(Jn(a,x),mi(a,r,f,x,h),a){case"input":qi(r),se(r,l,!1);break;case"textarea":qi(r),Yu(r);break;case"option":Wt(r,l);break;case"select":_d(r,l);break;default:typeof x.onClick=="function"&&Th(r);break}}function D2(r,a,l,f,h){Nh(a,f);var x=null,_,O;switch(a){case"input":_=S(r,l),O=S(r,f),x=[];break;case"select":_=ka(r,l),O=ka(r,f),x=[];break;case"textarea":_=a0(r,l),O=a0(r,f),x=[];break;default:_=l,O=f,typeof _.onClick!="function"&&typeof O.onClick=="function"&&Th(r);break}Jn(a,O);var M,U,H=null;for(M in _)if(!(O.hasOwnProperty(M)||!_.hasOwnProperty(M)||_[M]==null))if(M===vc){var oe=_[M];for(U in oe)oe.hasOwnProperty(U)&&(H||(H={}),H[U]="")}else M===Of||M===hc||M===mc||M===ou||M===A2||(at.hasOwnProperty(M)?x||(x=[]):(x=x||[]).push(M,null));for(M in O){var re=O[M],ye=_?.[M];if(!(!O.hasOwnProperty(M)||re===ye||re==null&&ye==null))if(M===vc)if(re&&Object.freeze(re),ye){for(U in ye)ye.hasOwnProperty(U)&&(!re||!re.hasOwnProperty(U))&&(H||(H={}),H[U]="");for(U in re)re.hasOwnProperty(U)&&ye[U]!==re[U]&&(H||(H={}),H[U]=re[U])}else H||(x||(x=[]),x.push(M,H)),H=re;else if(M===Of){var xe=re?re[wh]:void 0,Te=ye?ye[wh]:void 0;xe!=null&&Te!==xe&&(x=x||[]).push(M,xe)}else M===hc?(typeof re=="string"||typeof re=="number")&&(x=x||[]).push(M,""+re):M===mc||M===ou||(at.hasOwnProperty(M)?(re!=null&&(typeof re!="function"&&Eh(M,re),M==="onScroll"&&Nn("scroll",r)),!x&&ye!==re&&(x=[])):(x=x||[]).push(M,re))}return H&&(vt(H,O[vc]),(x=x||[]).push(vc,H)),x}function XC(r,a,l,f,h){l==="input"&&h.type==="radio"&&h.name!=null&&V(r,h);var x=fl(l,f),_=fl(l,h);switch($a(r,a,x,_),l){case"input":G(r,h);break;case"textarea":Td(r,h);break;case"select":i0(r,h);break}}function QC(r){{var a=r.toLowerCase();return km.hasOwnProperty(a)&&km[a]||null}}function JC(r,a,l,f,h,x,_){var O,M;switch(O=fl(a,l),Nh(a,l),a){case"dialog":Nn("cancel",r),Nn("close",r);break;case"iframe":case"object":case"embed":Nn("load",r);break;case"video":case"audio":for(var U=0;U<Rf.length;U++)Nn(Rf[U],r);break;case"source":Nn("error",r);break;case"img":case"image":case"link":Nn("error",r),Nn("load",r);break;case"details":Nn("toggle",r);break;case"input":L(r,l),Nn("invalid",r);break;case"option":yt(r,l);break;case"select":Es(r,l),Nn("invalid",r);break;case"textarea":o0(r,l),Nn("invalid",r);break}Jn(a,l);{M=new Set;for(var H=r.attributes,oe=0;oe<H.length;oe++){var re=H[oe].name.toLowerCase();switch(re){case"value":break;case"checked":break;case"selected":break;default:M.add(H[oe].name)}}}var ye=null;for(var xe in l)if(!!l.hasOwnProperty(xe)){var Te=l[xe];if(xe===hc)typeof Te=="string"?r.textContent!==Te&&(l[ou]!==!0&&Lf(r.textContent,Te,x,_),ye=[hc,Te]):typeof Te=="number"&&r.textContent!==""+Te&&(l[ou]!==!0&&Lf(r.textContent,Te,x,_),ye=[hc,""+Te]);else if(at.hasOwnProperty(xe))Te!=null&&(typeof Te!="function"&&Eh(xe,Te),xe==="onScroll"&&Nn("scroll",r));else if(_&&!0&&typeof O=="boolean"){var mt=void 0,Lt=O&&Me?null:wi(xe);if(l[ou]!==!0){if(!(xe===mc||xe===ou||xe==="value"||xe==="checked"||xe==="selected")){if(xe===Of){var Nt=r.innerHTML,In=Te?Te[wh]:void 0;if(In!=null){var En=k2(r,In);En!==Nt&&Sp(xe,Nt,En)}}else if(xe===vc){if(M.delete(xe),L2){var me=Xc(Te);mt=r.getAttribute("style"),me!==mt&&Sp(xe,mt,me)}}else if(O&&!Me)M.delete(xe.toLowerCase()),mt=Vi(r,xe,Te),Te!==mt&&Sp(xe,mt,Te);else if(!$n(xe,Lt,O)&&!Mn(xe,Te,Lt,O)){var Re=!1;if(Lt!==null)M.delete(Lt.attributeName),mt=hr(r,xe,Te,Lt);else{var he=f;if(he===_s&&(he=Ad(a)),he===_s)M.delete(xe.toLowerCase());else{var qe=QC(xe);qe!==null&&qe!==xe&&(Re=!0,M.delete(qe)),M.delete(xe)}mt=Vi(r,xe,Te)}var ht=Me;!ht&&Te!==mt&&!Re&&Sp(xe,mt,Te)}}}}}switch(_&&M.size>0&&l[ou]!==!0&&O2(M),a){case"input":qi(r),se(r,l,!0);break;case"textarea":qi(r),Yu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&Th(r);break}return ye}function P2(r,a,l){var f=r.nodeValue!==a;return f}function h1(r,a){{if(Ia)return;Ia=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function v1(r,a){{if(Ia)return;Ia=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,r.nodeName.toLowerCase())}}function g1(r,a,l){{if(Ia)return;Ia=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,r.nodeName.toLowerCase())}}function Rh(r,a){{if(a===""||Ia)return;Ia=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,r.nodeName.toLowerCase())}}function I2(r,a,l){switch(a){case"input":ze(r,l);return;case"textarea":K3(r,l);return;case"select":Z3(r,l);return}}var Cp=function(){},wp=function(){};{var ew=["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"],$2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],kf=$2.concat(["button"]),tw=["dd","dt","li","option","optgroup","p","rp","rt"],F2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};wp=function(r,a){var l=en({},r||F2),f={tag:a};return $2.indexOf(a)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),kf.indexOf(a)!==-1&&(l.pTagInButtonScope=null),ew.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=f,a==="form"&&(l.formTag=f),a==="a"&&(l.aTagInScope=f),a==="button"&&(l.buttonTagInScope=f),a==="nobr"&&(l.nobrTagInScope=f),a==="p"&&(l.pTagInButtonScope=f),a==="li"&&(l.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(l.dlItemTagAutoclosing=f),l};var nw=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 tw.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},rw=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},z2={};Cp=function(r,a,l){l=l||F2;var f=l.current,h=f&&f.tag;a!=null&&(r!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var x=nw(r,h)?null:f,_=x?null:rw(r,l),O=x||_;if(!!O){var M=O.tag,U=!!x+"|"+r+"|"+M;if(!z2[U]){z2[U]=!0;var H=r,oe="";if(r==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",oe=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+r+">",x){var re="";M==="table"&&r==="tr"&&(re+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,M,oe,re)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,M)}}}}var Np="suppressHydrationWarning",Ep="$",Ah="/$",_p="$?",Tp="$!",iw="style",b1=null,y1=null;function aw(r){var a,l,f=r.nodeType;switch(f){case Jo:case qu:{a=f===Jo?"#document":"#fragment";var h=r.documentElement;l=h?h.namespaceURI:Om(null,"");break}default:{var x=f===Hn?r.parentNode:r,_=x.namespaceURI||null;a=x.tagName,l=Om(_,a);break}}{var O=a.toLowerCase(),M=wp(null,O);return{namespace:l,ancestorInfo:M}}}function ow(r,a,l){{var f=r,h=Om(f.namespace,a),x=wp(f.ancestorInfo,a);return{namespace:h,ancestorInfo:x}}}function YT(r){return r}function sw(r){b1=M4(),y1=rs();var a=null;return qy(!1),a}function lw(r){PC(y1),qy(b1),b1=null,y1=null}function uw(r,a,l,f,h){var x;{var _=f;if(Cp(r,null,_.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var O=""+a.children,M=wp(_.ancestorInfo,r);Cp(null,O,M)}x=_.namespace}var U=qC(r,a,l,x);return J(h,U),hn(U,a),U}function cw(r,a){r.appendChild(a)}function fw(r,a,l,f,h){switch(KC(r,a,l,f),a){case"button":case"input":case"select":case"textarea":return!!l.autoFocus;case"img":return!0;default:return!1}}function dw(r,a,l,f,h,x){{var _=x;if(typeof f.children!=typeof l.children&&(typeof f.children=="string"||typeof f.children=="number")){var O=""+f.children,M=wp(_.ancestorInfo,a);Cp(null,O,M)}}return D2(r,a,l,f)}function x1(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 pw(r,a,l,f){{var h=l;Cp(null,r,h.ancestorInfo)}var x=ZC(r,a);return J(f,x),x}function mw(){var r=window.event;return r===void 0?Cr:Xy(r.type)}var S1=typeof setTimeout=="function"?setTimeout:void 0,hw=typeof clearTimeout=="function"?clearTimeout:void 0,C1=-1,B2=typeof Promise=="function"?Promise:void 0,vw=typeof queueMicrotask=="function"?queueMicrotask:typeof B2<"u"?function(r){return B2.resolve(null).then(r).catch(gw)}:S1;function gw(r){setTimeout(function(){throw r})}function bw(r,a,l,f){switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();return;case"img":{l.src&&(r.src=l.src);return}}}function w1(r,a,l,f,h,x){XC(r,a,l,f,h),hn(r,h)}function N1(r){Od(r,"")}function U2(r,a,l){r.nodeValue=l}function yw(r,a){r.appendChild(a)}function xw(r,a){var l;r.nodeType===Hn?(l=r.parentNode,l.insertBefore(a,r)):(l=r,l.appendChild(a));var f=r._reactRootContainer;f==null&&l.onclick===null&&Th(l)}function Sw(r,a,l){r.insertBefore(a,l)}function E1(r,a,l){r.nodeType===Hn?r.parentNode.insertBefore(a,l):r.insertBefore(a,l)}function Cw(r,a){r.removeChild(a)}function ww(r,a){r.nodeType===Hn?r.parentNode.removeChild(a):r.removeChild(a)}function _1(r,a){var l=a,f=0;do{var h=l.nextSibling;if(r.removeChild(l),h&&h.nodeType===Hn){var x=h.data;if(x===Ah)if(f===0){r.removeChild(h),sp(a);return}else f--;else(x===Ep||x===_p||x===Tp)&&f++}l=h}while(l);sp(a)}function Fa(r,a){r.nodeType===Hn?_1(r.parentNode,a):r.nodeType===Ma&&_1(r,a),sp(r)}function T1(r){r=r;var a=r.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function Nw(r){r.nodeValue=""}function Ew(r,a){r=r;var l=a[iw],f=l!=null&&l.hasOwnProperty("display")?l.display:null;r.style.display=s0("display",f)}function _w(r,a){r.nodeValue=a}function Tw(r){r.nodeType===Ma?r.textContent="":r.nodeType===Jo&&r.documentElement&&r.removeChild(r.documentElement)}function R1(r,a,l){return r.nodeType!==Ma||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function Rw(r,a){return a===""||r.nodeType!==Ts?null:r}function A1(r){return r.nodeType!==Hn?null:r}function j2(r){return r.data===_p}function O1(r){return r.data===Tp}function Aw(r){var a=r.nextSibling&&r.nextSibling.dataset,l,f,h;return a&&(l=a.dgst,f=a.msg,h=a.stck),{message:f,digest:l,stack:h}}function Ow(r,a){r._reactRetry=a}function Rp(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===Ma||a===Ts)break;if(a===Hn){var l=r.data;if(l===Ep||l===Tp||l===_p)break;if(l===Ah)return null}}return r}function Ap(r){return Rp(r.nextSibling)}function Lw(r){return Rp(r.firstChild)}function kw(r){return Rp(r.firstChild)}function L1(r){return Rp(r.nextSibling)}function k1(r,a,l,f,h,x,_){J(x,r),hn(r,l);var O;{var M=h;O=M.namespace}var U=(x.mode&wn)!==$t;return JC(r,a,l,O,f,U,_)}function Mw(r,a,l,f){return J(l,r),l.mode&wn,P2(r,a)}function Dw(r,a){J(a,r)}function Pw(r){for(var a=r.nextSibling,l=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===Ah){if(l===0)return Ap(a);l--}else(f===Ep||f===Tp||f===_p)&&l++}a=a.nextSibling}return null}function V2(r){for(var a=r.previousSibling,l=0;a;){if(a.nodeType===Hn){var f=a.data;if(f===Ep||f===Tp||f===_p){if(l===0)return a;l--}else f===Ah&&l++}a=a.previousSibling}return null}function Iw(r){sp(r)}function $w(r){sp(r)}function Fw(r){return r!=="head"&&r!=="body"}function zw(r,a,l,f){var h=!0;Lf(a.nodeValue,l,f,h)}function Bw(r,a,l,f,h,x){if(a[Np]!==!0){var _=!0;Lf(f.nodeValue,h,x,_)}}function Uw(r,a){a.nodeType===Ma?h1(r,a):a.nodeType===Hn||v1(r,a)}function jw(r,a){{var l=r.parentNode;l!==null&&(a.nodeType===Ma?h1(l,a):a.nodeType===Hn||v1(l,a))}}function Vw(r,a,l,f,h){(h||a[Np]!==!0)&&(f.nodeType===Ma?h1(l,f):f.nodeType===Hn||v1(l,f))}function Hw(r,a,l){g1(r,a)}function Ww(r,a){Rh(r,a)}function Gw(r,a,l){{var f=r.parentNode;f!==null&&g1(f,a)}}function Yw(r,a){{var l=r.parentNode;l!==null&&Rh(l,a)}}function qw(r,a,l,f,h,x){(x||a[Np]!==!0)&&g1(l,f)}function Zw(r,a,l,f,h){(h||a[Np]!==!0)&&Rh(l,f)}function Kw(r){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function Xw(r){xp(r)}var Mf=Math.random().toString(36).slice(2),c="__reactFiber$"+Mf,d="__reactProps$"+Mf,y="__reactContainer$"+Mf,R="__reactEvents$"+Mf,$="__reactListeners$"+Mf,j="__reactHandles$"+Mf;function Z(r){delete r[c],delete r[d],delete r[R],delete r[$],delete r[j]}function J(r,a){a[c]=r}function fe(r,a){a[y]=r}function Pe(r){r[y]=null}function Oe(r){return!!r[y]}function Ie(r){var a=r[c];if(a)return a;for(var l=r.parentNode;l;){if(a=l[y]||l[c],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var h=V2(r);h!==null;){var x=h[c];if(x)return x;h=V2(h)}return a}r=l,l=r.parentNode}return null}function Qe(r){var a=r[c]||r[y];return a&&(a.tag===w||a.tag===T||a.tag===z||a.tag===b)?a:null}function gt(r){if(r.tag===w||r.tag===T)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zt(r){return r[d]||null}function hn(r,a){r[d]=a}function Vt(r){var a=r[R];return a===void 0&&(a=r[R]=new Set),a}var xn={},On=n.ReactDebugCurrentFrame;function Xi(r){if(r){var a=r._owner,l=Ri(r.type,r._source,a?a.type:null);On.setExtraStackFrame(l)}else On.setExtraStackFrame(null)}function gr(r,a,l,f,h){{var x=Function.call.bind(Se);for(var _ in r)if(x(r,_)){var O=void 0;try{if(typeof r[_]!="function"){var M=Error((f||"React class")+": "+l+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}O=r[_](a,_,f,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){O=U}O&&!(O instanceof Error)&&(Xi(h),u("%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",l,_,typeof O),Xi(null)),O instanceof Error&&!(O.message in xn)&&(xn[O.message]=!0,Xi(h),u("Failed %s type: %s",l,O.message),Xi(null))}}}var ua=[],Nr;Nr=[];var ii=-1;function Qi(r){return{current:r}}function ki(r,a){if(ii<0){u("Unexpected pop.");return}a!==Nr[ii]&&u("Unexpected Fiber popped."),r.current=ua[ii],ua[ii]=null,Nr[ii]=null,ii--}function za(r,a,l){ii++,ua[ii]=r.current,Nr[ii]=l,r.current=a}var Qw;Qw={};var is={};Object.freeze(is);var gc=Qi(is),su=Qi(!1),Jw=is;function Oh(r,a,l){return l&&lu(a)?Jw:gc.current}function qT(r,a,l){{var f=r.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=l}}function Lh(r,a){{var l=r.type,f=l.contextTypes;if(!f)return is;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var x={};for(var _ in f)x[_]=a[_];{var O=Ht(r)||"Unknown";gr(f,x,"context",O)}return h&&qT(r,a,x),x}}function H2(){return su.current}function lu(r){{var a=r.childContextTypes;return a!=null}}function W2(r){ki(su,r),ki(gc,r)}function eN(r){ki(su,r),ki(gc,r)}function ZT(r,a,l){{if(gc.current!==is)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");za(gc,a,r),za(su,l,r)}}function KT(r,a,l){{var f=r.stateNode,h=a.childContextTypes;if(typeof f.getChildContext!="function"){{var x=Ht(r)||"Unknown";Qw[x]||(Qw[x]=!0,u("%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.",x,x))}return l}var _=f.getChildContext();for(var O in _)if(!(O in h))throw new Error((Ht(r)||"Unknown")+'.getChildContext(): key "'+O+'" is not defined in childContextTypes.');{var M=Ht(r)||"Unknown";gr(h,_,"child context",M)}return en({},l,_)}}function G2(r){{var a=r.stateNode,l=a&&a.__reactInternalMemoizedMergedChildContext||is;return Jw=gc.current,za(gc,l,r),za(su,su.current,r),!0}}function XT(r,a,l){{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(l){var h=KT(r,a,Jw);f.__reactInternalMemoizedMergedChildContext=h,ki(su,r),ki(gc,r),za(gc,h,r),za(su,l,r)}else ki(su,r),za(su,l,r)}}function fV(r){{if(!jd(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 b:return a.stateNode.context;case v:{var l=a.type;if(lu(l))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 Df=0,Y2=1,bc=null,tN=!1,nN=!1;function QT(r){bc===null?bc=[r]:bc.push(r)}function dV(r){tN=!0,QT(r)}function JT(){tN&&Pf()}function Pf(){if(!nN&&bc!==null){nN=!0;var r=0,a=Co();try{var l=!0,f=bc;for(di(sa);r<f.length;r++){var h=f[r];do h=h(l);while(h!==null)}bc=null,tN=!1}catch(x){throw bc!==null&&(bc=bc.slice(r+1)),Ja(Vd,Pf),x}finally{di(a),nN=!1}}return null}var kh=[],Mh=0,q2=null,Z2=0,Us=[],js=0,Op=null,yc=1,xc="";function pV(r){return kp(),(r.flags&vy)!==Bt}function mV(r){return kp(),Z2}function hV(){var r=xc,a=yc,l=a&~vV(a);return l.toString(32)+r}function Lp(r,a){kp(),kh[Mh++]=Z2,kh[Mh++]=q2,q2=r,Z2=a}function eR(r,a,l){kp(),Us[js++]=yc,Us[js++]=xc,Us[js++]=Op,Op=r;var f=yc,h=xc,x=K2(f)-1,_=f&~(1<<x),O=l+1,M=K2(a)+x;if(M>30){var U=x-x%5,H=(1<<U)-1,oe=(_&H).toString(32),re=_>>U,ye=x-U,xe=K2(a)+ye,Te=O<<ye,mt=Te|re,Lt=oe+h;yc=1<<xe|mt,xc=Lt}else{var Nt=O<<x,In=Nt|_,En=h;yc=1<<M|In,xc=En}}function rN(r){kp();var a=r.return;if(a!==null){var l=1,f=0;Lp(r,l),eR(r,l,f)}}function K2(r){return 32-My(r)}function vV(r){return 1<<K2(r)-1}function iN(r){for(;r===q2;)q2=kh[--Mh],kh[Mh]=null,Z2=kh[--Mh],kh[Mh]=null;for(;r===Op;)Op=Us[--js],Us[js]=null,xc=Us[--js],Us[js]=null,yc=Us[--js],Us[js]=null}function gV(){return kp(),Op!==null?{id:yc,overflow:xc}:null}function bV(r,a){kp(),Us[js++]=yc,Us[js++]=xc,Us[js++]=Op,yc=a.id,xc=a.overflow,Op=r}function kp(){fa()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ca=null,Vs=null,_l=!1,Mp=!1,If=null;function yV(){_l&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function tR(){Mp=!0}function xV(){return Mp}function SV(r){var a=r.stateNode.containerInfo;return Vs=kw(a),ca=r,_l=!0,If=null,Mp=!1,!0}function CV(r,a,l){return Vs=L1(a),ca=r,_l=!0,If=null,Mp=!1,l!==null&&bV(r,l),!0}function nR(r,a){switch(r.tag){case b:{Uw(r.stateNode.containerInfo,a);break}case w:{var l=(r.mode&wn)!==$t;Vw(r.type,r.memoizedProps,r.stateNode,a,l);break}case z:{var f=r.memoizedState;f.dehydrated!==null&&jw(f.dehydrated,a);break}}}function rR(r,a){nR(r,a);var l=EG();l.stateNode=a,l.return=r;var f=r.deletions;f===null?(r.deletions=[l],r.flags|=Xu):f.push(l)}function aN(r,a){{if(Mp)return;switch(r.tag){case b:{var l=r.stateNode.containerInfo;switch(a.tag){case w:var f=a.type;a.pendingProps,Hw(l,f);break;case T:var h=a.pendingProps;Ww(l,h);break}break}case w:{var x=r.type,_=r.memoizedProps,O=r.stateNode;switch(a.tag){case w:{var M=a.type,U=a.pendingProps,H=(r.mode&wn)!==$t;qw(x,_,O,M,U,H);break}case T:{var oe=a.pendingProps,re=(r.mode&wn)!==$t;Zw(x,_,O,oe,re);break}}break}case z:{var ye=r.memoizedState,xe=ye.dehydrated;if(xe!==null)switch(a.tag){case w:var Te=a.type;a.pendingProps,Gw(xe,Te);break;case T:var mt=a.pendingProps;Yw(xe,mt);break}break}default:return}}}function iR(r,a){a.flags=a.flags&~gl|Yr,aN(r,a)}function aR(r,a){switch(r.tag){case w:{var l=r.type;r.pendingProps;var f=R1(a,l);return f!==null?(r.stateNode=f,ca=r,Vs=Lw(f),!0):!1}case T:{var h=r.pendingProps,x=Rw(a,h);return x!==null?(r.stateNode=x,ca=r,Vs=null,!0):!1}case z:{var _=A1(a);if(_!==null){var O={dehydrated:_,treeContext:gV(),retryLane:no};r.memoizedState=O;var M=_G(_);return M.return=r,r.child=M,ca=r,Vs=null,!0}return!1}default:return!1}}function oN(r){return(r.mode&wn)!==$t&&(r.flags&Un)===Bt}function sN(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function lN(r){if(!!_l){var a=Vs;if(!a){oN(r)&&(aN(ca,r),sN()),iR(ca,r),_l=!1,ca=r;return}var l=a;if(!aR(r,a)){oN(r)&&(aN(ca,r),sN()),a=Ap(l);var f=ca;if(!a||!aR(r,a)){iR(ca,r),_l=!1,ca=r;return}rR(f,l)}}}function wV(r,a,l){var f=r.stateNode,h=!Mp,x=k1(f,r.type,r.memoizedProps,a,l,r,h);return r.updateQueue=x,x!==null}function NV(r){var a=r.stateNode,l=r.memoizedProps,f=Mw(a,l,r);if(f){var h=ca;if(h!==null)switch(h.tag){case b:{var x=h.stateNode.containerInfo,_=(h.mode&wn)!==$t;zw(x,a,l,_);break}case w:{var O=h.type,M=h.memoizedProps,U=h.stateNode,H=(h.mode&wn)!==$t;Bw(O,M,U,a,l,H);break}}}return f}function EV(r){var a=r.memoizedState,l=a!==null?a.dehydrated:null;if(!l)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Dw(l,r)}function _V(r){var a=r.memoizedState,l=a!==null?a.dehydrated:null;if(!l)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 Pw(l)}function oR(r){for(var a=r.return;a!==null&&a.tag!==w&&a.tag!==b&&a.tag!==z;)a=a.return;ca=a}function X2(r){if(r!==ca)return!1;if(!_l)return oR(r),_l=!0,!1;if(r.tag!==b&&(r.tag!==w||Fw(r.type)&&!x1(r.type,r.memoizedProps))){var a=Vs;if(a)if(oN(r))sR(r),sN();else for(;a;)rR(r,a),a=Ap(a)}return oR(r),r.tag===z?Vs=_V(r):Vs=ca?Ap(r.stateNode):null,!0}function TV(){return _l&&Vs!==null}function sR(r){for(var a=Vs;a;)nR(r,a),a=Ap(a)}function Dh(){ca=null,Vs=null,_l=!1,Mp=!1}function lR(){If!==null&&(nO(If),If=null)}function fa(){return _l}function uN(r){If===null?If=[r]:If.push(r)}var RV=n.ReactCurrentBatchConfig,AV=null;function OV(){return RV.transition}var Tl={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var LV=function(r){for(var a=null,l=r;l!==null;)l.mode&Ur&&(a=l),l=l.return;return a},Dp=function(r){var a=[];return r.forEach(function(l){a.push(l)}),a.sort().join(", ")},M1=[],D1=[],P1=[],I1=[],$1=[],F1=[],Pp=new Set;Tl.recordUnsafeLifecycleWarnings=function(r,a){Pp.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&M1.push(r),r.mode&Ur&&typeof a.UNSAFE_componentWillMount=="function"&&D1.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&P1.push(r),r.mode&Ur&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&I1.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&$1.push(r),r.mode&Ur&&typeof a.UNSAFE_componentWillUpdate=="function"&&F1.push(r))},Tl.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;M1.length>0&&(M1.forEach(function(re){r.add(Ht(re)||"Component"),Pp.add(re.type)}),M1=[]);var a=new Set;D1.length>0&&(D1.forEach(function(re){a.add(Ht(re)||"Component"),Pp.add(re.type)}),D1=[]);var l=new Set;P1.length>0&&(P1.forEach(function(re){l.add(Ht(re)||"Component"),Pp.add(re.type)}),P1=[]);var f=new Set;I1.length>0&&(I1.forEach(function(re){f.add(Ht(re)||"Component"),Pp.add(re.type)}),I1=[]);var h=new Set;$1.length>0&&($1.forEach(function(re){h.add(Ht(re)||"Component"),Pp.add(re.type)}),$1=[]);var x=new Set;if(F1.length>0&&(F1.forEach(function(re){x.add(Ht(re)||"Component"),Pp.add(re.type)}),F1=[]),a.size>0){var _=Dp(a);u(`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`,_)}if(f.size>0){var O=Dp(f);u(`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`,O)}if(x.size>0){var M=Dp(x);u(`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`,M)}if(r.size>0){var U=Dp(r);s(`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(l.size>0){var H=Dp(l);s(`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(h.size>0){var oe=Dp(h);s(`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`,oe)}};var Q2=new Map,uR=new Set;Tl.recordLegacyContextWarning=function(r,a){var l=LV(r);if(l===null){u("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(!uR.has(r.type)){var f=Q2.get(l);(r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],Q2.set(l,f)),f.push(r))}},Tl.flushLegacyContextWarning=function(){Q2.forEach(function(r,a){if(r.length!==0){var l=r[0],f=new Set;r.forEach(function(x){f.add(Ht(x)||"Component"),uR.add(x.type)});var h=Dp(f);try{ar(l),u(`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`,h)}finally{Or()}}})},Tl.discardPendingWarnings=function(){M1=[],D1=[],P1=[],I1=[],$1=[],F1=[],Q2=new Map}}function Rl(r,a){if(r&&r.defaultProps){var l=en({},a),f=r.defaultProps;for(var h in f)l[h]===void 0&&(l[h]=f[h]);return l}return a}var cN=Qi(null),fN;fN={};var J2=null,Ph=null,dN=null,ex=!1;function tx(){J2=null,Ph=null,dN=null,ex=!1}function cR(){ex=!0}function fR(){ex=!1}function dR(r,a,l){za(cN,a._currentValue,r),a._currentValue=l,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==fN&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=fN}function pN(r,a){var l=cN.current;ki(cN,a),r._currentValue=l}function mN(r,a,l){for(var f=r;f!==null;){var h=f.alternate;if(sc(f.childLanes,a)?h!==null&&!sc(h.childLanes,a)&&(h.childLanes=mn(h.childLanes,a)):(f.childLanes=mn(f.childLanes,a),h!==null&&(h.childLanes=mn(h.childLanes,a))),f===l)break;f=f.return}f!==l&&u("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 kV(r,a,l){MV(r,a,l)}function MV(r,a,l){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var h=void 0,x=f.dependencies;if(x!==null){h=f.child;for(var _=x.firstContext;_!==null;){if(_.context===a){if(f.tag===v){var O=ep(l),M=Sc(tr,O);M.tag=rx;var U=f.updateQueue;if(U!==null){var H=U.shared,oe=H.pending;oe===null?M.next=M:(M.next=oe.next,oe.next=M),H.pending=M}}f.lanes=mn(f.lanes,l);var re=f.alternate;re!==null&&(re.lanes=mn(re.lanes,l)),mN(f.return,l,r),x.lanes=mn(x.lanes,l);break}_=_.next}}else if(f.tag===D)h=f.type===r.type?null:f.child;else if(f.tag===ae){var ye=f.return;if(ye===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ye.lanes=mn(ye.lanes,l);var xe=ye.alternate;xe!==null&&(xe.lanes=mn(xe.lanes,l)),mN(ye,l,r),h=f.sibling}else h=f.child;if(h!==null)h.return=f;else for(h=f;h!==null;){if(h===r){h=null;break}var Te=h.sibling;if(Te!==null){Te.return=h.return,h=Te;break}h=h.return}f=h}}function Ih(r,a){J2=r,Ph=null,dN=null;var l=r.dependencies;if(l!==null){var f=l.firstContext;f!==null&&(Da(l.lanes,a)&&Q1(),l.firstContext=null)}}function hi(r){ex&&u("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(dN!==r){var l={context:r,memoizedValue:a,next:null};if(Ph===null){if(J2===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().");Ph=l,J2.dependencies={lanes:Fe,firstContext:l}}else Ph=Ph.next=l}return a}var Ip=null;function hN(r){Ip===null?Ip=[r]:Ip.push(r)}function DV(){if(Ip!==null){for(var r=0;r<Ip.length;r++){var a=Ip[r],l=a.interleaved;if(l!==null){a.interleaved=null;var f=l.next,h=a.pending;if(h!==null){var x=h.next;h.next=f,l.next=x}a.pending=l}}Ip=null}}function pR(r,a,l,f){var h=a.interleaved;return h===null?(l.next=l,hN(a)):(l.next=h.next,h.next=l),a.interleaved=l,nx(r,f)}function PV(r,a,l,f){var h=a.interleaved;h===null?(l.next=l,hN(a)):(l.next=h.next,h.next=l),a.interleaved=l}function IV(r,a,l,f){var h=a.interleaved;return h===null?(l.next=l,hN(a)):(l.next=h.next,h.next=l),a.interleaved=l,nx(r,f)}function Eo(r,a){return nx(r,a)}var $V=nx;function nx(r,a){r.lanes=mn(r.lanes,a);var l=r.alternate;l!==null&&(l.lanes=mn(l.lanes,a)),l===null&&(r.flags&(Yr|gl))!==Bt&&mO(r);for(var f=r,h=r.return;h!==null;)h.childLanes=mn(h.childLanes,a),l=h.alternate,l!==null?l.childLanes=mn(l.childLanes,a):(h.flags&(Yr|gl))!==Bt&&mO(r),f=h,h=h.return;if(f.tag===b){var x=f.stateNode;return x}else return null}var mR=0,hR=1,rx=2,vN=3,ix=!1,gN,ax;gN=!1,ax=null;function bN(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Fe},effects:null};r.updateQueue=a}function vR(r,a){var l=a.updateQueue,f=r.updateQueue;if(l===f){var h={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=h}}function Sc(r,a){var l={eventTime:r,lane:a,tag:mR,payload:null,callback:null,next:null};return l}function $f(r,a,l){var f=r.updateQueue;if(f===null)return null;var h=f.shared;if(ax===h&&!gN&&(u("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."),gN=!0),$W()){var x=h.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),h.pending=a,$V(r,l)}else return IV(r,h,a,l)}function ox(r,a,l){var f=a.updateQueue;if(f!==null){var h=f.shared;if(B0(l)){var x=h.lanes;x=Fy(x,r.pendingLanes);var _=mn(x,l);h.lanes=_,Ft(r,_)}}}function yN(r,a){var l=r.updateQueue,f=r.alternate;if(f!==null){var h=f.updateQueue;if(l===h){var x=null,_=null,O=l.firstBaseUpdate;if(O!==null){var M=O;do{var U={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};_===null?x=_=U:(_.next=U,_=U),M=M.next}while(M!==null);_===null?x=_=a:(_.next=a,_=a)}else x=_=a;l={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:_,shared:h.shared,effects:h.effects},r.updateQueue=l;return}}var H=l.lastBaseUpdate;H===null?l.firstBaseUpdate=a:H.next=a,l.lastBaseUpdate=a}function FV(r,a,l,f,h,x){switch(l.tag){case hR:{var _=l.payload;if(typeof _=="function"){cR();var O=_.call(x,f,h);{if(r.mode&Ur){ci(!0);try{_.call(x,f,h)}finally{ci(!1)}}fR()}return O}return _}case vN:r.flags=r.flags&~ia|Un;case mR:{var M=l.payload,U;if(typeof M=="function"){cR(),U=M.call(x,f,h);{if(r.mode&Ur){ci(!0);try{M.call(x,f,h)}finally{ci(!1)}}fR()}}else U=M;return U==null?f:en({},f,U)}case rx:return ix=!0,f}return f}function sx(r,a,l,f){var h=r.updateQueue;ix=!1,ax=h.shared;var x=h.firstBaseUpdate,_=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var M=O,U=M.next;M.next=null,_===null?x=U:_.next=U,_=M;var H=r.alternate;if(H!==null){var oe=H.updateQueue,re=oe.lastBaseUpdate;re!==_&&(re===null?oe.firstBaseUpdate=U:re.next=U,oe.lastBaseUpdate=M)}}if(x!==null){var ye=h.baseState,xe=Fe,Te=null,mt=null,Lt=null,Nt=x;do{var In=Nt.lane,En=Nt.eventTime;if(sc(f,In)){if(Lt!==null){var Re={eventTime:En,lane:ni,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Lt=Lt.next=Re}ye=FV(r,h,Nt,ye,a,l);var he=Nt.callback;if(he!==null&&Nt.lane!==ni){r.flags|=h0;var qe=h.effects;qe===null?h.effects=[Nt]:qe.push(Nt)}}else{var me={eventTime:En,lane:In,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Lt===null?(mt=Lt=me,Te=ye):Lt=Lt.next=me,xe=mn(xe,In)}if(Nt=Nt.next,Nt===null){if(O=h.shared.pending,O===null)break;var ht=O,ft=ht.next;ht.next=null,Nt=ft,h.lastBaseUpdate=ht,h.shared.pending=null}}while(!0);Lt===null&&(Te=ye),h.baseState=Te,h.firstBaseUpdate=mt,h.lastBaseUpdate=Lt;var Gt=h.shared.interleaved;if(Gt!==null){var tn=Gt;do xe=mn(xe,tn.lane),tn=tn.next;while(tn!==Gt)}else x===null&&(h.shared.lanes=Fe);cg(xe),r.lanes=xe,r.memoizedState=ye}ax=null}function zV(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function gR(){ix=!1}function lx(){return ix}function bR(r,a,l){var f=a.effects;if(a.effects=null,f!==null)for(var h=0;h<f.length;h++){var x=f[h],_=x.callback;_!==null&&(x.callback=null,zV(_,l))}}var xN={},yR=new e.Component().refs,SN,CN,wN,NN,EN,xR,ux,_N,TN,RN;{SN=new Set,CN=new Set,wN=new Set,NN=new Set,_N=new Set,EN=new Set,TN=new Set,RN=new Set;var SR=new Set;ux=function(r,a){if(!(r===null||typeof r=="function")){var l=a+"_"+r;SR.has(l)||(SR.add(l),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},xR=function(r,a){if(a===void 0){var l=fn(r)||"Component";EN.has(l)||(EN.add(l),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",l))}},Object.defineProperty(xN,"_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(xN)}function AN(r,a,l,f){var h=r.memoizedState,x=l(f,h);{if(r.mode&Ur){ci(!0);try{x=l(f,h)}finally{ci(!1)}}xR(a,x)}var _=x==null?h:en({},h,x);if(r.memoizedState=_,r.lanes===Fe){var O=r.updateQueue;O.baseState=_}}var ON={isMounted:Wm,enqueueSetState:function(r,a,l){var f=hl(r),h=oo(),x=Wf(f),_=Sc(h,x);_.payload=a,l!=null&&(ux(l,"setState"),_.callback=l);var O=$f(f,_,x);O!==null&&(Bi(O,f,x,h),ox(O,f,x)),L0(f,x)},enqueueReplaceState:function(r,a,l){var f=hl(r),h=oo(),x=Wf(f),_=Sc(h,x);_.tag=hR,_.payload=a,l!=null&&(ux(l,"replaceState"),_.callback=l);var O=$f(f,_,x);O!==null&&(Bi(O,f,x,h),ox(O,f,x)),L0(f,x)},enqueueForceUpdate:function(r,a){var l=hl(r),f=oo(),h=Wf(l),x=Sc(f,h);x.tag=rx,a!=null&&(ux(a,"forceUpdate"),x.callback=a);var _=$f(l,x,h);_!==null&&(Bi(_,l,h,f),ox(_,l,h)),ky(l,h)}};function CR(r,a,l,f,h,x,_){var O=r.stateNode;if(typeof O.shouldComponentUpdate=="function"){var M=O.shouldComponentUpdate(f,x,_);{if(r.mode&Ur){ci(!0);try{M=O.shouldComponentUpdate(f,x,_)}finally{ci(!1)}}M===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",fn(a)||"Component")}return M}return a.prototype&&a.prototype.isPureReactComponent?!Tf(l,f)||!Tf(h,x):!0}function BV(r,a,l){var f=r.stateNode;{var h=fn(a)||"Component",x=f.render;x||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",h):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",h)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&u("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?",h),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&u("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.",h),f.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",h),f.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),f.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",h),a.contextType&&a.contextTypes&&!TN.has(a)&&(TN.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",h)),typeof f.componentShouldUpdate=="function"&&u("%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.",h),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",fn(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",h),typeof f.componentDidReceiveProps=="function"&&u("%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().",h),typeof f.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof f.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h);var _=f.props!==l;f.props!==void 0&&_&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",h,h),f.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",h,h),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!wN.has(a)&&(wN.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",fn(a))),typeof f.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof f.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",h);var O=f.state;O&&(typeof O!="object"||Ut(O))&&u("%s.state: must be set to an object or null",h),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h)}}function wR(r,a){a.updater=ON,r.stateNode=a,An(a,r),a._reactInternalInstance=xN}function NR(r,a,l){var f=!1,h=is,x=is,_=a.contextType;if("contextType"in a){var O=_===null||_!==void 0&&_.$$typeof===Cn&&_._context===void 0;if(!O&&!RN.has(a)){RN.add(a);var M="";_===void 0?M=" 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 _!="object"?M=" However, it is set to a "+typeof _+".":_.$$typeof===ln?M=" Did you accidentally pass the Context.Provider instead?":_._context!==void 0?M=" Did you accidentally pass the Context.Consumer instead?":M=" However, it is set to an object with keys {"+Object.keys(_).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",fn(a)||"Component",M)}}if(typeof _=="object"&&_!==null)x=hi(_);else{h=Oh(r,a,!0);var U=a.contextTypes;f=U!=null,x=f?Lh(r,h):is}var H=new a(l,x);if(r.mode&Ur){ci(!0);try{H=new a(l,x)}finally{ci(!1)}}var oe=r.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;wR(r,H);{if(typeof a.getDerivedStateFromProps=="function"&&oe===null){var re=fn(a)||"Component";CN.has(re)||(CN.add(re),u("`%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.",re,H.state===null?"null":"undefined",re))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var ye=null,xe=null,Te=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?ye="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(ye="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?xe="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(xe="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?Te="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Te="UNSAFE_componentWillUpdate"),ye!==null||xe!==null||Te!==null){var mt=fn(a)||"Component",Lt=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";NN.has(mt)||(NN.add(mt),u(`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`,mt,Lt,ye!==null?`
`+ye:"",xe!==null?`
`+xe:"",Te!==null?`
`+Te:""))}}}return f&&qT(r,h,x),H}function UV(r,a){var l=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),l!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ht(r)||"Component"),ON.enqueueReplaceState(a,a.state,null))}function ER(r,a,l,f){var h=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,f),a.state!==h){{var x=Ht(r)||"Component";SN.has(x)||(SN.add(x),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x))}ON.enqueueReplaceState(a,a.state,null)}}function LN(r,a,l,f){BV(r,a,l);var h=r.stateNode;h.props=l,h.state=r.memoizedState,h.refs=yR,bN(r);var x=a.contextType;if(typeof x=="object"&&x!==null)h.context=hi(x);else{var _=Oh(r,a,!0);h.context=Lh(r,_)}{if(h.state===l){var O=fn(a)||"Component";_N.has(O)||(_N.add(O),u("%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.",O))}r.mode&Ur&&Tl.recordLegacyContextWarning(r,h),Tl.recordUnsafeLifecycleWarnings(r,h)}h.state=r.memoizedState;var M=a.getDerivedStateFromProps;if(typeof M=="function"&&(AN(r,a,M,l),h.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(UV(r,h),sx(r,l,h,f),h.state=r.memoizedState),typeof h.componentDidMount=="function"){var U=pn;U|=ec,(r.mode&So)!==$t&&(U|=ti),r.flags|=U}}function jV(r,a,l,f){var h=r.stateNode,x=r.memoizedProps;h.props=x;var _=h.context,O=a.contextType,M=is;if(typeof O=="object"&&O!==null)M=hi(O);else{var U=Oh(r,a,!0);M=Lh(r,U)}var H=a.getDerivedStateFromProps,oe=typeof H=="function"||typeof h.getSnapshotBeforeUpdate=="function";!oe&&(typeof h.UNSAFE_componentWillReceiveProps=="function"||typeof h.componentWillReceiveProps=="function")&&(x!==l||_!==M)&&ER(r,h,l,M),gR();var re=r.memoizedState,ye=h.state=re;if(sx(r,l,h,f),ye=r.memoizedState,x===l&&re===ye&&!H2()&&!lx()){if(typeof h.componentDidMount=="function"){var xe=pn;xe|=ec,(r.mode&So)!==$t&&(xe|=ti),r.flags|=xe}return!1}typeof H=="function"&&(AN(r,a,H,l),ye=r.memoizedState);var Te=lx()||CR(r,a,x,l,re,ye,M);if(Te){if(!oe&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"){var mt=pn;mt|=ec,(r.mode&So)!==$t&&(mt|=ti),r.flags|=mt}}else{if(typeof h.componentDidMount=="function"){var Lt=pn;Lt|=ec,(r.mode&So)!==$t&&(Lt|=ti),r.flags|=Lt}r.memoizedProps=l,r.memoizedState=ye}return h.props=l,h.state=ye,h.context=M,Te}function VV(r,a,l,f,h){var x=a.stateNode;vR(r,a);var _=a.memoizedProps,O=a.type===a.elementType?_:Rl(a.type,_);x.props=O;var M=a.pendingProps,U=x.context,H=l.contextType,oe=is;if(typeof H=="object"&&H!==null)oe=hi(H);else{var re=Oh(a,l,!0);oe=Lh(a,re)}var ye=l.getDerivedStateFromProps,xe=typeof ye=="function"||typeof x.getSnapshotBeforeUpdate=="function";!xe&&(typeof x.UNSAFE_componentWillReceiveProps=="function"||typeof x.componentWillReceiveProps=="function")&&(_!==M||U!==oe)&&ER(a,x,f,oe),gR();var Te=a.memoizedState,mt=x.state=Te;if(sx(a,f,x,h),mt=a.memoizedState,_===M&&Te===mt&&!H2()&&!lx()&&!ve)return typeof x.componentDidUpdate=="function"&&(_!==r.memoizedProps||Te!==r.memoizedState)&&(a.flags|=pn),typeof x.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||Te!==r.memoizedState)&&(a.flags|=Qu),!1;typeof ye=="function"&&(AN(a,l,ye,f),mt=a.memoizedState);var Lt=lx()||CR(a,l,O,f,Te,mt,oe)||ve;return Lt?(!xe&&(typeof x.UNSAFE_componentWillUpdate=="function"||typeof x.componentWillUpdate=="function")&&(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,mt,oe),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,mt,oe)),typeof x.componentDidUpdate=="function"&&(a.flags|=pn),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=Qu)):(typeof x.componentDidUpdate=="function"&&(_!==r.memoizedProps||Te!==r.memoizedState)&&(a.flags|=pn),typeof x.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||Te!==r.memoizedState)&&(a.flags|=Qu),a.memoizedProps=f,a.memoizedState=mt),x.props=f,x.state=mt,x.context=oe,Lt}var kN,MN,DN,PN,IN,_R=function(r,a){};kN=!1,MN=!1,DN={},PN={},IN={},_R=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 l=Ht(a)||"Component";PN[l]||(PN[l]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function z1(r,a,l){var f=l.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((r.mode&Ur||Ze)&&!(l._owner&&l._self&&l._owner.stateNode!==l._self)){var h=Ht(r)||"Component";DN[h]||(u('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),DN[h]=!0)}if(l._owner){var x=l._owner,_;if(x){var O=x;if(O.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");_=O.stateNode}if(!_)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var M=_;_t(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(oe){var re=M.refs;re===yR&&(re=M.refs={}),oe===null?delete re[U]:re[U]=oe};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(!l._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 cx(r,a){var l=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}function fx(r){{var a=Ht(r)||"Component";if(IN[a])return;IN[a]=!0,u("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 TR(r){var a=r._payload,l=r._init;return l(a)}function RR(r){function a(me,Re){if(!!r){var he=me.deletions;he===null?(me.deletions=[Re],me.flags|=Xu):he.push(Re)}}function l(me,Re){if(!r)return null;for(var he=Re;he!==null;)a(me,he),he=he.sibling;return null}function f(me,Re){for(var he=new Map,qe=Re;qe!==null;)qe.key!==null?he.set(qe.key,qe):he.set(qe.index,qe),qe=qe.sibling;return he}function h(me,Re){var he=Hp(me,Re);return he.index=0,he.sibling=null,he}function x(me,Re,he){if(me.index=he,!r)return me.flags|=vy,Re;var qe=me.alternate;if(qe!==null){var ht=qe.index;return ht<Re?(me.flags|=Yr,Re):ht}else return me.flags|=Yr,Re}function _(me){return r&&me.alternate===null&&(me.flags|=Yr),me}function O(me,Re,he,qe){if(Re===null||Re.tag!==T){var ht=u6(he,me.mode,qe);return ht.return=me,ht}else{var ft=h(Re,he);return ft.return=me,ft}}function M(me,Re,he,qe){var ht=he.type;if(ht===Ue)return H(me,Re,he.props.children,qe,he.key);if(Re!==null&&(Re.elementType===ht||bO(Re,he)||typeof ht=="object"&&ht!==null&&ht.$$typeof===cn&&TR(ht)===Re.type)){var ft=h(Re,he.props);return ft.ref=z1(me,Re,he),ft.return=me,ft._debugSource=he._source,ft._debugOwner=he._owner,ft}var Gt=l6(he,me.mode,qe);return Gt.ref=z1(me,Re,he),Gt.return=me,Gt}function U(me,Re,he,qe){if(Re===null||Re.tag!==C||Re.stateNode.containerInfo!==he.containerInfo||Re.stateNode.implementation!==he.implementation){var ht=c6(he,me.mode,qe);return ht.return=me,ht}else{var ft=h(Re,he.children||[]);return ft.return=me,ft}}function H(me,Re,he,qe,ht){if(Re===null||Re.tag!==A){var ft=Yf(he,me.mode,qe,ht);return ft.return=me,ft}else{var Gt=h(Re,he);return Gt.return=me,Gt}}function oe(me,Re,he){if(typeof Re=="string"&&Re!==""||typeof Re=="number"){var qe=u6(""+Re,me.mode,he);return qe.return=me,qe}if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case Hi:{var ht=l6(Re,me.mode,he);return ht.ref=z1(me,null,Re),ht.return=me,ht}case X:{var ft=c6(Re,me.mode,he);return ft.return=me,ft}case cn:{var Gt=Re._payload,tn=Re._init;return oe(me,tn(Gt),he)}}if(Ut(Re)||Za(Re)){var sr=Yf(Re,me.mode,he,null);return sr.return=me,sr}cx(me,Re)}return typeof Re=="function"&&fx(me),null}function re(me,Re,he,qe){var ht=Re!==null?Re.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return ht!==null?null:O(me,Re,""+he,qe);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case Hi:return he.key===ht?M(me,Re,he,qe):null;case X:return he.key===ht?U(me,Re,he,qe):null;case cn:{var ft=he._payload,Gt=he._init;return re(me,Re,Gt(ft),qe)}}if(Ut(he)||Za(he))return ht!==null?null:H(me,Re,he,qe,null);cx(me,he)}return typeof he=="function"&&fx(me),null}function ye(me,Re,he,qe,ht){if(typeof qe=="string"&&qe!==""||typeof qe=="number"){var ft=me.get(he)||null;return O(Re,ft,""+qe,ht)}if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case Hi:{var Gt=me.get(qe.key===null?he:qe.key)||null;return M(Re,Gt,qe,ht)}case X:{var tn=me.get(qe.key===null?he:qe.key)||null;return U(Re,tn,qe,ht)}case cn:var sr=qe._payload,Gn=qe._init;return ye(me,Re,he,Gn(sr),ht)}if(Ut(qe)||Za(qe)){var ai=me.get(he)||null;return H(Re,ai,qe,ht,null)}cx(Re,qe)}return typeof qe=="function"&&fx(Re),null}function xe(me,Re,he){{if(typeof me!="object"||me===null)return Re;switch(me.$$typeof){case Hi:case X:_R(me,he);var qe=me.key;if(typeof qe!="string")break;if(Re===null){Re=new Set,Re.add(qe);break}if(!Re.has(qe)){Re.add(qe);break}u("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.",qe);break;case cn:var ht=me._payload,ft=me._init;xe(ft(ht),Re,he);break}}return Re}function Te(me,Re,he,qe){for(var ht=null,ft=0;ft<he.length;ft++){var Gt=he[ft];ht=xe(Gt,ht,me)}for(var tn=null,sr=null,Gn=Re,ai=0,Yn=0,Zr=null;Gn!==null&&Yn<he.length;Yn++){Gn.index>Yn?(Zr=Gn,Gn=null):Zr=Gn.sibling;var Ua=re(me,Gn,he[Yn],qe);if(Ua===null){Gn===null&&(Gn=Zr);break}r&&Gn&&Ua.alternate===null&&a(me,Gn),ai=x(Ua,ai,Yn),sr===null?tn=Ua:sr.sibling=Ua,sr=Ua,Gn=Zr}if(Yn===he.length){if(l(me,Gn),fa()){var ba=Yn;Lp(me,ba)}return tn}if(Gn===null){for(;Yn<he.length;Yn++){var os=oe(me,he[Yn],qe);os!==null&&(ai=x(os,ai,Yn),sr===null?tn=os:sr.sibling=os,sr=os)}if(fa()){var so=Yn;Lp(me,so)}return tn}for(var lo=f(me,Gn);Yn<he.length;Yn++){var ja=ye(lo,me,Yn,he[Yn],qe);ja!==null&&(r&&ja.alternate!==null&&lo.delete(ja.key===null?Yn:ja.key),ai=x(ja,ai,Yn),sr===null?tn=ja:sr.sibling=ja,sr=ja)}if(r&&lo.forEach(function(Jh){return a(me,Jh)}),fa()){var Tc=Yn;Lp(me,Tc)}return tn}function mt(me,Re,he,qe){var ht=Za(he);if(typeof ht!="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"&&he[Symbol.toStringTag]==="Generator"&&(MN||u("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."),MN=!0),he.entries===ht&&(kN||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kN=!0);var ft=ht.call(he);if(ft)for(var Gt=null,tn=ft.next();!tn.done;tn=ft.next()){var sr=tn.value;Gt=xe(sr,Gt,me)}}var Gn=ht.call(he);if(Gn==null)throw new Error("An iterable object provided no iterator.");for(var ai=null,Yn=null,Zr=Re,Ua=0,ba=0,os=null,so=Gn.next();Zr!==null&&!so.done;ba++,so=Gn.next()){Zr.index>ba?(os=Zr,Zr=null):os=Zr.sibling;var lo=re(me,Zr,so.value,qe);if(lo===null){Zr===null&&(Zr=os);break}r&&Zr&&lo.alternate===null&&a(me,Zr),Ua=x(lo,Ua,ba),Yn===null?ai=lo:Yn.sibling=lo,Yn=lo,Zr=os}if(so.done){if(l(me,Zr),fa()){var ja=ba;Lp(me,ja)}return ai}if(Zr===null){for(;!so.done;ba++,so=Gn.next()){var Tc=oe(me,so.value,qe);Tc!==null&&(Ua=x(Tc,Ua,ba),Yn===null?ai=Tc:Yn.sibling=Tc,Yn=Tc)}if(fa()){var Jh=ba;Lp(me,Jh)}return ai}for(var hg=f(me,Zr);!so.done;ba++,so=Gn.next()){var vu=ye(hg,me,ba,so.value,qe);vu!==null&&(r&&vu.alternate!==null&&hg.delete(vu.key===null?ba:vu.key),Ua=x(vu,Ua,ba),Yn===null?ai=vu:Yn.sibling=vu,Yn=vu)}if(r&&hg.forEach(function(rY){return a(me,rY)}),fa()){var nY=ba;Lp(me,nY)}return ai}function Lt(me,Re,he,qe){if(Re!==null&&Re.tag===T){l(me,Re.sibling);var ht=h(Re,he);return ht.return=me,ht}l(me,Re);var ft=u6(he,me.mode,qe);return ft.return=me,ft}function Nt(me,Re,he,qe){for(var ht=he.key,ft=Re;ft!==null;){if(ft.key===ht){var Gt=he.type;if(Gt===Ue){if(ft.tag===A){l(me,ft.sibling);var tn=h(ft,he.props.children);return tn.return=me,tn._debugSource=he._source,tn._debugOwner=he._owner,tn}}else if(ft.elementType===Gt||bO(ft,he)||typeof Gt=="object"&&Gt!==null&&Gt.$$typeof===cn&&TR(Gt)===ft.type){l(me,ft.sibling);var sr=h(ft,he.props);return sr.ref=z1(me,ft,he),sr.return=me,sr._debugSource=he._source,sr._debugOwner=he._owner,sr}l(me,ft);break}else a(me,ft);ft=ft.sibling}if(he.type===Ue){var Gn=Yf(he.props.children,me.mode,qe,he.key);return Gn.return=me,Gn}else{var ai=l6(he,me.mode,qe);return ai.ref=z1(me,Re,he),ai.return=me,ai}}function In(me,Re,he,qe){for(var ht=he.key,ft=Re;ft!==null;){if(ft.key===ht)if(ft.tag===C&&ft.stateNode.containerInfo===he.containerInfo&&ft.stateNode.implementation===he.implementation){l(me,ft.sibling);var Gt=h(ft,he.children||[]);return Gt.return=me,Gt}else{l(me,ft);break}else a(me,ft);ft=ft.sibling}var tn=c6(he,me.mode,qe);return tn.return=me,tn}function En(me,Re,he,qe){var ht=typeof he=="object"&&he!==null&&he.type===Ue&&he.key===null;if(ht&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case Hi:return _(Nt(me,Re,he,qe));case X:return _(In(me,Re,he,qe));case cn:var ft=he._payload,Gt=he._init;return En(me,Re,Gt(ft),qe)}if(Ut(he))return Te(me,Re,he,qe);if(Za(he))return mt(me,Re,he,qe);cx(me,he)}return typeof he=="string"&&he!==""||typeof he=="number"?_(Lt(me,Re,""+he,qe)):(typeof he=="function"&&fx(me),l(me,Re))}return En}var $h=RR(!0),AR=RR(!1);function HV(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var l=a.child,f=Hp(l,l.pendingProps);for(a.child=f,f.return=a;l.sibling!==null;)l=l.sibling,f=f.sibling=Hp(l,l.pendingProps),f.return=a;f.sibling=null}}function WV(r,a){for(var l=r.child;l!==null;)xG(l,a),l=l.sibling}var B1={},Ff=Qi(B1),U1=Qi(B1),dx=Qi(B1);function px(r){if(r===B1)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 OR(){var r=px(dx.current);return r}function $N(r,a){za(dx,a,r),za(U1,r,r),za(Ff,B1,r);var l=aw(a);ki(Ff,r),za(Ff,l,r)}function Fh(r){ki(Ff,r),ki(U1,r),ki(dx,r)}function FN(){var r=px(Ff.current);return r}function LR(r){px(dx.current);var a=px(Ff.current),l=ow(a,r.type);a!==l&&(za(U1,r,r),za(Ff,l,r))}function zN(r){U1.current===r&&(ki(Ff,r),ki(U1,r))}var GV=0,kR=1,MR=1,j1=2,Al=Qi(GV);function BN(r,a){return(r&a)!==0}function zh(r){return r&kR}function UN(r,a){return r&kR|a}function YV(r,a){return r|a}function zf(r,a){za(Al,a,r)}function Bh(r){ki(Al,r)}function qV(r,a){var l=r.memoizedState;return l!==null?l.dehydrated!==null:(r.memoizedProps,!0)}function mx(r){for(var a=r;a!==null;){if(a.tag===z){var l=a.memoizedState;if(l!==null){var f=l.dehydrated;if(f===null||j2(f)||O1(f))return a}}else if(a.tag===pe&&a.memoizedProps.revealOrder!==void 0){var h=(a.flags&Un)!==Bt;if(h)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 _o=0,Mi=1,uu=2,Di=4,da=8,jN=[];function VN(){for(var r=0;r<jN.length;r++){var a=jN[r];a._workInProgressVersionPrimary=null}jN.length=0}function ZV(r,a){var l=a._getVersion,f=l(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,f]:r.mutableSourceEagerHydrationData.push(a,f)}var dt=n.ReactCurrentDispatcher,V1=n.ReactCurrentBatchConfig,HN,Uh;HN=new Set;var $p=Fe,or=null,Pi=null,Ii=null,hx=!1,H1=!1,W1=0,KV=0,XV=25,ke=null,Hs=null,Bf=-1,WN=!1;function Qn(){{var r=ke;Hs===null?Hs=[r]:Hs.push(r)}}function rt(){{var r=ke;Hs!==null&&(Bf++,Hs[Bf]!==r&&QV(r))}}function jh(r){r!=null&&!Ut(r)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ke,typeof r)}function QV(r){{var a=Ht(or);if(!HN.has(a)&&(HN.add(a),Hs!==null)){for(var l="",f=30,h=0;h<=Bf;h++){for(var x=Hs[h],_=h===Bf?r:x,O=h+1+". "+x;O.length<f;)O+=" ";O+=_+`
`,l+=O}u(`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,l)}}}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 GN(r,a){if(WN)return!1;if(a===null)return u("%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.",ke),!1;r.length!==a.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,ke,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var l=0;l<a.length&&l<r.length;l++)if(!la(r[l],a[l]))return!1;return!0}function Vh(r,a,l,f,h,x){$p=x,or=a,Hs=r!==null?r._debugHookTypes:null,Bf=-1,WN=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Fe,r!==null&&r.memoizedState!==null?dt.current=tA:Hs!==null?dt.current=eA:dt.current=JR;var _=l(f,h);if(H1){var O=0;do{if(H1=!1,W1=0,O>=XV)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");O+=1,WN=!1,Pi=null,Ii=null,a.updateQueue=null,Bf=-1,dt.current=nA,_=l(f,h)}while(H1)}dt.current=Rx,a._debugHookTypes=Hs;var M=Pi!==null&&Pi.next!==null;if($p=Fe,or=null,Pi=null,Ii=null,ke=null,Hs=null,Bf=-1,r!==null&&(r.flags&As)!==(a.flags&As)&&(r.mode&wn)!==$t&&u("Internal React error: Expected static flag was missing. Please notify the React team."),hx=!1,M)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return _}function Hh(){var r=W1!==0;return W1=0,r}function DR(r,a,l){a.updateQueue=r.updateQueue,(a.mode&So)!==$t?a.flags&=~(Vm|ti|ts|pn):a.flags&=~(ts|pn),r.lanes=tp(r.lanes,l)}function PR(){if(dt.current=Rx,hx){for(var r=or.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}hx=!1}$p=Fe,or=null,Pi=null,Ii=null,Hs=null,Bf=-1,ke=null,qR=!1,H1=!1,W1=0}function cu(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ii===null?or.memoizedState=Ii=r:Ii=Ii.next=r,Ii}function Ws(){var r;if(Pi===null){var a=or.alternate;a!==null?r=a.memoizedState:r=null}else r=Pi.next;var l;if(Ii===null?l=or.memoizedState:l=Ii.next,l!==null)Ii=l,l=Ii.next,Pi=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");Pi=r;var f={memoizedState:Pi.memoizedState,baseState:Pi.baseState,baseQueue:Pi.baseQueue,queue:Pi.queue,next:null};Ii===null?or.memoizedState=Ii=f:Ii=Ii.next=f}return Ii}function IR(){return{lastEffect:null,stores:null}}function YN(r,a){return typeof a=="function"?a(r):a}function qN(r,a,l){var f=cu(),h;l!==void 0?h=l(a):h=a,f.memoizedState=f.baseState=h;var x={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:r,lastRenderedState:h};f.queue=x;var _=x.dispatch=nH.bind(null,or,x);return[f.memoizedState,_]}function ZN(r,a,l){var f=Ws(),h=f.queue;if(h===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=r;var x=Pi,_=x.baseQueue,O=h.pending;if(O!==null){if(_!==null){var M=_.next,U=O.next;_.next=U,O.next=M}x.baseQueue!==_&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),x.baseQueue=_=O,h.pending=null}if(_!==null){var H=_.next,oe=x.baseState,re=null,ye=null,xe=null,Te=H;do{var mt=Te.lane;if(sc($p,mt)){if(xe!==null){var Nt={lane:ni,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null};xe=xe.next=Nt}if(Te.hasEagerState)oe=Te.eagerState;else{var In=Te.action;oe=r(oe,In)}}else{var Lt={lane:mt,action:Te.action,hasEagerState:Te.hasEagerState,eagerState:Te.eagerState,next:null};xe===null?(ye=xe=Lt,re=oe):xe=xe.next=Lt,or.lanes=mn(or.lanes,mt),cg(mt)}Te=Te.next}while(Te!==null&&Te!==H);xe===null?re=oe:xe.next=ye,la(oe,f.memoizedState)||Q1(),f.memoizedState=oe,f.baseState=re,f.baseQueue=xe,h.lastRenderedState=oe}var En=h.interleaved;if(En!==null){var me=En;do{var Re=me.lane;or.lanes=mn(or.lanes,Re),cg(Re),me=me.next}while(me!==En)}else _===null&&(h.lanes=Fe);var he=h.dispatch;return[f.memoizedState,he]}function KN(r,a,l){var f=Ws(),h=f.queue;if(h===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=r;var x=h.dispatch,_=h.pending,O=f.memoizedState;if(_!==null){h.pending=null;var M=_.next,U=M;do{var H=U.action;O=r(O,H),U=U.next}while(U!==M);la(O,f.memoizedState)||Q1(),f.memoizedState=O,f.baseQueue===null&&(f.baseState=O),h.lastRenderedState=O}return[O,x]}function LSe(r,a,l){}function kSe(r,a,l){}function XN(r,a,l){var f=or,h=cu(),x,_=fa();if(_){if(l===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");x=l(),Uh||x!==l()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),Uh=!0)}else{if(x=a(),!Uh){var O=a();la(x,O)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),Uh=!0)}var M=Gx();if(M===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");oc(M,$p)||$R(f,a,x)}h.memoizedState=x;var U={value:x,getSnapshot:a};return h.queue=U,xx(zR.bind(null,f,U,r),[r]),f.flags|=ts,G1(Mi|da,FR.bind(null,f,U,x,a),void 0,null),x}function vx(r,a,l){var f=or,h=Ws(),x=a();if(!Uh){var _=a();la(x,_)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),Uh=!0)}var O=h.memoizedState,M=!la(O,x);M&&(h.memoizedState=x,Q1());var U=h.queue;if(q1(zR.bind(null,f,U,r),[r]),U.getSnapshot!==a||M||Ii!==null&&Ii.memoizedState.tag&Mi){f.flags|=ts,G1(Mi|da,FR.bind(null,f,U,x,a),void 0,null);var H=Gx();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");oc(H,$p)||$R(f,a,x)}return x}function $R(r,a,l){r.flags|=jm;var f={getSnapshot:a,value:l},h=or.updateQueue;if(h===null)h=IR(),or.updateQueue=h,h.stores=[f];else{var x=h.stores;x===null?h.stores=[f]:x.push(f)}}function FR(r,a,l,f){a.value=l,a.getSnapshot=f,BR(a)&&UR(r)}function zR(r,a,l){var f=function(){BR(a)&&UR(r)};return l(f)}function BR(r){var a=r.getSnapshot,l=r.value;try{var f=a();return!la(l,f)}catch{return!0}}function UR(r){var a=Eo(r,Yt);a!==null&&Bi(a,r,Yt,tr)}function gx(r){var a=cu();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var l={pending:null,interleaved:null,lanes:Fe,dispatch:null,lastRenderedReducer:YN,lastRenderedState:r};a.queue=l;var f=l.dispatch=rH.bind(null,or,l);return[a.memoizedState,f]}function QN(r){return ZN(YN)}function JN(r){return KN(YN)}function G1(r,a,l,f){var h={tag:r,create:a,destroy:l,deps:f,next:null},x=or.updateQueue;if(x===null)x=IR(),or.updateQueue=x,x.lastEffect=h.next=h;else{var _=x.lastEffect;if(_===null)x.lastEffect=h.next=h;else{var O=_.next;_.next=h,h.next=O,x.lastEffect=h}}return h}function e9(r){var a=cu();{var l={current:r};return a.memoizedState=l,l}}function bx(r){var a=Ws();return a.memoizedState}function Y1(r,a,l,f){var h=cu(),x=f===void 0?null:f;or.flags|=r,h.memoizedState=G1(Mi|a,l,void 0,x)}function yx(r,a,l,f){var h=Ws(),x=f===void 0?null:f,_=void 0;if(Pi!==null){var O=Pi.memoizedState;if(_=O.destroy,x!==null){var M=O.deps;if(GN(x,M)){h.memoizedState=G1(a,l,_,x);return}}}or.flags|=r,h.memoizedState=G1(Mi|a,l,_,x)}function xx(r,a){return(or.mode&So)!==$t?Y1(Vm|ts|g0,da,r,a):Y1(ts|g0,da,r,a)}function q1(r,a){return yx(ts,da,r,a)}function t9(r,a){return Y1(pn,uu,r,a)}function Sx(r,a){return yx(pn,uu,r,a)}function n9(r,a){var l=pn;return l|=ec,(or.mode&So)!==$t&&(l|=ti),Y1(l,Di,r,a)}function Cx(r,a){return yx(pn,Di,r,a)}function jR(r,a){if(typeof a=="function"){var l=a,f=r();return l(f),function(){l(null)}}else if(a!=null){var h=a;h.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(h).join(", ")+"}");var x=r();return h.current=x,function(){h.current=null}}}function r9(r,a,l){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=l!=null?l.concat([r]):null,h=pn;return h|=ec,(or.mode&So)!==$t&&(h|=ti),Y1(h,Di,jR.bind(null,a,r),f)}function wx(r,a,l){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=l!=null?l.concat([r]):null;return yx(pn,Di,jR.bind(null,a,r),f)}function JV(r,a){}var Nx=JV;function i9(r,a){var l=cu(),f=a===void 0?null:a;return l.memoizedState=[r,f],r}function Ex(r,a){var l=Ws(),f=a===void 0?null:a,h=l.memoizedState;if(h!==null&&f!==null){var x=h[1];if(GN(f,x))return h[0]}return l.memoizedState=[r,f],r}function a9(r,a){var l=cu(),f=a===void 0?null:a,h=r();return l.memoizedState=[h,f],h}function _x(r,a){var l=Ws(),f=a===void 0?null:a,h=l.memoizedState;if(h!==null&&f!==null){var x=h[1];if(GN(f,x))return h[0]}var _=r();return l.memoizedState=[_,f],_}function o9(r){var a=cu();return a.memoizedState=r,r}function VR(r){var a=Ws(),l=Pi,f=l.memoizedState;return WR(a,f,r)}function HR(r){var a=Ws();if(Pi===null)return a.memoizedState=r,r;var l=Pi.memoizedState;return WR(a,l,r)}function WR(r,a,l){var f=!rh($p);if(f){if(!la(l,a)){var h=Jd();or.lanes=mn(or.lanes,h),cg(h),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,Q1()),r.memoizedState=l,l}function eH(r,a,l){var f=Co();di(_4(f,Ps)),r(!0);var h=V1.transition;V1.transition={};var x=V1.transition;V1.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(di(f),V1.transition=h,h===null&&x._updatedFibers){var _=x._updatedFibers.size;_>10&&s("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."),x._updatedFibers.clear()}}}function s9(){var r=gx(!1),a=r[0],l=r[1],f=eH.bind(null,l),h=cu();return h.memoizedState=f,[a,f]}function GR(){var r=QN(),a=r[0],l=Ws(),f=l.memoizedState;return[a,f]}function YR(){var r=JN(),a=r[0],l=Ws(),f=l.memoizedState;return[a,f]}var qR=!1;function tH(){return qR}function l9(){var r=cu(),a=Gx(),l=a.identifierPrefix,f;if(fa()){var h=hV();f=":"+l+"R"+h;var x=W1++;x>0&&(f+="H"+x.toString(32)),f+=":"}else{var _=KV++;f=":"+l+"r"+_.toString(32)+":"}return r.memoizedState=f,f}function Tx(){var r=Ws(),a=r.memoizedState;return a}function nH(r,a,l){typeof arguments[3]=="function"&&u("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=Wf(r),h={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(ZR(r))KR(a,h);else{var x=pR(r,a,h,f);if(x!==null){var _=oo();Bi(x,r,f,_),XR(x,a,f)}}QR(r,f)}function rH(r,a,l){typeof arguments[3]=="function"&&u("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=Wf(r),h={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(ZR(r))KR(a,h);else{var x=r.alternate;if(r.lanes===Fe&&(x===null||x.lanes===Fe)){var _=a.lastRenderedReducer;if(_!==null){var O;O=dt.current,dt.current=Ol;try{var M=a.lastRenderedState,U=_(M,l);if(h.hasEagerState=!0,h.eagerState=U,la(U,M)){PV(r,a,h,f);return}}catch{}finally{dt.current=O}}}var H=pR(r,a,h,f);if(H!==null){var oe=oo();Bi(H,r,f,oe),XR(H,a,f)}}QR(r,f)}function ZR(r){var a=r.alternate;return r===or||a!==null&&a===or}function KR(r,a){H1=hx=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function XR(r,a,l){if(B0(l)){var f=a.lanes;f=Fy(f,r.pendingLanes);var h=mn(f,l);a.lanes=h,Ft(r,h)}}function QR(r,a,l){L0(r,a)}var Rx={readContext:hi,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:le},JR=null,eA=null,tA=null,nA=null,fu=null,Ol=null,Ax=null;{var u9=function(){u("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(){u("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")};JR={readContext:function(r){return hi(r)},useCallback:function(r,a){return ke="useCallback",Qn(),jh(a),i9(r,a)},useContext:function(r){return ke="useContext",Qn(),hi(r)},useEffect:function(r,a){return ke="useEffect",Qn(),jh(a),xx(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",Qn(),jh(l),r9(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Qn(),jh(a),t9(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Qn(),jh(a),n9(r,a)},useMemo:function(r,a){ke="useMemo",Qn(),jh(a);var l=dt.current;dt.current=fu;try{return a9(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",Qn();var f=dt.current;dt.current=fu;try{return qN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",Qn(),e9(r)},useState:function(r){ke="useState",Qn();var a=dt.current;dt.current=fu;try{return gx(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Qn(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",Qn(),o9(r)},useTransition:function(){return ke="useTransition",Qn(),s9()},useMutableSource:function(r,a,l){return ke="useMutableSource",Qn(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",Qn(),XN(r,a,l)},useId:function(){return ke="useId",Qn(),l9()},unstable_isNewReconciler:le},eA={readContext:function(r){return hi(r)},useCallback:function(r,a){return ke="useCallback",rt(),i9(r,a)},useContext:function(r){return ke="useContext",rt(),hi(r)},useEffect:function(r,a){return ke="useEffect",rt(),xx(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",rt(),r9(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",rt(),t9(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",rt(),n9(r,a)},useMemo:function(r,a){ke="useMemo",rt();var l=dt.current;dt.current=fu;try{return a9(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",rt();var f=dt.current;dt.current=fu;try{return qN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",rt(),e9(r)},useState:function(r){ke="useState",rt();var a=dt.current;dt.current=fu;try{return gx(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",rt(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",rt(),o9(r)},useTransition:function(){return ke="useTransition",rt(),s9()},useMutableSource:function(r,a,l){return ke="useMutableSource",rt(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",rt(),XN(r,a,l)},useId:function(){return ke="useId",rt(),l9()},unstable_isNewReconciler:le},tA={readContext:function(r){return hi(r)},useCallback:function(r,a){return ke="useCallback",rt(),Ex(r,a)},useContext:function(r){return ke="useContext",rt(),hi(r)},useEffect:function(r,a){return ke="useEffect",rt(),q1(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",rt(),wx(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",rt(),Sx(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",rt(),Cx(r,a)},useMemo:function(r,a){ke="useMemo",rt();var l=dt.current;dt.current=Ol;try{return _x(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",rt();var f=dt.current;dt.current=Ol;try{return ZN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",rt(),bx()},useState:function(r){ke="useState",rt();var a=dt.current;dt.current=Ol;try{return QN(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",rt(),Nx()},useDeferredValue:function(r){return ke="useDeferredValue",rt(),VR(r)},useTransition:function(){return ke="useTransition",rt(),GR()},useMutableSource:function(r,a,l){return ke="useMutableSource",rt(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",rt(),vx(r,a)},useId:function(){return ke="useId",rt(),Tx()},unstable_isNewReconciler:le},nA={readContext:function(r){return hi(r)},useCallback:function(r,a){return ke="useCallback",rt(),Ex(r,a)},useContext:function(r){return ke="useContext",rt(),hi(r)},useEffect:function(r,a){return ke="useEffect",rt(),q1(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",rt(),wx(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",rt(),Sx(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",rt(),Cx(r,a)},useMemo:function(r,a){ke="useMemo",rt();var l=dt.current;dt.current=Ax;try{return _x(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",rt();var f=dt.current;dt.current=Ax;try{return KN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",rt(),bx()},useState:function(r){ke="useState",rt();var a=dt.current;dt.current=Ax;try{return JN(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",rt(),Nx()},useDeferredValue:function(r){return ke="useDeferredValue",rt(),HR(r)},useTransition:function(){return ke="useTransition",rt(),YR()},useMutableSource:function(r,a,l){return ke="useMutableSource",rt(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",rt(),vx(r,a)},useId:function(){return ke="useId",rt(),Tx()},unstable_isNewReconciler:le},fu={readContext:function(r){return u9(),hi(r)},useCallback:function(r,a){return ke="useCallback",Qt(),Qn(),i9(r,a)},useContext:function(r){return ke="useContext",Qt(),Qn(),hi(r)},useEffect:function(r,a){return ke="useEffect",Qt(),Qn(),xx(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",Qt(),Qn(),r9(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Qt(),Qn(),t9(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Qt(),Qn(),n9(r,a)},useMemo:function(r,a){ke="useMemo",Qt(),Qn();var l=dt.current;dt.current=fu;try{return a9(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",Qt(),Qn();var f=dt.current;dt.current=fu;try{return qN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",Qt(),Qn(),e9(r)},useState:function(r){ke="useState",Qt(),Qn();var a=dt.current;dt.current=fu;try{return gx(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Qt(),Qn(),void 0},useDeferredValue:function(r){return ke="useDeferredValue",Qt(),Qn(),o9(r)},useTransition:function(){return ke="useTransition",Qt(),Qn(),s9()},useMutableSource:function(r,a,l){return ke="useMutableSource",Qt(),Qn(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",Qt(),Qn(),XN(r,a,l)},useId:function(){return ke="useId",Qt(),Qn(),l9()},unstable_isNewReconciler:le},Ol={readContext:function(r){return u9(),hi(r)},useCallback:function(r,a){return ke="useCallback",Qt(),rt(),Ex(r,a)},useContext:function(r){return ke="useContext",Qt(),rt(),hi(r)},useEffect:function(r,a){return ke="useEffect",Qt(),rt(),q1(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",Qt(),rt(),wx(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Qt(),rt(),Sx(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Qt(),rt(),Cx(r,a)},useMemo:function(r,a){ke="useMemo",Qt(),rt();var l=dt.current;dt.current=Ol;try{return _x(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",Qt(),rt();var f=dt.current;dt.current=Ol;try{return ZN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",Qt(),rt(),bx()},useState:function(r){ke="useState",Qt(),rt();var a=dt.current;dt.current=Ol;try{return QN(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Qt(),rt(),Nx()},useDeferredValue:function(r){return ke="useDeferredValue",Qt(),rt(),VR(r)},useTransition:function(){return ke="useTransition",Qt(),rt(),GR()},useMutableSource:function(r,a,l){return ke="useMutableSource",Qt(),rt(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",Qt(),rt(),vx(r,a)},useId:function(){return ke="useId",Qt(),rt(),Tx()},unstable_isNewReconciler:le},Ax={readContext:function(r){return u9(),hi(r)},useCallback:function(r,a){return ke="useCallback",Qt(),rt(),Ex(r,a)},useContext:function(r){return ke="useContext",Qt(),rt(),hi(r)},useEffect:function(r,a){return ke="useEffect",Qt(),rt(),q1(r,a)},useImperativeHandle:function(r,a,l){return ke="useImperativeHandle",Qt(),rt(),wx(r,a,l)},useInsertionEffect:function(r,a){return ke="useInsertionEffect",Qt(),rt(),Sx(r,a)},useLayoutEffect:function(r,a){return ke="useLayoutEffect",Qt(),rt(),Cx(r,a)},useMemo:function(r,a){ke="useMemo",Qt(),rt();var l=dt.current;dt.current=Ol;try{return _x(r,a)}finally{dt.current=l}},useReducer:function(r,a,l){ke="useReducer",Qt(),rt();var f=dt.current;dt.current=Ol;try{return KN(r,a,l)}finally{dt.current=f}},useRef:function(r){return ke="useRef",Qt(),rt(),bx()},useState:function(r){ke="useState",Qt(),rt();var a=dt.current;dt.current=Ol;try{return JN(r)}finally{dt.current=a}},useDebugValue:function(r,a){return ke="useDebugValue",Qt(),rt(),Nx()},useDeferredValue:function(r){return ke="useDeferredValue",Qt(),rt(),HR(r)},useTransition:function(){return ke="useTransition",Qt(),rt(),YR()},useMutableSource:function(r,a,l){return ke="useMutableSource",Qt(),rt(),void 0},useSyncExternalStore:function(r,a,l){return ke="useSyncExternalStore",Qt(),rt(),vx(r,a)},useId:function(){return ke="useId",Qt(),rt(),Tx()},unstable_isNewReconciler:le}}var Uf=t.unstable_now,rA=0,Ox=-1,Z1=-1,Lx=-1,c9=!1,kx=!1;function iA(){return c9}function iH(){kx=!0}function aH(){c9=!1,kx=!1}function oH(){c9=kx,kx=!1}function aA(){return rA}function oA(){rA=Uf()}function f9(r){Z1=Uf(),r.actualStartTime<0&&(r.actualStartTime=Uf())}function sA(r){Z1=-1}function Mx(r,a){if(Z1>=0){var l=Uf()-Z1;r.actualDuration+=l,a&&(r.selfBaseDuration=l),Z1=-1}}function du(r){if(Ox>=0){var a=Uf()-Ox;Ox=-1;for(var l=r.return;l!==null;){switch(l.tag){case b:var f=l.stateNode;f.effectDuration+=a;return;case F:var h=l.stateNode;h.effectDuration+=a;return}l=l.return}}}function d9(r){if(Lx>=0){var a=Uf()-Lx;Lx=-1;for(var l=r.return;l!==null;){switch(l.tag){case b:var f=l.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case F:var h=l.stateNode;h!==null&&(h.passiveEffectDuration+=a);return}l=l.return}}}function pu(){Ox=Uf()}function p9(){Lx=Uf()}function m9(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Fp(r,a){return{value:r,source:a,stack:Yi(a),digest:null}}function h9(r,a,l){return{value:r,source:null,stack:l??null,digest:a??null}}function sH(r,a){return!0}function v9(r,a){try{var l=sH(r,a);if(l===!1)return;var f=a.value,h=a.source,x=a.stack,_=x!==null?x:"";if(f!=null&&f._suppressLogging){if(r.tag===v)return;console.error(f)}var O=h?Ht(h):null,M=O?"The above error occurred in the <"+O+"> component:":"The above error occurred in one of your React components:",U;if(r.tag===b)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=Ht(r)||"Anonymous";U="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var oe=M+`
`+_+`
`+(""+U);console.error(oe)}catch(re){setTimeout(function(){throw re})}}var lH=typeof WeakMap=="function"?WeakMap:Map;function lA(r,a,l){var f=Sc(tr,l);f.tag=vN,f.payload={element:null};var h=a.value;return f.callback=function(){eG(h),v9(r,a)},f}function g9(r,a,l){var f=Sc(tr,l);f.tag=vN;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var x=a.value;f.payload=function(){return h(x)},f.callback=function(){yO(r),v9(r,a)}}var _=r.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(f.callback=function(){yO(r),v9(r,a),typeof h!="function"&&QW(this);var M=a.value,U=a.stack;this.componentDidCatch(M,{componentStack:U!==null?U:""}),typeof h!="function"&&(Da(r.lanes,Yt)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ht(r)||"Unknown"))}),f}function uA(r,a,l){var f=r.pingCache,h;if(f===null?(f=r.pingCache=new lH,h=new Set,f.set(a,h)):(h=f.get(a),h===void 0&&(h=new Set,f.set(a,h))),!h.has(l)){h.add(l);var x=tG.bind(null,r,a,l);Li&&fg(r,l),a.then(x,x)}}function uH(r,a,l,f){var h=r.updateQueue;if(h===null){var x=new Set;x.add(l),r.updateQueue=x}else h.add(l)}function cH(r,a){var l=r.tag;if((r.mode&wn)===$t&&(l===m||l===P||l===Y)){var f=r.alternate;f?(r.updateQueue=f.updateQueue,r.memoizedState=f.memoizedState,r.lanes=f.lanes):(r.updateQueue=null,r.memoizedState=null)}}function cA(r){var a=r;do{if(a.tag===z&&qV(a))return a;a=a.return}while(a!==null);return null}function fA(r,a,l,f,h){if((r.mode&wn)===$t){if(r===a)r.flags|=ia;else{if(r.flags|=Un,l.flags|=v0,l.flags&=~(bl|Bd),l.tag===v){var x=l.alternate;if(x===null)l.tag=ie;else{var _=Sc(tr,Yt);_.tag=rx,$f(l,_,Yt)}}l.lanes=mn(l.lanes,Yt)}return r}return r.flags|=ia,r.lanes=h,r}function fH(r,a,l,f,h){if(l.flags|=Bd,Li&&fg(r,h),f!==null&&typeof f=="object"&&typeof f.then=="function"){var x=f;cH(l),fa()&&l.mode&wn&&tR();var _=cA(a);if(_!==null){_.flags&=~vl,fA(_,a,l,r,h),_.mode&wn&&uA(r,x,h),uH(_,r,x);return}else{if(!Iy(h)){uA(r,x,h),K9();return}var O=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=O}}else if(fa()&&l.mode&wn){tR();var M=cA(a);if(M!==null){(M.flags&ia)===Bt&&(M.flags|=vl),fA(M,a,l,r,h),uN(Fp(f,l));return}}f=Fp(f,l),HW(f);var U=a;do{switch(U.tag){case b:{var H=f;U.flags|=ia;var oe=ep(h);U.lanes=mn(U.lanes,oe);var re=lA(U,H,oe);yN(U,re);return}case v:var ye=f,xe=U.type,Te=U.stateNode;if((U.flags&Un)===Bt&&(typeof xe.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&!cO(Te))){U.flags|=ia;var mt=ep(h);U.lanes=mn(U.lanes,mt);var Lt=g9(U,ye,mt);yN(U,Lt);return}break}U=U.return}while(U!==null)}function dH(){return null}var K1=n.ReactCurrentOwner,Ll=!1,b9,X1,y9,x9,S9,zp,C9,Dx;b9={},X1={},y9={},x9={},S9={},zp=!1,C9={},Dx={};function io(r,a,l,f){r===null?a.child=AR(a,null,l,f):a.child=$h(a,r.child,l,f)}function pH(r,a,l,f){a.child=$h(a,r.child,null,f),a.child=$h(a,null,l,f)}function dA(r,a,l,f,h){if(a.type!==a.elementType){var x=l.propTypes;x&&gr(x,f,"prop",fn(l))}var _=l.render,O=a.ref,M,U;Ih(a,h),Wd(a);{if(K1.current=a,Jr(!0),M=Vh(r,a,_,f,O,h),U=Hh(),a.mode&Ur){ci(!0);try{M=Vh(r,a,_,f,O,h),U=Hh()}finally{ci(!1)}}Jr(!1)}return ff(),r!==null&&!Ll?(DR(r,a,h),Cc(r,a,h)):(fa()&&U&&rN(a),a.flags|=uf,io(r,a,M,h),a.child)}function pA(r,a,l,f,h){if(r===null){var x=l.type;if(bG(x)&&l.compare===null&&l.defaultProps===void 0){var _=x;return _=Qh(x),a.tag=Y,a.type=_,E9(a,x),mA(r,a,_,f,h)}{var O=x.propTypes;O&&gr(O,f,"prop",fn(x))}var M=s6(l.type,null,f,a,a.mode,h);return M.ref=a.ref,M.return=a,a.child=M,M}{var U=l.type,H=U.propTypes;H&&gr(H,f,"prop",fn(U))}var oe=r.child,re=L9(r,h);if(!re){var ye=oe.memoizedProps,xe=l.compare;if(xe=xe!==null?xe:Tf,xe(ye,f)&&r.ref===a.ref)return Cc(r,a,h)}a.flags|=uf;var Te=Hp(oe,f);return Te.ref=a.ref,Te.return=a,a.child=Te,Te}function mA(r,a,l,f,h){if(a.type!==a.elementType){var x=a.elementType;if(x.$$typeof===cn){var _=x,O=_._payload,M=_._init;try{x=M(O)}catch{x=null}var U=x&&x.propTypes;U&&gr(U,f,"prop",fn(x))}}if(r!==null){var H=r.memoizedProps;if(Tf(H,f)&&r.ref===a.ref&&a.type===r.type)if(Ll=!1,a.pendingProps=f=H,L9(r,h))(r.flags&v0)!==Bt&&(Ll=!0);else return a.lanes=r.lanes,Cc(r,a,h)}return w9(r,a,l,f,h)}function hA(r,a,l){var f=a.pendingProps,h=f.children,x=r!==null?r.memoizedState:null;if(f.mode==="hidden"||de)if((a.mode&wn)===$t){var _={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=_,Yx(a,l)}else if(Da(l,no)){var oe={baseLanes:Fe,cachePool:null,transitions:null};a.memoizedState=oe;var re=x!==null?x.baseLanes:l;Yx(a,re)}else{var O=null,M;if(x!==null){var U=x.baseLanes;M=mn(U,l)}else M=l;a.lanes=a.childLanes=no;var H={baseLanes:M,cachePool:O,transitions:null};return a.memoizedState=H,a.updateQueue=null,Yx(a,M),null}else{var ye;x!==null?(ye=mn(x.baseLanes,l),a.memoizedState=null):ye=l,Yx(a,ye)}return io(r,a,h,l),a.child}function mH(r,a,l){var f=a.pendingProps;return io(r,a,f,l),a.child}function hH(r,a,l){var f=a.pendingProps.children;return io(r,a,f,l),a.child}function vH(r,a,l){{a.flags|=pn;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var h=a.pendingProps,x=h.children;return io(r,a,x,l),a.child}function vA(r,a){var l=a.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(a.flags|=Zi,a.flags|=yl)}function w9(r,a,l,f,h){if(a.type!==a.elementType){var x=l.propTypes;x&&gr(x,f,"prop",fn(l))}var _;{var O=Oh(a,l,!0);_=Lh(a,O)}var M,U;Ih(a,h),Wd(a);{if(K1.current=a,Jr(!0),M=Vh(r,a,l,f,_,h),U=Hh(),a.mode&Ur){ci(!0);try{M=Vh(r,a,l,f,_,h),U=Hh()}finally{ci(!1)}}Jr(!1)}return ff(),r!==null&&!Ll?(DR(r,a,h),Cc(r,a,h)):(fa()&&U&&rN(a),a.flags|=uf,io(r,a,M,h),a.child)}function gA(r,a,l,f,h){{switch(MG(a)){case!1:{var x=a.stateNode,_=a.type,O=new _(a.memoizedProps,x.context),M=O.state;x.updater.enqueueSetState(x,M,null);break}case!0:{a.flags|=Un,a.flags|=ia;var U=new Error("Simulated error coming from DevTools"),H=ep(h);a.lanes=mn(a.lanes,H);var oe=g9(a,Fp(U,a),H);yN(a,oe);break}}if(a.type!==a.elementType){var re=l.propTypes;re&&gr(re,f,"prop",fn(l))}}var ye;lu(l)?(ye=!0,G2(a)):ye=!1,Ih(a,h);var xe=a.stateNode,Te;xe===null?(Ix(r,a),NR(a,l,f),LN(a,l,f,h),Te=!0):r===null?Te=jV(a,l,f,h):Te=VV(r,a,l,f,h);var mt=N9(r,a,l,Te,ye,h);{var Lt=a.stateNode;Te&&Lt.props!==f&&(zp||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ht(a)||"a component"),zp=!0)}return mt}function N9(r,a,l,f,h,x){vA(r,a);var _=(a.flags&Un)!==Bt;if(!f&&!_)return h&&XT(a,l,!1),Cc(r,a,x);var O=a.stateNode;K1.current=a;var M;if(_&&typeof l.getDerivedStateFromError!="function")M=null,sA();else{Wd(a);{if(Jr(!0),M=O.render(),a.mode&Ur){ci(!0);try{O.render()}finally{ci(!1)}}Jr(!1)}ff()}return a.flags|=uf,r!==null&&_?pH(r,a,M,x):io(r,a,M,x),a.memoizedState=O.state,h&&XT(a,l,!0),a.child}function bA(r){var a=r.stateNode;a.pendingContext?ZT(r,a.pendingContext,a.pendingContext!==a.context):a.context&&ZT(r,a.context,!1),$N(r,a.containerInfo)}function gH(r,a,l){if(bA(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,h=a.memoizedState,x=h.element;vR(r,a),sx(a,f,null,l);var _=a.memoizedState;a.stateNode;var O=_.element;if(h.isDehydrated){var M={element:O,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},U=a.updateQueue;if(U.baseState=M,a.memoizedState=M,a.flags&vl){var H=Fp(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 yA(r,a,O,l,H)}else if(O!==x){var oe=Fp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return yA(r,a,O,l,oe)}else{SV(a);var re=AR(a,null,O,l);a.child=re;for(var ye=re;ye;)ye.flags=ye.flags&~Yr|gl,ye=ye.sibling}}else{if(Dh(),O===x)return Cc(r,a,l);io(r,a,O,l)}return a.child}function yA(r,a,l,f,h){return Dh(),uN(h),a.flags|=vl,io(r,a,l,f),a.child}function bH(r,a,l){LR(a),r===null&&lN(a);var f=a.type,h=a.pendingProps,x=r!==null?r.memoizedProps:null,_=h.children,O=x1(f,h);return O?_=null:x!==null&&x1(f,x)&&(a.flags|=zd),vA(r,a),io(r,a,_,l),a.child}function yH(r,a){return r===null&&lN(a),null}function xH(r,a,l,f){Ix(r,a);var h=a.pendingProps,x=l,_=x._payload,O=x._init,M=O(_);a.type=M;var U=a.tag=yG(M),H=Rl(M,h),oe;switch(U){case m:return E9(a,M),a.type=M=Qh(M),oe=w9(null,a,M,H,f),oe;case v:return a.type=M=t6(M),oe=gA(null,a,M,H,f),oe;case P:return a.type=M=n6(M),oe=dA(null,a,M,H,f),oe;case q:{if(a.type!==a.elementType){var re=M.propTypes;re&&gr(re,H,"prop",fn(M))}return oe=pA(null,a,M,Rl(M.type,H),f),oe}}var ye="";throw M!==null&&typeof M=="object"&&M.$$typeof===cn&&(ye=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+M+". "+("Lazy element type must resolve to a class or function."+ye))}function SH(r,a,l,f,h){Ix(r,a),a.tag=v;var x;return lu(l)?(x=!0,G2(a)):x=!1,Ih(a,h),NR(a,l,f),LN(a,l,f,h),N9(null,a,l,!0,x,h)}function CH(r,a,l,f){Ix(r,a);var h=a.pendingProps,x;{var _=Oh(a,l,!1);x=Lh(a,_)}Ih(a,f);var O,M;Wd(a);{if(l.prototype&&typeof l.prototype.render=="function"){var U=fn(l)||"Unknown";b9[U]||(u("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),b9[U]=!0)}a.mode&Ur&&Tl.recordLegacyContextWarning(a,null),Jr(!0),K1.current=a,O=Vh(null,a,l,h,x,f),M=Hh(),Jr(!1)}if(ff(),a.flags|=uf,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){var H=fn(l)||"Unknown";X1[H]||(u("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),X1[H]=!0)}if(typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0){{var oe=fn(l)||"Unknown";X1[oe]||(u("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.",oe,oe,oe),X1[oe]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var re=!1;return lu(l)?(re=!0,G2(a)):re=!1,a.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,bN(a),wR(a,O),LN(a,l,h,f),N9(null,a,l,!0,re,f)}else{if(a.tag=m,a.mode&Ur){ci(!0);try{O=Vh(null,a,l,h,x,f),M=Hh()}finally{ci(!1)}}return fa()&&M&&rN(a),io(null,a,O,f),E9(a,l),a.child}}function E9(r,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var l="",f=na();f&&(l+=`
Check the render method of \``+f+"`.");var h=f||"",x=r._debugSource;x&&(h=x.fileName+":"+x.lineNumber),S9[h]||(S9[h]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",l))}if(typeof a.getDerivedStateFromProps=="function"){var _=fn(a)||"Unknown";x9[_]||(u("%s: Function components do not support getDerivedStateFromProps.",_),x9[_]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var O=fn(a)||"Unknown";y9[O]||(u("%s: Function components do not support contextType.",O),y9[O]=!0)}}}var _9={dehydrated:null,treeContext:null,retryLane:ni};function T9(r){return{baseLanes:r,cachePool:dH(),transitions:null}}function wH(r,a){var l=null;return{baseLanes:mn(r.baseLanes,a),cachePool:l,transitions:r.transitions}}function NH(r,a,l,f){if(a!==null){var h=a.memoizedState;if(h===null)return!1}return BN(r,j1)}function EH(r,a){return tp(r.childLanes,a)}function xA(r,a,l){var f=a.pendingProps;DG(a)&&(a.flags|=Un);var h=Al.current,x=!1,_=(a.flags&Un)!==Bt;if(_||NH(h,r)?(x=!0,a.flags&=~Un):(r===null||r.memoizedState!==null)&&(h=YV(h,MR)),h=zh(h),zf(a,h),r===null){lN(a);var O=a.memoizedState;if(O!==null){var M=O.dehydrated;if(M!==null)return OH(a,M)}var U=f.children,H=f.fallback;if(x){var oe=_H(a,U,H,l),re=a.child;return re.memoizedState=T9(l),a.memoizedState=_9,oe}else return R9(a,U)}else{var ye=r.memoizedState;if(ye!==null){var xe=ye.dehydrated;if(xe!==null)return LH(r,a,_,f,xe,ye,l)}if(x){var Te=f.fallback,mt=f.children,Lt=RH(r,a,mt,Te,l),Nt=a.child,In=r.child.memoizedState;return Nt.memoizedState=In===null?T9(l):wH(In,l),Nt.childLanes=EH(r,l),a.memoizedState=_9,Lt}else{var En=f.children,me=TH(r,a,En,l);return a.memoizedState=null,me}}}function R9(r,a,l){var f=r.mode,h={mode:"visible",children:a},x=A9(h,f);return x.return=r,r.child=x,x}function _H(r,a,l,f){var h=r.mode,x=r.child,_={mode:"hidden",children:a},O,M;return(h&wn)===$t&&x!==null?(O=x,O.childLanes=Fe,O.pendingProps=_,r.mode&Wn&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=0,O.treeBaseDuration=0),M=Yf(l,h,f,null)):(O=A9(_,h),M=Yf(l,h,f,null)),O.return=r,M.return=r,O.sibling=M,r.child=O,M}function A9(r,a,l){return SO(r,a,Fe,null)}function SA(r,a){return Hp(r,a)}function TH(r,a,l,f){var h=r.child,x=h.sibling,_=SA(h,{mode:"visible",children:l});if((a.mode&wn)===$t&&(_.lanes=f),_.return=a,_.sibling=null,x!==null){var O=a.deletions;O===null?(a.deletions=[x],a.flags|=Xu):O.push(x)}return a.child=_,_}function RH(r,a,l,f,h){var x=a.mode,_=r.child,O=_.sibling,M={mode:"hidden",children:l},U;if((x&wn)===$t&&a.child!==_){var H=a.child;U=H,U.childLanes=Fe,U.pendingProps=M,a.mode&Wn&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=_.selfBaseDuration,U.treeBaseDuration=_.treeBaseDuration),a.deletions=null}else U=SA(_,M),U.subtreeFlags=_.subtreeFlags&As;var oe;return O!==null?oe=Hp(O,f):(oe=Yf(f,x,h,null),oe.flags|=Yr),oe.return=a,U.return=a,U.sibling=oe,a.child=U,oe}function Px(r,a,l,f){f!==null&&uN(f),$h(a,r.child,null,l);var h=a.pendingProps,x=h.children,_=R9(a,x);return _.flags|=Yr,a.memoizedState=null,_}function AH(r,a,l,f,h){var x=a.mode,_={mode:"visible",children:l},O=A9(_,x),M=Yf(f,x,h,null);return M.flags|=Yr,O.return=a,M.return=a,O.sibling=M,a.child=O,(a.mode&wn)!==$t&&$h(a,r.child,null,h),M}function OH(r,a,l){return(r.mode&wn)===$t?(u("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):O1(a)?r.lanes=rc:r.lanes=no,null}function LH(r,a,l,f,h,x,_){if(l)if(a.flags&vl){a.flags&=~vl;var me=h9(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Px(r,a,_,me)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=Un,null;var Re=f.children,he=f.fallback,qe=AH(r,a,Re,he,_),ht=a.child;return ht.memoizedState=T9(_),a.memoizedState=_9,qe}else{if(yV(),(a.mode&wn)===$t)return Px(r,a,_,null);if(O1(h)){var O,M,U;{var H=Aw(h);O=H.digest,M=H.message,U=H.stack}var oe;M?oe=new Error(M):oe=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var re=h9(oe,O,U);return Px(r,a,_,re)}var ye=Da(_,r.childLanes);if(Ll||ye){var xe=Gx();if(xe!==null){var Te=ih(xe,_);if(Te!==ni&&Te!==x.retryLane){x.retryLane=Te;var mt=tr;Eo(r,Te),Bi(xe,r,Te,mt)}}K9();var Lt=h9(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 Px(r,a,_,Lt)}else if(j2(h)){a.flags|=Un,a.child=r.child;var Nt=nG.bind(null,r);return Ow(h,Nt),null}else{CV(a,h,x.treeContext);var In=f.children,En=R9(a,In);return En.flags|=gl,En}}}function CA(r,a,l){r.lanes=mn(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=mn(f.lanes,a)),mN(r.return,a,l)}function kH(r,a,l){for(var f=a;f!==null;){if(f.tag===z){var h=f.memoizedState;h!==null&&CA(f,l,r)}else if(f.tag===pe)CA(f,l,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 MH(r){for(var a=r,l=null;a!==null;){var f=a.alternate;f!==null&&mx(f)===null&&(l=a),a=a.sibling}return l}function DH(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!C9[r])if(C9[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{u('"%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:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function PH(r,a){r!==void 0&&!Dx[r]&&(r!=="collapsed"&&r!=="hidden"?(Dx[r]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(Dx[r]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function wA(r,a){{var l=Ut(r),f=!l&&typeof Za(r)=="function";if(l||f){var h=l?"array":"iterable";return u("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>",h,a,h),!1}}return!0}function IH(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(Ut(r)){for(var l=0;l<r.length;l++)if(!wA(r[l],l))return}else{var f=Za(r);if(typeof f=="function"){var h=f.call(r);if(h)for(var x=h.next(),_=0;!x.done;x=h.next()){if(!wA(x.value,_))return;_++}}else u('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 O9(r,a,l,f,h){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:h}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=l,x.tailMode=h)}function NA(r,a,l){var f=a.pendingProps,h=f.revealOrder,x=f.tail,_=f.children;DH(h),PH(x,h),IH(_,h),io(r,a,_,l);var O=Al.current,M=BN(O,j1);if(M)O=UN(O,j1),a.flags|=Un;else{var U=r!==null&&(r.flags&Un)!==Bt;U&&kH(a,a.child,l),O=zh(O)}if(zf(a,O),(a.mode&wn)===$t)a.memoizedState=null;else switch(h){case"forwards":{var H=MH(a.child),oe;H===null?(oe=a.child,a.child=null):(oe=H.sibling,H.sibling=null),O9(a,!1,oe,H,x);break}case"backwards":{var re=null,ye=a.child;for(a.child=null;ye!==null;){var xe=ye.alternate;if(xe!==null&&mx(xe)===null){a.child=ye;break}var Te=ye.sibling;ye.sibling=re,re=ye,ye=Te}O9(a,!0,re,null,x);break}case"together":{O9(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function $H(r,a,l){$N(a,a.stateNode.containerInfo);var f=a.pendingProps;return r===null?a.child=$h(a,null,f,l):io(r,a,f,l),a.child}var EA=!1;function FH(r,a,l){var f=a.type,h=f._context,x=a.pendingProps,_=a.memoizedProps,O=x.value;{"value"in x||EA||(EA=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var M=a.type.propTypes;M&&gr(M,x,"prop","Context.Provider")}if(dR(a,h,O),_!==null){var U=_.value;if(la(U,O)){if(_.children===x.children&&!H2())return Cc(r,a,l)}else kV(a,h,l)}var H=x.children;return io(r,a,H,l),a.child}var _A=!1;function zH(r,a,l){var f=a.type;f._context===void 0?f!==f.Consumer&&(_A||(_A=!0,u("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 h=a.pendingProps,x=h.children;typeof x!="function"&&u("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."),Ih(a,l);var _=hi(f);Wd(a);var O;return K1.current=a,Jr(!0),O=x(_),Jr(!1),ff(),a.flags|=uf,io(r,a,O,l),a.child}function Q1(){Ll=!0}function Ix(r,a){(a.mode&wn)===$t&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=Yr)}function Cc(r,a,l){return r!==null&&(a.dependencies=r.dependencies),sA(),cg(a.lanes),Da(l,a.childLanes)?(HV(r,a),a.child):null}function BH(r,a,l){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,l.index=a.index,l.sibling=a.sibling,l.return=a.return,l.ref=a.ref,a===f.child)f.child=l;else{var h=f.child;if(h===null)throw new Error("Expected parent to have a child.");for(;h.sibling!==a;)if(h=h.sibling,h===null)throw new Error("Expected to find the previous sibling.");h.sibling=l}var x=f.deletions;return x===null?(f.deletions=[r],f.flags|=Xu):x.push(r),l.flags|=Yr,l}}function L9(r,a){var l=r.lanes;return!!Da(l,a)}function UH(r,a,l){switch(a.tag){case b:bA(a),a.stateNode,Dh();break;case w:LR(a);break;case v:{var f=a.type;lu(f)&&G2(a);break}case C:$N(a,a.stateNode.containerInfo);break;case D:{var h=a.memoizedProps.value,x=a.type._context;dR(a,x,h);break}case F:{var _=Da(l,a.childLanes);_&&(a.flags|=pn);{var O=a.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}}break;case z:{var M=a.memoizedState;if(M!==null){if(M.dehydrated!==null)return zf(a,zh(Al.current)),a.flags|=Un,null;var U=a.child,H=U.childLanes;if(Da(l,H))return xA(r,a,l);zf(a,zh(Al.current));var oe=Cc(r,a,l);return oe!==null?oe.sibling:null}else zf(a,zh(Al.current));break}case pe:{var re=(r.flags&Un)!==Bt,ye=Da(l,a.childLanes);if(re){if(ye)return NA(r,a,l);a.flags|=Un}var xe=a.memoizedState;if(xe!==null&&(xe.rendering=null,xe.tail=null,xe.lastEffect=null),zf(a,Al.current),ye)break;return null}case te:case ee:return a.lanes=Fe,hA(r,a,l)}return Cc(r,a,l)}function TA(r,a,l){if(a._debugNeedsRemount&&r!==null)return BH(r,a,s6(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var f=r.memoizedProps,h=a.pendingProps;if(f!==h||H2()||a.type!==r.type)Ll=!0;else{var x=L9(r,l);if(!x&&(a.flags&Un)===Bt)return Ll=!1,UH(r,a,l);(r.flags&v0)!==Bt?Ll=!0:Ll=!1}}else if(Ll=!1,fa()&&pV(a)){var _=a.index,O=mV();eR(a,O,_)}switch(a.lanes=Fe,a.tag){case g:return CH(r,a,a.type,l);case Q:{var M=a.elementType;return xH(r,a,M,l)}case m:{var U=a.type,H=a.pendingProps,oe=a.elementType===U?H:Rl(U,H);return w9(r,a,U,oe,l)}case v:{var re=a.type,ye=a.pendingProps,xe=a.elementType===re?ye:Rl(re,ye);return gA(r,a,re,xe,l)}case b:return gH(r,a,l);case w:return bH(r,a,l);case T:return yH(r,a);case z:return xA(r,a,l);case C:return $H(r,a,l);case P:{var Te=a.type,mt=a.pendingProps,Lt=a.elementType===Te?mt:Rl(Te,mt);return dA(r,a,Te,Lt,l)}case A:return mH(r,a,l);case k:return hH(r,a,l);case F:return vH(r,a,l);case D:return FH(r,a,l);case I:return zH(r,a,l);case q:{var Nt=a.type,In=a.pendingProps,En=Rl(Nt,In);if(a.type!==a.elementType){var me=Nt.propTypes;me&&gr(me,En,"prop",fn(Nt))}return En=Rl(Nt.type,En),pA(r,a,Nt,En,l)}case Y:return mA(r,a,a.type,a.pendingProps,l);case ie:{var Re=a.type,he=a.pendingProps,qe=a.elementType===Re?he:Rl(Re,he);return SH(r,a,Re,qe,l)}case pe:return NA(r,a,l);case $e:break;case te:return hA(r,a,l)}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 Wh(r){r.flags|=pn}function RA(r){r.flags|=Zi,r.flags|=yl}var AA,k9,OA,LA;AA=function(r,a,l,f){for(var h=a.child;h!==null;){if(h.tag===w||h.tag===T)cw(r,h.stateNode);else if(h.tag!==C){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===a)return;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},k9=function(r,a){},OA=function(r,a,l,f,h){var x=r.memoizedProps;if(x!==f){var _=a.stateNode,O=FN(),M=dw(_,l,x,f,h,O);a.updateQueue=M,M&&Wh(a)}},LA=function(r,a,l,f){l!==f&&Wh(a)};function J1(r,a){if(!fa())switch(r.tailMode){case"hidden":{for(var l=r.tail,f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?r.tail=null:f.sibling=null;break}case"collapsed":{for(var h=r.tail,x=null;h!==null;)h.alternate!==null&&(x=h),h=h.sibling;x===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:x.sibling=null;break}}}function pa(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=Fe,f=Bt;if(a){if((r.mode&Wn)!==$t){for(var M=r.selfBaseDuration,U=r.child;U!==null;)l=mn(l,mn(U.lanes,U.childLanes)),f|=U.subtreeFlags&As,f|=U.flags&As,M+=U.treeBaseDuration,U=U.sibling;r.treeBaseDuration=M}else for(var H=r.child;H!==null;)l=mn(l,mn(H.lanes,H.childLanes)),f|=H.subtreeFlags&As,f|=H.flags&As,H.return=r,H=H.sibling;r.subtreeFlags|=f}else{if((r.mode&Wn)!==$t){for(var h=r.actualDuration,x=r.selfBaseDuration,_=r.child;_!==null;)l=mn(l,mn(_.lanes,_.childLanes)),f|=_.subtreeFlags,f|=_.flags,h+=_.actualDuration,x+=_.treeBaseDuration,_=_.sibling;r.actualDuration=h,r.treeBaseDuration=x}else for(var O=r.child;O!==null;)l=mn(l,mn(O.lanes,O.childLanes)),f|=O.subtreeFlags,f|=O.flags,O.return=r,O=O.sibling;r.subtreeFlags|=f}return r.childLanes=l,a}function jH(r,a,l){if(TV()&&(a.mode&wn)!==$t&&(a.flags&Un)===Bt)return sR(a),Dh(),a.flags|=vl|Bd|ia,!1;var f=X2(a);if(l!==null&&l.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(EV(a),pa(a),(a.mode&Wn)!==$t){var h=l!==null;if(h){var x=a.child;x!==null&&(a.treeBaseDuration-=x.treeBaseDuration)}}return!1}else{if(Dh(),(a.flags&Un)===Bt&&(a.memoizedState=null),a.flags|=pn,pa(a),(a.mode&Wn)!==$t){var _=l!==null;if(_){var O=a.child;O!==null&&(a.treeBaseDuration-=O.treeBaseDuration)}}return!1}else return lR(),!0}function kA(r,a,l){var f=a.pendingProps;switch(iN(a),a.tag){case g:case Q:case Y:case m:case P:case A:case k:case F:case I:case q:return pa(a),null;case v:{var h=a.type;return lu(h)&&W2(a),pa(a),null}case b:{var x=a.stateNode;if(Fh(a),eN(a),VN(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),r===null||r.child===null){var _=X2(a);if(_)Wh(a);else if(r!==null){var O=r.memoizedState;(!O.isDehydrated||(a.flags&vl)!==Bt)&&(a.flags|=Qu,lR())}}return k9(r,a),pa(a),null}case w:{zN(a);var M=OR(),U=a.type;if(r!==null&&a.stateNode!=null)OA(r,a,U,f,M),r.ref!==a.ref&&RA(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 pa(a),null}var H=FN(),oe=X2(a);if(oe)wV(a,M,H)&&Wh(a);else{var re=uw(U,f,M,H,a);AA(re,a,!1,!1),a.stateNode=re,fw(re,U,f,M)&&Wh(a)}a.ref!==null&&RA(a)}return pa(a),null}case T:{var ye=f;if(r&&a.stateNode!=null){var xe=r.memoizedProps;LA(r,a,xe,ye)}else{if(typeof ye!="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 Te=OR(),mt=FN(),Lt=X2(a);Lt?NV(a)&&Wh(a):a.stateNode=pw(ye,Te,mt,a)}return pa(a),null}case z:{Bh(a);var Nt=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var In=jH(r,a,Nt);if(!In)return a.flags&ia?a:null}if((a.flags&Un)!==Bt)return a.lanes=l,(a.mode&Wn)!==$t&&m9(a),a;var En=Nt!==null,me=r!==null&&r.memoizedState!==null;if(En!==me&&En){var Re=a.child;if(Re.flags|=Ju,(a.mode&wn)!==$t){var he=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!we);he||BN(Al.current,MR)?VW():K9()}}var qe=a.updateQueue;if(qe!==null&&(a.flags|=pn),pa(a),(a.mode&Wn)!==$t&&En){var ht=a.child;ht!==null&&(a.treeBaseDuration-=ht.treeBaseDuration)}return null}case C:return Fh(a),k9(r,a),r===null&&Xw(a.stateNode.containerInfo),pa(a),null;case D:var ft=a.type._context;return pN(ft,a),pa(a),null;case ie:{var Gt=a.type;return lu(Gt)&&W2(a),pa(a),null}case pe:{Bh(a);var tn=a.memoizedState;if(tn===null)return pa(a),null;var sr=(a.flags&Un)!==Bt,Gn=tn.rendering;if(Gn===null)if(sr)J1(tn,!1);else{var ai=WW()&&(r===null||(r.flags&Un)===Bt);if(!ai)for(var Yn=a.child;Yn!==null;){var Zr=mx(Yn);if(Zr!==null){sr=!0,a.flags|=Un,J1(tn,!1);var Ua=Zr.updateQueue;return Ua!==null&&(a.updateQueue=Ua,a.flags|=pn),a.subtreeFlags=Bt,WV(a,l),zf(a,UN(Al.current,j1)),a.child}Yn=Yn.sibling}tn.tail!==null&&Pr()>JA()&&(a.flags|=Un,sr=!0,J1(tn,!1),a.lanes=Dy)}else{if(!sr){var ba=mx(Gn);if(ba!==null){a.flags|=Un,sr=!0;var os=ba.updateQueue;if(os!==null&&(a.updateQueue=os,a.flags|=pn),J1(tn,!0),tn.tail===null&&tn.tailMode==="hidden"&&!Gn.alternate&&!fa())return pa(a),null}else Pr()*2-tn.renderingStartTime>JA()&&l!==no&&(a.flags|=Un,sr=!0,J1(tn,!1),a.lanes=Dy)}if(tn.isBackwards)Gn.sibling=a.child,a.child=Gn;else{var so=tn.last;so!==null?so.sibling=Gn:a.child=Gn,tn.last=Gn}}if(tn.tail!==null){var lo=tn.tail;tn.rendering=lo,tn.tail=lo.sibling,tn.renderingStartTime=Pr(),lo.sibling=null;var ja=Al.current;return sr?ja=UN(ja,j1):ja=zh(ja),zf(a,ja),lo}return pa(a),null}case $e:break;case te:case ee:{Z9(a);var Tc=a.memoizedState,Jh=Tc!==null;if(r!==null){var hg=r.memoizedState,vu=hg!==null;vu!==Jh&&!de&&(a.flags|=Ju)}return!Jh||(a.mode&wn)===$t?pa(a):Da(hu,no)&&(pa(a),a.subtreeFlags&(Yr|pn)&&(a.flags|=Ju)),null}case be:return null;case Ce: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 VH(r,a,l){switch(iN(a),a.tag){case v:{var f=a.type;lu(f)&&W2(a);var h=a.flags;return h&ia?(a.flags=h&~ia|Un,(a.mode&Wn)!==$t&&m9(a),a):null}case b:{a.stateNode,Fh(a),eN(a),VN();var x=a.flags;return(x&ia)!==Bt&&(x&Un)===Bt?(a.flags=x&~ia|Un,a):null}case w:return zN(a),null;case z:{Bh(a);var _=a.memoizedState;if(_!==null&&_.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.");Dh()}var O=a.flags;return O&ia?(a.flags=O&~ia|Un,(a.mode&Wn)!==$t&&m9(a),a):null}case pe:return Bh(a),null;case C:return Fh(a),null;case D:var M=a.type._context;return pN(M,a),null;case te:case ee:return Z9(a),null;case be:return null;default:return null}}function MA(r,a,l){switch(iN(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&W2(a);break}case b:{a.stateNode,Fh(a),eN(a),VN();break}case w:{zN(a);break}case C:Fh(a);break;case z:Bh(a);break;case pe:Bh(a);break;case D:var h=a.type._context;pN(h,a);break;case te:case ee:Z9(a);break}}var DA=null;DA=new Set;var $x=!1,ma=!1,HH=typeof WeakSet=="function"?WeakSet:Set,xt=null,Gh=null,Yh=null;function WH(r){lf(null,function(){throw r}),Xl()}var GH=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&Wn)try{pu(),a.componentWillUnmount()}finally{du(r)}else a.componentWillUnmount()};function PA(r,a){try{jf(Di,r)}catch(l){br(r,a,l)}}function M9(r,a,l){try{GH(r,l)}catch(f){br(r,a,f)}}function YH(r,a,l){try{l.componentDidMount()}catch(f){br(r,a,f)}}function IA(r,a){try{FA(r)}catch(l){br(r,a,l)}}function qh(r,a){var l=r.ref;if(l!==null)if(typeof l=="function"){var f;try{if(it&&Rt&&r.mode&Wn)try{pu(),f=l(null)}finally{du(r)}else f=l(null)}catch(h){br(r,a,h)}typeof f=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ht(r))}else l.current=null}function Fx(r,a,l){try{l()}catch(f){br(r,a,f)}}var $A=!1;function qH(r,a){sw(r.containerInfo),xt=a,ZH();var l=$A;return $A=!1,l}function ZH(){for(;xt!==null;){var r=xt,a=r.child;(r.subtreeFlags&b0)!==Bt&&a!==null?(a.return=r,xt=a):KH()}}function KH(){for(;xt!==null;){var r=xt;ar(r);try{XH(r)}catch(l){br(r,r.return,l)}Or();var a=r.sibling;if(a!==null){a.return=r.return,xt=a;return}xt=r.return}}function XH(r){var a=r.alternate,l=r.flags;if((l&Qu)!==Bt){switch(ar(r),r.tag){case m:case P:case Y:break;case v:{if(a!==null){var f=a.memoizedProps,h=a.memoizedState,x=r.stateNode;r.type===r.elementType&&!zp&&(x.props!==r.memoizedProps&&u("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.",Ht(r)||"instance"),x.state!==r.memoizedState&&u("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.",Ht(r)||"instance"));var _=x.getSnapshotBeforeUpdate(r.elementType===r.type?f:Rl(r.type,f),h);{var O=DA;_===void 0&&!O.has(r.type)&&(O.add(r.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ht(r)))}x.__reactInternalSnapshotBeforeUpdate=_}break}case b:{{var M=r.stateNode;Tw(M.containerInfo)}break}case w:case T:case C:case ie: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.")}Or()}}function kl(r,a,l){var f=a.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var x=h.next,_=x;do{if((_.tag&r)===r){var O=_.destroy;_.destroy=void 0,O!==void 0&&((r&da)!==_o?y4(a):(r&Di)!==_o&&Ey(a),(r&uu)!==_o&&dg(!0),Fx(a,l,O),(r&uu)!==_o&&dg(!1),(r&da)!==_o?T0():(r&Di)!==_o&&_y())}_=_.next}while(_!==x)}}function jf(r,a){var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next,x=h;do{if((x.tag&r)===r){(r&da)!==_o?Gd(a):(r&Di)!==_o&&Ny(a);var _=x.create;(r&uu)!==_o&&dg(!0),x.destroy=_(),(r&uu)!==_o&&dg(!1),(r&da)!==_o?b4():(r&Di)!==_o&&x4();{var O=x.destroy;if(O!==void 0&&typeof O!="function"){var M=void 0;(x.tag&Di)!==Bt?M="useLayoutEffect":(x.tag&uu)!==Bt?M="useInsertionEffect":M="useEffect";var U=void 0;O===null?U=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof O.then=="function"?U=`
It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+M+`(() => {
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: "+O,u("%s must not return anything besides a function, which is used for clean-up.%s",M,U)}}}x=x.next}while(x!==h)}}function QH(r,a){if((a.flags&pn)!==Bt)switch(a.tag){case F:{var l=a.stateNode.passiveEffectDuration,f=a.memoizedProps,h=f.id,x=f.onPostCommit,_=aA(),O=a.alternate===null?"mount":"update";iA()&&(O="nested-update"),typeof x=="function"&&x(h,O,l,_);var M=a.return;e:for(;M!==null;){switch(M.tag){case b:var U=M.stateNode;U.passiveEffectDuration+=l;break e;case F:var H=M.stateNode;H.passiveEffectDuration+=l;break e}M=M.return}break}}}function JH(r,a,l,f){if((l.flags&Ud)!==Bt)switch(l.tag){case m:case P:case Y:{if(!ma)if(l.mode&Wn)try{pu(),jf(Di|Mi,l)}finally{du(l)}else jf(Di|Mi,l);break}case v:{var h=l.stateNode;if(l.flags&pn&&!ma)if(a===null)if(l.type===l.elementType&&!zp&&(h.props!==l.memoizedProps&&u("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.",Ht(l)||"instance"),h.state!==l.memoizedState&&u("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.",Ht(l)||"instance")),l.mode&Wn)try{pu(),h.componentDidMount()}finally{du(l)}else h.componentDidMount();else{var x=l.elementType===l.type?a.memoizedProps:Rl(l.type,a.memoizedProps),_=a.memoizedState;if(l.type===l.elementType&&!zp&&(h.props!==l.memoizedProps&&u("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.",Ht(l)||"instance"),h.state!==l.memoizedState&&u("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.",Ht(l)||"instance")),l.mode&Wn)try{pu(),h.componentDidUpdate(x,_,h.__reactInternalSnapshotBeforeUpdate)}finally{du(l)}else h.componentDidUpdate(x,_,h.__reactInternalSnapshotBeforeUpdate)}var O=l.updateQueue;O!==null&&(l.type===l.elementType&&!zp&&(h.props!==l.memoizedProps&&u("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.",Ht(l)||"instance"),h.state!==l.memoizedState&&u("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.",Ht(l)||"instance")),bR(l,O,h));break}case b:{var M=l.updateQueue;if(M!==null){var U=null;if(l.child!==null)switch(l.child.tag){case w:U=l.child.stateNode;break;case v:U=l.child.stateNode;break}bR(l,M,U)}break}case w:{var H=l.stateNode;if(a===null&&l.flags&pn){var oe=l.type,re=l.memoizedProps;bw(H,oe,re)}break}case T:break;case C:break;case F:{{var ye=l.memoizedProps,xe=ye.onCommit,Te=ye.onRender,mt=l.stateNode.effectDuration,Lt=aA(),Nt=a===null?"mount":"update";iA()&&(Nt="nested-update"),typeof Te=="function"&&Te(l.memoizedProps.id,Nt,l.actualDuration,l.treeBaseDuration,l.actualStartTime,Lt);{typeof xe=="function"&&xe(l.memoizedProps.id,Nt,mt,Lt),KW(l);var In=l.return;e:for(;In!==null;){switch(In.tag){case b:var En=In.stateNode;En.effectDuration+=mt;break e;case F:var me=In.stateNode;me.effectDuration+=mt;break e}In=In.return}}}break}case z:{sW(r,l);break}case pe:case ie:case $e:case te:case ee: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.")}ma||l.flags&Zi&&FA(l)}function eW(r){switch(r.tag){case m:case P:case Y:{if(r.mode&Wn)try{pu(),PA(r,r.return)}finally{du(r)}else PA(r,r.return);break}case v:{var a=r.stateNode;typeof a.componentDidMount=="function"&&YH(r,r.return,a),IA(r,r.return);break}case w:{IA(r,r.return);break}}}function tW(r,a){for(var l=null,f=r;;){if(f.tag===w){if(l===null){l=f;try{var h=f.stateNode;a?T1(h):Ew(f.stateNode,f.memoizedProps)}catch(_){br(r,r.return,_)}}}else if(f.tag===T){if(l===null)try{var x=f.stateNode;a?Nw(x):_w(x,f.memoizedProps)}catch(_){br(r,r.return,_)}}else if(!((f.tag===te||f.tag===ee)&&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;l===f&&(l=null),f=f.return}l===f&&(l=null),f.sibling.return=f.return,f=f.sibling}}function FA(r){var a=r.ref;if(a!==null){var l=r.stateNode,f;switch(r.tag){case w:f=l;break;default:f=l}if(typeof a=="function"){var h;if(r.mode&Wn)try{pu(),h=a(f)}finally{du(r)}else h=a(f);typeof h=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ht(r))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ht(r)),a.current=f}}function nW(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function zA(r){var a=r.alternate;a!==null&&(r.alternate=null,zA(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===w){var l=r.stateNode;l!==null&&Z(l)}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 rW(r){for(var a=r.return;a!==null;){if(BA(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 BA(r){return r.tag===w||r.tag===b||r.tag===C}function UA(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||BA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==w&&a.tag!==T&&a.tag!==ae;){if(a.flags&Yr||a.child===null||a.tag===C)continue e;a.child.return=a,a=a.child}if(!(a.flags&Yr))return a.stateNode}}function iW(r){var a=rW(r);switch(a.tag){case w:{var l=a.stateNode;a.flags&zd&&(N1(l),a.flags&=~zd);var f=UA(r);P9(r,f,l);break}case b:case C:{var h=a.stateNode.containerInfo,x=UA(r);D9(r,x,h);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function D9(r,a,l){var f=r.tag,h=f===w||f===T;if(h){var x=r.stateNode;a?E1(l,x,a):xw(l,x)}else if(f!==C){var _=r.child;if(_!==null){D9(_,a,l);for(var O=_.sibling;O!==null;)D9(O,a,l),O=O.sibling}}}function P9(r,a,l){var f=r.tag,h=f===w||f===T;if(h){var x=r.stateNode;a?Sw(l,x,a):yw(l,x)}else if(f!==C){var _=r.child;if(_!==null){P9(_,a,l);for(var O=_.sibling;O!==null;)P9(O,a,l),O=O.sibling}}}var ha=null,Ml=!1;function aW(r,a,l){{var f=a;e:for(;f!==null;){switch(f.tag){case w:{ha=f.stateNode,Ml=!1;break e}case b:{ha=f.stateNode.containerInfo,Ml=!0;break e}case C:{ha=f.stateNode.containerInfo,Ml=!0;break e}}f=f.return}if(ha===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");jA(r,a,l),ha=null,Ml=!1}nW(l)}function Vf(r,a,l){for(var f=l.child;f!==null;)jA(r,a,f),f=f.sibling}function jA(r,a,l){switch(v4(l),l.tag){case w:ma||qh(l,a);case T:{{var f=ha,h=Ml;ha=null,Vf(r,a,l),ha=f,Ml=h,ha!==null&&(Ml?ww(ha,l.stateNode):Cw(ha,l.stateNode))}return}case ae:{ha!==null&&(Ml?Fa(ha,l.stateNode):_1(ha,l.stateNode));return}case C:{{var x=ha,_=Ml;ha=l.stateNode.containerInfo,Ml=!0,Vf(r,a,l),ha=x,Ml=_}return}case m:case P:case q:case Y:{if(!ma){var O=l.updateQueue;if(O!==null){var M=O.lastEffect;if(M!==null){var U=M.next,H=U;do{var oe=H,re=oe.destroy,ye=oe.tag;re!==void 0&&((ye&uu)!==_o?Fx(l,a,re):(ye&Di)!==_o&&(Ey(l),l.mode&Wn?(pu(),Fx(l,a,re),du(l)):Fx(l,a,re),_y())),H=H.next}while(H!==U)}}}Vf(r,a,l);return}case v:{if(!ma){qh(l,a);var xe=l.stateNode;typeof xe.componentWillUnmount=="function"&&M9(l,a,xe)}Vf(r,a,l);return}case $e:{Vf(r,a,l);return}case te:{if(l.mode&wn){var Te=ma;ma=Te||l.memoizedState!==null,Vf(r,a,l),ma=Te}else Vf(r,a,l);break}default:{Vf(r,a,l);return}}}function oW(r){r.memoizedState}function sW(r,a){var l=a.memoizedState;if(l===null){var f=a.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var x=h.dehydrated;x!==null&&$w(x)}}}}function VA(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new HH),a.forEach(function(f){var h=rG.bind(null,r,f);if(!l.has(f)){if(l.add(f),Li)if(Gh!==null&&Yh!==null)fg(Yh,Gh);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(h,h)}})}}function lW(r,a,l){Gh=l,Yh=r,ar(a),HA(a,r),ar(a),Gh=null,Yh=null}function Dl(r,a,l){var f=a.deletions;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h];try{aW(r,a,x)}catch(M){br(x,a,M)}}var _=Xo();if(a.subtreeFlags&y0)for(var O=a.child;O!==null;)ar(O),HA(O,r),O=O.sibling;ar(_)}function HA(r,a,l){var f=r.alternate,h=r.flags;switch(r.tag){case m:case P:case q:case Y:{if(Dl(a,r),mu(r),h&pn){try{kl(uu|Mi,r,r.return),jf(uu|Mi,r)}catch(Gt){br(r,r.return,Gt)}if(r.mode&Wn){try{pu(),kl(Di|Mi,r,r.return)}catch(Gt){br(r,r.return,Gt)}du(r)}else try{kl(Di|Mi,r,r.return)}catch(Gt){br(r,r.return,Gt)}}return}case v:{Dl(a,r),mu(r),h&Zi&&f!==null&&qh(f,f.return);return}case w:{Dl(a,r),mu(r),h&Zi&&f!==null&&qh(f,f.return);{if(r.flags&zd){var x=r.stateNode;try{N1(x)}catch(Gt){br(r,r.return,Gt)}}if(h&pn){var _=r.stateNode;if(_!=null){var O=r.memoizedProps,M=f!==null?f.memoizedProps:O,U=r.type,H=r.updateQueue;if(r.updateQueue=null,H!==null)try{w1(_,H,U,M,O,r)}catch(Gt){br(r,r.return,Gt)}}}}return}case T:{if(Dl(a,r),mu(r),h&pn){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 oe=r.stateNode,re=r.memoizedProps,ye=f!==null?f.memoizedProps:re;try{U2(oe,ye,re)}catch(Gt){br(r,r.return,Gt)}}return}case b:{if(Dl(a,r),mu(r),h&pn&&f!==null){var xe=f.memoizedState;if(xe.isDehydrated)try{Iw(a.containerInfo)}catch(Gt){br(r,r.return,Gt)}}return}case C:{Dl(a,r),mu(r);return}case z:{Dl(a,r),mu(r);var Te=r.child;if(Te.flags&Ju){var mt=Te.stateNode,Lt=Te.memoizedState,Nt=Lt!==null;if(mt.isHidden=Nt,Nt){var In=Te.alternate!==null&&Te.alternate.memoizedState!==null;In||jW()}}if(h&pn){try{oW(r)}catch(Gt){br(r,r.return,Gt)}VA(r)}return}case te:{var En=f!==null&&f.memoizedState!==null;if(r.mode&wn){var me=ma;ma=me||En,Dl(a,r),ma=me}else Dl(a,r);if(mu(r),h&Ju){var Re=r.stateNode,he=r.memoizedState,qe=he!==null,ht=r;if(Re.isHidden=qe,qe&&!En&&(ht.mode&wn)!==$t){xt=ht;for(var ft=ht.child;ft!==null;)xt=ft,cW(ft),ft=ft.sibling}tW(ht,qe)}return}case pe:{Dl(a,r),mu(r),h&pn&&VA(r);return}case $e:return;default:{Dl(a,r),mu(r);return}}}function mu(r){var a=r.flags;if(a&Yr){try{iW(r)}catch(l){br(r,r.return,l)}r.flags&=~Yr}a&gl&&(r.flags&=~gl)}function uW(r,a,l){Gh=l,Yh=a,xt=r,WA(r,a,l),Gh=null,Yh=null}function WA(r,a,l){for(var f=(r.mode&wn)!==$t;xt!==null;){var h=xt,x=h.child;if(h.tag===te&&f){var _=h.memoizedState!==null,O=_||$x;if(O){I9(r,a,l);continue}else{var M=h.alternate,U=M!==null&&M.memoizedState!==null,H=U||ma,oe=$x,re=ma;$x=O,ma=H,ma&&!re&&(xt=h,fW(h));for(var ye=x;ye!==null;)xt=ye,WA(ye,a,l),ye=ye.sibling;xt=h,$x=oe,ma=re,I9(r,a,l);continue}}(h.subtreeFlags&Ud)!==Bt&&x!==null?(x.return=h,xt=x):I9(r,a,l)}}function I9(r,a,l){for(;xt!==null;){var f=xt;if((f.flags&Ud)!==Bt){var h=f.alternate;ar(f);try{JH(a,h,f,l)}catch(_){br(f,f.return,_)}Or()}if(f===r){xt=null;return}var x=f.sibling;if(x!==null){x.return=f.return,xt=x;return}xt=f.return}}function cW(r){for(;xt!==null;){var a=xt,l=a.child;switch(a.tag){case m:case P:case q:case Y:{if(a.mode&Wn)try{pu(),kl(Di,a,a.return)}finally{du(a)}else kl(Di,a,a.return);break}case v:{qh(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&M9(a,a.return,f);break}case w:{qh(a,a.return);break}case te:{var h=a.memoizedState!==null;if(h){GA(r);continue}break}}l!==null?(l.return=a,xt=l):GA(r)}}function GA(r){for(;xt!==null;){var a=xt;if(a===r){xt=null;return}var l=a.sibling;if(l!==null){l.return=a.return,xt=l;return}xt=a.return}}function fW(r){for(;xt!==null;){var a=xt,l=a.child;if(a.tag===te){var f=a.memoizedState!==null;if(f){YA(r);continue}}l!==null?(l.return=a,xt=l):YA(r)}}function YA(r){for(;xt!==null;){var a=xt;ar(a);try{eW(a)}catch(f){br(a,a.return,f)}if(Or(),a===r){xt=null;return}var l=a.sibling;if(l!==null){l.return=a.return,xt=l;return}xt=a.return}}function dW(r,a,l,f){xt=a,pW(a,r,l,f)}function pW(r,a,l,f){for(;xt!==null;){var h=xt,x=h.child;(h.subtreeFlags&cf)!==Bt&&x!==null?(x.return=h,xt=x):mW(r,a,l,f)}}function mW(r,a,l,f){for(;xt!==null;){var h=xt;if((h.flags&ts)!==Bt){ar(h);try{hW(a,h,l,f)}catch(_){br(h,h.return,_)}Or()}if(h===r){xt=null;return}var x=h.sibling;if(x!==null){x.return=h.return,xt=x;return}xt=h.return}}function hW(r,a,l,f){switch(a.tag){case m:case P:case Y:{if(a.mode&Wn){p9();try{jf(da|Mi,a)}finally{d9(a)}}else jf(da|Mi,a);break}}}function vW(r){xt=r,gW()}function gW(){for(;xt!==null;){var r=xt,a=r.child;if((xt.flags&Xu)!==Bt){var l=r.deletions;if(l!==null){for(var f=0;f<l.length;f++){var h=l[f];xt=h,xW(h,r)}{var x=r.alternate;if(x!==null){var _=x.child;if(_!==null){x.child=null;do{var O=_.sibling;_.sibling=null,_=O}while(_!==null)}}}xt=r}}(r.subtreeFlags&cf)!==Bt&&a!==null?(a.return=r,xt=a):bW()}}function bW(){for(;xt!==null;){var r=xt;(r.flags&ts)!==Bt&&(ar(r),yW(r),Or());var a=r.sibling;if(a!==null){a.return=r.return,xt=a;return}xt=r.return}}function yW(r){switch(r.tag){case m:case P:case Y:{r.mode&Wn?(p9(),kl(da|Mi,r,r.return),d9(r)):kl(da|Mi,r,r.return);break}}}function xW(r,a){for(;xt!==null;){var l=xt;ar(l),CW(l,a),Or();var f=l.child;f!==null?(f.return=l,xt=f):SW(r)}}function SW(r){for(;xt!==null;){var a=xt,l=a.sibling,f=a.return;if(zA(a),a===r){xt=null;return}if(l!==null){l.return=f,xt=l;return}xt=f}}function CW(r,a){switch(r.tag){case m:case P:case Y:{r.mode&Wn?(p9(),kl(da,r,a),d9(r)):kl(da,r,a);break}}}function wW(r){switch(r.tag){case m:case P:case Y:{try{jf(Di|Mi,r)}catch(l){br(r,r.return,l)}break}case v:{var a=r.stateNode;try{a.componentDidMount()}catch(l){br(r,r.return,l)}break}}}function NW(r){switch(r.tag){case m:case P:case Y:{try{jf(da|Mi,r)}catch(a){br(r,r.return,a)}break}}}function EW(r){switch(r.tag){case m:case P:case Y:{try{kl(Di|Mi,r,r.return)}catch(l){br(r,r.return,l)}break}case v:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&M9(r,r.return,a);break}}}function _W(r){switch(r.tag){case m:case P:case Y:try{kl(da|Mi,r,r.return)}catch(a){br(r,r.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var eg=Symbol.for;eg("selector.component"),eg("selector.has_pseudo_class"),eg("selector.role"),eg("selector.test_id"),eg("selector.text")}var TW=[];function RW(){TW.forEach(function(r){return r()})}var AW=n.ReactCurrentActQueue;function OW(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,l=typeof jest<"u";return l&&a!==!1}}function qA(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&AW.current!==null&&u("The current testing environment is not configured to support act(...)"),r}}var LW=Math.ceil,$9=n.ReactCurrentDispatcher,F9=n.ReactCurrentOwner,va=n.ReactCurrentBatchConfig,Pl=n.ReactCurrentActQueue,$i=0,ZA=1,ga=2,Gs=4,wc=0,tg=1,Bp=2,zx=3,ng=4,KA=5,z9=6,Pn=$i,ao=null,jr=null,Fi=Fe,hu=Fe,B9=Qi(Fe),zi=wc,rg=null,Bx=Fe,ig=Fe,Ux=Fe,ag=null,To=null,U9=0,XA=500,QA=1/0,kW=500,Nc=null;function og(){QA=Pr()+kW}function JA(){return QA}var jx=!1,j9=null,Zh=null,Up=!1,Hf=null,sg=Fe,V9=[],H9=null,MW=50,lg=0,W9=null,G9=!1,Vx=!1,DW=50,Kh=0,Hx=null,ug=tr,Wx=Fe,eO=!1;function Gx(){return ao}function oo(){return(Pn&(ga|Gs))!==$i?Pr():(ug!==tr||(ug=Pr()),ug)}function Wf(r){var a=r.mode;if((a&wn)===$t)return Yt;if((Pn&ga)!==$i&&Fi!==Fe)return ep(Fi);var l=OV()!==AV;if(l){if(va.transition!==null){var f=va.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(r)}return Wx===ni&&(Wx=Jd()),Wx}var h=Co();if(h!==ni)return h;var x=mw();return x}function PW(r){var a=r.mode;return(a&wn)===$t?Yt:$y()}function Bi(r,a,l,f){aG(),eO&&u("useInsertionEffect must not schedule updates."),G9&&(Vx=!0),lc(r,l,f),(Pn&ga)!==Fe&&r===ao?lG(a):(Li&&ah(r,a,l),uG(a),r===ao&&((Pn&ga)===$i&&(ig=mn(ig,l)),zi===ng&&Gf(r,Fi)),Ro(r,f),l===Yt&&Pn===$i&&(a.mode&wn)===$t&&!Pl.isBatchingLegacy&&(og(),JT()))}function IW(r,a,l){var f=r.current;f.lanes=a,lc(r,a,l),Ro(r,l)}function $W(r){return(Pn&ga)!==$i}function Ro(r,a){var l=r.callbackNode;Qd(r,a);var f=th(r,r===ao?Fi:Fe);if(f===Fe){l!==null&&vO(l),r.callbackNode=null,r.callbackPriority=ni;return}var h=Sl(f),x=r.callbackPriority;if(x===h&&!(Pl.current!==null&&l!==J9)){l==null&&x!==Yt&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}l!=null&&vO(l);var _;if(h===Yt)r.tag===Df?(Pl.isBatchingLegacy!==null&&(Pl.didScheduleLegacyUpdate=!0),dV(rO.bind(null,r))):QT(rO.bind(null,r)),Pl.current!==null?Pl.current.push(Pf):vw(function(){(Pn&(ga|Gs))===$i&&Pf()}),_=null;else{var O;switch(Is(f)){case sa:O=Vd;break;case Ps:O=C0;break;case Cr:O=Ls;break;case oh:O=Gm;break;default:O=Ls;break}_=e6(O,tO.bind(null,r))}r.callbackPriority=h,r.callbackNode=_}function tO(r,a){if(aH(),ug=tr,Wx=Fe,(Pn&(ga|Gs))!==$i)throw new Error("Should not already be working.");var l=r.callbackNode,f=_c();if(f&&r.callbackNode!==l)return null;var h=th(r,r===ao?Fi:Fe);if(h===Fe)return null;var x=!oc(r,h)&&!E4(r,h)&&!a,_=x?YW(r,h):qx(r,h);if(_!==wc){if(_===Bp){var O=nh(r);O!==Fe&&(h=O,_=Y9(r,O))}if(_===tg){var M=rg;throw jp(r,Fe),Gf(r,h),Ro(r,Pr()),M}if(_===z9)Gf(r,h);else{var U=!oc(r,h),H=r.current.alternate;if(U&&!zW(H)){if(_=qx(r,h),_===Bp){var oe=nh(r);oe!==Fe&&(h=oe,_=Y9(r,oe))}if(_===tg){var re=rg;throw jp(r,Fe),Gf(r,h),Ro(r,Pr()),re}}r.finishedWork=H,r.finishedLanes=h,FW(r,_,h)}}return Ro(r,Pr()),r.callbackNode===l?tO.bind(null,r):null}function Y9(r,a){var l=ag;if(pi(r)){var f=jp(r,a);f.flags|=vl,Kw(r.containerInfo)}var h=qx(r,a);if(h!==Bp){var x=To;To=l,x!==null&&nO(x)}return h}function nO(r){To===null?To=r:To.push.apply(To,r)}function FW(r,a,l){switch(a){case wc:case tg:throw new Error("Root did not complete. This is a bug in React.");case Bp:{Vp(r,To,Nc);break}case zx:{if(Gf(r,l),F0(l)&&!gO()){var f=U9+XA-Pr();if(f>10){var h=th(r,Fe);if(h!==Fe)break;var x=r.suspendedLanes;if(!sc(x,l)){oo(),rp(r,x);break}r.timeoutHandle=S1(Vp.bind(null,r,To,Nc),f);break}}Vp(r,To,Nc);break}case ng:{if(Gf(r,l),z0(l))break;if(!gO()){var _=Py(r,l),O=_,M=Pr()-O,U=iG(M)-M;if(U>10){r.timeoutHandle=S1(Vp.bind(null,r,To,Nc),U);break}}Vp(r,To,Nc);break}case KA:{Vp(r,To,Nc);break}default:throw new Error("Unknown root exit status.")}}function zW(r){for(var a=r;;){if(a.flags&jm){var l=a.updateQueue;if(l!==null){var f=l.stores;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h],_=x.getSnapshot,O=x.value;try{if(!la(_(),O))return!1}catch{return!1}}}}var M=a.child;if(a.subtreeFlags&jm&&M!==null){M.return=a,a=M;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 Gf(r,a){a=tp(a,Ux),a=tp(a,ig),U0(r,a)}function rO(r){if(oH(),(Pn&(ga|Gs))!==$i)throw new Error("Should not already be working.");_c();var a=th(r,Fe);if(!Da(a,Yt))return Ro(r,Pr()),null;var l=qx(r,a);if(r.tag!==Df&&l===Bp){var f=nh(r);f!==Fe&&(a=f,l=Y9(r,f))}if(l===tg){var h=rg;throw jp(r,Fe),Gf(r,a),Ro(r,Pr()),h}if(l===z9)throw new Error("Root did not complete. This is a bug in React.");var x=r.current.alternate;return r.finishedWork=x,r.finishedLanes=a,Vp(r,To,Nc),Ro(r,Pr()),null}function BW(r,a){a!==Fe&&(Ft(r,mn(a,Yt)),Ro(r,Pr()),(Pn&(ga|Gs))===$i&&(og(),Pf()))}function q9(r,a){var l=Pn;Pn|=ZA;try{return r(a)}finally{Pn=l,Pn===$i&&!Pl.isBatchingLegacy&&(og(),JT())}}function UW(r,a,l,f,h){var x=Co(),_=va.transition;try{return va.transition=null,di(sa),r(a,l,f,h)}finally{di(x),va.transition=_,Pn===$i&&og()}}function Ec(r){Hf!==null&&Hf.tag===Df&&(Pn&(ga|Gs))===$i&&_c();var a=Pn;Pn|=ZA;var l=va.transition,f=Co();try{return va.transition=null,di(sa),r?r():void 0}finally{di(f),va.transition=l,Pn=a,(Pn&(ga|Gs))===$i&&Pf()}}function iO(){return(Pn&(ga|Gs))!==$i}function Yx(r,a){za(B9,hu,r),hu=mn(hu,a)}function Z9(r){hu=B9.current,ki(B9,r)}function jp(r,a){r.finishedWork=null,r.finishedLanes=Fe;var l=r.timeoutHandle;if(l!==C1&&(r.timeoutHandle=C1,hw(l)),jr!==null)for(var f=jr.return;f!==null;){var h=f.alternate;MA(h,f),f=f.return}ao=r;var x=Hp(r.current,null);return jr=x,Fi=hu=a,zi=wc,rg=null,Bx=Fe,ig=Fe,Ux=Fe,ag=null,To=null,DV(),Tl.discardPendingWarnings(),x}function aO(r,a){do{var l=jr;try{if(tx(),PR(),Or(),F9.current=null,l===null||l.return===null){zi=tg,rg=a,jr=null;return}if(it&&l.mode&Wn&&Mx(l,!0),Je)if(ff(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;R0(l,f,Fi)}else Ty(l,a,Fi);fH(r,l.return,l,a,Fi),uO(l)}catch(h){a=h,jr===l&&l!==null?(l=l.return,jr=l):l=jr;continue}return}while(!0)}function oO(){var r=$9.current;return $9.current=Rx,r===null?Rx:r}function sO(r){$9.current=r}function jW(){U9=Pr()}function cg(r){Bx=mn(r,Bx)}function VW(){zi===wc&&(zi=zx)}function K9(){(zi===wc||zi===zx||zi===Bp)&&(zi=ng),ao!==null&&(xf(Bx)||xf(ig))&&Gf(ao,Fi)}function HW(r){zi!==ng&&(zi=Bp),ag===null?ag=[r]:ag.push(r)}function WW(){return zi===wc}function qx(r,a){var l=Pn;Pn|=ga;var f=oO();if(ao!==r||Fi!==a){if(Li){var h=r.memoizedUpdaters;h.size>0&&(fg(r,Fi),h.clear()),tu(r,a)}Nc=zy(),jp(r,a)}O0(a);do try{GW();break}catch(x){aO(r,x)}while(!0);if(tx(),Pn=l,sO(f),jr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Oy(),ao=null,Fi=Fe,zi}function GW(){for(;jr!==null;)lO(jr)}function YW(r,a){var l=Pn;Pn|=ga;var f=oO();if(ao!==r||Fi!==a){if(Li){var h=r.memoizedUpdaters;h.size>0&&(fg(r,Fi),h.clear()),tu(r,a)}Nc=zy(),og(),jp(r,a)}O0(a);do try{qW();break}catch(x){aO(r,x)}while(!0);return tx(),sO(f),Pn=l,jr!==null?(Ym(),wc):(Oy(),ao=null,Fi=Fe,zi)}function qW(){for(;jr!==null&&!Sy();)lO(jr)}function lO(r){var a=r.alternate;ar(r);var l;(r.mode&Wn)!==$t?(f9(r),l=X9(a,r,hu),Mx(r,!0)):l=X9(a,r,hu),Or(),r.memoizedProps=r.pendingProps,l===null?uO(r):jr=l,F9.current=null}function uO(r){var a=r;do{var l=a.alternate,f=a.return;if((a.flags&Bd)===Bt){ar(a);var h=void 0;if((a.mode&Wn)===$t?h=kA(l,a,hu):(f9(a),h=kA(l,a,hu),Mx(a,!1)),Or(),h!==null){jr=h;return}}else{var x=VH(l,a);if(x!==null){x.flags&=d4,jr=x;return}if((a.mode&Wn)!==$t){Mx(a,!1);for(var _=a.actualDuration,O=a.child;O!==null;)_+=O.actualDuration,O=O.sibling;a.actualDuration=_}if(f!==null)f.flags|=Bd,f.subtreeFlags=Bt,f.deletions=null;else{zi=z9,jr=null;return}}var M=a.sibling;if(M!==null){jr=M;return}a=f,jr=a}while(a!==null);zi===wc&&(zi=KA)}function Vp(r,a,l){var f=Co(),h=va.transition;try{va.transition=null,di(sa),ZW(r,a,l,f)}finally{va.transition=h,di(f)}return null}function ZW(r,a,l,f){do _c();while(Hf!==null);if(oG(),(Pn&(ga|Gs))!==$i)throw new Error("Should not already be working.");var h=r.finishedWork,x=r.finishedLanes;if(Hd(x),h===null)return _0(),null;if(x===Fe&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Fe,h===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=ni;var _=mn(h.lanes,h.childLanes);Sf(r,_),r===ao&&(ao=null,jr=null,Fi=Fe),((h.subtreeFlags&cf)!==Bt||(h.flags&cf)!==Bt)&&(Up||(Up=!0,H9=l,e6(Ls,function(){return _c(),null})));var O=(h.subtreeFlags&(b0|y0|Ud|cf))!==Bt,M=(h.flags&(b0|y0|Ud|cf))!==Bt;if(O||M){var U=va.transition;va.transition=null;var H=Co();di(sa);var oe=Pn;Pn|=Gs,F9.current=null,qH(r,h),oA(),lW(r,h,x),lw(r.containerInfo),r.current=h,S4(x),uW(h,r,x),A0(),Cy(),Pn=oe,di(H),va.transition=U}else r.current=h,oA();var re=Up;if(Up?(Up=!1,Hf=r,sg=x):(Kh=0,Hx=null),_=r.pendingLanes,_===Fe&&(Zh=null),re||pO(r.current,!1),N0(h.stateNode,f),Li&&r.memoizedUpdaters.clear(),RW(),Ro(r,Pr()),a!==null)for(var ye=r.onRecoverableError,xe=0;xe<a.length;xe++){var Te=a[xe],mt=Te.stack,Lt=Te.digest;ye(Te.value,{componentStack:mt,digest:Lt})}if(jx){jx=!1;var Nt=j9;throw j9=null,Nt}return Da(sg,Yt)&&r.tag!==Df&&_c(),_=r.pendingLanes,Da(_,Yt)?(iH(),r===W9?lg++:(lg=0,W9=r)):lg=0,Pf(),_0(),null}function _c(){if(Hf!==null){var r=Is(sg),a=T4(Cr,r),l=va.transition,f=Co();try{return va.transition=null,di(a),XW()}finally{di(f),va.transition=l}}return!1}function KW(r){V9.push(r),Up||(Up=!0,e6(Ls,function(){return _c(),null}))}function XW(){if(Hf===null)return!1;var r=H9;H9=null;var a=Hf,l=sg;if(Hf=null,sg=Fe,(Pn&(ga|Gs))!==$i)throw new Error("Cannot flush passive effects while already rendering.");G9=!0,Vx=!1,Ry(l);var f=Pn;Pn|=Gs,vW(a.current),dW(a,a.current,l,r);{var h=V9;V9=[];for(var x=0;x<h.length;x++){var _=h[x];QH(a,_)}}Ay(),pO(a.current,!0),Pn=f,Pf(),Vx?a===Hx?Kh++:(Kh=0,Hx=a):Kh=0,G9=!1,Vx=!1,h4(a);{var O=a.current.stateNode;O.effectDuration=0,O.passiveEffectDuration=0}return!0}function cO(r){return Zh!==null&&Zh.has(r)}function QW(r){Zh===null?Zh=new Set([r]):Zh.add(r)}function JW(r){jx||(jx=!0,j9=r)}var eG=JW;function fO(r,a,l){var f=Fp(l,a),h=lA(r,f,Yt),x=$f(r,h,Yt),_=oo();x!==null&&(lc(x,Yt,_),Ro(x,_))}function br(r,a,l){if(WH(l),dg(!1),r.tag===b){fO(r,r,l);return}var f=null;for(f=a;f!==null;){if(f.tag===b){fO(f,r,l);return}else if(f.tag===v){var h=f.type,x=f.stateNode;if(typeof h.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&!cO(x)){var _=Fp(l,r),O=g9(f,_,Yt),M=$f(f,O,Yt),U=oo();M!==null&&(lc(M,Yt,U),Ro(M,U));return}}f=f.return}u(`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`,l)}function tG(r,a,l){var f=r.pingCache;f!==null&&f.delete(a);var h=oo();rp(r,l),cG(r),ao===r&&sc(Fi,l)&&(zi===ng||zi===zx&&F0(Fi)&&Pr()-U9<XA?jp(r,Fe):Ux=mn(Ux,l)),Ro(r,h)}function dO(r,a){a===ni&&(a=PW(r));var l=oo(),f=Eo(r,a);f!==null&&(lc(f,a,l),Ro(f,l))}function nG(r){var a=r.memoizedState,l=ni;a!==null&&(l=a.retryLane),dO(r,l)}function rG(r,a){var l=ni,f;switch(r.tag){case z:f=r.stateNode;var h=r.memoizedState;h!==null&&(l=h.retryLane);break;case pe: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),dO(r,l)}function iG(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:LW(r/1960)*1960}function aG(){if(lg>MW)throw lg=0,W9=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.");Kh>DW&&(Kh=0,Hx=null,u("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 oG(){Tl.flushLegacyContextWarning(),Tl.flushPendingUnsafeLifecycleWarnings()}function pO(r,a){ar(r),Zx(r,ti,EW),a&&Zx(r,Vm,_W),Zx(r,ti,wW),a&&Zx(r,Vm,NW),Or()}function Zx(r,a,l){for(var f=r,h=null;f!==null;){var x=f.subtreeFlags&a;f!==h&&f.child!==null&&x!==Bt?f=f.child:((f.flags&a)!==Bt&&l(f),f.sibling!==null?f=f.sibling:f=h=f.return)}}var Kx=null;function mO(r){{if((Pn&ga)!==$i||!(r.mode&wn))return;var a=r.tag;if(a!==g&&a!==b&&a!==v&&a!==m&&a!==P&&a!==q&&a!==Y)return;var l=Ht(r)||"ReactComponent";if(Kx!==null){if(Kx.has(l))return;Kx.add(l)}else Kx=new Set([l]);var f=Sr;try{ar(r),u("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):Or()}}}var X9;{var sG=null;X9=function(r,a,l){var f=CO(sG,a);try{return TA(r,a,l)}catch(x){if(xV()||x!==null&&typeof x=="object"&&typeof x.then=="function")throw x;if(tx(),PR(),MA(r,a),CO(a,f),a.mode&Wn&&f9(a),lf(null,TA,null,r,a,l),B()){var h=Xl();typeof h=="object"&&h!==null&&h._suppressLogging&&typeof x=="object"&&x!==null&&!x._suppressLogging&&(x._suppressLogging=!0)}throw x}}}var hO=!1,Q9;Q9=new Set;function lG(r){if(Xa&&!tH())switch(r.tag){case m:case P:case Y:{var a=jr&&Ht(jr)||"Unknown",l=a;if(!Q9.has(l)){Q9.add(l);var f=Ht(r)||"Unknown";u("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:{hO||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),hO=!0);break}}}function fg(r,a){if(Li){var l=r.memoizedUpdaters;l.forEach(function(f){ah(r,f,a)})}}var J9={};function e6(r,a){{var l=Pl.current;return l!==null?(l.push(a),J9):Ja(r,a)}}function vO(r){if(r!==J9)return p4(r)}function gO(){return Pl.current!==null}function uG(r){{if(r.mode&wn){if(!qA())return}else if(!OW()||Pn!==$i||r.tag!==m&&r.tag!==P&&r.tag!==Y)return;if(Pl.current===null){var a=Sr;try{ar(r),u(`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`,Ht(r))}finally{a?ar(r):Or()}}}}function cG(r){r.tag!==Df&&qA()&&Pl.current===null&&u(`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 dg(r){eO=r}var Ys=null,Xh=null,fG=function(r){Ys=r};function Qh(r){{if(Ys===null)return r;var a=Ys(r);return a===void 0?r:a.current}}function t6(r){return Qh(r)}function n6(r){{if(Ys===null)return r;var a=Ys(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var l=Qh(r.render);if(r.render!==l){var f={$$typeof:ot,render:l};return r.displayName!==void 0&&(f.displayName=r.displayName),f}}return r}return a.current}}function bO(r,a){{if(Ys===null)return!1;var l=r.elementType,f=a.type,h=!1,x=typeof f=="object"&&f!==null?f.$$typeof:null;switch(r.tag){case v:{typeof f=="function"&&(h=!0);break}case m:{(typeof f=="function"||x===cn)&&(h=!0);break}case P:{(x===ot||x===cn)&&(h=!0);break}case q:case Y:{(x===Bn||x===cn)&&(h=!0);break}default:return!1}if(h){var _=Ys(l);if(_!==void 0&&_===Ys(f))return!0}return!1}}function yO(r){{if(Ys===null||typeof WeakSet!="function")return;Xh===null&&(Xh=new WeakSet),Xh.add(r)}}var dG=function(r,a){{if(Ys===null)return;var l=a.staleFamilies,f=a.updatedFamilies;_c(),Ec(function(){r6(r.current,f,l)})}},pG=function(r,a){{if(r.context!==is)return;_c(),Ec(function(){pg(a,r,null,null)})}};function r6(r,a,l){{var f=r.alternate,h=r.child,x=r.sibling,_=r.tag,O=r.type,M=null;switch(_){case m:case Y:case v:M=O;break;case P:M=O.render;break}if(Ys===null)throw new Error("Expected resolveFamily to be set during hot reload.");var U=!1,H=!1;if(M!==null){var oe=Ys(M);oe!==void 0&&(l.has(oe)?H=!0:a.has(oe)&&(_===v?H=!0:U=!0))}if(Xh!==null&&(Xh.has(r)||f!==null&&Xh.has(f))&&(H=!0),H&&(r._debugNeedsRemount=!0),H||U){var re=Eo(r,Yt);re!==null&&Bi(re,r,Yt,tr)}h!==null&&!H&&r6(h,a,l),x!==null&&r6(x,a,l)}}var mG=function(r,a){{var l=new Set,f=new Set(a.map(function(h){return h.current}));return i6(r.current,f,l),l}};function i6(r,a,l){{var f=r.child,h=r.sibling,x=r.tag,_=r.type,O=null;switch(x){case m:case Y:case v:O=_;break;case P:O=_.render;break}var M=!1;O!==null&&a.has(O)&&(M=!0),M?hG(r,l):f!==null&&i6(f,a,l),h!==null&&i6(h,a,l)}}function hG(r,a){{var l=vG(r,a);if(l)return;for(var f=r;;){switch(f.tag){case w:a.add(f.stateNode);return;case C:a.add(f.stateNode.containerInfo);return;case b:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function vG(r,a){for(var l=r,f=!1;;){if(l.tag===w)f=!0,a.add(l.stateNode);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)return f;for(;l.sibling===null;){if(l.return===null||l.return===r)return f;l=l.return}l.sibling.return=l.return,l=l.sibling}return!1}var a6;{a6=!1;try{var xO=Object.preventExtensions({})}catch{a6=!0}}function gG(r,a,l,f){this.tag=r,this.key=l,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=Bt,this.subtreeFlags=Bt,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,!a6&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var as=function(r,a,l,f){return new gG(r,a,l,f)};function o6(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function bG(r){return typeof r=="function"&&!o6(r)&&r.defaultProps===void 0}function yG(r){if(typeof r=="function")return o6(r)?v:m;if(r!=null){var a=r.$$typeof;if(a===ot)return P;if(a===Bn)return q}return g}function Hp(r,a){var l=r.alternate;l===null?(l=as(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l._debugSource=r._debugSource,l._debugOwner=r._debugOwner,l._debugHookTypes=r._debugHookTypes,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=Bt,l.subtreeFlags=Bt,l.deletions=null,l.actualDuration=0,l.actualStartTime=-1),l.flags=r.flags&As,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue;var f=r.dependencies;switch(l.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.selfBaseDuration=r.selfBaseDuration,l.treeBaseDuration=r.treeBaseDuration,l._debugNeedsRemount=r._debugNeedsRemount,l.tag){case g:case m:case Y:l.type=Qh(r.type);break;case v:l.type=t6(r.type);break;case P:l.type=n6(r.type);break}return l}function xG(r,a){r.flags&=As|Yr;var l=r.alternate;if(l===null)r.childLanes=Fe,r.lanes=a,r.child=null,r.subtreeFlags=Bt,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=Bt,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type;var f=l.dependencies;r.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},r.selfBaseDuration=l.selfBaseDuration,r.treeBaseDuration=l.treeBaseDuration}return r}function SG(r,a,l){var f;return r===Y2?(f=wn,a===!0&&(f|=Ur,f|=So)):f=$t,Li&&(f|=Wn),as(b,null,null,f)}function s6(r,a,l,f,h,x){var _=g,O=r;if(typeof r=="function")o6(r)?(_=v,O=t6(O)):O=Qh(O);else if(typeof r=="string")_=w;else{e:switch(r){case Ue:return Yf(l.children,h,x,a);case Xe:_=k,h|=Ur,(h&wn)!==$t&&(h|=So);break;case Et:return CG(l,h,x,a);case Zt:return wG(l,h,x,a);case Vn:return NG(l,h,x,a);case Vo:return SO(l,h,x,a);case Ei:case Wr:case go:case Hu:case Ea:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ln:_=D;break e;case Cn:_=I;break e;case ot:_=P,O=n6(O);break e;case Bn:_=q;break e;case cn:_=Q,O=null;break e}var M="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(M+=" 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?Ht(f):null;U&&(M+=`
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)+"."+M))}}}var H=as(_,l,a,h);return H.elementType=r,H.type=O,H.lanes=x,H._debugOwner=f,H}function l6(r,a,l){var f=null;f=r._owner;var h=r.type,x=r.key,_=r.props,O=s6(h,x,_,f,a,l);return O._debugSource=r._source,O._debugOwner=r._owner,O}function Yf(r,a,l,f){var h=as(A,r,f,a);return h.lanes=l,h}function CG(r,a,l,f){typeof r.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var h=as(F,r,f,a|Wn);return h.elementType=Et,h.lanes=l,h.stateNode={effectDuration:0,passiveEffectDuration:0},h}function wG(r,a,l,f){var h=as(z,r,f,a);return h.elementType=Zt,h.lanes=l,h}function NG(r,a,l,f){var h=as(pe,r,f,a);return h.elementType=Vn,h.lanes=l,h}function SO(r,a,l,f){var h=as(te,r,f,a);h.elementType=Vo,h.lanes=l;var x={isHidden:!1};return h.stateNode=x,h}function u6(r,a,l){var f=as(T,r,null,a);return f.lanes=l,f}function EG(){var r=as(w,null,null,$t);return r.elementType="DELETED",r}function _G(r){var a=as(ae,null,null,$t);return a.stateNode=r,a}function c6(r,a,l){var f=r.children!==null?r.children:[],h=as(C,f,r.key,a);return h.lanes=l,h.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},h}function CO(r,a){return r===null&&(r=as(g,null,null,$t)),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 TG(r,a,l,f,h){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=C1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=ni,this.eventTimes=np(Fe),this.expirationTimes=np(tr),this.pendingLanes=Fe,this.suspendedLanes=Fe,this.pingedLanes=Fe,this.expiredLanes=Fe,this.mutableReadLanes=Fe,this.finishedLanes=Fe,this.entangledLanes=Fe,this.entanglements=np(Fe),this.identifierPrefix=f,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var x=this.pendingUpdatersLaneMap=[],_=0;_<M0;_++)x.push(new Set)}switch(a){case Y2:this._debugRootType=l?"hydrateRoot()":"createRoot()";break;case Df:this._debugRootType=l?"hydrate()":"render()";break}}function wO(r,a,l,f,h,x,_,O,M,U){var H=new TG(r,a,l,O,M),oe=SG(a,x);H.current=oe,oe.stateNode=H;{var re={element:f,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null};oe.memoizedState=re}return bN(oe),H}var f6="18.2.0";function RG(r,a,l){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ln(f),{$$typeof:X,key:f==null?null:""+f,children:r,containerInfo:a,implementation:l}}var d6,p6;d6=!1,p6={};function NO(r){if(!r)return is;var a=hl(r),l=fV(a);if(a.tag===v){var f=a.type;if(lu(f))return KT(a,f,l)}return l}function AG(r,a){{var l=hl(r);if(l===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 h=xy(l);if(h===null)return null;if(h.mode&Ur){var x=Ht(l)||"Component";if(!p6[x]){p6[x]=!0;var _=Sr;try{ar(h),l.mode&Ur?u("%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,x):u("%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,x)}finally{_?ar(_):Or()}}}return h.stateNode}}function EO(r,a,l,f,h,x,_,O){var M=!1,U=null;return wO(r,a,M,U,l,f,h,x,_)}function _O(r,a,l,f,h,x,_,O,M,U){var H=!0,oe=wO(l,f,H,r,h,x,_,O,M);oe.context=NO(null);var re=oe.current,ye=oo(),xe=Wf(re),Te=Sc(ye,xe);return Te.callback=a??null,$f(re,Te,xe),IW(oe,xe,ye),oe}function pg(r,a,l,f){aa(a,r);var h=a.current,x=oo(),_=Wf(h);Ly(_);var O=NO(l);a.context===null?a.context=O:a.pendingContext=O,Xa&&Sr!==null&&!d6&&(d6=!0,u(`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.`,Ht(Sr)||"Unknown"));var M=Sc(x,_);M.payload={element:r},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f),M.callback=f);var U=$f(h,M,_);return U!==null&&(Bi(U,h,_,x),ox(U,h,_)),_}function Xx(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case w:return a.child.stateNode;default:return a.child.stateNode}}function OG(r){switch(r.tag){case b:{var a=r.stateNode;if(pi(a)){var l=N4(a);BW(a,l)}break}case z:{Ec(function(){var h=Eo(r,Yt);if(h!==null){var x=oo();Bi(h,r,Yt,x)}});var f=Yt;m6(r,f);break}}}function TO(r,a){var l=r.memoizedState;l!==null&&l.dehydrated!==null&&(l.retryLane=Cl(l.retryLane,a))}function m6(r,a){TO(r,a);var l=r.alternate;l&&TO(l,a)}function LG(r){if(r.tag===z){var a=gf,l=Eo(r,a);if(l!==null){var f=oo();Bi(l,r,a,f)}m6(r,a)}}function kG(r){if(r.tag===z){var a=Wf(r),l=Eo(r,a);if(l!==null){var f=oo();Bi(l,r,a,f)}m6(r,a)}}function RO(r){var a=S0(r);return a===null?null:a.stateNode}var AO=function(r){return null};function MG(r){return AO(r)}var OO=function(r){return!1};function DG(r){return OO(r)}var LO=null,kO=null,MO=null,DO=null,PO=null,IO=null,$O=null,FO=null,zO=null;{var BO=function(r,a,l){var f=a[l],h=Ut(r)?r.slice():en({},r);return l+1===a.length?(Ut(h)?h.splice(f,1):delete h[f],h):(h[f]=BO(r[f],a,l+1),h)},UO=function(r,a){return BO(r,a,0)},jO=function(r,a,l,f){var h=a[f],x=Ut(r)?r.slice():en({},r);if(f+1===a.length){var _=l[f];x[_]=x[h],Ut(x)?x.splice(h,1):delete x[h]}else x[h]=jO(r[h],a,l,f+1);return x},VO=function(r,a,l){if(a.length!==l.length){s("copyWithRename() expects paths of the same length");return}else for(var f=0;f<l.length-1;f++)if(a[f]!==l[f]){s("copyWithRename() expects paths to be the same except for the deepest key");return}return jO(r,a,l,0)},HO=function(r,a,l,f){if(l>=a.length)return f;var h=a[l],x=Ut(r)?r.slice():en({},r);return x[h]=HO(r[h],a,l+1,f),x},WO=function(r,a,l){return HO(r,a,0,l)},h6=function(r,a){for(var l=r.memoizedState;l!==null&&a>0;)l=l.next,a--;return l};LO=function(r,a,l,f){var h=h6(r,a);if(h!==null){var x=WO(h.memoizedState,l,f);h.memoizedState=x,h.baseState=x,r.memoizedProps=en({},r.memoizedProps);var _=Eo(r,Yt);_!==null&&Bi(_,r,Yt,tr)}},kO=function(r,a,l){var f=h6(r,a);if(f!==null){var h=UO(f.memoizedState,l);f.memoizedState=h,f.baseState=h,r.memoizedProps=en({},r.memoizedProps);var x=Eo(r,Yt);x!==null&&Bi(x,r,Yt,tr)}},MO=function(r,a,l,f){var h=h6(r,a);if(h!==null){var x=VO(h.memoizedState,l,f);h.memoizedState=x,h.baseState=x,r.memoizedProps=en({},r.memoizedProps);var _=Eo(r,Yt);_!==null&&Bi(_,r,Yt,tr)}},DO=function(r,a,l){r.pendingProps=WO(r.memoizedProps,a,l),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=Eo(r,Yt);f!==null&&Bi(f,r,Yt,tr)},PO=function(r,a){r.pendingProps=UO(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var l=Eo(r,Yt);l!==null&&Bi(l,r,Yt,tr)},IO=function(r,a,l){r.pendingProps=VO(r.memoizedProps,a,l),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=Eo(r,Yt);f!==null&&Bi(f,r,Yt,tr)},$O=function(r){var a=Eo(r,Yt);a!==null&&Bi(a,r,Yt,tr)},FO=function(r){AO=r},zO=function(r){OO=r}}function PG(r){var a=xy(r);return a===null?null:a.stateNode}function IG(r){return null}function $G(){return Sr}function FG(r){var a=r.findFiberByHostInstance,l=n.ReactCurrentDispatcher;return wy({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:LO,overrideHookStateDeletePath:kO,overrideHookStateRenamePath:MO,overrideProps:DO,overridePropsDeletePath:PO,overridePropsRenamePath:IO,setErrorHandler:FO,setSuspenseHandler:zO,scheduleUpdate:$O,currentDispatcherRef:l,findHostInstanceByFiber:PG,findFiberByHostInstance:a||IG,findHostInstancesForRefresh:mG,scheduleRefresh:dG,scheduleRoot:pG,setRefreshHandler:fG,getCurrentFiber:$G,reconcilerVersion:f6})}var GO=typeof reportError=="function"?reportError:function(r){console.error(r)};function v6(r){this._internalRoot=r}Qx.prototype.render=v6.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Jx(arguments[1])?u("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"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var l=a.containerInfo;if(l.nodeType!==Hn){var f=RO(a.current);f&&f.parentNode!==l&&u("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.")}}pg(r,a,null,null)},Qx.prototype.unmount=v6.prototype.unmount=function(){typeof arguments[0]=="function"&&u("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;iO()&&u("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."),Ec(function(){pg(null,r,null,null)}),Pe(a)}};function zG(r,a){if(!Jx(r))throw new Error("createRoot(...): Target container is not a DOM element.");YO(r);var l=!1,f=!1,h="",x=GO;a!=null&&(a.hydrate?s("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===Hi&&u(`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&&(l=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var _=EO(r,Y2,null,l,f,h,x);fe(_.current,r);var O=r.nodeType===Hn?r.parentNode:r;return xp(O),new v6(_)}function Qx(r){this._internalRoot=r}function BG(r){r&&Gy(r)}Qx.prototype.unstable_scheduleHydration=BG;function UG(r,a,l){if(!Jx(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");YO(r),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=l??null,h=l!=null&&l.hydratedSources||null,x=!1,_=!1,O="",M=GO;l!=null&&(l.unstable_strictMode===!0&&(x=!0),l.identifierPrefix!==void 0&&(O=l.identifierPrefix),l.onRecoverableError!==void 0&&(M=l.onRecoverableError));var U=_O(a,null,r,Y2,f,x,_,O,M);if(fe(U.current,r),xp(r),h)for(var H=0;H<h.length;H++){var oe=h[H];ZV(U,oe)}return new Qx(U)}function Jx(r){return!!(r&&(r.nodeType===Ma||r.nodeType===Jo||r.nodeType===qu||!Le))}function mg(r){return!!(r&&(r.nodeType===Ma||r.nodeType===Jo||r.nodeType===qu||r.nodeType===Hn&&r.nodeValue===" react-mount-point-unstable "))}function YO(r){r.nodeType===Ma&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("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."),Oe(r)&&(r._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("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 jG=n.ReactCurrentOwner,qO;qO=function(r){if(r._reactRootContainer&&r.nodeType!==Hn){var a=RO(r._reactRootContainer.current);a&&a.parentNode!==r&&u("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 l=!!r._reactRootContainer,f=g6(r),h=!!(f&&Qe(f));h&&!l&&u("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===Ma&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&u("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 g6(r){return r?r.nodeType===Jo?r.documentElement:r.firstChild:null}function ZO(){}function VG(r,a,l,f,h){if(h){if(typeof f=="function"){var x=f;f=function(){var re=Xx(_);x.call(re)}}var _=_O(a,f,r,Df,null,!1,!1,"",ZO);r._reactRootContainer=_,fe(_.current,r);var O=r.nodeType===Hn?r.parentNode:r;return xp(O),Ec(),_}else{for(var M;M=r.lastChild;)r.removeChild(M);if(typeof f=="function"){var U=f;f=function(){var re=Xx(H);U.call(re)}}var H=EO(r,Df,null,!1,!1,"",ZO);r._reactRootContainer=H,fe(H.current,r);var oe=r.nodeType===Hn?r.parentNode:r;return xp(oe),Ec(function(){pg(a,H,l,f)}),H}}function HG(r,a){r!==null&&typeof r!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r)}function e5(r,a,l,f,h){qO(l),HG(h===void 0?null:h,"render");var x=l._reactRootContainer,_;if(!x)_=VG(l,a,r,h,f);else{if(_=x,typeof h=="function"){var O=h;h=function(){var M=Xx(_);O.call(M)}}pg(a,_,r,h)}return Xx(_)}function WG(r){{var a=jG.current;if(a!==null&&a.stateNode!==null){var l=a.stateNode._warnedAboutRefsInRender;l||u("%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.",fn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===Ma?r:AG(r,"findDOMNode")}function GG(r,a,l){if(u("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"),!mg(a))throw new Error("Target container is not a DOM element.");{var f=Oe(a)&&a._reactRootContainer===void 0;f&&u("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 e5(null,r,a,!0,l)}function YG(r,a,l){if(u("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"),!mg(a))throw new Error("Target container is not a DOM element.");{var f=Oe(a)&&a._reactRootContainer===void 0;f&&u("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 e5(null,r,a,!1,l)}function qG(r,a,l,f){if(u("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"),!mg(l))throw new Error("Target container is not a DOM element.");if(r==null||!xo(r))throw new Error("parentComponent must be a valid React Component");return e5(r,a,l,!1,f)}function ZG(r){if(!mg(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Oe(r)&&r._reactRootContainer===void 0;a&&u("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 l=g6(r),f=l&&!Qe(l);f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ec(function(){e5(null,null,r,!1,function(){r._reactRootContainer=null,Pe(r)})}),!0}else{{var h=g6(r),x=!!(h&&Qe(h)),_=r.nodeType===Ma&&mg(r.parentNode)&&!!r.parentNode._reactRootContainer;x&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",_?"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}}R4(OG),A4(LG),Uy(kG),O4(Co),L4(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")&&u("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"),d0(I2),my(q9,UW,Ec);function KG(r,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Jx(a))throw new Error("Target container is not a DOM element.");return RG(r,a,null,l)}function XG(r,a,l,f){return qG(r,a,l,f)}var b6={usingClientEntryPoint:!1,Events:[Qe,gt,zt,uy,fy,q9]};function QG(r,a){return b6.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),zG(r,a)}function JG(r,a,l){return b6.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),UG(r,a,l)}function eY(r){return iO()&&u("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."),Ec(r)}var tY=FG({findFiberByHostInstance:Ie,bundleType:1,version:f6,rendererPackageName:"react-dom"});if(!tY&&jt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var KO=window.location.protocol;/^(https?|file):$/.test(KO)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(KO==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}us.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b6,us.createPortal=KG,us.createRoot=QG,us.findDOMNode=WG,us.flushSync=eY,us.hydrate=GG,us.hydrateRoot=JG,us.render=YG,us.unmountComponentAtNode=ZG,us.unstable_batchedUpdates=q9,us.unstable_renderSubtreeIntoContainer=XG,us.version=f6,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=us})(Wc);var y6=Wc.exports;{var t5=y6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z7.createRoot=function(e,t){t5.usingClientEntryPoint=!0;try{return y6.createRoot(e,t)}finally{t5.usingClientEntryPoint=!1}},z7.hydrateRoot=function(e,t,n){t5.usingClientEntryPoint=!0;try{return y6.hydrateRoot(e,t,n)}finally{t5.usingClientEntryPoint=!1}}}var Ou=Boolean(globalThis?.document)?E.exports.useLayoutEffect:E.exports.useEffect,P8={exports:{}},B7={};/**
* @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=E.exports,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=Symbol.iterator,A="@@iterator";function k(X){if(X===null||typeof X!="object")return null;var Ue=T&&X[T]||X[A];return typeof Ue=="function"?Ue:null}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(X){{for(var Ue=arguments.length,Xe=new Array(Ue>1?Ue-1:0),Et=1;Et<Ue;Et++)Xe[Et-1]=arguments[Et];P("error",X,Xe)}}function P(X,Ue,Xe){{var Et=I.ReactDebugCurrentFrame,ln=Et.getStackAddendum();ln!==""&&(Ue+="%s",Xe=Xe.concat([ln]));var Cn=Xe.map(function(ot){return String(ot)});Cn.unshift("Warning: "+Ue),Function.prototype.apply.call(console[X],console,Cn)}}var F=!1,z=!1,q=!1,Y=!1,Q=!1,ie;ie=Symbol.for("react.module.reference");function ae(X){return!!(typeof X=="string"||typeof X=="function"||X===i||X===s||Q||X===o||X===v||X===g||Y||X===w||F||z||q||typeof X=="object"&&X!==null&&(X.$$typeof===C||X.$$typeof===b||X.$$typeof===u||X.$$typeof===p||X.$$typeof===m||X.$$typeof===ie||X.getModuleId!==void 0))}function pe(X,Ue,Xe){var Et=X.displayName;if(Et)return Et;var ln=Ue.displayName||Ue.name||"";return ln!==""?Xe+"("+ln+")":Xe}function $e(X){return X.displayName||"Context"}function te(X){if(X==null)return null;if(typeof X.tag=="number"&&D("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 s:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList"}if(typeof X=="object")switch(X.$$typeof){case p:var Ue=X;return $e(Ue)+".Consumer";case u:var Xe=X;return $e(Xe._context)+".Provider";case m:return pe(X,X.render,"ForwardRef");case b:var Et=X.displayName||null;return Et!==null?Et:te(X.type)||"Memo";case C:{var ln=X,Cn=ln._payload,ot=ln._init;try{return te(ot(Cn))}catch{return null}}}return null}var ee=Object.assign,be=0,Ce,K,le,ve,de,we,Le;function Me(){}Me.__reactDisabledLog=!0;function Ze(){{if(be===0){Ce=console.log,K=console.info,le=console.warn,ve=console.error,de=console.group,we=console.groupCollapsed,Le=console.groupEnd;var X={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}be++}}function Je(){{if(be--,be===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},X,{value:Ce}),info:ee({},X,{value:K}),warn:ee({},X,{value:le}),error:ee({},X,{value:ve}),group:ee({},X,{value:de}),groupCollapsed:ee({},X,{value:we}),groupEnd:ee({},X,{value:Le})})}be<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=I.ReactCurrentDispatcher,Rt;function Ve(X,Ue,Xe){{if(Rt===void 0)try{throw Error()}catch(ln){var Et=ln.stack.trim().match(/\n( *(at )?)/);Rt=Et&&Et[1]||""}return`
`+Rt+X}}var at=!1,St;{var Dt=typeof WeakMap=="function"?WeakMap:Map;St=new Dt}function He(X,Ue){if(!X||at)return"";{var Xe=St.get(X);if(Xe!==void 0)return Xe}var Et;at=!0;var ln=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Cn;Cn=it.current,it.current=null,Ze();try{if(Ue){var ot=function(){throw Error()};if(Object.defineProperty(ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ot,[])}catch(Ei){Et=Ei}Reflect.construct(X,[],ot)}else{try{ot.call()}catch(Ei){Et=Ei}X.call(ot.prototype)}}else{try{throw Error()}catch(Ei){Et=Ei}X()}}catch(Ei){if(Ei&&Et&&typeof Ei.stack=="string"){for(var Zt=Ei.stack.split(`
`),Vn=Et.stack.split(`
`),Bn=Zt.length-1,cn=Vn.length-1;Bn>=1&&cn>=0&&Zt[Bn]!==Vn[cn];)cn--;for(;Bn>=1&&cn>=0;Bn--,cn--)if(Zt[Bn]!==Vn[cn]){if(Bn!==1||cn!==1)do if(Bn--,cn--,cn<0||Zt[Bn]!==Vn[cn]){var Wr=`
`+Zt[Bn].replace(" at new "," at ");return X.displayName&&Wr.includes("<anonymous>")&&(Wr=Wr.replace("<anonymous>",X.displayName)),typeof X=="function"&&St.set(X,Wr),Wr}while(Bn>=1&&cn>=0);break}}}finally{at=!1,it.current=Cn,Je(),Error.prepareStackTrace=ln}var Ea=X?X.displayName||X.name:"",Vo=Ea?Ve(Ea):"";return typeof X=="function"&&St.set(X,Vo),Vo}function jt(X,Ue,Xe){return He(X,!1)}function Se(X){var Ue=X.prototype;return!!(Ue&&Ue.isReactComponent)}function tt(X,Ue,Xe){if(X==null)return"";if(typeof X=="function")return He(X,Se(X));if(typeof X=="string")return Ve(X);switch(X){case v:return Ve("Suspense");case g:return Ve("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case m:return jt(X.render);case b:return tt(X.type,Ue,Xe);case C:{var Et=X,ln=Et._payload,Cn=Et._init;try{return tt(Cn(ln),Ue,Xe)}catch{}}}return""}var Ct=Object.prototype.hasOwnProperty,nt={},on=I.ReactDebugCurrentFrame;function Ln(X){if(X){var Ue=X._owner,Xe=tt(X.type,X._source,Ue?Ue.type:null);on.setExtraStackFrame(Xe)}else on.setExtraStackFrame(null)}function _t(X,Ue,Xe,Et,ln){{var Cn=Function.call.bind(Ct);for(var ot in X)if(Cn(X,ot)){var Zt=void 0;try{if(typeof X[ot]!="function"){var Vn=Error((Et||"React class")+": "+Xe+" type `"+ot+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[ot]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Vn.name="Invariant Violation",Vn}Zt=X[ot](Ue,ot,Et,Xe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Bn){Zt=Bn}Zt&&!(Zt instanceof Error)&&(Ln(ln),D("%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).",Et||"React class",Xe,ot,typeof Zt),Ln(null)),Zt instanceof Error&&!(Zt.message in nt)&&(nt[Zt.message]=!0,Ln(ln),D("Failed %s type: %s",Xe,Zt.message),Ln(null))}}}var sn=Array.isArray;function kn(X){return sn(X)}function bn(X){{var Ue=typeof Symbol=="function"&&Symbol.toStringTag,Xe=Ue&&X[Symbol.toStringTag]||X.constructor.name||"Object";return Xe}}function Ye(X){try{return et(X),!1}catch{return!0}}function et(X){return""+X}function nn(X){if(Ye(X))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bn(X)),et(X)}var Pt=I.ReactCurrentOwner,De={key:!0,ref:!0,__self:!0,__source:!0},qt,_n,We;We={};function lt(X){if(Ct.call(X,"ref")){var Ue=Object.getOwnPropertyDescriptor(X,"ref").get;if(Ue&&Ue.isReactWarning)return!1}return X.ref!==void 0}function At(X){if(Ct.call(X,"key")){var Ue=Object.getOwnPropertyDescriptor(X,"key").get;if(Ue&&Ue.isReactWarning)return!1}return X.key!==void 0}function vn(X,Ue){if(typeof X.ref=="string"&&Pt.current&&Ue&&Pt.current.stateNode!==Ue){var Xe=te(Pt.current.type);We[Xe]||(D('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',te(Pt.current.type),X.ref),We[Xe]=!0)}}function Jt(X,Ue){{var Xe=function(){qt||(qt=!0,D("%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))};Xe.isReactWarning=!0,Object.defineProperty(X,"key",{get:Xe,configurable:!0})}}function Tn(X,Ue){{var Xe=function(){_n||(_n=!0,D("%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))};Xe.isReactWarning=!0,Object.defineProperty(X,"ref",{get:Xe,configurable:!0})}}var $n=function(X,Ue,Xe,Et,ln,Cn,ot){var Zt={$$typeof:t,type:X,key:Ue,ref:Xe,props:ot,_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:Et}),Object.defineProperty(Zt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ln}),Object.freeze&&(Object.freeze(Zt.props),Object.freeze(Zt)),Zt};function Dr(X,Ue,Xe,Et,ln){{var Cn,ot={},Zt=null,Vn=null;Xe!==void 0&&(nn(Xe),Zt=""+Xe),At(Ue)&&(nn(Ue.key),Zt=""+Ue.key),lt(Ue)&&(Vn=Ue.ref,vn(Ue,ln));for(Cn in Ue)Ct.call(Ue,Cn)&&!De.hasOwnProperty(Cn)&&(ot[Cn]=Ue[Cn]);if(X&&X.defaultProps){var Bn=X.defaultProps;for(Cn in Bn)ot[Cn]===void 0&&(ot[Cn]=Bn[Cn])}if(Zt||Vn){var cn=typeof X=="function"?X.displayName||X.name||"Unknown":X;Zt&&Jt(ot,cn),Vn&&Tn(ot,cn)}return $n(X,Zt,Vn,ln,Et,Pt.current,ot)}}var Mn=I.ReactCurrentOwner,wi=I.ReactDebugCurrentFrame;function jn(X){if(X){var Ue=X._owner,Xe=tt(X.type,X._source,Ue?Ue.type:null);wi.setExtraStackFrame(Xe)}else wi.setExtraStackFrame(null)}var Rn;Rn=!1;function Ni(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function xr(){{if(Mn.current){var X=te(Mn.current.type);if(X)return`
Check the render method of \``+X+"`."}return""}}function Bo(X){{if(X!==void 0){var Ue=X.fileName.replace(/^.*[\\\/]/,""),Xe=X.lineNumber;return`
Check your code at `+Ue+":"+Xe+"."}return""}}var gs={};function bs(X){{var Ue=xr();if(!Ue){var Xe=typeof X=="string"?X:X.displayName||X.name;Xe&&(Ue=`
Check the top-level render call using <`+Xe+">.")}return Ue}}function Uo(X,Ue){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var Xe=bs(Ue);if(gs[Xe])return;gs[Xe]=!0;var Et="";X&&X._owner&&X._owner!==Mn.current&&(Et=" It was passed a child from "+te(X._owner.type)+"."),jn(X),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Xe,Et),jn(null)}}function jo(X,Ue){{if(typeof X!="object")return;if(kn(X))for(var Xe=0;Xe<X.length;Xe++){var Et=X[Xe];Ni(Et)&&Uo(Et,Ue)}else if(Ni(X))X._store&&(X._store.validated=!0);else if(X){var ln=k(X);if(typeof ln=="function"&&ln!==X.entries)for(var Cn=ln.call(X),ot;!(ot=Cn.next()).done;)Ni(ot.value)&&Uo(ot.value,Ue)}}}function hr(X){{var Ue=X.type;if(Ue==null||typeof Ue=="string")return;var Xe;if(typeof Ue=="function")Xe=Ue.propTypes;else if(typeof Ue=="object"&&(Ue.$$typeof===m||Ue.$$typeof===b))Xe=Ue.propTypes;else return;if(Xe){var Et=te(Ue);_t(Xe,X.props,"prop",Et,X)}else if(Ue.PropTypes!==void 0&&!Rn){Rn=!0;var ln=te(Ue);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ln||"Unknown")}typeof Ue.getDefaultProps=="function"&&!Ue.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vi(X){{for(var Ue=Object.keys(X.props),Xe=0;Xe<Ue.length;Xe++){var Et=Ue[Xe];if(Et!=="children"&&Et!=="key"){jn(X),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Et),jn(null);break}}X.ref!==null&&(jn(X),D("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}function qa(X,Ue,Xe,Et,ln,Cn){{var ot=ae(X);if(!ot){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=Bo(ln);Vn?Zt+=Vn:Zt+=xr();var Bn;X===null?Bn="null":kn(X)?Bn="array":X!==void 0&&X.$$typeof===t?(Bn="<"+(te(X.type)||"Unknown")+" />",Zt=" Did you accidentally export a JSX literal instead of a component?"):Bn=typeof X,D("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 cn=Dr(X,Ue,Xe,ln,Cn);if(cn==null)return cn;if(ot){var Wr=Ue.children;if(Wr!==void 0)if(Et)if(kn(Wr)){for(var Ea=0;Ea<Wr.length;Ea++)jo(Wr[Ea],X);Object.freeze&&Object.freeze(Wr)}else D("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 jo(Wr,X)}return X===i?Vi(cn):hr(cn),cn}}var Hi=qa;B7.Fragment=i,B7.jsxDEV=Hi})();(function(e){e.exports=B7})(P8);const ji=P8.exports.Fragment,N=P8.exports.jsxDEV;var ZP="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",I8=E.exports.createContext({});I8.displayName="ColorModeContext";function $8(){const e=E.exports.useContext(I8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var n5={light:"chakra-ui-light",dark:"chakra-ui-dark"};function oY(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?n5.dark:n5.light),document.body.classList.remove(i?n5.light:n5.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(),s=u=>{i(u.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(s):o.addEventListener("change",s),()=>{typeof o.removeListener=="function"?o.removeListener(s):o.removeEventListener("change",s)}},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 sY="chakra-ui-color-mode";function lY(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 uY=lY(sY),XO=()=>{};function QO(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function KP(e){const{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:s}={},colorModeManager:u=uY}=e,p=o==="dark"?"dark":"light",[m,v]=E.exports.useState(()=>QO(u,p)),[g,b]=E.exports.useState(()=>QO(u)),{getSystemTheme:C,setClassName:w,setDataset:T,addListener:A}=E.exports.useMemo(()=>oY({preventTransition:s}),[s]),k=o==="system"&&!m?g:m,I=E.exports.useCallback(F=>{const z=F==="system"?C():F;v(z),w(z==="dark"),T(z),u.set(z)},[u,C,w,T]);Ou(()=>{o==="system"&&b(C())},[]),E.exports.useEffect(()=>{const F=u.get();if(F){I(F);return}if(o==="system"){I("system");return}I(p)},[u,p,o,I]);const D=E.exports.useCallback(()=>{I(k==="dark"?"light":"dark")},[k,I]);E.exports.useEffect(()=>{if(!!i)return A(I)},[i,A,I]);const P=E.exports.useMemo(()=>({colorMode:t??k,toggleColorMode:t?XO:D,setColorMode:t?XO:I}),[k,D,I,t]);return N(I8.Provider,{value:P,children:n},void 0,!1,{fileName:ZP,lineNumber:190,columnNumber:26},this)}KP.displayName="ColorModeProvider";var cY=new Set(["dark","light","system"]);function fY(e){let t=e;return cY.has(t)||(t="light"),t}function dY(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:i="chakra-ui-color-mode"}=e,o=fY(t),s=n==="cookie",u=`(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`!${s?u:p}`.trim()}function pY(e={}){return N("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:dY(e)}},void 0,!1,{fileName:ZP,lineNumber:244,columnNumber:26},this)}var U7={exports:{}};(function(e,t){var n=200,i="__lodash_hash_undefined__",o=800,s=16,u=9007199254740991,p="[object Arguments]",m="[object Array]",v="[object AsyncFunction]",g="[object Boolean]",b="[object Date]",C="[object Error]",w="[object Function]",T="[object GeneratorFunction]",A="[object Map]",k="[object Number]",I="[object Null]",D="[object Object]",P="[object Proxy]",F="[object RegExp]",z="[object Set]",q="[object String]",Y="[object Undefined]",Q="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object DataView]",pe="[object Float32Array]",$e="[object Float64Array]",te="[object Int8Array]",ee="[object Int16Array]",be="[object Int32Array]",Ce="[object Uint8Array]",K="[object Uint8ClampedArray]",le="[object Uint16Array]",ve="[object Uint32Array]",de=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,Le=/^(?:0|[1-9]\d*)$/,Me={};Me[pe]=Me[$e]=Me[te]=Me[ee]=Me[be]=Me[Ce]=Me[K]=Me[le]=Me[ve]=!0,Me[p]=Me[m]=Me[ie]=Me[g]=Me[ae]=Me[b]=Me[C]=Me[w]=Me[A]=Me[k]=Me[D]=Me[F]=Me[z]=Me[q]=Me[Q]=!1;var Ze=typeof Dc=="object"&&Dc&&Dc.Object===Object&&Dc,Je=typeof self=="object"&&self&&self.Object===Object&&self,it=Ze||Je||Function("return this")(),Rt=t&&!t.nodeType&&t,Ve=Rt&&!0&&e&&!e.nodeType&&e,at=Ve&&Ve.exports===Rt,St=at&&Ze.process,Dt=function(){try{var W=Ve&&Ve.require&&Ve.require("util").types;return W||St&&St.binding&&St.binding("util")}catch{}}(),He=Dt&&Dt.isTypedArray;function jt(W,ne,ge){switch(ge.length){case 0:return W.call(ne);case 1:return W.call(ne,ge[0]);case 2:return W.call(ne,ge[0],ge[1]);case 3:return W.call(ne,ge[0],ge[1],ge[2])}return W.apply(ne,ge)}function Se(W,ne){for(var ge=-1,ut=Array(W);++ge<W;)ut[ge]=ne(ge);return ut}function tt(W){return function(ne){return W(ne)}}function Ct(W,ne){return W?.[ne]}function nt(W,ne){return function(ge){return W(ne(ge))}}var on=Array.prototype,Ln=Function.prototype,_t=Object.prototype,sn=it["__core-js_shared__"],kn=Ln.toString,bn=_t.hasOwnProperty,Ye=function(){var W=/[^.]+$/.exec(sn&&sn.keys&&sn.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),et=_t.toString,nn=kn.call(Object),Pt=RegExp("^"+kn.call(bn).replace(de,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=at?it.Buffer:void 0,qt=it.Symbol,_n=it.Uint8Array,We=De?De.allocUnsafe:void 0,lt=nt(Object.getPrototypeOf,Object),At=Object.create,vn=_t.propertyIsEnumerable,Jt=on.splice,Tn=qt?qt.toStringTag:void 0,$n=function(){try{var W=Gi(Object,"defineProperty");return W({},"",{}),W}catch{}}(),Dr=De?De.isBuffer:void 0,Mn=Math.max,wi=Date.now,jn=Gi(it,"Map"),Rn=Gi(Object,"create"),Ni=function(){function W(){}return function(ne){if(!mr(ne))return{};if(At)return At(ne);W.prototype=ne;var ge=new W;return W.prototype=void 0,ge}}();function xr(W){var ne=-1,ge=W==null?0:W.length;for(this.clear();++ne<ge;){var ut=W[ne];this.set(ut[0],ut[1])}}function Bo(){this.__data__=Rn?Rn(null):{},this.size=0}function gs(W){var ne=this.has(W)&&delete this.__data__[W];return this.size-=ne?1:0,ne}function bs(W){var ne=this.__data__;if(Rn){var ge=ne[W];return ge===i?void 0:ge}return bn.call(ne,W)?ne[W]:void 0}function Uo(W){var ne=this.__data__;return Rn?ne[W]!==void 0:bn.call(ne,W)}function jo(W,ne){var ge=this.__data__;return this.size+=this.has(W)?0:1,ge[W]=Rn&&ne===void 0?i:ne,this}xr.prototype.clear=Bo,xr.prototype.delete=gs,xr.prototype.get=bs,xr.prototype.has=Uo,xr.prototype.set=jo;function hr(W){var ne=-1,ge=W==null?0:W.length;for(this.clear();++ne<ge;){var ut=W[ne];this.set(ut[0],ut[1])}}function Vi(){this.__data__=[],this.size=0}function qa(W){var ne=this.__data__,ge=_a(ne,W);if(ge<0)return!1;var ut=ne.length-1;return ge==ut?ne.pop():Jt.call(ne,ge,1),--this.size,!0}function Hi(W){var ne=this.__data__,ge=_a(ne,W);return ge<0?void 0:ne[ge][1]}function X(W){return _a(this.__data__,W)>-1}function Ue(W,ne){var ge=this.__data__,ut=_a(ge,W);return ut<0?(++this.size,ge.push([W,ne])):ge[ut][1]=ne,this}hr.prototype.clear=Vi,hr.prototype.delete=qa,hr.prototype.get=Hi,hr.prototype.has=X,hr.prototype.set=Ue;function Xe(W){var ne=-1,ge=W==null?0:W.length;for(this.clear();++ne<ge;){var ut=W[ne];this.set(ut[0],ut[1])}}function Et(){this.size=0,this.__data__={hash:new xr,map:new(jn||hr),string:new xr}}function ln(W){var ne=Ti(this,W).delete(W);return this.size-=ne?1:0,ne}function Cn(W){return Ti(this,W).get(W)}function ot(W){return Ti(this,W).has(W)}function Zt(W,ne){var ge=Ti(this,W),ut=ge.size;return ge.set(W,ne),this.size+=ge.size==ut?0:1,this}Xe.prototype.clear=Et,Xe.prototype.delete=ln,Xe.prototype.get=Cn,Xe.prototype.has=ot,Xe.prototype.set=Zt;function Vn(W){var ne=this.__data__=new hr(W);this.size=ne.size}function Bn(){this.__data__=new hr,this.size=0}function cn(W){var ne=this.__data__,ge=ne.delete(W);return this.size=ne.size,ge}function Wr(W){return this.__data__.get(W)}function Ea(W){return this.__data__.has(W)}function Vo(W,ne){var ge=this.__data__;if(ge instanceof hr){var ut=ge.__data__;if(!jn||ut.length<n-1)return ut.push([W,ne]),this.size=++ge.size,this;ge=this.__data__=new Xe(ut)}return ge.set(W,ne),this.size=ge.size,this}Vn.prototype.clear=Bn,Vn.prototype.delete=cn,Vn.prototype.get=Wr,Vn.prototype.has=Ea,Vn.prototype.set=Vo;function Ei(W,ne){var ge=na(W),ut=!ge&&Xa(W),dn=!ge&&!ut&&ar(W),zn=!ge&&!ut&&!dn&&yo(W),Kt=ge||ut||dn||zn,S=Kt?Se(W.length,String):[],L=S.length;for(var V in W)(ne||bn.call(W,V))&&!(Kt&&(V=="length"||dn&&(V=="offset"||V=="parent")||zn&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Ns(V,L)))&&S.push(V);return S}function go(W,ne,ge){(ge!==void 0&&!Sr(W[ne],ge)||ge===void 0&&!(ne in W))&&al(W,ne,ge)}function Hu(W,ne,ge){var ut=W[ne];(!(bn.call(W,ne)&&Sr(ut,ge))||ge===void 0&&!(ne in W))&&al(W,ne,ge)}function _a(W,ne){for(var ge=W.length;ge--;)if(Sr(W[ge][0],ne))return ge;return-1}function al(W,ne,ge){ne=="__proto__"&&$n?$n(W,ne,{configurable:!0,enumerable:!0,value:ge,writable:!0}):W[ne]=ge}var Za=Wi();function en(W){return W==null?W===void 0?Y:I:Tn&&Tn in Object(W)?ws(W):ll(W)}function Ka(W){return li(W)&&en(W)==p}function _i(W){if(!mr(W)||Zo(W))return!1;var ne=Xo(W)?Pt:we;return ne.test(ul(W))}function Ho(W){return li(W)&&Jr(W.length)&&!!Me[en(W)]}function ys(W){if(!mr(W))return Ra(W);var ne=Yi(W),ge=[];for(var ut in W)ut=="constructor"&&(ne||!bn.call(W,ut))||ge.push(ut);return ge}function Wo(W,ne,ge,ut,dn){W!==ne&&Za(ne,function(zn,Kt){if(dn||(dn=new Vn),mr(zn))xs(W,ne,Kt,ge,Wo,ut,dn);else{var S=ut?ut(Aa(W,Kt),zn,Kt+"",W,ne,dn):void 0;S===void 0&&(S=zn),go(W,Kt,S)}},cl)}function xs(W,ne,ge,ut,dn,zn,Kt){var S=Aa(W,ge),L=Aa(ne,ge),V=Kt.get(L);if(V){go(W,ge,V);return}var G=zn?zn(S,L,ge+"",W,ne,Kt):void 0,se=G===void 0;if(se){var ze=na(L),Ee=!ze&&ar(L),Ge=!ze&&!Ee&&yo(L);G=L,ze||Ee||Ge?na(S)?G=S:Or(S)?G=sl(S):Ee?(se=!1,G=Yo(L,!0)):Ge?(se=!1,G=ol(L,!0)):G=[]:Wu(L)||Xa(L)?(G=S,Xa(S)?G=Oa(S):(!mr(S)||Xo(S))&&(G=qo(L))):se=!1}se&&(Kt.set(L,G),dn(G,L,ut,zn,Kt),Kt.delete(L)),go(W,ge,G)}function Ss(W,ne){return Ko(fn(W,ne,ql),W+"")}var Go=$n?function(W,ne){return $n(W,"toString",{configurable:!0,enumerable:!1,value:Fn(ne),writable:!0})}:ql;function Yo(W,ne){if(ne)return W.slice();var ge=W.length,ut=We?We(ge):new W.constructor(ge);return W.copy(ut),ut}function Cs(W){var ne=new W.constructor(W.byteLength);return new _n(ne).set(new _n(W)),ne}function ol(W,ne){var ge=ne?Cs(W.buffer):W.buffer;return new W.constructor(ge,W.byteOffset,W.length)}function sl(W,ne){var ge=-1,ut=W.length;for(ne||(ne=Array(ut));++ge<ut;)ne[ge]=W[ge];return ne}function Ta(W,ne,ge,ut){var dn=!ge;ge||(ge={});for(var zn=-1,Kt=ne.length;++zn<Kt;){var S=ne[zn],L=ut?ut(ge[S],W[S],S,ge,W):void 0;L===void 0&&(L=W[S]),dn?al(ge,S,L):Hu(ge,S,L)}return ge}function Br(W){return Ss(function(ne,ge){var ut=-1,dn=ge.length,zn=dn>1?ge[dn-1]:void 0,Kt=dn>2?ge[2]:void 0;for(zn=W.length>3&&typeof zn=="function"?(dn--,zn):void 0,Kt&&Yl(ge[0],ge[1],Kt)&&(zn=dn<3?void 0:zn,dn=1),ne=Object(ne);++ut<dn;){var S=ge[ut];S&&W(ne,S,ut,zn)}return ne})}function Wi(W){return function(ne,ge,ut){for(var dn=-1,zn=Object(ne),Kt=ut(ne),S=Kt.length;S--;){var L=Kt[W?S:++dn];if(ge(zn[L],L,zn)===!1)break}return ne}}function Ti(W,ne){var ge=W.__data__;return Ri(ne)?ge[typeof ne=="string"?"string":"hash"]:ge.map}function Gi(W,ne){var ge=Ct(W,ne);return _i(ge)?ge:void 0}function ws(W){var ne=bn.call(W,Tn),ge=W[Tn];try{W[Tn]=void 0;var ut=!0}catch{}var dn=et.call(W);return ut&&(ne?W[Tn]=ge:delete W[Tn]),dn}function qo(W){return typeof W.constructor=="function"&&!Yi(W)?Ni(lt(W)):{}}function Ns(W,ne){var ge=typeof W;return ne=ne??u,!!ne&&(ge=="number"||ge!="symbol"&&Le.test(W))&&W>-1&&W%1==0&&W<ne}function Yl(W,ne,ge){if(!mr(ge))return!1;var ut=typeof ne;return(ut=="number"?bo(ge)&&Ns(ne,ge.length):ut=="string"&&ne in ge)?Sr(ge[ne],W):!1}function Ri(W){var ne=typeof W;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?W!=="__proto__":W===null}function Zo(W){return!!Ye&&Ye in W}function Yi(W){var ne=W&&W.constructor,ge=typeof ne=="function"&&ne.prototype||_t;return W===ge}function Ra(W){var ne=[];if(W!=null)for(var ge in Object(W))ne.push(ge);return ne}function ll(W){return et.call(W)}function fn(W,ne,ge){return ne=Mn(ne===void 0?W.length-1:ne,0),function(){for(var ut=arguments,dn=-1,zn=Mn(ut.length-ne,0),Kt=Array(zn);++dn<zn;)Kt[dn]=ut[ne+dn];dn=-1;for(var S=Array(ne+1);++dn<ne;)S[dn]=ut[dn];return S[ne]=ge(Kt),jt(W,this,S)}}function Aa(W,ne){if(!(ne==="constructor"&&typeof W[ne]=="function")&&ne!="__proto__")return W[ne]}var Ko=Ht(Go);function Ht(W){var ne=0,ge=0;return function(){var ut=wi(),dn=s-(ut-ge);if(ge=ut,dn>0){if(++ne>=o)return arguments[0]}else ne=0;return W.apply(void 0,arguments)}}function ul(W){if(W!=null){try{return kn.call(W)}catch{}try{return W+""}catch{}}return""}function Sr(W,ne){return W===ne||W!==W&&ne!==ne}var Xa=Ka(function(){return arguments}())?Ka:function(W){return li(W)&&bn.call(W,"callee")&&!vn.call(W,"callee")},na=Array.isArray;function bo(W){return W!=null&&Jr(W.length)&&!Xo(W)}function Or(W){return li(W)&&bo(W)}var ar=Dr||qi;function Xo(W){if(!mr(W))return!1;var ne=en(W);return ne==w||ne==T||ne==v||ne==P}function Jr(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=u}function mr(W){var ne=typeof W;return W!=null&&(ne=="object"||ne=="function")}function li(W){return W!=null&&typeof W=="object"}function Wu(W){if(!li(W)||en(W)!=D)return!1;var ne=lt(W);if(ne===null)return!0;var ge=bn.call(ne,"constructor")&&ne.constructor;return typeof ge=="function"&&ge instanceof ge&&kn.call(ge)==nn}var yo=He?tt(He):Ho;function Oa(W){return Ta(W,cl(W))}function cl(W){return bo(W)?Ei(W,!0):ys(W)}var gn=Br(function(W,ne,ge,ut){Wo(W,ne,ge,ut)});function Fn(W){return function(){return W}}function ql(W){return W}function qi(){return!1}e.exports=gn})(U7,U7.exports);const md=U7.exports;function Au(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vv(e,...t){return mY(e)?e(...t):e}var mY=e=>typeof e=="function",hY=e=>/!(important)?$/.test(e),JO=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,j7=(e,t)=>n=>{const i=String(t),o=hY(i),s=JO(i),u=e?`${e}.${s}`:s;let p=Au(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return p=JO(p),o?`${p} !important`:p};function Xg(e){const{scale:t,transform:n,compose:i}=e;return(s,u)=>{const p=j7(t,s)(u);let m=n?.(p,u)??p;return i&&(m=i(m,u)),m}}var r5=(...e)=>t=>e.reduce((n,i)=>i(n),t);function Il(e,t){return n=>{const i={property:n,scale:e};return i.transform=Xg({scale:e,transform:t}),i}}var vY=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function gY(e){const{property:t,scale:n,transform:i}=e;return{scale:n,property:vY(t),transform:n?Xg({scale:n,compose:i}):i}}var XP=["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 bY(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...XP].join(" ")}function yY(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...XP].join(" ")}var xY={"--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(" ")},SY={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 CY(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 wY={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},QP="& > :not(style) ~ :not(style)",NY={[QP]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},EY={[QP]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},V7={"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"},_Y=new Set(Object.values(V7)),JP=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),TY=e=>e.trim();function RY(e,t){var n;if(e==null||JP.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:s}=((n=i.exec(e))==null?void 0:n.groups)??{};if(!o||!s)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[p,...m]=s.split(",").map(TY).filter(Boolean);if(m?.length===0)return e;const v=p in V7?V7[p]:p;m.unshift(v);const g=m.map(b=>{if(_Y.has(b))return b;const C=b.indexOf(" "),[w,T]=C!==-1?[b.substr(0,C),b.substr(C+1)]:[b],A=eI(T)?T:T&&T.split(" "),k=`colors.${w}`,I=k in t.__cssMap?t.__cssMap[k].varRef:w;return A?[I,...Array.isArray(A)?A:[A]].join(" "):I});return`${u}(${g.join(", ")})`}var eI=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),AY=(e,t)=>RY(e,t??{});function OY(e){return/^var\(--.+\)$/.test(e)}var LY=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},gu=e=>t=>`${e}(${t})`,Kn={filter(e){return e!=="auto"?e:xY},backdropFilter(e){return e!=="auto"?e:SY},ring(e){return CY(Kn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?bY():e==="auto-gpu"?yY():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=LY(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(OY(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:AY,blur:gu("blur"),opacity:gu("opacity"),brightness:gu("brightness"),contrast:gu("contrast"),dropShadow:gu("drop-shadow"),grayscale:gu("grayscale"),hueRotate:gu("hue-rotate"),invert:gu("invert"),saturate:gu("saturate"),sepia:gu("sepia"),bgImage(e){return e==null||eI(e)||JP.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}=wY[e]??{},i={flexDirection:e};return t&&(i[t]=1),n&&(i[n]=1),i}},ue={borderWidths:Il("borderWidths"),borderStyles:Il("borderStyles"),colors:Il("colors"),borders:Il("borders"),radii:Il("radii",Kn.px),space:Il("space",r5(Kn.vh,Kn.px)),spaceT:Il("space",r5(Kn.vh,Kn.px)),degreeT(e){return{property:e,transform:Kn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Xg({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Il("sizes",r5(Kn.vh,Kn.px)),sizesT:Il("sizes",r5(Kn.vh,Kn.fraction)),shadows:Il("shadows"),logical:gY,blur:Il("blur",Kn.blur)},z5={background:ue.colors("background"),backgroundColor:ue.colors("backgroundColor"),backgroundImage:ue.propT("backgroundImage",Kn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Kn.bgClip},bgSize:ue.prop("backgroundSize"),bgPosition:ue.prop("backgroundPosition"),bg:ue.colors("background"),bgColor:ue.colors("backgroundColor"),bgPos:ue.prop("backgroundPosition"),bgRepeat:ue.prop("backgroundRepeat"),bgAttachment:ue.prop("backgroundAttachment"),bgGradient:ue.propT("backgroundImage",Kn.gradient),bgClip:{transform:Kn.bgClip}};Object.assign(z5,{bgImage:z5.backgroundImage,bgImg:z5.backgroundImage});var nr={border:ue.borders("border"),borderWidth:ue.borderWidths("borderWidth"),borderStyle:ue.borderStyles("borderStyle"),borderColor:ue.colors("borderColor"),borderRadius:ue.radii("borderRadius"),borderTop:ue.borders("borderTop"),borderBlockStart:ue.borders("borderBlockStart"),borderTopLeftRadius:ue.radii("borderTopLeftRadius"),borderStartStartRadius:ue.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ue.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ue.radii("borderTopRightRadius"),borderStartEndRadius:ue.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ue.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ue.borders("borderRight"),borderInlineEnd:ue.borders("borderInlineEnd"),borderBottom:ue.borders("borderBottom"),borderBlockEnd:ue.borders("borderBlockEnd"),borderBottomLeftRadius:ue.radii("borderBottomLeftRadius"),borderBottomRightRadius:ue.radii("borderBottomRightRadius"),borderLeft:ue.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ue.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ue.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ue.borders(["borderLeft","borderRight"]),borderInline:ue.borders("borderInline"),borderY:ue.borders(["borderTop","borderBottom"]),borderBlock:ue.borders("borderBlock"),borderTopWidth:ue.borderWidths("borderTopWidth"),borderBlockStartWidth:ue.borderWidths("borderBlockStartWidth"),borderTopColor:ue.colors("borderTopColor"),borderBlockStartColor:ue.colors("borderBlockStartColor"),borderTopStyle:ue.borderStyles("borderTopStyle"),borderBlockStartStyle:ue.borderStyles("borderBlockStartStyle"),borderBottomWidth:ue.borderWidths("borderBottomWidth"),borderBlockEndWidth:ue.borderWidths("borderBlockEndWidth"),borderBottomColor:ue.colors("borderBottomColor"),borderBlockEndColor:ue.colors("borderBlockEndColor"),borderBottomStyle:ue.borderStyles("borderBottomStyle"),borderBlockEndStyle:ue.borderStyles("borderBlockEndStyle"),borderLeftWidth:ue.borderWidths("borderLeftWidth"),borderInlineStartWidth:ue.borderWidths("borderInlineStartWidth"),borderLeftColor:ue.colors("borderLeftColor"),borderInlineStartColor:ue.colors("borderInlineStartColor"),borderLeftStyle:ue.borderStyles("borderLeftStyle"),borderInlineStartStyle:ue.borderStyles("borderInlineStartStyle"),borderRightWidth:ue.borderWidths("borderRightWidth"),borderInlineEndWidth:ue.borderWidths("borderInlineEndWidth"),borderRightColor:ue.colors("borderRightColor"),borderInlineEndColor:ue.colors("borderInlineEndColor"),borderRightStyle:ue.borderStyles("borderRightStyle"),borderInlineEndStyle:ue.borderStyles("borderInlineEndStyle"),borderTopRadius:ue.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ue.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ue.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ue.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 kY={color:ue.colors("color"),textColor:ue.colors("color"),fill:ue.colors("fill"),stroke:ue.colors("stroke")},H7={boxShadow:ue.shadows("boxShadow"),mixBlendMode:!0,blendMode:ue.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ue.prop("backgroundBlendMode"),opacity:!0};Object.assign(H7,{shadow:H7.boxShadow});var MY={filter:{transform:Kn.filter},blur:ue.blur("--chakra-blur"),brightness:ue.propT("--chakra-brightness",Kn.brightness),contrast:ue.propT("--chakra-contrast",Kn.contrast),hueRotate:ue.degreeT("--chakra-hue-rotate"),invert:ue.propT("--chakra-invert",Kn.invert),saturate:ue.propT("--chakra-saturate",Kn.saturate),dropShadow:ue.propT("--chakra-drop-shadow",Kn.dropShadow),backdropFilter:{transform:Kn.backdropFilter},backdropBlur:ue.blur("--chakra-backdrop-blur"),backdropBrightness:ue.propT("--chakra-backdrop-brightness",Kn.brightness),backdropContrast:ue.propT("--chakra-backdrop-contrast",Kn.contrast),backdropHueRotate:ue.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ue.propT("--chakra-backdrop-invert",Kn.invert),backdropSaturate:ue.propT("--chakra-backdrop-saturate",Kn.saturate)},fS={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Kn.flexDirection},experimental_spaceX:{static:NY,transform:Xg({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:EY,transform:Xg({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ue.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ue.space("gap"),rowGap:ue.space("rowGap"),columnGap:ue.space("columnGap")};Object.assign(fS,{flexDir:fS.flexDirection});var tI={gridGap:ue.space("gridGap"),gridColumnGap:ue.space("gridColumnGap"),gridRowGap:ue.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},DY={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Kn.outline},outlineOffset:!0,outlineColor:ue.colors("outlineColor")},Ks={width:ue.sizesT("width"),inlineSize:ue.sizesT("inlineSize"),height:ue.sizes("height"),blockSize:ue.sizes("blockSize"),boxSize:ue.sizes(["width","height"]),minWidth:ue.sizes("minWidth"),minInlineSize:ue.sizes("minInlineSize"),minHeight:ue.sizes("minHeight"),minBlockSize:ue.sizes("minBlockSize"),maxWidth:ue.sizes("maxWidth"),maxInlineSize:ue.sizes("maxInlineSize"),maxHeight:ue.sizes("maxHeight"),maxBlockSize:ue.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ue.propT("float",Kn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ks,{w:Ks.width,h:Ks.height,minW:Ks.minWidth,maxW:Ks.maxWidth,minH:Ks.minHeight,maxH:Ks.maxHeight,overscroll:Ks.overscrollBehavior,overscrollX:Ks.overscrollBehaviorX,overscrollY:Ks.overscrollBehaviorY});var PY={listStyleType:!0,listStylePosition:!0,listStylePos:ue.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ue.prop("listStyleImage")};function IY(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 $Y=e=>{const t=new WeakMap;return(i,o,s,u)=>{if(typeof i>"u")return e(i,o,s);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const m=e(i,o,s,u);return p.set(o,m),m}},FY=$Y(IY),zY={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},BY={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},x6=(e,t,n)=>{const i={},o=FY(e,t,{});for(const s in o)s in n&&n[s]!=null||(i[s]=o[s]);return i},UY={srOnly:{transform(e){return e===!0?zY:e==="focusable"?BY:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>x6(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>x6(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>x6(t,e,n)}},Pg={position:!0,pos:ue.prop("position"),zIndex:ue.prop("zIndex","zIndices"),inset:ue.spaceT("inset"),insetX:ue.spaceT(["left","right"]),insetInline:ue.spaceT("insetInline"),insetY:ue.spaceT(["top","bottom"]),insetBlock:ue.spaceT("insetBlock"),top:ue.spaceT("top"),insetBlockStart:ue.spaceT("insetBlockStart"),bottom:ue.spaceT("bottom"),insetBlockEnd:ue.spaceT("insetBlockEnd"),left:ue.spaceT("left"),insetInlineStart:ue.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ue.spaceT("right"),insetInlineEnd:ue.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Pg,{insetStart:Pg.insetInlineStart,insetEnd:Pg.insetInlineEnd});var jY={ring:{transform:Kn.ring},ringColor:ue.colors("--chakra-ring-color"),ringOffset:ue.prop("--chakra-ring-offset-width"),ringOffsetColor:ue.colors("--chakra-ring-offset-color"),ringInset:ue.prop("--chakra-ring-inset")},Mr={margin:ue.spaceT("margin"),marginTop:ue.spaceT("marginTop"),marginBlockStart:ue.spaceT("marginBlockStart"),marginRight:ue.spaceT("marginRight"),marginInlineEnd:ue.spaceT("marginInlineEnd"),marginBottom:ue.spaceT("marginBottom"),marginBlockEnd:ue.spaceT("marginBlockEnd"),marginLeft:ue.spaceT("marginLeft"),marginInlineStart:ue.spaceT("marginInlineStart"),marginX:ue.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ue.spaceT("marginInline"),marginY:ue.spaceT(["marginTop","marginBottom"]),marginBlock:ue.spaceT("marginBlock"),padding:ue.space("padding"),paddingTop:ue.space("paddingTop"),paddingBlockStart:ue.space("paddingBlockStart"),paddingRight:ue.space("paddingRight"),paddingBottom:ue.space("paddingBottom"),paddingBlockEnd:ue.space("paddingBlockEnd"),paddingLeft:ue.space("paddingLeft"),paddingInlineStart:ue.space("paddingInlineStart"),paddingInlineEnd:ue.space("paddingInlineEnd"),paddingX:ue.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ue.space("paddingInline"),paddingY:ue.space(["paddingTop","paddingBottom"]),paddingBlock:ue.space("paddingBlock")};Object.assign(Mr,{m:Mr.margin,mt:Mr.marginTop,mr:Mr.marginRight,me:Mr.marginInlineEnd,marginEnd:Mr.marginInlineEnd,mb:Mr.marginBottom,ml:Mr.marginLeft,ms:Mr.marginInlineStart,marginStart:Mr.marginInlineStart,mx:Mr.marginX,my:Mr.marginY,p:Mr.padding,pt:Mr.paddingTop,py:Mr.paddingY,px:Mr.paddingX,pb:Mr.paddingBottom,pl:Mr.paddingLeft,ps:Mr.paddingInlineStart,paddingStart:Mr.paddingInlineStart,pr:Mr.paddingRight,pe:Mr.paddingInlineEnd,paddingEnd:Mr.paddingInlineEnd});var VY={textDecorationColor:ue.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ue.shadows("textShadow")},HY={clipPath:!0,transform:ue.propT("transform",Kn.transform),transformOrigin:!0,translateX:ue.spaceT("--chakra-translate-x"),translateY:ue.spaceT("--chakra-translate-y"),skewX:ue.degreeT("--chakra-skew-x"),skewY:ue.degreeT("--chakra-skew-y"),scaleX:ue.prop("--chakra-scale-x"),scaleY:ue.prop("--chakra-scale-y"),scale:ue.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ue.degreeT("--chakra-rotate")},WY={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ue.prop("transitionDuration","transition.duration"),transitionProperty:ue.prop("transitionProperty","transition.property"),transitionTimingFunction:ue.prop("transitionTimingFunction","transition.easing")},GY={fontFamily:ue.prop("fontFamily","fonts"),fontSize:ue.prop("fontSize","fontSizes",Kn.px),fontWeight:ue.prop("fontWeight","fontWeights"),lineHeight:ue.prop("lineHeight","lineHeights"),letterSpacing:ue.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"}},YY={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ue.spaceT("scrollMargin"),scrollMarginTop:ue.spaceT("scrollMarginTop"),scrollMarginBottom:ue.spaceT("scrollMarginBottom"),scrollMarginLeft:ue.spaceT("scrollMarginLeft"),scrollMarginRight:ue.spaceT("scrollMarginRight"),scrollMarginX:ue.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ue.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ue.spaceT("scrollPadding"),scrollPaddingTop:ue.spaceT("scrollPaddingTop"),scrollPaddingBottom:ue.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ue.spaceT("scrollPaddingLeft"),scrollPaddingRight:ue.spaceT("scrollPaddingRight"),scrollPaddingX:ue.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ue.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function nI(e){return Au(e)&&e.reference?e.reference:String(e)}var n3=(e,...t)=>t.map(nI).join(` ${e} `).replace(/calc/g,""),eL=(...e)=>`calc(${n3("+",...e)})`,tL=(...e)=>`calc(${n3("-",...e)})`,W7=(...e)=>`calc(${n3("*",...e)})`,nL=(...e)=>`calc(${n3("/",...e)})`,rL=e=>{const t=nI(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:W7(t,-1)},rm=Object.assign(e=>({add:(...t)=>rm(eL(e,...t)),subtract:(...t)=>rm(tL(e,...t)),multiply:(...t)=>rm(W7(e,...t)),divide:(...t)=>rm(nL(e,...t)),negate:()=>rm(rL(e)),toString:()=>e.toString()}),{add:eL,subtract:tL,multiply:W7,divide:nL,negate:rL});function qY(e,t="-"){return e.replace(/\s+/g,t)}function ZY(e){const t=qY(e.toString());return XY(KY(t))}function KY(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function XY(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function QY(e,t=""){return[t,e].filter(Boolean).join("-")}function JY(e,t){return`var(${e}${t?`, ${t}`:""})`}function eq(e,t=""){return ZY(`--${QY(e,t)}`)}function Cd(e,t,n){const i=eq(e,n);return{variable:i,reference:JY(i,t)}}function tq(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function nq(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function rq(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function G7(e){if(e==null)return e;const{unitless:t}=rq(e);return t||typeof e=="number"?`${e}px`:e}var rI=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,F8=e=>Object.fromEntries(Object.entries(e).sort(rI));function iL(e){const t=F8(e);return Object.assign(Object.values(t),t)}function iq(e){const t=Object.keys(F8(e));return new Set(t)}function aL(e){if(!e)return e;e=G7(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 Ag(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${G7(e)})`),t&&n.push("and",`(max-width: ${G7(t)})`),n.join(" ")}function aq(e){if(!e)return null;e.base=e.base??"0px";const t=iL(e),n=Object.entries(e).sort(rI).map(([s,u],p,m)=>{let[,v]=m[p+1]??[];return v=parseFloat(v)>0?aL(v):void 0,{_minW:aL(u),breakpoint:s,minW:u,maxW:v,maxWQuery:Ag(null,v),minWQuery:Ag(u),minMaxQuery:Ag(u,v)}}),i=iq(e),o=Array.from(i.values());return{keys:i,normalized:t,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(p=>i.has(p))},asObject:F8(e),asArray:iL(e),details:n,media:[null,...t.map(s=>Ag(s)).slice(1)],toArrayValue(s){if(!tq(s))throw new Error("toArrayValue: value must be an object");const u=o.map(p=>s[p]??null);for(;nq(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,p,m)=>{const v=o[m];return v!=null&&p!=null&&(u[v]=p),u},{})}}}var ya={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}`},qf=e=>iI(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Rc=e=>iI(t=>e(t,"~ &"),"[data-peer]",".peer"),iI=(e,...t)=>t.map(e).join(", "),r3={_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:qf(ya.hover),_peerHover:Rc(ya.hover),_groupFocus:qf(ya.focus),_peerFocus:Rc(ya.focus),_groupFocusVisible:qf(ya.focusVisible),_peerFocusVisible:Rc(ya.focusVisible),_groupActive:qf(ya.active),_peerActive:Rc(ya.active),_groupDisabled:qf(ya.disabled),_peerDisabled:Rc(ya.disabled),_groupInvalid:qf(ya.invalid),_peerInvalid:Rc(ya.invalid),_groupChecked:qf(ya.checked),_peerChecked:Rc(ya.checked),_groupFocusWithin:qf(ya.focusWithin),_peerFocusWithin:Rc(ya.focusWithin),_peerPlaceholderShown:Rc(ya.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]"},oq=Object.keys(r3);function oL(e,t){return Cd(String(e).replace(/\./g,"-"),void 0,t)}function sq(e,t){let n={};const i={};for(const[o,s]of Object.entries(e)){const{isSemantic:u,value:p}=s,{variable:m,reference:v}=oL(o,t?.cssVarPrefix);if(!u){if(o.startsWith("space")){const C=o.split("."),[w,...T]=C,A=`${w}.-${T.join(".")}`,k=rm.negate(p),I=rm.negate(v);i[A]={value:k,var:m,varRef:I}}n[m]=p,i[o]={value:p,var:m,varRef:v};continue}const g=C=>{const T=[String(o).split(".")[0],C].join(".");if(!e[T])return C;const{reference:k}=oL(T,t?.cssVarPrefix);return k},b=Au(p)?p:{default:p};n=md(n,Object.entries(b).reduce((C,[w,T])=>{var A;const k=g(T);if(w==="default")return C[m]=k,C;const I=((A=r3)==null?void 0:A[w])??w;return C[I]={[m]:k},C},{})),i[o]={value:v,var:m,varRef:v}}return{cssVars:n,cssMap:i}}function lq(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function uq(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var cq=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function fq(e){return uq(e,cq)}function dq(e){return e.semanticTokens}function pq(e){const{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}function mq({tokens:e,semanticTokens:t}){const n=Object.entries(Y7(e)??{}).map(([o,s])=>[o,{isSemantic:!1,value:s}]),i=Object.entries(Y7(t,1)??{}).map(([o,s])=>[o,{isSemantic:!0,value:s}]);return Object.fromEntries([...n,...i])}function Y7(e,t=1/0){return!Au(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[i,o])=>(Au(o)||Array.isArray(o)?Object.entries(Y7(o,t-1)).forEach(([s,u])=>{n[`${i}.${s}`]=u}):n[i]=o,n),{})}function hq(e){var t;const n=pq(e),i=fq(n),o=dq(n),s=mq({tokens:i,semanticTokens:o}),u=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:p,cssVars:m}=sq(s,{cssVarPrefix:u});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"},...m},__cssMap:p,__breakpoints:aq(n.breakpoints)}),n}var z8=md({},z5,nr,kY,fS,Ks,MY,jY,DY,tI,UY,Pg,H7,Mr,YY,GY,VY,HY,PY,WY),vq=Object.assign({},Mr,Ks,fS,tI,Pg),gq=Object.keys(vq),bq=[...Object.keys(z8),...oq],yq={...z8,...r3},xq=e=>e in yq;function Sq(e){return/^var\(--.+\)$/.test(e)}var Cq=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Sq(t),wq=(e,t)=>{if(t==null)return t;const n=p=>{var m,v;return(v=(m=e.__cssMap)==null?void 0:m[p])==null?void 0:v.varRef},i=p=>n(p)??p,o=t.split(",").map(p=>p.trim()),[s,u]=o;return t=n(s)??i(u)??i(t),t};function Nq(e){const{configs:t={},pseudos:n={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:s,media:u}=i.__breakpoints,p=(m,v=!1)=>{var g;const b=vv(m,i);let C={};for(let w in b){let T=vv(b[w],i);if(T==null)continue;if(Array.isArray(T)||Au(T)&&o(T)){let D=Array.isArray(T)?T:s(T);D=D.slice(0,u.length);for(let P=0;P<D.length;P++){const F=u[P],z=D[P];F?z==null?C[F]??(C[F]={}):C[F]=Object.assign({},C[F],p({[w]:z},!0)):C=Object.assign({},C,p({...b,[w]:z},!1))}continue}if(w in n&&(w=n[w]),Cq(w,T)&&(T=wq(i,T)),Au(T)){C[w]=Object.assign({},C[w],p(T,!0));continue}let A=t[w];if(A===!0&&(A={property:w}),!v&&A?.static){const D=vv(A.static,i);C=Object.assign({},C,D)}let k=((g=A?.transform)==null?void 0:g.call(A,T,i,b))??T;if(k=A?.processResult?p(k,!0):k,Au(k)){C=Object.assign({},C,k);continue}const I=vv(A?.property,i);if(I){if(Array.isArray(I)){for(const D of I)C[D]=k;continue}I==="&"&&Au(k)?C=Object.assign({},C,k):C[I]=k;continue}C[w]=k}return C};return p}var aI=e=>t=>Nq({theme:t,pseudos:r3,configs:z8})(e);function zr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Eq(e,t){if(Array.isArray(e))return e;if(Au(e))return t(e);if(e!=null)return[e]}function _q(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function Tq(e){const t=e.__breakpoints;return function(i,o,s,u){var p,m;if(!t)return;const v={},g=Eq(s,t.toArrayValue);if(!g)return v;const b=g.length,C=b===1,w=!!i.parts;for(let T=0;T<b;T++){const A=t.details[T],k=t.details[_q(g,T)],I=Ag(A.minW,k?._minW),D=vv((p=i[o])==null?void 0:p[g[T]],u);if(!!D){if(w){(m=i.parts)==null||m.forEach(P=>{md(v,{[P]:C?D[P]:{[I]:D[P]}})});continue}if(!w){C?md(v,D):v[I]=D;continue}v[I]=D}}return v}}function Rq(e){return t=>{const{variant:n,size:i,theme:o}=t,s=Tq(o);return md({},vv(e.baseStyle??{},t),s(e,"sizes",i,t),s(e,"variants",n,t))}}function Aq(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 lq(e,["styleConfig","size","variant","colorScheme"])}function Oq(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 Lq(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 kq=function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),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(Lq(this));var o=this.tags[this.tags.length-1];{var s=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var u=Oq(o);try{u.insertRule(i,u.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}(),Ha="-ms-",dS="-moz-",rr="-webkit-",B8="comm",U8="rule",j8="decl",Mq="@import",oI="@keyframes",Dq=Math.abs,i3=String.fromCharCode,Pq=Object.assign;function Iq(e,t){return(((t<<2^Mo(e,0))<<2^Mo(e,1))<<2^Mo(e,2))<<2^Mo(e,3)}function sI(e){return e.trim()}function $q(e,t){return(e=t.exec(e))?e[0]:e}function lr(e,t,n){return e.replace(t,n)}function q7(e,t){return e.indexOf(t)}function Mo(e,t){return e.charCodeAt(t)|0}function Qg(e,t,n){return e.slice(t,n)}function Eu(e){return e.length}function V8(e){return e.length}function i5(e,t){return t.push(e),e}function Fq(e,t){return e.map(t).join("")}var a3=1,Mv=1,lI=0,Fo=0,xi=0,Wv="";function o3(e,t,n,i,o,s,u){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:a3,column:Mv,length:u,return:""}}function vg(e,t){return Pq(o3("",null,null,"",null,null,0),e,{length:-e.length},t)}function zq(){return xi}function Bq(){return xi=Fo>0?Mo(Wv,--Fo):0,Mv--,xi===10&&(Mv=1,a3--),xi}function ds(){return xi=Fo<lI?Mo(Wv,Fo++):0,Mv++,xi===10&&(Mv=1,a3++),xi}function Lu(){return Mo(Wv,Fo)}function B5(){return Fo}function wb(e,t){return Qg(Wv,e,t)}function Jg(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 uI(e){return a3=Mv=1,lI=Eu(Wv=e),Fo=0,[]}function cI(e){return Wv="",e}function U5(e){return sI(wb(Fo-1,Z7(e===91?e+2:e===40?e+1:e)))}function Uq(e){for(;(xi=Lu())&&xi<33;)ds();return Jg(e)>2||Jg(xi)>3?"":" "}function jq(e,t){for(;--t&&ds()&&!(xi<48||xi>102||xi>57&&xi<65||xi>70&&xi<97););return wb(e,B5()+(t<6&&Lu()==32&&ds()==32))}function Z7(e){for(;ds();)switch(xi){case e:return Fo;case 34:case 39:e!==34&&e!==39&&Z7(xi);break;case 40:e===41&&Z7(e);break;case 92:ds();break}return Fo}function Vq(e,t){for(;ds()&&e+xi!==47+10;)if(e+xi===42+42&&Lu()===47)break;return"/*"+wb(t,Fo-1)+"*"+i3(e===47?e:ds())}function Hq(e){for(;!Jg(Lu());)ds();return wb(e,Fo)}function Wq(e){return cI(j5("",null,null,null,[""],e=uI(e),0,[0],e))}function j5(e,t,n,i,o,s,u,p,m){for(var v=0,g=0,b=u,C=0,w=0,T=0,A=1,k=1,I=1,D=0,P="",F=o,z=s,q=i,Y=P;k;)switch(T=D,D=ds()){case 40:if(T!=108&&Y.charCodeAt(b-1)==58){q7(Y+=lr(U5(D),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:Y+=U5(D);break;case 9:case 10:case 13:case 32:Y+=Uq(T);break;case 92:Y+=jq(B5()-1,7);continue;case 47:switch(Lu()){case 42:case 47:i5(Gq(Vq(ds(),B5()),t,n),m);break;default:Y+="/"}break;case 123*A:p[v++]=Eu(Y)*I;case 125*A:case 59:case 0:switch(D){case 0:case 125:k=0;case 59+g:w>0&&Eu(Y)-b&&i5(w>32?lL(Y+";",i,n,b-1):lL(lr(Y," ","")+";",i,n,b-2),m);break;case 59:Y+=";";default:if(i5(q=sL(Y,t,n,v,g,o,p,P,F=[],z=[],b),s),D===123)if(g===0)j5(Y,t,q,q,F,s,b,p,z);else switch(C){case 100:case 109:case 115:j5(e,q,q,i&&i5(sL(e,q,q,0,0,o,p,P,o,F=[],b),z),o,z,b,p,i?F:z);break;default:j5(Y,q,q,q,[""],z,0,p,z)}}v=g=w=0,A=I=1,P=Y="",b=u;break;case 58:b=1+Eu(Y),w=T;default:if(A<1){if(D==123)--A;else if(D==125&&A++==0&&Bq()==125)continue}switch(Y+=i3(D),D*A){case 38:I=g>0?1:(Y+="\f",-1);break;case 44:p[v++]=(Eu(Y)-1)*I,I=1;break;case 64:Lu()===45&&(Y+=U5(ds())),C=Lu(),g=b=Eu(P=Y+=Hq(B5())),D++;break;case 45:T===45&&Eu(Y)==2&&(A=0)}}return s}function sL(e,t,n,i,o,s,u,p,m,v,g){for(var b=o-1,C=o===0?s:[""],w=V8(C),T=0,A=0,k=0;T<i;++T)for(var I=0,D=Qg(e,b+1,b=Dq(A=u[T])),P=e;I<w;++I)(P=sI(A>0?C[I]+" "+D:lr(D,/&\f/g,C[I])))&&(m[k++]=P);return o3(e,t,n,o===0?U8:p,m,v,g)}function Gq(e,t,n){return o3(e,t,n,B8,i3(zq()),Qg(e,2,-2),0)}function lL(e,t,n,i){return o3(e,t,n,j8,Qg(e,0,i),Qg(e,i+1,-1),i)}function fI(e,t){switch(Iq(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+dS+e+Ha+e+e;case 6828:case 4268:return rr+e+Ha+e+e;case 6165:return rr+e+Ha+"flex-"+e+e;case 5187:return rr+e+lr(e,/(\w+).+(:[^]+)/,rr+"box-$1$2"+Ha+"flex-$1$2")+e;case 5443:return rr+e+Ha+"flex-item-"+lr(e,/flex-|-self/,"")+e;case 4675:return rr+e+Ha+"flex-line-pack"+lr(e,/align-content|flex-|-self/,"")+e;case 5548:return rr+e+Ha+lr(e,"shrink","negative")+e;case 5292:return rr+e+Ha+lr(e,"basis","preferred-size")+e;case 6060:return rr+"box-"+lr(e,"-grow","")+rr+e+Ha+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"+Ha+"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(Eu(e)-1-t>6)switch(Mo(e,t+1)){case 109:if(Mo(e,t+4)!==45)break;case 102:return lr(e,/(.+:)(.+)-([^]+)/,"$1"+rr+"$2-$3$1"+dS+(Mo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~q7(e,"stretch")?fI(lr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mo(e,t+1)!==115)break;case 6444:switch(Mo(e,Eu(e)-3-(~q7(e,"!important")&&10))){case 107:return lr(e,":",":"+rr)+e;case 101:return lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rr+(Mo(e,14)===45?"inline-":"")+"box$3$1"+rr+"$2$3$1"+Ha+"$2box$3")+e}break;case 5936:switch(Mo(e,t+11)){case 114:return rr+e+Ha+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rr+e+Ha+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rr+e+Ha+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rr+e+Ha+e+e}return e}function wv(e,t){for(var n="",i=V8(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function Yq(e,t,n,i){switch(e.type){case Mq:case j8:return e.return=e.return||e.value;case B8:return"";case oI:return e.return=e.value+"{"+wv(e.children,i)+"}";case U8:e.value=e.props.join(",")}return Eu(n=wv(e.children,i))?e.return=e.value+"{"+n+"}":""}function qq(e){var t=V8(e);return function(n,i,o,s){for(var u="",p=0;p<t;p++)u+=e[p](n,i,o,s)||"";return u}}function Zq(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case j8:e.return=fI(e.value,e.length);break;case oI:return wv([vg(e,{value:lr(e.value,"@","@"+rr)})],i);case U8:if(e.length)return Fq(e.props,function(o){switch($q(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return wv([vg(e,{props:[lr(o,/:(read-\w+)/,":"+dS+"$1")]})],i);case"::placeholder":return wv([vg(e,{props:[lr(o,/:(plac\w+)/,":"+rr+"input-$1")]}),vg(e,{props:[lr(o,/:(plac\w+)/,":"+dS+"$1")]}),vg(e,{props:[lr(o,/:(plac\w+)/,Ha+"input-$1")]})],i)}return""})}}var uL=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 dI(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kq=function(t,n,i){for(var o=0,s=0;o=s,s=Lu(),o===38&&s===12&&(n[i]=1),!Jg(s);)ds();return wb(t,Fo)},Xq=function(t,n){var i=-1,o=44;do switch(Jg(o)){case 0:o===38&&Lu()===12&&(n[i]=1),t[i]+=Kq(Fo-1,n,i);break;case 2:t[i]+=U5(o);break;case 4:if(o===44){t[++i]=Lu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=i3(o)}while(o=ds());return t},Qq=function(t,n){return cI(Xq(uI(t),n))},cL=new WeakMap,Jq=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&&!cL.get(i))&&!o){cL.set(t,!0);for(var s=[],u=Qq(n,s),p=i.props,m=0,v=0;m<u.length;m++)for(var g=0;g<p.length;g++,v++)t.props[v]=s[m]?u[m].replace(/&\f/g,p[g]):p[g]+" "+u[m]}}},eZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},tZ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",nZ=function(t){return t.type==="comm"&&t.children.indexOf(tZ)>-1},rZ=function(t){return function(n,i,o){if(!(n.type!=="rule"||t.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var u=n.parent===o[0],p=u?o[0].children:o,m=p.length-1;m>=0;m--){var v=p[m];if(v.line<n.line)break;if(v.column<n.column){if(nZ(v))return;break}}s.forEach(function(g){console.error('The pseudo class "'+g+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+g.split("-child")[0]+'-of-type".')})}}}},pI=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},iZ=function(t,n){for(var i=t-1;i>=0;i--)if(!pI(n[i]))return!0;return!1},fL=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},aZ=function(t,n,i){!pI(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."),fL(t)):iZ(n,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),fL(t)))},oZ=[Zq],sZ=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 k=A.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(A),A.setAttribute("data-s",""))})}var o=t.stylisPlugins||oZ;if(/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var s={},u,p=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(A){for(var k=A.getAttribute("data-emotion").split(" "),I=1;I<k.length;I++)s[k[I]]=!0;p.push(A)});var m,v=[Jq,eZ];v.push(rZ({get compat(){return T.compat}}),aZ);{var g,b=[Yq,function(A){A.root||(A.return?g.insert(A.return):A.value&&A.type!==B8&&g.insert(A.value+"{}"))}],C=qq(v.concat(o,b)),w=function(k){return wv(Wq(k),C)};m=function(k,I,D,P){g=D,I.map!==void 0&&(g={insert:function(z){D.insert(z+I.map)}}),w(k?k+"{"+I.styles+"}":I.styles),P&&(T.inserted[I.name]=!0)}}var T={key:n,sheet:new kq({key:n,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:m};return T.sheet.hydrate(p),T};function K7(){return K7=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},K7.apply(this,arguments)}var s3={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,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function P(He){return typeof He=="string"||typeof He=="function"||He===i||He===v||He===s||He===o||He===b||He===C||typeof He=="object"&&He!==null&&(He.$$typeof===T||He.$$typeof===w||He.$$typeof===u||He.$$typeof===p||He.$$typeof===g||He.$$typeof===k||He.$$typeof===I||He.$$typeof===D||He.$$typeof===A)}function F(He){if(typeof He=="object"&&He!==null){var jt=He.$$typeof;switch(jt){case t:var Se=He.type;switch(Se){case m:case v:case i:case s:case o:case b:return Se;default:var tt=Se&&Se.$$typeof;switch(tt){case p:case g:case T:case w:case u:return tt;default:return jt}}case n:return jt}}}var z=m,q=v,Y=p,Q=u,ie=t,ae=g,pe=i,$e=T,te=w,ee=n,be=s,Ce=o,K=b,le=!1;function ve(He){return le||(le=!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.")),de(He)||F(He)===m}function de(He){return F(He)===v}function we(He){return F(He)===p}function Le(He){return F(He)===u}function Me(He){return typeof He=="object"&&He!==null&&He.$$typeof===t}function Ze(He){return F(He)===g}function Je(He){return F(He)===i}function it(He){return F(He)===T}function Rt(He){return F(He)===w}function Ve(He){return F(He)===n}function at(He){return F(He)===s}function St(He){return F(He)===o}function Dt(He){return F(He)===b}cr.AsyncMode=z,cr.ConcurrentMode=q,cr.ContextConsumer=Y,cr.ContextProvider=Q,cr.Element=ie,cr.ForwardRef=ae,cr.Fragment=pe,cr.Lazy=$e,cr.Memo=te,cr.Portal=ee,cr.Profiler=be,cr.StrictMode=Ce,cr.Suspense=K,cr.isAsyncMode=ve,cr.isConcurrentMode=de,cr.isContextConsumer=we,cr.isContextProvider=Le,cr.isElement=Me,cr.isForwardRef=Ze,cr.isFragment=Je,cr.isLazy=it,cr.isMemo=Rt,cr.isPortal=Ve,cr.isProfiler=at,cr.isStrictMode=St,cr.isSuspense=Dt,cr.isValidElementType=P,cr.typeOf=F})();(function(e){e.exports=cr})(s3);var mI=s3.exports,lZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hI={};hI[mI.ForwardRef]=lZ;hI[mI.Memo]=uZ;var cZ=!0;function H8(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):i+=o+" "}),i}var l3=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||cZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},u3=function(t,n,i){l3(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function fZ(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 dZ={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},dL=`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`,pZ="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",mZ=/[A-Z]|^ms/g,vI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W8=function(t){return t.charCodeAt(1)===45},pL=function(t){return t!=null&&typeof t!="boolean"},S6=dI(function(e){return W8(e)?e:e.replace(mZ,"-$&").toLowerCase()}),pS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vI,function(i,o,s){return _u={name:o,styles:s,next:_u},o})}return dZ[t]!==1&&!W8(t)&&typeof n=="number"&&n!==0?n+"px":n};{var hZ=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vZ=["normal","none","initial","inherit","unset"],gZ=pS,bZ=/^-ms-/,yZ=/-(.)/g,mL={};pS=function(t,n){if(t==="content"&&(typeof n!="string"||vZ.indexOf(n)===-1&&!hZ.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=gZ(t,n);return i!==""&&!W8(t)&&t.indexOf("-")!==-1&&mL[t]===void 0&&(mL[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(bZ,"ms-").replace(yZ,function(o,s){return s.toUpperCase()})+"?")),i}}var gI="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function eb(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(gI);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return _u={name:n.name,styles:n.styles,next:_u},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)_u={name:i.name,styles:i.styles,next:_u},i=i.next;var o=n.styles+";";return n.map!==void 0&&(o+=n.map),o}return xZ(e,t,n)}case"function":{if(e!==void 0){var s=_u,u=n(e);return _u=s,eb(e,t,u)}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=[],m=n.replace(vI,function(g,b,C){var w="animation"+p.length;return p.push("const "+w+" = keyframes`"+C.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+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,["`"+m+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+m+"`"))}break}if(t==null)return n;var v=t[n];return v!==void 0?v:n}function xZ(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=eb(e,t,n[o])+";";else for(var s in n){var u=n[s];if(typeof u!="object")t!=null&&t[u]!==void 0?i+=s+"{"+t[u]+"}":pL(u)&&(i+=S6(s)+":"+pS(s,u)+";");else{if(s==="NO_COMPONENT_SELECTOR")throw new Error(gI);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var p=0;p<u.length;p++)pL(u[p])&&(i+=S6(s)+":"+pS(s,u[p])+";");else{var m=eb(e,t,u);switch(s){case"animation":case"animationName":{i+=S6(s)+":"+m+";";break}default:s==="undefined"&&console.error(pZ),i+=s+"{"+m+"}"}}}}return i}var hL=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bI;bI=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var _u,Dv=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,s="";_u=void 0;var u=t[0];u==null||u.raw===void 0?(o=!1,s+=eb(i,n,u)):(u[0]===void 0&&console.error(dL),s+=u[0]);for(var p=1;p<t.length;p++)s+=eb(i,n,t[p]),o&&(u[p]===void 0&&console.error(dL),s+=u[p]);var m;s=s.replace(bI,function(C){return m=C,""}),hL.lastIndex=0;for(var v="",g;(g=hL.exec(s))!==null;)v+="-"+g[1];var b=fZ(s)+v;return{name:b,styles:s,map:m,next:_u,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)."}}},SZ=function(t){return t()},yI=F7["useInsertionEffect"]?F7["useInsertionEffect"]:!1,G8=yI||SZ,vL=yI||E.exports.useLayoutEffect,CZ={}.hasOwnProperty,Y8=E.exports.createContext(typeof HTMLElement<"u"?sZ({key:"css"}):null);Y8.displayName="EmotionCacheContext";Y8.Provider;var c3=function(t){return E.exports.forwardRef(function(n,i){var o=E.exports.useContext(Y8);return t(n,o,i)})},hd=E.exports.createContext({});hd.displayName="EmotionThemeContext";var wZ=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 K7({},t,n)},NZ=uL(function(e){return uL(function(t){return wZ(e,t)})}),EZ=function(t){var n=E.exports.useContext(hd);return t.theme!==n&&(n=NZ(n)(t.theme)),E.exports.createElement(hd.Provider,{value:n},t.children)},gL="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bL="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",_Z=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return l3(n,i,o),G8(function(){return u3(n,i,o)}),null},TZ=c3(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[gL],s=[i],u="";typeof e.className=="string"?u=H8(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var p=Dv(s,void 0,E.exports.useContext(hd));if(p.name.indexOf("-")===-1){var m=e[bL];m&&(p=Dv([p,"label:"+m+";"]))}u+=t.key+"-"+p.name;var v={};for(var g in e)CZ.call(e,g)&&g!=="css"&&g!==gL&&g!==bL&&(v[g]=e[g]);return v.ref=n,v.className=u,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(_Z,{cache:t,serialized:p,isStringTag:typeof o=="string"}),E.exports.createElement(o,v))});TZ.displayName="EmotionCssPropInternal";var RZ={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"}}}},yL=!1,Nb=c3(function(e,t){!yL&&(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?"),yL=!0);var n=e.styles,i=Dv([n],void 0,E.exports.useContext(hd)),o=E.exports.useRef();return vL(function(){var s=t.key+"-global",u=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),p=!1,m=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),m!==null&&(p=!0,m.setAttribute("data-emotion",s),u.hydrate([m])),o.current=[u,p],function(){u.flush()}},[t]),vL(function(){var s=o.current,u=s[0],p=s[1];if(p){s[1]=!1;return}if(i.next!==void 0&&u3(t,i.next,!0),u.tags.length){var m=u.tags[u.tags.length-1].nextElementSibling;u.before=m,u.flush()}t.insert("",i,u,!1)},[t,i.name]),null});Nb.displayName="EmotionGlobal";function AZ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dv(t)}var Eb=function(){var t=AZ.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_"}}},OZ=function e(t){for(var n=t.length,i=0,o="";i<n;i++){var s=t[i];if(s!=null){var u=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))u=e(s);else{s.styles!==void 0&&s.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."),u="";for(var p in s)s[p]&&p&&(u&&(u+=" "),u+=p)}break}default:u=s}u&&(o&&(o+=" "),o+=u)}}return o};function LZ(e,t,n){var i=[],o=H8(e,i,n);return i.length<2?n:o+t(i)}var kZ=function(t){var n=t.cache,i=t.serializedArr;return G8(function(){for(var o=0;o<i.length;o++)u3(n,i[o],!1)}),null},MZ=c3(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,g=new Array(v),b=0;b<v;b++)g[b]=arguments[b];var C=Dv(g,t.registered);return i.push(C),l3(t,C,!1),t.key+"-"+C.name},s=function(){if(n)throw new Error("cx can only be used during render");for(var v=arguments.length,g=new Array(v),b=0;b<v;b++)g[b]=arguments[b];return LZ(t.registered,o,OZ(g))},u={css:o,cx:s,theme:E.exports.useContext(hd)},p=e.children(u);return n=!0,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(kZ,{cache:t,serializedArr:i}),p)});MZ.displayName="EmotionClassNames";{var xL=!0,DZ=typeof jest<"u";if(xL&&!DZ){var SL=typeof globalThis<"u"?globalThis:xL?window:global,CL="__EMOTION_REACT_"+RZ.version.split(".")[0]+"__";SL[CL]&&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."),SL[CL]=!0}}function gv(e){return typeof e=="function"}var PZ=!0;function xI(e){return"current"in e}function IZ(e,t){const n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}function $Z(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 FZ=e=>{const t=new WeakMap;return(i,o,s,u)=>{if(typeof i>"u")return e(i,o,s);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const m=e(i,o,s,u);return p.set(o,m),m}},SI=FZ($Z);function CI(e,t){const n={};return Object.keys(e).forEach(i=>{const o=e[i];t(o,i,e)&&(n[i]=o)}),n}var wI=e=>CI(e,t=>t!=null);function q8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function f3(e){if(!q8(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function zZ(e){var t;return q8(e)?((t=_b(e))==null?void 0:t.defaultView)??window:window}function _b(e){return q8(e)?e.ownerDocument??document:document}function BZ(e){return e.view??window}function UZ(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Tb=UZ();function jZ(e){const t=_b(e);return t?.activeElement}function Z8(e,t){return e?e===t||e.contains(t):!1}var NI=e=>e.hasAttribute("tabindex"),VZ=e=>NI(e)&&e.tabIndex===-1;function HZ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function WZ(e){return f3(e)&&e.localName==="input"&&"select"in e}function EI(e){return(f3(e)?_b(e):document).activeElement===e}function _I(e){return e.parentElement&&_I(e.parentElement)?!0:e.hidden}function GZ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function TI(e){if(!f3(e)||_I(e)||HZ(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]():GZ(e)?!0:NI(e)}function YZ(e){return e?f3(e)&&TI(e)&&!VZ(e):!1}var qZ=["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]"],ZZ=qZ.join(),KZ=e=>e.offsetWidth>0&&e.offsetHeight>0;function XZ(e){const t=Array.from(e.querySelectorAll(ZZ));return t.unshift(e),t.filter(n=>TI(n)&&KZ(n))}function mS(e,...t){return gv(e)?e(...t):e}function QZ(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function JZ(e){let t;return function(...i){return e&&(t=e.apply(this,i),e=null),t}}var eK=JZ(e=>()=>{const{condition:t,message:n}=e;t&&PZ&&console.warn(n)}),tK=(...e)=>t=>e.reduce((n,i)=>i(n),t);function hS(e,t={}){const{isActive:n=EI,nextTick:i,preventScroll:o=!0,selectTextIfInput:s=!0}=t;if(!e||n(e))return-1;function u(){if(!e){eK({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(nK())e.focus({preventScroll:o});else if(e.focus(),o){const p=rK(e);iK(p)}if(s){if(WZ(e))e.select();else if("setSelectionRange"in e){const p=e;p.setSelectionRange(p.value.length,p.value.length)}}}return i?requestAnimationFrame(u):(u(),-1)}var a5=null;function nK(){if(a5==null){a5=!1;try{document.createElement("div").focus({get preventScroll(){return a5=!0,!0}})}catch{}}return a5}function rK(e){const t=_b(e),n=t.defaultView??window;let i=e.parentNode;const o=[],s=t.scrollingElement||t.documentElement;for(;i instanceof n.HTMLElement&&i!==s;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return s instanceof n.HTMLElement&&o.push({element:s,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),o}function iK(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function aK(e){return!!e.touches}function oK(e){return t=>{const n=BZ(t),i=t instanceof n.MouseEvent;(!i||i&&t.button===0)&&e(t)}}var 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 cK(e,t="page"){return{point:aK(e)?lK(e,t):uK(e,t)}}var fK=(e,t=!1)=>{const n=i=>e(i,cK(i));return t?oK(n):n},dK=()=>Tb&&window.onpointerdown===null,pK=()=>Tb&&window.ontouchstart===null,mK=()=>Tb&&window.onmousedown===null,hK={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},vK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function gK(e){return dK()?e:pK()?vK[e]:mK()?hK[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function bK(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 yK(e){return Tb?bK(window.navigator)===e:!1}function xK(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=E.exports.createContext(void 0);o.displayName=i;function s(){var u;const p=E.exports.useContext(o);if(!p&&t){const m=new Error(n);throw m.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,m,s),m}return p}return[o.Provider,s,o]}function X7(){return X7=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},X7.apply(this,arguments)}var SK=/^((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)-.*))$/,CK=dI(function(e){return SK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wK=CK,NK=function(t){return t!=="theme"},wL=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wK:NK},NL=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(u){return t.__emotion_forwardProp(u)&&s(u)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},EL=`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`,EK=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return l3(n,i,o),G8(function(){return u3(n,i,o)}),null},_K=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,s,u;n!==void 0&&(s=n.label,u=n.target);var p=NL(t,n,i),m=p||wL(o),v=!m("as");return function(){var g=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)b.push.apply(b,g);else{g[0][0]===void 0&&console.error(EL),b.push(g[0][0]);for(var C=g.length,w=1;w<C;w++)g[0][w]===void 0&&console.error(EL),b.push(g[w],g[0][w])}var T=c3(function(A,k,I){var D=v&&A.as||o,P="",F=[],z=A;if(A.theme==null){z={};for(var q in A)z[q]=A[q];z.theme=E.exports.useContext(hd)}typeof A.className=="string"?P=H8(k.registered,F,A.className):A.className!=null&&(P=A.className+" ");var Y=Dv(b.concat(F),k.registered,z);P+=k.key+"-"+Y.name,u!==void 0&&(P+=" "+u);var Q=v&&p===void 0?wL(D):m,ie={};for(var ae in A)v&&ae==="as"||Q(ae)&&(ie[ae]=A[ae]);return ie.className=P,ie.ref=I,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(EK,{cache:k,serialized:Y,isStringTag:typeof D=="string"}),E.exports.createElement(D,ie))});return T.displayName=s!==void 0?s:"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=b,T.__emotion_forwardProp=p,Object.defineProperty(T,"toString",{value:function(){return u===void 0?"NO_COMPONENT_SELECTOR":"."+u}}),T.withComponent=function(A,k){return e(A,X7({},n,k,{shouldForwardProp:NL(T,k,!0)})).apply(void 0,b)},T}},TK=["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"],Q7=_K.bind();TK.forEach(function(e){Q7[e]=Q7(e)});var RK=typeof Element<"u",AK=typeof Map=="function",OK=typeof Set=="function",LK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function V5(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(!V5(e[i],t[i]))return!1;return!0}var s;if(AK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!V5(i.value[1],t.get(i.value[0])))return!1;return!0}if(OK&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(LK&&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(RK&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!V5(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var kK=function(t,n){try{return V5(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},vS="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function d3(){const e=E.exports.useContext(hd);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function RI(){const e=$8(),t=d3();return{...e,theme:t}}function MK(e,t,n){if(t==null)return t;const i=o=>{var s,u;return(u=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:u[o]};return i(t)??i(n)??n}function DK(e,t,n){if(t==null)return t;const i=o=>{var s,u;return(u=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:u.value};return i(t)??i(n)??n}function PK(e,t,n){const i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return s=>{const u=o.filter(Boolean),p=i.map((m,v)=>{if(e==="breakpoints")return MK(s,m,u[v]??m);const g=`${e}.${m}`;return DK(s,g,u[v]??m)});return Array.isArray(t)?p:p[0]}}function IK(e){const{cssVarsRoot:t,theme:n,children:i}=e,o=E.exports.useMemo(()=>hq(n),[n]);return N(EZ,{theme:o,children:[N($K,{root:t},void 0,!1,{fileName:vS,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:vS,lineNumber:80,columnNumber:26},this)}function $K({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return N(Nb,{styles:n=>({[t]:n.__cssVars})},void 0,!1,{fileName:vS,lineNumber:88,columnNumber:26},this)}xK({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function FK(){const{colorMode:e}=$8();return N(Nb,{styles:t=>{const n=SI(t,"styles.global"),i=mS(n,{theme:t,colorMode:e});return i?aI(i)(t):void 0}},void 0,!1,{fileName:vS,lineNumber:104,columnNumber:26},this)}var zK=new Set([...bq,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),BK=new Set(["htmlWidth","htmlHeight","htmlSize"]);function UK(e){return BK.has(e)||!zK.has(e)}var jK=({baseStyle:e})=>t=>{const{theme:n,css:i,__css:o,sx:s,...u}=t,p=CI(u,(b,C)=>xq(C)),m=mS(e,t),v=Object.assign({},o,m,wI(p),s),g=aI(v)(t.theme);return i?[g,i]:g};function C6(e,t){const{baseStyle:n,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=UK);const o=jK({baseStyle:n});return Q7(e,i)(o)}function Ke(e){return E.exports.forwardRef(e)}function AI(e,t={}){const{styleConfig:n,...i}=t,{theme:o,colorMode:s}=RI(),u=SI(o,`components.${e}`),p=n||u,m=md({theme:o,colorMode:s},p?.defaultProps??{},wI(IZ(i,["children"]))),v=E.exports.useRef({});if(p){const b=Rq(p)(m);kK(v.current,b)||(v.current=b)}return v.current}function ho(e,t={}){return AI(e,t)}function vo(e,t={}){return AI(e,t)}function VK(){const e=new Map;return new Proxy(C6,{apply(t,n,i){return C6(...i)},get(t,n){return e.has(n)||e.set(n,C6(n)),e.get(n)}})}var je=VK();function HK(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Rr(e={}){const{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:s}=e,u=E.exports.createContext(void 0);u.displayName=t;function p(){var m;const v=E.exports.useContext(u);if(!v&&n){const g=new Error(s??HK(i,o));throw g.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,g,p),g}return v}return[u.Provider,p,u]}function WK(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 Kr(...e){return t=>{e.forEach(n=>{WK(n,t)})}}function GK(...e){return E.exports.useMemo(()=>Kr(...e),e)}function _L(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 YK=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function TL(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function RL(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var J7=typeof window<"u"?E.exports.useLayoutEffect:E.exports.useEffect,gS=e=>e,qK=class{descendants=new Map;register=e=>{if(e!=null)return YK(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=_L(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=TL(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=TL(i,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=RL(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=RL(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=_L(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)}};function ZK(){const e=E.exports.useRef(new qK);return J7(()=>()=>e.current.destroy()),e.current}var[KK,OI]=Rr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function XK(e){const t=OI(),[n,i]=E.exports.useState(-1),o=E.exports.useRef(null);J7(()=>()=>{!o.current||t.unregister(o.current)},[]),J7(()=>{if(!o.current)return;const u=Number(o.current.dataset.index);n!=u&&!Number.isNaN(u)&&i(u)});const s=gS(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:Kr(s,o)}}function LI(){return[gS(KK),()=>gS(OI()),()=>ZK(),o=>XK(o)]}var Qr=(...e)=>e.filter(Boolean).join(" "),bv="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",AL={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:bv,lineNumber:14,columnNumber:22},globalThis),N("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:bv,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:bv,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:bv,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},vs=Ke((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:u,className:p,__css:m,...v}=e,g=Qr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},C={ref:t,focusable:s,className:g,__css:b},w=i??AL.viewBox;if(n&&typeof n!="string")return _e.createElement(je.svg,{as:n,...C,...v});const T=u??AL.path;return _e.createElement(je.svg,{verticalAlign:"middle",viewBox:w,...C,...v},T)});vs.displayName="Icon";function Gv(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,s=E.exports.Children.toArray(e.path),u=Ke((p,m)=>N(vs,{ref:m,viewBox:t,...o,...p,children:s.length?s:N("path",{fill:"currentColor",d:n},void 0,!1,{fileName:bv,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:bv,lineNumber:88,columnNumber:60},this));return u.displayName=i,u}function Wa(e,t=[]){const n=E.exports.useRef(e);return E.exports.useEffect(()=>{n.current=e}),E.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function kI(e){const{value:t,defaultValue:n,onChange:i,shouldUpdate:o=(C,w)=>C!==w}=e,s=Wa(i),u=Wa(o),[p,m]=E.exports.useState(n),v=t!==void 0,g=v?t:p,b=E.exports.useCallback(C=>{const T=typeof C=="function"?C(g):C;!u(g,T)||(v||m(T),s(T))},[v,s,g,u]);return[g,b]}const K8=E.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),p3=E.exports.createContext({});function QK(){return E.exports.useContext(p3).visualElement}const Yv=E.exports.createContext(null),xm=typeof document<"u",bS=xm?E.exports.useLayoutEffect:E.exports.useEffect,MI=E.exports.createContext({strict:!1});function JK(e,t,n,i){const o=QK(),s=E.exports.useContext(MI),u=E.exports.useContext(Yv),p=E.exports.useContext(K8).reducedMotion,m=E.exports.useRef(void 0);i=i||s.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:o,props:n,presenceId:u?u.id:void 0,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:p}));const v=m.current;return bS(()=>{v&&v.syncRender()}),E.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),bS(()=>()=>v&&v.notifyUnmount(),[]),v}function yv(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eX(e,t,n){return E.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):yv(n)&&(n.current=i))},[t])}function tb(e){return typeof e=="string"||Array.isArray(e)}function m3(e){return typeof e=="object"&&typeof e.start=="function"}const tX=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function h3(e){return m3(e.animate)||tX.some(t=>tb(e[t]))}function DI(e){return Boolean(h3(e)||e.variants)}function nX(e,t){if(h3(e)){const{initial:n,animate:i}=e;return{initial:n===!1||tb(n)?n:void 0,animate:tb(i)?i:void 0}}return e.inherit!==!1?t:{}}function rX(e){const{initial:t,animate:n}=nX(e,E.exports.useContext(p3));return E.exports.useMemo(()=>({initial:t,animate:n}),[OL(t),OL(n)])}function OL(e){return Array.isArray(e)?e.join(" "):e}const Ac=e=>({isEnabled:t=>e.some(n=>!!t[n])}),nb={measureLayout:Ac(["layout","layoutId","drag"]),animation:Ac(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ac(["exit"]),drag:Ac(["drag","dragControls"]),focus:Ac(["whileFocus"]),hover:Ac(["whileHover","onHoverStart","onHoverEnd"]),tap:Ac(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ac(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ac(["whileInView","onViewportEnter","onViewportLeave"])};function iX(e){for(const t in e)t==="projectionNodeConstructor"?nb.projectionNodeConstructor=e[t]:nb[t].Component=e[t]}function v3(e){const t=E.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ig={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let aX=1;function oX(){return v3(()=>{if(Ig.hasEverUpdated)return aX++})}const X8=E.exports.createContext({});class sX extends _e.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const PI=E.exports.createContext({}),lX=Symbol.for("motionComponentSymbol");var LL="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function uX({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:i,useVisualState:o,Component:s}){e&&iX(e);function u(m,v){const g={...E.exports.useContext(K8),...m,layoutId:cX(m)},{isStatic:b}=g;let C=null;const w=rX(m),T=b?void 0:oX(),A=o(m,b);if(!b&&xm){w.visualElement=JK(s,A,g,t);const k=E.exports.useContext(MI).strict,I=E.exports.useContext(PI);w.visualElement&&(C=w.visualElement.loadFeatures(g,k,e,T,n||nb.projectionNodeConstructor,I))}return N(sX,{visualElement:w.visualElement,props:g,children:[C,N(p3.Provider,{value:w,children:i(s,m,T,eX(A,w.visualElement,v),A,b,w.visualElement)},void 0,!1,{fileName:LL,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:LL,lineNumber:79,columnNumber:17},this)}const p=E.exports.forwardRef(u);return p[lX]=s,p}function cX({layoutId:e}){const t=E.exports.useContext(X8).id;return t&&e!==void 0?t+"-"+e:e}function fX(e){function t(i,o={}){return uX(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 dX=["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 Q8(e){return typeof e!="string"||e.includes("-")?!1:!!(dX.indexOf(e)>-1||/[A-Z]/.test(e))}const yS={};function pX(e){Object.assign(yS,e)}const xS=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rb=new Set(xS);function II(e,{layout:t,layoutId:n}){return Rb.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yS[e]||e==="opacity")}const $u=e=>!!e?.getVelocity,mX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hX=(e,t)=>xS.indexOf(e)-xS.indexOf(t);function vX({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let u="";t.sort(hX);for(const p of t)u+=`${mX[p]||p}(${e[p]}) `;return n&&!e.z&&(u+="translateZ(0)"),u=u.trim(),s?u=s(e,o?"":u):i&&o&&(u="none"),u}function $I(e){return e.startsWith("--")}const gX=(e,t)=>t&&typeof e=="number"?t.transform(e):e,FI=(e,t)=>n=>Math.max(Math.min(n,t),e),$g=e=>e%1?Number(e.toFixed(5)):e,rb=/(-)?([\d]*\.?[\d])+/g,eE=/(#[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,bX=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ab(e){return typeof e=="string"}const Sm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fg=Object.assign(Object.assign({},Sm),{transform:FI(0,1)}),o5=Object.assign(Object.assign({},Sm),{default:1}),Ob=e=>({test:t=>Ab(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jf=Ob("deg"),ku=Ob("%"),Xt=Ob("px"),yX=Ob("vh"),xX=Ob("vw"),kL=Object.assign(Object.assign({},ku),{parse:e=>ku.parse(e)/100,transform:e=>ku.transform(e*100)}),J8=(e,t)=>n=>Boolean(Ab(n)&&bX.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),zI=(e,t,n)=>i=>{if(!Ab(i))return i;const[o,s,u,p]=i.match(rb);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(u),alpha:p!==void 0?parseFloat(p):1}},sm={test:J8("hsl","hue"),parse:zI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+ku.transform($g(t))+", "+ku.transform($g(n))+", "+$g(Fg.transform(i))+")"},SX=FI(0,255),w6=Object.assign(Object.assign({},Sm),{transform:e=>Math.round(SX(e))}),od={test:J8("rgb","red"),parse:zI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+w6.transform(e)+", "+w6.transform(t)+", "+w6.transform(n)+", "+$g(Fg.transform(i))+")"};function CX(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 tE={test:J8("#"),parse:CX,transform:od.transform},fo={test:e=>od.test(e)||tE.test(e)||sm.test(e),parse:e=>od.test(e)?od.parse(e):sm.test(e)?sm.parse(e):tE.parse(e),transform:e=>Ab(e)?e:e.hasOwnProperty("red")?od.transform(e):sm.transform(e)},BI="${c}",UI="${n}";function wX(e){var t,n,i,o;return isNaN(e)&&Ab(e)&&((n=(t=e.match(rb))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(i=e.match(eE))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0)>0}function jI(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const i=e.match(eE);i&&(n=i.length,e=e.replace(eE,BI),t.push(...i.map(fo.parse)));const o=e.match(rb);return o&&(e=e.replace(rb,UI),t.push(...o.map(Sm.parse))),{values:t,numColors:n,tokenised:e}}function VI(e){return jI(e).values}function HI(e){const{values:t,numColors:n,tokenised:i}=jI(e),o=t.length;return s=>{let u=i;for(let p=0;p<o;p++)u=u.replace(p<n?BI:UI,p<n?fo.transform(s[p]):$g(s[p]));return u}}const NX=e=>typeof e=="number"?0:e;function EX(e){const t=VI(e);return HI(e)(t.map(NX))}const Fc={test:wX,parse:VI,createTransformer:HI,getAnimatableNone:EX},_X=new Set(["brightness","contrast","saturate","opacity"]);function TX(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(rb)||[];if(!i)return e;const o=n.replace(i,"");let s=_X.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+o+")"}const RX=/([a-z-]*)\(.*?\)/g,nE=Object.assign(Object.assign({},Fc),{getAnimatableNone:e=>{const t=e.match(RX);return t?t.map(TX).join(" "):e}}),ML={...Sm,transform:Math.round},WI={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:Jf,rotateX:Jf,rotateY:Jf,rotateZ:Jf,scale:o5,scaleX:o5,scaleY:o5,scaleZ:o5,skew:Jf,skewX:Jf,skewY:Jf,distance:Xt,translateX:Xt,translateY:Xt,translateZ:Xt,x:Xt,y:Xt,z:Xt,perspective:Xt,transformPerspective:Xt,opacity:Fg,originX:kL,originY:kL,originZ:Xt,zIndex:ML,fillOpacity:Fg,strokeOpacity:Fg,numOctaves:ML};function e_(e,t,n,i){const{style:o,vars:s,transform:u,transformKeys:p,transformOrigin:m}=e;p.length=0;let v=!1,g=!1,b=!0;for(const C in t){const w=t[C];if($I(C)){s[C]=w;continue}const T=WI[C],A=gX(w,T);if(Rb.has(C)){if(v=!0,u[C]=A,p.push(C),!b)continue;w!==(T.default||0)&&(b=!1)}else C.startsWith("origin")?(g=!0,m[C]=A):o[C]=A}if(v||i?o.transform=vX(e,n,b,i):!t.transform&&o.transform&&(o.transform="none"),g){const{originX:C="50%",originY:w="50%",originZ:T=0}=m;o.transformOrigin=`${C} ${w} ${T}`}}const t_=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function GI(e,t,n){for(const i in t)!$u(t[i])&&!II(i,n)&&(e[i]=t[i])}function AX({transformTemplate:e},t,n){return E.exports.useMemo(()=>{const i=t_();return e_(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}function OX(e,t,n){const i=e.style||{},o={};return GI(o,i,e),Object.assign(o,AX(e,t,n)),e.transformValues?e.transformValues(o):o}function LX(e,t,n){const i={},o=OX(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 kX=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],MX=["whileTap","onTap","onTapStart","onTapCancel"],DX=["onPan","onPanStart","onPanSessionStart","onPanEnd"],PX=["whileInView","onViewportEnter","onViewportLeave","viewport"],IX=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",...PX,...MX,...kX,...DX]);function SS(e){return IX.has(e)}let YI=e=>!SS(e);function $X(e){!e||(YI=t=>t.startsWith("on")?!SS(t):e(t))}try{$X(require("@emotion/is-prop-valid").default)}catch{}function FX(e,t,n){const i={};for(const o in e)(YI(o)||n===!0&&SS(o)||!t&&!SS(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function DL(e,t,n){return typeof e=="string"?e:Xt.transform(t+n*e)}function zX(e,t,n){const i=DL(t,e.x,e.width),o=DL(n,e.y,e.height);return`${i} ${o}`}const BX={offset:"stroke-dashoffset",array:"stroke-dasharray"},UX={offset:"strokeDashoffset",array:"strokeDasharray"};function jX(e,t,n=1,i=0,o=!0){e.pathLength=1;const s=o?BX:UX;e[s.offset]=Xt.transform(-i);const u=Xt.transform(t),p=Xt.transform(n);e[s.array]=`${u} ${p}`}function n_(e,{attrX:t,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:p=0,...m},v,g){e_(e,m,v,g),e.attrs=e.style,e.style={};const{attrs:b,style:C,dimensions:w}=e;b.transform&&(w&&(C.transform=b.transform),delete b.transform),w&&(i!==void 0||o!==void 0||C.transform)&&(C.transformOrigin=zX(w,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),s!==void 0&&jX(b,s,u,p,!1)}const qI=()=>({...t_(),attrs:{}});function VX(e,t){const n=E.exports.useMemo(()=>{const i=qI();return n_(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};GI(i,e.style,e),n.style={...i,...n.style}}return n}function HX(e=!1){return(n,i,o,s,{latestValues:u},p)=>{const v=(Q8(n)?VX:LX)(i,u,p),b={...FX(i,typeof n=="string",e),...v,ref:s};return o&&(b["data-projection-id"]=o),E.exports.createElement(n,b)}}const ZI=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function KI(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const s in n)e.style.setProperty(s,n[s])}const XI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function QI(e,t,n,i){KI(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(XI.has(o)?o:ZI(o),t.attrs[o])}function r_(e){const{style:t}=e,n={};for(const i in t)($u(t[i])||II(i,e))&&(n[i]=t[i]);return n}function JI(e){const t=r_(e);for(const n in e)if($u(e[n])){const i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[i]=e[n]}return t}function e$(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 ib=e=>Array.isArray(e),WX=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),t$=e=>ib(e)?e[e.length-1]||0:e;function H5(e){const t=$u(e)?e.get():e;return WX(t)?t.toValue():t}function GX({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,s){const u={latestValues:YX(i,o,s,e),renderState:t()};return n&&(u.mount=p=>n(i,p,u)),u}const n$=e=>(t,n)=>{const i=E.exports.useContext(p3),o=E.exports.useContext(Yv),s=()=>GX(e,t,i,o);return n?s():v3(s)};function YX(e,t,n,i){const o={},s=i(e);for(const C in s)o[C]=H5(s[C]);let{initial:u,animate:p}=e;const m=h3(e),v=DI(e);t&&v&&!m&&e.inherit!==!1&&(u===void 0&&(u=t.initial),p===void 0&&(p=t.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const b=g?p:u;return b&&typeof b!="boolean"&&!m3(b)&&(Array.isArray(b)?b:[b]).forEach(w=>{const T=e$(e,w);if(!T)return;const{transitionEnd:A,transition:k,...I}=T;for(const D in I){let P=I[D];if(Array.isArray(P)){const F=g?P.length-1:0;P=P[F]}P!==null&&(o[D]=P)}for(const D in A)o[D]=A[D]}),o}const qX={useVisualState:n$({scrapeMotionValuesFromProps:JI,createRenderState:qI,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}}n_(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),QI(t,n)}})},ZX={useVisualState:n$({scrapeMotionValuesFromProps:r_,createRenderState:t_})};function KX(e,{forwardMotionProps:t=!1},n,i,o){return{...Q8(e)?qX:ZX,preloadedFeatures:n,useRender:HX(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 g3(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function rE(e,t,n,i){E.exports.useEffect(()=>{const o=e.current;if(n&&o)return g3(o,t,n,i)},[e,t,n,i])}function XX({whileFocus:e,visualElement:t}){const{animationState:n}=t,i=()=>{n&&n.setActive(Er.Focus,!0)},o=()=>{n&&n.setActive(Er.Focus,!1)};rE(t,"focus",e?i:void 0),rE(t,"blur",e?o:void 0)}function r$(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function i$(e){return!!e.touches}function QX(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const JX={pageX:0,pageY:0};function eQ(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||JX;return{x:i[t+"X"],y:i[t+"Y"]}}function tQ(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function i_(e,t="page"){return{point:i$(e)?eQ(e,t):tQ(e,t)}}const a$=(e,t=!1)=>{const n=i=>e(i,i_(i));return t?QX(n):n},nQ=()=>xm&&window.onpointerdown===null,rQ=()=>xm&&window.ontouchstart===null,iQ=()=>xm&&window.onmousedown===null,aQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},oQ={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function o$(e){return nQ()?e:rQ()?oQ[e]:iQ()?aQ[e]:e}function Nv(e,t,n,i){return g3(e,o$(t),a$(n,t==="pointerdown"),i)}function CS(e,t,n,i){return rE(e,o$(t),n&&a$(n,t==="pointerdown"),i)}function s$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const PL=s$("dragHorizontal"),IL=s$("dragVertical");function l$(e){let t=!1;if(e==="y")t=IL();else if(e==="x")t=PL();else{const n=PL(),i=IL();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function u$(){const e=l$(!0);return e?(e(),!1):!0}function $L(e,t,n){return(i,o)=>{!r$(i)||u$()||(e.animationState&&e.animationState.setActive(Er.Hover,t),n&&n(i,o))}}function sQ({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:i}){CS(i,"pointerenter",e||n?$L(i,!0,e):void 0,{passive:!e}),CS(i,"pointerleave",t||n?$L(i,!1,t):void 0,{passive:!t})}const c$=(e,t)=>t?e===t?!0:c$(e,t.parentElement):!1;function a_(e){return E.exports.useEffect(()=>()=>e(),[])}var Tu=function(){return Tu=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Tu.apply(this,arguments)};function b3(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 qv(e,t,n,i){function o(s){return s instanceof n?s:new n(function(u){u(s)})}return new(n||(n=Promise))(function(s,u){function p(g){try{v(i.next(g))}catch(b){u(b)}}function m(g){try{v(i.throw(g))}catch(b){u(b)}}function v(g){g.done?s(g.value):o(g.value).then(p,m)}v((i=i.apply(e,t||[])).next())})}function Zv(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,u;return u={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function p(v){return function(g){return m([v,g])}}function m(v){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=v[0]&2?o.return:v[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,v[1])).done)return s;switch(o=0,s&&(v=[v[0]&2,s.value]),v[0]){case 0:case 1:s=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(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(v[0]===6||v[0]===2)){n=0;continue}if(v[0]===3&&(!s||v[1]>s[0]&&v[1]<s[3])){n.label=v[1];break}if(v[0]===6&&n.label<s[1]){n.label=s[1],s=v;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(v);break}s[2]&&n.ops.pop(),n.trys.pop();continue}v=t.call(e,n)}catch(g){v=[6,g],o=0}finally{i=s=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function FL(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,s=[],u;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(p){u={error:p}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return s}function iE(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var Lb=function(){},Xs=function(){};Lb=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Xs=function(e,t){if(!e)throw new Error(t)};const wS=(e,t,n)=>Math.min(Math.max(n,e),t),N6=.001,lQ=.01,zL=10,uQ=.05,cQ=1;function fQ({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,s;Lb(e<=zL*1e3,"Spring duration must be 10 seconds or less");let u=1-t;u=wS(uQ,cQ,u),e=wS(lQ,zL,e/1e3),u<1?(o=v=>{const g=v*u,b=g*e,C=g-n,w=aE(v,u),T=Math.exp(-b);return N6-C/w*T},s=v=>{const b=v*u*e,C=b*n+n,w=Math.pow(u,2)*Math.pow(v,2)*e,T=Math.exp(-b),A=aE(Math.pow(v,2),u);return(-o(v)+N6>0?-1:1)*((C-w)*T)/A}):(o=v=>{const g=Math.exp(-v*e),b=(v-n)*e+1;return-N6+g*b},s=v=>{const g=Math.exp(-v*e),b=(n-v)*(e*e);return g*b});const p=5/e,m=pQ(o,s,p);if(e=e*1e3,isNaN(m))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(m,2)*i;return{stiffness:v,damping:u*2*Math.sqrt(i*v),duration:e}}}const dQ=12;function pQ(e,t,n){let i=n;for(let o=1;o<dQ;o++)i=i-e(i)/t(i);return i}function aE(e,t){return e*Math.sqrt(1-t*t)}const mQ=["duration","bounce"],hQ=["stiffness","damping","mass"];function BL(e,t){return t.some(n=>e[n]!==void 0)}function vQ(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!BL(e,hQ)&&BL(e,mQ)){const n=fQ(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function o_(e){var{from:t=0,to:n=1,restSpeed:i=2,restDelta:o}=e,s=b3(e,["from","to","restSpeed","restDelta"]);const u={done:!1,value:t};let{stiffness:p,damping:m,mass:v,velocity:g,duration:b,isResolvedFromDuration:C}=vQ(s),w=UL,T=UL;function A(){const k=g?-(g/1e3):0,I=n-t,D=m/(2*Math.sqrt(p*v)),P=Math.sqrt(p/v)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),D<1){const F=aE(P,D);w=z=>{const q=Math.exp(-D*P*z);return n-q*((k+D*P*I)/F*Math.sin(F*z)+I*Math.cos(F*z))},T=z=>{const q=Math.exp(-D*P*z);return D*P*q*(Math.sin(F*z)*(k+D*P*I)/F+I*Math.cos(F*z))-q*(Math.cos(F*z)*(k+D*P*I)-F*I*Math.sin(F*z))}}else if(D===1)w=F=>n-Math.exp(-P*F)*(I+(k+P*I)*F);else{const F=P*Math.sqrt(D*D-1);w=z=>{const q=Math.exp(-D*P*z),Y=Math.min(F*z,300);return n-q*((k+D*P*I)*Math.sinh(Y)+F*I*Math.cosh(Y))/F}}}return A(),{next:k=>{const I=w(k);if(C)u.done=k>=b;else{const D=T(k)*1e3,P=Math.abs(D)<=i,F=Math.abs(n-I)<=o;u.done=P&&F}return u.value=u.done?n:I,u},flipTarget:()=>{g=-g,[t,n]=[n,t],A()}}}o_.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const UL=e=>0,ab=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},Xr=(e,t,n)=>-n*e+n*t+e;function E6(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 jL({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,s=0,u=0;if(!t)o=s=u=n;else{const p=n<.5?n*(1+t):n+t-n*t,m=2*n-p;o=E6(m,p,e+1/3),s=E6(m,p,e),u=E6(m,p,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(u*255),alpha:i}}const gQ=(e,t,n)=>{const i=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-i)+i))},bQ=[tE,od,sm],VL=e=>bQ.find(t=>t.test(e)),HL=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,f$=(e,t)=>{let n=VL(e),i=VL(t);Xs(!!n,HL(e)),Xs(!!i,HL(t));let o=n.parse(e),s=i.parse(t);n===sm&&(o=jL(o),n=od),i===sm&&(s=jL(s),i=od);const u=Object.assign({},o);return p=>{for(const m in u)m!=="alpha"&&(u[m]=gQ(o[m],s[m],p));return u.alpha=Xr(o.alpha,s.alpha,p),n.transform(u)}},oE=e=>typeof e=="number",yQ=(e,t)=>n=>t(e(n)),y3=(...e)=>e.reduce(yQ);function d$(e,t){return oE(e)?n=>Xr(e,t,n):fo.test(e)?f$(e,t):m$(e,t)}const p$=(e,t)=>{const n=[...e],i=n.length,o=e.map((s,u)=>d$(s,t[u]));return s=>{for(let u=0;u<i;u++)n[u]=o[u](s);return n}},xQ=(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]=d$(e[o],t[o]));return o=>{for(const s in i)n[s]=i[s](o);return n}};function WL(e){const t=Fc.parse(e),n=t.length;let i=0,o=0,s=0;for(let u=0;u<n;u++)i||typeof t[u]=="number"?i++:t[u].hue!==void 0?s++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:s}}const m$=(e,t)=>{const n=Fc.createTransformer(t),i=WL(e),o=WL(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?y3(p$(i.parsed,o.parsed),n):(Lb(!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.`),u=>`${u>0?t:e}`)},SQ=(e,t)=>n=>Xr(e,t,n);function CQ(e){if(typeof e=="number")return SQ;if(typeof e=="string")return fo.test(e)?f$:m$;if(Array.isArray(e))return p$;if(typeof e=="object")return xQ}function wQ(e,t,n){const i=[],o=n||CQ(e[0]),s=e.length-1;for(let u=0;u<s;u++){let p=o(e[u],e[u+1]);if(t){const m=Array.isArray(t)?t[u]:t;p=y3(m,p)}i.push(p)}return i}function NQ([e,t],[n]){return i=>n(ab(e,t,i))}function EQ(e,t){const n=e.length,i=n-1;return o=>{let s=0,u=!1;if(o<=e[0]?u=!0:o>=e[i]&&(s=i-1,u=!0),!u){let m=1;for(;m<n&&!(e[m]>o||m===i);m++);s=m-1}const p=ab(e[s],e[s+1],o);return t[s](p)}}function h$(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const s=e.length;Xs(s===t.length,"Both input and output ranges must be the same length"),Xs(!i||!Array.isArray(i)||i.length===s-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[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const u=wQ(t,i,o),p=s===2?NQ(e,u):EQ(e,u);return n?m=>p(wS(e[0],e[s-1],m)):p}const x3=e=>t=>1-e(1-t),s_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_Q=e=>t=>Math.pow(t,e),v$=e=>t=>t*t*((e+1)*t-e),TQ=e=>{const t=v$(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},g$=1.525,RQ=4/11,AQ=8/11,OQ=9/10,l_=e=>e,u_=_Q(2),LQ=x3(u_),b$=s_(u_),y$=e=>1-Math.sin(Math.acos(e)),c_=x3(y$),kQ=s_(c_),f_=v$(g$),MQ=x3(f_),DQ=s_(f_),PQ=TQ(g$),IQ=4356/361,$Q=35442/1805,FQ=16061/1805,NS=e=>{if(e===1||e===0)return e;const t=e*e;return e<RQ?7.5625*t:e<AQ?9.075*t-9.9*e+3.4:e<OQ?IQ*t-$Q*e+FQ:10.8*e*e-20.52*e+10.72},zQ=x3(NS),BQ=e=>e<.5?.5*(1-NS(1-e*2)):.5*NS(e*2-1)+.5;function UQ(e,t){return e.map(()=>t||b$).splice(0,e.length-1)}function jQ(e){const t=e.length;return e.map((n,i)=>i!==0?i/(t-1):0)}function VQ(e,t){return e.map(n=>n*t)}function W5({from:e=0,to:t=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:e},u=Array.isArray(t)?t:[e,t],p=VQ(i&&i.length===u.length?i:jQ(u),o);function m(){return h$(p,u,{ease:Array.isArray(n)?n:UQ(u,n)})}let v=m();return{next:g=>(s.value=v(g),s.done=g>=o,s),flipTarget:()=>{u.reverse(),v=m()}}}function HQ({velocity:e=0,from:t=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const u={done:!1,value:t};let p=n*e;const m=t+p,v=s===void 0?m:s(m);return v!==m&&(p=v-t),{next:g=>{const b=-p*Math.exp(-g/i);return u.done=!(b>o||b<-o),u.value=u.done?v:v+b,u},flipTarget:()=>{}}}const GL={keyframes:W5,spring:o_,decay:HQ};function WQ(e){if(Array.isArray(e.to))return W5;if(GL[e.type])return GL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?W5:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?o_:W5}const x$=1/60*1e3,GQ=typeof performance<"u"?()=>performance.now():()=>Date.now(),S$=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(GQ()),x$);function YQ(e){let t=[],n=[],i=0,o=!1,s=!1;const u=new WeakSet,p={schedule:(m,v=!1,g=!1)=>{const b=g&&o,C=b?t:n;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),b&&o&&(i=t.length)),m},cancel:m=>{const v=n.indexOf(m);v!==-1&&n.splice(v,1),u.delete(m)},process:m=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const g=t[v];g(m),u.has(g)&&(p.schedule(g),e())}o=!1,s&&(s=!1,p.process(m))}};return p}const qQ=40;let sE=!0,ob=!1,lE=!1;const Ev={delta:0,timestamp:0},kb=["read","update","preRender","render","postRender"],S3=kb.reduce((e,t)=>(e[t]=YQ(()=>ob=!0),e),{}),ZQ=kb.reduce((e,t)=>{const n=S3[t];return e[t]=(i,o=!1,s=!1)=>(ob||QQ(),n.schedule(i,o,s)),e},{}),KQ=kb.reduce((e,t)=>(e[t]=S3[t].cancel,e),{});kb.reduce((e,t)=>(e[t]=()=>S3[t].process(Ev),e),{});const XQ=e=>S3[e].process(Ev),C$=e=>{ob=!1,Ev.delta=sE?x$:Math.max(Math.min(e-Ev.timestamp,qQ),1),Ev.timestamp=e,lE=!0,kb.forEach(XQ),lE=!1,ob&&(sE=!1,S$(C$))},QQ=()=>{ob=!0,sE=!0,lE||S$(C$)},JQ=()=>Ev;function w$(e,t,n=0){return e-t-n}function eJ(e,t,n=0,i=!0){return i?w$(t+-e,t,n):t-(e-t)+n}function tJ(e,t,n,i){return i?e>=t+n:e<=-n}const nJ=e=>{const t=({delta:n})=>e(n);return{start:()=>ZQ.update(t,!0),stop:()=>KQ.update(t)}};function N$(e){var t,n,{from:i,autoplay:o=!0,driver:s=nJ,elapsed:u=0,repeat:p=0,repeatType:m="loop",repeatDelay:v=0,onPlay:g,onStop:b,onComplete:C,onRepeat:w,onUpdate:T}=e,A=b3(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=A,I,D=0,P=A.duration,F,z=!1,q=!0,Y;const Q=WQ(A);!((n=(t=Q).needsInterpolation)===null||n===void 0)&&n.call(t,i,k)&&(Y=h$([0,100],[i,k],{clamp:!1}),i=0,k=100);const ie=Q(Object.assign(Object.assign({},A),{from:i,to:k}));function ae(){D++,m==="reverse"?(q=D%2===0,u=eJ(u,P,v,q)):(u=w$(u,P,v),m==="mirror"&&ie.flipTarget()),z=!1,w&&w()}function pe(){I.stop(),C&&C()}function $e(ee){if(q||(ee=-ee),u+=ee,!z){const be=ie.next(Math.max(0,u));F=be.value,Y&&(F=Y(F)),z=q?be.done:u<=0}T?.(F),z&&(D===0&&(P??(P=u)),D<p?tJ(u,P,v,q)&&ae():pe())}function te(){g?.(),I=s($e),I.start()}return o&&te(),{stop:()=>{b?.(),I.stop()}}}function E$(e,t){return t?e*(1e3/t):0}function rJ({from:e=0,velocity:t=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:u=500,bounceDamping:p=10,restDelta:m=1,modifyTarget:v,driver:g,onUpdate:b,onComplete:C,onStop:w}){let T;function A(P){return n!==void 0&&P<n||i!==void 0&&P>i}function k(P){return n===void 0?i:i===void 0||Math.abs(n-P)<Math.abs(i-P)?n:i}function I(P){T?.stop(),T=N$(Object.assign(Object.assign({},P),{driver:g,onUpdate:F=>{var z;b?.(F),(z=P.onUpdate)===null||z===void 0||z.call(P,F)},onComplete:C,onStop:w}))}function D(P){I(Object.assign({type:"spring",stiffness:u,damping:p,restDelta:m},P))}if(A(e))D({from:e,velocity:t,to:k(e)});else{let P=o*t+e;typeof v<"u"&&(P=v(P));const F=k(P),z=F===n?-1:1;let q,Y;const Q=ie=>{q=Y,Y=ie,t=E$(ie-q,JQ().delta),(z===1&&ie>F||z===-1&&ie<F)&&D({from:ie,to:F,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:s,power:o,restDelta:m,modifyTarget:v,onUpdate:A(P)?Q:void 0})}return{stop:()=>T?.stop()}}const uE=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),YL=e=>uE(e)&&e.hasOwnProperty("z"),s5=(e,t)=>Math.abs(e-t);function d_(e,t){if(oE(e)&&oE(t))return s5(e,t);if(uE(e)&&uE(t)){const n=s5(e.x,t.x),i=s5(e.y,t.y),o=YL(e)&&YL(t)?s5(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}const _$=(e,t)=>1-3*t+3*e,T$=(e,t)=>3*t-6*e,R$=e=>3*e,ES=(e,t,n)=>((_$(t,n)*e+T$(t,n))*e+R$(t))*e,A$=(e,t,n)=>3*_$(t,n)*e*e+2*T$(t,n)*e+R$(t),iJ=1e-7,aJ=10;function oJ(e,t,n,i,o){let s,u,p=0;do u=t+(n-t)/2,s=ES(u,i,o)-e,s>0?n=u:t=u;while(Math.abs(s)>iJ&&++p<aJ);return u}const sJ=8,lJ=.001;function uJ(e,t,n,i){for(let o=0;o<sJ;++o){const s=A$(t,n,i);if(s===0)return t;t-=(ES(t,n,i)-e)/s}return t}const G5=11,l5=1/(G5-1);function cJ(e,t,n,i){if(e===t&&n===i)return l_;const o=new Float32Array(G5);for(let u=0;u<G5;++u)o[u]=ES(u*l5,e,n);function s(u){let p=0,m=1;const v=G5-1;for(;m!==v&&o[m]<=u;++m)p+=l5;--m;const g=(u-o[m])/(o[m+1]-o[m]),b=p+g*l5,C=A$(b,e,n);return C>=lJ?uJ(u,b,e,n):C===0?b:oJ(u,p,p+l5,e,n)}return u=>u===0||u===1?u:ES(s(u),t,i)}function fJ({onTap:e,onTapStart:t,onTapCancel:n,whileTap:i,visualElement:o}){const s=e||t||n||i,u=E.exports.useRef(!1),p=E.exports.useRef(null),m={passive:!(t||e||n||w)};function v(){p.current&&p.current(),p.current=null}function g(){return v(),u.current=!1,o.animationState&&o.animationState.setActive(Er.Tap,!1),!u$()}function b(T,A){!g()||(c$(o.getInstance(),T.target)?e&&e(T,A):n&&n(T,A))}function C(T,A){!g()||n&&n(T,A)}function w(T,A){v(),!u.current&&(u.current=!0,p.current=y3(Nv(window,"pointerup",b,m),Nv(window,"pointercancel",C,m)),o.animationState&&o.animationState.setActive(Er.Tap,!0),t&&t(T,A))}CS(o,"pointerdown",s?w:void 0,m),a_(v)}const dJ="production",p_=typeof process>"u"||process.env===void 0?dJ:"development",qL=new Set;function m_(e,t,n){e||qL.has(t)||(console.warn(t),n&&console.warn(n),qL.add(t))}const cE=new WeakMap,_6=new WeakMap,pJ=e=>{const t=cE.get(e.target);t&&t(e)},mJ=e=>{e.forEach(pJ)};function hJ({root:e,...t}){const n=e||document;_6.has(n)||_6.set(n,{});const i=_6.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(mJ,{root:e,...t})),i[o]}function vJ(e,t,n){const i=hJ(t);return cE.set(e,n),i.observe(e),()=>{cE.delete(e),i.unobserve(e)}}function gJ({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:i,viewport:o={}}){const s=E.exports.useRef({hasEnteredView:!1,isInView:!1});let u=Boolean(t||n||i);o.once&&s.current.hasEnteredView&&(u=!1),(typeof IntersectionObserver>"u"?xJ:yJ)(u,s.current,e,o)}const bJ={some:0,all:1};function yJ(e,t,n,{root:i,margin:o,amount:s="some",once:u}){E.exports.useEffect(()=>{if(!e)return;const p={root:i?.current,rootMargin:o,threshold:typeof s=="number"?s:bJ[s]},m=v=>{const{isIntersecting:g}=v;if(t.isInView===g||(t.isInView=g,u&&!g&&t.hasEnteredView))return;g&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Er.InView,g);const b=n.getProps(),C=g?b.onViewportEnter:b.onViewportLeave;C&&C(v)};return vJ(n.getInstance(),p,m)},[e,i,o,s])}function xJ(e,t,n,{fallback:i=!0}){E.exports.useEffect(()=>{!e||!i||(p_!=="production"&&m_(!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 sd=e=>t=>(e(t),null),SJ={inView:sd(gJ),tap:sd(fJ),focus:sd(XX),hover:sd(sQ)};function h_(){const e=E.exports.useContext(Yv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=E.exports.useId();return E.exports.useEffect(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function CJ(){return wJ(E.exports.useContext(Yv))}function wJ(e){return e===null?!0:e.isPresent}function O$(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 _S=e=>e*1e3,ZL={linear:l_,easeIn:u_,easeInOut:b$,easeOut:LQ,circIn:y$,circInOut:kQ,circOut:c_,backIn:f_,backInOut:DQ,backOut:MQ,anticipate:PQ,bounceIn:zQ,bounceInOut:BQ,bounceOut:NS},KL=e=>{if(Array.isArray(e)){Xs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return cJ(t,n,i,o)}else if(typeof e=="string")return Xs(ZL[e]!==void 0,`Invalid easing type '${e}'`),ZL[e];return e},NJ=e=>Array.isArray(e)&&typeof e[0]!="number",XL=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Fc.test(t)&&!t.startsWith("url(")),Wp=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),u5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),T6=()=>({type:"keyframes",ease:"linear",duration:.3}),EJ=e=>({type:"keyframes",duration:.8,values:e}),QL={x:Wp,y:Wp,z:Wp,rotate:Wp,rotateX:Wp,rotateY:Wp,rotateZ:Wp,scaleX:u5,scaleY:u5,scale:u5,opacity:T6,backgroundColor:T6,color:T6,default:u5},_J=(e,t)=>{let n;return ib(t)?n=EJ:n=QL[e]||QL.default,{to:t,...n(t)}},TJ={...WI,color:fo,backgroundColor:fo,outlineColor:fo,fill:fo,stroke:fo,borderColor:fo,borderTopColor:fo,borderRightColor:fo,borderBottomColor:fo,borderLeftColor:fo,filter:nE,WebkitFilter:nE},v_=e=>TJ[e];function g_(e,t){var n;let i=v_(e);return i!==nE&&(i=Fc),(n=i.getAnimatableNone)===null||n===void 0?void 0:n.call(i,t)}const RJ={current:!1};function AJ({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:u,repeatDelay:p,from:m,...v}){return!!Object.keys(v).length}let JL=!1;function OJ({ease:e,times:t,yoyo:n,flip:i,loop:o,...s}){const u={...s};return t&&(u.offset=t),s.duration&&(u.duration=_S(s.duration)),s.repeatDelay&&(u.repeatDelay=_S(s.repeatDelay)),e&&(u.ease=NJ(e)?e.map(KL):KL(e)),s.type==="tween"&&(u.type="keyframes"),(n||o||i)&&(Lb(!JL,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),JL=!0,n?u.repeatType="reverse":o?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=o||n||i||s.repeat),s.type!=="spring"&&(u.type="keyframes"),u}function LJ(e,t){var n,i;return(i=(n=(b_(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&i!==void 0?i:0}function kJ(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function MJ(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),kJ(t),AJ(e)||(e={...e,..._J(n,t.to)}),{...t,...OJ(e)}}function DJ(e,t,n,i,o){const s=b_(i,e)||{};let u=s.from!==void 0?s.from:t.get();const p=XL(e,n);u==="none"&&p&&typeof n=="string"?u=g_(e,n):ek(u)&&typeof n=="string"?u=tk(n):!Array.isArray(n)&&ek(n)&&typeof u=="string"&&(n=tk(u));const m=XL(e,u);Lb(m===p,`You are trying to animate ${e} from "${u}" to "${n}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${n} via the \`style\` property.`);function v(){const b={from:u,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:C=>t.set(C)};return s.type==="inertia"||s.type==="decay"?rJ({...b,...s}):N$({...MJ(s,b,e),onUpdate:C=>{b.onUpdate(C),s.onUpdate&&s.onUpdate(C)},onComplete:()=>{b.onComplete(),s.onComplete&&s.onComplete()}})}function g(){const b=t$(n);return t.set(b),o(),s.onUpdate&&s.onUpdate(b),s.onComplete&&s.onComplete(),{stop:()=>{}}}return!m||!p||s.type===!1?g:v}function ek(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function tk(e){return typeof e=="number"?0:g_("",e)}function b_(e,t){return e[t]||e.default||e}function y_(e,t,n,i={}){return RJ.current&&(i={type:!1}),t.start(o=>{let s,u;const p=DJ(e,t,n,i,o),m=LJ(i,e),v=()=>u=p();return m?s=window.setTimeout(v,_S(m)):v(),()=>{clearTimeout(s),u&&u.stop()}})}const PJ=e=>/^\-?\d*\.?\d+$/.test(e),IJ=e=>/^0[^.\s]+$/.test(e),L$=1/60*1e3,$J=typeof performance<"u"?()=>performance.now():()=>Date.now(),k$=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e($J()),L$);function FJ(e){let t=[],n=[],i=0,o=!1,s=!1;const u=new WeakSet,p={schedule:(m,v=!1,g=!1)=>{const b=g&&o,C=b?t:n;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),b&&o&&(i=t.length)),m},cancel:m=>{const v=n.indexOf(m);v!==-1&&n.splice(v,1),u.delete(m)},process:m=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const g=t[v];g(m),u.has(g)&&(p.schedule(g),e())}o=!1,s&&(s=!1,p.process(m))}};return p}const zJ=40;let fE=!0,sb=!1,dE=!1;const _v={delta:0,timestamp:0},Mb=["read","update","preRender","render","postRender"],C3=Mb.reduce((e,t)=>(e[t]=FJ(()=>sb=!0),e),{}),Mu=Mb.reduce((e,t)=>{const n=C3[t];return e[t]=(i,o=!1,s=!1)=>(sb||UJ(),n.schedule(i,o,s)),e},{}),lb=Mb.reduce((e,t)=>(e[t]=C3[t].cancel,e),{}),R6=Mb.reduce((e,t)=>(e[t]=()=>C3[t].process(_v),e),{}),BJ=e=>C3[e].process(_v),M$=e=>{sb=!1,_v.delta=fE?L$:Math.max(Math.min(e-_v.timestamp,zJ),1),_v.timestamp=e,dE=!0,Mb.forEach(BJ),dE=!1,sb&&(fE=!1,k$(M$))},UJ=()=>{sb=!0,fE=!0,dE||k$(M$)},pE=()=>_v;function x_(e,t){e.indexOf(t)===-1&&e.push(t)}function S_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zg{constructor(){this.subscriptions=[]}add(t){return x_(this.subscriptions,t),()=>S_(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 s=0;s<o;s++){const u=this.subscriptions[s];u&&u(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const jJ=e=>!isNaN(parseFloat(e));class VJ{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new zg,this.velocityUpdateSubscribers=new zg,this.renderSubscribers=new zg,this.canTrackVelocity=!1,this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:s}=pE();this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Mu.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=()=>Mu.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=jJ(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?E$(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 Pv(e){return new VJ(e)}const D$=e=>t=>t.test(e),HJ={test:e=>e==="auto",parse:e=>e},P$=[Sm,Xt,ku,Jf,xX,yX,HJ],gg=e=>P$.find(D$(e)),WJ=[...P$,fo,Fc],GJ=e=>WJ.find(D$(e));function YJ(e){const t={};return e.forEachValue((n,i)=>t[i]=n.get()),t}function qJ(e){const t={};return e.forEachValue((n,i)=>t[i]=n.getVelocity()),t}function w3(e,t,n){const i=e.getProps();return e$(i,t,n!==void 0?n:i.custom,YJ(e),qJ(e))}function ZJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pv(n))}function KJ(e,t){const n=w3(e,t);let{transitionEnd:i={},transition:o={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const u in s){const p=t$(s[u]);ZJ(e,u,p)}}function XJ(e,t,n){var i,o;const s=Object.keys(t).filter(p=>!e.hasValue(p)),u=s.length;if(!!u)for(let p=0;p<u;p++){const m=s[p],v=t[m];let g=null;Array.isArray(v)&&(g=v[0]),g===null&&(g=(o=(i=n[m])!==null&&i!==void 0?i:e.readValue(m))!==null&&o!==void 0?o:t[m]),g!=null&&(typeof g=="string"&&(PJ(g)||IJ(g))?g=parseFloat(g):!GJ(g)&&Fc.test(v)&&(g=g_(m,v)),e.addValue(m,Pv(g)),n[m]===void 0&&(n[m]=g),e.setBaseTarget(m,g))}}function QJ(e,t){return t?(t[e]||t.default||t).from:void 0}function JJ(e,t,n){var i;const o={};for(const s in e){const u=QJ(s,t);o[s]=u!==void 0?u:(i=n.getValue(s))===null||i===void 0?void 0:i.get()}return o}function TS(e){return Boolean($u(e)&&e.add)}function eee(e,t,n={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const o=t.map(s=>mE(e,s,n));i=Promise.all(o)}else if(typeof t=="string")i=mE(e,t,n);else{const o=typeof t=="function"?w3(e,t,n.custom):t;i=I$(e,o,n)}return i.then(()=>e.notifyAnimationComplete(t))}function mE(e,t,n={}){var i;const o=w3(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const u=o?()=>I$(e,o,n):()=>Promise.resolve(),p=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:C}=s;return tee(e,t,g+v,b,C,n)}:()=>Promise.resolve(),{when:m}=s;if(m){const[v,g]=m==="beforeChildren"?[u,p]:[p,u];return v().then(g)}else return Promise.all([u(),p(n.delay)])}function I$(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:u=e.getDefaultTransition(),transitionEnd:p,...m}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(u=i);const g=[],b=o&&((s=e.animationState)===null||s===void 0?void 0:s.getState()[o]);for(const C in m){const w=e.getValue(C),T=m[C];if(!w||T===void 0||b&&ree(b,C))continue;let A={delay:n,...u};e.shouldReduceMotion&&Rb.has(C)&&(A={...A,type:!1,delay:0});let k=y_(C,w,T,A);TS(v)&&(v.add(C),k=k.then(()=>v.remove(C))),g.push(k)}return Promise.all(g).then(()=>{p&&KJ(e,p)})}function tee(e,t,n=0,i=0,o=1,s){const u=[],p=(e.variantChildren.size-1)*i,m=o===1?(v=0)=>v*i:(v=0)=>p-v*i;return Array.from(e.variantChildren).sort(nee).forEach((v,g)=>{u.push(mE(v,t,{...s,delay:n+m(g)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(u)}function nee(e,t){return e.sortNodePosition(t)}function ree({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}const C_=[Er.Animate,Er.InView,Er.Focus,Er.Hover,Er.Tap,Er.Drag,Er.Exit],iee=[...C_].reverse(),aee=C_.length;function oee(e){return t=>Promise.all(t.map(({animation:n,options:i})=>eee(e,n,i)))}function see(e){let t=oee(e);const n=uee();let i=!0;const o=(m,v)=>{const g=w3(e,v);if(g){const{transition:b,transitionEnd:C,...w}=g;m={...m,...w,...C}}return m};function s(m){t=m(e)}function u(m,v){var g;const b=e.getProps(),C=e.getVariantContext(!0)||{},w=[],T=new Set;let A={},k=1/0;for(let D=0;D<aee;D++){const P=iee[D],F=n[P],z=(g=b[P])!==null&&g!==void 0?g:C[P],q=tb(z),Y=P===v?F.isActive:null;Y===!1&&(k=D);let Q=z===C[P]&&z!==b[P]&&q;if(Q&&i&&e.manuallyAnimateOnMount&&(Q=!1),F.protectedKeys={...A},!F.isActive&&Y===null||!z&&!F.prevProp||m3(z)||typeof z=="boolean")continue;const ie=lee(F.prevProp,z);let ae=ie||P===v&&F.isActive&&!Q&&q||D>k&&q;const pe=Array.isArray(z)?z:[z];let $e=pe.reduce(o,{});Y===!1&&($e={});const{prevResolvedValues:te={}}=F,ee={...te,...$e},be=Ce=>{ae=!0,T.delete(Ce),F.needsAnimating[Ce]=!0};for(const Ce in ee){const K=$e[Ce],le=te[Ce];A.hasOwnProperty(Ce)||(K!==le?ib(K)&&ib(le)?!O$(K,le)||ie?be(Ce):F.protectedKeys[Ce]=!0:K!==void 0?be(Ce):T.add(Ce):K!==void 0&&T.has(Ce)?be(Ce):F.protectedKeys[Ce]=!0)}F.prevProp=z,F.prevResolvedValues=$e,F.isActive&&(A={...A,...$e}),i&&e.blockInitialAnimation&&(ae=!1),ae&&!Q&&w.push(...pe.map(Ce=>({animation:Ce,options:{type:P,...m}})))}if(T.size){const D={};T.forEach(P=>{const F=e.getBaseTarget(P);F!==void 0&&(D[P]=F)}),w.push({animation:D})}let I=Boolean(w.length);return i&&b.initial===!1&&!e.manuallyAnimateOnMount&&(I=!1),i=!1,I?t(w):Promise.resolve()}function p(m,v,g){var b;if(n[m].isActive===v)return Promise.resolve();(b=e.variantChildren)===null||b===void 0||b.forEach(w=>{var T;return(T=w.animationState)===null||T===void 0?void 0:T.setActive(m,v)}),n[m].isActive=v;const C=u(g,m);for(const w in n)n[w].protectedKeys={};return C}return{animateChanges:u,setActive:p,setAnimateFunction:s,getState:()=>n}}function lee(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!O$(t,e):!1}function Gp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uee(){return{[Er.Animate]:Gp(!0),[Er.InView]:Gp(),[Er.Hover]:Gp(),[Er.Tap]:Gp(),[Er.Drag]:Gp(),[Er.Focus]:Gp(),[Er.Exit]:Gp()}}const cee={animation:sd(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=see(e)),m3(t)&&E.exports.useEffect(()=>t.subscribe(e),[t])}),exit:sd(e=>{const{custom:t,visualElement:n}=e,[i,o]=h_(),s=E.exports.useContext(Yv);E.exports.useEffect(()=>{n.isPresent=i;const u=n.animationState&&n.animationState.setActive(Er.Exit,!i,{custom:s&&s.custom||t});u&&!i&&u.then(o)},[i])})};class $${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=O6(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=d_(v.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:C}=v,{timestamp:w}=pE();this.history.push({...C,timestamp:w});const{onStart:T,onMove:A}=this.handlers;g||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,v)},this.handlePointerMove=(v,g)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=A6(g,this.transformPagePoint),r$(v)&&v.buttons===0){this.handlePointerUp(v,g);return}Mu.update(this.updatePoint,!0)},this.handlePointerUp=(v,g)=>{this.end();const{onEnd:b,onSessionEnd:C}=this.handlers,w=O6(A6(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,w),C&&C(v,w)},i$(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=i;const o=i_(t),s=A6(o,this.transformPagePoint),{point:u}=s,{timestamp:p}=pE();this.history=[{...u,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,O6(s,this.history)),this.removeListeners=y3(Nv(window,"pointermove",this.handlePointerMove),Nv(window,"pointerup",this.handlePointerUp),Nv(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),lb.update(this.updatePoint)}}function A6(e,t){return t?{point:t(e.point)}:e}function nk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function O6({point:e},t){return{point:e,delta:nk(e,F$(t)),offset:nk(e,fee(t)),velocity:dee(t,.1)}}function fee(e){return e[0]}function F$(e){return e[e.length-1]}function dee(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=F$(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>_S(t)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(s===0)return{x:0,y:0};const u={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function ms(e){return e.max-e.min}function rk(e,t=0,n=.01){return d_(e,t)<n}function ik(e,t,n,i=.5){e.origin=i,e.originPoint=Xr(t.min,t.max,e.origin),e.scale=ms(n)/ms(t),(rk(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Xr(n.min,n.max,e.origin)-e.originPoint,(rk(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bg(e,t,n,i){ik(e.x,t.x,n.x,i?.originX),ik(e.y,t.y,n.y,i?.originY)}function ak(e,t,n){e.min=n.min+t.min,e.max=e.min+ms(t)}function pee(e,t,n){ak(e.x,t.x,n.x),ak(e.y,t.y,n.y)}function ok(e,t,n){e.min=t.min-n.min,e.max=e.min+ms(t)}function Ug(e,t,n){ok(e.x,t.x,n.x),ok(e.y,t.y,n.y)}function mee(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?Xr(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?Xr(n,e,i.max):Math.min(e,n)),e}function sk(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 hee(e,{top:t,left:n,bottom:i,right:o}){return{x:sk(e.x,n,o),y:sk(e.y,t,i)}}function lk(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 vee(e,t){return{x:lk(e.x,t.x),y:lk(e.y,t.y)}}function gee(e,t){let n=.5;const i=ms(e),o=ms(t);return o>i?n=ab(t.min,t.max-i,e.min):i>o&&(n=ab(e.min,e.max-o,t.min)),wS(0,1,n)}function bee(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 hE=.35;function yee(e=hE){return e===!1?e=0:e===!0&&(e=hE),{x:uk(e,"left","right"),y:uk(e,"top","bottom")}}function uk(e,t,n){return{min:ck(e,t),max:ck(e,n)}}function ck(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const fk=()=>({translate:0,scale:1,origin:0,originPoint:0}),jg=()=>({x:fk(),y:fk()}),dk=()=>({min:0,max:0}),Sa=()=>({x:dk(),y:dk()});function Cu(e){return[e("x"),e("y")]}function z$({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function xee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function See(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 L6(e){return e===void 0||e===1}function B$({scale:e,scaleX:t,scaleY:n}){return!L6(e)||!L6(t)||!L6(n)}function ed(e){return B$(e)||pk(e.x)||pk(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function pk(e){return e&&e!=="0%"}function RS(e,t,n){const i=e-n,o=t*i;return n+o}function mk(e,t,n,i,o){return o!==void 0&&(e=RS(e,o,i)),RS(e,n,i)+t}function vE(e,t=0,n=1,i,o){e.min=mk(e.min,t,n,i,o),e.max=mk(e.max,t,n,i,o)}function U$(e,{x:t,y:n}){vE(e.x,t.translate,t.scale,t.originPoint),vE(e.y,n.translate,n.scale,n.originPoint)}function Cee(e,t,n,i=!1){var o,s;const u=n.length;if(!u)return;t.x=t.y=1;let p,m;for(let v=0;v<u;v++)p=n[v],m=p.projectionDelta,((s=(o=p.instance)===null||o===void 0?void 0:o.style)===null||s===void 0?void 0:s.display)!=="contents"&&(i&&p.options.layoutScroll&&p.scroll&&p!==p.root&&xv(e,{x:-p.scroll.x,y:-p.scroll.y}),m&&(t.x*=m.x.scale,t.y*=m.y.scale,U$(e,m)),i&&ed(p.latestValues)&&xv(e,p.latestValues))}function nd(e,t){e.min=e.min+t,e.max=e.max+t}function hk(e,t,[n,i,o]){const s=t[o]!==void 0?t[o]:.5,u=Xr(e.min,e.max,s);vE(e,t[n],t[i],u,t.scale)}const wee=["x","scaleX","originX"],Nee=["y","scaleY","originY"];function xv(e,t){hk(e.x,t,wee),hk(e.y,t,Nee)}function j$(e,t){return z$(See(e.getBoundingClientRect(),t))}function Eee(e,t,n){const i=j$(e,n),{scroll:o}=t;return o&&(nd(i.x,o.x),nd(i.y,o.y)),i}const _ee=new WeakMap;class Tee{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(i_(p,"page").point)},o=(p,m)=>{var v;const{drag:g,dragPropagation:b,onDragStart:C}=this.getProps();g&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=l$(g),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Cu(w=>{var T,A;let k=this.getAxisMotionValue(w).get()||0;if(ku.test(k)){const I=(A=(T=this.visualElement.projection)===null||T===void 0?void 0:T.layout)===null||A===void 0?void 0:A.actual[w];I&&(k=ms(I)*(parseFloat(k)/100))}this.originPoint[w]=k}),C?.(p,m),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(Er.Drag,!0))},s=(p,m)=>{const{dragPropagation:v,dragDirectionLock:g,onDirectionLock:b,onDrag:C}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:w}=m;if(g&&this.currentDirection===null){this.currentDirection=Ree(w),this.currentDirection!==null&&b?.(this.currentDirection);return}this.updateAxis("x",m.point,w),this.updateAxis("y",m.point,w),this.visualElement.syncRender(),C?.(p,m)},u=(p,m)=>this.stop(p,m);this.panSession=new $$(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u},{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:s}=this.getProps();s?.(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||!c5(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=mee(u,this.constraints[t],this.elastic[t])),s.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:i}=this.visualElement.projection||{},o=this.constraints;t&&yv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=hee(i.actual,t):this.constraints=!1,this.elastic=yee(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Cu(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=bee(i.actual[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!yv(t))return!1;const i=t.current;Xs(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 s=Eee(i,o.root,this.visualElement.getTransformPagePoint());let u=vee(o.layout.actual,s);if(n){const p=n(xee(u));this.hasMutatedConstraints=!!p,p&&(u=z$(p))}return u}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:s,dragSnapToOrigin:u,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},v=Cu(g=>{var b;if(!c5(g,n,this.currentDirection))return;let C=(b=m?.[g])!==null&&b!==void 0?b:{};u&&(C={min:0,max:0});const w=o?200:1e6,T=o?40:1e7,A={type:"inertia",velocity:i?t[g]:0,bounceStiffness:w,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...s,...C};return this.startAxisValueAnimation(g,A)});return Promise.all(v).then(p)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return y_(t,i,0,n)}stopAnimation(){Cu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,i;const o="_drag"+t.toUpperCase(),s=this.visualElement.getProps()[o];return s||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){Cu(n=>{const{drag:i}=this.getProps();if(!c5(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:p}=o.layout.actual[n];s.set(t[n]-Xr(u,p,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!yv(i)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Cu(p=>{const m=this.getAxisMotionValue(p);if(m){const v=m.get();s[p]=gee({min:v,max:v},this.constraints[p])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=u?u({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Cu(p=>{if(!c5(p,n,null))return;const m=this.getAxisMotionValue(p),{min:v,max:g}=this.constraints[p];m.set(Xr(v,g,s[p]))})}addListeners(){var t;_ee.set(this.visualElement,this);const n=this.visualElement.getInstance(),i=Nv(n,"pointerdown",v=>{const{drag:g,dragListener:b=!0}=this.getProps();g&&b&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();yv(v)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,u=s.addEventListener("measure",o);s&&!s.layout&&((t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout()),o();const p=g3(window,"resize",()=>this.scalePositionWithinConstraints()),m=s.addEventListener("didUpdate",({delta:v,hasLayoutChanged:g})=>{this.isDragging&&g&&(Cu(b=>{const C=this.getAxisMotionValue(b);!C||(this.originPoint[b]+=v[b].translate,C.set(C.get()+v[b].translate))}),this.visualElement.syncRender())});return()=>{p(),i(),u(),m?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:u=hE,dragMomentum:p=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:s,dragElastic:u,dragMomentum:p}}}function c5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ree(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Aee(e){const{dragControls:t,visualElement:n}=e,i=v3(()=>new Tee(n));E.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),E.exports.useEffect(()=>i.addListeners(),[i])}function Oee({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:i,visualElement:o}){const s=e||t||n||i,u=E.exports.useRef(null),{transformPagePoint:p}=E.exports.useContext(K8),m={onSessionStart:i,onStart:t,onMove:e,onEnd:(g,b)=>{u.current=null,n&&n(g,b)}};E.exports.useEffect(()=>{u.current!==null&&u.current.updateHandlers(m)});function v(g){u.current=new $$(g,m,{transformPagePoint:p})}CS(o,"pointerdown",s&&v),a_(()=>u.current&&u.current.end())}const Lee={pan:sd(Oee),drag:sd(Aee)},gE={current:null},V$={current:!1};function kee(){if(V$.current=!0,!!xm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gE.current=e.matches;e.addListener(t),t()}else gE.current=!1}const f5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Mee(){const e=f5.map(()=>new zg),t={},n={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{f5.forEach(o=>{var s;const u="on"+o,p=i[u];(s=t[o])===null||s===void 0||s.call(t),p&&(t[o]=n[u](p))})}};return e.forEach((i,o)=>{n["on"+f5[o]]=s=>i.add(s),n["notify"+f5[o]]=(...s)=>i.notify(...s)}),n}function Dee(e,t,n){const{willChange:i}=t;for(const o in t){const s=t[o],u=n[o];if($u(s))e.addValue(o,s),TS(i)&&i.add(o),m_(s.version==="7.3.5",`Attempting to mix Framer Motion versions ${s.version} with 7.3.5 may not work as expected.`);else if($u(u))e.addValue(o,Pv(s)),TS(i)&&i.remove(o);else if(u!==s)if(e.hasValue(o)){const p=e.getValue(o);!p.hasAnimated&&p.set(s)}else{const p=e.getStaticValue(o);e.addValue(o,Pv(p!==void 0?p:s))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const H$=Object.keys(nb),Pee=H$.length,W$=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:i,measureViewportBox:o,render:s,readValueFromInstance:u,removeValueFromRenderState:p,sortNodePosition:m,scrapeMotionValuesFromProps:v})=>({parent:g,props:b,presenceId:C,blockInitialAnimation:w,visualState:T,reducedMotionConfig:A},k={})=>{let I=!1;const{latestValues:D,renderState:P}=T;let F;const z=Mee(),q=new Map,Y=new Map;let Q={};const ie={...D};let ae;function pe(){!F||!I||($e(),s(F,P,b.style,ve.projection))}function $e(){t(ve,P,D,k,b)}function te(){z.notifyUpdate(D)}function ee(de,we){const Le=we.onChange(Ze=>{D[de]=Ze,b.onUpdate&&Mu.update(te,!1,!0)}),Me=we.onRenderRequest(ve.scheduleRender);Y.set(de,()=>{Le(),Me()})}const{willChange:be,...Ce}=v(b);for(const de in Ce){const we=Ce[de];D[de]!==void 0&&$u(we)&&(we.set(D[de],!1),TS(be)&&be.add(de))}const K=h3(b),le=DI(b),ve={treeType:e,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,presenceId:C,shouldReduceMotion:null,variantChildren:le?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(g?.isMounted()),blockInitialAnimation:w,isMounted:()=>Boolean(F),mount(de){I=!0,F=ve.current=de,ve.projection&&ve.projection.mount(de),le&&g&&!K&&(ae=g?.addVariantChild(ve)),q.forEach((we,Le)=>ee(Le,we)),V$.current||kee(),ve.shouldReduceMotion=A==="never"?!1:A==="always"?!0:gE.current,g?.children.add(ve),ve.setProps(b)},unmount(){var de;(de=ve.projection)===null||de===void 0||de.unmount(),lb.update(te),lb.render(pe),Y.forEach(we=>we()),ae?.(),g?.children.delete(ve),z.clearAllListeners(),F=void 0,I=!1},loadFeatures(de,we,Le,Me,Ze,Je){const it=[];p_!=="production"&&Le&&we&&Xs(!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 Rt=0;Rt<Pee;Rt++){const Ve=H$[Rt],{isEnabled:at,Component:St}=nb[Ve];at(de)&&St&&it.push(E.exports.createElement(St,{key:Ve,...de,visualElement:ve}))}if(!ve.projection&&Ze){ve.projection=new Ze(Me,ve.getLatestValues(),g&&g.projection);const{layoutId:Rt,layout:Ve,drag:at,dragConstraints:St,layoutScroll:Dt}=de;ve.projection.setOptions({layoutId:Rt,layout:Ve,alwaysMeasureLayout:Boolean(at)||St&&yv(St),visualElement:ve,scheduleRender:()=>ve.scheduleRender(),animationType:typeof Ve=="string"?Ve:"both",initialPromotionConfig:Je,layoutScroll:Dt})}return it},addVariantChild(de){var we;const Le=ve.getClosestVariantNode();if(Le)return(we=Le.variantChildren)===null||we===void 0||we.add(de),()=>Le.variantChildren.delete(de)},sortNodePosition(de){return!m||e!==de.treeType?0:m(ve.getInstance(),de.getInstance())},getClosestVariantNode:()=>le?ve:g?.getClosestVariantNode(),getLayoutId:()=>b.layoutId,getInstance:()=>F,getStaticValue:de=>D[de],setStaticValue:(de,we)=>D[de]=we,getLatestValues:()=>D,setVisibility(de){ve.isVisible!==de&&(ve.isVisible=de,ve.scheduleRender())},makeTargetAnimatable(de,we=!0){return i(ve,de,b,we)},measureViewportBox(){return o(F,b)},addValue(de,we){ve.hasValue(de)&&ve.removeValue(de),q.set(de,we),D[de]=we.get(),ee(de,we)},removeValue(de){var we;q.delete(de),(we=Y.get(de))===null||we===void 0||we(),Y.delete(de),delete D[de],p(de,P)},hasValue:de=>q.has(de),getValue(de,we){let Le=q.get(de);return Le===void 0&&we!==void 0&&(Le=Pv(we),ve.addValue(de,Le)),Le},forEachValue:de=>q.forEach(de),readValue:de=>D[de]!==void 0?D[de]:u(F,de,k),setBaseTarget(de,we){ie[de]=we},getBaseTarget(de){if(n){const we=n(b,de);if(we!==void 0&&!$u(we))return we}return ie[de]},...z,build(){return $e(),P},scheduleRender(){Mu.render(pe,!1,!0)},syncRender:pe,setProps(de){(de.transformTemplate||b.transformTemplate)&&ve.scheduleRender(),b=de,z.updatePropListeners(de),Q=Dee(ve,v(b),Q)},getProps:()=>b,getVariant:de=>{var we;return(we=b.variants)===null||we===void 0?void 0:we[de]},getDefaultTransition:()=>b.transition,getTransformPagePoint:()=>b.transformPagePoint,getVariantContext(de=!1){if(de)return g?.getVariantContext();if(!K){const Le=g?.getVariantContext()||{};return b.initial!==void 0&&(Le.initial=b.initial),Le}const we={};for(let Le=0;Le<Iee;Le++){const Me=G$[Le],Ze=b[Me];(tb(Ze)||Ze===!1)&&(we[Me]=Ze)}return we}};return ve},G$=["initial",...C_],Iee=G$.length;function bE(e){return typeof e=="string"&&e.startsWith("var(--")}const Y$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $ee(e){const t=Y$.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}const Fee=4;function yE(e,t,n=1){Xs(n<=Fee,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=$ee(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():bE(o)?yE(o,t,n+1):o}function zee(e,{...t},n){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const s=o.get();if(!bE(s))return;const u=yE(s,i);u&&o.set(u)});for(const o in t){const s=t[o];if(!bE(s))continue;const u=yE(s,i);!u||(t[o]=u,n&&n[o]===void 0&&(n[o]=s))}return{target:t,transitionEnd:n}}const Bee=new Set(["width","height","top","left","right","bottom","x","y"]),q$=e=>Bee.has(e),Uee=e=>Object.keys(e).some(q$),Z$=(e,t)=>{e.set(t,!1),e.set(t)},d5=e=>e===Sm||e===Xt;var vk;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(vk||(vk={}));const gk=(e,t)=>parseFloat(e.split(", ")[t]),bk=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return gk(o[1],t);{const s=i.match(/^matrix\((.+)\)$/);return s?gk(s[1],e):0}},jee=new Set(["x","y","z"]),Vee=xS.filter(e=>!jee.has(e));function Hee(e){const t=[];return Vee.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 yk={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:bk(4,13),y:bk(5,14)},Wee=(e,t,n)=>{const i=t.measureViewportBox(),o=t.getInstance(),s=getComputedStyle(o),{display:u}=s,p={};u==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(v=>{p[v]=yk[v](i,s)}),t.syncRender();const m=t.measureViewportBox();return n.forEach(v=>{const g=t.getValue(v);Z$(g,p[v]),e[v]=yk[v](m,s)}),e},Gee=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(q$);let s=[],u=!1;const p=[];if(o.forEach(m=>{const v=e.getValue(m);if(!e.hasValue(m))return;let g=n[m],b=gg(g);const C=t[m];let w;if(ib(C)){const T=C.length,A=C[0]===null?1:0;g=C[A],b=gg(g);for(let k=A;k<T;k++)w?Xs(gg(C[k])===w,"All keyframes must be of the same type"):(w=gg(C[k]),Xs(w===b||d5(b)&&d5(w),"Keyframes must be of the same dimension as the current value"))}else w=gg(C);if(b!==w)if(d5(b)&&d5(w)){const T=v.get();typeof T=="string"&&v.set(parseFloat(T)),typeof C=="string"?t[m]=parseFloat(C):Array.isArray(C)&&w===Xt&&(t[m]=C.map(parseFloat))}else b?.transform&&w?.transform&&(g===0||C===0)?g===0?v.set(w.transform(g)):t[m]=b.transform(C):(u||(s=Hee(e),u=!0),p.push(m),i[m]=i[m]!==void 0?i[m]:t[m],Z$(v,C))}),p.length){const m=p.indexOf("height")>=0?window.pageYOffset:null,v=Wee(t,e,p);return s.length&&s.forEach(([g,b])=>{e.getValue(g).set(b)}),e.syncRender(),xm&&m!==null&&window.scrollTo({top:m}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function Yee(e,t,n,i){return Uee(t)?Gee(e,t,n,i):{target:t,transitionEnd:i}}const qee=(e,t,n,i)=>{const o=zee(e,t,i);return t=o.target,i=o.transitionEnd,Yee(e,t,n,i)};function Zee(e){return window.getComputedStyle(e)}const K$={treeType:"dom",readValueFromInstance(e,t){if(Rb.has(t)){const n=v_(t);return n&&n.default||0}else{const n=Zee(e),i=($I(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 j$(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},s=!0){let u=JJ(i,t||{},e);if(o&&(n&&(n=o(n)),i&&(i=o(i)),u&&(u=o(u))),s){XJ(e,i,u);const p=qee(e,i,u,n);n=p.transitionEnd,i=p.target}return{transition:t,transitionEnd:n,...i}},scrapeMotionValuesFromProps:r_,build(e,t,n,i,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),e_(t,n,i,o.transformTemplate)},render:KI},Kee=W$(K$),Xee=W$({...K$,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Rb.has(t)?((n=v_(t))===null||n===void 0?void 0:n.default)||0:(t=XI.has(t)?t:ZI(t),e.getAttribute(t))},scrapeMotionValuesFromProps:JI,build(e,t,n,i,o){n_(t,n,i,o.transformTemplate)},render:QI}),Qee=(e,t)=>Q8(e)?Xee(t,{enableHardwareAcceleration:!1}):Kee(t,{enableHardwareAcceleration:!0});function xk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bg={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Xt.test(e))e=parseFloat(e);else return e;const n=xk(e,t.target.x),i=xk(e,t.target.y);return`${n}% ${i}%`}},Sk="_$css",Jee={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=e.includes("var("),s=[];o&&(e=e.replace(Y$,w=>(s.push(w),Sk)));const u=Fc.parse(e);if(u.length>5)return i;const p=Fc.createTransformer(e),m=typeof u[0]!="number"?1:0,v=n.x.scale*t.x,g=n.y.scale*t.y;u[0+m]/=v,u[1+m]/=g;const b=Xr(v,g,.5);typeof u[2+m]=="number"&&(u[2+m]/=b),typeof u[3+m]=="number"&&(u[3+m]/=b);let C=p(u);if(o){let w=0;C=C.replace(Sk,()=>{const T=s[w];return w++,T})}return C}};var ete="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class tte extends _e.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=t;pX(rte),s&&(n.group&&n.group.add(s),i&&i.register&&o&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Ig.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:s}=this.props,u=i.projection;return u&&(u.isPresent=s,o||t.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?u.promote():u.relegate()||Mu.postRender(()=>{var p;!((p=u.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 nte(e){const[t,n]=h_(),i=E.exports.useContext(X8);return N(tte,{...e,layoutGroup:i,switchLayoutGroup:E.exports.useContext(PI),isPresent:t,safeToRemove:n},void 0,!1,{fileName:ete,lineNumber:110,columnNumber:13},this)}const rte={borderRadius:{...bg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bg,borderTopRightRadius:bg,borderBottomLeftRadius:bg,borderBottomRightRadius:bg,boxShadow:Jee},ite={measureLayout:nte};function ate(e,t,n={}){const i=$u(e)?e:Pv(e);return y_("",i,t,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const X$=["TopLeft","TopRight","BottomLeft","BottomRight"],ote=X$.length,Ck=e=>typeof e=="string"?parseFloat(e):e,wk=e=>typeof e=="number"||Xt.test(e);function ste(e,t,n,i,o,s){var u,p,m,v;o?(e.opacity=Xr(0,(u=n.opacity)!==null&&u!==void 0?u:1,lte(i)),e.opacityExit=Xr((p=t.opacity)!==null&&p!==void 0?p:1,0,ute(i))):s&&(e.opacity=Xr((m=t.opacity)!==null&&m!==void 0?m:1,(v=n.opacity)!==null&&v!==void 0?v:1,i));for(let g=0;g<ote;g++){const b=`border${X$[g]}Radius`;let C=Nk(t,b),w=Nk(n,b);if(C===void 0&&w===void 0)continue;C||(C=0),w||(w=0),C===0||w===0||wk(C)===wk(w)?(e[b]=Math.max(Xr(Ck(C),Ck(w),i),0),(ku.test(w)||ku.test(C))&&(e[b]+="%")):e[b]=w}(t.rotate||n.rotate)&&(e.rotate=Xr(t.rotate||0,n.rotate||0,i))}function Nk(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const lte=Q$(0,.5,c_),ute=Q$(.5,.95,l_);function Q$(e,t,n){return i=>i<e?0:i>t?1:n(ab(e,t,i))}function Ek(e,t){e.min=t.min,e.max=t.max}function $l(e,t){Ek(e.x,t.x),Ek(e.y,t.y)}function _k(e,t,n,i,o){return e-=t,e=RS(e,1/n,i),o!==void 0&&(e=RS(e,1/o,i)),e}function cte(e,t=0,n=1,i=.5,o,s=e,u=e){if(ku.test(t)&&(t=parseFloat(t),t=Xr(u.min,u.max,t/100)-u.min),typeof t!="number")return;let p=Xr(s.min,s.max,i);e===s&&(p-=t),e.min=_k(e.min,t,n,p,o),e.max=_k(e.max,t,n,p,o)}function Tk(e,t,[n,i,o],s,u){cte(e,t[n],t[i],t[o],t.scale,s,u)}const fte=["x","scaleX","originX"],dte=["y","scaleY","originY"];function Rk(e,t,n,i){Tk(e.x,t,fte,n?.x,i?.x),Tk(e.y,t,dte,n?.y,i?.y)}function Ak(e){return e.translate===0&&e.scale===1}function J$(e){return Ak(e.x)&&Ak(e.y)}function eF(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 Ok(e){return ms(e.x)/ms(e.y)}function pte(e,t,n=.01){return d_(e,t)<=n}class mte{constructor(){this.members=[]}add(t){x_(this.members,t),t.scheduleRender()}remove(t){if(S_(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 s=this.members[o];if(s.isPresent!==!1){i=s;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:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,o,s,u;(i=(n=t.options).onExitComplete)===null||i===void 0||i.call(n),(u=(o=t.resumingFrom)===null||o===void 0?void 0:(s=o.options).onExitComplete)===null||u===void 0||u.call(s)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const hte="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Lk(e,t,n){const i=e.x.translate/t.x,o=e.y.translate/t.y;let s=`translate3d(${i}px, ${o}px, 0) `;if(s+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:m,rotateX:v,rotateY:g}=n;m&&(s+=`rotate(${m}deg) `),v&&(s+=`rotateX(${v}deg) `),g&&(s+=`rotateY(${g}deg) `)}const u=e.x.scale*t.x,p=e.y.scale*t.y;return s+=`scale(${u}, ${p})`,s===hte?"none":s}const vte=(e,t)=>e.depth-t.depth;class gte{constructor(){this.children=[],this.isDirty=!1}add(t){x_(this.children,t),this.isDirty=!0}remove(t){S_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vte),this.isDirty=!1,this.children.forEach(t)}}const kk=["","X","Y","Z"],Mk=1e3;function tF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u,p={},m=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(wte),this.nodes.forEach(Nte)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=p,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0,u&&this.root.registerPotentialNode(u,this);for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new gte)}addEventListener(u,p){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new zg),this.eventHandlers.get(u).add(p)}notifyListeners(u,...p){const m=this.eventHandlers.get(u);m?.notify(...p)}hasListeners(u){return this.eventHandlers.has(u)}registerPotentialNode(u,p){this.potentialNodes.set(u,p)}mount(u,p=!1){var m;if(this.instance)return;this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;const{layoutId:v,layout:g,visualElement:b}=this.options;if(b&&!b.getInstance()&&b.mount(u),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),p&&(g||v)&&(this.isLayoutDirty=!0),e){let C;const w=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,clearTimeout(C),C=window.setTimeout(w,250),Ig.hasAnimatedSinceResize&&(Ig.hasAnimatedSinceResize=!1,this.nodes.forEach(Cte))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&b&&(v||g)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:w,hasRelativeTargetChanged:T,layout:A})=>{var k,I,D,P,F;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=(I=(k=this.options.transition)!==null&&k!==void 0?k:b.getDefaultTransition())!==null&&I!==void 0?I:Ate,{onLayoutAnimationStart:q,onLayoutAnimationComplete:Y}=b.getProps(),Q=!this.targetLayout||!eF(this.targetLayout,A)||T,ie=!w&&T;if(((D=this.resumeFrom)===null||D===void 0?void 0:D.instance)||ie||w&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,ie);const ae={...b_(z,"layout"),onPlay:q,onComplete:Y};b.shouldReduceMotion&&(ae.delay=0,ae.type=!1),this.startAnimation(ae)}else!w&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((F=(P=this.options).onExitComplete)===null||F===void 0||F.call(P));this.targetLayout=A})}unmount(){var u,p;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(p=this.parent)===null||p===void 0||p.children.delete(this),this.instance=void 0,lb.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var u;return this.isAnimationBlocked||((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimationBlocked())||!1}startUpdate(){var u;this.isUpdateBlocked()||(this.isUpdating=!0,(u=this.nodes)===null||u===void 0||u.forEach(Ete))}willUpdate(u=!0){var p,m,v;if(this.root.isUpdateBlocked()){(m=(p=this.options).onExitComplete)===null||m===void 0||m.call(p);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const T=this.path[w];T.shouldResetTransform=!0,T.updateScroll()}const{layoutId:g,layout:b}=this.options;if(g===void 0&&!b)return;const C=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=C?.(this.latestValues,""),this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Dk);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ote),this.potentialNodes.clear()),this.nodes.forEach(Ste),this.nodes.forEach(bte),this.nodes.forEach(yte),this.clearAllSnapshots(),R6.update(),R6.preRender(),R6.render())}clearAllSnapshots(){this.nodes.forEach(xte),this.sharedNodes.forEach(_te)}scheduleUpdateProjection(){Mu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Mu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const u=this.measure(),p=this.removeTransform(this.removeElementScroll(u));Fk(p),this.snapshot={measured:u,layout:p,latestValues:{}}}updateLayout(){var u;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();Fk(p);const m=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),(u=this.options.visualElement)===null||u===void 0||u.notifyLayoutMeasure(this.layout.actual,m?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))}resetTransform(){var u;if(!o)return;const p=this.isLayoutDirty||this.shouldResetTransform,m=this.projectionDelta&&!J$(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,g=v?.(this.latestValues,""),b=g!==this.prevTransformTemplateValue;p&&(m||ed(this.latestValues)||b)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:u}=this.options;if(!u)return Sa();const p=u.measureViewportBox(),{scroll:m}=this.root;return m&&(nd(p.x,m.x),nd(p.y,m.y)),p}removeElementScroll(u){const p=Sa();$l(p,u);for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:g,options:b,isScrollRoot:C}=v;if(v!==this.root&&g&&b.layoutScroll){if(C){$l(p,u);const{scroll:w}=this.root;w&&(nd(p.x,-w.x),nd(p.y,-w.y))}nd(p.x,g.x),nd(p.y,g.y)}}return p}applyTransform(u,p=!1){const m=Sa();$l(m,u);for(let v=0;v<this.path.length;v++){const g=this.path[v];!p&&g.options.layoutScroll&&g.scroll&&g!==g.root&&xv(m,{x:-g.scroll.x,y:-g.scroll.y}),ed(g.latestValues)&&xv(m,g.latestValues)}return ed(this.latestValues)&&xv(m,this.latestValues),m}removeTransform(u){var p;const m=Sa();$l(m,u);for(let v=0;v<this.path.length;v++){const g=this.path[v];if(!g.instance||!ed(g.latestValues))continue;B$(g.latestValues)&&g.updateSnapshot();const b=Sa(),C=g.measure();$l(b,C),Rk(m,g.latestValues,(p=g.snapshot)===null||p===void 0?void 0:p.layout,b)}return ed(this.latestValues)&&Rk(m,this.latestValues),m}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection()}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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 u;const{layout:p,layoutId:m}=this.options;!this.layout||!(p||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Sa(),this.relativeTargetOrigin=Sa(),Ug(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),$l(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Sa(),this.targetWithTransforms=Sa()),this.relativeTarget&&this.relativeTargetOrigin&&((u=this.relativeParent)===null||u===void 0?void 0:u.target)?pee(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):$l(this.target,this.layout.actual),U$(this.target,this.targetDelta)):$l(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(),Ug(this.relativeTargetOrigin,this.target,this.relativeParent.target),$l(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||ed(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var u;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=Boolean(((u=this.parent)===null||u===void 0?void 0:u.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;const v=this.getLead();$l(this.layoutCorrected,this.layout.actual),Cee(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:g}=v;if(!g)return;this.projectionDelta||(this.projectionDelta=jg(),this.projectionDeltaWithTransform=jg());const b=this.treeScale.x,C=this.treeScale.y,w=this.projectionTransform;Bg(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=Lk(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==b||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var p,m,v;(m=(p=this.options).scheduleRender)===null||m===void 0||m.call(p),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,p=!1){var m;const v=this.snapshot,g=v?.latestValues||{},b={...this.latestValues},C=jg();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;const w=Sa(),T=v?.isShared,A=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,k=Boolean(T&&!A&&this.options.crossfade===!0&&!this.path.some(Rte));this.animationProgress=0,this.mixTargetDelta=I=>{var D;const P=I/1e3;Pk(C.x,u.x,P),Pk(C.y,u.y,P),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((D=this.relativeParent)===null||D===void 0?void 0:D.layout)&&(Ug(w,this.layout.actual,this.relativeParent.layout.actual),Tte(this.relativeTarget,this.relativeTargetOrigin,w,P)),T&&(this.animationValues=b,ste(b,g,this.latestValues,P,k,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(0)}startAnimation(u){var p,m;this.notifyListeners("animationStart"),(p=this.currentAnimation)===null||p===void 0||p.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(lb.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mu.update(()=>{Ig.hasAnimatedSinceResize=!0,this.currentAnimation=ate(0,Mk,{...u,onUpdate:v=>{var g;this.mixTargetDelta(v),(g=u.onUpdate)===null||g===void 0||g.call(u,v)},onComplete:()=>{var v;(v=u.onComplete)===null||v===void 0||v.call(u),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var u;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(u=this.getStack())===null||u===void 0||u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var u;this.currentAnimation&&((u=this.mixTargetDelta)===null||u===void 0||u.call(this,Mk),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:p,target:m,layout:v,latestValues:g}=u;if(!(!p||!m||!v)){if(this!==u&&this.layout&&v&&nF(this.options.animationType,this.layout.actual,v.actual)){m=this.target||Sa();const b=ms(this.layout.actual.x);m.x.min=u.target.x.min,m.x.max=m.x.min+b;const C=ms(this.layout.actual.y);m.y.min=u.target.y.min,m.y.max=m.y.min+C}$l(p,m),xv(p,g),Bg(this.projectionDeltaWithTransform,this.layoutCorrected,p,g)}}registerSharedNode(u,p){var m,v,g;this.sharedNodes.has(u)||this.sharedNodes.set(u,new mte),this.sharedNodes.get(u).add(p),p.promote({transition:(m=p.options.initialPromotionConfig)===null||m===void 0?void 0:m.transition,preserveFollowOpacity:(g=(v=p.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(v,p)})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:p}=this.options;return p?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:p}=this.options;return p?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:p,preserveFollowOpacity:m}={}){const v=this.getStack();v&&v.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let p=!1;const m={};for(let v=0;v<kk.length;v++){const g=kk[v],b="rotate"+g;!u.getStaticValue(b)||(p=!0,m[b]=u.getStaticValue(b),u.setStaticValue(b,0))}if(!!p){u?.syncRender();for(const v in m)u.setStaticValue(v,m[v]);u.scheduleRender()}}getProjectionStyles(u={}){var p,m,v;const g={};if(!this.instance||this.isSVG)return g;if(this.isVisible)g.visibility="";else return{visibility:"hidden"};const b=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=H5(u.pointerEvents)||"",g.transform=b?b(this.latestValues,""):"none",g;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const k={};return this.options.layoutId&&(k.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,k.pointerEvents=H5(u.pointerEvents)||""),this.hasProjected&&!ed(this.latestValues)&&(k.transform=b?b({},""):"none",this.hasProjected=!1),k}const w=C.animationValues||C.latestValues;this.applyTransformsToTarget(),g.transform=Lk(this.projectionDeltaWithTransform,this.treeScale,w),b&&(g.transform=b(w,g.transform));const{x:T,y:A}=this.projectionDelta;g.transformOrigin=`${T.origin*100}% ${A.origin*100}% 0`,C.animationValues?g.opacity=C===this?(v=(m=w.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:g.opacity=C===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(const k in yS){if(w[k]===void 0)continue;const{correct:I,applyTo:D}=yS[k],P=I(w[k],C);if(D){const F=D.length;for(let z=0;z<F;z++)g[D[z]]=P}else g[k]=P}return this.options.layoutId&&(g.pointerEvents=C===this?H5(u.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var p;return(p=u.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(Dk),this.root.sharedNodes.clear()}}}function bte(e){e.updateLayout()}function yte(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:s,measured:u}=e.layout,{animationType:p}=e.options;p==="size"?Cu(C=>{const w=o.isShared?o.measured[C]:o.layout[C],T=ms(w);w.min=s[C].min,w.max=w.min+T}):nF(p,o.layout,s)&&Cu(C=>{const w=o.isShared?o.measured[C]:o.layout[C],T=ms(s[C]);w.max=w.min+T});const m=jg();Bg(m,s,o.layout);const v=jg();o.isShared?Bg(v,e.applyTransform(u,!0),o.measured):Bg(v,s,o.layout);const g=!J$(m);let b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:C,layout:w}=e.relativeParent;if(C&&w){const T=Sa();Ug(T,o.layout,C.layout);const A=Sa();Ug(A,s,w.actual),eF(T,A)||(b=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:v,layoutDelta:m,hasLayoutChanged:g,hasRelativeTargetChanged:b})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function xte(e){e.clearSnapshot()}function Dk(e){e.clearMeasurements()}function Ste(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Cte(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function wte(e){e.resolveTargetDelta()}function Nte(e){e.calcProjection()}function Ete(e){e.resetRotation()}function _te(e){e.removeLeadSnapshot()}function Pk(e,t,n){e.translate=Xr(t.translate,0,n),e.scale=Xr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ik(e,t,n,i){e.min=Xr(t.min,n.min,i),e.max=Xr(t.max,n.max,i)}function Tte(e,t,n,i){Ik(e.x,t.x,n.x,i),Ik(e.y,t.y,n.y,i)}function Rte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ate={duration:.45,ease:[.4,0,.1,1]};function Ote(e,t){let n=e.root;for(let s=e.path.length-1;s>=0;s--)if(Boolean(e.path[s].instance)){n=e.path[s];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function $k(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Fk(e){$k(e.x),$k(e.y)}function nF(e,t,n){return e==="position"||e==="preserve-aspect"&&!pte(Ok(t),Ok(n))}const Lte=tF({attachResizeListener:(e,t)=>g3(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),k6={current:void 0},kte=tF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!k6.current){const e=new Lte(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),k6.current=e}return k6.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Mte={...cee,...SJ,...Lee,...ite},rl=fX((e,t)=>KX(e,t,Mte,Qee,kte));function rF(){const e=E.exports.useRef(!1);return bS(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Dte(){const e=rF(),[t,n]=E.exports.useState(0),i=E.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[E.exports.useCallback(()=>Mu.postRender(i),[i]),t]}var Pte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class Ite extends E.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 $te({children:e,isPresent:t}){const n=E.exports.useId(),i=E.exports.useRef(null),o=E.exports.useRef({width:0,height:0,top:0,left:0});return E.exports.useInsertionEffect(()=>{const{width:s,height:u,top:p,left:m}=o.current;if(t||!i.current||!s||!u)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: ${s}px !important;
height: ${u}px !important;
top: ${p}px !important;
left: ${m}px !important;
}
`),()=>{document.head.removeChild(v)}},[t]),N(Ite,{isPresent:t,childRef:i,sizeRef:o,children:E.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:Pte,lineNumber:68,columnNumber:13},this)}var zk="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const M6=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:u})=>{const p=v3(Fte),m=E.exports.useId(),v=E.exports.useMemo(()=>({id:m,initial:t,isPresent:n,custom:o,onExitComplete:g=>{p.set(g,!0);for(const b of p.values())if(!b)return;i&&i()},register:g=>(p.set(g,!1),()=>p.delete(g))}),s?void 0:[n]);return E.exports.useMemo(()=>{p.forEach((g,b)=>p.set(b,!1))},[n]),E.exports.useEffect(()=>{!n&&!p.size&&i&&i()},[n]),u==="popLayout"&&(e=N($te,{isPresent:n,children:e},void 0,!1,{fileName:zk,lineNumber:48,columnNumber:20},globalThis)),N(Yv.Provider,{value:v,children:e},void 0,!1,{fileName:zk,lineNumber:50,columnNumber:13},globalThis)};function Fte(){return new Map}var D6="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const pv=e=>e.key||"";function zte(e,t){e.forEach(n=>{const i=pv(n);t.set(i,n)})}function Bte(e){const t=[];return E.exports.Children.forEach(e,n=>{E.exports.isValidElement(n)&&t.push(n)}),t}const Gc=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:u="sync"})=>{o&&(u="wait",m_(!1,"Replace exitBeforeEnter with mode='wait'"));let[p]=Dte();const m=E.exports.useContext(X8).forceRender;m&&(p=m);const v=rF(),g=Bte(e);let b=g;const C=new Set,w=E.exports.useRef(b),T=E.exports.useRef(new Map).current,A=E.exports.useRef(!0);if(bS(()=>{A.current=!1,zte(g,T),w.current=b}),a_(()=>{A.current=!0,T.clear(),C.clear()}),A.current)return N(ji,{children:b.map(P=>N(M6,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:u,children:P},pv(P),!1,{fileName:D6,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);b=[...b];const k=w.current.map(pv),I=g.map(pv),D=k.length;for(let P=0;P<D;P++){const F=k[P];I.indexOf(F)===-1&&C.add(F)}return u==="wait"&&C.size&&(b=[]),C.forEach(P=>{if(I.indexOf(P)!==-1)return;const F=T.get(P);if(!F)return;const z=k.indexOf(P),q=()=>{T.delete(P),C.delete(P);const Y=w.current.findIndex(Q=>Q.key===P);if(w.current.splice(Y,1),!C.size){if(w.current=g,v.current===!1)return;p(),i&&i()}};b.splice(z,0,N(M6,{isPresent:!1,onExitComplete:q,custom:t,presenceAffectsLayout:s,mode:u,children:F},pv(F),!1,{fileName:D6,lineNumber:143,columnNumber:52},globalThis))}),b=b.map(P=>{const F=P.key;return C.has(F)?P:N(M6,{isPresent:!0,presenceAffectsLayout:s,mode:u,children:P},pv(P),!1,{fileName:D6,lineNumber:149,columnNumber:46},globalThis)}),p_!=="production"&&u==="wait"&&b.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.`),N(ji,{children:C.size?b:b.map(P=>E.exports.cloneElement(P))},void 0,!1)};var Db="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",Pb=(...e)=>e.filter(Boolean).join(" ");function Ute(){return!0}var jte=e=>{const{condition:t,message:n}=e;t&&Ute()&&console.warn(n)},lm={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},yg={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 xE(e){switch(e?.direction??"right"){case"right":return yg.slideRight;case"left":return yg.slideLeft;case"bottom":return yg.slideDown;case"top":return yg.slideUp;default:return yg.slideRight}}var cm={enter:{duration:.2,ease:lm.easeOut},exit:{duration:.1,ease:lm.easeIn}},Vl={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},Vte=e=>e!=null&&parseInt(e.toString(),10)>0,Bk={exit:{height:{duration:.2,ease:lm.ease},opacity:{duration:.3,ease:lm.ease}},enter:{height:{duration:.3,ease:lm.ease},opacity:{duration:.4,ease:lm.ease}}},Hte={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:Vte(t)?1:0},height:t,transitionEnd:i?.exit,transition:n?.exit??Vl.exit(Bk.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:n?.enter??Vl.enter(Bk.enter,o)})},iF=E.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:i,animateOpacity:o=!0,startingHeight:s=0,endingHeight:u="auto",style:p,className:m,transition:v,transitionEnd:g,...b}=e,[C,w]=E.exports.useState(!1);E.exports.useEffect(()=>{const D=setTimeout(()=>{w(!0)});return()=>clearTimeout(D)},[]),jte({condition:Boolean(s>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const T=parseFloat(s.toString())>0,A={startingHeight:s,endingHeight:u,animateOpacity:o,transition:C?v:{enter:{duration:0}},transitionEnd:{enter:g?.enter,exit:i?g?.exit:{...g?.exit,display:T?"block":"none"}}},k=i?n:!0,I=n||i?"enter":"exit";return N(Gc,{initial:!1,custom:A,children:k&&_e.createElement(rl.div,{ref:t,...b,className:Pb("chakra-collapse",m),style:{overflow:"hidden",display:"block",...p},custom:A,variants:Hte,initial:i?"exit":!1,animate:I,exit:"exit"})},void 0,!1,{fileName:Db,lineNumber:190,columnNumber:26},globalThis)});iF.displayName="Collapse";var Wte={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Vl.enter(cm.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??Vl.exit(cm.exit,n),transitionEnd:t?.exit})},aF={initial:"exit",animate:"enter",exit:"exit",variants:Wte},Gte=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,className:s,transition:u,transitionEnd:p,delay:m,...v}=t,g=o||i?"enter":"exit",b=i?o&&i:!0,C={transition:u,transitionEnd:p,delay:m};return N(Gc,{custom:C,children:b&&_e.createElement(rl.div,{ref:n,className:Pb("chakra-fade",s),custom:C,...aF,animate:g,...v})},void 0,!1,{fileName:Db,lineNumber:248,columnNumber:26},this)});Gte.displayName="Fade";var Yte={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??Vl.exit(cm.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Vl.enter(cm.enter,n),transitionEnd:e?.enter})},oF={initial:"exit",animate:"enter",exit:"exit",variants:Yte},qte=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:s=!0,initialScale:u=.95,className:p,transition:m,transitionEnd:v,delay:g,...b}=t,C=i?o&&i:!0,w=o||i?"enter":"exit",T={initialScale:u,reverse:s,transition:m,transitionEnd:v,delay:g};return N(Gc,{custom:T,children:C&&_e.createElement(rl.div,{ref:n,className:Pb("chakra-offset-slide",p),...oF,animate:w,custom:T,...b})},void 0,!1,{fileName:Db,lineNumber:301,columnNumber:26},this)});qte.displayName="ScaleFade";var Uk={exit:{duration:.15,ease:lm.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},Zte={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{const{exit:o}=xE({direction:e});return{...o,transition:t?.exit??Vl.exit(Uk.exit,i),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{const{enter:o}=xE({direction:e});return{...o,transition:n?.enter??Vl.enter(Uk.enter,i),transitionEnd:t?.enter}}},sF=E.exports.forwardRef(function(t,n){const{direction:i="right",style:o,unmountOnExit:s,in:u,className:p,transition:m,transitionEnd:v,delay:g,...b}=t,C=xE({direction:i}),w=Object.assign({position:"fixed"},C.position,o),T=s?u&&s:!0,A=u||s?"enter":"exit",k={transitionEnd:v,transition:m,direction:i,delay:g};return N(Gc,{custom:k,children:T&&_e.createElement(rl.div,{...b,ref:n,initial:"exit",className:Pb("chakra-slide",p),animate:A,exit:"exit",custom:k,variants:Zte,style:w})},void 0,!1,{fileName:Db,lineNumber:366,columnNumber:26},this)});sF.displayName="Slide";var Kte={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??Vl.exit(cm.exit,o),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Vl.enter(cm.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:i,reverse:o,delay:s})=>{const u={x:t,y:e};return{opacity:0,transition:n?.exit??Vl.exit(cm.exit,s),...o?{...u,transitionEnd:i?.exit}:{transitionEnd:{...u,...i?.exit}}}}},SE={initial:"initial",animate:"enter",exit:"exit",variants:Kte},Xte=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:s=!0,className:u,offsetX:p=0,offsetY:m=8,transition:v,transitionEnd:g,delay:b,...C}=t,w=i?o&&i:!0,T=o||i?"enter":"exit",A={offsetX:p,offsetY:m,reverse:s,transition:v,transitionEnd:g,delay:b};return N(Gc,{custom:A,children:w&&_e.createElement(rl.div,{ref:n,className:Pb("chakra-offset-slide",u),custom:A,...SE,animate:T,...C})},void 0,!1,{fileName:Db,lineNumber:441,columnNumber:26},this)});Xte.displayName="SlideFade";var CE="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",Ib=(...e)=>e.filter(Boolean).join(" ");function Qte(){return!0}var N3=e=>{const{condition:t,message:n}=e;t&&Qte()&&console.warn(n)};function P6(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Jte,E3]=Rr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[ene,w_]=Rr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[tne,DSe,nne,rne]=LI(),lF=Ke(function(t,n){const{getButtonProps:i}=w_(),o=i(t,n),s=E3(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...s.button};return _e.createElement(je.button,{...o,className:Ib("chakra-accordion__button",t.className),__css:u})});lF.displayName="AccordionButton";function ine(e){const{onChange:t,defaultIndex:n,index:i,allowMultiple:o,allowToggle:s,...u}=e;sne(e),lne(e);const p=nne(),[m,v]=E.exports.useState(-1);E.exports.useEffect(()=>()=>{v(-1)},[]);const[g,b]=kI({value:i,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:g,setIndex:b,htmlProps:u,getAccordionItemProps:w=>{let T=!1;return w!==null&&(T=Array.isArray(g)?g.includes(w):g===w),{isOpen:T,onChange:k=>{if(w!==null)if(o&&Array.isArray(g)){const I=k?g.concat(w):g.filter(D=>D!==w);b(I)}else k?b(w):s&&b(-1)}}},focusedIndex:m,setFocusedIndex:v,descendants:p}}var[ane,N_]=Rr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function one(e){const{isDisabled:t,isFocusable:n,id:i,...o}=e,{getAccordionItemProps:s,setFocusedIndex:u}=N_(),p=E.exports.useRef(null),m=E.exports.useId(),v=i??m,g=`accordion-button-${v}`,b=`accordion-panel-${v}`;une(e);const{register:C,index:w,descendants:T}=rne({disabled:t&&!n}),{isOpen:A,onChange:k}=s(w===-1?null:w);cne({isOpen:A,isDisabled:t});const I=()=>{k?.(!0)},D=()=>{k?.(!1)},P=E.exports.useCallback(()=>{k?.(!A),u(w)},[w,u,A,k]),F=E.exports.useCallback(Q=>{const ae={ArrowDown:()=>{const pe=T.nextEnabled(w);pe?.node.focus()},ArrowUp:()=>{const pe=T.prevEnabled(w);pe?.node.focus()},Home:()=>{const pe=T.firstEnabled();pe?.node.focus()},End:()=>{const pe=T.lastEnabled();pe?.node.focus()}}[Q.key];ae&&(Q.preventDefault(),ae(Q))},[T,w]),z=E.exports.useCallback(()=>{u(w)},[u,w]),q=E.exports.useCallback(function(ie={},ae=null){return{...ie,type:"button",ref:Kr(C,p,ae),id:g,disabled:!!t,"aria-expanded":!!A,"aria-controls":b,onClick:P6(ie.onClick,P),onFocus:P6(ie.onFocus,z),onKeyDown:P6(ie.onKeyDown,F)}},[g,t,A,P,z,F,b,C]),Y=E.exports.useCallback(function(ie={},ae=null){return{...ie,ref:ae,role:"region",id:b,"aria-labelledby":g,hidden:!A}},[g,A,b]);return{isOpen:A,isDisabled:t,isFocusable:n,onOpen:I,onClose:D,getButtonProps:q,getPanelProps:Y,htmlProps:o}}function sne(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;N3({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function lne(e){N3({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 une(e){N3({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 cne(e){N3({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function uF(e){const{isOpen:t,isDisabled:n}=w_(),{reduceMotion:i}=N_(),o=Ib("chakra-accordion__icon",e.className),s=E3(),u={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return N(vs,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:u,...e,children:N("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:CE,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:CE,lineNumber:276,columnNumber:26},this)}uF.displayName="AccordionIcon";var cF=Ke(function(t,n){const{children:i,className:o}=t,{htmlProps:s,...u}=one(t),m={...E3().container,overflowAnchor:"none"},v=E.exports.useMemo(()=>u,[u]);return _e.createElement(ene,{value:v},_e.createElement(je.div,{ref:n,...s,className:Ib("chakra-accordion__item",o),__css:m},typeof i=="function"?i({isExpanded:!!u.isOpen,isDisabled:!!u.isDisabled}):i))});cF.displayName="AccordionItem";var fF=Ke(function(t,n){const{reduceMotion:i}=N_(),{getPanelProps:o,isOpen:s}=w_(),u=o(t,n),p=Ib("chakra-accordion__panel",t.className),m=E3();i||delete u.hidden;const v=_e.createElement(je.div,{...u,__css:m.panel,className:p});return i?v:N(iF,{in:s,children:v},void 0,!1,{fileName:CE,lineNumber:336,columnNumber:28},this)});fF.displayName="AccordionPanel";var dF=Ke(function({children:t,reduceMotion:n,...i},o){const s=vo("Accordion",i),u=pr(i),{htmlProps:p,descendants:m,...v}=ine(u),g=E.exports.useMemo(()=>({...v,reduceMotion:!!n}),[v,n]);return _e.createElement(tne,{value:m},_e.createElement(ane,{value:g},_e.createElement(Jte,{value:s},_e.createElement(je.div,{ref:o,...p,className:Ib("chakra-accordion",i.className),__css:s.root},t))))});dF.displayName="Accordion";var fne=(...e)=>e.filter(Boolean).join(" "),dne=Eb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),_3=Ke((e,t)=>{const n=ho("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:s="0.45s",emptyColor:u="transparent",className:p,...m}=pr(e),v=fne("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:u,borderLeftColor:u,animation:`${dne} ${s} linear infinite`,...n};return _e.createElement(je.div,{ref:t,__css:g,className:v,...m},i&&_e.createElement(je.span,{srOnly:!0},i))});_3.displayName="Spinner";var hm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",T3=(...e)=>e.filter(Boolean).join(" ");function pne(e){return N(vs,{viewBox:"0 0 24 24",...e,children:N("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:hm,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:hm,lineNumber:21,columnNumber:26},this)}function mne(e){return N(vs,{viewBox:"0 0 24 24",...e,children:N("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:hm,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:hm,lineNumber:30,columnNumber:26},this)}function jk(e){return N(vs,{viewBox:"0 0 24 24",...e,children:N("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:hm,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:hm,lineNumber:39,columnNumber:26},this)}var[hne,vne]=Rr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[gne,E_]=Rr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),pF={info:{icon:mne,colorScheme:"blue"},warning:{icon:jk,colorScheme:"orange"},success:{icon:pne,colorScheme:"green"},error:{icon:jk,colorScheme:"red"},loading:{icon:_3,colorScheme:"blue"}};function bne(e){return pF[e].colorScheme}function yne(e){return pF[e].icon}var mF=Ke(function(t,n){const{status:i="info",addRole:o=!0,...s}=pr(t),u=t.colorScheme??bne(i),p=vo("Alert",{...t,colorScheme:u}),m={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return _e.createElement(hne,{value:{status:i}},_e.createElement(gne,{value:p},_e.createElement(je.div,{role:o?"alert":void 0,ref:n,...s,className:T3("chakra-alert",t.className),__css:m})))});mF.displayName="Alert";var hF=Ke(function(t,n){const i=E_(),o={display:"inline",...i.description};return _e.createElement(je.div,{ref:n,...t,className:T3("chakra-alert__desc",t.className),__css:o})});hF.displayName="AlertDescription";function vF(e){const{status:t}=vne(),n=yne(t),i=E_(),o=t==="loading"?i.spinner:i.icon;return _e.createElement(je.span,{display:"inherit",...e,className:T3("chakra-alert__icon",e.className),__css:o},e.children||N(n,{h:"100%",w:"100%"},void 0,!1,{fileName:hm,lineNumber:133,columnNumber:40},this))}vF.displayName="AlertIcon";var gF=Ke(function(t,n){const i=E_();return _e.createElement(je.div,{ref:n,...t,className:T3("chakra-alert__title",t.className),__css:i.title})});gF.displayName="AlertTitle";var xne="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function Sne(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function Cne(e){const{loading:t,src:n,srcSet:i,onLoad:o,onError:s,crossOrigin:u,sizes:p,ignoreFallback:m}=e,[v,g]=E.exports.useState("pending");E.exports.useEffect(()=>{g(n?"loading":"pending")},[n]);const b=E.exports.useRef(),C=E.exports.useCallback(()=>{if(!n)return;w();const T=new Image;T.src=n,u&&(T.crossOrigin=u),i&&(T.srcset=i),p&&(T.sizes=p),t&&(T.loading=t),T.onload=A=>{w(),g("loaded"),o?.(A)},T.onerror=A=>{w(),g("failed"),s?.(A)},b.current=T},[n,u,i,p,o,s,t]),w=()=>{b.current&&(b.current.onload=null,b.current.onerror=null,b.current=null)};return Ou(()=>{if(!m)return v==="loading"&&C(),()=>{w()}},[v,C,m]),m?"loaded":v}var wne=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",AS=Ke(function(t,n){const{htmlWidth:i,htmlHeight:o,alt:s,...u}=t;return N("img",{width:i,height:o,ref:n,alt:s,...u},void 0,!1,{fileName:xne,lineNumber:90,columnNumber:26},this)});AS.displayName="NativeImage";var R3=Ke(function(t,n){const{fallbackSrc:i,fallback:o,src:s,srcSet:u,align:p,fit:m,loading:v,ignoreFallback:g,crossOrigin:b,fallbackStrategy:C="beforeLoadOrError",referrerPolicy:w,...T}=t,A=i!==void 0||o!==void 0,k=v!=null||g||!A,I=Cne({...t,ignoreFallback:k}),D=wne(I,C),P={ref:n,objectFit:m,objectPosition:p,...k?T:Sne(T,["onError","onLoad"])};return D?o||_e.createElement(je.img,{as:AS,className:"chakra-image__placeholder",src:i,...P}):_e.createElement(je.img,{as:AS,src:s,srcSet:u,crossOrigin:b,loading:v,referrerPolicy:w,className:"chakra-image",...P})});R3.displayName="Image";Ke((e,t)=>_e.createElement(je.img,{ref:t,as:AS,className:"chakra-image",...e}));var Nne=Object.create,bF=Object.defineProperty,Ene=Object.getOwnPropertyDescriptor,yF=Object.getOwnPropertyNames,_ne=Object.getPrototypeOf,Tne=Object.prototype.hasOwnProperty,xF=(e,t)=>function(){return t||(0,e[yF(e)[0]])((t={exports:{}}).exports,t),t.exports},Rne=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yF(t))!Tne.call(e,o)&&o!==n&&bF(e,o,{get:()=>t[o],enumerable:!(i=Ene(t,o))||i.enumerable});return e},Ane=(e,t,n)=>(n=e!=null?Nne(_ne(e)):{},Rne(t||!e||!e.__esModule?bF(n,"default",{value:e,enumerable:!0}):n,e)),One=xF({"../../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"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),k=Symbol.iterator,I="@@iterator";function D(S){if(S===null||typeof S!="object")return null;var L=k&&S[k]||S[I];return typeof L=="function"?L:null}var P={current:null},F={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},Y={},Q=null;function ie(S){Q=S}Y.setExtraStackFrame=function(S){Q=S},Y.getCurrentStack=null,Y.getStackAddendum=function(){var S="";Q&&(S+=Q);var L=Y.getCurrentStack;return L&&(S+=L()||""),S};var ae=!1,pe=!1,$e=!1,te=!1,ee=!1,be={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:F,ReactCurrentOwner:q};be.ReactDebugCurrentFrame=Y,be.ReactCurrentActQueue=z;function Ce(S){{for(var L=arguments.length,V=new Array(L>1?L-1:0),G=1;G<L;G++)V[G-1]=arguments[G];le("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];le("error",S,V)}}function le(S,L,V){{var G=be.ReactDebugCurrentFrame,se=G.getStackAddendum();se!==""&&(L+="%s",V=V.concat([se]));var ze=V.map(function(Ee){return String(Ee)});ze.unshift("Warning: "+L),Function.prototype.apply.call(console[S],console,ze)}}var ve={};function de(S,L){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",se=G+"."+L;if(ve[se])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),ve[se]=!0}}var we={isMounted:function(S){return!1},enqueueForceUpdate:function(S,L,V){de(S,"forceUpdate")},enqueueReplaceState:function(S,L,V,G){de(S,"replaceState")},enqueueSetState:function(S,L,V,G){de(S,"setState")}},Le=Object.assign,Me={};Object.freeze(Me);function Ze(S,L,V){this.props=S,this.context=L,this.refs=Me,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 Je={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)."]},it=function(S,L){Object.defineProperty(Ze.prototype,S,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Rt in Je)Je.hasOwnProperty(Rt)&&it(Rt,Je[Rt])}function Ve(){}Ve.prototype=Ze.prototype;function at(S,L,V){this.props=S,this.context=L,this.refs=Me,this.updater=V||we}var St=at.prototype=new Ve;St.constructor=at,Le(St,Ze.prototype),St.isPureReactComponent=!0;function Dt(){var S={current:null};return Object.seal(S),S}var He=Array.isArray;function jt(S){return He(S)}function Se(S){{var L=typeof Symbol=="function"&&Symbol.toStringTag,V=L&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function tt(S){try{return Ct(S),!1}catch{return!0}}function Ct(S){return""+S}function nt(S){if(tt(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Se(S)),Ct(S)}function on(S,L,V){var G=S.displayName;if(G)return G;var se=L.displayName||L.name||"";return se!==""?V+"("+se+")":V}function Ln(S){return S.displayName||"Context"}function _t(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 s:return"Fragment";case o:return"Portal";case p:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case C:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var L=S;return Ln(L)+".Consumer";case m:var V=S;return Ln(V._context)+".Provider";case g:return on(S,S.render,"ForwardRef");case w:var G=S.displayName||null;return G!==null?G:_t(S.type)||"Memo";case T:{var se=S,ze=se._payload,Ee=se._init;try{return _t(Ee(ze))}catch{return null}}}return null}var sn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},bn,Ye,et;et={};function nn(S){if(sn.call(S,"ref")){var L=Object.getOwnPropertyDescriptor(S,"ref").get;if(L&&L.isReactWarning)return!1}return S.ref!==void 0}function Pt(S){if(sn.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function De(S,L){var V=function(){bn||(bn=!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(){Ye||(Ye=!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 _n(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var L=_t(q.current.type);et[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),et[L]=!0)}}var We=function(S,L,V,G,se,ze,Ee){var Ge={$$typeof:i,type:S,key:L,ref:V,props:Ee,_owner:ze};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function lt(S,L,V){var G,se={},ze=null,Ee=null,Ge=null,ct=null;if(L!=null){nn(L)&&(Ee=L.ref,_n(L)),Pt(L)&&(nt(L.key),ze=""+L.key),Ge=L.__self===void 0?null:L.__self,ct=L.__source===void 0?null:L.__source;for(G in L)sn.call(L,G)&&!kn.hasOwnProperty(G)&&(se[G]=L[G])}var wt=arguments.length-2;if(wt===1)se.children=V;else if(wt>1){for(var It=Array(wt),yt=0;yt<wt;yt++)It[yt]=arguments[yt+2];Object.freeze&&Object.freeze(It),se.children=It}if(S&&S.defaultProps){var Wt=S.defaultProps;for(G in Wt)se[G]===void 0&&(se[G]=Wt[G])}if(ze||Ee){var Ot=typeof S=="function"?S.displayName||S.name||"Unknown":S;ze&&De(se,Ot),Ee&&qt(se,Ot)}return We(S,ze,Ee,Ge,ct,q.current,se)}function At(S,L){var V=We(S.type,L,S.ref,S._self,S._source,S._owner,S.props);return V}function vn(S,L,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,se=Le({},S.props),ze=S.key,Ee=S.ref,Ge=S._self,ct=S._source,wt=S._owner;if(L!=null){nn(L)&&(Ee=L.ref,wt=q.current),Pt(L)&&(nt(L.key),ze=""+L.key);var It;S.type&&S.type.defaultProps&&(It=S.type.defaultProps);for(G in L)sn.call(L,G)&&!kn.hasOwnProperty(G)&&(L[G]===void 0&&It!==void 0?se[G]=It[G]:se[G]=L[G])}var yt=arguments.length-2;if(yt===1)se.children=V;else if(yt>1){for(var Wt=Array(yt),Ot=0;Ot<yt;Ot++)Wt[Ot]=arguments[Ot+2];se.children=Wt}return We(S.type,ze,Ee,Ge,ct,wt,se)}function Jt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Tn=".",$n=":";function Dr(S){var L=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(L,function(se){return V[se]});return"$"+G}var Mn=!1,wi=/\/+/g;function jn(S){return S.replace(wi,"$&/")}function Rn(S,L){return typeof S=="object"&&S!==null&&S.key!=null?(nt(S.key),Dr(""+S.key)):L.toString(36)}function Ni(S,L,V,G,se){var ze=typeof S;(ze==="undefined"||ze==="boolean")&&(S=null);var Ee=!1;if(S===null)Ee=!0;else switch(ze){case"string":case"number":Ee=!0;break;case"object":switch(S.$$typeof){case i:case o:Ee=!0}}if(Ee){var Ge=S,ct=se(Ge),wt=G===""?Tn+Rn(Ge,0):G;if(jt(ct)){var It="";wt!=null&&(It=jn(wt)+"/"),Ni(ct,L,It,"",function(_d){return _d})}else ct!=null&&(Jt(ct)&&(ct.key&&(!Ge||Ge.key!==ct.key)&&nt(ct.key),ct=At(ct,V+(ct.key&&(!Ge||Ge.key!==ct.key)?jn(""+ct.key)+"/":"")+wt)),L.push(ct));return 1}var yt,Wt,Ot=0,Ut=G===""?Tn:G+$n;if(jt(S))for(var La=0;La<S.length;La++)yt=S[La],Wt=Ut+Rn(yt,La),Ot+=Ni(yt,L,V,Wt,se);else{var Ai=D(S);if(typeof Ai=="function"){var Qo=S;Ai===Qo.entries&&(Mn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mn=!0);for(var Gu=Ai.call(Qo),Dn,ka=0;!(Dn=Gu.next()).done;)yt=Dn.value,Wt=Ut+Rn(yt,ka++),Ot+=Ni(yt,L,V,Wt,se)}else if(ze==="object"){var Es=String(S);throw new Error("Objects are not valid as a React child (found: "+(Es==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Es)+"). If you meant to render a collection of children, use an array instead.")}}return Ot}function xr(S,L,V){if(S==null)return S;var G=[],se=0;return Ni(S,G,"","",function(ze){return L.call(V,ze,se++)}),G}function Bo(S){var L=0;return xr(S,function(){L++}),L}function gs(S,L,V){xr(S,function(){L.apply(this,arguments)},V)}function bs(S){return xr(S,function(L){return L})||[]}function Uo(S){if(!Jt(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function jo(S){var L={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:m,_context:L};var V=!1,G=!1,se=!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(Ee){L.Provider=Ee}},_currentValue:{get:function(){return L._currentValue},set:function(Ee){L._currentValue=Ee}},_currentValue2:{get:function(){return L._currentValue2},set:function(Ee){L._currentValue2=Ee}},_threadCount:{get:function(){return L._threadCount},set:function(Ee){L._threadCount=Ee}},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(Ee){se||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ee),se=!0)}}}),L.Consumer=ze}return L._currentRenderer=null,L._currentRenderer2=null,L}var hr=-1,Vi=0,qa=1,Hi=2;function X(S){if(S._status===hr){var L=S._result,V=L();if(V.then(function(ze){if(S._status===Vi||S._status===hr){var Ee=S;Ee._status=qa,Ee._result=ze}},function(ze){if(S._status===Vi||S._status===hr){var Ee=S;Ee._status=Hi,Ee._result=ze}}),S._status===hr){var G=S;G._status=Vi,G._result=V}}if(S._status===qa){var se=S._result;return se===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?`,se),"default"in se||K(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,se),se.default}else throw S._result}function Ue(S){var L={_status:hr,_result:S},V={$$typeof:T,_payload:L,_init:X};{var G,se;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 se},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."),se=ze,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Xe(S){S!=null&&S.$$typeof===w?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:g,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 Et;Et=Symbol.for("react.module.reference");function ln(S){return!!(typeof S=="string"||typeof S=="function"||S===s||S===p||ee||S===u||S===b||S===C||te||S===A||ae||pe||$e||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===w||S.$$typeof===m||S.$$typeof===v||S.$$typeof===g||S.$$typeof===Et||S.getModuleId!==void 0))}function Cn(S,L){ln(S)||K("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:w,type:S,compare:L===void 0?null:L};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(se){G=se,!S.name&&!S.displayName&&(S.displayName=se)}})}return V}function ot(){var S=P.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=ot();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=ot();return L.useState(S)}function Bn(S,L,V){var G=ot();return G.useReducer(S,L,V)}function cn(S){var L=ot();return L.useRef(S)}function Wr(S,L){var V=ot();return V.useEffect(S,L)}function Ea(S,L){var V=ot();return V.useInsertionEffect(S,L)}function Vo(S,L){var V=ot();return V.useLayoutEffect(S,L)}function Ei(S,L){var V=ot();return V.useCallback(S,L)}function go(S,L){var V=ot();return V.useMemo(S,L)}function Hu(S,L,V){var G=ot();return G.useImperativeHandle(S,L,V)}function _a(S,L){{var V=ot();return V.useDebugValue(S,L)}}function al(){var S=ot();return S.useTransition()}function Za(S){var L=ot();return L.useDeferredValue(S)}function en(){var S=ot();return S.useId()}function Ka(S,L,V){var G=ot();return G.useSyncExternalStore(S,L,V)}var _i=0,Ho,ys,Wo,xs,Ss,Go,Yo;function Cs(){}Cs.__reactDisabledLog=!0;function ol(){{if(_i===0){Ho=console.log,ys=console.info,Wo=console.warn,xs=console.error,Ss=console.group,Go=console.groupCollapsed,Yo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:Cs,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}_i++}}function sl(){{if(_i--,_i===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Le({},S,{value:Ho}),info:Le({},S,{value:ys}),warn:Le({},S,{value:Wo}),error:Le({},S,{value:xs}),group:Le({},S,{value:Ss}),groupCollapsed:Le({},S,{value:Go}),groupEnd:Le({},S,{value:Yo})})}_i<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ta=be.ReactCurrentDispatcher,Br;function Wi(S,L,V){{if(Br===void 0)try{throw Error()}catch(se){var G=se.stack.trim().match(/\n( *(at )?)/);Br=G&&G[1]||""}return`
`+Br+S}}var Ti=!1,Gi;{var ws=typeof WeakMap=="function"?WeakMap:Map;Gi=new ws}function qo(S,L){if(!S||Ti)return"";{var V=Gi.get(S);if(V!==void 0)return V}var G;Ti=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=Ta.current,Ta.current=null,ol();try{if(L){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(Ut){G=Ut}Reflect.construct(S,[],Ee)}else{try{Ee.call()}catch(Ut){G=Ut}S.call(Ee.prototype)}}else{try{throw Error()}catch(Ut){G=Ut}S()}}catch(Ut){if(Ut&&G&&typeof Ut.stack=="string"){for(var Ge=Ut.stack.split(`
`),ct=G.stack.split(`
`),wt=Ge.length-1,It=ct.length-1;wt>=1&&It>=0&&Ge[wt]!==ct[It];)It--;for(;wt>=1&&It>=0;wt--,It--)if(Ge[wt]!==ct[It]){if(wt!==1||It!==1)do if(wt--,It--,It<0||Ge[wt]!==ct[It]){var yt=`
`+Ge[wt].replace(" at new "," at ");return S.displayName&&yt.includes("<anonymous>")&&(yt=yt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Gi.set(S,yt),yt}while(wt>=1&&It>=0);break}}}finally{Ti=!1,Ta.current=ze,sl(),Error.prepareStackTrace=se}var Wt=S?S.displayName||S.name:"",Ot=Wt?Wi(Wt):"";return typeof S=="function"&&Gi.set(S,Ot),Ot}function Ns(S,L,V){return qo(S,!1)}function Yl(S){var L=S.prototype;return!!(L&&L.isReactComponent)}function Ri(S,L,V){if(S==null)return"";if(typeof S=="function")return qo(S,Yl(S));if(typeof S=="string")return Wi(S);switch(S){case b:return Wi("Suspense");case C:return Wi("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case g:return Ns(S.render);case w:return Ri(S.type,L,V);case T:{var G=S,se=G._payload,ze=G._init;try{return Ri(ze(se),L,V)}catch{}}}return""}var Zo={},Yi=be.ReactDebugCurrentFrame;function Ra(S){if(S){var L=S._owner,V=Ri(S.type,S._source,L?L.type:null);Yi.setExtraStackFrame(V)}else Yi.setExtraStackFrame(null)}function ll(S,L,V,G,se){{var ze=Function.call.bind(sn);for(var Ee in S)if(ze(S,Ee)){var Ge=void 0;try{if(typeof S[Ee]!="function"){var ct=Error((G||"React class")+": "+V+" type `"+Ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ct.name="Invariant Violation",ct}Ge=S[Ee](L,Ee,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(wt){Ge=wt}Ge&&!(Ge instanceof Error)&&(Ra(se),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,Ee,typeof Ge),Ra(null)),Ge instanceof Error&&!(Ge.message in Zo)&&(Zo[Ge.message]=!0,Ra(se),K("Failed %s type: %s",V,Ge.message),Ra(null))}}}function fn(S){if(S){var L=S._owner,V=Ri(S.type,S._source,L?L.type:null);ie(V)}else ie(null)}var Aa;Aa=!1;function Ko(){if(q.current){var S=_t(q.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function Ht(S){if(S!==void 0){var L=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
Check your code at `+L+":"+V+"."}return""}function ul(S){return S!=null?Ht(S.__source):""}var Sr={};function Xa(S){var L=Ko();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 na(S,L){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Xa(L);if(!Sr[V]){Sr[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+_t(S._owner.type)+"."),fn(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),fn(null)}}}function bo(S,L){if(typeof S=="object"){if(jt(S))for(var V=0;V<S.length;V++){var G=S[V];Jt(G)&&na(G,L)}else if(Jt(S))S._store&&(S._store.validated=!0);else if(S){var se=D(S);if(typeof se=="function"&&se!==S.entries)for(var ze=se.call(S),Ee;!(Ee=ze.next()).done;)Jt(Ee.value)&&na(Ee.value,L)}}}function Or(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===g||L.$$typeof===w))V=L.propTypes;else return;if(V){var G=_t(L);ll(V,S.props,"prop",G,S)}else if(L.PropTypes!==void 0&&!Aa){Aa=!0;var se=_t(L);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"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"){fn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),fn(null);break}}S.ref!==null&&(fn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),fn(null))}}function Xo(S,L,V){var G=ln(S);if(!G){var se="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(se+=" 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=ul(L);ze?se+=ze:se+=Ko();var Ee;S===null?Ee="null":jt(S)?Ee="array":S!==void 0&&S.$$typeof===i?(Ee="<"+(_t(S.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Ee=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",Ee,se)}var Ge=lt.apply(this,arguments);if(Ge==null)return Ge;if(G)for(var ct=2;ct<arguments.length;ct++)bo(arguments[ct],S);return S===s?ar(Ge):Or(Ge),Ge}var Jr=!1;function mr(S){var L=Xo.bind(null,S);return L.type=S,Jr||(Jr=!0,Ce("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 Ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),L}function li(S,L,V){for(var G=vn.apply(this,arguments),se=2;se<arguments.length;se++)bo(arguments[se],G.type);return Or(G),G}function Wu(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 se=G._updatedFibers.size;se>10&&Ce("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 yo=!1,Oa=null;function cl(S){if(Oa===null)try{var L=("require"+Math.random()).slice(0,7),V=t&&t[L];Oa=V.call(t,"timers").setImmediate}catch{Oa=function(se){yo===!1&&(yo=!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=se,ze.port2.postMessage(void 0)}}return Oa(S)}var gn=0,Fn=!1;function ql(S){{var L=gn;gn++,z.current===null&&(z.current=[]);var V=z.isBatchingLegacy,G;try{if(z.isBatchingLegacy=!0,G=S(),!V&&z.didScheduleLegacyUpdate){var se=z.current;se!==null&&(z.didScheduleLegacyUpdate=!1,ge(se))}}catch(Wt){throw qi(L),Wt}finally{z.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var ze=G,Ee=!1,Ge={then:function(Wt,Ot){Ee=!0,ze.then(function(Ut){qi(L),gn===0?W(Ut,Wt,Ot):Wt(Ut)},function(Ut){qi(L),Ot(Ut)})}};return!Fn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ee||(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 () => ...);"))}),Ge}else{var ct=G;if(qi(L),gn===0){var wt=z.current;wt!==null&&(ge(wt),z.current=null);var It={then:function(Wt,Ot){z.current===null?(z.current=[],W(ct,Wt,Ot)):Wt(ct)}};return It}else{var yt={then:function(Wt,Ot){Wt(ct)}};return yt}}}}function qi(S){S!==gn-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. "),gn=S}function W(S,L,V){{var G=z.current;if(G!==null)try{ge(G),cl(function(){G.length===0?(z.current=null,L(S)):W(S,L,V)})}catch(se){V(se)}else L(S)}}var ne=!1;function ge(S){if(!ne){ne=!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{ne=!1}}}var ut=Xo,dn=li,zn=mr,Kt={map:xr,forEach:gs,count:Bo,toArray:bs,only:Uo};e.Children=Kt,e.Component=Ze,e.Fragment=s,e.Profiler=p,e.PureComponent=at,e.StrictMode=u,e.Suspense=b,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=be,e.cloneElement=dn,e.createContext=jo,e.createElement=ut,e.createFactory=zn,e.createRef=Dt,e.forwardRef=Xe,e.isValidElement=Jt,e.lazy=Ue,e.memo=Cn,e.startTransition=Wu,e.unstable_act=ql,e.useCallback=Ei,e.useContext=Zt,e.useDebugValue=_a,e.useDeferredValue=Za,e.useEffect=Wr,e.useId=en,e.useImperativeHandle=Hu,e.useInsertionEffect=Ea,e.useLayoutEffect=Vo,e.useMemo=go,e.useReducer=Bn,e.useRef=cn,e.useState=Vn,e.useSyncExternalStore=Ka,e.useTransition=al,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),Lne=xF({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=One()}}),Vk=Ane(Lne());function A3(e){return Vk.Children.toArray(e).filter(t=>(0,Vk.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 ld="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",O3=(...e)=>e.filter(Boolean).join(" "),Hk=e=>e?"":void 0,[kne,Mne]=Rr({strict:!1,name:"ButtonGroupContext"});function wE(e){const{children:t,className:n,...i}=e,o=E.exports.isValidElement(t)?E.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=O3("chakra-button__icon",n);return _e.createElement(je.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:s},o)}wE.displayName="ButtonIcon";function NE(e){const{label:t,placement:n,spacing:i="0.5rem",children:o=N(_3,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:ld,lineNumber:56,columnNumber:32},this),className:s,__css:u,...p}=e,m=O3("chakra-button__spinner",s),v=n==="start"?"marginEnd":"marginStart",g=E.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,v,i]);return _e.createElement(je.div,{className:m,...p,__css:g},o)}NE.displayName="ButtonSpinner";function Dne(e){const[t,n]=E.exports.useState(!e);return{ref:E.exports.useCallback(s=>{!s||n(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Fu=Ke((e,t)=>{const n=Mne(),i=ho("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:s,isActive:u,children:p,leftIcon:m,rightIcon:v,loadingText:g,iconSpacing:b="0.5rem",type:C,spinner:w,spinnerPlacement:T="start",className:A,as:k,...I}=pr(e),D=E.exports.useMemo(()=>{const q={...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:q}}},[i,n]),{ref:P,type:F}=Dne(k),z={rightIcon:v,leftIcon:m,iconSpacing:b,children:p};return _e.createElement(je.button,{disabled:o||s,ref:GK(t,P),as:k,type:C??F,"data-active":Hk(u),"data-loading":Hk(s),__css:D,className:O3("chakra-button",A),...I},s&&T==="start"&&N(NE,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b,children:w},void 0,!1,{fileName:ld,lineNumber:145,columnNumber:67},globalThis),s?g||_e.createElement(je.span,{opacity:0},N(Wk,{...z},void 0,!1,{fileName:ld,lineNumber:152,columnNumber:22},globalThis)):N(Wk,{...z},void 0,!1,{fileName:ld,lineNumber:154,columnNumber:25},globalThis),s&&T==="end"&&N(NE,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b,children:w},void 0,!1,{fileName:ld,lineNumber:156,columnNumber:66},globalThis))});Fu.displayName="Button";function Wk(e){const{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return N(ji,{children:[t&&N(wE,{marginEnd:o,children:t},void 0,!1,{fileName:ld,lineNumber:166,columnNumber:96},this),i,n&&N(wE,{marginStart:o,children:n},void 0,!1,{fileName:ld,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var Pne=Ke(function(t,n){const{size:i,colorScheme:o,variant:s,className:u,spacing:p="0.5rem",isAttached:m,isDisabled:v,...g}=t,b=O3("chakra-button__group",u),C=E.exports.useMemo(()=>({size:i,colorScheme:o,variant:s,isDisabled:v}),[i,o,s,v]);let w={display:"inline-flex"};return m?w={...w,"> *: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}}:w={...w,"& > *:not(style) ~ *:not(style)":{marginStart:p}},_e.createElement(kne,{value:C},_e.createElement(je.div,{ref:n,role:"group",__css:w,className:b,"data-attached":m?"":void 0,...g}))});Pne.displayName="ButtonGroup";var wa=Ke((e,t)=>{const{icon:n,children:i,isRound:o,"aria-label":s,...u}=e,p=n||i,m=E.exports.isValidElement(p)?E.exports.cloneElement(p,{"aria-hidden":!0,focusable:!1}):null;return N(Fu,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s,...u,children:m},void 0,!1,{fileName:ld,lineNumber:231,columnNumber:26},globalThis)});wa.displayName="IconButton";var EE="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",Kv=(...e)=>e.filter(Boolean).join(" "),p5=e=>e?"":void 0,I6=e=>e?!0:void 0;function Gk(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Ine,SF]=Rr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[$ne,Xv]=Rr({strict:!1,name:"FormControlContext"});function Fne(e){const{id:t,isRequired:n,isInvalid:i,isDisabled:o,isReadOnly:s,...u}=e,p=E.exports.useId(),m=t||`field-${p}`,v=`${m}-label`,g=`${m}-feedback`,b=`${m}-helptext`,[C,w]=E.exports.useState(!1),[T,A]=E.exports.useState(!1),[k,I]=E.exports.useState(!1),D=E.exports.useCallback((Y={},Q=null)=>({id:b,...Y,ref:Kr(Q,ie=>{!ie||A(!0)})}),[b]),P=E.exports.useCallback((Y={},Q=null)=>({...Y,ref:Q,"data-focus":p5(k),"data-disabled":p5(o),"data-invalid":p5(i),"data-readonly":p5(s),id:Y.id??v,htmlFor:Y.htmlFor??m}),[m,o,k,i,s,v]),F=E.exports.useCallback((Y={},Q=null)=>({id:g,...Y,ref:Kr(Q,ie=>{!ie||w(!0)}),"aria-live":"polite"}),[g]),z=E.exports.useCallback((Y={},Q=null)=>({...Y,...u,ref:Q,role:"group"}),[u]),q=E.exports.useCallback((Y={},Q=null)=>({...Y,ref:Q,role:"presentation","aria-hidden":!0,children:Y.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!s,isDisabled:!!o,isFocused:!!k,onFocus:()=>I(!0),onBlur:()=>I(!1),hasFeedbackText:C,setHasFeedbackText:w,hasHelpText:T,setHasHelpText:A,id:m,labelId:v,feedbackId:g,helpTextId:b,htmlProps:u,getHelpTextProps:D,getErrorMessageProps:F,getRootProps:z,getLabelProps:P,getRequiredIndicatorProps:q}}var wd=Ke(function(t,n){const i=vo("Form",t),o=pr(t),{getRootProps:s,htmlProps:u,...p}=Fne(o),m=Kv("chakra-form-control",t.className);return _e.createElement($ne,{value:p},_e.createElement(Ine,{value:i},_e.createElement(je.div,{...s({},n),className:m,__css:i.container})))});wd.displayName="FormControl";var zne=Ke(function(t,n){const i=Xv(),o=SF(),s=Kv("chakra-form__helper-text",t.className);return _e.createElement(je.div,{...i?.getHelpTextProps(t,n),__css:o.helperText,className:s})});zne.displayName="FormHelperText";function __(e){const{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...s}=T_(e);return{...s,disabled:t,readOnly:i,required:o,"aria-invalid":I6(n),"aria-required":I6(o),"aria-readonly":I6(i)}}function T_(e){const t=Xv(),{id:n,disabled:i,readOnly:o,required:s,isRequired:u,isInvalid:p,isReadOnly:m,isDisabled:v,onFocus:g,onBlur:b,...C}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&w.push(t.feedbackId),t?.hasHelpText&&w.push(t.helpTextId),{...C,"aria-describedby":w.join(" ")||void 0,id:n??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:o??m??t?.isReadOnly,isRequired:s??u??t?.isRequired,isInvalid:p??t?.isInvalid,onFocus:Gk(t?.onFocus,g),onBlur:Gk(t?.onBlur,b)}}var[Bne,Une]=Rr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),jne=Ke((e,t)=>{const n=vo("FormError",e),i=pr(e),o=Xv();return o?.isInvalid?_e.createElement(Bne,{value:n},_e.createElement(je.div,{...o?.getErrorMessageProps(i,t),className:Kv("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});jne.displayName="FormErrorMessage";var Vne=Ke((e,t)=>{const n=Une(),i=Xv();if(!i?.isInvalid)return null;const o=Kv("chakra-form__error-icon",e.className);return N(vs,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:N("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:EE,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:EE,lineNumber:238,columnNumber:26},globalThis)});Vne.displayName="FormErrorIcon";var Cm=Ke(function(t,n){const i=ho("FormLabel",t),o=pr(t),{className:s,children:u,requiredIndicator:p=N(CF,{},void 0,!1,{fileName:EE,lineNumber:264,columnNumber:41},this),optionalIndicator:m=null,...v}=o,g=Xv(),b=g?.getLabelProps(v,n)??{ref:n,...v};return _e.createElement(je.label,{...b,className:Kv("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i}},u,g?.isRequired?p:m)});Cm.displayName="FormLabel";var CF=Ke(function(t,n){const i=Xv(),o=SF();if(!i?.isRequired)return null;const s=Kv("chakra-form__required-indicator",t.className);return _e.createElement(je.span,{...i?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:s})});CF.displayName="RequiredIndicator";function OS(e,t){const n=E.exports.useRef(!1),i=E.exports.useRef(!1);E.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),E.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var R_={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Hne=je("span",{baseStyle:R_});Hne.displayName="VisuallyHidden";var Wne=je("input",{baseStyle:R_});Wne.displayName="VisuallyHiddenInput";var Yk=!1,L3=null,Iv=!1,_E=new Set,Gne=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Yne(e){return!(e.metaKey||!Gne&&e.altKey||e.ctrlKey)}function A_(e,t){_E.forEach(n=>n(e,t))}function qk(e){Iv=!0,Yne(e)&&(L3="keyboard",A_("keyboard",e))}function ev(e){L3="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Iv=!0,A_("pointer",e))}function qne(e){e.target===window||e.target===document||(Iv||(L3="keyboard",A_("keyboard",e)),Iv=!1)}function Zne(){Iv=!1}function Zk(){return L3!=="pointer"}function Kne(){if(typeof window>"u"||Yk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Iv=!0,e.apply(this,n)},document.addEventListener("keydown",qk,!0),document.addEventListener("keyup",qk,!0),window.addEventListener("focus",qne,!0),window.addEventListener("blur",Zne,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ev,!0),document.addEventListener("pointermove",ev,!0),document.addEventListener("pointerup",ev,!0)):(document.addEventListener("mousedown",ev,!0),document.addEventListener("mousemove",ev,!0),document.addEventListener("mouseup",ev,!0)),Yk=!0}function Xne(e){Kne(),e(Zk());const t=()=>e(Zk());return _E.add(t),()=>{_E.delete(t)}}var jl="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[PSe,Qne]=Rr({name:"CheckboxGroupContext",strict:!1}),Jne=(...e)=>e.filter(Boolean).join(" "),uo=e=>e?"":void 0;function qs(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function ere(...e){return function(n){e.forEach(i=>{i?.(n)})}}function tre(e){const t=rl;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var wF=tre(je.svg);function nre(e){return N(wF,{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:N("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:jl,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:jl,lineNumber:116,columnNumber:26},this)}function rre(e){return N(wF,{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:N("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:jl,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:jl,lineNumber:142,columnNumber:26},this)}function ire({open:e,children:t}){return N(Gc,{initial:!1,children:e&&_e.createElement(rl.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:jl,lineNumber:169,columnNumber:26},this)}function are(e){const{isIndeterminate:t,isChecked:n,...i}=e;return N(ire,{open:n||t,children:N(t?rre:nre,{...i},void 0,!1,{fileName:jl,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:jl,lineNumber:190,columnNumber:26},this)}function ore(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function NF(e={}){const t=T_(e),{isDisabled:n,isReadOnly:i,isRequired:o,isInvalid:s,id:u,onBlur:p,onFocus:m,"aria-describedby":v}=t,{defaultChecked:g,isChecked:b,isFocusable:C,onChange:w,isIndeterminate:T,name:A,value:k,tabIndex:I=void 0,"aria-label":D,"aria-labelledby":P,"aria-invalid":F,...z}=e,q=ore(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),Y=Wa(w),Q=Wa(p),ie=Wa(m),[ae,pe]=E.exports.useState(!1),[$e,te]=E.exports.useState(!1),[ee,be]=E.exports.useState(!1),[Ce,K]=E.exports.useState(!1);E.exports.useEffect(()=>Xne(pe),[]);const le=E.exports.useRef(null),[ve,de]=E.exports.useState(!0),[we,Le]=E.exports.useState(!!g),Me=b!==void 0,Ze=Me?b:we,Je=E.exports.useCallback(Se=>{if(i||n){Se.preventDefault();return}Me||Le(Ze?Se.target.checked:T?!0:Se.target.checked),Y?.(Se)},[i,n,Ze,Me,T,Y]);Ou(()=>{le.current&&(le.current.indeterminate=Boolean(T))},[T]),OS(()=>{n&&te(!1)},[n,te]),Ou(()=>{const Se=le.current;!Se?.form||(Se.form.onreset=()=>{Le(!!g)})},[]);const it=n&&!C,Rt=E.exports.useCallback(Se=>{Se.key===" "&&K(!0)},[K]),Ve=E.exports.useCallback(Se=>{Se.key===" "&&K(!1)},[K]);Ou(()=>{if(!le.current)return;le.current.checked!==Ze&&Le(le.current.checked)},[le.current]);const at=E.exports.useCallback((Se={},tt=null)=>{const Ct=nt=>{$e&&nt.preventDefault(),K(!0)};return{...Se,ref:tt,"data-active":uo(Ce),"data-hover":uo(ee),"data-checked":uo(Ze),"data-focus":uo($e),"data-focus-visible":uo($e&&ae),"data-indeterminate":uo(T),"data-disabled":uo(n),"data-invalid":uo(s),"data-readonly":uo(i),"aria-hidden":!0,onMouseDown:qs(Se.onMouseDown,Ct),onMouseUp:qs(Se.onMouseUp,()=>K(!1)),onMouseEnter:qs(Se.onMouseEnter,()=>be(!0)),onMouseLeave:qs(Se.onMouseLeave,()=>be(!1))}},[Ce,Ze,n,$e,ae,ee,T,s,i]),St=E.exports.useCallback((Se={},tt=null)=>({...q,...Se,ref:Kr(tt,Ct=>{!Ct||de(Ct.tagName==="LABEL")}),onClick:qs(Se.onClick,()=>{var Ct;ve||((Ct=le.current)==null||Ct.click(),requestAnimationFrame(()=>{var nt;(nt=le.current)==null||nt.focus()}))}),"data-disabled":uo(n),"data-checked":uo(Ze),"data-invalid":uo(s)}),[q,n,Ze,s,ve]),Dt=E.exports.useCallback((Se={},tt=null)=>({...Se,ref:Kr(le,tt),type:"checkbox",name:A,value:k,id:u,tabIndex:I,onChange:qs(Se.onChange,Je),onBlur:qs(Se.onBlur,Q,()=>te(!1)),onFocus:qs(Se.onFocus,ie,()=>te(!0)),onKeyDown:qs(Se.onKeyDown,Rt),onKeyUp:qs(Se.onKeyUp,Ve),required:o,checked:Ze,disabled:it,readOnly:i,"aria-label":D,"aria-labelledby":P,"aria-invalid":F?Boolean(F):s,"aria-describedby":v,"aria-disabled":n,style:R_}),[A,k,u,Je,Q,ie,Rt,Ve,o,Ze,it,i,D,P,F,s,v,n,I]),He=E.exports.useCallback((Se={},tt=null)=>({...Se,ref:tt,onMouseDown:qs(Se.onMouseDown,Kk),onTouchStart:qs(Se.onTouchStart,Kk),"data-disabled":uo(n),"data-checked":uo(Ze),"data-invalid":uo(s)}),[Ze,n,s]);return{state:{isInvalid:s,isFocused:$e,isChecked:Ze,isActive:Ce,isHovered:ee,isIndeterminate:T,isDisabled:n,isReadOnly:i,isRequired:o},getRootProps:St,getCheckboxProps:at,getInputProps:Dt,getLabelProps:He,htmlProps:q}}function Kk(e){e.preventDefault(),e.stopPropagation()}var sre=je("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),lre=je("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),ure=Ke(function(t,n){const i=Qne(),o={...i,...t},s=vo("Checkbox",o),u=pr(t),{spacing:p="0.5rem",className:m,children:v,iconColor:g,iconSize:b,icon:C=N(are,{},void 0,!1,{fileName:jl,lineNumber:505,columnNumber:28},this),isChecked:w,isDisabled:T=i?.isDisabled,onChange:A,inputProps:k,...I}=u;let D=w;i?.value&&u.value&&(D=i.value.includes(u.value));let P=A;i?.onChange&&u.value&&(P=ere(i.onChange,A));const{state:F,getInputProps:z,getCheckboxProps:q,getLabelProps:Y,getRootProps:Q}=NF({...I,isDisabled:T,isChecked:D,onChange:P}),ie=E.exports.useMemo(()=>({opacity:F.isChecked||F.isIndeterminate?1:0,transform:F.isChecked||F.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:b,color:g,...s.icon}),[g,b,F.isChecked,F.isIndeterminate,s.icon]),ae=E.exports.cloneElement(C,{__css:ie,isIndeterminate:F.isIndeterminate,isChecked:F.isChecked});return N(lre,{__css:s.container,className:Jne("chakra-checkbox",m),...Q(),children:[N("input",{className:"chakra-checkbox__input",...z(k,n)},void 0,!1,{fileName:jl,lineNumber:548,columnNumber:22},this),N(sre,{__css:s.control,className:"chakra-checkbox__control",...q(),children:ae},void 0,!1,{fileName:jl,lineNumber:551,columnNumber:23},this),v&&_e.createElement(je.span,{className:"chakra-checkbox__label",...Y(),__css:{marginStart:p,...s.label}},v)]},void 0,!0,{fileName:jl,lineNumber:544,columnNumber:26},this)});ure.displayName="Checkbox";var TE="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function cre(e){return N(vs,{focusable:"false","aria-hidden":!0,...e,children:N("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:TE,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:TE,lineNumber:13,columnNumber:26},this)}var k3=Ke(function(t,n){const i=ho("CloseButton",t),{children:o,isDisabled:s,__css:u,...p}=pr(t),m={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _e.createElement(je.button,{type:"button","aria-label":"Close",ref:n,disabled:s,__css:{...m,...i,...u},...p},o||N(cre,{width:"1em",height:"1em"},void 0,!1,{fileName:TE,lineNumber:43,columnNumber:34},this))});k3.displayName="CloseButton";function fre(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function EF(e,t){let n=fre(e);const i=10**(t??10);return n=Math.round(n*i)/i,t?n.toFixed(t):n.toString()}function Xk(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 dre(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 pre(e={}){const{onChange:t,precision:n,defaultValue:i,value:o,step:s=1,min:u=Number.MIN_SAFE_INTEGER,max:p=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,v=Wa(t),[g,b]=E.exports.useState(()=>i==null?"":$6(i,s,n)??""),C=typeof o<"u",w=C?o:g,T=_F(td(w),s),A=n??T,k=E.exports.useCallback(ae=>{ae!==w&&(C||b(ae.toString()),v?.(ae.toString(),td(ae)))},[v,C,w]),I=E.exports.useCallback(ae=>{let pe=ae;return m&&(pe=dre(pe,u,p)),EF(pe,A)},[A,m,p,u]),D=E.exports.useCallback((ae=s)=>{let pe;w===""?pe=td(ae):pe=td(w)+ae,pe=I(pe),k(pe)},[I,s,k,w]),P=E.exports.useCallback((ae=s)=>{let pe;w===""?pe=td(-ae):pe=td(w)-ae,pe=I(pe),k(pe)},[I,s,k,w]),F=E.exports.useCallback(()=>{let ae;i==null?ae="":ae=$6(i,s,n)??u,k(ae)},[i,n,s,k,u]),z=E.exports.useCallback(ae=>{const pe=$6(ae,s,A)??u;k(pe)},[A,s,k,u]),q=td(w);return{isOutOfRange:q>p||q<u,isAtMax:q===p,isAtMin:q===u,precision:A,value:w,valueAsNumber:q,update:k,reset:F,increment:D,decrement:P,clamp:I,cast:z,setValue:b}}function td(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function _F(e,t){return Math.max(Xk(t),Xk(e))}function $6(e,t,n){const i=td(e);if(Number.isNaN(i))return;const o=_F(i,t);return EF(i,n??o)}var TF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",RF=`
: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;
}
}
`,mre=()=>N(Nb,{styles:RF},void 0,!1,{fileName:TF,lineNumber:29,columnNumber:41},globalThis),hre=()=>N(Nb,{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;
}
${RF}
`},void 0,!1,{fileName:TF,lineNumber:32,columnNumber:38},globalThis);function RE(e,t,n,i){const o=Wa(n);return E.exports.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!n||!s))return s.addEventListener(t,o,i),()=>{s.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{const s=typeof e=="function"?e():e??document;s?.removeEventListener(t,o,i)}}var vre=Tb?E.exports.useLayoutEffect:E.exports.useEffect;function AE(e,t=[]){const n=E.exports.useRef(e);return vre(()=>{n.current=e}),E.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function O_(e,t,n,i){const o=AE(t);return E.exports.useEffect(()=>{const s=mS(n)??document;if(!!t)return s.addEventListener(e,o,i),()=>{s.removeEventListener(e,o,i)}},[e,n,i,o,t]),()=>{(mS(n)??document).removeEventListener(e,o,i)}}function gre(e){const{isOpen:t,ref:n}=e,[i,o]=E.exports.useState(t),[s,u]=E.exports.useState(!1);return E.exports.useEffect(()=>{s||(o(t),u(!0))},[t,s,i]),O_("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!i),onComplete(){var m;const v=zZ(n.current),g=new v.CustomEvent("animationend",{bubbles:!0});(m=n.current)==null||m.dispatchEvent(g)}}}function bre(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function yre(e,t){const n=E.exports.useId();return E.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function LS(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,s=AE(n),u=AE(t),[p,m]=E.exports.useState(e.defaultIsOpen||!1),[v,g]=bre(i,p),b=yre(o,"disclosure"),C=E.exports.useCallback(()=>{v||m(!1),u?.()},[v,u]),w=E.exports.useCallback(()=>{v||m(!0),s?.()},[v,s]),T=E.exports.useCallback(()=>{(g?C:w)()},[g,w,C]);return{isOpen:!!g,onOpen:w,onClose:C,onToggle:T,isControlled:v,getButtonProps:(A={})=>({...A,"aria-expanded":g,"aria-controls":b,onClick:QZ(A.onClick,T)}),getDisclosureProps:(A={})=>({...A,hidden:!g,id:b})}}var AF=(e,t)=>{const n=E.exports.useRef(!1),i=E.exports.useRef(!1);E.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),E.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function xre(e){const t=e.current;if(!t)return!1;const n=jZ(t);return!n||Z8(t,n)?!1:!!YZ(n)}function Sre(e,t){const{shouldFocus:n,visible:i,focusRef:o}=t,s=n&&!i;AF(()=>{if(!s||xre(e))return;const u=o?.current||e.current;u&&hS(u,{nextTick:!0})},[s,e,o])}function Cre(e,t,n,i){return O_(gK(t),fK(n,t==="pointerdown"),e,i)}function wre(e){const{ref:t,elements:n,enabled:i}=e,o=yK("Safari");Cre(()=>_b(t.current),"pointerdown",u=>{if(!o||!i)return;const p=u.target,v=(n??[t]).some(g=>{const b=xI(g)?g.current:g;return Z8(b,p)});!EI(p)&&v&&(u.preventDefault(),hS(p))})}var Nre={preventScroll:!0,shouldFocus:!1};function Ere(e,t=Nre){const{focusRef:n,preventScroll:i,shouldFocus:o,visible:s}=t,u=xI(e)?e.current:e,p=o&&s,m=E.exports.useCallback(()=>{if(!(!u||!p)&&!Z8(u,document.activeElement))if(n?.current)hS(n.current,{preventScroll:i,nextTick:!0});else{const v=XZ(u);v.length>0&&hS(v[0],{preventScroll:i,nextTick:!0})}},[p,i,u,n]);AF(()=>{m()},[m]),O_("transitionend",m,u)}function L_(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var wm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",k_=Ke(function(t,n){const{htmlSize:i,...o}=t,s=vo("Input",o),u=pr(o),p=__(u),m=Qr("chakra-input",t.className);return _e.createElement(je.input,{size:i,...p,__css:s.field,ref:n,className:m})});k_.displayName="Input";k_.id="Input";var[_re,OF]=Rr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Tre=Ke(function(t,n){const i=vo("Input",t),{children:o,className:s,...u}=pr(t),p=Qr("chakra-input__group",s),m={},v=A3(o),g=i.field;v.forEach(C=>{!i||(g&&C.type.id==="InputLeftElement"&&(m.paddingStart=g.height??g.h),g&&C.type.id==="InputRightElement"&&(m.paddingEnd=g.height??g.h),C.type.id==="InputRightAddon"&&(m.borderEndRadius=0),C.type.id==="InputLeftAddon"&&(m.borderStartRadius=0))});const b=v.map(C=>{var w,T;const A=L_({size:((w=C.props)==null?void 0:w.size)||t.size,variant:((T=C.props)==null?void 0:T.variant)||t.variant});return C.type.id!=="Input"?E.exports.cloneElement(C,A):E.exports.cloneElement(C,Object.assign(A,m,C.props))});return _e.createElement(je.div,{className:p,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...u},N(_re,{value:i,children:b},void 0,!1,{fileName:wm,lineNumber:90,columnNumber:22},this))});Tre.displayName="InputGroup";var Rre={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Are=je("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),M_=Ke(function(t,n){const{placement:i="left",...o}=t,s=Rre[i]??{},u=OF();return N(Are,{ref:n,...o,__css:{...u.addon,...s}},void 0,!1,{fileName:wm,lineNumber:122,columnNumber:26},this)});M_.displayName="InputAddon";var LF=Ke(function(t,n){return N(M_,{ref:n,placement:"left",...t,className:Qr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:wm,lineNumber:133,columnNumber:26},this)});LF.displayName="InputLeftAddon";LF.id="InputLeftAddon";var kF=Ke(function(t,n){return N(M_,{ref:n,placement:"right",...t,className:Qr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:wm,lineNumber:143,columnNumber:26},this)});kF.displayName="InputRightAddon";kF.id="InputRightAddon";var Ore=je("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),M3=Ke(function(t,n){const{placement:i="left",...o}=t,s=OF(),u=s.field,m={[i==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...s.element};return N(Ore,{ref:n,__css:m,...o},void 0,!1,{fileName:wm,lineNumber:181,columnNumber:26},this)});M3.id="InputElement";M3.displayName="InputElement";var MF=Ke(function(t,n){const{className:i,...o}=t,s=Qr("chakra-input__left-element",i);return N(M3,{ref:n,placement:"left",className:s,...o},void 0,!1,{fileName:wm,lineNumber:192,columnNumber:26},this)});MF.id="InputLeftElement";MF.displayName="InputLeftElement";var DF=Ke(function(t,n){const{className:i,...o}=t,s=Qr("chakra-input__right-element",i);return N(M3,{ref:n,placement:"right",className:s,...o},void 0,!1,{fileName:wm,lineNumber:204,columnNumber:26},this)});DF.id="InputRightElement";DF.displayName="InputRightElement";function Lre(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function vd(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Lre(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):e!=null?t(e):null}var Qs="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",kre=Ke(function(e,t){const{ratio:n=4/3,children:i,className:o,...s}=e,u=E.exports.Children.only(i),p=Qr("chakra-aspect-ratio",o);return _e.createElement(je.div,{ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:vd(n,m=>`${1/m*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"}},...s},u)});kre.displayName="AspectRatio";var Mre=Ke(function(t,n){const i=ho("Badge",t),{className:o,...s}=pr(t);return _e.createElement(je.span,{ref:n,className:Qr("chakra-badge",t.className),...s,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});Mre.displayName="Badge";var Js=je("div");Js.displayName="Box";var PF=Ke(function(t,n){const{size:i,centerContent:o=!0,...s}=t;return N(Js,{ref:n,boxSize:i,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...s},void 0,!1,{fileName:Qs,lineNumber:84,columnNumber:26},this)});PF.displayName="Square";var Dre=Ke(function(t,n){const{size:i,...o}=t;return N(PF,{size:i,ref:n,borderRadius:"9999px",...o},void 0,!1,{fileName:Qs,lineNumber:98,columnNumber:26},this)});Dre.displayName="Circle";var IF=je("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});IF.displayName="Center";var Pre={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Ke(function(t,n){const{axis:i="both",...o}=t;return _e.createElement(je.div,{ref:n,__css:Pre[i],...o,position:"absolute"})});var Ire=Ke(function(t,n){const i=ho("Code",t),{className:o,...s}=pr(t);return _e.createElement(je.code,{ref:n,className:Qr("chakra-code",t.className),...s,__css:{display:"inline-block",...i}})});Ire.displayName="Code";var $re=Ke(function(t,n){const{className:i,centerContent:o,...s}=pr(t),u=ho("Container",t);return _e.createElement(je.div,{ref:n,className:Qr("chakra-container",i),...s,__css:{...u,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});$re.displayName="Container";var Fre=Ke(function(t,n){const{borderLeftWidth:i,borderBottomWidth:o,borderTopWidth:s,borderRightWidth:u,borderWidth:p,borderStyle:m,borderColor:v,...g}=ho("Divider",t),{className:b,orientation:C="horizontal",__css:w,...T}=pr(t),A={vertical:{borderLeftWidth:i||u||p||"1px",height:"100%"},horizontal:{borderBottomWidth:o||s||p||"1px",width:"100%"}};return _e.createElement(je.hr,{ref:n,"aria-orientation":C,...T,__css:{...g,border:"0",borderColor:v,borderStyle:m,...A[C],...w},className:Qr("chakra-divider",b)})});Fre.displayName="Divider";var yr=Ke(function(t,n){const{direction:i,align:o,justify:s,wrap:u,basis:p,grow:m,shrink:v,...g}=t,b={display:"flex",flexDirection:i,alignItems:o,justifyContent:s,flexWrap:u,flexBasis:p,flexGrow:m,flexShrink:v};return _e.createElement(je.div,{ref:n,__css:b,...g})});yr.displayName="Flex";var $F=Ke(function(t,n){const{templateAreas:i,gap:o,rowGap:s,columnGap:u,column:p,row:m,autoFlow:v,autoRows:g,templateRows:b,autoColumns:C,templateColumns:w,...T}=t,A={display:"grid",gridTemplateAreas:i,gridGap:o,gridRowGap:s,gridColumnGap:u,gridAutoColumns:C,gridColumn:p,gridRow:m,gridAutoFlow:v,gridAutoRows:g,gridTemplateRows:b,gridTemplateColumns:w};return _e.createElement(je.div,{ref:n,__css:A,...T})});$F.displayName="Grid";function Qk(e){return vd(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var zre=Ke(function(t,n){const{area:i,colSpan:o,colStart:s,colEnd:u,rowEnd:p,rowSpan:m,rowStart:v,...g}=t,b=L_({gridArea:i,gridColumn:Qk(o),gridRow:Qk(m),gridColumnStart:s,gridColumnEnd:u,gridRowStart:v,gridRowEnd:p});return _e.createElement(je.div,{ref:n,__css:b,...g})});zre.displayName="GridItem";var D_=Ke(function(t,n){const i=ho("Heading",t),{className:o,...s}=pr(t);return _e.createElement(je.h2,{ref:n,className:Qr("chakra-heading",t.className),...s,__css:i})});D_.displayName="Heading";Ke(function(t,n){const i=ho("Mark",t),o=pr(t);return N(Js,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:Qs,lineNumber:399,columnNumber:26},this)});var Bre=Ke(function(t,n){const i=ho("Kbd",t),{className:o,...s}=pr(t);return _e.createElement(je.kbd,{ref:n,className:Qr("chakra-kbd",o),...s,__css:{fontFamily:"mono",...i}})});Bre.displayName="Kbd";var Tv=Ke(function(t,n){const i=ho("Link",t),{className:o,isExternal:s,...u}=pr(t);return _e.createElement(je.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:n,className:Qr("chakra-link",o),...u,__css:i})});Tv.displayName="Link";Ke(function(t,n){const{isExternal:i,target:o,rel:s,className:u,...p}=t;return _e.createElement(je.a,{...p,ref:n,className:Qr("chakra-linkbox__overlay",u),rel:i?"noopener noreferrer":s,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%"}}})});Ke(function(t,n){const{className:i,...o}=t;return _e.createElement(je.div,{ref:n,position:"relative",...o,className:Qr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[Ure,FF]=Rr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),P_=Ke(function(t,n){const i=vo("List",t),{children:o,styleType:s="none",stylePosition:u,spacing:p,...m}=pr(t),v=A3(o),b=p?{["& > *:not(style) ~ *:not(style)"]:{mt:p}}:{};return _e.createElement(Ure,{value:i},_e.createElement(je.ul,{ref:n,listStyleType:s,listStylePosition:u,role:"list",__css:{...i.container,...b},...m},v))});P_.displayName="List";var jre=Ke((e,t)=>{const{as:n,...i}=e;return N(P_,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:Qs,lineNumber:550,columnNumber:26},globalThis)});jre.displayName="OrderedList";var Vre=Ke(function(t,n){const{as:i,...o}=t;return N(P_,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o},void 0,!1,{fileName:Qs,lineNumber:561,columnNumber:26},this)});Vre.displayName="UnorderedList";var Hre=Ke(function(t,n){const i=FF();return _e.createElement(je.li,{ref:n,...t,__css:i.item})});Hre.displayName="ListItem";var Wre=Ke(function(t,n){const i=FF();return N(vs,{ref:n,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:Qs,lineNumber:581,columnNumber:26},this)});Wre.displayName="ListIcon";var Gre=Ke(function(t,n){const{columns:i,spacingX:o,spacingY:s,spacing:u,minChildWidth:p,...m}=t,v=d3(),g=p?qre(p,v):Zre(i);return N($F,{ref:n,gap:u,columnGap:o,rowGap:s,templateColumns:g,...m},void 0,!1,{fileName:Qs,lineNumber:601,columnNumber:26},this)});Gre.displayName="SimpleGrid";function Yre(e){return typeof e=="number"?`${e}px`:e}function qre(e,t){return vd(e,n=>{const i=PK("sizes",n,Yre(n))(t);return n===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function Zre(e){return vd(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Kre=je("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Kre.displayName="Spacer";var OE="& > *:not(style) ~ *:not(style)";function Xre(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,[OE]:vd(n,o=>i[o])}}function Qre(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{"&":vd(n,o=>i[o])}}var zF=e=>_e.createElement(je.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});zF.displayName="StackItem";var I_=Ke((e,t)=>{const{isInline:n,direction:i,align:o,justify:s,spacing:u="0.5rem",wrap:p,children:m,divider:v,className:g,shouldWrapChildren:b,...C}=e,w=n?"row":i??"column",T=E.exports.useMemo(()=>Xre({direction:w,spacing:u}),[w,u]),A=E.exports.useMemo(()=>Qre({spacing:u,direction:w}),[u,w]),k=!!v,I=!b&&!k,D=A3(m),P=I?D:D.map((z,q)=>{const Y=typeof z.key<"u"?z.key:q,Q=q+1===D.length,ae=b?N(zF,{children:z},Y,!1,{fileName:Qs,lineNumber:749,columnNumber:42},globalThis):z;if(!k)return ae;const pe=E.exports.cloneElement(v,{__css:A}),$e=Q?null:pe;return N(E.exports.Fragment,{children:[ae,$e]},Y,!0,{fileName:Qs,lineNumber:759,columnNumber:28},globalThis)}),F=Qr("chakra-stack",g);return _e.createElement(je.div,{ref:t,display:"flex",alignItems:o,justifyContent:s,flexDirection:T.flexDirection,flexWrap:p,className:F,__css:k?{}:{[OE]:T[OE]},...C},P)});I_.displayName="Stack";var Jre=Ke((e,t)=>N(I_,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:Qs,lineNumber:779,columnNumber:59},globalThis));Jre.displayName="HStack";var eie=Ke((e,t)=>N(I_,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:Qs,lineNumber:805,columnNumber:59},globalThis));eie.displayName="VStack";var Do=Ke(function(t,n){const i=ho("Text",t),{className:o,align:s,decoration:u,casing:p,...m}=pr(t),v=L_({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _e.createElement(je.p,{ref:n,className:Qr("chakra-text",t.className),...v,...m,__css:i})});Do.displayName="Text";function Jk(e){return typeof e=="number"?`${e}px`:e}var tie=Ke(function(t,n){const{spacing:i="0.5rem",spacingX:o,spacingY:s,children:u,justify:p,direction:m,align:v,className:g,shouldWrapChildren:b,...C}=t,w=E.exports.useMemo(()=>{const{spacingX:A=i,spacingY:k=i}={spacingX:o,spacingY:s};return{"--chakra-wrap-x-spacing":I=>vd(A,D=>Jk(j7("space",D)(I))),"--chakra-wrap-y-spacing":I=>vd(k,D=>Jk(j7("space",D)(I))),"--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:m,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,s,p,v,m]),T=b?E.exports.Children.map(u,(A,k)=>N(BF,{children:A},k,!1,{fileName:Qs,lineNumber:888,columnNumber:107},this)):u;return _e.createElement(je.div,{ref:n,className:Qr("chakra-wrap",g),overflow:"hidden",...C},_e.createElement(je.ul,{className:"chakra-wrap__list",__css:w},T))});tie.displayName="Wrap";var BF=Ke(function(t,n){const{className:i,...o}=t;return _e.createElement(je.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Qr("chakra-wrap__listitem",i),...o})});BF.displayName="WrapItem";var eM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",nie={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[]}}}},UF=nie,tv=()=>{},rie={document:UF,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:tv,removeEventListener:tv,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:tv,removeListener:tv}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:tv,setInterval:()=>0,clearInterval:tv},iie=rie,aie={window:iie,document:UF},jF=typeof window<"u"?{window,document}:aie,VF=E.exports.createContext(jF);VF.displayName="EnvironmentContext";function HF(e){const{children:t,environment:n}=e,[i,o]=E.exports.useState(null),[s,u]=E.exports.useState(!1);E.exports.useEffect(()=>u(!0),[]);const p=E.exports.useMemo(()=>{if(n)return n;const m=i?.ownerDocument,v=i?.ownerDocument.defaultView;return m?{document:m,window:v}:jF},[i,n]);return N(VF.Provider,{value:p,children:[t,!n&&s&&N("span",{id:"__chakra_env",hidden:!0,ref:m=>{E.exports.startTransition(()=>{m&&o(m)})}},void 0,!1,{fileName:eM,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:eM,lineNumber:134,columnNumber:26},this)}HF.displayName="EnvironmentProvider";var oie=e=>e?"":void 0;function sie(){const e=E.exports.useRef(new Map),t=e.current,n=E.exports.useCallback((o,s,u,p)=>{e.current.set(u,{type:s,el:o,options:p}),o.addEventListener(s,u,p)},[]),i=E.exports.useCallback((o,s,u,p)=>{o.removeEventListener(s,u,p),e.current.delete(u)},[]);return E.exports.useEffect(()=>()=>{t.forEach((o,s)=>{i(o.el,o.type,s,o.options)})},[i,t]),{add:n,remove:i}}function F6(e){const t=e.target,{tagName:n,isContentEditable:i}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&i!==!0}function lie(e={}){const{ref:t,isDisabled:n,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:s=!0,onMouseDown:u,onMouseUp:p,onClick:m,onKeyDown:v,onKeyUp:g,tabIndex:b,onMouseOver:C,onMouseLeave:w,...T}=e,[A,k]=E.exports.useState(!0),[I,D]=E.exports.useState(!1),P=sie(),F=K=>{!K||K.tagName!=="BUTTON"&&k(!1)},z=A?b:b||0,q=n&&!i,Y=E.exports.useCallback(K=>{if(n){K.stopPropagation(),K.preventDefault();return}K.currentTarget.focus(),m?.(K)},[n,m]),Q=E.exports.useCallback(K=>{I&&F6(K)&&(K.preventDefault(),K.stopPropagation(),D(!1),P.remove(document,"keyup",Q,!1))},[I,P]),ie=E.exports.useCallback(K=>{if(v?.(K),n||K.defaultPrevented||K.metaKey||!F6(K.nativeEvent)||A)return;const le=o&&K.key==="Enter";s&&K.key===" "&&(K.preventDefault(),D(!0)),le&&(K.preventDefault(),K.currentTarget.click()),P.add(document,"keyup",Q,!1)},[n,A,v,o,s,P,Q]),ae=E.exports.useCallback(K=>{if(g?.(K),n||K.defaultPrevented||K.metaKey||!F6(K.nativeEvent)||A)return;s&&K.key===" "&&(K.preventDefault(),D(!1),K.currentTarget.click())},[s,A,n,g]),pe=E.exports.useCallback(K=>{K.button===0&&(D(!1),P.remove(document,"mouseup",pe,!1))},[P]),$e=E.exports.useCallback(K=>{if(K.button!==0)return;if(n){K.stopPropagation(),K.preventDefault();return}A||D(!0),K.currentTarget.focus({preventScroll:!0}),P.add(document,"mouseup",pe,!1),u?.(K)},[n,A,u,P,pe]),te=E.exports.useCallback(K=>{K.button===0&&(A||D(!1),p?.(K))},[p,A]),ee=E.exports.useCallback(K=>{if(n){K.preventDefault();return}C?.(K)},[n,C]),be=E.exports.useCallback(K=>{I&&(K.preventDefault(),D(!1)),w?.(K)},[I,w]),Ce=Kr(t,F);return A?{...T,ref:Ce,type:"button","aria-disabled":q?void 0:n,disabled:q,onClick:Y,onMouseDown:u,onMouseUp:p,onKeyUp:g,onKeyDown:v,onMouseOver:C,onMouseLeave:w}:{...T,ref:Ce,role:"button","data-active":oie(I),"aria-disabled":n?"true":void 0,tabIndex:q?void 0:z,onClick:Y,onMouseDown:$e,onMouseUp:te,onKeyUp:ae,onKeyDown:ie,onMouseOver:ee,onMouseLeave:be}}function uie(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function cie(e){if(!uie(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var fie=e=>e.hasAttribute("tabindex");function die(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 pie(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function mie(e){if(!cie(e)||WF(e)||die(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]():pie(e)?!0:fie(e)}var hie=["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]"],vie=hie.join(),gie=e=>e.offsetWidth>0&&e.offsetHeight>0;function bie(e){const t=Array.from(e.querySelectorAll(vie));return t.unshift(e),t.filter(n=>mie(n)&&gie(n))}var Io="top",el="bottom",tl="right",$o="left",D3="auto",$b=[Io,el,tl,$o],$v="start",ub="end",yie="clippingParents",GF="viewport",xg="popper",xie="reference",tM=$b.reduce(function(e,t){return e.concat([t+"-"+$v,t+"-"+ub])},[]),YF=[].concat($b,[D3]).reduce(function(e,t){return e.concat([t,t+"-"+$v,t+"-"+ub])},[]),Sie="beforeRead",Cie="read",wie="afterRead",Nie="beforeMain",Eie="main",_ie="afterMain",Tie="beforeWrite",Rie="write",Aie="afterWrite",LE=[Sie,Cie,wie,Nie,Eie,_ie,Tie,Rie,Aie];function zu(e){return e?(e.nodeName||"").toLowerCase():null}function il(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vm(e){var t=il(e).Element;return e instanceof t||e instanceof Element}function ps(e){var t=il(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $_(e){if(typeof ShadowRoot>"u")return!1;var t=il(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Oie(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!ps(s)||!zu(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(u){var p=o[u];p===!1?s.removeAttribute(u):s.setAttribute(u,p===!0?"":p)}))})}function Lie(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],s=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),p=u.reduce(function(m,v){return m[v]="",m},{});!ps(o)||!zu(o)||(Object.assign(o.style,p),Object.keys(s).forEach(function(m){o.removeAttribute(m)}))})}}const kie={name:"applyStyles",enabled:!0,phase:"write",fn:Oie,effect:Lie,requires:["computeStyles"]};function Hl(e){return e.split("-")[0]}var fm=Math.max,kS=Math.min,Fv=Math.round;function kE(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qF(){return!/^((?!chrome|android).)*safari/i.test(kE())}function zv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&ps(e)&&(o=e.offsetWidth>0&&Fv(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Fv(i.height)/e.offsetHeight||1);var u=vm(e)?il(e):window,p=u.visualViewport,m=!qF()&&n,v=(i.left+(m&&p?p.offsetLeft:0))/o,g=(i.top+(m&&p?p.offsetTop:0))/s,b=i.width/o,C=i.height/s;return{width:b,height:C,top:g,right:v+b,bottom:g+C,left:v,x:v,y:g}}function F_(e){var t=zv(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 ZF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$_(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Wl(e){return il(e).getComputedStyle(e)}function Mie(e){return["table","td","th"].indexOf(zu(e))>=0}function Nd(e){return((vm(e)?e.ownerDocument:e.document)||window.document).documentElement}function P3(e){return zu(e)==="html"?e:e.assignedSlot||e.parentNode||($_(e)?e.host:null)||Nd(e)}function nM(e){return!ps(e)||Wl(e).position==="fixed"?null:e.offsetParent}function Die(e){var t=/firefox/i.test(kE()),n=/Trident/i.test(kE());if(n&&ps(e)){var i=Wl(e);if(i.position==="fixed")return null}var o=P3(e);for($_(o)&&(o=o.host);ps(o)&&["html","body"].indexOf(zu(o))<0;){var s=Wl(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Fb(e){for(var t=il(e),n=nM(e);n&&Mie(n)&&Wl(n).position==="static";)n=nM(n);return n&&(zu(n)==="html"||zu(n)==="body"&&Wl(n).position==="static")?t:n||Die(e)||t}function z_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vg(e,t,n){return fm(e,kS(t,n))}function Pie(e,t,n){var i=Vg(e,t,n);return i>n?n:i}function KF(){return{top:0,right:0,bottom:0,left:0}}function XF(e){return Object.assign({},KF(),e)}function QF(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Iie=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,XF(typeof t!="number"?t:QF(t,$b))};function $ie(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,u=n.modifiersData.popperOffsets,p=Hl(n.placement),m=z_(p),v=[$o,tl].indexOf(p)>=0,g=v?"height":"width";if(!(!s||!u)){var b=Iie(o.padding,n),C=F_(s),w=m==="y"?Io:$o,T=m==="y"?el:tl,A=n.rects.reference[g]+n.rects.reference[m]-u[m]-n.rects.popper[g],k=u[m]-n.rects.reference[m],I=Fb(s),D=I?m==="y"?I.clientHeight||0:I.clientWidth||0:0,P=A/2-k/2,F=b[w],z=D-C[g]-b[T],q=D/2-C[g]/2+P,Y=Vg(F,q,z),Q=m;n.modifiersData[i]=(t={},t[Q]=Y,t.centerOffset=Y-q,t)}}function Fie(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(ps(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(" ")),!ZF(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 zie={name:"arrow",enabled:!0,phase:"main",fn:$ie,effect:Fie,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bv(e){return e.split("-")[1]}var Bie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Uie(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:Fv(t*o)/o||0,y:Fv(n*o)/o||0}}function rM(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,u=e.offsets,p=e.position,m=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,b=e.isFixed,C=u.x,w=C===void 0?0:C,T=u.y,A=T===void 0?0:T,k=typeof g=="function"?g({x:w,y:A}):{x:w,y:A};w=k.x,A=k.y;var I=u.hasOwnProperty("x"),D=u.hasOwnProperty("y"),P=$o,F=Io,z=window;if(v){var q=Fb(n),Y="clientHeight",Q="clientWidth";if(q===il(n)&&(q=Nd(n),Wl(q).position!=="static"&&p==="absolute"&&(Y="scrollHeight",Q="scrollWidth")),q=q,o===Io||(o===$o||o===tl)&&s===ub){F=el;var ie=b&&q===z&&z.visualViewport?z.visualViewport.height:q[Y];A-=ie-i.height,A*=m?1:-1}if(o===$o||(o===Io||o===el)&&s===ub){P=tl;var ae=b&&q===z&&z.visualViewport?z.visualViewport.width:q[Q];w-=ae-i.width,w*=m?1:-1}}var pe=Object.assign({position:p},v&&Bie),$e=g===!0?Uie({x:w,y:A}):{x:w,y:A};if(w=$e.x,A=$e.y,m){var te;return Object.assign({},pe,(te={},te[F]=D?"0":"",te[P]=I?"0":"",te.transform=(z.devicePixelRatio||1)<=1?"translate("+w+"px, "+A+"px)":"translate3d("+w+"px, "+A+"px, 0)",te))}return Object.assign({},pe,(t={},t[F]=D?A+"px":"",t[P]=I?w+"px":"",t.transform="",t))}function jie(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,u=s===void 0?!0:s,p=n.roundOffsets,m=p===void 0?!0:p;{var v=Wl(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(b){return v.indexOf(b)>=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 g={placement:Hl(t.placement),variation:Bv(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,rM(Object.assign({},g,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rM(Object.assign({},g,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jie,data:{}};var m5={passive:!0};function Hie(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,u=i.resize,p=u===void 0?!0:u,m=il(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&v.forEach(function(g){g.addEventListener("scroll",n.update,m5)}),p&&m.addEventListener("resize",n.update,m5),function(){s&&v.forEach(function(g){g.removeEventListener("scroll",n.update,m5)}),p&&m.removeEventListener("resize",n.update,m5)}}const Wie={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hie,data:{}};var Gie={left:"right",right:"left",bottom:"top",top:"bottom"};function Y5(e){return e.replace(/left|right|bottom|top/g,function(t){return Gie[t]})}var Yie={start:"end",end:"start"};function iM(e){return e.replace(/start|end/g,function(t){return Yie[t]})}function B_(e){var t=il(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function U_(e){return zv(Nd(e)).left+B_(e).scrollLeft}function qie(e,t){var n=il(e),i=Nd(e),o=n.visualViewport,s=i.clientWidth,u=i.clientHeight,p=0,m=0;if(o){s=o.width,u=o.height;var v=qF();(v||!v&&t==="fixed")&&(p=o.offsetLeft,m=o.offsetTop)}return{width:s,height:u,x:p+U_(e),y:m}}function Zie(e){var t,n=Nd(e),i=B_(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=fm(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=fm(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-i.scrollLeft+U_(e),m=-i.scrollTop;return Wl(o||n).direction==="rtl"&&(p+=fm(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:u,x:p,y:m}}function j_(e){var t=Wl(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function JF(e){return["html","body","#document"].indexOf(zu(e))>=0?e.ownerDocument.body:ps(e)&&j_(e)?e:JF(P3(e))}function Hg(e,t){var n;t===void 0&&(t=[]);var i=JF(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=il(i),u=o?[s].concat(s.visualViewport||[],j_(i)?i:[]):i,p=t.concat(u);return o?p:p.concat(Hg(P3(u)))}function ME(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kie(e,t){var n=zv(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 aM(e,t,n){return t===GF?ME(qie(e,n)):vm(t)?Kie(t,n):ME(Zie(Nd(e)))}function Xie(e){var t=Hg(P3(e)),n=["absolute","fixed"].indexOf(Wl(e).position)>=0,i=n&&ps(e)?Fb(e):e;return vm(i)?t.filter(function(o){return vm(o)&&ZF(o,i)&&zu(o)!=="body"}):[]}function Qie(e,t,n,i){var o=t==="clippingParents"?Xie(e):[].concat(t),s=[].concat(o,[n]),u=s[0],p=s.reduce(function(m,v){var g=aM(e,v,i);return m.top=fm(g.top,m.top),m.right=kS(g.right,m.right),m.bottom=kS(g.bottom,m.bottom),m.left=fm(g.left,m.left),m},aM(e,u,i));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function ez(e){var t=e.reference,n=e.element,i=e.placement,o=i?Hl(i):null,s=i?Bv(i):null,u=t.x+t.width/2-n.width/2,p=t.y+t.height/2-n.height/2,m;switch(o){case Io:m={x:u,y:t.y-n.height};break;case el:m={x:u,y:t.y+t.height};break;case tl:m={x:t.x+t.width,y:p};break;case $o:m={x:t.x-n.width,y:p};break;default:m={x:t.x,y:t.y}}var v=o?z_(o):null;if(v!=null){var g=v==="y"?"height":"width";switch(s){case $v:m[v]=m[v]-(t[g]/2-n[g]/2);break;case ub:m[v]=m[v]+(t[g]/2-n[g]/2);break}}return m}function cb(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,u=s===void 0?e.strategy:s,p=n.boundary,m=p===void 0?yie:p,v=n.rootBoundary,g=v===void 0?GF:v,b=n.elementContext,C=b===void 0?xg:b,w=n.altBoundary,T=w===void 0?!1:w,A=n.padding,k=A===void 0?0:A,I=XF(typeof k!="number"?k:QF(k,$b)),D=C===xg?xie:xg,P=e.rects.popper,F=e.elements[T?D:C],z=Qie(vm(F)?F:F.contextElement||Nd(e.elements.popper),m,g,u),q=zv(e.elements.reference),Y=ez({reference:q,element:P,strategy:"absolute",placement:o}),Q=ME(Object.assign({},P,Y)),ie=C===xg?Q:q,ae={top:z.top-ie.top+I.top,bottom:ie.bottom-z.bottom+I.bottom,left:z.left-ie.left+I.left,right:ie.right-z.right+I.right},pe=e.modifiersData.offset;if(C===xg&&pe){var $e=pe[o];Object.keys(ae).forEach(function(te){var ee=[tl,el].indexOf(te)>=0?1:-1,be=[Io,el].indexOf(te)>=0?"y":"x";ae[te]+=$e[be]*ee})}return ae}function Jie(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,u=n.padding,p=n.flipVariations,m=n.allowedAutoPlacements,v=m===void 0?YF:m,g=Bv(i),b=g?p?tM:tM.filter(function(T){return Bv(T)===g}):$b,C=b.filter(function(T){return v.indexOf(T)>=0});C.length===0&&(C=b,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 w=C.reduce(function(T,A){return T[A]=cb(e,{placement:A,boundary:o,rootBoundary:s,padding:u})[Hl(A)],T},{});return Object.keys(w).sort(function(T,A){return w[T]-w[A]})}function eae(e){if(Hl(e)===D3)return[];var t=Y5(e);return[iM(e),t,iM(t)]}function tae(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,u=n.altAxis,p=u===void 0?!0:u,m=n.fallbackPlacements,v=n.padding,g=n.boundary,b=n.rootBoundary,C=n.altBoundary,w=n.flipVariations,T=w===void 0?!0:w,A=n.allowedAutoPlacements,k=t.options.placement,I=Hl(k),D=I===k,P=m||(D||!T?[Y5(k)]:eae(k)),F=[k].concat(P).reduce(function(Ze,Je){return Ze.concat(Hl(Je)===D3?Jie(t,{placement:Je,boundary:g,rootBoundary:b,padding:v,flipVariations:T,allowedAutoPlacements:A}):Je)},[]),z=t.rects.reference,q=t.rects.popper,Y=new Map,Q=!0,ie=F[0],ae=0;ae<F.length;ae++){var pe=F[ae],$e=Hl(pe),te=Bv(pe)===$v,ee=[Io,el].indexOf($e)>=0,be=ee?"width":"height",Ce=cb(t,{placement:pe,boundary:g,rootBoundary:b,altBoundary:C,padding:v}),K=ee?te?tl:$o:te?el:Io;z[be]>q[be]&&(K=Y5(K));var le=Y5(K),ve=[];if(s&&ve.push(Ce[$e]<=0),p&&ve.push(Ce[K]<=0,Ce[le]<=0),ve.every(function(Ze){return Ze})){ie=pe,Q=!1;break}Y.set(pe,ve)}if(Q)for(var de=T?3:1,we=function(Je){var it=F.find(function(Rt){var Ve=Y.get(Rt);if(Ve)return Ve.slice(0,Je).every(function(at){return at})});if(it)return ie=it,"break"},Le=de;Le>0;Le--){var Me=we(Le);if(Me==="break")break}t.placement!==ie&&(t.modifiersData[i]._skip=!0,t.placement=ie,t.reset=!0)}}const nae={name:"flip",enabled:!0,phase:"main",fn:tae,requiresIfExists:["offset"],data:{_skip:!1}};function oM(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 sM(e){return[Io,tl,el,$o].some(function(t){return e[t]>=0})}function rae(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,u=cb(t,{elementContext:"reference"}),p=cb(t,{altBoundary:!0}),m=oM(u,i),v=oM(p,o,s),g=sM(m),b=sM(v);t.modifiersData[n]={referenceClippingOffsets:m,popperEscapeOffsets:v,isReferenceHidden:g,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":b})}const iae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rae};function aae(e,t,n){var i=Hl(e),o=[$o,Io].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=s[0],p=s[1];return u=u||0,p=(p||0)*o,[$o,tl].indexOf(i)>=0?{x:p,y:u}:{x:u,y:p}}function oae(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,u=YF.reduce(function(g,b){return g[b]=aae(b,t.rects,s),g},{}),p=u[t.placement],m=p.x,v=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=u}const sae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oae};function lae(e){var t=e.state,n=e.name;t.modifiersData[n]=ez({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uae={name:"popperOffsets",enabled:!0,phase:"read",fn:lae,data:{}};function cae(e){return e==="x"?"y":"x"}function fae(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,u=n.altAxis,p=u===void 0?!1:u,m=n.boundary,v=n.rootBoundary,g=n.altBoundary,b=n.padding,C=n.tether,w=C===void 0?!0:C,T=n.tetherOffset,A=T===void 0?0:T,k=cb(t,{boundary:m,rootBoundary:v,padding:b,altBoundary:g}),I=Hl(t.placement),D=Bv(t.placement),P=!D,F=z_(I),z=cae(F),q=t.modifiersData.popperOffsets,Y=t.rects.reference,Q=t.rects.popper,ie=typeof A=="function"?A(Object.assign({},t.rects,{placement:t.placement})):A,ae=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),pe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$e={x:0,y:0};if(!!q){if(s){var te,ee=F==="y"?Io:$o,be=F==="y"?el:tl,Ce=F==="y"?"height":"width",K=q[F],le=K+k[ee],ve=K-k[be],de=w?-Q[Ce]/2:0,we=D===$v?Y[Ce]:Q[Ce],Le=D===$v?-Q[Ce]:-Y[Ce],Me=t.elements.arrow,Ze=w&&Me?F_(Me):{width:0,height:0},Je=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:KF(),it=Je[ee],Rt=Je[be],Ve=Vg(0,Y[Ce],Ze[Ce]),at=P?Y[Ce]/2-de-Ve-it-ae.mainAxis:we-Ve-it-ae.mainAxis,St=P?-Y[Ce]/2+de+Ve+Rt+ae.mainAxis:Le+Ve+Rt+ae.mainAxis,Dt=t.elements.arrow&&Fb(t.elements.arrow),He=Dt?F==="y"?Dt.clientTop||0:Dt.clientLeft||0:0,jt=(te=pe?.[F])!=null?te:0,Se=K+at-jt-He,tt=K+St-jt,Ct=Vg(w?kS(le,Se):le,K,w?fm(ve,tt):ve);q[F]=Ct,$e[F]=Ct-K}if(p){var nt,on=F==="x"?Io:$o,Ln=F==="x"?el:tl,_t=q[z],sn=z==="y"?"height":"width",kn=_t+k[on],bn=_t-k[Ln],Ye=[Io,$o].indexOf(I)!==-1,et=(nt=pe?.[z])!=null?nt:0,nn=Ye?kn:_t-Y[sn]-Q[sn]-et+ae.altAxis,Pt=Ye?_t+Y[sn]+Q[sn]-et-ae.altAxis:bn,De=w&&Ye?Pie(nn,_t,Pt):Vg(w?nn:kn,_t,w?Pt:bn);q[z]=De,$e[z]=De-_t}t.modifiersData[i]=$e}}const dae={name:"preventOverflow",enabled:!0,phase:"main",fn:fae,requiresIfExists:["offset"]};function pae(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mae(e){return e===il(e)||!ps(e)?B_(e):pae(e)}function hae(e){var t=e.getBoundingClientRect(),n=Fv(t.width)/e.offsetWidth||1,i=Fv(t.height)/e.offsetHeight||1;return n!==1||i!==1}function vae(e,t,n){n===void 0&&(n=!1);var i=ps(t),o=ps(t)&&hae(t),s=Nd(t),u=zv(e,o,n),p={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!n)&&((zu(t)!=="body"||j_(s))&&(p=mae(t)),ps(t)?(m=zv(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):s&&(m.x=U_(s))),{x:u.left+p.scrollLeft-m.x,y:u.top+p.scrollTop-m.y,width:u.width,height:u.height}}function gae(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(p){if(!n.has(p)){var m=t.get(p);m&&o(m)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function bae(e){var t=gae(e);return LE.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function yae(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Zf(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,s){return o.replace(/%s/,s)},e)}var Yp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',xae='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',lM=["name","enabled","phase","fn","effect","requires","options"];function Sae(e){e.forEach(function(t){[].concat(Object.keys(t),lM).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Zf(Yp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Zf(Yp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":LE.indexOf(t.phase)<0&&console.error(Zf(Yp,t.name,'"phase"',"either "+LE.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Zf(Yp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Zf(Yp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Zf(Yp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Zf(Yp,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 '+lM.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(Zf(xae,String(t.name),i,i))})})})}function Cae(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 wae(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 uM="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Nae="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",cM={placement:"bottom",modifiers:[],strategy:"absolute"};function fM(){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 Eae(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?cM:o;return function(p,m,v){v===void 0&&(v=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},cM,s),modifiersData:{},elements:{reference:p,popper:m},attributes:{},styles:{}},b=[],C=!1,w={state:g,setOptions:function(I){var D=typeof I=="function"?I(g.options):I;A(),g.options=Object.assign({},s,g.options,D),g.scrollParents={reference:vm(p)?Hg(p):p.contextElement?Hg(p.contextElement):[],popper:Hg(m)};var P=bae(wae([].concat(i,g.options.modifiers)));g.orderedModifiers=P.filter(function(pe){return pe.enabled});{var F=Cae([].concat(P,g.options.modifiers),function(pe){var $e=pe.name;return $e});if(Sae(F),Hl(g.options.placement)===D3){var z=g.orderedModifiers.find(function(pe){var $e=pe.name;return $e==="flip"});z||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var q=Wl(m),Y=q.marginTop,Q=q.marginRight,ie=q.marginBottom,ae=q.marginLeft;[Y,Q,ie,ae].some(function(pe){return parseFloat(pe)})&&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(),w.update()},forceUpdate:function(){if(!C){var I=g.elements,D=I.reference,P=I.popper;if(!fM(D,P)){console.error(uM);return}g.rects={reference:vae(D,Fb(P),g.options.strategy==="fixed"),popper:F_(P)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(pe){return g.modifiersData[pe.name]=Object.assign({},pe.data)});for(var F=0,z=0;z<g.orderedModifiers.length;z++){if(F+=1,F>100){console.error(Nae);break}if(g.reset===!0){g.reset=!1,z=-1;continue}var q=g.orderedModifiers[z],Y=q.fn,Q=q.options,ie=Q===void 0?{}:Q,ae=q.name;typeof Y=="function"&&(g=Y({state:g,options:ie,name:ae,instance:w})||g)}}},update:yae(function(){return new Promise(function(k){w.forceUpdate(),k(g)})}),destroy:function(){A(),C=!0}};if(!fM(p,m))return console.error(uM),w;w.setOptions(v).then(function(k){!C&&v.onFirstUpdate&&v.onFirstUpdate(k)});function T(){g.orderedModifiers.forEach(function(k){var I=k.name,D=k.options,P=D===void 0?{}:D,F=k.effect;if(typeof F=="function"){var z=F({state:g,name:I,instance:w,options:P}),q=function(){};b.push(z||q)}})}function A(){b.forEach(function(k){return k()}),b=[]}return w}}var _ae=[Wie,uae,Vie,kie,sae,nae,dae,zie,iae],Tae=Eae({defaultModifiers:_ae}),nv=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Si={arrowShadowColor:nv("--popper-arrow-shadow-color"),arrowSize:nv("--popper-arrow-size","8px"),arrowSizeHalf:nv("--popper-arrow-size-half"),arrowBg:nv("--popper-arrow-bg"),transformOrigin:nv("--popper-transform-origin"),arrowOffset:nv("--popper-arrow-offset")};function Rae(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 Aae={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"},Oae=e=>Aae[e],dM={scroll:!0,resize:!0};function Lae(e){let t;return typeof e=="object"?t={enabled:!0,options:{...dM,...e}}:t={enabled:e,options:dM},t}var kae={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`}},Mae={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{pM(e)},effect:({state:e})=>()=>{pM(e)}},pM=e=>{e.elements.popper.style.setProperty(Si.transformOrigin.var,Oae(e.placement))},Dae={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Pae(e)}},Pae=e=>{var t;if(!e.placement)return;const n=Iae(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Si.arrowSize.varRef,height:Si.arrowSize.varRef,zIndex:-1});const i={[Si.arrowSizeHalf.var]:`calc(${Si.arrowSize.varRef} / 2)`,[Si.arrowOffset.var]:`calc(${Si.arrowSizeHalf.varRef} * -1)`};for(const o in i)e.elements.arrow.style.setProperty(o,i[o])}},Iae=e=>{if(e.startsWith("top"))return{property:"bottom",value:Si.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Si.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Si.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Si.arrowOffset.varRef}},$ae={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{mM(e)},effect:({state:e})=>()=>{mM(e)}},mM=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:Si.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:Rae(e.placement)})},Fae={"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"}},zae={"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 Bae(e,t="ltr"){var n;const i=((n=Fae[e])==null?void 0:n[t])||e;return t==="ltr"?i:zae[e]??i}function tz(e={}){const{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:s=8,eventListeners:u=!0,offset:p,gutter:m=8,flip:v=!0,boundary:g="clippingParents",preventOverflow:b=!0,matchWidth:C,direction:w="ltr"}=e,T=E.exports.useRef(null),A=E.exports.useRef(null),k=E.exports.useRef(null),I=Bae(i,w),D=E.exports.useRef(()=>{}),P=E.exports.useCallback(()=>{var ae;!t||!T.current||!A.current||((ae=D.current)==null||ae.call(D),k.current=Tae(T.current,A.current,{placement:I,modifiers:[$ae,Dae,Mae,{...kae,enabled:!!C},{name:"eventListeners",...Lae(u)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:p??[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!b,options:{boundary:g}},...n??[]],strategy:o}),k.current.forceUpdate(),D.current=k.current.destroy)},[I,t,n,C,u,s,p,m,v,b,g,o]);E.exports.useEffect(()=>()=>{var ae;!T.current&&!A.current&&((ae=k.current)==null||ae.destroy(),k.current=null)},[]);const F=E.exports.useCallback(ae=>{T.current=ae,P()},[P]),z=E.exports.useCallback((ae={},pe=null)=>({...ae,ref:Kr(F,pe)}),[F]),q=E.exports.useCallback(ae=>{A.current=ae,P()},[P]),Y=E.exports.useCallback((ae={},pe=null)=>({...ae,ref:Kr(q,pe),style:{...ae.style,position:o,minWidth:C?void 0:"max-content",inset:"0 auto auto 0"}}),[o,q,C]),Q=E.exports.useCallback((ae={},pe=null)=>{const{size:$e,shadowColor:te,bg:ee,style:be,...Ce}=ae;return{...Ce,ref:pe,"data-popper-arrow":"",style:Uae(ae)}},[]),ie=E.exports.useCallback((ae={},pe=null)=>({...ae,ref:pe,"data-popper-arrow-inner":""}),[]);return{update(){var ae;(ae=k.current)==null||ae.update()},forceUpdate(){var ae;(ae=k.current)==null||ae.forceUpdate()},transformOrigin:Si.transformOrigin.varRef,referenceRef:F,popperRef:q,getPopperProps:Y,getArrowProps:Q,getArrowInnerProps:ie,getReferenceProps:z}}function Uae(e){const{size:t,shadowColor:n,bg:i,style:o}=e,s={...o,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),n&&(s["--popper-arrow-shadow-color"]=n),i&&(s["--popper-arrow-bg"]=i),s}function nz(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,s=Wa(n),u=Wa(t),[p,m]=E.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:p,g=i!==void 0,b=o??`disclosure-${E.exports.useId()}`,C=E.exports.useCallback(()=>{g||m(!1),u?.()},[g,u]),w=E.exports.useCallback(()=>{g||m(!0),s?.()},[g,s]),T=E.exports.useCallback(()=>{v?C():w()},[v,w,C]);function A(I={}){return{...I,"aria-expanded":v,"aria-controls":b,onClick(D){var P;(P=I.onClick)==null||P.call(I,D),T()}}}function k(I={}){return{...I,hidden:!v,id:b}}return{isOpen:v,onOpen:w,onClose:C,onToggle:T,isControlled:g,getButtonProps:A,getDisclosureProps:k}}function rz(e){const{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!!(!n||i||o==="keepMounted"&&t)}var fd="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[jae,Vae]=Rr({strict:!1,name:"PortalManagerContext"});function iz(e){const{children:t,zIndex:n}=e;return N(jae,{value:{zIndex:n},children:t},void 0,!1,{fileName:fd,lineNumber:12,columnNumber:26},this)}iz.displayName="PortalManager";var[az,Hae]=Rr({strict:!1,name:"PortalContext"}),V_="chakra-portal",Wae=".chakra-portal",Gae=e=>N("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:fd,lineNumber:29,columnNumber:44},globalThis),Yae=e=>{const{appendToParentPortal:t,children:n}=e,[i,o]=E.exports.useState(null),s=E.exports.useRef(null),[,u]=E.exports.useState({});E.exports.useEffect(()=>u({}),[]);const p=Hae(),m=Vae();Ou(()=>{if(!i)return;const g=i.ownerDocument,b=t?p??g.body:g.body;if(!b)return;s.current=g.createElement("div"),s.current.className=V_,b.appendChild(s.current),u({});const C=s.current;return()=>{b.contains(C)&&b.removeChild(C)}},[i]);const v=m?.zIndex?N(Gae,{zIndex:m?.zIndex,children:n},void 0,!1,{fileName:fd,lineNumber:65,columnNumber:83},globalThis):n;return s.current?Wc.exports.createPortal(N(az,{value:s.current,children:v},void 0,!1,{fileName:fd,lineNumber:68,columnNumber:56},globalThis),s.current):N("span",{ref:g=>{g&&o(g)}},void 0,!1,{fileName:fd,lineNumber:70,columnNumber:52},globalThis)},qae=e=>{const{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,s=o??(typeof window<"u"?document.body:void 0),u=E.exports.useMemo(()=>{const m=o?.ownerDocument.createElement("div");return m&&(m.className=V_),m},[o]),[,p]=E.exports.useState({});return Ou(()=>p({}),[]),Ou(()=>{if(!(!u||!s))return s.appendChild(u),()=>{s.removeChild(u)}},[u,s]),s&&u?Wc.exports.createPortal(N(az,{value:i?u:null,children:t},void 0,!1,{fileName:fd,lineNumber:98,columnNumber:41},globalThis),u):null};function Nm(e){const{containerRef:t,...n}=e;return t?N(qae,{containerRef:t,...n},void 0,!1,{fileName:fd,lineNumber:106,columnNumber:41},this):N(Yae,{...n},void 0,!1,{fileName:fd,lineNumber:109,columnNumber:24},this)}Nm.defaultProps={appendToParentPortal:!0};Nm.className=V_;Nm.selector=Wae;Nm.displayName="Portal";var Zae=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rv=new WeakMap,h5=new WeakMap,v5={},z6=0,Kae=function(e,t,n,i){var o=Array.isArray(e)?e:[e];v5[n]||(v5[n]=new WeakMap);var s=v5[n],u=[],p=new Set,m=new Set(o),v=function(b){!b||p.has(b)||(p.add(b),v(b.parentNode))};o.forEach(v);var g=function(b){!b||m.has(b)||Array.prototype.forEach.call(b.children,function(C){if(p.has(C))g(C);else{var w=C.getAttribute(i),T=w!==null&&w!=="false",A=(rv.get(C)||0)+1,k=(s.get(C)||0)+1;rv.set(C,A),s.set(C,k),u.push(C),A===1&&T&&h5.set(C,!0),k===1&&C.setAttribute(n,"true"),T||C.setAttribute(i,"true")}})};return g(t),p.clear(),z6++,function(){u.forEach(function(b){var C=rv.get(b)-1,w=s.get(b)-1;rv.set(b,C),s.set(b,w),C||(h5.has(b)||b.removeAttribute(i),h5.delete(b)),w||b.removeAttribute(n)}),z6--,z6||(rv=new WeakMap,rv=new WeakMap,h5=new WeakMap,v5={})}},oz=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||Zae(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),Kae(i,o,n,"aria-hidden")):function(){return null}};function Xae(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function DE(){return DE=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},DE.apply(this,arguments)}var Mt={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var hM=Object.getOwnPropertySymbols,Qae=Object.prototype.hasOwnProperty,Jae=Object.prototype.propertyIsEnumerable;function eoe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function toe(){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(s){return t[s]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var noe=toe()?Object.assign:function(e,t){for(var n,i=eoe(e),o,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var u in n)Qae.call(n,u)&&(i[u]=n[u]);if(hM){o=hM(n);for(var p=0;p<o.length;p++)Jae.call(n,o[p])&&(i[o[p]]=n[o[p]])}}return i},roe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sz=roe,lz=Function.call.bind(Object.prototype.hasOwnProperty),PE=function(){};{var ioe=sz,IE={},aoe=lz;PE=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function uz(e,t,n,i,o){for(var s in e)if(aoe(e,s)){var u;try{if(typeof e[s]!="function"){var p=Error((i||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=e[s](t,s,i,n,null,ioe)}catch(v){u=v}if(u&&!(u instanceof Error)&&PE((i||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in IE)){IE[u.message]=!0;var m=o?o():"";PE("Failed "+n+" type: "+u.message+(m??""))}}}uz.resetWarningCache=function(){IE={}};var ooe=uz,soe=s3.exports,loe=noe,iv=sz,B6=lz,vM=ooe,mv=function(){};mv=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function g5(){return null}var uoe=function(e,t){var n=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function o(te){var ee=te&&(n&&te[n]||te[i]);if(typeof ee=="function")return ee}var s="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:C,element:w(),elementType:T(),instanceOf:A,node:P(),objectOf:I,oneOf:k,oneOfType:D,shape:z,exact:q};function p(te,ee){return te===ee?te!==0||1/te===1/ee:te!==te&&ee!==ee}function m(te,ee){this.message=te,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}m.prototype=Error.prototype;function v(te){var ee={},be=0;function Ce(le,ve,de,we,Le,Me,Ze){if(we=we||s,Me=Me||de,Ze!==iv){if(t){var Je=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 Je.name="Invariant Violation",Je}else if(typeof console<"u"){var it=we+":"+de;!ee[it]&&be<3&&(mv("You are manually calling a React.PropTypes validation function for the `"+Me+"` 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."),ee[it]=!0,be++)}}return ve[de]==null?le?ve[de]===null?new m("The "+Le+" `"+Me+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new m("The "+Le+" `"+Me+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:te(ve,de,we,Le,Me)}var K=Ce.bind(null,!1);return K.isRequired=Ce.bind(null,!0),K}function g(te){function ee(be,Ce,K,le,ve,de){var we=be[Ce],Le=ie(we);if(Le!==te){var Me=ae(we);return new m("Invalid "+le+" `"+ve+"` of type "+("`"+Me+"` supplied to `"+K+"`, expected ")+("`"+te+"`."),{expectedType:te})}return null}return v(ee)}function b(){return v(g5)}function C(te){function ee(be,Ce,K,le,ve){if(typeof te!="function")return new m("Property `"+ve+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var de=be[Ce];if(!Array.isArray(de)){var we=ie(de);return new m("Invalid "+le+" `"+ve+"` of type "+("`"+we+"` supplied to `"+K+"`, expected an array."))}for(var Le=0;Le<de.length;Le++){var Me=te(de,Le,K,le,ve+"["+Le+"]",iv);if(Me instanceof Error)return Me}return null}return v(ee)}function w(){function te(ee,be,Ce,K,le){var ve=ee[be];if(!e(ve)){var de=ie(ve);return new m("Invalid "+K+" `"+le+"` of type "+("`"+de+"` supplied to `"+Ce+"`, expected a single ReactElement."))}return null}return v(te)}function T(){function te(ee,be,Ce,K,le){var ve=ee[be];if(!soe.isValidElementType(ve)){var de=ie(ve);return new m("Invalid "+K+" `"+le+"` of type "+("`"+de+"` supplied to `"+Ce+"`, expected a single ReactElement type."))}return null}return v(te)}function A(te){function ee(be,Ce,K,le,ve){if(!(be[Ce]instanceof te)){var de=te.name||s,we=$e(be[Ce]);return new m("Invalid "+le+" `"+ve+"` of type "+("`"+we+"` supplied to `"+K+"`, expected ")+("instance of `"+de+"`."))}return null}return v(ee)}function k(te){if(!Array.isArray(te))return arguments.length>1?mv("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])."):mv("Invalid argument supplied to oneOf, expected an array."),g5;function ee(be,Ce,K,le,ve){for(var de=be[Ce],we=0;we<te.length;we++)if(p(de,te[we]))return null;var Le=JSON.stringify(te,function(Ze,Je){var it=ae(Je);return it==="symbol"?String(Je):Je});return new m("Invalid "+le+" `"+ve+"` of value `"+String(de)+"` "+("supplied to `"+K+"`, expected one of "+Le+"."))}return v(ee)}function I(te){function ee(be,Ce,K,le,ve){if(typeof te!="function")return new m("Property `"+ve+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var de=be[Ce],we=ie(de);if(we!=="object")return new m("Invalid "+le+" `"+ve+"` of type "+("`"+we+"` supplied to `"+K+"`, expected an object."));for(var Le in de)if(B6(de,Le)){var Me=te(de,Le,K,le,ve+"."+Le,iv);if(Me instanceof Error)return Me}return null}return v(ee)}function D(te){if(!Array.isArray(te))return mv("Invalid argument supplied to oneOfType, expected an instance of array."),g5;for(var ee=0;ee<te.length;ee++){var be=te[ee];if(typeof be!="function")return mv("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+pe(be)+" at index "+ee+"."),g5}function Ce(K,le,ve,de,we){for(var Le=[],Me=0;Me<te.length;Me++){var Ze=te[Me],Je=Ze(K,le,ve,de,we,iv);if(Je==null)return null;Je.data&&B6(Je.data,"expectedType")&&Le.push(Je.data.expectedType)}var it=Le.length>0?", expected one of type ["+Le.join(", ")+"]":"";return new m("Invalid "+de+" `"+we+"` supplied to "+("`"+ve+"`"+it+"."))}return v(Ce)}function P(){function te(ee,be,Ce,K,le){return Y(ee[be])?null:new m("Invalid "+K+" `"+le+"` supplied to "+("`"+Ce+"`, expected a ReactNode."))}return v(te)}function F(te,ee,be,Ce,K){return new m((te||"React class")+": "+ee+" type `"+be+"."+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function z(te){function ee(be,Ce,K,le,ve){var de=be[Ce],we=ie(de);if(we!=="object")return new m("Invalid "+le+" `"+ve+"` of type `"+we+"` "+("supplied to `"+K+"`, expected `object`."));for(var Le in te){var Me=te[Le];if(typeof Me!="function")return F(K,le,ve,Le,ae(Me));var Ze=Me(de,Le,K,le,ve+"."+Le,iv);if(Ze)return Ze}return null}return v(ee)}function q(te){function ee(be,Ce,K,le,ve){var de=be[Ce],we=ie(de);if(we!=="object")return new m("Invalid "+le+" `"+ve+"` of type `"+we+"` "+("supplied to `"+K+"`, expected `object`."));var Le=loe({},be[Ce],te);for(var Me in Le){var Ze=te[Me];if(B6(te,Me)&&typeof Ze!="function")return F(K,le,ve,Me,ae(Ze));if(!Ze)return new m("Invalid "+le+" `"+ve+"` key `"+Me+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(be[Ce],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(te),null," "));var Je=Ze(de,Me,K,le,ve+"."+Me,iv);if(Je)return Je}return null}return v(ee)}function Y(te){switch(typeof te){case"number":case"string":case"undefined":return!0;case"boolean":return!te;case"object":if(Array.isArray(te))return te.every(Y);if(te===null||e(te))return!0;var ee=o(te);if(ee){var be=ee.call(te),Ce;if(ee!==te.entries){for(;!(Ce=be.next()).done;)if(!Y(Ce.value))return!1}else for(;!(Ce=be.next()).done;){var K=Ce.value;if(K&&!Y(K[1]))return!1}}else return!1;return!0;default:return!1}}function Q(te,ee){return te==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function ie(te){var ee=typeof te;return Array.isArray(te)?"array":te instanceof RegExp?"object":Q(ee,te)?"symbol":ee}function ae(te){if(typeof te>"u"||te===null)return""+te;var ee=ie(te);if(ee==="object"){if(te instanceof Date)return"date";if(te instanceof RegExp)return"regexp"}return ee}function pe(te){var ee=ae(te);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function $e(te){return!te.constructor||!te.constructor.name?s:te.constructor.name}return u.checkPropTypes=vM,u.resetWarningCache=vM.resetWarningCache,u.PropTypes=u,u};{var coe=s3.exports,foe=!0;Mt.exports=uoe(coe.isElement,foe)}var $E="data-focus-lock",cz="data-focus-lock-disabled",doe="data-no-focus-lock",poe="data-autofocus-inside",moe="data-no-autofocus";function hoe(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function voe(e,t){var n=E.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 fz(e,t){return voe(t||null,function(n){return e.forEach(function(i){return hoe(i,n)})})}var U6={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};Mt.exports.node;function dz(e){return e}function pz(e,t){t===void 0&&(t=dz);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(s){var u=t(s,i);return n.push(u),function(){n=n.filter(function(p){return p!==u})}},assignSyncMedium:function(s){for(i=!0;n.length;){var u=n;n=[],u.forEach(s)}n={push:function(p){return s(p)},filter:function(){return n}}},assignMedium:function(s){i=!0;var u=[];if(n.length){var p=n;n=[],p.forEach(s),u=n}var m=function(){var g=u;u=[],g.forEach(s)},v=function(){return Promise.resolve().then(m)};v(),n={push:function(g){u.push(g),v()},filter:function(g){return u=u.filter(g),n}}}};return o}function H_(e,t){return t===void 0&&(t=dz),pz(e,t)}function mz(e){e===void 0&&(e={});var t=pz(null);return t.options=Tu({async:!0,ssr:!1},e),t}var goe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",hz=function(e){var t=e.sideCar,n=b3(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 N(i,{...Tu({},n)},void 0,!1,{fileName:goe,lineNumber:12,columnNumber:12},this)};hz.isSideCarExport=!0;function boe(e,t){return e.useMedium(t),hz}var vz=H_({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),gz=H_(),yoe=H_(),xoe=mz({async:!0}),Sg="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",Soe=[],W_=E.exports.forwardRef(function(t,n){var i,o=E.exports.useState(),s=o[0],u=o[1],p=E.exports.useRef(),m=E.exports.useRef(!1),v=E.exports.useRef(null),g=t.children,b=t.disabled,C=t.noFocusGuards,w=t.persistentFocus,T=t.crossFrame,A=t.autoFocus,k=t.allowTextSelection,I=t.group,D=t.className,P=t.whiteList,F=t.hasPositiveIndices,z=t.shards,q=z===void 0?Soe:z,Y=t.as,Q=Y===void 0?"div":Y,ie=t.lockProps,ae=ie===void 0?{}:ie,pe=t.sideCar,$e=t.returnFocus,te=t.focusOptions,ee=t.onActivation,be=t.onDeactivation,Ce=E.exports.useState({}),K=Ce[0],le=E.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,p.current&&ee&&ee(p.current),m.current=!0},[ee]),ve=E.exports.useCallback(function(){m.current=!1,be&&be(p.current)},[be]);E.exports.useEffect(function(){b||(v.current=null)},[]);var de=E.exports.useCallback(function(Ve){var at=v.current;if(at&&at.focus){var St=typeof $e=="function"?$e(at):$e;if(St){var Dt=typeof St=="object"?St:void 0;v.current=null,Ve?Promise.resolve().then(function(){return at.focus(Dt)}):at.focus(Dt)}}},[$e]),we=E.exports.useCallback(function(Ve){m.current&&vz.useMedium(Ve)},[]),Le=gz.useMedium,Me=E.exports.useCallback(function(Ve){p.current!==Ve&&(p.current=Ve,u(Ve))},[]);typeof k<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),E.exports.useEffect(function(){p.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ze=DE((i={},i[cz]=b&&"disabled",i[$E]=I,i),ae),Je=C!==!0,it=Je&&C!=="tail",Rt=fz([n,Me]);return N(ji,{children:[Je&&[N("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:U6},"guard-first",!1,{fileName:Sg,lineNumber:130,columnNumber:3},this),F?N("div",{"data-focus-guard":!0,tabIndex:b?-1:1,style:U6},"guard-nearest",!1,{fileName:Sg,lineNumber:136,columnNumber:37},this):null],!b&&N(pe,{id:K,sideCar:xoe,observed:s,disabled:b,persistentFocus:w,crossFrame:T,autoFocus:A,whiteList:P,shards:q,onActivation:le,onDeactivation:ve,returnFocus:de,focusOptions:te},void 0,!1,{fileName:Sg,lineNumber:141,columnNumber:41},this),N(Q,{ref:Rt,...Ze,className:D,onBlur:Le,onFocus:we,children:g},void 0,!1,{fileName:Sg,lineNumber:155,columnNumber:20},this),it&&N("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:U6},void 0,!1,{fileName:Sg,lineNumber:161,columnNumber:51},this)]},void 0,!0)});W_.propTypes={children:Mt.exports.node,disabled:Mt.exports.bool,returnFocus:Mt.exports.oneOfType([Mt.exports.bool,Mt.exports.object,Mt.exports.func]),focusOptions:Mt.exports.object,noFocusGuards:Mt.exports.bool,hasPositiveIndices:Mt.exports.bool,allowTextSelection:Mt.exports.bool,autoFocus:Mt.exports.bool,persistentFocus:Mt.exports.bool,crossFrame:Mt.exports.bool,group:Mt.exports.string,className:Mt.exports.string,whiteList:Mt.exports.func,shards:Mt.exports.arrayOf(Mt.exports.any),as:Mt.exports.oneOfType([Mt.exports.string,Mt.exports.func,Mt.exports.object]),lockProps:Mt.exports.object,onActivation:Mt.exports.func,onDeactivation:Mt.exports.func,sideCar:Mt.exports.any.isRequired};W_.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 bz=W_;function FE(e,t){return FE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},FE(e,t)}function Coe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,FE(e,t)}function woe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Noe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function Eoe(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 s=[],u;function p(){u=e(s.map(function(v){return v.props})),t(u)}var m=function(v){Coe(g,v);function g(){return v.apply(this,arguments)||this}g.peek=function(){return u};var b=g.prototype;return b.componentDidMount=function(){s.push(this),p()},b.componentDidUpdate=function(){p()},b.componentWillUnmount=function(){var w=s.indexOf(this);s.splice(w,1),p()},b.render=function(){return N(o,{...this.props},void 0,!1,{fileName:Noe,lineNumber:67,columnNumber:29},this)},g}(E.exports.PureComponent);return woe(m,"displayName","SideEffect("+n(o)+")"),m}}var Vu=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},zE=function(e){return Array.isArray(e)?e:[e]},_oe=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"},yz=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},xz=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Toe=function(e,t){return!e||xz(e)||!_oe(e)&&t(yz(e))},Sz=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=Toe(t,Sz.bind(void 0,e));return e.set(t,i),i},Roe=function(e,t){return e&&!xz(e)?Loe(e)?t(yz(e)):!1:!0},Cz=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=Roe(t,Cz.bind(void 0,e));return e.set(t,i),i},wz=function(e){return e.dataset},Aoe=function(e){return e.tagName==="BUTTON"},Nz=function(e){return e.tagName==="INPUT"},Ez=function(e){return Nz(e)&&e.type==="radio"},Ooe=function(e){return!((Nz(e)||Aoe(e))&&(e.type==="hidden"||e.disabled))},Loe=function(e){var t=e.getAttribute(moe);return![!0,"true",""].includes(t)},G_=function(e){var t;return Boolean(e&&((t=wz(e))===null||t===void 0?void 0:t.focusGuard))},MS=function(e){return!G_(e)},koe=function(e){return Boolean(e)},Moe=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},_z=function(e,t,n){return Vu(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(Moe)},Doe=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Y_=Doe.join(","),Poe="".concat(Y_,", [data-focus-guard]"),Tz=function(e,t){var n;return Vu(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(i,o){return i.concat(o.matches(t?Poe:Y_)?[o]:[],Tz(o))},[])},q_=function(e,t){return e.reduce(function(n,i){return n.concat(Tz(i,t),i.parentNode?Vu(i.parentNode.querySelectorAll(Y_)).filter(function(o){return o===i}):[])},[])},Ioe=function(e){var t=e.querySelectorAll("[".concat(poe,"]"));return Vu(t).map(function(n){return q_([n])}).reduce(function(n,i){return n.concat(i)},[])},Z_=function(e,t){return Vu(e).filter(function(n){return Sz(t,n)}).filter(function(n){return Ooe(n)})},gM=function(e,t){return t===void 0&&(t=new Map),Vu(e).filter(function(n){return Cz(t,n)})},BE=function(e,t,n){return _z(Z_(q_(e,n),t),!0,n)},bM=function(e,t){return _z(Z_(q_(e),t),!1)},$oe=function(e,t){return Z_(Ioe(e),t)},fb=function(e,t){return(e.shadowRoot?fb(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Vu(e.children).some(function(n){return fb(n,t)})},Foe=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 s=e[i].compareDocumentPosition(e[o]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(u,p){return!t.has(p)})},Rz=function(e){return e.parentNode?Rz(e.parentNode):e},K_=function(e){var t=zE(e);return t.filter(Boolean).reduce(function(n,i){var o=i.getAttribute($E);return n.push.apply(n,o?Foe(Vu(Rz(i).querySelectorAll("[".concat($E,'="').concat(o,'"]:not([').concat(cz,'="disabled"])')))):[i]),n},[])},Az=function(e){return e.activeElement?e.activeElement.shadowRoot?Az(e.activeElement.shadowRoot):e.activeElement:void 0},X_=function(){return document.activeElement?document.activeElement.shadowRoot?Az(document.activeElement.shadowRoot):document.activeElement:void 0},zoe=function(e){return e===document.activeElement},Boe=function(e){return Boolean(Vu(e.querySelectorAll("iframe")).some(function(t){return zoe(t)}))},Oz=function(e){var t=document&&X_();return!t||t.dataset&&t.dataset.focusGuard?!1:K_(e).some(function(n){return fb(n,t)||Boe(n)})},Uoe=function(){var e=document&&X_();return e?Vu(document.querySelectorAll("[".concat(doe,"]"))).some(function(t){return fb(t,e)}):!1},joe=function(e,t){return t.filter(Ez).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Q_=function(e,t){return Ez(e)&&e.name?joe(e,t):e},Voe=function(e){var t=new Set;return e.forEach(function(n){return t.add(Q_(n,e))}),e.filter(function(n){return t.has(n)})},yM=function(e){return e[0]&&e.length>1?Q_(e[0],e):e[0]},xM=function(e,t){return e.length>1?e.indexOf(Q_(e[t],e)):t},Lz="NEW_FOCUS",Hoe=function(e,t,n,i){var o=e.length,s=e[0],u=e[o-1],p=G_(n);if(!(n&&e.indexOf(n)>=0)){var m=n!==void 0?t.indexOf(n):-1,v=i?t.indexOf(i):m,g=i?e.indexOf(i):-1,b=m-v,C=t.indexOf(s),w=t.indexOf(u),T=Voe(t),A=n!==void 0?T.indexOf(n):-1,k=A-(i?T.indexOf(i):m),I=xM(e,0),D=xM(e,o-1);if(m===-1||g===-1)return Lz;if(!b&&g>=0)return g;if(m<=C&&p&&Math.abs(b)>1)return D;if(m>=w&&p&&Math.abs(b)>1)return I;if(b&&Math.abs(k)>1)return g;if(m<=C)return D;if(m>w)return I;if(b)return Math.abs(b)>1?g:(o+g+b)%o}},UE=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&UE(e.parentNode.host||e.parentNode,t),t},j6=function(e,t){for(var n=UE(e),i=UE(t),o=0;o<n.length;o+=1){var s=n[o];if(i.indexOf(s)>=0)return s}return!1},kz=function(e,t,n){var i=zE(e),o=zE(t),s=i[0],u=!1;return o.filter(Boolean).forEach(function(p){u=j6(u||p,p)||u,n.filter(Boolean).forEach(function(m){var v=j6(s,m);v&&(!u||fb(v,u)?u=v:u=j6(v,u))})}),u},Woe=function(e,t){return e.reduce(function(n,i){return n.concat($oe(i,t))},[])},Goe=function(e){return function(t){var n;return t.autofocus||!!(!((n=wz(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},Yoe=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(koe)},qoe=function(e,t){var n=document&&X_(),i=K_(e).filter(MS),o=kz(n||e,e,i),s=new Map,u=bM(i,s),p=BE(i,s).filter(function(w){var T=w.node;return MS(T)});if(!(!p[0]&&(p=u,!p[0]))){var m=bM([o],s).map(function(w){var T=w.node;return T}),v=Yoe(m,p),g=v.map(function(w){var T=w.node;return T}),b=Hoe(g,m,n,t);if(b===Lz){var C=gM(u.map(function(w){var T=w.node;return T})).filter(Goe(Woe(i,s)));return{node:C&&C.length?yM(C):yM(gM(g))}}return b===void 0?b:v[b]}},Zoe=function(e){var t=K_(e).filter(MS),n=kz(e,e,t),i=new Map,o=BE([n],i,!0),s=BE(t,i).filter(function(u){var p=u.node;return MS(p)}).map(function(u){var p=u.node;return p});return o.map(function(u){var p=u.node,m=u.index;return{node:p,index:m,lockItem:s.indexOf(p)>=0,guard:G_(p)}})},Koe=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},V6=0,H6=!1,Xoe=function(e,t,n){n===void 0&&(n={});var i=qoe(e,t);if(!H6&&i){if(V6>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),H6=!0,setTimeout(function(){H6=!1},1);return}V6++,Koe(i.node,n.focusOptions),V6--}};const Mz=Xoe;function Dz(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var Qoe=function(){return document&&document.activeElement===document.body},Joe=function(){return Qoe()||Uoe()},Rv=null,Sv=null,Av=null,db=!1,ese=function(){return!0},tse=function(t){return(Rv.whiteList||ese)(t)},nse=function(t,n){Av={observerNode:t,portaledElement:n}},rse=function(t){return Av&&Av.portaledElement===t};function SM(e,t,n,i){var o=null,s=e;do{var u=i[s];if(u.guard)u.node.dataset.focusAutoGuard&&(o=u);else if(u.lockItem){if(s!==e)return;o=null}else break}while((s+=n)!==t);o&&(o.node.tabIndex=0)}var ise=function(t){return t&&"current"in t?t.current:t},ase=function(t){return t?Boolean(db):db==="meanwhile"},ose=function e(t,n,i){return n&&(n.host===t&&(!n.activeElement||i.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,i))},sse=function(t,n){return n.some(function(i){return ose(t,i,i)})},DS=function(){var t=!1;if(Rv){var n=Rv,i=n.observed,o=n.persistentFocus,s=n.autoFocus,u=n.shards,p=n.crossFrame,m=n.focusOptions,v=i||Av&&Av.portaledElement,g=document&&document.activeElement;if(v){var b=[v].concat(u.map(ise).filter(Boolean));if((!g||tse(g))&&(o||ase(p)||!Joe()||!Sv&&s)&&(v&&!(Oz(b)||g&&sse(g,b)||rse(g))&&(document&&!Sv&&g&&!s?(g.blur&&g.blur(),document.body.focus()):(t=Mz(b,Sv,{focusOptions:m}),Av={})),db=!1,Sv=document&&document.activeElement),document){var C=document&&document.activeElement,w=Zoe(b),T=w.map(function(A){var k=A.node;return k}).indexOf(C);T>-1&&(w.filter(function(A){var k=A.guard,I=A.node;return k&&I.dataset.focusAutoGuard}).forEach(function(A){var k=A.node;return k.removeAttribute("tabIndex")}),SM(T,w.length,1,w),SM(T,-1,-1,w))}}}return t},Pz=function(t){DS()&&t&&(t.stopPropagation(),t.preventDefault())},J_=function(){return Dz(DS)},lse=function(t){var n=t.target,i=t.currentTarget;i.contains(n)||nse(i,n)},use=function(){return null};Mt.exports.node.isRequired;var Iz=function(){db="just",setTimeout(function(){db="meanwhile"},0)},cse=function(){document.addEventListener("focusin",Pz),document.addEventListener("focusout",J_),window.addEventListener("blur",Iz)},fse=function(){document.removeEventListener("focusin",Pz),document.removeEventListener("focusout",J_),window.removeEventListener("blur",Iz)};function dse(e){return e.filter(function(t){var n=t.disabled;return!n})}function pse(e){var t=e.slice(-1)[0];t&&!Rv&&cse();var n=Rv,i=n&&t&&t.id===n.id;Rv=t,n&&!i&&(n.onDeactivation(),e.filter(function(o){var s=o.id;return s===n.id}).length||n.returnFocus(!t)),t?(Sv=null,(!i||n.observed!==t.observed)&&t.onActivation(),DS(),Dz(DS)):(fse(),Sv=null)}vz.assignSyncMedium(lse);gz.assignMedium(J_);yoe.assignMedium(function(e){return e({moveFocusInside:Mz,focusInside:Oz})});const mse=Eoe(dse,pse)(use);var hse="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",$z=E.exports.forwardRef(function(t,n){return N(bz,{sideCar:mse,ref:n,...t},void 0,!1,{fileName:hse,lineNumber:16,columnNumber:23},this)}),Fz=bz.propTypes||{};Fz.sideCar;var vse=Xae(Fz,["sideCar"]);$z.propTypes=vse;const gse=$z;var bse="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",zz=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:i,restoreFocus:o,children:s,isDisabled:u,autoFocus:p,persistentFocus:m,lockFocusAcrossFrames:v}=e,g=E.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&bie(i.current).length===0&&requestAnimationFrame(()=>{var T;(T=i.current)==null||T.focus()})},[t,i]),b=E.exports.useCallback(()=>{var w;(w=n?.current)==null||w.focus()},[n]);return N(gse,{crossFrame:v,persistentFocus:m,autoFocus:p,disabled:u,onActivation:g,onDeactivation:b,returnFocus:o&&!n,children:s},void 0,!1,{fileName:bse,lineNumber:38,columnNumber:26},globalThis)};zz.displayName="FocusLock";var q5="right-scroll-bar-position",Z5="width-before-scroll-bar",yse="with-scroll-bars-hidden",xse="--removed-body-scroll-bar-size",Bz=mz(),CM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",W6=function(){},I3=E.exports.forwardRef(function(e,t){var n=E.exports.useRef(null),i=E.exports.useState({onScrollCapture:W6,onWheelCapture:W6,onTouchMoveCapture:W6}),o=i[0],s=i[1],u=e.forwardProps,p=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,b=e.shards,C=e.sideCar,w=e.noIsolation,T=e.inert,A=e.allowPinchZoom,k=e.as,I=k===void 0?"div":k,D=b3(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=C,F=fz([n,t]),z=Tu(Tu({},D),o);return N(ji,{children:[g&&N(P,{sideCar:Bz,removeScrollBar:v,shards:b,noIsolation:w,inert:T,setCallbacks:s,allowPinchZoom:!!A,lockRef:n},void 0,!1,{fileName:CM,lineNumber:24,columnNumber:21},this),u?E.exports.cloneElement(E.exports.Children.only(p),Tu(Tu({},z),{ref:F})):N(I,{...Tu({},z,{className:m,ref:F}),children:p},void 0,!1,{fileName:CM,lineNumber:25,columnNumber:142},this)]},void 0,!0)});I3.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};I3.classNames={fullWidth:Z5,zeroRight:q5};var Sse=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cse(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sse();return t&&e.setAttribute("nonce",t),e}function wse(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nse(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ese=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Cse())&&(wse(t,n),Nse(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_se=function(){var e=Ese();return function(t,n){E.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Uz=function(){var e=_se(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},Tse={left:0,top:0,right:0,gap:0},G6=function(e){return parseInt(e||"",10)||0},Rse=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[G6(n),G6(i),G6(o)]},Ase=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tse;var t=Rse(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])}},Ose="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",Lse=Uz(),kse=function(e,t,n,i){var o=e.left,s=e.top,u=e.right,p=e.gap;return n===void 0&&(n="margin"),`
.`.concat(yse,` {
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(s,`px;
padding-right: `).concat(u,`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(q5,` {
right: `).concat(p,"px ").concat(i,`;
}
.`).concat(Z5,` {
margin-right: `).concat(p,"px ").concat(i,`;
}
.`).concat(q5," .").concat(q5,` {
right: 0 `).concat(i,`;
}
.`).concat(Z5," .").concat(Z5,` {
margin-right: 0 `).concat(i,`;
}
body {
`).concat(xse,": ").concat(p,`px;
}
`)},Mse=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i,s=E.exports.useMemo(function(){return Ase(o)},[o]);return N(Lse,{styles:kse(s,!t,o,n?"":"!important")},void 0,!1,{fileName:Ose,lineNumber:27,columnNumber:12},this)},jE=!1;if(typeof window<"u")try{var b5=Object.defineProperty({},"passive",{get:function(){return jE=!0,!0}});window.addEventListener("test",b5,b5),window.removeEventListener("test",b5,b5)}catch{jE=!1}var av=jE?{passive:!1}:!1,Dse=function(e){return e.tagName==="TEXTAREA"},jz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dse(e)&&n[t]==="visible")},Pse=function(e){return jz(e,"overflowY")},Ise=function(e){return jz(e,"overflowX")},wM=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Vz(e,n);if(i){var o=Hz(e,n),s=o[1],u=o[2];if(s>u)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$se=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Fse=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Vz=function(e,t){return e==="v"?Pse(t):Ise(t)},Hz=function(e,t){return e==="v"?$se(t):Fse(t)},zse=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bse=function(e,t,n,i,o){var s=zse(e,window.getComputedStyle(t).direction),u=s*i,p=n.target,m=t.contains(p),v=!1,g=u>0,b=0,C=0;do{var w=Hz(e,p),T=w[0],A=w[1],k=w[2],I=A-k-s*T;(T||I)&&Vz(e,p)&&(b+=I,C+=T),p=p.parentNode}while(!m&&p!==document.body||m&&(t.contains(p)||t===p));return(g&&(o&&b===0||!o&&u>b)||!g&&(o&&C===0||!o&&-u>C))&&(v=!0),v},NM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",y5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},EM=function(e){return[e.deltaX,e.deltaY]},_M=function(e){return e&&"current"in e?e.current:e},Use=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jse=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Vse=0,ov=[];function Hse(e){var t=E.exports.useRef([]),n=E.exports.useRef([0,0]),i=E.exports.useRef(),o=E.exports.useState(Vse++)[0],s=E.exports.useState(function(){return Uz()})[0],u=E.exports.useRef(e);E.exports.useEffect(function(){u.current=e},[e]),E.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var A=iE([e.lockRef.current],(e.shards||[]).map(_M),!0).filter(Boolean);return A.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var p=E.exports.useCallback(function(A,k){if("touches"in A&&A.touches.length===2)return!u.current.allowPinchZoom;var I=y5(A),D=n.current,P="deltaX"in A?A.deltaX:D[0]-I[0],F="deltaY"in A?A.deltaY:D[1]-I[1],z,q=A.target,Y=Math.abs(P)>Math.abs(F)?"h":"v";if("touches"in A&&Y==="h"&&q.type==="range")return!1;var Q=wM(Y,q);if(!Q)return!0;if(Q?z=Y:(z=Y==="v"?"h":"v",Q=wM(Y,q)),!Q)return!1;if(!i.current&&"changedTouches"in A&&(P||F)&&(i.current=z),!z)return!0;var ie=i.current||z;return Bse(ie,k,A,ie==="h"?P:F,!0)},[]),m=E.exports.useCallback(function(A){var k=A;if(!(!ov.length||ov[ov.length-1]!==s)){var I="deltaY"in k?EM(k):y5(k),D=t.current.filter(function(z){return z.name===k.type&&z.target===k.target&&Use(z.delta,I)})[0];if(D&&D.should){k.cancelable&&k.preventDefault();return}if(!D){var P=(u.current.shards||[]).map(_M).filter(Boolean).filter(function(z){return z.contains(k.target)}),F=P.length>0?p(k,P[0]):!u.current.noIsolation;F&&k.cancelable&&k.preventDefault()}}},[]),v=E.exports.useCallback(function(A,k,I,D){var P={name:A,delta:k,target:I,should:D};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(F){return F!==P})},1)},[]),g=E.exports.useCallback(function(A){n.current=y5(A),i.current=void 0},[]),b=E.exports.useCallback(function(A){v(A.type,EM(A),A.target,p(A,e.lockRef.current))},[]),C=E.exports.useCallback(function(A){v(A.type,y5(A),A.target,p(A,e.lockRef.current))},[]);E.exports.useEffect(function(){return ov.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",m,av),document.addEventListener("touchmove",m,av),document.addEventListener("touchstart",g,av),function(){ov=ov.filter(function(A){return A!==s}),document.removeEventListener("wheel",m,av),document.removeEventListener("touchmove",m,av),document.removeEventListener("touchstart",g,av)}},[]);var w=e.removeScrollBar,T=e.inert;return N(ji,{children:[T?N(s,{styles:jse(o)},void 0,!1,{fileName:NM,lineNumber:144,columnNumber:17},this):null,w?N(Mse,{gapMode:"margin"},void 0,!1,{fileName:NM,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Wse=boe(Bz,Hse);var Gse="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",Wz=E.exports.forwardRef(function(e,t){return N(I3,{...Tu({},e,{ref:t,sideCar:Wse})},void 0,!1,{fileName:Gse,lineNumber:5,columnNumber:74},this)});Wz.classNames=I3.classNames;const Gz=Wz;var Po="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",Em=(...e)=>e.filter(Boolean).join(" ");function Og(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var Yse=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}},VE=new Yse;function qse(e,t){E.exports.useEffect(()=>(t&&VE.add(e),()=>{VE.remove(e)}),[t,e])}function Zse(e){const{isOpen:t,onClose:n,id:i,closeOnOverlayClick:o=!0,closeOnEsc:s=!0,useInert:u=!0,onOverlayClick:p,onEsc:m}=e,v=E.exports.useRef(null),g=E.exports.useRef(null),[b,C,w]=Xse(i,"chakra-modal","chakra-modal--header","chakra-modal--body");Kse(v,t&&u),qse(v,t);const T=E.exports.useRef(null),A=E.exports.useCallback(Q=>{T.current=Q.target},[]),k=E.exports.useCallback(Q=>{Q.key==="Escape"&&(Q.stopPropagation(),s&&n?.(),m?.())},[s,n,m]),[I,D]=E.exports.useState(!1),[P,F]=E.exports.useState(!1),z=E.exports.useCallback((Q={},ie=null)=>({role:"dialog",...Q,ref:Kr(ie,v),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":I?C:void 0,"aria-describedby":P?w:void 0,onClick:Og(Q.onClick,ae=>ae.stopPropagation())}),[w,P,b,C,I]),q=E.exports.useCallback(Q=>{Q.stopPropagation(),T.current===Q.target&&(!VE.isTopModal(v)||(o&&n?.(),p?.()))},[n,o,p]),Y=E.exports.useCallback((Q={},ie=null)=>({...Q,ref:Kr(ie,g),onClick:Og(Q.onClick,q),onKeyDown:Og(Q.onKeyDown,k),onMouseDown:Og(Q.onMouseDown,A)}),[k,A,q]);return{isOpen:t,onClose:n,headerId:C,bodyId:w,setBodyMounted:F,setHeaderMounted:D,dialogRef:v,overlayRef:g,getDialogProps:z,getDialogContainerProps:Y}}function Kse(e,t){const n=e.current;E.exports.useEffect(()=>{if(!(!e.current||!t))return oz(e.current)},[t,e,n])}function Xse(e,...t){const n=E.exports.useId(),i=e||n;return E.exports.useMemo(()=>t.map(o=>`${o}-${i}`),[i,t])}var[Qse,_m]=Rr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Jse,gd]=Rr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Uv=e=>{const{portalProps:t,children:n,autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:p,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:g,motionPreset:b,lockFocusAcrossFrames:C,onCloseComplete:w}=e,T=vo("Modal",e),k={...Zse(e),autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:p,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:g,motionPreset:b,lockFocusAcrossFrames:C};return N(Jse,{value:k,children:N(Qse,{value:T,children:N(Gc,{onExitComplete:w,children:k.isOpen&&N(Nm,{...t,children:n},void 0,!1,{fileName:Po,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:Po,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:Po,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:Po,lineNumber:189,columnNumber:26},globalThis)};Uv.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Uv.displayName="Modal";var PS=Ke((e,t)=>{const{className:n,...i}=e,{bodyId:o,setBodyMounted:s}=gd();E.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const u=Em("chakra-modal__body",n),p=_m();return _e.createElement(je.div,{ref:t,className:u,id:o,...i,__css:p.body})});PS.displayName="ModalBody";var eT=Ke((e,t)=>{const{onClick:n,className:i,...o}=e,{onClose:s}=gd(),u=Em("chakra-modal__close-btn",i),p=_m();return N(k3,{ref:t,__css:p.closeButton,className:u,onClick:Og(n,m=>{m.stopPropagation(),s()}),...o},void 0,!1,{fileName:Po,lineNumber:241,columnNumber:26},globalThis)});eT.displayName="ModalCloseButton";function Yz(e){const{autoFocus:t,trapFocus:n,dialogRef:i,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:u,finalFocusRef:p,returnFocusOnClose:m,preserveScrollBarGap:v,lockFocusAcrossFrames:g}=gd(),[b,C]=h_();return E.exports.useEffect(()=>{!b&&C&&setTimeout(C)},[b,C]),N(zz,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:p,restoreFocus:m,contentRef:i,lockFocusAcrossFrames:g,children:N(Gz,{removeScrollBar:!v,allowPinchZoom:u,enabled:s,forwardProps:!0,children:e.children},void 0,!1,{fileName:Po,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:Po,lineNumber:284,columnNumber:26},this)}var ele={slideInBottom:{...SE,custom:{offsetY:16,reverse:!0}},slideInRight:{...SE,custom:{offsetX:16,reverse:!0}},scale:{...oF,custom:{initialScale:.95,reverse:!0}},none:{}},tle=je(rl.section),qz=E.exports.forwardRef((e,t)=>{const{preset:n,...i}=e,o=ele[n];return N(tle,{ref:t,...o,...i},void 0,!1,{fileName:Po,lineNumber:324,columnNumber:26},globalThis)});qz.displayName="ModalTransition";var pb=Ke((e,t)=>{const{className:n,children:i,containerProps:o,...s}=e,{getDialogProps:u,getDialogContainerProps:p}=gd(),m=u(s,t),v=p(o),g=Em("chakra-modal__content",n),b=_m(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},w={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...b.dialogContainer},{motionPreset:T}=gd();return _e.createElement(Yz,null,_e.createElement(je.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:w},N(qz,{preset:T,className:g,...m,__css:C,children:i},void 0,!1,{fileName:Po,lineNumber:366,columnNumber:22},globalThis)))});pb.displayName="ModalContent";var tT=Ke((e,t)=>{const{className:n,...i}=e,o=Em("chakra-modal__footer",n),s=_m(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return _e.createElement(je.footer,{ref:t,...i,__css:u,className:o})});tT.displayName="ModalFooter";var nT=Ke((e,t)=>{const{className:n,...i}=e,{headerId:o,setHeaderMounted:s}=gd();E.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const u=Em("chakra-modal__header",n),p=_m(),m={flex:0,...p.header};return _e.createElement(je.header,{ref:t,className:u,id:o,...i,__css:m})});nT.displayName="ModalHeader";var nle=je(rl.div),mb=Ke((e,t)=>{const{className:n,transition:i,...o}=e,s=Em("chakra-modal__overlay",n),u=_m(),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...u.overlay},{motionPreset:m}=gd();return N(nle,{...m==="none"?{}:aF,__css:p,ref:t,className:s,...o},void 0,!1,{fileName:Po,lineNumber:450,columnNumber:26},globalThis)});mb.displayName="ModalOverlay";function rle(e){const{leastDestructiveRef:t,...n}=e;return N(Uv,{...n,initialFocusRef:t},void 0,!1,{fileName:Po,lineNumber:464,columnNumber:26},this)}var ile=Ke((e,t)=>N(pb,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:Po,lineNumber:469,columnNumber:70},globalThis)),[ISe,ale]=Rr(),ole=je(sF),sle=Ke((e,t)=>{const{className:n,children:i,...o}=e,{getDialogProps:s,getDialogContainerProps:u,isOpen:p}=gd(),m=s(o,t),v=u(),g=Em("chakra-modal__content",n),b=_m(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},w={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...b.dialogContainer},{placement:T}=ale();return _e.createElement(je.div,{...v,className:"chakra-modal__content-container",__css:w},N(Yz,{children:N(ole,{direction:T,in:p,className:g,...m,__css:C,children:i},void 0,!1,{fileName:Po,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:Po,lineNumber:547,columnNumber:22},globalThis))});sle.displayName="DrawerContent";function lle(e,t){const n=Wa(e);E.exports.useEffect(()=>{let i=null;const o=()=>n();return t!==null&&(i=window.setInterval(o,t)),()=>{i&&window.clearInterval(i)}},[t,n])}var bd="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",Zz=(...e)=>e.filter(Boolean).join(" "),Y6=e=>e?!0:void 0;function bu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var ule=e=>N(vs,{viewBox:"0 0 24 24",...e,children:N("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:bd,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:bd,lineNumber:31,columnNumber:51},globalThis),cle=e=>N(vs,{viewBox:"0 0 24 24",...e,children:N("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:bd,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:bd,lineNumber:38,columnNumber:49},globalThis);function TM(e,t,n,i){E.exports.useEffect(()=>{if(!e.current||!i)return;const o=e.current.ownerDocument.defaultView??window,s=Array.isArray(t)?t:[t],u=new o.MutationObserver(p=>{for(const m of p)m.type==="attributes"&&m.attributeName&&s.includes(m.attributeName)&&n(m)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}var fle=50,RM=300;function dle(e,t){const[n,i]=E.exports.useState(!1),[o,s]=E.exports.useState(null),[u,p]=E.exports.useState(!0),m=E.exports.useRef(null),v=()=>clearTimeout(m.current);lle(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?fle:null);const g=E.exports.useCallback(()=>{u&&e(),m.current=setTimeout(()=>{p(!1),i(!0),s("increment")},RM)},[e,u]),b=E.exports.useCallback(()=>{u&&t(),m.current=setTimeout(()=>{p(!1),i(!0),s("decrement")},RM)},[t,u]),C=E.exports.useCallback(()=>{p(!0),i(!1),v()},[]);return E.exports.useEffect(()=>()=>v(),[]),{up:g,down:b,stop:C,isSpinning:n}}var ple=/^[Ee0-9+\-.]$/;function mle(e){return ple.test(e)}function hle(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 vle(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:i=!0,min:o=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:p,isDisabled:m,isRequired:v,isInvalid:g,pattern:b="[0-9]*(.[0-9]+)?",inputMode:C="decimal",allowMouseWheel:w,id:T,onChange:A,precision:k,name:I,"aria-describedby":D,"aria-label":P,"aria-labelledby":F,onFocus:z,onBlur:q,onInvalid:Y,getAriaValueText:Q,isValidCharacter:ie,format:ae,parse:pe,...$e}=e,te=Wa(z),ee=Wa(q),be=Wa(Y),Ce=Wa(ie??mle),K=Wa(Q),le=pre(e),{update:ve,increment:de,decrement:we}=le,[Le,Me]=E.exports.useState(!1),Ze=!(p||m),Je=E.exports.useRef(null),it=E.exports.useRef(null),Rt=E.exports.useRef(null),Ve=E.exports.useRef(null),at=E.exports.useCallback(De=>De.split("").filter(Ce).join(""),[Ce]),St=E.exports.useCallback(De=>pe?.(De)??De,[pe]),Dt=E.exports.useCallback(De=>(ae?.(De)??De).toString(),[ae]);OS(()=>{(le.valueAsNumber>s||le.valueAsNumber<o)&&be?.("rangeOverflow",Dt(le.value),le.valueAsNumber)},[le.valueAsNumber,le.value,Dt,be]),Ou(()=>{if(!Je.current)return;if(Je.current.value!=le.value){const qt=St(Je.current.value);le.setValue(at(qt))}},[St,at]);const He=E.exports.useCallback((De=u)=>{Ze&&de(De)},[de,Ze,u]),jt=E.exports.useCallback((De=u)=>{Ze&&we(De)},[we,Ze,u]),Se=dle(He,jt);TM(Rt,"disabled",Se.stop,Se.isSpinning),TM(Ve,"disabled",Se.stop,Se.isSpinning);const tt=E.exports.useCallback(De=>{if(De.nativeEvent.isComposing)return;const _n=St(De.currentTarget.value);ve(at(_n)),it.current={start:De.currentTarget.selectionStart,end:De.currentTarget.selectionEnd}},[ve,at,St]),Ct=E.exports.useCallback(De=>{var qt;te?.(De),it.current&&(De.target.selectionStart=it.current.start??((qt=De.currentTarget.value)==null?void 0:qt.length),De.currentTarget.selectionEnd=it.current.end??De.currentTarget.selectionStart)},[te]),nt=E.exports.useCallback(De=>{if(De.nativeEvent.isComposing)return;hle(De,Ce)||De.preventDefault();const qt=on(De)*u,_n=De.key,lt={ArrowUp:()=>He(qt),ArrowDown:()=>jt(qt),Home:()=>ve(o),End:()=>ve(s)}[_n];lt&&(De.preventDefault(),lt(De))},[Ce,u,He,jt,ve,o,s]),on=De=>{let qt=1;return(De.metaKey||De.ctrlKey)&&(qt=.1),De.shiftKey&&(qt=10),qt},Ln=E.exports.useMemo(()=>{const De=K?.(le.value);if(De!=null)return De;const qt=le.value.toString();return qt||void 0},[le.value,K]),_t=E.exports.useCallback(()=>{let De=le.value;De!==""&&(le.valueAsNumber<o&&(De=o),le.valueAsNumber>s&&(De=s),le.cast(De))},[le,s,o]),sn=E.exports.useCallback(()=>{Me(!1),n&&_t()},[n,Me,_t]),kn=E.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var De;(De=Je.current)==null||De.focus()})},[t]),bn=E.exports.useCallback(De=>{De.preventDefault(),Se.up(),kn()},[kn,Se]),Ye=E.exports.useCallback(De=>{De.preventDefault(),Se.down(),kn()},[kn,Se]);RE(()=>Je.current,"wheel",De=>{var qt;const We=(((qt=Je.current)==null?void 0:qt.ownerDocument)??document).activeElement===Je.current;if(!w||!We)return;De.preventDefault();const lt=on(De)*u,At=Math.sign(De.deltaY);At===-1?He(lt):At===1&&jt(lt)},{passive:!1});const et=E.exports.useCallback((De={},qt=null)=>{const _n=m||i&&le.isAtMax;return{...De,ref:Kr(qt,Rt),role:"button",tabIndex:-1,onPointerDown:bu(De.onPointerDown,We=>{_n||bn(We)}),onPointerLeave:bu(De.onPointerLeave,Se.stop),onPointerUp:bu(De.onPointerUp,Se.stop),disabled:_n,"aria-disabled":Y6(_n)}},[le.isAtMax,i,bn,Se.stop,m]),nn=E.exports.useCallback((De={},qt=null)=>{const _n=m||i&&le.isAtMin;return{...De,ref:Kr(qt,Ve),role:"button",tabIndex:-1,onPointerDown:bu(De.onPointerDown,We=>{_n||Ye(We)}),onPointerLeave:bu(De.onPointerLeave,Se.stop),onPointerUp:bu(De.onPointerUp,Se.stop),disabled:_n,"aria-disabled":Y6(_n)}},[le.isAtMin,i,Ye,Se.stop,m]),Pt=E.exports.useCallback((De={},qt=null)=>({name:I,inputMode:C,type:"text",pattern:b,"aria-labelledby":F,"aria-label":P,"aria-describedby":D,id:T,disabled:m,...De,readOnly:De.readOnly??p,"aria-readonly":De.readOnly??p,"aria-required":De.required??v,required:De.required??v,ref:Kr(Je,qt),value:Dt(le.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":Number.isNaN(le.valueAsNumber)?void 0:le.valueAsNumber,"aria-invalid":Y6(g??le.isOutOfRange),"aria-valuetext":Ln,autoComplete:"off",autoCorrect:"off",onChange:bu(De.onChange,tt),onKeyDown:bu(De.onKeyDown,nt),onFocus:bu(De.onFocus,Ct,()=>Me(!0)),onBlur:bu(De.onBlur,ee,sn)}),[I,C,b,F,P,Dt,D,T,m,v,p,g,le.value,le.valueAsNumber,le.isOutOfRange,o,s,Ln,tt,nt,Ct,ee,sn]);return{value:Dt(le.value),valueAsNumber:le.valueAsNumber,isFocused:Le,isDisabled:m,isReadOnly:p,getIncrementButtonProps:et,getDecrementButtonProps:nn,getInputProps:Pt,htmlProps:$e}}var[gle,$3]=Rr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[ble,rT]=Rr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),Kz=Ke(function(t,n){const i=vo("NumberInput",t),o=pr(t),s=T_(o),{htmlProps:u,...p}=vle(s),m=E.exports.useMemo(()=>p,[p]);return _e.createElement(ble,{value:m},_e.createElement(gle,{value:i},_e.createElement(je.div,{...u,ref:n,className:Zz("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});Kz.displayName="NumberInput";var yle=Ke(function(t,n){const i=$3();return _e.createElement(je.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}})});yle.displayName="NumberInputStepper";var Xz=Ke(function(t,n){const{getInputProps:i}=rT(),o=i(t,n),s=$3();return _e.createElement(je.input,{...o,className:Zz("chakra-numberinput__field",t.className),__css:{width:"100%",...s.field}})});Xz.displayName="NumberInputField";var Qz=je("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Jz=Ke(function(t,n){const i=$3(),{getDecrementButtonProps:o}=rT(),s=o(t,n);return N(Qz,{...s,__css:i.stepper,children:t.children??N(ule,{},void 0,!1,{fileName:bd,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:bd,lineNumber:509,columnNumber:26},this)});Jz.displayName="NumberDecrementStepper";var eB=Ke(function(t,n){const{getIncrementButtonProps:i}=rT(),o=i(t,n),s=$3();return N(Qz,{...o,__css:s.stepper,children:t.children??N(cle,{},void 0,!1,{fileName:bd,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:bd,lineNumber:519,columnNumber:26},this)});eB.displayName="NumberIncrementStepper";var IS="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/popover/dist/index.esm.js",zb=(...e)=>e.filter(Boolean).join(" ");function xle(e,...t){return Sle(e)?e(...t):e}var Sle=e=>typeof e=="function";function yu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function Cle(...e){return function(n){e.forEach(i=>{i?.(n)})}}var[wle,Tm]=Rr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[Nle,Bb]=Rr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),sv={click:"click",hover:"hover"};function Ele(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:i,id:o,returnFocusOnClose:s=!0,autoFocus:u=!0,arrowSize:p,arrowShadowColor:m,trigger:v=sv.click,openDelay:g=200,closeDelay:b=200,isLazy:C,lazyBehavior:w="unmount",computePositionOnMount:T,...A}=e,{isOpen:k,onClose:I,onOpen:D,onToggle:P}=nz(e),F=E.exports.useRef(null),z=E.exports.useRef(null),q=E.exports.useRef(null),Y=E.exports.useRef(!1),Q=E.exports.useRef(!1);k&&(Q.current=!0);const[ie,ae]=E.exports.useState(!1),[pe,$e]=E.exports.useState(!1),te=E.exports.useId(),ee=o??te,[be,Ce,K,le]=["popover-trigger","popover-content","popover-header","popover-body"].map(tt=>`${tt}-${ee}`),{referenceRef:ve,getArrowProps:de,getPopperProps:we,getArrowInnerProps:Le,forceUpdate:Me}=tz({...A,enabled:k||!!T}),Ze=gre({isOpen:k,ref:q});wre({enabled:k,ref:z}),Sre(q,{focusRef:z,visible:k,shouldFocus:s&&v===sv.click}),Ere(q,{focusRef:i,visible:k,shouldFocus:u&&v===sv.click});const Je=rz({wasSelected:Q.current,enabled:C,mode:w,isSelected:Ze.present}),it=E.exports.useCallback((tt={},Ct=null)=>{const nt={...tt,style:{...tt.style,transformOrigin:Si.transformOrigin.varRef,[Si.arrowSize.var]:p?`${p}px`:void 0,[Si.arrowShadowColor.var]:m},ref:Kr(q,Ct),children:Je?tt.children:null,id:Ce,tabIndex:-1,role:"dialog",onKeyDown:yu(tt.onKeyDown,on=>{n&&on.key==="Escape"&&I()}),onBlur:yu(tt.onBlur,on=>{const Ln=AM(on),_t=q6(q.current,Ln),sn=q6(z.current,Ln);k&&t&&(!_t&&!sn)&&I()}),"aria-labelledby":ie?K:void 0,"aria-describedby":pe?le:void 0};return v===sv.hover&&(nt.role="tooltip",nt.onMouseEnter=yu(tt.onMouseEnter,()=>{Y.current=!0}),nt.onMouseLeave=yu(tt.onMouseLeave,on=>{on.nativeEvent.relatedTarget!==null&&(Y.current=!1,setTimeout(I,b))})),nt},[Je,Ce,ie,K,pe,le,v,n,I,k,t,b,m,p]),Rt=E.exports.useCallback((tt={},Ct=null)=>we({...tt,style:{visibility:k?"visible":"hidden",...tt.style}},Ct),[k,we]),Ve=E.exports.useCallback((tt,Ct=null)=>({...tt,ref:Kr(Ct,F,ve)}),[F,ve]),at=E.exports.useRef(),St=E.exports.useRef(),Dt=E.exports.useCallback(tt=>{F.current==null&&ve(tt)},[ve]),He=E.exports.useCallback((tt={},Ct=null)=>{const nt={...tt,ref:Kr(z,Ct,Dt),id:be,"aria-haspopup":"dialog","aria-expanded":k,"aria-controls":Ce};return v===sv.click&&(nt.onClick=yu(tt.onClick,P)),v===sv.hover&&(nt.onFocus=yu(tt.onFocus,()=>{at.current===void 0&&D()}),nt.onBlur=yu(tt.onBlur,on=>{const Ln=AM(on),_t=!q6(q.current,Ln);k&&t&&_t&&I()}),nt.onKeyDown=yu(tt.onKeyDown,on=>{on.key==="Escape"&&I()}),nt.onMouseEnter=yu(tt.onMouseEnter,()=>{Y.current=!0,at.current=window.setTimeout(D,g)}),nt.onMouseLeave=yu(tt.onMouseLeave,()=>{Y.current=!1,at.current&&(clearTimeout(at.current),at.current=void 0),St.current=window.setTimeout(()=>{Y.current===!1&&I()},b)})),nt},[be,k,Ce,v,Dt,P,D,t,I,g,b]);E.exports.useEffect(()=>()=>{at.current&&clearTimeout(at.current),St.current&&clearTimeout(St.current)},[]);const jt=E.exports.useCallback((tt={},Ct=null)=>({...tt,id:K,ref:Kr(Ct,nt=>{ae(!!nt)})}),[K]),Se=E.exports.useCallback((tt={},Ct=null)=>({...tt,id:le,ref:Kr(Ct,nt=>{$e(!!nt)})}),[le]);return{forceUpdate:Me,isOpen:k,onAnimationComplete:Ze.onComplete,onClose:I,getAnchorProps:Ve,getArrowProps:de,getArrowInnerProps:Le,getPopoverPositionerProps:Rt,getPopoverProps:it,getTriggerProps:He,getHeaderProps:jt,getBodyProps:Se}}function q6(e,t){return e===t||e?.contains(t)}function AM(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function iT(e){const t=vo("Popover",e),{children:n,...i}=pr(e),o=d3(),s=Ele({...i,direction:o.direction});return N(wle,{value:s,children:N(Nle,{value:t,children:xle(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})},void 0,!1,{fileName:IS,lineNumber:325,columnNumber:22},this)},void 0,!1,{fileName:IS,lineNumber:323,columnNumber:26},this)}iT.displayName="Popover";function aT(e){const{bg:t,bgColor:n,backgroundColor:i}=e,{getArrowProps:o,getArrowInnerProps:s}=Tm(),u=Bb(),p=t??n??i;return _e.createElement(je.div,{...o(),className:"chakra-popover__arrow-positioner"},_e.createElement(je.div,{className:zb("chakra-popover__arrow",e.className),...s(e),__css:{...u.arrow,"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0}}))}aT.displayName="PopoverArrow";var _le=Ke(function(t,n){const{getBodyProps:i}=Tm(),o=Bb();return _e.createElement(je.div,{...i(t,n),className:zb("chakra-popover__body",t.className),__css:o.body})});_le.displayName="PopoverBody";var Tle=Ke(function(t,n){const{onClose:i}=Tm(),o=Bb();return N(k3,{size:"sm",onClick:i,className:zb("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t},void 0,!1,{fileName:IS,lineNumber:384,columnNumber:26},this)});Tle.displayName="PopoverCloseButton";function Rle(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var Ale={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]}}},Ole=rl(je.section),oT=Ke(function(t,n){const{isOpen:i}=Tm();return _e.createElement(Ole,{ref:n,variants:Rle(t.variants),...t,initial:!1,animate:i?"enter":"exit"})});oT.defaultProps={variants:Ale};oT.displayName="PopoverTransition";var sT=Ke(function(t,n){const{rootProps:i,...o}=t,{getPopoverProps:s,getPopoverPositionerProps:u,onAnimationComplete:p}=Tm(),m=Bb(),v={position:"relative",display:"flex",flexDirection:"column",...m.content};return _e.createElement(je.div,{...u(i),__css:m.popper,className:"chakra-popover__popper"},N(oT,{...s(o,n),onAnimationComplete:Cle(p,o.onAnimationComplete),className:zb("chakra-popover__content",t.className),__css:v},void 0,!1,{fileName:IS,lineNumber:470,columnNumber:22},this))});sT.displayName="PopoverContent";var tB=Ke(function(t,n){const{getHeaderProps:i}=Tm(),o=Bb();return _e.createElement(je.header,{...i(t,n),className:zb("chakra-popover__header",t.className),__css:o.header})});tB.displayName="PopoverHeader";function lT(e){const t=E.exports.Children.only(e.children),{getTriggerProps:n}=Tm();return E.exports.cloneElement(t,n(t.props,t.ref))}lT.displayName="PopoverTrigger";var OM="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function Lle(e,t,n){return(e-t)*100/(n-t)}Eb({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Eb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var kle=Eb({"0%":{left:"-40%"},"100%":{left:"100%"}}),Mle=Eb({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Dle(e){const{value:t=0,min:n,max:i,valueText:o,getValueText:s,isIndeterminate:u}=e,p=Lle(t,n,i);return{bind:{"data-indeterminate":u?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":u?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof s=="function"?s(t,p):o})(),role:"progressbar"},percent:p,value:t}}var[Ple,Ile]=Rr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),$le=e=>{const{min:t,max:n,value:i,isIndeterminate:o,...s}=e,u=Dle({value:i,min:t,max:n,isIndeterminate:o}),p=Ile(),m={height:"100%",...p.filledTrack};return _e.createElement(je.div,{style:{width:`${u.percent}%`,...s.style},...u.bind,...s,__css:m})},nB=e=>{var t;const{value:n,min:i=0,max:o=100,hasStripe:s,isAnimated:u,children:p,borderRadius:m,isIndeterminate:v,"aria-label":g,"aria-labelledby":b,...C}=pr(e),w=vo("Progress",e),T=m??((t=w.track)==null?void 0:t.borderRadius),A={animation:`${Mle} 1s linear infinite`},D={...!v&&s&&u&&A,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${kle} 1s ease infinite normal none running`}},P={overflow:"hidden",position:"relative",...w.track};return _e.createElement(je.div,{borderRadius:T,__css:P,...C},N(Ple,{value:w,children:[N($le,{"aria-label":g,"aria-labelledby":b,min:i,max:o,value:n,isIndeterminate:v,css:D,borderRadius:T},void 0,!1,{fileName:OM,lineNumber:232,columnNumber:22},globalThis),p]},void 0,!0,{fileName:OM,lineNumber:230,columnNumber:22},globalThis))};nB.displayName="Progress";var Fle=je("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Fle.displayName="CircularProgressLabel";var gm="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",zle=(...e)=>e.filter(Boolean).join(" "),Ble=e=>e?"":void 0;function Ule(e,t){const n={},i={};for(const[o,s]of Object.entries(e))t.includes(o)?n[o]=s:i[o]=s;return[n,i]}var rB=Ke(function(t,n){const{children:i,placeholder:o,className:s,...u}=t;return _e.createElement(je.select,{...u,ref:n,className:zle("chakra-select",s)},o&&N("option",{value:"",children:o},void 0,!1,{fileName:gm,lineNumber:42,columnNumber:37},this),i)});rB.displayName="SelectField";var iB=Ke((e,t)=>{var n;const i=vo("Select",e),{rootProps:o,placeholder:s,icon:u,color:p,height:m,h:v,minH:g,minHeight:b,iconColor:C,iconSize:w,...T}=pr(e),[A,k]=Ule(T,gq),I=__(k),D={width:"100%",height:"fit-content",position:"relative",color:p},P={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(n=i.field)==null?void 0:n._focus}};return _e.createElement(je.div,{className:"chakra-select__wrapper",__css:D,...A,...o},N(rB,{ref:t,height:v??m,minH:g??b,placeholder:s,...I,__css:P,children:e.children},void 0,!1,{fileName:gm,lineNumber:86,columnNumber:22},globalThis),N(aB,{"data-disabled":Ble(I.disabled),...(C||p)&&{color:C||p},__css:i.icon,...w&&{fontSize:w},children:u},void 0,!1,{fileName:gm,lineNumber:93,columnNumber:39},globalThis))});iB.displayName="Select";var jle=e=>N("svg",{viewBox:"0 0 24 24",...e,children:N("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:gm,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:gm,lineNumber:101,columnNumber:46},globalThis),Vle=je("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),aB=e=>{const{children:t=N(jle,{},void 0,!1,{fileName:gm,lineNumber:120,columnNumber:38},globalThis),...n}=e,i=E.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return N(Vle,{...n,className:"chakra-select__icon-wrapper",children:E.exports.isValidElement(t)?i:null},void 0,!1,{fileName:gm,lineNumber:132,columnNumber:26},globalThis)};aB.displayName="SelectIcon";var Hle="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",Wle=(...e)=>e.filter(Boolean).join(" "),LM=e=>e?"":void 0,F3=Ke(function(t,n){const i=vo("Switch",t),{spacing:o="0.5rem",children:s,...u}=pr(t),{state:p,getInputProps:m,getCheckboxProps:v,getRootProps:g,getLabelProps:b}=NF(u),C=E.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),w=E.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),T=E.exports.useMemo(()=>({userSelect:"none",marginStart:o,...i.label}),[o,i.label]);return _e.createElement(je.label,{...g(),className:Wle("chakra-switch",t.className),__css:C},N("input",{className:"chakra-switch__input",...m({},n)},void 0,!1,{fileName:Hle,lineNumber:53,columnNumber:22},this),_e.createElement(je.span,{...v(),className:"chakra-switch__track",__css:w},_e.createElement(je.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":LM(p.isChecked),"data-hover":LM(p.isHovered)})),s&&_e.createElement(je.span,{className:"chakra-switch__label",...b(),__css:T},s))});F3.displayName="Switch";var Qv=(...e)=>e.filter(Boolean).join(" ");function HE(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Gle,oB,Yle,qle]=LI();function Zle(e){const{defaultIndex:t,onChange:n,index:i,isManual:o,isLazy:s,lazyBehavior:u="unmount",orientation:p="horizontal",direction:m="ltr",...v}=e,[g,b]=E.exports.useState(t??0),[C,w]=kI({defaultValue:t??0,value:i,onChange:n});E.exports.useEffect(()=>{i!=null&&b(i)},[i]);const T=Yle(),A=E.exports.useId();return{id:`tabs-${e.id??A}`,selectedIndex:C,focusedIndex:g,setSelectedIndex:w,setFocusedIndex:b,isManual:o,isLazy:s,lazyBehavior:u,orientation:p,descendants:T,direction:m,htmlProps:v}}var[Kle,Ub]=Rr({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function Xle(e){const{focusedIndex:t,orientation:n,direction:i}=Ub(),o=oB(),s=E.exports.useCallback(u=>{const p=()=>{var D;const P=o.nextEnabled(t);P&&((D=P.node)==null||D.focus())},m=()=>{var D;const P=o.prevEnabled(t);P&&((D=P.node)==null||D.focus())},v=()=>{var D;const P=o.firstEnabled();P&&((D=P.node)==null||D.focus())},g=()=>{var D;const P=o.lastEnabled();P&&((D=P.node)==null||D.focus())},b=n==="horizontal",C=n==="vertical",w=u.key,T=i==="ltr"?"ArrowLeft":"ArrowRight",A=i==="ltr"?"ArrowRight":"ArrowLeft",I={[T]:()=>b&&m(),[A]:()=>b&&p(),ArrowDown:()=>C&&p(),ArrowUp:()=>C&&m(),Home:v,End:g}[w];I&&(u.preventDefault(),I(u))},[o,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:HE(e.onKeyDown,s)}}function Qle(e){const{isDisabled:t,isFocusable:n,...i}=e,{setSelectedIndex:o,isManual:s,id:u,setFocusedIndex:p,selectedIndex:m}=Ub(),{index:v,register:g}=qle({disabled:t&&!n}),b=v===m,C=()=>{o(v)},w=()=>{p(v),!s&&!(t&&n)&&o(v)},T=lie({...i,ref:Kr(g,e.ref),isDisabled:t,isFocusable:n,onClick:HE(e.onClick,C)}),A="button";return{...T,id:sB(u,v),role:"tab",tabIndex:b?0:-1,type:A,"aria-selected":b,"aria-controls":lB(u,v),onFocus:t?void 0:HE(e.onFocus,w)}}var[Jle,eue]=Rr({});function tue(e){const t=Ub(),{id:n,selectedIndex:i}=t,s=A3(e.children).map((u,p)=>E.exports.createElement(Jle,{key:p,value:{isSelected:p===i,id:lB(n,p),tabId:sB(n,p),selectedIndex:i}},u));return{...e,children:s}}function nue(e){const{children:t,...n}=e,{isLazy:i,lazyBehavior:o}=Ub(),{isSelected:s,id:u,tabId:p}=eue(),m=E.exports.useRef(!1);s&&(m.current=!0);const v=rz({wasSelected:m.current,isSelected:s,enabled:i,mode:o});return{tabIndex:0,...n,children:v?t:null,role:"tabpanel","aria-labelledby":p,hidden:!s,id:u}}function rue(){const e=Ub(),t=oB(),{selectedIndex:n,orientation:i}=e,o=i==="horizontal",s=i==="vertical",[u,p]=E.exports.useState(()=>{if(o)return{left:0,width:0};if(s)return{top:0,height:0}}),[m,v]=E.exports.useState(!1);return Ou(()=>{if(n==null)return;const g=t.item(n);if(g==null)return;o&&p({left:g.node.offsetLeft,width:g.node.offsetWidth}),s&&p({top:g.node.offsetTop,height:g.node.offsetHeight});const b=requestAnimationFrame(()=>{v(!0)});return()=>{b&&cancelAnimationFrame(b)}},[n,o,s,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:m?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...u}}function sB(e,t){return`${e}--tab-${t}`}function lB(e,t){return`${e}--tabpanel-${t}`}var[iue,jb]=Rr({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),uB=Ke(function(t,n){const i=vo("Tabs",t),{children:o,className:s,...u}=pr(t),{htmlProps:p,descendants:m,...v}=Zle(u),g=E.exports.useMemo(()=>v,[v]),{isFitted:b,...C}=p;return _e.createElement(Gle,{value:m},_e.createElement(Kle,{value:g},_e.createElement(iue,{value:i},_e.createElement(je.div,{className:Qv("chakra-tabs",s),ref:n,...C,__css:i.root},o))))});uB.displayName="Tabs";var aue=Ke(function(t,n){const i=rue(),o={...t.style,...i},s=jb();return _e.createElement(je.div,{ref:n,...t,className:Qv("chakra-tabs__tab-indicator",t.className),style:o,__css:s.indicator})});aue.displayName="TabIndicator";var oue=Ke(function(t,n){const i=Xle({...t,ref:n}),o=jb(),s={display:"flex",...o.tablist};return _e.createElement(je.div,{...i,className:Qv("chakra-tabs__tablist",t.className),__css:s})});oue.displayName="TabList";var cB=Ke(function(t,n){const i=nue({...t,ref:n}),o=jb();return _e.createElement(je.div,{outline:"0",...i,className:Qv("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});cB.displayName="TabPanel";var fB=Ke(function(t,n){const i=tue(t),o=jb();return _e.createElement(je.div,{...i,width:"100%",ref:n,className:Qv("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});fB.displayName="TabPanels";var dB=Ke(function(t,n){const i=jb(),o=Qle({...t,ref:n}),s={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...i.tab};return _e.createElement(je.button,{...o,className:Qv("chakra-tabs__tab",t.className),__css:s})});dB.displayName="Tab";var sue=(...e)=>e.filter(Boolean).join(" ");function lue(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}var uue=["h","minH","height","minHeight"],pB=Ke((e,t)=>{const n=ho("Textarea",e),{className:i,rows:o,...s}=pr(e),u=__(s),p=o?lue(n,uue):n;return _e.createElement(je.textarea,{ref:t,rows:o,...u,className:sue("chakra-textarea",i),__css:p})});pB.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(...g){i();for(const b of g)t[b]=m(b);return dr(e,t)}function s(...g){for(const b of g)b in t||(t[b]=m(b));return dr(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([b,C])=>[b,C.selector]))}function p(){return Object.fromEntries(Object.entries(t).map(([b,C])=>[b,C.className]))}function m(g){const w=`chakra-${(["container","root"].includes(g??"")?[e]:[e,g]).filter(Boolean).join("__")}`;return{className:w,selector:`.${w}`,toString:()=>g}}return{parts:o,toPart:m,extend:s,selectors:u,classnames:p,get keys(){return Object.keys(t)},__type:{}}}var cue=dr("accordion").parts("root","container","button","panel").extend("icon"),fue=dr("alert").parts("title","description","container").extend("icon","spinner"),due=dr("avatar").parts("label","badge","container").extend("excessLabel","group"),pue=dr("breadcrumb").parts("link","item","container").extend("separator");dr("button").parts();var mue=dr("checkbox").parts("control","icon","container").extend("label");dr("progress").parts("track","filledTrack").extend("label");var hue=dr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vue=dr("editable").parts("preview","input","textarea"),gue=dr("form").parts("container","requiredIndicator","helperText"),bue=dr("formError").parts("text","icon"),yue=dr("input").parts("addon","field","element"),xue=dr("list").parts("container","item","icon"),Sue=dr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Cue=dr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),wue=dr("numberinput").parts("root","field","stepperGroup","stepper");dr("pininput").parts("field");var Nue=dr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Eue=dr("progress").parts("label","filledTrack","track"),_ue=dr("radio").parts("container","control","label"),Tue=dr("select").parts("field","icon"),Rue=dr("slider").parts("container","track","thumb","filledTrack","mark"),Aue=dr("stat").parts("container","label","helpText","number","icon"),Oue=dr("switch").parts("container","track","thumb"),Lue=dr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),kue=dr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Mue=dr("tag").parts("container","label","closeButton");function Na(e,t){Due(e)&&(e="100%");var n=Pue(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 x5(e){return Math.min(1,Math.max(0,e))}function Due(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Pue(e){return typeof e=="string"&&e.indexOf("%")!==-1}function mB(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function S5(e){return e<=1?"".concat(Number(e)*100,"%"):e}function um(e){return e.length===1?"0"+e:String(e)}function Iue(e,t,n){return{r:Na(e,255)*255,g:Na(t,255)*255,b:Na(n,255)*255}}function kM(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),s=0,u=0,p=(i+o)/2;if(i===o)u=0,s=0;else{var m=i-o;switch(u=p>.5?m/(2-i-o):m/(i+o),i){case e:s=(t-n)/m+(t<n?6:0);break;case t:s=(n-e)/m+2;break;case n:s=(e-t)/m+4;break}s/=6}return{h:s,s:u,l:p}}function Z6(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 $ue(e,t,n){var i,o,s;if(e=Na(e,360),t=Na(t,100),n=Na(n,100),t===0)o=n,s=n,i=n;else{var u=n<.5?n*(1+t):n+t-n*t,p=2*n-u;i=Z6(p,u,e+1/3),o=Z6(p,u,e),s=Z6(p,u,e-1/3)}return{r:i*255,g:o*255,b:s*255}}function MM(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),s=0,u=i,p=i-o,m=i===0?0:p/i;if(i===o)s=0;else{switch(i){case e:s=(t-n)/p+(t<n?6:0);break;case t:s=(n-e)/p+2;break;case n:s=(e-t)/p+4;break}s/=6}return{h:s,s:m,v:u}}function Fue(e,t,n){e=Na(e,360)*6,t=Na(t,100),n=Na(n,100);var i=Math.floor(e),o=e-i,s=n*(1-t),u=n*(1-o*t),p=n*(1-(1-o)*t),m=i%6,v=[n,u,s,s,p,n][m],g=[p,n,n,u,s,s][m],b=[s,s,p,n,n,u][m];return{r:v*255,g:g*255,b:b*255}}function DM(e,t,n,i){var o=[um(Math.round(e).toString(16)),um(Math.round(t).toString(16)),um(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 zue(e,t,n,i,o){var s=[um(Math.round(e).toString(16)),um(Math.round(t).toString(16)),um(Math.round(n).toString(16)),um(Bue(i))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function Bue(e){return Math.round(parseFloat(e)*255).toString(16)}function PM(e){return cs(e)/255}function cs(e){return parseInt(e,16)}function Uue(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var WE={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 jue(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,s=null,u=!1,p=!1;return typeof e=="string"&&(e=Wue(e)),typeof e=="object"&&(Oc(e.r)&&Oc(e.g)&&Oc(e.b)?(t=Iue(e.r,e.g,e.b),u=!0,p=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oc(e.h)&&Oc(e.s)&&Oc(e.v)?(i=S5(e.s),o=S5(e.v),t=Fue(e.h,i,o),u=!0,p="hsv"):Oc(e.h)&&Oc(e.s)&&Oc(e.l)&&(i=S5(e.s),s=S5(e.l),t=$ue(e.h,i,s),u=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=mB(n),{ok:u,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 Vue="[-\\+]?\\d+%?",Hue="[-\\+]?\\d*\\.\\d+%?",ud="(?:".concat(Hue,")|(?:").concat(Vue,")"),K6="[\\s|\\(]+(".concat(ud,")[,|\\s]+(").concat(ud,")[,|\\s]+(").concat(ud,")\\s*\\)?"),X6="[\\s|\\(]+(".concat(ud,")[,|\\s]+(").concat(ud,")[,|\\s]+(").concat(ud,")[,|\\s]+(").concat(ud,")\\s*\\)?"),zl={CSS_UNIT:new RegExp(ud),rgb:new RegExp("rgb"+K6),rgba:new RegExp("rgba"+X6),hsl:new RegExp("hsl"+K6),hsla:new RegExp("hsla"+X6),hsv:new RegExp("hsv"+K6),hsva:new RegExp("hsva"+X6),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 Wue(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(WE[e])e=WE[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zl.hex8.exec(e),n?{r:cs(n[1]),g:cs(n[2]),b:cs(n[3]),a:PM(n[4]),format:t?"name":"hex8"}:(n=zl.hex6.exec(e),n?{r:cs(n[1]),g:cs(n[2]),b:cs(n[3]),format:t?"name":"hex"}:(n=zl.hex4.exec(e),n?{r:cs(n[1]+n[1]),g:cs(n[2]+n[2]),b:cs(n[3]+n[3]),a:PM(n[4]+n[4]),format:t?"name":"hex8"}:(n=zl.hex3.exec(e),n?{r:cs(n[1]+n[1]),g:cs(n[2]+n[2]),b:cs(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Oc(e){return Boolean(zl.CSS_UNIT.exec(String(e)))}var Vb=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=Uue(t)),this.originalInput=t;var o=jue(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,s=t.r/255,u=t.g/255,p=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.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=mB(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=MM(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=MM(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=kM(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=kM(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),DM(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),zue(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="#"+DM(this.r,this.g,this.b,!1),n=0,i=Object.entries(WE);n<i.length;n++){var o=i[n],s=o[0],u=o[1];if(t===u)return s}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,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?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=x5(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=x5(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=x5(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=x5(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(),s=n/100,u={r:(o.r-i.r)*s+i.r,g:(o.g-i.g)*s+i.g,b:(o.b-i.b)*s+i.b,a:(o.a-i.a)*s+i.a};return new e(u)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,s=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,s.push(new e(i));return s},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,s=n.v,u=[],p=1/t;t--;)u.push(new e({h:i,s:o,v:s})),s=(s+p)%1;return u},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],s=360/t,u=1;u<t;u++)o.push(new e({h:(i+u*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function hB(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(hB(e));return e.count=t,n}var i=Gue(e.hue,e.seed),o=Yue(i,e),s=que(i,o,e),u={h:i,s:o,v:s};return e.alpha!==void 0&&(u.a=e.alpha),new Vb(u)}function Gue(e,t){var n=Kue(e),i=$S(n,t);return i<0&&(i=360+i),i}function Yue(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return $S([0,100],t.seed);var n=vB(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 $S([i,o],t.seed)}function que(e,t,n){var i=Zue(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 $S([i,o],n.seed)}function Zue(e,t){for(var n=vB(e).lowerBounds,i=0;i<n.length-1;i++){var o=n[i][0],s=n[i][1],u=n[i+1][0],p=n[i+1][1];if(t>=o&&t<=u){var m=(p-s)/(u-o),v=s-m*o;return m*t+v}}return 0}function Kue(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=bB.find(function(u){return u.name===e});if(n){var i=gB(n);if(i.hueRange)return i.hueRange}var o=new Vb(e);if(o.isValid){var s=o.toHsv().h;return[s,s]}}return[0,360]}function vB(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=bB;t<n.length;t++){var i=n[t],o=gB(i);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function $S(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 gB(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 bB=[{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 Xue(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 Que=e=>Object.keys(e).length===0,Ui=(e,t,n)=>{const i=Xue(e,`colors.${t}`,t),{isValid:o}=new Vb(i);return o?i:n},Jue=e=>t=>{const n=Ui(t,e);return new Vb(n).isDark()?"dark":"light"},ece=e=>t=>Jue(e)(t)==="dark",jv=(e,t)=>n=>{const i=Ui(n,e);return new Vb(i).setAlpha(t).toRgbString()};function IM(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 tce(e){const t=hB().toHexString();return!e||Que(e)?t:e.string&&e.colors?rce(e.string,e.colors):e.string&&!e.colors?nce(e.string):e.colors&&!e.string?ice(e.colors):t}function nce(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 rce(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 ice(e){return e[Math.floor(Math.random()*e.length)]}function Be(e,t){return n=>n.colorMode==="dark"?t:e}function uT(e){const{orientation:t,vertical:n,horizontal:i}=e;return t?t==="vertical"?n:i:{}}function ace(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function yB(e){return ace(e)&&e.reference?e.reference:String(e)}var z3=(e,...t)=>t.map(yB).join(` ${e} `).replace(/calc/g,""),$M=(...e)=>`calc(${z3("+",...e)})`,FM=(...e)=>`calc(${z3("-",...e)})`,GE=(...e)=>`calc(${z3("*",...e)})`,zM=(...e)=>`calc(${z3("/",...e)})`,BM=e=>{const t=yB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:GE(t,-1)},Pc=Object.assign(e=>({add:(...t)=>Pc($M(e,...t)),subtract:(...t)=>Pc(FM(e,...t)),multiply:(...t)=>Pc(GE(e,...t)),divide:(...t)=>Pc(zM(e,...t)),negate:()=>Pc(BM(e)),toString:()=>e.toString()}),{add:$M,subtract:FM,multiply:GE,divide:zM,negate:BM});function oce(e){return!Number.isInteger(parseFloat(e.toString()))}function sce(e,t="-"){return e.replace(/\s+/g,t)}function xB(e){const t=sce(e.toString());return t.includes("\\.")?e:oce(e)?t.replace(".","\\."):e}function lce(e,t=""){return[t,xB(e)].filter(Boolean).join("-")}function uce(e,t){return`var(${xB(e)}${t?`, ${t}`:""})`}function cce(e,t=""){return`--${lce(e,t)}`}function zo(e,t){const n=cce(e,t?.prefix);return{variable:n,reference:uce(n,fce(t?.fallback))}}function fce(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:dce,defineMultiStyleConfig:pce}=zr(cue.keys),mce={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},hce={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},vce={pt:"2",px:"4",pb:"5"},gce={fontSize:"1.25em"},bce=dce({container:mce,button:hce,panel:vce,icon:gce}),yce=pce({baseStyle:bce}),{definePartsStyle:Hb,defineMultiStyleConfig:xce}=zr(fue.keys),zc=Cd("alert-fg"),Wb=Cd("alert-bg"),Sce=Hb({container:{bg:Wb.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:zc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:zc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function cT(e){const{theme:t,colorScheme:n}=e,i=Ui(t,`${n}.100`,n),o=jv(`${n}.200`,.16)(t);return Be(i,o)(e)}var Cce=Hb(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Wb.variable]:cT(e),[zc.variable]:`colors.${n}`}}}),wce=Hb(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Wb.variable]:cT(e),[zc.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:zc.reference}}}),Nce=Hb(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e);return{container:{[Wb.variable]:cT(e),[zc.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:zc.reference}}}),Ece=Hb(e=>{const{colorScheme:t}=e,n=Be(`${t}.500`,`${t}.200`)(e),i=Be("white","gray.900")(e);return{container:{[Wb.variable]:`colors.${n}`,[zc.variable]:`colors.${i}`,color:zc.reference}}}),_ce={subtle:Cce,"left-accent":wce,"top-accent":Nce,solid:Ece},Tce=xce({baseStyle:Sce,variants:_ce,defaultProps:{variant:"subtle",colorScheme:"blue"}}),SB={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"},Rce={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"},Ace={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Oce={...SB,...Rce,container:Ace},CB=Oce,Lce=e=>typeof e=="function";function si(e,...t){return Lce(e)?e(...t):e}var{definePartsStyle:wB,defineMultiStyleConfig:kce}=zr(due.keys),Mce=e=>({borderRadius:"full",border:"0.2em solid",borderColor:Be("white","gray.800")(e)}),Dce=e=>({bg:Be("gray.200","whiteAlpha.400")(e)}),Pce=e=>{const{name:t,theme:n}=e,i=t?tce({string:t}):"gray.400",o=ece(i)(n);let s="white";o||(s="gray.800");const u=Be("white","gray.800")(e);return{bg:i,color:s,borderColor:u,verticalAlign:"top"}},Ice=wB(e=>({badge:si(Mce,e),excessLabel:si(Dce,e),container:si(Pce,e)}));function Kf(e){const t=e!=="100%"?CB[e]:void 0;return wB({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 $ce={"2xs":Kf(4),xs:Kf(6),sm:Kf(8),md:Kf(12),lg:Kf(16),xl:Kf(24),"2xl":Kf(32),full:Kf("100%")},Fce=kce({baseStyle:Ice,sizes:$ce,defaultProps:{size:"md"}}),zce={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},Bce=e=>{const{colorScheme:t,theme:n}=e,i=jv(`${t}.500`,.6)(n);return{bg:Be(`${t}.500`,i)(e),color:Be("white","whiteAlpha.800")(e)}},Uce=e=>{const{colorScheme:t,theme:n}=e,i=jv(`${t}.200`,.16)(n);return{bg:Be(`${t}.100`,i)(e),color:Be(`${t}.800`,`${t}.200`)(e)}},jce=e=>{const{colorScheme:t,theme:n}=e,i=jv(`${t}.200`,.8)(n),o=Ui(n,`${t}.500`),s=Be(o,i)(e);return{color:s,boxShadow:`inset 0 0 0px 1px ${s}`}},Vce={solid:Bce,subtle:Uce,outline:jce},Wg={baseStyle:zce,variants:Vce,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Hce,definePartsStyle:Wce}=zr(pue.keys),Gce={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Yce=Wce({link:Gce}),qce=Hce({baseStyle:Yce}),Zce={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=jv(`${t}.200`,.12)(n),o=jv(`${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)}}},Kce=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"},...si(NB,e)}},Xce={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Qce=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:s=`${t}.700`}=Xce[t]??{},u=Be(n,`${t}.200`)(e);return{bg:u,color:Be(i,"gray.800")(e),_hover:{bg:Be(o,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:Be(s,`${t}.400`)(e)}}},Jce=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)}}},efe={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},tfe={ghost:NB,outline:Kce,solid:Qce,link:Jce,unstyled:efe},nfe={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"}},rfe={baseStyle:Zce,variants:tfe,sizes:nfe,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:K5,defineMultiStyleConfig:ife}=zr(mue.keys),Gg=Cd("checkbox-size"),afe=e=>{const{colorScheme:t}=e;return{w:Gg.reference,h:Gg.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)}}},ofe={_disabled:{cursor:"not-allowed"}},sfe={userSelect:"none",_disabled:{opacity:.4}},lfe={transitionProperty:"transform",transitionDuration:"normal"},ufe=K5(e=>({icon:lfe,container:ofe,control:si(afe,e),label:sfe})),cfe={sm:K5({control:{[Gg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:K5({control:{[Gg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:K5({control:{[Gg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},FS=ife({baseStyle:ufe,sizes:cfe,defaultProps:{size:"md",colorScheme:"blue"}}),Yg=zo("close-button-size"),ffe=e=>{const t=Be("blackAlpha.100","whiteAlpha.100")(e),n=Be("blackAlpha.200","whiteAlpha.200")(e);return{w:[Yg.reference],h:[Yg.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},dfe={lg:{[Yg.variable]:"sizes.10",fontSize:"md"},md:{[Yg.variable]:"sizes.8",fontSize:"xs"},sm:{[Yg.variable]:"sizes.6",fontSize:"2xs"}},pfe={baseStyle:ffe,sizes:dfe,defaultProps:{size:"md"}},{variants:mfe,defaultProps:hfe}=Wg,vfe={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},gfe={baseStyle:vfe,variants:mfe,defaultProps:hfe},bfe={w:"100%",mx:"auto",maxW:"prose",px:"4"},yfe={baseStyle:bfe},xfe={opacity:.6,borderColor:"inherit"},Sfe={borderStyle:"solid"},Cfe={borderStyle:"dashed"},wfe={solid:Sfe,dashed:Cfe},Nfe={baseStyle:xfe,variants:wfe,defaultProps:{variant:"solid"}},{definePartsStyle:YE,defineMultiStyleConfig:Efe}=zr(hue.keys);function lv(e){return YE(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var _fe={bg:"blackAlpha.600",zIndex:"overlay"},Tfe={display:"flex",zIndex:"modal",justifyContent:"center"},Rfe=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)}},Afe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Ofe={position:"absolute",top:"2",insetEnd:"3"},Lfe={px:"6",py:"2",flex:"1",overflow:"auto"},kfe={px:"6",py:"4"},Mfe=YE(e=>({overlay:_fe,dialogContainer:Tfe,dialog:si(Rfe,e),header:Afe,closeButton:Ofe,body:Lfe,footer:kfe})),Dfe={xs:lv("xs"),sm:lv("md"),md:lv("lg"),lg:lv("2xl"),xl:lv("4xl"),full:lv("full")},Pfe=Efe({baseStyle:Mfe,sizes:Dfe,defaultProps:{size:"xs"}}),{definePartsStyle:Ife,defineMultiStyleConfig:$fe}=zr(vue.keys),Ffe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},zfe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Bfe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ufe=Ife({preview:Ffe,input:zfe,textarea:Bfe}),jfe=$fe({baseStyle:Ufe}),{definePartsStyle:Vfe,defineMultiStyleConfig:Hfe}=zr(gue.keys),Wfe=e=>({marginStart:"1",color:Be("red.500","red.300")(e)}),Gfe=e=>({mt:"2",color:Be("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Yfe=Vfe(e=>({container:{width:"100%",position:"relative"},requiredIndicator:si(Wfe,e),helperText:si(Gfe,e)})),qfe=Hfe({baseStyle:Yfe}),{definePartsStyle:Zfe,defineMultiStyleConfig:Kfe}=zr(bue.keys),Xfe=e=>({color:Be("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Qfe=e=>({marginEnd:"0.5em",color:Be("red.500","red.300")(e)}),Jfe=Zfe(e=>({text:si(Xfe,e),icon:si(Qfe,e)})),ede=Kfe({baseStyle:Jfe}),tde={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},nde={baseStyle:tde},rde={fontFamily:"heading",fontWeight:"bold"},ide={"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}},ade={baseStyle:rde,sizes:ide,defaultProps:{size:"xl"}},{definePartsStyle:Ic,defineMultiStyleConfig:ode}=zr(yue.keys),sde=Ic({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Xf={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"}},lde={lg:Ic({field:Xf.lg,addon:Xf.lg}),md:Ic({field:Xf.md,addon:Xf.md}),sm:Ic({field:Xf.sm,addon:Xf.sm}),xs:Ic({field:Xf.xs,addon:Xf.xs})};function fT(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 ude=Ic(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=fT(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:Ui(t,i),boxShadow:`0 0 0 1px ${Ui(t,i)}`},_focusVisible:{zIndex:1,borderColor:Ui(t,n),boxShadow:`0 0 0 1px ${Ui(t,n)}`}},addon:{border:"1px solid",borderColor:Be("inherit","whiteAlpha.50")(e),bg:Be("gray.100","whiteAlpha.300")(e)}}}),cde=Ic(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=fT(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:Ui(t,i)},_focusVisible:{bg:"transparent",borderColor:Ui(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Be("gray.100","whiteAlpha.50")(e)}}}),fde=Ic(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=fT(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ui(t,i),boxShadow:`0px 1px 0px 0px ${Ui(t,i)}`},_focusVisible:{borderColor:Ui(t,n),boxShadow:`0px 1px 0px 0px ${Ui(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),dde=Ic({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),pde={outline:ude,filled:cde,flushed:fde,unstyled:dde},ir=ode({baseStyle:sde,sizes:lde,variants:pde,defaultProps:{size:"md",variant:"outline"}}),mde=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"}),hde={baseStyle:mde},vde={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},gde={baseStyle:vde},{defineMultiStyleConfig:bde,definePartsStyle:yde}=zr(xue.keys),xde={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Sde=yde({icon:xde}),Cde=bde({baseStyle:Sde}),{defineMultiStyleConfig:wde,definePartsStyle:Nde}=zr(Sue.keys),Ede=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"}),_de=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"}}),Tde={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Rde={opacity:.6},Ade={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Ode={transitionProperty:"common",transitionDuration:"normal"},Lde=Nde(e=>({button:Ode,list:si(Ede,e),item:si(_de,e),groupTitle:Tde,command:Rde,divider:Ade})),kde=wde({baseStyle:Lde}),{defineMultiStyleConfig:Mde,definePartsStyle:qE}=zr(Cue.keys),Dde={bg:"blackAlpha.600",zIndex:"modal"},Pde=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},Ide=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)}},$de={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Fde={position:"absolute",top:"2",insetEnd:"3"},zde=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Bde={px:"6",py:"4"},Ude=qE(e=>({overlay:Dde,dialogContainer:si(Pde,e),dialog:si(Ide,e),header:$de,closeButton:Fde,body:si(zde,e),footer:Bde}));function Fl(e){return qE(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var jde={xs:Fl("xs"),sm:Fl("sm"),md:Fl("md"),lg:Fl("lg"),xl:Fl("xl"),"2xl":Fl("2xl"),"3xl":Fl("3xl"),"4xl":Fl("4xl"),"5xl":Fl("5xl"),"6xl":Fl("6xl"),full:Fl("full")},Vde=Mde({baseStyle:Ude,sizes:jde,defaultProps:{size:"md"}}),Hde={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"}},EB=Hde,{defineMultiStyleConfig:Wde,definePartsStyle:_B}=zr(wue.keys),dT=zo("number-input-stepper-width"),TB=zo("number-input-input-padding"),Gde=Pc(dT).add("0.5rem").toString(),Yde={[dT.variable]:"sizes.6",[TB.variable]:Gde},qde=e=>{var t;return((t=si(ir.baseStyle,e))==null?void 0:t.field)??{}},Zde={width:[dT.reference]},Kde=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"}}),Xde=_B(e=>({root:Yde,field:qde,stepperGroup:Zde,stepper:si(Kde,e)??{}}));function C5(e){var t,n;const i=(t=ir.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=((n=i.field)==null?void 0:n.fontSize)??"md",u=EB.fontSizes[s];return _B({field:{...i.field,paddingInlineEnd:TB.reference,verticalAlign:"top"},stepper:{fontSize:Pc(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Qde={xs:C5("xs"),sm:C5("sm"),md:C5("md"),lg:C5("lg")},Jde=Wde({baseStyle:Xde,sizes:Qde,variants:ir.variants,defaultProps:ir.defaultProps}),UM,epe={...(UM=ir.baseStyle)==null?void 0:UM.field,textAlign:"center"},tpe={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"}},jM,npe={outline:e=>{var t,n;return((n=si((t=ir.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=si((t=ir.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=si((t=ir.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((jM=ir.variants)==null?void 0:jM.unstyled.field)??{}},rpe={baseStyle:epe,sizes:tpe,variants:npe,defaultProps:ir.defaultProps},{defineMultiStyleConfig:ipe,definePartsStyle:ape}=zr(Nue.keys),Q6=zo("popper-bg"),ope=zo("popper-arrow-bg"),spe=zo("popper-arrow-shadow-color"),lpe={zIndex:10},upe=e=>{const t=Be("white","gray.700")(e),n=Be("gray.200","whiteAlpha.300")(e);return{[Q6.variable]:`colors.${t}`,bg:Q6.reference,[ope.variable]:Q6.reference,[spe.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},cpe={px:3,py:2,borderBottomWidth:"1px"},fpe={px:3,py:2},dpe={px:3,py:2,borderTopWidth:"1px"},ppe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},mpe=ape(e=>({popper:lpe,content:upe(e),header:cpe,body:fpe,footer:dpe,closeButton:ppe})),hpe=ipe({baseStyle:mpe}),{defineMultiStyleConfig:vpe,definePartsStyle:Lg}=zr(Eue.keys),gpe=e=>{const{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,s=Be(IM(),IM("1rem","rgba(0,0,0,0.1)"))(e),u=Be(`${t}.500`,`${t}.200`)(e),p=`linear-gradient(
to right,
transparent 0%,
${Ui(n,u)} 50%,
transparent 100%
)`;return{...!i&&o&&s,...i?{bgImage:p}:{bgColor:u}}},bpe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ype=e=>({bg:Be("gray.100","whiteAlpha.300")(e)}),xpe=e=>({transitionProperty:"common",transitionDuration:"slow",...gpe(e)}),Spe=Lg(e=>({label:bpe,filledTrack:xpe(e),track:ype(e)})),Cpe={xs:Lg({track:{h:"1"}}),sm:Lg({track:{h:"2"}}),md:Lg({track:{h:"3"}}),lg:Lg({track:{h:"4"}})},wpe=vpe({sizes:Cpe,baseStyle:Spe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Npe,definePartsStyle:X5}=zr(_ue.keys),Epe=e=>{var t;const n=(t=si(FS.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"}}}},_pe=X5(e=>{var t,n,i,o;return{label:(n=(t=FS).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(i=FS).baseStyle)==null?void 0:o.call(i,e).container,control:Epe(e)}}),Tpe={md:X5({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:X5({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:X5({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Rpe=Npe({baseStyle:_pe,sizes:Tpe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ape,definePartsStyle:Ope}=zr(Tue.keys),Lpe=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)}}},kpe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Mpe=Ope(e=>({field:Lpe(e),icon:kpe})),w5={paddingInlineEnd:"8"},VM,HM,WM,GM,YM,qM,ZM,KM,Dpe={lg:{...(VM=ir.sizes)==null?void 0:VM.lg,field:{...(HM=ir.sizes)==null?void 0:HM.lg.field,...w5}},md:{...(WM=ir.sizes)==null?void 0:WM.md,field:{...(GM=ir.sizes)==null?void 0:GM.md.field,...w5}},sm:{...(YM=ir.sizes)==null?void 0:YM.sm,field:{...(qM=ir.sizes)==null?void 0:qM.sm.field,...w5}},xs:{...(ZM=ir.sizes)==null?void 0:ZM.xs,field:{...(KM=ir.sizes)==null?void 0:KM.sm.field,...w5},icon:{insetEnd:"1"}}},Ppe=Ape({baseStyle:Mpe,sizes:Dpe,variants:ir.variants,defaultProps:ir.defaultProps}),Ipe=Cd("skeleton-start-color"),$pe=Cd("skeleton-end-color"),Fpe=e=>{const t=Be("gray.100","gray.800")(e),n=Be("gray.400","gray.600")(e),{startColor:i=t,endColor:o=n,theme:s}=e,u=Ui(s,i),p=Ui(s,o);return{[Ipe.variable]:u,[$pe.variable]:p,opacity:.7,borderRadius:"2px",borderColor:u,background:p}},zpe={baseStyle:Fpe},Bpe=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Be("white","gray.700")(e)}}),Upe={baseStyle:Bpe},{defineMultiStyleConfig:jpe,definePartsStyle:B3}=zr(Rue.keys),hb=Cd("slider-thumb-size"),vb=Cd("slider-track-size"),Vpe=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...uT({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Hpe=e=>({...uT({orientation:e.orientation,horizontal:{h:vb.reference},vertical:{w:vb.reference}}),overflow:"hidden",borderRadius:"sm",bg:Be("gray.200","whiteAlpha.200")(e),_disabled:{bg:Be("gray.300","whiteAlpha.300")(e)}}),Wpe=e=>{const{orientation:t}=e;return{...uT({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:hb.reference,h:hb.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"}}},Gpe=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Be(`${t}.500`,`${t}.200`)(e)}},Ype=B3(e=>({container:Vpe(e),track:Hpe(e),thumb:Wpe(e),filledTrack:Gpe(e)})),qpe=B3({container:{[hb.variable]:"sizes.4",[vb.variable]:"sizes.1"}}),Zpe=B3({container:{[hb.variable]:"sizes.3.5",[vb.variable]:"sizes.1"}}),Kpe=B3({container:{[hb.variable]:"sizes.2.5",[vb.variable]:"sizes.0.5"}}),Xpe={lg:qpe,md:Zpe,sm:Kpe},Qpe=jpe({baseStyle:Ype,sizes:Xpe,defaultProps:{size:"md",colorScheme:"blue"}}),im=zo("spinner-size"),Jpe={width:[im.reference],height:[im.reference]},eme={xs:{[im.variable]:"sizes.3"},sm:{[im.variable]:"sizes.4"},md:{[im.variable]:"sizes.6"},lg:{[im.variable]:"sizes.8"},xl:{[im.variable]:"sizes.12"}},tme={baseStyle:Jpe,sizes:eme,defaultProps:{size:"md"}},{defineMultiStyleConfig:nme,definePartsStyle:RB}=zr(Aue.keys),rme={fontWeight:"medium"},ime={opacity:.8,marginBottom:"2"},ame={verticalAlign:"baseline",fontWeight:"semibold"},ome={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},sme=RB({container:{},label:rme,helpText:ime,number:ame,icon:ome}),lme={md:RB({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},ume=nme({baseStyle:sme,sizes:lme,defaultProps:{size:"md"}}),{defineMultiStyleConfig:cme,definePartsStyle:Q5}=zr(Oue.keys),qg=zo("switch-track-width"),dm=zo("switch-track-height"),J6=zo("switch-track-diff"),fme=Pc.subtract(qg,dm),ZE=zo("switch-thumb-x"),dme=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[qg.reference],height:[dm.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)}}},pme={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[dm.reference],height:[dm.reference],_checked:{transform:`translateX(${ZE.reference})`}},mme=Q5(e=>({container:{[J6.variable]:fme,[ZE.variable]:J6.reference,_rtl:{[ZE.variable]:Pc(J6).negate().toString()}},track:dme(e),thumb:pme})),hme={sm:Q5({container:{[qg.variable]:"1.375rem",[dm.variable]:"sizes.3"}}),md:Q5({container:{[qg.variable]:"1.875rem",[dm.variable]:"sizes.4"}}),lg:Q5({container:{[qg.variable]:"2.875rem",[dm.variable]:"sizes.6"}})},vme=cme({baseStyle:mme,sizes:hme,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gme,definePartsStyle:Ov}=zr(Lue.keys),bme=Ov({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"}}),zS={"&[data-is-numeric=true]":{textAlign:"end"}},yme=Ov(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...zS},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...zS},caption:{color:Be("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xme=Ov(e=>{const{colorScheme:t}=e;return{th:{color:Be("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...zS},td:{borderBottom:"1px",borderColor:Be(`${t}.100`,`${t}.700`)(e),...zS},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}}}}}}),Sme={simple:yme,striped:xme,unstyled:{}},Cme={sm:Ov({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:Ov({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ov({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},wme=gme({baseStyle:bme,variants:Sme,sizes:Cme,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:Nme,definePartsStyle:Du}=zr(kue.keys),Eme=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},_me=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}}},Tme=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Rme={p:4},Ame=Du(e=>({root:Eme(e),tab:_me(e),tablist:Tme(e),tabpanel:Rme})),Ome={sm:Du({tab:{py:1,px:4,fontSize:"sm"}}),md:Du({tab:{fontSize:"md",py:2,px:4}}),lg:Du({tab:{fontSize:"lg",py:3,px:4}})},Lme=Du(e=>{const{colorScheme:t,orientation:n}=e,i=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",s=i?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{color:Be(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:Be("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),kme=Du(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"}}}),Mme=Du(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"}}}),Dme=Du(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ui(n,`${t}.700`),bg:Ui(n,`${t}.100`)}}}}),Pme=Du(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)}}}}),Ime=Du({}),$me={line:Lme,enclosed:kme,"enclosed-colored":Mme,"soft-rounded":Dme,"solid-rounded":Pme,unstyled:Ime},Fme=Nme({baseStyle:Ame,sizes:Ome,variants:$me,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:zme,definePartsStyle:pm}=zr(Mue.keys),Bme={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Ume={lineHeight:1.2,overflow:"visible"},jme={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}},Vme=pm({container:Bme,label:Ume,closeButton:jme}),Hme={sm:pm({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:pm({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:pm({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Wme={subtle:pm(e=>{var t;return{container:(t=Wg.variants)==null?void 0:t.subtle(e)}}),solid:pm(e=>{var t;return{container:(t=Wg.variants)==null?void 0:t.solid(e)}}),outline:pm(e=>{var t;return{container:(t=Wg.variants)==null?void 0:t.outline(e)}})},Gme=zme({variants:Wme,baseStyle:Vme,sizes:Hme,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),XM,Yme={...(XM=ir.baseStyle)==null?void 0:XM.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},QM,qme={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:((QM=ir.variants)==null?void 0:QM.unstyled.field)??{}},JM,eD,tD,nD,Zme={xs:((JM=ir.sizes)==null?void 0:JM.xs.field)??{},sm:((eD=ir.sizes)==null?void 0:eD.sm.field)??{},md:((tD=ir.sizes)==null?void 0:tD.md.field)??{},lg:((nD=ir.sizes)==null?void 0:nD.lg.field)??{}},Kme={baseStyle:Yme,sizes:Zme,variants:qme,defaultProps:{size:"md",variant:"outline"}},e7=zo("tooltip-bg"),rD=zo("tooltip-fg"),Xme=zo("popper-arrow-bg"),Qme=e=>{const t=Be("gray.700","gray.300")(e),n=Be("whiteAlpha.900","gray.900")(e);return{bg:e7.reference,color:rD.reference,[e7.variable]:`colors.${t}`,[rD.variable]:`colors.${n}`,[Xme.variable]:e7.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Jme={baseStyle:Qme},ehe={Accordion:yce,Alert:Tce,Avatar:Fce,Badge:Wg,Breadcrumb:qce,Button:rfe,Checkbox:FS,CloseButton:pfe,Code:gfe,Container:yfe,Divider:Nfe,Drawer:Pfe,Editable:jfe,Form:qfe,FormError:ede,FormLabel:nde,Heading:ade,Input:ir,Kbd:hde,Link:gde,List:Cde,Menu:kde,Modal:Vde,NumberInput:Jde,PinInput:rpe,Popover:hpe,Progress:wpe,Radio:Rpe,Select:Ppe,Skeleton:zpe,SkipLink:Upe,Slider:Qpe,Spinner:tme,Stat:ume,Switch:vme,Table:wme,Tabs:Fme,Tag:Gme,Textarea:Kme,Tooltip:Jme},the={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},nhe=the,rhe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},ihe=rhe,ahe={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"}},ohe=ahe,she={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},lhe=she,uhe={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"},che=uhe,fhe={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"},dhe={"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)"},phe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},mhe={property:fhe,easing:dhe,duration:phe},hhe=mhe,vhe={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},ghe=vhe,bhe={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},yhe=bhe,xhe={breakpoints:ihe,zIndices:ghe,radii:lhe,blur:yhe,colors:ohe,...EB,sizes:CB,shadows:che,space:SB,borders:nhe,transition:hhe},She={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"}}},Che={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 whe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Nhe=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Ehe(e){return whe(e)?Nhe.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var _he="ltr",The={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},AB={semanticTokens:She,direction:_he,...xhe,components:ehe,styles:Che,config:The};function Rhe(e,t){const n=Wa(e);E.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{n()},t),()=>{i&&window.clearTimeout(i)}},[t,n])}var $c="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function KE(e,...t){return Ahe(e)?e(...t):e}var Ahe=e=>typeof e=="function";function Ohe(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 Lhe=(e,t)=>e.find(n=>n.id===t);function iD(e,t){const n=OB(e,t),i=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:i}}function OB(e,t){for(const[n,i]of Object.entries(e))if(Lhe(i,t))return n}function khe(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 Mhe(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,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",u=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:s,left:u}}var Dhe={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Ru=Phe(Dhe);function Phe(e){let t=e;const n=new Set,i=o=>{t=o(t),n.forEach(s=>s())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{i(()=>e),n.delete(o)}),removeToast:(o,s)=>{i(u=>({...u,[s]:u[s].filter(p=>p.id!=o)}))},notify:(o,s)=>{const u=Ihe(o,s),{position:p,id:m}=u;return i(v=>{const b=p.includes("top")?[u,...v[p]??[]]:[...v[p]??[],u];return{...v,[p]:b}}),m},update:(o,s)=>{!o||i(u=>{const p={...u},{position:m,index:v}=iD(p,o);return m&&v!==-1&&(p[m][v]={...p[m][v],...s,message:LB(s)}),p})},closeAll:({positions:o}={})=>{i(s=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((m,v)=>(m[v]=s[v].map(g=>({...g,requestClose:!0})),m),{...s}))},close:o=>{i(s=>{const u=OB(s,o);return u?{...s,[u]:s[u].map(p=>p.id==o?{...p,requestClose:!0}:p)}:s})},isActive:o=>Boolean(iD(Ru.getState(),o).position)}}var aD=0;function Ihe(e,t={}){aD+=1;const n=t.id??aD,i=t.position??"bottom";return{id:n,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Ru.removeToast(String(n),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var $he=e=>{const{status:t,variant:n="solid",id:i,title:o,isClosable:s,onClose:u,description:p,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return _e.createElement(mF,{addRole:!1,status:t,variant:n,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},N(vF,{children:m},void 0,!1,{fileName:$c,lineNumber:237,columnNumber:22},globalThis),_e.createElement(je.div,{flex:"1",maxWidth:"100%"},o&&N(gF,{id:v?.title,children:o},void 0,!1,{fileName:$c,lineNumber:240,columnNumber:31},globalThis),p&&N(hF,{id:v?.description,display:"block",children:p},void 0,!1,{fileName:$c,lineNumber:242,columnNumber:45},globalThis)),s&&N(k3,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:$c,lineNumber:245,columnNumber:51},globalThis))};function LB(e={}){const{render:t,toastComponent:n=$he}=e;return o=>typeof t=="function"?t(o):N(n,{...o,...e},void 0,!1,{fileName:$c,lineNumber:259,columnNumber:28},this)}function Fhe(e,t){const n=o=>({...t,...o,position:Ohe(o?.position??t?.position,e)}),i=o=>{const s=n(o),u=LB(s);return Ru.notify(u,s)};return i.update=(o,s)=>{Ru.update(o,n(s))},i.promise=(o,s)=>{const u=i({...s.loading,status:"loading",duration:null});o.then(p=>i.update(u,{status:"success",duration:5e3,...KE(s.success,p)})).catch(p=>i.update(u,{status:"error",duration:5e3,...KE(s.error,p)}))},i.closeAll=Ru.closeAll,i.close=Ru.close,i.isActive=Ru.isActive,i}function Gb(e){const{theme:t}=RI();return E.exports.useMemo(()=>Fhe(t.direction,e),[e,t.direction])}var zhe={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]}}},kB=E.exports.memo(e=>{const{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:s=!1,position:u="bottom",duration:p=5e3,containerStyle:m,motionVariants:v=zhe,toastSpacing:g="0.5rem"}=e,[b,C]=E.exports.useState(p),w=CJ();OS(()=>{w||i?.()},[w]),OS(()=>{C(p)},[p]);const T=()=>C(null),A=()=>C(p),k=()=>{w&&o()};E.exports.useEffect(()=>{w&&s&&o()},[w,s,o]),Rhe(k,b);const I=E.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:g,...m}),[m,g]),D=E.exports.useMemo(()=>khe(u),[u]);return _e.createElement(rl.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:T,onHoverEnd:A,custom:{position:u},style:D},_e.createElement(je.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:I},KE(n,{id:t,onClose:k})))});kB.displayName="ToastComponent";var Bhe=e=>{const t=E.exports.useSyncExternalStore(Ru.subscribe,Ru.getState,Ru.getState),{children:n,motionVariants:i,component:o=kB,portalProps:s}=e,p=Object.keys(t).map(m=>{const v=t[m];return N("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${m}`,style:Mhe(m),children:N(Gc,{initial:!1,children:v.map(g=>N(o,{motionVariants:i,...g},g.id,!1,{fileName:$c,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:$c,lineNumber:432,columnNumber:24},globalThis)},m,!1,{fileName:$c,lineNumber:426,columnNumber:28},globalThis)});return N(ji,{children:[n,N(Nm,{...s,children:p},void 0,!1,{fileName:$c,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},oD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function Uhe(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function jhe(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var Vhe={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 Cg(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var XE=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},QE=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Hhe(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnEsc:s=!0,onOpen:u,onClose:p,placement:m,id:v,isOpen:g,defaultIsOpen:b,arrowSize:C=10,arrowShadowColor:w,arrowPadding:T,modifiers:A,isDisabled:k,gutter:I,offset:D,direction:P,...F}=e,{isOpen:z,onOpen:q,onClose:Y}=nz({isOpen:g,defaultIsOpen:b,onOpen:u,onClose:p}),{referenceRef:Q,getPopperProps:ie,getArrowInnerProps:ae,getArrowProps:pe}=tz({enabled:z,placement:m,arrowPadding:T,modifiers:A,gutter:I,offset:D,direction:P}),$e=E.exports.useId(),ee=`tooltip-${v??$e}`,be=E.exports.useRef(null),Ce=E.exports.useRef(),K=E.exports.useRef(),le=E.exports.useCallback(()=>{K.current&&(clearTimeout(K.current),K.current=void 0),Y()},[Y]),ve=Whe(be,le),de=E.exports.useCallback(()=>{if(!k&&!Ce.current){ve();const Ve=QE(be);Ce.current=Ve.setTimeout(q,t)}},[ve,k,q,t]),we=E.exports.useCallback(()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=void 0);const Ve=QE(be);K.current=Ve.setTimeout(le,n)},[n,le]),Le=E.exports.useCallback(()=>{z&&i&&we()},[i,we,z]),Me=E.exports.useCallback(()=>{z&&o&&we()},[o,we,z]),Ze=E.exports.useCallback(Ve=>{z&&Ve.key==="Escape"&&we()},[z,we]);RE(()=>XE(be),"keydown",s?Ze:void 0),E.exports.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(K.current)},[]),RE(()=>be.current,"mouseleave",we);const Je=E.exports.useCallback((Ve={},at=null)=>({...Ve,ref:Kr(be,at,Q),onMouseEnter:Cg(Ve.onMouseEnter,de),onClick:Cg(Ve.onClick,Le),onMouseDown:Cg(Ve.onMouseDown,Me),onFocus:Cg(Ve.onFocus,de),onBlur:Cg(Ve.onBlur,we),"aria-describedby":z?ee:void 0}),[de,we,Me,z,ee,Le,Q]),it=E.exports.useCallback((Ve={},at=null)=>ie({...Ve,style:{...Ve.style,[Si.arrowSize.var]:C?`${C}px`:void 0,[Si.arrowShadowColor.var]:w}},at),[ie,C,w]),Rt=E.exports.useCallback((Ve={},at=null)=>{const St={...Ve.style,position:"relative",transformOrigin:Si.transformOrigin.varRef};return{ref:at,...F,...Ve,id:ee,role:"tooltip",style:St}},[F,ee]);return{isOpen:z,show:de,hide:we,getTriggerProps:Je,getTooltipProps:Rt,getTooltipPositionerProps:it,getArrowProps:pe,getArrowInnerProps:ae}}var t7="chakra-ui:close-tooltip";function Whe(e,t){return E.exports.useEffect(()=>{const n=XE(e);return n.addEventListener(t7,t),()=>n.removeEventListener(t7,t)},[t,e]),()=>{const n=XE(e),i=QE(e);n.dispatchEvent(new i.CustomEvent(t7))}}var Ghe=je(rl.div),po=Ke((e,t)=>{const n=ho("Tooltip",e),i=pr(e),o=d3(),{children:s,label:u,shouldWrapChildren:p,"aria-label":m,hasArrow:v,bg:g,portalProps:b,background:C,backgroundColor:w,bgColor:T,...A}=i,k=C??w??g??T;if(k){n.bg=k;const Q=Aq(o,"colors",k);n[Si.arrowBg.var]=Q}const I=Hhe({...A,direction:o.direction}),D=typeof s=="string"||p;let P;if(D)P=_e.createElement(je.span,{tabIndex:0,...I.getTriggerProps()},s);else{const Q=E.exports.Children.only(s);P=E.exports.cloneElement(Q,I.getTriggerProps(Q.props,Q.ref))}const F=!!m,z=I.getTooltipProps({},t),q=F?Uhe(z,["role","id"]):z,Y=jhe(z,["role","id"]);return u?N(ji,{children:[P,N(Gc,{children:I.isOpen&&_e.createElement(Nm,{...b},_e.createElement(je.div,{...I.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},N(Ghe,{variants:Vhe,...q,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[u,F&&_e.createElement(je.span,{srOnly:!0,...Y},m),v&&_e.createElement(je.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},_e.createElement(je.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]},void 0,!0,{fileName:oD,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:oD,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):N(ji,{children:s},void 0,!1)});po.displayName="Tooltip";var qp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",Yhe=e=>{const{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:s={},environment:u,cssVarsRoot:p}=e,m=N(HF,{environment:u,children:t},void 0,!1,{fileName:qp,lineNumber:25,columnNumber:37},globalThis);return N(IK,{theme:s,cssVarsRoot:p,children:N(KP,{colorModeManager:n,options:s.config,children:[o?N(hre,{},void 0,!1,{fileName:qp,lineNumber:34,columnNumber:33},globalThis):N(mre,{},void 0,!1,{fileName:qp,lineNumber:34,columnNumber:87},globalThis),N(FK,{},void 0,!1,{fileName:qp,lineNumber:34,columnNumber:143},globalThis),i?N(iz,{zIndex:i,children:m},void 0,!1,{fileName:qp,lineNumber:34,columnNumber:214},globalThis):m]},void 0,!0,{fileName:qp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:qp,lineNumber:28,columnNumber:26},globalThis)},sD="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function qhe({children:e,theme:t=AB,toastOptions:n,...i}){return N(Yhe,{theme:t,...i,children:[e,N(Bhe,{...n},void 0,!1,{fileName:sD,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:sD,lineNumber:62,columnNumber:26},this)}function Zhe(...e){let t=[...e],n=e[e.length-1];return Ehe(n)&&t.length>1?t=t.slice(0,t.length-1):n=AB,tK(...t.map(i=>o=>gv(i)?i(o):Khe(o,i)))(n)}function Khe(...e){return md({},...e,MB)}function MB(e,t,n,i){if((gv(e)||gv(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...o)=>{const s=gv(e)?e(...o):e,u=gv(t)?t(...o):t;return md({},s,u,MB)}}function ta(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=ave[e],s=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+s)}}function yd(e){return!!e&&!!e[Fr]}function Bc(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)===ove}(e)||Array.isArray(e)||!!e[mD]||!!e.constructor[mD]||pT(e)||mT(e))}function bm(e,t,n){n===void 0&&(n=!1),Jv(e)===0?(n?Object.keys:kv)(e).forEach(function(i){n&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,o){return t(o,i,e)})}function Jv(e){var t=e[Fr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:pT(e)?2:mT(e)?3:0}function Lv(e,t){return Jv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xhe(e,t){return Jv(e)===2?e.get(t):e[t]}function DB(e,t,n){var i=Jv(e);i===2?e.set(t,n):i===3?(e.delete(t),e.add(n)):e[t]=n}function PB(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function pT(e){return rve&&e instanceof Map}function mT(e){return ive&&e instanceof Set}function rd(e){return e.o||e.t}function hT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=$B(e);delete t[Fr];for(var n=kv(t),i=0;i<n.length;i++){var o=n[i],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function vT(e,t){return t===void 0&&(t=!1),gT(e)||yd(e)||!Bc(e)||(Jv(e)>1&&(e.set=e.add=e.clear=e.delete=Qhe),Object.freeze(e),t&&bm(e,function(n,i){return vT(i,!0)},!0)),e}function Qhe(){ta(2)}function gT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pu(e){var t=n8[e];return t||ta(18,e),t}function Jhe(e,t){n8[e]||(n8[e]=t)}function JE(){return Vv||ta(0),Vv}function n7(e,t){t&&(Pu("Patches"),e.u=[],e.s=[],e.v=t)}function BS(e){e8(e),e.p.forEach(eve),e.p=null}function e8(e){e===Vv&&(Vv=e.l)}function lD(e){return Vv={p:[],l:Vv,h:e,m:!0,_:0}}function eve(e){var t=e[Fr];t.i===0||t.i===1?t.j():t.O=!0}function r7(e,t){t._=t.p.length;var n=t.p[0],i=e!==void 0&&e!==n;return t.h.g||Pu("ES5").S(t,e,i),i?(n[Fr].P&&(BS(t),ta(4)),Bc(e)&&(e=US(t,e),t.l||jS(t,e)),t.u&&Pu("Patches").M(n[Fr].t,e,t.u,t.s)):e=US(t,n,[]),BS(t),t.u&&t.v(t.u,t.s),e!==IB?e:void 0}function US(e,t,n){if(gT(t))return t;var i=t[Fr];if(!i)return bm(t,function(s,u){return uD(e,i,t,s,u,n)},!0),t;if(i.A!==e)return t;if(!i.P)return jS(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=hT(i.k):i.o;bm(i.i===3?new Set(o):o,function(s,u){return uD(e,i,o,s,u,n)}),jS(e,o,!1),n&&e.u&&Pu("Patches").R(i,n,e.u,e.s)}return i.o}function uD(e,t,n,i,o,s){if(o===n&&ta(5),yd(o)){var u=US(e,o,s&&t&&t.i!==3&&!Lv(t.D,i)?s.concat(i):void 0);if(DB(n,i,u),!yd(u))return;e.m=!1}if(Bc(o)&&!gT(o)){if(!e.h.F&&e._<1)return;US(e,o),t&&t.A.l||jS(e,o)}}function jS(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&vT(t,n)}function i7(e,t){var n=e[Fr];return(n?rd(n):e)[t]}function cD(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 id(e){e.P||(e.P=!0,e.l&&id(e.l))}function a7(e){e.o||(e.o=hT(e.t))}function t8(e,t,n){var i=pT(t)?Pu("MapSet").N(t,n):mT(t)?Pu("MapSet").T(t,n):e.g?function(o,s){var u=Array.isArray(o),p={i:u?1:0,A:s?s.A:JE(),P:!1,I:!1,D:{},l:s,t:o,k:null,o:null,j:null,C:!1},m=p,v=gb;u&&(m=[p],v=kg);var g=Proxy.revocable(m,v),b=g.revoke,C=g.proxy;return p.k=C,p.j=b,C}(t,n):Pu("ES5").J(t,n);return(n?n.A:JE()).p.push(i),i}function tve(e){return yd(e)||ta(22,e),function t(n){if(!Bc(n))return n;var i,o=n[Fr],s=Jv(n);if(o){if(!o.P&&(o.i<4||!Pu("ES5").K(o)))return o.t;o.I=!0,i=fD(n,s),o.I=!1}else i=fD(n,s);return bm(i,function(u,p){o&&Xhe(o.t,u)===p||DB(i,u,t(p))}),s===3?new Set(i):i}(e)}function fD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return hT(e)}function nve(){function e(u,p){var m=s[u];return m?m.enumerable=p:s[u]=m={configurable:!0,enumerable:p,get:function(){var v=this[Fr];return o(v),gb.get(v,u)},set:function(v){var g=this[Fr];o(g),gb.set(g,u,v)}},m}function t(u){for(var p=u.length-1;p>=0;p--){var m=u[p][Fr];if(!m.P)switch(m.i){case 5:i(m)&&id(m);break;case 4:n(m)&&id(m)}}}function n(u){for(var p=u.t,m=u.k,v=kv(m),g=v.length-1;g>=0;g--){var b=v[g];if(b!==Fr){var C=p[b];if(C===void 0&&!Lv(p,b))return!0;var w=m[b],T=w&&w[Fr];if(T?T.t!==C:!PB(w,C))return!0}}var A=!!p[Fr];return v.length!==kv(p).length+(A?0:1)}function i(u){var p=u.k;if(p.length!==u.t.length)return!0;var m=Object.getOwnPropertyDescriptor(p,p.length-1);if(m&&!m.get)return!0;for(var v=0;v<p.length;v++)if(!p.hasOwnProperty(v))return!0;return!1}function o(u){u.O&&ta(3,JSON.stringify(rd(u)))}var s={};Jhe("ES5",{J:function(u,p){var m=Array.isArray(u),v=function(b,C){if(b){for(var w=Array(C.length),T=0;T<C.length;T++)Object.defineProperty(w,""+T,e(T,!0));return w}var A=$B(C);delete A[Fr];for(var k=kv(A),I=0;I<k.length;I++){var D=k[I];A[D]=e(D,b||!!A[D].enumerable)}return Object.create(Object.getPrototypeOf(C),A)}(m,u),g={i:m?5:4,A:p?p.A:JE(),P:!1,I:!1,D:{},l:p,t:u,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Fr,{value:g,writable:!0}),v},S:function(u,p,m){m?yd(p)&&p[Fr].A===u&&t(u.p):(u.u&&function v(g){if(g&&typeof g=="object"){var b=g[Fr];if(b){var C=b.t,w=b.k,T=b.D,A=b.i;if(A===4)bm(w,function(F){F!==Fr&&(C[F]!==void 0||Lv(C,F)?T[F]||v(w[F]):(T[F]=!0,id(b)))}),bm(C,function(F){w[F]!==void 0||Lv(w,F)||(T[F]=!1,id(b))});else if(A===5){if(i(b)&&(id(b),T.length=!0),w.length<C.length)for(var k=w.length;k<C.length;k++)T[k]=!1;else for(var I=C.length;I<w.length;I++)T[I]=!0;for(var D=Math.min(w.length,C.length),P=0;P<D;P++)w.hasOwnProperty(P)||(T[P]=!0),T[P]===void 0&&v(w[P])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?n(u):i(u)}})}var dD,Vv,bT=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",rve=typeof Map<"u",ive=typeof Set<"u",pD=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",IB=bT?Symbol.for("immer-nothing"):((dD={})["immer-nothing"]=!0,dD),mD=bT?Symbol.for("immer-draftable"):"__$immer_draftable",Fr=bT?Symbol.for("immer-state"):"__$immer_state",ave={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"},ove=""+Object.prototype.constructor,kv=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,$B=Object.getOwnPropertyDescriptors||function(e){var t={};return kv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},n8={},gb={get:function(e,t){if(t===Fr)return e;var n=rd(e);if(!Lv(n,t))return function(o,s,u){var p,m=cD(s,u);return m?"value"in m?m.value:(p=m.get)===null||p===void 0?void 0:p.call(o.k):void 0}(e,n,t);var i=n[t];return e.I||!Bc(i)?i:i===i7(e.t,t)?(a7(e),e.o[t]=t8(e.A.h,i,e)):i},has:function(e,t){return t in rd(e)},ownKeys:function(e){return Reflect.ownKeys(rd(e))},set:function(e,t,n){var i=cD(rd(e),t);if(i?.set)return i.set.call(e.k,n),!0;if(!e.P){var o=i7(rd(e),t),s=o?.[Fr];if(s&&s.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(PB(n,o)&&(n!==void 0||Lv(e.t,t)))return!0;a7(e),id(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 i7(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,a7(e),id(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=rd(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty:function(){ta(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ta(12)}},kg={};bm(gb,function(e,t){kg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),kg.deleteProperty=function(e,t){return isNaN(parseInt(t))&&ta(13),kg.set.call(this,e,t,void 0)},kg.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&ta(14),gb.set.call(this,e[0],t,n,e[0])};var sve=function(){function e(n){var i=this;this.g=pD,this.F=!0,this.produce=function(o,s,u){if(typeof o=="function"&&typeof s!="function"){var p=s;s=o;var m=i;return function(A){var k=this;A===void 0&&(A=p);for(var I=arguments.length,D=Array(I>1?I-1:0),P=1;P<I;P++)D[P-1]=arguments[P];return m.produce(A,function(F){var z;return(z=s).call.apply(z,[k,F].concat(D))})}}var v;if(typeof s!="function"&&ta(6),u!==void 0&&typeof u!="function"&&ta(7),Bc(o)){var g=lD(i),b=t8(i,o,void 0),C=!0;try{v=s(b),C=!1}finally{C?BS(g):e8(g)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(A){return n7(g,u),r7(A,g)},function(A){throw BS(g),A}):(n7(g,u),r7(v,g))}if(!o||typeof o!="object"){if((v=s(o))===void 0&&(v=o),v===IB&&(v=void 0),i.F&&vT(v,!0),u){var w=[],T=[];Pu("Patches").M(o,v,w,T),u(w,T)}return v}ta(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(v){for(var g=arguments.length,b=Array(g>1?g-1:0),C=1;C<g;C++)b[C-1]=arguments[C];return i.produceWithPatches(v,function(w){return o.apply(void 0,[w].concat(b))})};var u,p,m=i.produce(o,s,function(v,g){u=v,p=g});return typeof Promise<"u"&&m instanceof Promise?m.then(function(v){return[v,u,p]}):[m,u,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){Bc(n)||ta(8),yd(n)&&(n=tve(n));var i=lD(this),o=t8(this,n,void 0);return o[Fr].C=!0,e8(i),o},t.finishDraft=function(n,i){var o=n&&n[Fr];o&&o.C||ta(9),o.I&&ta(10);var s=o.A;return n7(s,i),r7(void 0,s)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!pD&&ta(20),this.g=n},t.applyPatches=function(n,i){var o;for(o=i.length-1;o>=0;o--){var s=i[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(i=i.slice(o+1));var u=Pu("Patches").$;return yd(n)?u(n,i):this.produce(n,function(p){return u(p,i)})},e}(),hs=new sve,FB=hs.produce;hs.produceWithPatches.bind(hs);hs.setAutoFreeze.bind(hs);hs.setUseProxies.bind(hs);hs.applyPatches.bind(hs);hs.createDraft.bind(hs);hs.finishDraft.bind(hs);function lve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hD(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 vD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hD(Object(n),!0).forEach(function(i){lve(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var gD=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),o7=function(){return Math.random().toString(36).substring(7).split("").join(".")},mm={INIT:"@@redux/INIT"+o7(),REPLACE:"@@redux/REPLACE"+o7(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o7()}};function zB(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 uve(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(dve(e))return"date";if(fve(e))return"error";var n=cve(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 cve(e){return typeof e.constructor=="function"?e.constructor.name:null}function fve(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function dve(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function tm(e){var t=typeof e;return t=uve(e),t}function yT(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: '"+tm(n)+"'");return n(yT)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+tm(e)+"'");var o=e,s=t,u=[],p=u,m=!1;function v(){p===u&&(p=u.slice())}function g(){if(m)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 s}function b(A){if(typeof A!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+tm(A)+"'");if(m)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 k=!0;return v(),p.push(A),function(){if(!!k){if(m)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.");k=!1,v();var D=p.indexOf(A);p.splice(D,1),u=null}}}function C(A){if(!zB(A))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+tm(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(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,s=o(s,A)}finally{m=!1}for(var k=u=p,I=0;I<k.length;I++){var D=k[I];D()}return A}function w(A){if(typeof A!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+tm(A));o=A,C({type:mm.REPLACE})}function T(){var A,k=b;return A={subscribe:function(D){if(typeof D!="object"||D===null)throw new Error("Expected the observer to be an object. Instead, received: '"+tm(D)+"'");function P(){D.next&&D.next(g())}P();var F=k(P);return{unsubscribe:F}}},A[gD]=function(){return this},A}return C({type:mm.INIT}),i={dispatch:C,subscribe:b,getState:g,replaceReducer:w},i[gD]=T,i}function r8(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function pve(e,t,n,i){var o=Object.keys(t),s=n&&n.type===mm.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(!zB(e))return"The "+s+' has unexpected type of "'+tm(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var u=Object.keys(e).filter(function(p){return!t.hasOwnProperty(p)&&!i[p]});if(u.forEach(function(p){i[p]=!0}),!(n&&n.type===mm.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function mve(e){Object.keys(e).forEach(function(t){var n=e[t],i=n(void 0,{type:mm.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:mm.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 '"+mm.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 BB(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];typeof e[o]>"u"&&r8('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),u;u={};var p;try{mve(n)}catch(m){p=m}return function(v,g){if(v===void 0&&(v={}),p)throw p;{var b=pve(v,n,g,u);b&&r8(b)}for(var C=!1,w={},T=0;T<s.length;T++){var A=s[T],k=n[A],I=v[A],D=k(I,g);if(typeof D>"u"){var P=g&&g.type;throw new Error("When called with an action of type "+(P?'"'+String(P)+'"':"(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.')}w[A]=D,C=C||D!==I}return C=C||s.length!==Object.keys(v).length,C?w:v}}function VS(){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 hve(){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),s=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},u={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},p=t.map(function(m){return m(u)});return s=VS.apply(void 0,p)(o.dispatch),vD(vD({},o),{},{dispatch:s})}}}function bD(){}typeof bD.name=="string"&&bD.name!=="isCrushed"&&r8('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 HS="NOT_FOUND";function vve(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:HS},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function gve(e,t){var n=[];function i(p){var m=n.findIndex(function(g){return t(p,g.key)});if(m>-1){var v=n[m];return m>0&&(n.splice(m,1),n.unshift(v)),v.value}return HS}function o(p,m){i(p)===HS&&(n.unshift({key:p,value:m}),n.length>e&&n.pop())}function s(){return n}function u(){n=[]}return{get:i,put:o,getEntries:s,clear:u}}var bve=function(t,n){return t===n};function yve(e){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],i[s]))return!1;return!0}}function xve(e,t){var n=typeof t=="object"?t:{equalityCheck:t},i=n.equalityCheck,o=i===void 0?bve:i,s=n.maxSize,u=s===void 0?1:s,p=n.resultEqualityCheck,m=yve(o),v=u===1?vve(m):gve(u,m);function g(){var b=v.get(arguments);if(b===HS){if(b=e.apply(null,arguments),p){var C=v.getEntries(),w=C.find(function(T){return p(T.value,b)});w&&(b=w.value)}v.put(arguments,b)}return b}return g.clearCache=function(){return v.clear()},g}function Sve(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 Cve(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 u=arguments.length,p=new Array(u),m=0;m<u;m++)p[m]=arguments[m];var v=0,g,b={memoizeOptions:void 0},C=p.pop();if(typeof C=="object"&&(b=C,C=p.pop()),typeof C!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof C+"]");var w=b,T=w.memoizeOptions,A=T===void 0?n:T,k=Array.isArray(A)?A:[A],I=Sve(p),D=e.apply(void 0,[function(){return v++,C.apply(null,arguments)}].concat(k)),P=e(function(){for(var z=[],q=I.length,Y=0;Y<q;Y++)z.push(I[Y].apply(null,arguments));return g=D.apply(null,z),g});return Object.assign(P,{resultFunc:C,memoizedResultFunc:D,dependencies:I,lastResult:function(){return g},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),P};return o}var Ya=Cve(xve);function UB(e){var t=function(i){var o=i.dispatch,s=i.getState;return function(u){return function(p){return typeof p=="function"?p(o,s,e):u(p)}}};return t}var jB=UB();jB.withExtraArgument=UB;const yD=jB;var wve=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 s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},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 WS=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},Nve=Object.defineProperty,xD=Object.getOwnPropertySymbols,Eve=Object.prototype.hasOwnProperty,_ve=Object.prototype.propertyIsEnumerable,SD=function(e,t,n){return t in e?Nve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},bb=function(e,t){for(var n in t||(t={}))Eve.call(t,n)&&SD(e,n,t[n]);if(xD)for(var i=0,o=xD(t);i<o.length;i++){var n=o[i];_ve.call(t,n)&&SD(e,n,t[n])}return e},Tve=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?VS:VS.apply(null,arguments)};function VB(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 HB(e,t){var n=0;return{measureTime:function(i){var o=Date.now();try{return i()}finally{var s=Date.now();n+=s-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 Rve=function(e){wve(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,WS([void 0],n[0].concat(this)))):new(t.bind.apply(t,WS([void 0],n.concat(this))))},t}(Array);function i8(e){return Bc(e)?FB(e,function(){}):e}var Ave="Invariant failed";function CD(e,t){if(!e)throw new Error(Ave+": "+(t||""))}function Ove(e,t,n,i){return JSON.stringify(e,Lve(t,i),n)}function Lve(e,t){var n=[],i=[];return t||(t=function(o,s){return n[0]===s?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(s)).join(".")+"]"}),function(o,s){if(n.length>0){var u=n.indexOf(this);~u?n.splice(u+1):n.push(this),~u?i.splice(u,1/0,o):i.push(o),~n.indexOf(s)&&(s=t.call(this,o,s))}else n.push(s);return e==null?s:e.call(this,o,s)}}function kve(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Mve(e,t,n){var i=WB(e,t,n);return{detectMutations:function(){return GB(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 s in n){var u=i?i+"."+s:s;t.length&&t.indexOf(u)!==-1||(o.children[s]=WB(e,t,n[s],u))}}return o}function GB(e,t,n,i,o,s){t===void 0&&(t=[]),o===void 0&&(o=!1),s===void 0&&(s="");var u=n?n.value:void 0,p=u===i;if(o&&!p&&!Number.isNaN(i))return{wasMutated:!0,path:s};if(e(u)||e(i))return{wasMutated:!1};var m={};for(var v in n.children)m[v]=!0;for(var v in i)m[v]=!0;for(var v in m){var g=s?s+"."+v:v;if(!(t.length&&t.indexOf(g)!==-1)){var b=GB(e,t,n.children[v],i[v],p,g);if(b.wasMutated)return b}}return{wasMutated:!1}}function Dve(e){e===void 0&&(e={});var t=e.isImmutable,n=t===void 0?kve:t,i=e.ignoredPaths,o=e.warnAfter,s=o===void 0?32:o,u=e.ignore;i=i||u;var p=Mve.bind(null,n,i);return function(m){var v=m.getState,g=v(),b=p(g),C;return function(w){return function(T){var A=HB(s,"ImmutableStateInvariantMiddleware");A.measureTime(function(){g=v(),C=b.detectMutations(),b=p(g),CD(!C.wasMutated,"A state mutation was detected between dispatches, in the path '"+(C.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var k=w(T);return A.measureTime(function(){g=v(),C=b.detectMutations(),b=p(g),C.wasMutated&&CD(!C.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(C.path||"")+". Take a look at the reducer(s) handling the action "+Ove(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),A.warnIfExceeded(),k}}}}function YB(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||VB(e)}function a8(e,t,n,i,o){t===void 0&&(t=""),n===void 0&&(n=YB),o===void 0&&(o=[]);var s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var u=i!=null?i(e):Object.entries(e),p=o.length>0,m=0,v=u;m<v.length;m++){var g=v[m],b=g[0],C=g[1],w=t?t+"."+b:b;if(!(p&&o.indexOf(w)>=0)){if(!n(C))return{keyPath:w,value:C};if(typeof C=="object"&&(s=a8(C,w,n,i,o),s))return s}}return!1}function Pve(e){e===void 0&&(e={});var t=e.isSerializable,n=t===void 0?YB:t,i=e.getEntries,o=e.ignoredActions,s=o===void 0?[]:o,u=e.ignoredActionPaths,p=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,m=e.ignoredPaths,v=m===void 0?[]:m,g=e.warnAfter,b=g===void 0?32:g,C=e.ignoreState,w=C===void 0?!1:C,T=e.ignoreActions,A=T===void 0?!1:T;return function(k){return function(I){return function(D){var P=I(D),F=HB(b,"SerializableStateInvariantMiddleware");return!A&&!(s.length&&s.indexOf(D.type)!==-1)&&F.measureTime(function(){var z=a8(D,"",n,i,p);if(z){var q=z.keyPath,Y=z.value;console.error("A non-serializable value was detected in an action, in the path: `"+q+"`. Value:",Y,`
Take a look at the logic that dispatched this action: `,D,`
(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)`)}}),w||(F.measureTime(function(){var z=k.getState(),q=a8(z,"",n,i,v);if(q){var Y=q.keyPath,Q=q.value;console.error("A non-serializable value was detected in the state, in the path: `"+Y+"`. Value:",Q,`
Take a look at the reducer(s) handling this action type: `+D.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()),P}}}}function s7(e){return typeof e=="boolean"}function Ive(){return function(t){return $ve(t)}}function $ve(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,i=e.immutableCheck,o=i===void 0?!0:i,s=e.serializableCheck,u=s===void 0?!0:s,p=new Rve;n&&(s7(n)?p.push(yD):p.push(yD.withExtraArgument(n.extraArgument)));{if(o){var m={};s7(o)||(m=o),p.unshift(Dve(m))}if(u){var v={};s7(u)||(v=u),p.push(Pve(v))}}return p}var Fve=!1;function zve(e){var t=Ive(),n=e||{},i=n.reducer,o=i===void 0?void 0:i,s=n.middleware,u=s===void 0?t():s,p=n.devTools,m=p===void 0?!0:p,v=n.preloadedState,g=v===void 0?void 0:v,b=n.enhancers,C=b===void 0?void 0:b,w;if(typeof o=="function")w=o;else if(VB(o))w=BB(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=u;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(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=hve.apply(void 0,T),k=VS;m&&(k=Tve(bb({trace:!Fve},typeof m=="object"&&m)));var I=[A];Array.isArray(C)?I=WS([A],C):typeof C=="function"&&(I=C(I));var D=k.apply(void 0,I);return yT(w,g,D)}function mo(e,t){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var s=t.apply(void 0,i);if(!s)throw new Error("prepareAction did not return an object");return bb(bb({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.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 qB(e){var t={},n=[],i,o={addCase:function(s,u){{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 s=="string"?s:s.type;if(p in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[p]=u,o},addMatcher:function(s,u){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:u}),o},addDefaultCase:function(s){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function Bve(e){return typeof e=="function"}function Uve(e,t,n,i){n===void 0&&(n=[]);var o=typeof t=="function"?qB(t):[t,n,i],s=o[0],u=o[1],p=o[2],m;if(Bve(e))m=function(){return i8(e())};else{var v=i8(e);m=function(){return v}}function g(b,C){b===void 0&&(b=m());var w=WS([s[C.type]],u.filter(function(T){var A=T.matcher;return A(C)}).map(function(T){var A=T.reducer;return A}));return w.filter(function(T){return!!T}).length===0&&(w=[p]),w.reduce(function(T,A){if(A)if(yd(T)){var k=T,I=A(k,C);return I===void 0?T:I}else{if(Bc(T))return FB(T,function(D){return A(D,C)});var I=A(T,C);if(I===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return T},b)}return g.getInitialState=m,g}function jve(e,t){return e+"/"+t}function xT(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:i8(e.initialState),i=e.reducers||{},o=Object.keys(i),s={},u={},p={};o.forEach(function(g){var b=i[g],C=jve(t,g),w,T;"reducer"in b?(w=b.reducer,T=b.prepare):w=b,s[g]=w,u[C]=w,p[g]=T?mo(C,T):mo(C)});function m(){var g=typeof e.extraReducers=="function"?qB(e.extraReducers):[e.extraReducers],b=g[0],C=b===void 0?{}:b,w=g[1],T=w===void 0?[]:w,A=g[2],k=A===void 0?void 0:A,I=bb(bb({},C),u);return Uve(n,I,T,k)}var v;return{name:t,reducer:function(g,b){return v||(v=m()),v(g,b)},actions:p,caseReducers:s,getInitialState:function(){return v||(v=m()),v.getInitialState()}}}var ST="listenerMiddleware";mo(ST+"/add");mo(ST+"/removeAll");mo(ST+"/remove");nve();var ZB={exports:{}},KB={};/**
* @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=E.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(P){{for(var F=arguments.length,z=new Array(F>1?F-1:0),q=1;q<F;q++)z[q-1]=arguments[q];i("error",P,z)}}function i(P,F,z){{var q=t.ReactDebugCurrentFrame,Y=q.getStackAddendum();Y!==""&&(F+="%s",z=z.concat([Y]));var Q=z.map(function(ie){return String(ie)});Q.unshift("Warning: "+F),Function.prototype.apply.call(console[P],console,Q)}}function o(P,F){return P===F&&(P!==0||1/P===1/F)||P!==P&&F!==F}var s=typeof Object.is=="function"?Object.is:o,u=e.useState,p=e.useEffect,m=e.useLayoutEffect,v=e.useDebugValue,g=!1,b=!1;function C(P,F,z){g||e.startTransition!==void 0&&(g=!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 q=F();if(!b){var Y=F();s(q,Y)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}var Q=u({inst:{value:q,getSnapshot:F}}),ie=Q[0].inst,ae=Q[1];return m(function(){ie.value=q,ie.getSnapshot=F,w(ie)&&ae({inst:ie})},[P,q,F]),p(function(){w(ie)&&ae({inst:ie});var pe=function(){w(ie)&&ae({inst:ie})};return P(pe)},[P]),v(q),q}function w(P){var F=P.getSnapshot,z=P.value;try{var q=F();return!s(z,q)}catch{return!0}}function T(P,F,z){return F()}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k=!A,I=k?T:C,D=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:I;KB.useSyncExternalStore=D,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=KB})(ZB);var XB={exports:{}},QB={};/**
* @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=E.exports,t=ZB.exports;function n(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,u=e.useEffect,p=e.useMemo,m=e.useDebugValue;function v(g,b,C,w,T){var A=s(null),k;A.current===null?(k={hasValue:!1,value:null},A.current=k):k=A.current;var I=p(function(){var z=!1,q,Y,Q=function($e){if(!z){z=!0,q=$e;var te=w($e);if(T!==void 0&&k.hasValue){var ee=k.value;if(T(ee,te))return Y=ee,ee}return Y=te,te}var be=q,Ce=Y;if(i(be,$e))return Ce;var K=w($e);return T!==void 0&&T(Ce,K)?Ce:(q=$e,Y=K,K)},ie=C===void 0?null:C,ae=function(){return Q(b())},pe=ie===null?void 0:function(){return Q(ie())};return[ae,pe]},[b,C,w,T]),D=I[0],P=I[1],F=o(g,D,P);return u(function(){k.hasValue=!0,k.value=F},[F]),m(F),F}QB.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=QB})(XB);function Vve(e){e()}let JB=Vve;const Hve=e=>JB=e,Wve=()=>JB,Uc=_e.createContext(null);Uc.displayName="ReactRedux";function eU(){const e=E.exports.useContext(Uc);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const Gve=()=>{throw new Error("uSES not initialized!")};let tU=Gve;const Yve=e=>{tU=e},qve=(e,t)=>e===t;function Zve(e=Uc){const t=e===Uc?eU:()=>E.exports.useContext(e);return function(i,o=qve){{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:s,subscription:u,getServerState:p}=t(),m=tU(u.addNestedSub,s.getState,p||s.getState,i,o);return E.exports.useDebugValue(m),m}}const Kve=Zve();var Xve={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"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),p=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),T=!1,A=!1,k=!1,I=!1,D=!1,P;P=Symbol.for("react.module.reference");function F(Se){return!!(typeof Se=="string"||typeof Se=="function"||Se===n||Se===o||D||Se===i||Se===v||Se===g||I||Se===w||T||A||k||typeof Se=="object"&&Se!==null&&(Se.$$typeof===C||Se.$$typeof===b||Se.$$typeof===s||Se.$$typeof===u||Se.$$typeof===m||Se.$$typeof===P||Se.getModuleId!==void 0))}function z(Se){if(typeof Se=="object"&&Se!==null){var tt=Se.$$typeof;switch(tt){case e:var Ct=Se.type;switch(Ct){case n:case o:case i:case v:case g:return Ct;default:var nt=Ct&&Ct.$$typeof;switch(nt){case p:case u:case m:case C:case b:case s:return nt;default:return tt}}case t:return tt}}}var q=u,Y=s,Q=e,ie=m,ae=n,pe=C,$e=b,te=t,ee=o,be=i,Ce=v,K=g,le=!1,ve=!1;function de(Se){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(Se){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Le(Se){return z(Se)===u}function Me(Se){return z(Se)===s}function Ze(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function Je(Se){return z(Se)===m}function it(Se){return z(Se)===n}function Rt(Se){return z(Se)===C}function Ve(Se){return z(Se)===b}function at(Se){return z(Se)===t}function St(Se){return z(Se)===o}function Dt(Se){return z(Se)===i}function He(Se){return z(Se)===v}function jt(Se){return z(Se)===g}fr.ContextConsumer=q,fr.ContextProvider=Y,fr.Element=Q,fr.ForwardRef=ie,fr.Fragment=ae,fr.Lazy=pe,fr.Memo=$e,fr.Portal=te,fr.Profiler=ee,fr.StrictMode=be,fr.Suspense=Ce,fr.SuspenseList=K,fr.isAsyncMode=de,fr.isConcurrentMode=we,fr.isContextConsumer=Le,fr.isContextProvider=Me,fr.isElement=Ze,fr.isForwardRef=Je,fr.isFragment=it,fr.isLazy=Rt,fr.isMemo=Ve,fr.isPortal=at,fr.isProfiler=St,fr.isStrictMode=Dt,fr.isSuspense=He,fr.isSuspenseList=jt,fr.isValidElementType=F,fr.typeOf=z})();(function(e){e.exports=fr})(Xve);function Qve(){const e=Wve();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,s=n={callback:i,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){!o||t===null||(o=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}const wD={notify(){},get:()=>[]};function Jve(e,t){let n,i=wD;function o(b){return m(),i.subscribe(b)}function s(){i.notify()}function u(){g.onStateChange&&g.onStateChange()}function p(){return Boolean(n)}function m(){n||(n=t?t.addNestedSub(u):e.subscribe(u),i=Qve())}function v(){n&&(n(),n=void 0,i.clear(),i=wD)}const g={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:p,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>i};return g}const e0e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",t0e=e0e?E.exports.useLayoutEffect:E.exports.useEffect;var n0e="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function r0e({store:e,context:t,children:n,serverState:i}){const o=E.exports.useMemo(()=>{const p=Jve(e);return{store:e,subscription:p,getServerState:i?()=>i:void 0}},[e,i]),s=E.exports.useMemo(()=>e.getState(),[e]);return t0e(()=>{const{subscription:p}=o;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),s!==e.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[o,s]),N((t||Uc).Provider,{value:o,children:n},void 0,!1,{fileName:n0e,lineNumber:39,columnNumber:23},this)}function nU(e=Uc){const t=e===Uc?eU:()=>E.exports.useContext(e);return function(){const{store:i}=t();return i}}const i0e=nU();function a0e(e=Uc){const t=e===Uc?i0e:nU(e);return function(){return t().dispatch}}const o0e=a0e();Yve(XB.exports.useSyncExternalStoreWithSelector);Hve(Wc.exports.unstable_batchedUpdates);var CT="persist:",rU="persist/FLUSH",wT="persist/REHYDRATE",iU="persist/PAUSE",aU="persist/PERSIST",oU="persist/PURGE",sU="persist/REGISTER",s0e=-1;function Zg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zg=function(n){return typeof n}:Zg=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zg(e)}function ND(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 l0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(n,!0).forEach(function(i){u0e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function u0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c0e(e,t,n,i){var o=i.debug,s=l0e({},n);return e&&Zg(e)==="object"&&Object.keys(e).forEach(function(u){if(u!=="_persist"){if(t[u]!==n[u]){o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",u);return}s[u]=e[u]}}),o&&e&&Zg(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function f0e(e){var t=e.blacklist||null,n=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:CT).concat(e.key),u=e.storage,p;e.serialize===!1?p=function(z){return z}:typeof e.serialize=="function"?p=e.serialize:p=d0e;var m=e.writeFailHandler||null,v={},g={},b=[],C=null,w=null,T=function(z){Object.keys(z).forEach(function(q){!I(q)||v[q]!==z[q]&&b.indexOf(q)===-1&&b.push(q)}),Object.keys(v).forEach(function(q){z[q]===void 0&&I(q)&&b.indexOf(q)===-1&&v[q]!==void 0&&b.push(q)}),C===null&&(C=setInterval(A,o)),v=z};function A(){if(b.length===0){C&&clearInterval(C),C=null;return}var F=b.shift(),z=i.reduce(function(q,Y){return Y.in(q,F,v)},v[F]);if(z!==void 0)try{g[F]=p(z)}catch(q){console.error("redux-persist/createPersistoid: error serializing state",q)}else delete g[F];b.length===0&&k()}function k(){Object.keys(g).forEach(function(F){v[F]===void 0&&delete g[F]}),w=u.setItem(s,p(g)).catch(D)}function I(F){return!(n&&n.indexOf(F)===-1&&F!=="_persist"||t&&t.indexOf(F)!==-1)}function D(F){m&&m(F),F&&console.error("Error storing data",F)}var P=function(){for(;b.length!==0;)A();return w||Promise.resolve()};return{update:T,flush:P}}function d0e(e){return JSON.stringify(e)}function p0e(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:CT).concat(e.key),i=e.storage,o=e.debug,s;return e.deserialize===!1?s=function(p){return p}:typeof e.deserialize=="function"?s=e.deserialize:s=m0e,i.getItem(n).then(function(u){if(u)try{var p={},m=s(u);return Object.keys(m).forEach(function(v){p[v]=t.reduceRight(function(g,b){return b.out(g,v,m)},s(m[v]))}),p}catch(v){throw o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(u),v),v}else return})}function m0e(e){return JSON.parse(e)}function h0e(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:CT).concat(e.key);return t.removeItem(n,v0e)}function v0e(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function ED(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 Lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(n,!0).forEach(function(i){g0e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function g0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0e(e,t){if(e==null)return{};var n=y0e(e,t),i,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function y0e(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var x0e=5e3;function lU(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:s0e;e.debug;var i=e.stateReconciler===void 0?c0e:e.stateReconciler,o=e.getStoredState||p0e,s=e.timeout!==void 0?e.timeout:x0e,u=null,p=!1,m=!0,v=function(b){return b._persist.rehydrated&&u&&!m&&u.update(b),b};return function(g,b){var C=g||{},w=C._persist,T=b0e(C,["_persist"]),A=T;if(b.type===aU){var k=!1,I=function(Q,ie){k&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),Q,ie),k||(b.rehydrate(e.key,Q,ie),k=!0)};if(s&&setTimeout(function(){!k&&I(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),m=!1,u||(u=f0e(e)),w)return Lc({},t(A,b),{_persist:w});if(typeof b.rehydrate!="function"||typeof b.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 b.register(e.key),o(e).then(function(Y){var Q=e.migrate||function(ie,ae){return Promise.resolve(ie)};Q(Y,n).then(function(ie){I(ie)},function(ie){ie&&console.error("redux-persist: migration error",ie),I(void 0,ie)})},function(Y){I(void 0,Y)}),Lc({},t(A,b),{_persist:{version:n,rehydrated:!1}})}else{if(b.type===oU)return p=!0,b.result(h0e(e)),Lc({},t(A,b),{_persist:w});if(b.type===rU)return b.result(u&&u.flush()),Lc({},t(A,b),{_persist:w});if(b.type===iU)m=!0;else if(b.type===wT){if(p)return Lc({},A,{_persist:Lc({},w,{rehydrated:!0})});if(b.key===e.key){var D=t(A,b),P=b.payload,F=i!==!1&&P!==void 0?i(P,g,D,e):D,z=Lc({},F,{_persist:Lc({},w,{rehydrated:!0})});return v(z)}}}if(!w)return t(g,b);var q=t(A,b);return q===A?g:v(Lc({},q,{_persist:w}))}}function _D(e){return w0e(e)||C0e(e)||S0e()}function S0e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function C0e(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function w0e(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 TD(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 o8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TD(n,!0).forEach(function(i){N0e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function N0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uU={registry:[],bootstrapped:!1},E0e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uU,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case sU:return o8({},t,{registry:[].concat(_D(t.registry),[n.key])});case wT:var i=t.registry.indexOf(n.key),o=_D(t.registry);return o.splice(i,1),o8({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function _0e(e,t,n){{var i=t||{},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(g){i[g]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(g,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=n||!1,u=yT(E0e,uU,t&&t.enhancer?t.enhancer:void 0),p=function(b){u.dispatch({type:sU,key:b})},m=function(b,C,w){var T={type:wT,payload:C,err:w,key:b};e.dispatch(T),u.dispatch(T),s&&v.getState().bootstrapped&&(s(),s=!1)},v=o8({},u,{purge:function(){var b=[];return e.dispatch({type:oU,result:function(w){b.push(w)}}),Promise.all(b)},flush:function(){var b=[];return e.dispatch({type:rU,result:function(w){b.push(w)}}),Promise.all(b)},pause:function(){e.dispatch({type:iU})},persist:function(){e.dispatch({type:aU,register:p,rehydrate:m})}});return t&&t.manualPersist||v.persist(),v}var NT={},ET={};ET.__esModule=!0;ET.default=A0e;function J5(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J5=function(n){return typeof n}:J5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},J5(e)}function l7(){}var T0e={getItem:l7,setItem:l7,removeItem:l7};function R0e(e){if((typeof self>"u"?"undefined":J5(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 A0e(e){var t="".concat(e,"Storage");return R0e(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),T0e)}NT.__esModule=!0;NT.default=k0e;var O0e=L0e(ET);function L0e(e){return e&&e.__esModule?e:{default:e}}function k0e(e){var t=(0,O0e.default)(e);return{getItem:function(i){return new Promise(function(o,s){o(t.getItem(i))})},setItem:function(i,o){return new Promise(function(s,u){s(t.setItem(i,o))})},removeItem:function(i){return new Promise(function(o,s){o(t.removeItem(i))})}}}var _T=void 0,M0e=D0e(NT);function D0e(e){return e&&e.__esModule?e:{default:e}}var P0e=(0,M0e.default)("local");_T=P0e;const eS=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),I0e=e=>{const i=e.split(",").map(o=>o.split(":")).map(o=>({seed:Number(o[0]),weight:Number(o[1])}));return TT(i)?i:!1},TT=e=>Boolean(typeof e=="string"?I0e(e):e.length&&!e.some(t=>{const{seed:n,weight:i}=t,o=!isNaN(parseInt(n.toString(),10)),s=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(o&&s)})),GS=e=>e.reduce((t,n,i,o)=>{const{seed:s,weight:u}=n;return t+=`${s}:${u}`,i!==o.length-1&&(t+=","),t},""),$0e=e=>e.split(",").map(i=>i.split(":")).map(i=>[parseInt(i[0]),parseFloat(i[1])]),cU={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},F0e=cU,fU=xT({name:"options",initialState:F0e,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=eS(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},setAllTextToImageParameters:(e,t)=>{const{sampler:n,prompt:i,seed:o,variations:s,steps:u,cfg_scale:p,threshold:m,perlin:v,seamless:g,hires_fix:b,width:C,height:w}=t.payload.image;s&&s.length>0?(e.seedWeights=GS(s),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,o&&(e.seed=o,e.shouldRandomizeSeed=!1),i&&(e.prompt=eS(i)),n&&(e.sampler=n),u&&(e.steps=u),p&&(e.cfgScale=p),m&&(e.threshold=m),typeof m>"u"&&(e.threshold=0),v&&(e.perlin=v),typeof v>"u"&&(e.perlin=0),typeof g=="boolean"&&(e.seamless=g),typeof b=="boolean"&&(e.hiresFix=b),C&&(e.width=C),w&&(e.height=w)},setAllImageToImageParameters:(e,t)=>{const{type:n,strength:i,fit:o,init_image_path:s,mask_image_path:u}=t.payload.image;n==="img2img"?(s&&(e.initialImagePath=s),u&&(e.maskPath=u),i&&(e.img2imgStrength=i),typeof o=="boolean"&&(e.shouldFitToWidthHeight=o),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1},setAllParameters:(e,t)=>{const{type:n,sampler:i,prompt:o,seed:s,variations:u,steps:p,cfg_scale:m,threshold:v,perlin:g,seamless:b,hires_fix:C,width:w,height:T,strength:A,fit:k,init_image_path:I,mask_image_path:D}=t.payload.image;n==="img2img"?(I&&(e.initialImagePath=I),D&&(e.maskPath=D),A&&(e.img2imgStrength=A),typeof k=="boolean"&&(e.shouldFitToWidthHeight=k),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,u&&u.length>0?(e.seedWeights=GS(u),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1),o&&(e.prompt=eS(o)),i&&(e.sampler=i),p&&(e.steps=p),m&&(e.cfgScale=m),v&&(e.threshold=v),typeof v>"u"&&(e.threshold=0),g&&(e.perlin=g),typeof g>"u"&&(e.perlin=0),typeof b=="boolean"&&(e.seamless=b),typeof C=="boolean"&&(e.hiresFix=C),w&&(e.width=w),T&&(e.height=T)},resetOptionsState:e=>({...e,...cU}),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:RT,setIterations:z0e,setSteps:dU,setCfgScale:pU,setThreshold:B0e,setPerlin:U0e,setHeight:mU,setWidth:hU,setSampler:vU,setSeed:Yb,setSeamless:gU,setHiresFix:bU,setImg2imgStrength:yU,setFacetoolStrength:tS,setFacetoolType:nS,setCodeformerFidelity:xU,setUpscalingLevel:s8,setUpscalingStrength:l8,setShouldUseInitImage:$Se,setInitialImagePath:ym,setMaskPath:u8,resetSeed:FSe,resetOptionsState:zSe,setShouldFitToWidthHeight:SU,setParameter:BSe,setShouldGenerateVariations:j0e,setSeedWeights:CU,setVariationAmount:V0e,setAllParameters:H0e,setShouldRunFacetool:W0e,setShouldRunESRGAN:G0e,setShouldRandomizeSeed:Y0e,setShowAdvancedOptions:q0e,setActiveTab:Nu,setShouldShowImageDetails:Z0e,setShouldShowGallery:RD,setAllTextToImageParameters:K0e,setAllImageToImageParameters:X0e}=fU.actions,Q0e=fU.reducer;var Ga={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,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",p="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",b=1,C=2,w=4,T=1,A=2,k=1,I=2,D=4,P=8,F=16,z=32,q=64,Y=128,Q=256,ie=512,ae=30,pe="...",$e=800,te=16,ee=1,be=2,Ce=3,K=1/0,le=9007199254740991,ve=17976931348623157e292,de=0/0,we=4294967295,Le=we-1,Me=we>>>1,Ze=[["ary",Y],["bind",k],["bindKey",I],["curry",P],["curryRight",F],["flip",ie],["partial",z],["partialRight",q],["rearg",Q]],Je="[object Arguments]",it="[object Array]",Rt="[object AsyncFunction]",Ve="[object Boolean]",at="[object Date]",St="[object DOMException]",Dt="[object Error]",He="[object Function]",jt="[object GeneratorFunction]",Se="[object Map]",tt="[object Number]",Ct="[object Null]",nt="[object Object]",on="[object Promise]",Ln="[object Proxy]",_t="[object RegExp]",sn="[object Set]",kn="[object String]",bn="[object Symbol]",Ye="[object Undefined]",et="[object WeakMap]",nn="[object WeakSet]",Pt="[object ArrayBuffer]",De="[object DataView]",qt="[object Float32Array]",_n="[object Float64Array]",We="[object Int8Array]",lt="[object Int16Array]",At="[object Int32Array]",vn="[object Uint8Array]",Jt="[object Uint8ClampedArray]",Tn="[object Uint16Array]",$n="[object Uint32Array]",Dr=/\b__p \+= '';/g,Mn=/\b(__p \+=) '' \+/g,wi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jn=/&(?:amp|lt|gt|quot|#39);/g,Rn=/[&<>"']/g,Ni=RegExp(jn.source),xr=RegExp(Rn.source),Bo=/<%-([\s\S]+?)%>/g,gs=/<%([\s\S]+?)%>/g,bs=/<%=([\s\S]+?)%>/g,Uo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jo=/^\w*$/,hr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vi=/[\\^$.*+?()[\]{}|]/g,qa=RegExp(Vi.source),Hi=/^\s+/,X=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xe=/\{\n\/\* \[wrapped with (.+)\] \*/,Et=/,? & /,ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,ot=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vn=/\w*$/,Bn=/^[-+]0x[0-9a-f]+$/i,cn=/^0b[01]+$/i,Wr=/^\[object .+?Constructor\]$/,Ea=/^0o[0-7]+$/i,Vo=/^(?:0|[1-9]\d*)$/,Ei=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,go=/($^)/,Hu=/['\n\r\u2028\u2029\\]/g,_a="\\ud800-\\udfff",al="\\u0300-\\u036f",Za="\\ufe20-\\ufe2f",en="\\u20d0-\\u20ff",Ka=al+Za+en,_i="\\u2700-\\u27bf",Ho="a-z\\xdf-\\xf6\\xf8-\\xff",ys="\\xac\\xb1\\xd7\\xf7",Wo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xs="\\u2000-\\u206f",Ss=" \\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",Go="A-Z\\xc0-\\xd6\\xd8-\\xde",Yo="\\ufe0e\\ufe0f",Cs=ys+Wo+xs+Ss,ol="['\u2019]",sl="["+_a+"]",Ta="["+Cs+"]",Br="["+Ka+"]",Wi="\\d+",Ti="["+_i+"]",Gi="["+Ho+"]",ws="[^"+_a+Cs+Wi+_i+Ho+Go+"]",qo="\\ud83c[\\udffb-\\udfff]",Ns="(?:"+Br+"|"+qo+")",Yl="[^"+_a+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",Zo="[\\ud800-\\udbff][\\udc00-\\udfff]",Yi="["+Go+"]",Ra="\\u200d",ll="(?:"+Gi+"|"+ws+")",fn="(?:"+Yi+"|"+ws+")",Aa="(?:"+ol+"(?:d|ll|m|re|s|t|ve))?",Ko="(?:"+ol+"(?:D|LL|M|RE|S|T|VE))?",Ht=Ns+"?",ul="["+Yo+"]?",Sr="(?:"+Ra+"(?:"+[Yl,Ri,Zo].join("|")+")"+ul+Ht+")*",Xa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",na="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bo=ul+Ht+Sr,Or="(?:"+[Ti,Ri,Zo].join("|")+")"+bo,ar="(?:"+[Yl+Br+"?",Br,Ri,Zo,sl].join("|")+")",Xo=RegExp(ol,"g"),Jr=RegExp(Br,"g"),mr=RegExp(qo+"(?="+qo+")|"+ar+bo,"g"),li=RegExp([Yi+"?"+Gi+"+"+Aa+"(?="+[Ta,Yi,"$"].join("|")+")",fn+"+"+Ko+"(?="+[Ta,Yi+ll,"$"].join("|")+")",Yi+"?"+ll+"+"+Aa,Yi+"+"+Ko,na,Xa,Wi,Or].join("|"),"g"),Wu=RegExp("["+Ra+_a+Ka+Yo+"]"),yo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Oa=["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"],cl=-1,gn={};gn[qt]=gn[_n]=gn[We]=gn[lt]=gn[At]=gn[vn]=gn[Jt]=gn[Tn]=gn[$n]=!0,gn[Je]=gn[it]=gn[Pt]=gn[Ve]=gn[De]=gn[at]=gn[Dt]=gn[He]=gn[Se]=gn[tt]=gn[nt]=gn[_t]=gn[sn]=gn[kn]=gn[et]=!1;var Fn={};Fn[Je]=Fn[it]=Fn[Pt]=Fn[De]=Fn[Ve]=Fn[at]=Fn[qt]=Fn[_n]=Fn[We]=Fn[lt]=Fn[At]=Fn[Se]=Fn[tt]=Fn[nt]=Fn[_t]=Fn[sn]=Fn[kn]=Fn[bn]=Fn[vn]=Fn[Jt]=Fn[Tn]=Fn[$n]=!0,Fn[Dt]=Fn[He]=Fn[et]=!1;var ql={\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"},qi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ge=parseFloat,ut=parseInt,dn=typeof Dc=="object"&&Dc&&Dc.Object===Object&&Dc,zn=typeof self=="object"&&self&&self.Object===Object&&self,Kt=dn||zn||Function("return this")(),S=t&&!t.nodeType&&t,L=S&&!0&&e&&!e.nodeType&&e,V=L&&L.exports===S,G=V&&dn.process,se=function(){try{var ce=L&&L.require&&L.require("util").types;return ce||G&&G.binding&&G.binding("util")}catch{}}(),ze=se&&se.isArrayBuffer,Ee=se&&se.isDate,Ge=se&&se.isMap,ct=se&&se.isRegExp,wt=se&&se.isSet,It=se&&se.isTypedArray;function yt(ce,Ae,Ne){switch(Ne.length){case 0:return ce.call(Ae);case 1:return ce.call(Ae,Ne[0]);case 2:return ce.call(Ae,Ne[0],Ne[1]);case 3:return ce.call(Ae,Ne[0],Ne[1],Ne[2])}return ce.apply(Ae,Ne)}function Wt(ce,Ae,Ne,vt){for(var rn=-1,Zn=ce==null?0:ce.length;++rn<Zn;){var ei=ce[rn];Ae(vt,ei,Ne(ei),ce)}return vt}function Ot(ce,Ae){for(var Ne=-1,vt=ce==null?0:ce.length;++Ne<vt&&Ae(ce[Ne],Ne,ce)!==!1;);return ce}function Ut(ce,Ae){for(var Ne=ce==null?0:ce.length;Ne--&&Ae(ce[Ne],Ne,ce)!==!1;);return ce}function La(ce,Ae){for(var Ne=-1,vt=ce==null?0:ce.length;++Ne<vt;)if(!Ae(ce[Ne],Ne,ce))return!1;return!0}function Ai(ce,Ae){for(var Ne=-1,vt=ce==null?0:ce.length,rn=0,Zn=[];++Ne<vt;){var ei=ce[Ne];Ae(ei,Ne,ce)&&(Zn[rn++]=ei)}return Zn}function Qo(ce,Ae){var Ne=ce==null?0:ce.length;return!!Ne&&Yu(ce,Ae,0)>-1}function Gu(ce,Ae,Ne){for(var vt=-1,rn=ce==null?0:ce.length;++vt<rn;)if(Ne(Ae,ce[vt]))return!0;return!1}function Dn(ce,Ae){for(var Ne=-1,vt=ce==null?0:ce.length,rn=Array(vt);++Ne<vt;)rn[Ne]=Ae(ce[Ne],Ne,ce);return rn}function ka(ce,Ae){for(var Ne=-1,vt=Ae.length,rn=ce.length;++Ne<vt;)ce[rn+Ne]=Ae[Ne];return ce}function Es(ce,Ae,Ne,vt){var rn=-1,Zn=ce==null?0:ce.length;for(vt&&Zn&&(Ne=ce[++rn]);++rn<Zn;)Ne=Ae(Ne,ce[rn],rn,ce);return Ne}function _d(ce,Ae,Ne,vt){var rn=ce==null?0:ce.length;for(vt&&rn&&(Ne=ce[--rn]);rn--;)Ne=Ae(Ne,ce[rn],rn,ce);return Ne}function i0(ce,Ae){for(var Ne=-1,vt=ce==null?0:ce.length;++Ne<vt;)if(Ae(ce[Ne],Ne,ce))return!0;return!1}var Z3=Rd("length");function Qb(ce){return ce.split("")}function a0(ce){return ce.match(ln)||[]}function o0(ce,Ae,Ne){var vt;return Ne(ce,function(rn,Zn,ei){if(Ae(rn,Zn,ei))return vt=Zn,!1}),vt}function Td(ce,Ae,Ne,vt){for(var rn=ce.length,Zn=Ne+(vt?1:-1);vt?Zn--:++Zn<rn;)if(Ae(ce[Zn],Zn,ce))return Zn;return-1}function Yu(ce,Ae,Ne){return Ae===Ae?u0(ce,Ae,Ne):Td(ce,_s,Ne)}function K3(ce,Ae,Ne,vt){for(var rn=Ne-1,Zn=ce.length;++rn<Zn;)if(vt(ce[rn],Ae))return rn;return-1}function _s(ce){return ce!==ce}function Jb(ce,Ae){var Ne=ce==null?0:ce.length;return Ne?qc(ce,Ae)/Ne:de}function Rd(ce){return function(Ae){return Ae==null?n:Ae[ce]}}function Ad(ce){return function(Ae){return ce==null?n:ce[Ae]}}function Om(ce,Ae,Ne,vt,rn){return rn(ce,function(Zn,ei,Jn){Ne=vt?(vt=!1,Zn):Ae(Ne,Zn,ei,Jn)}),Ne}function X3(ce,Ae){var Ne=ce.length;for(ce.sort(Ae);Ne--;)ce[Ne]=ce[Ne].value;return ce}function qc(ce,Ae){for(var Ne,vt=-1,rn=ce.length;++vt<rn;){var Zn=Ae(ce[vt]);Zn!==n&&(Ne=Ne===n?Zn:Ne+Zn)}return Ne}function Lm(ce,Ae){for(var Ne=-1,vt=Array(ce);++Ne<ce;)vt[Ne]=Ae(Ne);return vt}function Ma(ce,Ae){return Dn(Ae,function(Ne){return[Ne,ce[Ne]]})}function Ts(ce){return ce&&ce.slice(0,iy(ce)+1).replace(Hi,"")}function Hn(ce){return function(Ae){return ce(Ae)}}function Jo(ce,Ae){return Dn(Ae,function(Ne){return ce[Ne]})}function qu(ce,Ae){return ce.has(Ae)}function Od(ce,Ae){for(var Ne=-1,vt=ce.length;++Ne<vt&&Yu(Ae,ce[Ne],0)>-1;);return Ne}function ey(ce,Ae){for(var Ne=ce.length;Ne--&&Yu(Ae,ce[Ne],0)>-1;);return Ne}function Ld(ce,Ae){for(var Ne=ce.length,vt=0;Ne--;)ce[Ne]===Ae&&++vt;return vt}var Q3=Ad(ql),J3=Ad(qi);function s0(ce){return"\\"+ne[ce]}function e4(ce,Ae){return ce==null?n:ce[Ae]}function Zc(ce){return Wu.test(ce)}function t4(ce){return yo.test(ce)}function ty(ce){for(var Ae,Ne=[];!(Ae=ce.next()).done;)Ne.push(Ae.value);return Ne}function l0(ce){var Ae=-1,Ne=Array(ce.size);return ce.forEach(function(vt,rn){Ne[++Ae]=[rn,vt]}),Ne}function ny(ce,Ae){return function(Ne){return ce(Ae(Ne))}}function Zl(ce,Ae){for(var Ne=-1,vt=ce.length,rn=0,Zn=[];++Ne<vt;){var ei=ce[Ne];(ei===Ae||ei===g)&&(ce[Ne]=g,Zn[rn++]=Ne)}return Zn}function kd(ce){var Ae=-1,Ne=Array(ce.size);return ce.forEach(function(vt){Ne[++Ae]=vt}),Ne}function Kc(ce){var Ae=-1,Ne=Array(ce.size);return ce.forEach(function(vt){Ne[++Ae]=[vt,vt]}),Ne}function u0(ce,Ae,Ne){for(var vt=Ne-1,rn=ce.length;++vt<rn;)if(ce[vt]===Ae)return vt;return-1}function ry(ce,Ae,Ne){for(var vt=Ne+1;vt--;)if(ce[vt]===Ae)return vt;return vt}function Zu(ce){return Zc(ce)?r4(ce):Z3(ce)}function es(ce){return Zc(ce)?i4(ce):Qb(ce)}function iy(ce){for(var Ae=ce.length;Ae--&&X.test(ce.charAt(Ae)););return Ae}var n4=Ad(W);function r4(ce){for(var Ae=mr.lastIndex=0;mr.test(ce);)++Ae;return Ae}function i4(ce){return ce.match(mr)||[]}function a4(ce){return ce.match(li)||[]}var o4=function ce(Ae){Ae=Ae==null?Kt:Xc.defaults(Kt.Object(),Ae,Xc.pick(Kt,Oa));var Ne=Ae.Array,vt=Ae.Date,rn=Ae.Error,Zn=Ae.Function,ei=Ae.Math,Jn=Ae.Object,fl=Ae.RegExp,km=Ae.String,Qa=Ae.TypeError,dl=Ne.prototype,s4=Zn.prototype,Qc=Jn.prototype,Mm=Ae["__core-js_shared__"],Dm=s4.toString,er=Qc.hasOwnProperty,ay=0,oy=function(){var c=/[^.]+$/.exec(Mm&&Mm.keys&&Mm.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Md=Qc.toString,ra=Dm.call(Jn),sy=Kt._,l4=fl("^"+Dm.call(er).replace(Vi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pm=V?Ae.Buffer:n,Kl=Ae.Symbol,Im=Ae.Uint8Array,ly=Pm?Pm.allocUnsafe:n,Dd=ny(Jn.getPrototypeOf,Jn),$m=Jn.create,Jc=Qc.propertyIsEnumerable,Fm=dl.splice,ef=Kl?Kl.isConcatSpreadable:n,Pd=Kl?Kl.iterator:n,Ku=Kl?Kl.toStringTag:n,zm=function(){try{var c=tu(Jn,"defineProperty");return c({},"",{}),c}catch{}}(),c0=Ae.clearTimeout!==Kt.clearTimeout&&Ae.clearTimeout,f0=vt&&vt.now!==Kt.Date.now&&vt.now,tf=Ae.setTimeout!==Kt.setTimeout&&Ae.setTimeout,pl=ei.ceil,Id=ei.floor,d0=Jn.getOwnPropertySymbols,uy=Pm?Pm.isBuffer:n,cy=Ae.isFinite,fy=dl.join,dy=ny(Jn.keys,Jn),Gr=ei.max,ui=ei.min,u4=vt.now,py=Ae.parseInt,my=ei.random,c4=dl.reverse,p0=tu(Ae,"DataView"),ml=tu(Ae,"Map"),$d=tu(Ae,"Promise"),Rs=tu(Ae,"Set"),nf=tu(Ae,"WeakMap"),rf=tu(Jn,"create"),af=nf&&new nf,of={},sf=uc(p0),Bm=uc(ml),Um=uc($d),m0=uc(Rs),f4=uc(nf),lf=Kl?Kl.prototype:n,Fd=lf?lf.valueOf:n,hy=lf?lf.toString:n;function B(c){if(kr(c)&&!un(c)&&!(c instanceof An)){if(c instanceof xo)return c;if(er.call(c,"__wrapped__"))return Gy(c)}return new xo(c)}var Xl=function(){function c(){}return function(d){if(!wr(d))return{};if($m)return $m(d);c.prototype=d;var y=new c;return c.prototype=n,y}}();function hl(){}function xo(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}B.templateSettings={escape:Bo,evaluate:gs,interpolate:bs,variable:"",imports:{_:B}},B.prototype=hl.prototype,B.prototype.constructor=B,xo.prototype=Xl(hl.prototype),xo.prototype.constructor=xo;function An(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function Bt(){var c=new An(this.__wrapped__);return c.__actions__=fi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=fi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=fi(this.__views__),c}function uf(){if(this.__filtered__){var c=new An(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Yr(){var c=this.__wrapped__.value(),d=this.__dir__,y=un(c),R=d<0,$=y?c.length:0,j=oh(0,$,this.__views__),Z=j.start,J=j.end,fe=J-Z,Pe=R?J:Z-1,Oe=this.__iteratees__,Ie=Oe.length,Qe=0,gt=ui(fe,this.__takeCount__);if(!y||!R&&$==fe&&gt==fe)return Zm(c,this.__actions__);var zt=[];e:for(;fe--&&Qe<gt;){Pe+=d;for(var hn=-1,Vt=c[Pe];++hn<Ie;){var xn=Oe[hn],On=xn.iteratee,Xi=xn.type,gr=On(Vt);if(Xi==be)Vt=gr;else if(!gr){if(Xi==ee)continue e;break e}}zt[Qe++]=Vt}return zt}An.prototype=Xl(hl.prototype),An.prototype.constructor=An;function pn(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var R=c[d];this.set(R[0],R[1])}}function Xu(){this.__data__=rf?rf(null):{},this.size=0}function zd(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function h0(c){var d=this.__data__;if(rf){var y=d[c];return y===m?n:y}return er.call(d,c)?d[c]:n}function Un(c){var d=this.__data__;return rf?d[c]!==n:er.call(d,c)}function vl(c,d){var y=this.__data__;return this.size+=this.has(c)?0:1,y[c]=rf&&d===n?m:d,this}pn.prototype.clear=Xu,pn.prototype.delete=zd,pn.prototype.get=h0,pn.prototype.has=Un,pn.prototype.set=vl;function Zi(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var R=c[d];this.set(R[0],R[1])}}function Qu(){this.__data__=[],this.size=0}function ts(c){var d=this.__data__,y=Wm(d,c);if(y<0)return!1;var R=d.length-1;return y==R?d.pop():Fm.call(d,y,1),--this.size,!0}function gl(c){var d=this.__data__,y=Wm(d,c);return y<0?n:d[y][1]}function Ju(c){return Wm(this.__data__,c)>-1}function jm(c,d){var y=this.__data__,R=Wm(y,c);return R<0?(++this.size,y.push([c,d])):y[R][1]=d,this}Zi.prototype.clear=Qu,Zi.prototype.delete=ts,Zi.prototype.get=gl,Zi.prototype.has=Ju,Zi.prototype.set=jm;function bl(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var R=c[d];this.set(R[0],R[1])}}function d4(){this.size=0,this.__data__={hash:new pn,map:new(ml||Zi),string:new pn}}function Bd(c){var d=ih(this,c).delete(c);return this.size-=d?1:0,d}function ia(c){return ih(this,c).get(c)}function v0(c){return ih(this,c).has(c)}function vy(c,d){var y=ih(this,c),R=y.size;return y.set(c,d),this.size+=y.size==R?0:1,this}bl.prototype.clear=d4,bl.prototype.delete=Bd,bl.prototype.get=ia,bl.prototype.has=v0,bl.prototype.set=vy;function yl(c){var d=-1,y=c==null?0:c.length;for(this.__data__=new bl;++d<y;)this.add(c[d])}function ec(c){return this.__data__.set(c,m),this}function g0(c){return this.__data__.has(c)}yl.prototype.add=yl.prototype.push=ec,yl.prototype.has=g0;function ti(c){var d=this.__data__=new Zi(c);this.size=d.size}function Vm(){this.__data__=new Zi,this.size=0}function b0(c){var d=this.__data__,y=d.delete(c);return this.size=d.size,y}function y0(c){return this.__data__.get(c)}function Ud(c){return this.__data__.has(c)}function cf(c,d){var y=this.__data__;if(y instanceof Zi){var R=y.__data__;if(!ml||R.length<o-1)return R.push([c,d]),this.size=++y.size,this;y=this.__data__=new bl(R)}return y.set(c,d),this.size=y.size,this}ti.prototype.clear=Vm,ti.prototype.delete=b0,ti.prototype.get=y0,ti.prototype.has=Ud,ti.prototype.set=cf;function As(c,d){var y=un(c),R=!y&&fc(c),$=!y&&!R&&zs(c),j=!y&&!R&&!$&&au(c),Z=y||R||$||j,J=Z?Lm(c.length,km):[],fe=J.length;for(var Pe in c)(d||er.call(c,Pe))&&!(Z&&(Pe=="length"||$&&(Pe=="offset"||Pe=="parent")||j&&(Pe=="buffer"||Pe=="byteLength"||Pe=="byteOffset")||Is(Pe,fe)))&&J.push(Pe);return J}function gy(c){var d=c.length;return d?c[So(0,d-1)]:n}function tc(c,d){return lh(fi(c),Ql(d,0,c.length))}function by(c){return lh(fi(c))}function Hm(c,d,y){(y!==n&&!rs(c[d],y)||y===n&&!(d in c))&&Os(c,d,y)}function jd(c,d,y){var R=c[d];(!(er.call(c,d)&&rs(R,y))||y===n&&!(d in c))&&Os(c,d,y)}function Wm(c,d){for(var y=c.length;y--;)if(rs(c[y][0],d))return y;return-1}function yy(c,d,y,R){return Jl(c,function($,j,Z){d(R,$,y($),Z)}),R}function x0(c,d){return c&&Ki(d,mi(d),c)}function xy(c,d){return c&&Ki(d,$a(d),c)}function Os(c,d,y){d=="__proto__"&&zm?zm(c,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):c[d]=y}function S0(c,d){for(var y=-1,R=d.length,$=Ne(R),j=c==null;++y<R;)$[y]=j?n:m1(c,d[y]);return $}function Ql(c,d,y){return c===c&&(y!==n&&(c=c<=y?c:y),d!==n&&(c=c>=d?c:d)),c}function Ja(c,d,y,R,$,j){var Z,J=d&b,fe=d&C,Pe=d&w;if(y&&(Z=$?y(c,R,$,j):y(c)),Z!==n)return Z;if(!wr(c))return c;var Oe=un(c);if(Oe){if(Z=di(c),!J)return fi(c,Z)}else{var Ie=Cr(c),Qe=Ie==He||Ie==jt;if(zs(c))return Qm(c,J);if(Ie==nt||Ie==Je||Qe&&!$){if(Z=fe||Qe?{}:By(c),!J)return fe?w4(c,xy(Z,c)):no(c,x0(Z,c))}else{if(!Fn[Ie])return $?c:{};Z=_4(c,Ie,J)}}j||(j=new ti);var gt=j.get(c);if(gt)return gt;j.set(c,Z),c1(c)?c.forEach(function(Vt){Z.add(Ja(Vt,d,y,Vt,c,j))}):u1(c)&&c.forEach(function(Vt,xn){Z.set(xn,Ja(Vt,d,y,xn,c,j))});var zt=Pe?fe?lc:np:fe?$a:mi,hn=Oe?n:zt(c);return Ot(hn||c,function(Vt,xn){hn&&(xn=Vt,Vt=c[xn]),jd(Z,xn,Ja(Vt,d,y,xn,c,j))}),Z}function p4(c){var d=mi(c);return function(y){return Sy(y,c,d)}}function Sy(c,d,y){var R=y.length;if(c==null)return!R;for(c=Jn(c);R--;){var $=y[R],j=d[$],Z=c[$];if(Z===n&&!($ in c)||!j(Z))return!1}return!0}function Cy(c,d,y){if(typeof c!="function")throw new Qa(u);return Nl(function(){c.apply(n,y)},d)}function Pr(c,d,y,R){var $=-1,j=Qo,Z=!0,J=c.length,fe=[],Pe=d.length;if(!J)return fe;y&&(d=Dn(d,Hn(y))),R?(j=Gu,Z=!1):d.length>=o&&(j=qu,Z=!1,d=new yl(d));e:for(;++$<J;){var Oe=c[$],Ie=y==null?Oe:y(Oe);if(Oe=R||Oe!==0?Oe:0,Z&&Ie===Ie){for(var Qe=Pe;Qe--;)if(d[Qe]===Ie)continue e;fe.push(Oe)}else j(d,Ie,R)||fe.push(Oe)}return fe}var Jl=Xd(vr),Vd=Xd(st,!0);function C0(c,d){var y=!0;return Jl(c,function(R,$,j){return y=!!d(R,$,j),y}),y}function Ls(c,d,y){for(var R=-1,$=c.length;++R<$;){var j=c[R],Z=d(j);if(Z!=null&&(J===n?Z===Z&&!Nn(Z):y(Z,J)))var J=Z,fe=j}return fe}function m4(c,d,y,R){var $=c.length;for(y=an(y),y<0&&(y=-y>$?0:$+y),R=R===n||R>$?$:an(R),R<0&&(R+=$),R=y>R?0:pc(R);y<R;)c[y++]=d;return c}function Gm(c,d){var y=[];return Jl(c,function(R,$,j){d(R,$,j)&&y.push(R)}),y}function Oi(c,d,y,R,$){var j=-1,Z=c.length;for(y||(y=j0),$||($=[]);++j<Z;){var J=c[j];d>0&&y(J)?d>1?Oi(J,d-1,y,R,$):ka($,J):R||($[$.length]=J)}return $}var w0=bf(),nc=bf(!0);function vr(c,d){return c&&w0(c,d,mi)}function st(c,d){return c&&nc(c,d,mi)}function eo(c,d){return Ai(d,function(y){return Bs(c[y])})}function Li(c,d){d=Ms(d,c);for(var y=0,R=d.length;c!=null&&y<R;)c=c[Pa(d[y++])];return y&&y==R?c:n}function wy(c,d,y){var R=d(c);return un(c)?R:ka(R,y(c))}function aa(c){return c==null?c===n?Ye:Ct:Ku&&Ku in Jn(c)?zy(c):G0(c)}function N0(c,d){return c>d}function h4(c,d){return c!=null&&er.call(c,d)}function v4(c,d){return c!=null&&d in Jn(c)}function ci(c,d,y){return c>=ui(d,y)&&c<Gr(d,y)}function E0(c,d,y){for(var R=y?Gu:Qo,$=c[0].length,j=c.length,Z=j,J=Ne(j),fe=1/0,Pe=[];Z--;){var Oe=c[Z];Z&&d&&(Oe=Dn(Oe,Hn(d))),fe=ui(Oe.length,fe),J[Z]=!y&&(d||$>=120&&Oe.length>=120)?new yl(Z&&Oe):n}Oe=c[0];var Ie=-1,Qe=J[0];e:for(;++Ie<$&&Pe.length<fe;){var gt=Oe[Ie],zt=d?d(gt):gt;if(gt=y||gt!==0?gt:0,!(Qe?qu(Qe,zt):R(Pe,zt,y))){for(Z=j;--Z;){var hn=J[Z];if(!(hn?qu(hn,zt):R(c[Z],zt,y)))continue e}Qe&&Qe.push(zt),Pe.push(gt)}}return Pe}function g4(c,d,y,R){return vr(c,function($,j,Z){d(R,y($),j,Z)}),R}function Hd(c,d,y){d=Ms(d,c),c=wl(c,d);var R=c==null?c:c[Pa(wo(d))];return R==null?n:yt(R,c,y)}function _0(c){return kr(c)&&aa(c)==Je}function Wd(c){return kr(c)&&aa(c)==Pt}function ff(c){return kr(c)&&aa(c)==at}function Gd(c,d,y,R,$){return c===d?!0:c==null||d==null||!kr(c)&&!kr(d)?c!==c&&d!==d:b4(c,d,y,R,Gd,$)}function b4(c,d,y,R,$,j){var Z=un(c),J=un(d),fe=Z?it:Cr(c),Pe=J?it:Cr(d);fe=fe==Je?nt:fe,Pe=Pe==Je?nt:Pe;var Oe=fe==nt,Ie=Pe==nt,Qe=fe==Pe;if(Qe&&zs(c)){if(!zs(d))return!1;Z=!0,Oe=!1}if(Qe&&!Oe)return j||(j=new ti),Z||au(c)?tp(c,d,y,R,$,j):Fy(c,d,fe,y,R,$,j);if(!(y&T)){var gt=Oe&&er.call(c,"__wrapped__"),zt=Ie&&er.call(d,"__wrapped__");if(gt||zt){var hn=gt?c.value():c,Vt=zt?d.value():d;return j||(j=new ti),$(hn,Vt,y,R,j)}}return Qe?(j||(j=new ti),GT(c,d,y,R,$,j)):!1}function y4(c){return kr(c)&&Cr(c)==Se}function T0(c,d,y,R){var $=y.length,j=$,Z=!R;if(c==null)return!j;for(c=Jn(c);$--;){var J=y[$];if(Z&&J[2]?J[1]!==c[J[0]]:!(J[0]in c))return!1}for(;++$<j;){J=y[$];var fe=J[0],Pe=c[fe],Oe=J[1];if(Z&&J[2]){if(Pe===n&&!(fe in c))return!1}else{var Ie=new ti;if(R)var Qe=R(Pe,Oe,fe,c,d,Ie);if(!(Qe===n?Gd(Oe,Pe,T|A,R,Ie):Qe))return!1}}return!0}function Ny(c){if(!wr(c)||H0(c))return!1;var d=Bs(c)?l4:Wr;return d.test(uc(c))}function x4(c){return kr(c)&&aa(c)==_t}function Ey(c){return kr(c)&&Cr(c)==sn}function _y(c){return kr(c)&&yp(c.length)&&!!gn[aa(c)]}function Ty(c){return typeof c=="function"?c:c==null?Fa:typeof c=="object"?un(c)?O0(c[0],c[1]):Ay(c):Rp(c)}function R0(c){if(!Cf(c))return dy(c);var d=[];for(var y in Jn(c))er.call(c,y)&&y!="constructor"&&d.push(y);return d}function S4(c){if(!wr(c))return L4(c);var d=Cf(c),y=[];for(var R in c)R=="constructor"&&(d||!er.call(c,R))||y.push(R);return y}function A0(c,d){return c<d}function Ry(c,d){var y=-1,R=ri(c)?Ne(c.length):[];return Jl(c,function($,j,Z){R[++y]=d($,j,Z)}),R}function Ay(c){var d=ah(c);return d.length==1&&d[0][2]?W0(d[0][0],d[0][1]):function(y){return y===c||T0(y,c,d)}}function O0(c,d){return sh(c)&&Uy(d)?W0(Pa(c),d):function(y){var R=m1(y,c);return R===n&&R===d?Lf(y,c):Gd(d,R,T|A)}}function Ym(c,d,y,R,$){c!==d&&w0(d,function(j,Z){if($||($=new ti),wr(j))Oy(c,d,Z,y,Ym,R,$);else{var J=R?R($s(c,Z),j,Z+"",c,d,$):n;J===n&&(J=j),Hm(c,Z,J)}},$a)}function Oy(c,d,y,R,$,j,Z){var J=$s(c,y),fe=$s(d,y),Pe=Z.get(fe);if(Pe){Hm(c,y,Pe);return}var Oe=j?j(J,fe,y+"",c,d,Z):n,Ie=Oe===n;if(Ie){var Qe=un(fe),gt=!Qe&&zs(fe),zt=!Qe&&!gt&&au(fe);Oe=fe,Qe||gt||zt?un(J)?Oe=J:Lr(J)?Oe=fi(J):gt?(Ie=!1,Oe=Qm(fe,!0)):zt?(Ie=!1,Oe=Jm(fe,!0)):Oe=[]:dc(fe)||fc(fe)?(Oe=J,fc(J)?Oe=d1(J):(!wr(J)||Bs(J))&&(Oe=By(fe))):Ie=!1}Ie&&(Z.set(fe,Oe),$(Oe,fe,R,j,Z),Z.delete(fe)),Hm(c,y,Oe)}function Ly(c,d){var y=c.length;if(!!y)return d+=d<0?y:0,Is(d,y)?c[d]:n}function ky(c,d,y){d.length?d=Dn(d,function(j){return un(j)?function(Z){return Li(Z,j.length===1?j[0]:j)}:j}):d=[Fa];var R=-1;d=Dn(d,Hn(Ft()));var $=Ry(c,function(j,Z,J){var fe=Dn(d,function(Pe){return Pe(j)});return{criteria:fe,index:++R,value:j}});return X3($,function(j,Z){return Dy(j,Z,y)})}function L0(c,d){return $t(c,d,function(y,R){return Lf(c,R)})}function $t(c,d,y){for(var R=-1,$=d.length,j={};++R<$;){var Z=d[R],J=Li(c,Z);y(J,Z)&&Fe(j,Ms(Z,c),J)}return j}function wn(c){return function(d){return Li(d,c)}}function Wn(c,d,y,R){var $=R?K3:Yu,j=-1,Z=d.length,J=c;for(c===d&&(d=fi(d)),y&&(J=Dn(c,Hn(y)));++j<Z;)for(var fe=0,Pe=d[j],Oe=y?y(Pe):Pe;(fe=$(J,Oe,fe,R))>-1;)J!==c&&Fm.call(J,fe,1),Fm.call(c,fe,1);return c}function Ur(c,d){for(var y=c?d.length:0,R=y-1;y--;){var $=d[y];if(y==R||$!==j){var j=$;Is($)?Fm.call(c,$,1):Yd(c,$)}}return c}function So(c,d){return c+Id(my()*(d-c+1))}function My(c,d,y,R){for(var $=-1,j=Gr(pl((d-c)/(y||1)),0),Z=Ne(j);j--;)Z[R?j:++$]=c,c+=y;return Z}function k0(c,d){var y="";if(!c||d<1||d>le)return y;do d%2&&(y+=c),d=Id(d/2),d&&(c+=c);while(d);return y}function yn(c,d){return Fs(ap(c,d,Fa),c+"")}function C4(c){return gy(kf(c))}function M0(c,d){var y=kf(c);return lh(y,Ql(d,0,y.length))}function Fe(c,d,y,R){if(!wr(c))return c;d=Ms(d,c);for(var $=-1,j=d.length,Z=j-1,J=c;J!=null&&++$<j;){var fe=Pa(d[$]),Pe=y;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return c;if($!=Z){var Oe=J[fe];Pe=R?R(Oe,fe,J):n,Pe===n&&(Pe=wr(Oe)?Oe:Is(d[$+1])?[]:{})}jd(J,fe,Pe),J=J[fe]}return c}var ni=af?function(c,d){return af.set(c,d),c}:Fa,Yt=zm?function(c,d){return zm(c,"toString",{configurable:!0,enumerable:!1,value:E1(d),writable:!0})}:Fa;function df(c){return lh(kf(c))}function qr(c,d,y){var R=-1,$=c.length;d<0&&(d=-d>$?0:$+d),y=y>$?$:y,y<0&&(y+=$),$=d>y?0:y-d>>>0,d>>>=0;for(var j=Ne($);++R<$;)j[R]=c[R+d];return j}function rc(c,d){var y;return Jl(c,function(R,$,j){return y=d(R,$,j),!y}),!!y}function to(c,d,y){var R=0,$=c==null?R:c.length;if(typeof d=="number"&&d===d&&$<=Me){for(;R<$;){var j=R+$>>>1,Z=c[j];Z!==null&&!Nn(Z)&&(y?Z<=d:Z<d)?R=j+1:$=j}return $}return ic(c,d,Fa,y)}function ic(c,d,y,R){var $=0,j=c==null?0:c.length;if(j===0)return 0;d=y(d);for(var Z=d!==d,J=d===null,fe=Nn(d),Pe=d===n;$<j;){var Oe=Id(($+j)/2),Ie=y(c[Oe]),Qe=Ie!==n,gt=Ie===null,zt=Ie===Ie,hn=Nn(Ie);if(Z)var Vt=R||zt;else Pe?Vt=zt&&(R||Qe):J?Vt=zt&&Qe&&(R||!gt):fe?Vt=zt&&Qe&&!gt&&(R||!hn):gt||hn?Vt=!1:Vt=R?Ie<=d:Ie<d;Vt?$=Oe+1:j=Oe}return ui(j,Le)}function ac(c,d){for(var y=-1,R=c.length,$=0,j=[];++y<R;){var Z=c[y],J=d?d(Z):Z;if(!y||!rs(J,fe)){var fe=J;j[$++]=Z===0?0:Z}}return j}function pf(c){return typeof c=="number"?c:Nn(c)?de:+c}function oa(c){if(typeof c=="string")return c;if(un(c))return Dn(c,oa)+"";if(Nn(c))return hy?hy.call(c):"";var d=c+"";return d=="0"&&1/c==-K?"-0":d}function ks(c,d,y){var R=-1,$=Qo,j=c.length,Z=!0,J=[],fe=J;if(y)Z=!1,$=Gu;else if(j>=o){var Pe=d?null:ep(c);if(Pe)return kd(Pe);Z=!1,$=qu,fe=new yl}else fe=d?[]:J;e:for(;++R<j;){var Oe=c[R],Ie=d?d(Oe):Oe;if(Oe=y||Oe!==0?Oe:0,Z&&Ie===Ie){for(var Qe=fe.length;Qe--;)if(fe[Qe]===Ie)continue e;d&&fe.push(Ie),J.push(Oe)}else $(fe,Ie,y)||(fe!==J&&fe.push(Ie),J.push(Oe))}return J}function Yd(c,d){return d=Ms(d,c),c=wl(c,d),c==null||delete c[Pa(wo(d))]}function qm(c,d,y,R){return Fe(c,d,y(Li(c,d)),R)}function mf(c,d,y,R){for(var $=c.length,j=R?$:-1;(R?j--:++j<$)&&d(c[j],j,c););return y?qr(c,R?0:j,R?j+1:$):qr(c,R?j+1:0,R?$:j)}function Zm(c,d){var y=c;return y instanceof An&&(y=y.value()),Es(d,function(R,$){return $.func.apply($.thisArg,ka([R],$.args))},y)}function qd(c,d,y){var R=c.length;if(R<2)return R?ks(c[0]):[];for(var $=-1,j=Ne(R);++$<R;)for(var Z=c[$],J=-1;++J<R;)J!=$&&(j[$]=Pr(j[$]||Z,c[J],d,y));return ks(Oi(j,1),d,y)}function Km(c,d,y){for(var R=-1,$=c.length,j=d.length,Z={};++R<$;){var J=R<j?d[R]:n;y(Z,c[R],J)}return Z}function Zd(c){return Lr(c)?c:[]}function Kd(c){return typeof c=="function"?c:Fa}function Ms(c,d){return un(c)?c:sh(c,d)?[c]:Y0(Xn(c))}var D0=yn;function Ds(c,d,y){var R=c.length;return y=y===n?R:y,!d&&y>=R?c:qr(c,d,y)}var Xm=c0||function(c){return Kt.clearTimeout(c)};function Qm(c,d){if(d)return c.slice();var y=c.length,R=ly?ly(y):new c.constructor(y);return c.copy(R),R}function hf(c){var d=new c.constructor(c.byteLength);return new Im(d).set(new Im(c)),d}function vf(c,d){var y=d?hf(c.buffer):c.buffer;return new c.constructor(y,c.byteOffset,c.byteLength)}function P0(c){var d=new c.constructor(c.source,Vn.exec(c));return d.lastIndex=c.lastIndex,d}function I0(c){return Fd?Jn(Fd.call(c)):{}}function Jm(c,d){var y=d?hf(c.buffer):c.buffer;return new c.constructor(y,c.byteOffset,c.length)}function eh(c,d){if(c!==d){var y=c!==n,R=c===null,$=c===c,j=Nn(c),Z=d!==n,J=d===null,fe=d===d,Pe=Nn(d);if(!J&&!Pe&&!j&&c>d||j&&Z&&fe&&!J&&!Pe||R&&Z&&fe||!y&&fe||!$)return 1;if(!R&&!j&&!Pe&&c<d||Pe&&y&&$&&!R&&!j||J&&y&&$||!Z&&$||!fe)return-1}return 0}function Dy(c,d,y){for(var R=-1,$=c.criteria,j=d.criteria,Z=$.length,J=y.length;++R<Z;){var fe=eh($[R],j[R]);if(fe){if(R>=J)return fe;var Pe=y[R];return fe*(Pe=="desc"?-1:1)}}return c.index-d.index}function gf(c,d,y,R){for(var $=-1,j=c.length,Z=y.length,J=-1,fe=d.length,Pe=Gr(j-Z,0),Oe=Ne(fe+Pe),Ie=!R;++J<fe;)Oe[J]=d[J];for(;++$<Z;)(Ie||$<j)&&(Oe[y[$]]=c[$]);for(;Pe--;)Oe[J++]=c[$++];return Oe}function $0(c,d,y,R){for(var $=-1,j=c.length,Z=-1,J=y.length,fe=-1,Pe=d.length,Oe=Gr(j-J,0),Ie=Ne(Oe+Pe),Qe=!R;++$<Oe;)Ie[$]=c[$];for(var gt=$;++fe<Pe;)Ie[gt+fe]=d[fe];for(;++Z<J;)(Qe||$<j)&&(Ie[gt+y[Z]]=c[$++]);return Ie}function fi(c,d){var y=-1,R=c.length;for(d||(d=Ne(R));++y<R;)d[y]=c[y];return d}function Ki(c,d,y,R){var $=!y;y||(y={});for(var j=-1,Z=d.length;++j<Z;){var J=d[j],fe=R?R(y[J],c[J],J,y,c):n;fe===n&&(fe=c[J]),$?Os(y,J,fe):jd(y,J,fe)}return y}function no(c,d){return Ki(c,sa(c),d)}function w4(c,d){return Ki(c,Ps(c),d)}function tr(c,d){return function(y,R){var $=un(y)?Wt:yy,j=d?d():{};return $(y,c,Ft(R,2),j)}}function xl(c){return yn(function(d,y){var R=-1,$=y.length,j=$>1?y[$-1]:n,Z=$>2?y[2]:n;for(j=c.length>3&&typeof j=="function"?($--,j):n,Z&&pi(y[0],y[1],Z)&&(j=$<3?n:j,$=1),d=Jn(d);++R<$;){var J=y[R];J&&c(d,J,R,j)}return d})}function Xd(c,d){return function(y,R){if(y==null)return y;if(!ri(y))return c(y,R);for(var $=y.length,j=d?$:-1,Z=Jn(y);(d?j--:++j<$)&&R(Z[j],j,Z)!==!1;);return y}}function bf(c){return function(d,y,R){for(var $=-1,j=Jn(d),Z=R(d),J=Z.length;J--;){var fe=Z[c?J:++$];if(y(j[fe],fe,j)===!1)break}return d}}function th(c,d,y){var R=d&k,$=Qd(c);function j(){var Z=this&&this!==Kt&&this instanceof j?$:c;return Z.apply(R?y:this,arguments)}return j}function Py(c){return function(d){d=Xn(d);var y=Zc(d)?es(d):n,R=y?y[0]:d.charAt(0),$=y?Ds(y,1).join(""):d.slice(1);return R[c]()+$}}function yf(c){return function(d){return Es(N1(Ep(d).replace(Xo,"")),c,"")}}function Qd(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=Xl(c.prototype),R=c.apply(y,d);return wr(R)?R:y}}function N4(c,d,y){var R=Qd(c);function $(){for(var j=arguments.length,Z=Ne(j),J=j,fe=Sf($);J--;)Z[J]=arguments[J];var Pe=j<3&&Z[0]!==fe&&Z[j-1]!==fe?[]:Zl(Z,fe);if(j-=Pe.length,j<y)return $y(c,d,xf,$.placeholder,n,Z,Pe,n,n,y-j);var Oe=this&&this!==Kt&&this instanceof $?R:c;return yt(Oe,this,Z)}return $}function nh(c){return function(d,y,R){var $=Jn(d);if(!ri(d)){var j=Ft(y,3);d=mi(d),y=function(J){return j($[J],J,$)}}var Z=c(d,y,R);return Z>-1?$[j?d[Z]:Z]:n}}function Iy(c){return Cl(function(d){var y=d.length,R=y,$=xo.prototype.thru;for(c&&d.reverse();R--;){var j=d[R];if(typeof j!="function")throw new Qa(u);if($&&!Z&&rp(j)=="wrapper")var Z=new xo([],!0)}for(R=Z?R:y;++R<y;){j=d[R];var J=rp(j),fe=J=="wrapper"?U0(j):n;fe&&V0(fe[0])&&fe[1]==(Y|P|z|Q)&&!fe[4].length&&fe[9]==1?Z=Z[rp(fe[0])].apply(Z,fe[3]):Z=j.length==1&&V0(j)?Z[J]():Z.thru(j)}return function(){var Pe=arguments,Oe=Pe[0];if(Z&&Pe.length==1&&un(Oe))return Z.plant(Oe).value();for(var Ie=0,Qe=y?d[Ie].apply(this,Pe):Oe;++Ie<y;)Qe=d[Ie].call(this,Qe);return Qe}})}function xf(c,d,y,R,$,j,Z,J,fe,Pe){var Oe=d&Y,Ie=d&k,Qe=d&I,gt=d&(P|F),zt=d&ie,hn=Qe?n:Qd(c);function Vt(){for(var xn=arguments.length,On=Ne(xn),Xi=xn;Xi--;)On[Xi]=arguments[Xi];if(gt)var gr=Sf(Vt),ua=Ld(On,gr);if(R&&(On=gf(On,R,$,gt)),j&&(On=$0(On,j,Z,gt)),xn-=ua,gt&&xn<Pe){var Nr=Zl(On,gr);return $y(c,d,xf,Vt.placeholder,y,On,Nr,J,fe,Pe-xn)}var ii=Ie?y:this,Qi=Qe?ii[c]:c;return xn=On.length,J?On=nu(On,J):zt&&xn>1&&On.reverse(),Oe&&fe<xn&&(On.length=fe),this&&this!==Kt&&this instanceof Vt&&(Qi=hn||Qd(Qi)),Qi.apply(ii,On)}return Vt}function F0(c,d){return function(y,R){return g4(y,c,d(R),{})}}function rh(c,d){return function(y,R){var $;if(y===n&&R===n)return d;if(y!==n&&($=y),R!==n){if($===n)return R;typeof y=="string"||typeof R=="string"?(y=oa(y),R=oa(R)):(y=pf(y),R=pf(R)),$=c(y,R)}return $}}function z0(c){return Cl(function(d){return d=Dn(d,Hn(Ft())),yn(function(y){var R=this;return c(d,function($){return yt($,R,y)})})})}function oc(c,d){d=d===n?" ":oa(d);var y=d.length;if(y<2)return y?k0(d,c):d;var R=k0(d,pl(c/Zu(d)));return Zc(d)?Ds(es(R),0,c).join(""):R.slice(0,c)}function E4(c,d,y,R){var $=d&k,j=Qd(c);function Z(){for(var J=-1,fe=arguments.length,Pe=-1,Oe=R.length,Ie=Ne(Oe+fe),Qe=this&&this!==Kt&&this instanceof Z?j:c;++Pe<Oe;)Ie[Pe]=R[Pe];for(;fe--;)Ie[Pe++]=arguments[++J];return yt(Qe,$?y:this,Ie)}return Z}function B0(c){return function(d,y,R){return R&&typeof R!="number"&&pi(d,y,R)&&(y=R=n),d=El(d),y===n?(y=d,d=0):y=El(y),R=R===n?d<y?1:-1:El(R),My(d,y,R,c)}}function Jd(c){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=No(d),y=No(y)),c(d,y)}}function $y(c,d,y,R,$,j,Z,J,fe,Pe){var Oe=d&P,Ie=Oe?Z:n,Qe=Oe?n:Z,gt=Oe?j:n,zt=Oe?n:j;d|=Oe?z:q,d&=~(Oe?q:z),d&D||(d&=~(k|I));var hn=[c,d,$,gt,Ie,zt,Qe,J,fe,Pe],Vt=y.apply(n,hn);return V0(c)&&wf(Vt,hn),Vt.placeholder=R,Vy(Vt,c,d)}function Sl(c){var d=ei[c];return function(y,R){if(y=No(y),R=R==null?0:ui(an(R),292),R&&cy(y)){var $=(Xn(y)+"e").split("e"),j=d($[0]+"e"+(+$[1]+R));return $=(Xn(j)+"e").split("e"),+($[0]+"e"+(+$[1]-R))}return d(y)}}var ep=Rs&&1/kd(new Rs([,-0]))[1]==K?function(c){return new Rs(c)}:A1;function eu(c){return function(d){var y=Cr(d);return y==Se?l0(d):y==sn?Kc(d):Ma(d,c(d))}}function ns(c,d,y,R,$,j,Z,J){var fe=d&I;if(!fe&&typeof c!="function")throw new Qa(u);var Pe=R?R.length:0;if(Pe||(d&=~(z|q),R=$=n),Z=Z===n?Z:Gr(an(Z),0),J=J===n?J:an(J),Pe-=$?$.length:0,d&q){var Oe=R,Ie=$;R=$=n}var Qe=fe?n:U0(c),gt=[c,d,y,R,$,Oe,Ie,j,Z,J];if(Qe&&jy(gt,Qe),c=gt[0],d=gt[1],y=gt[2],R=gt[3],$=gt[4],J=gt[9]=gt[9]===n?fe?0:c.length:Gr(gt[9]-Pe,0),!J&&d&(P|F)&&(d&=~(P|F)),!d||d==k)var zt=th(c,d,y);else d==P||d==F?zt=N4(c,d,J):(d==z||d==(k|z))&&!$.length?zt=E4(c,d,y,R):zt=xf.apply(n,gt);var hn=Qe?ni:wf;return Vy(hn(zt,gt),c,d)}function Da(c,d,y,R){return c===n||rs(c,Qc[y])&&!er.call(R,y)?d:c}function sc(c,d,y,R,$,j){return wr(c)&&wr(d)&&(j.set(d,c),Ym(c,d,n,sc,j),j.delete(d)),c}function mn(c){return dc(c)?n:c}function tp(c,d,y,R,$,j){var Z=y&T,J=c.length,fe=d.length;if(J!=fe&&!(Z&&fe>J))return!1;var Pe=j.get(c),Oe=j.get(d);if(Pe&&Oe)return Pe==d&&Oe==c;var Ie=-1,Qe=!0,gt=y&A?new yl:n;for(j.set(c,d),j.set(d,c);++Ie<J;){var zt=c[Ie],hn=d[Ie];if(R)var Vt=Z?R(hn,zt,Ie,d,c,j):R(zt,hn,Ie,c,d,j);if(Vt!==n){if(Vt)continue;Qe=!1;break}if(gt){if(!i0(d,function(xn,On){if(!qu(gt,On)&&(zt===xn||$(zt,xn,y,R,j)))return gt.push(On)})){Qe=!1;break}}else if(!(zt===hn||$(zt,hn,y,R,j))){Qe=!1;break}}return j.delete(c),j.delete(d),Qe}function Fy(c,d,y,R,$,j,Z){switch(y){case De:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Pt:return!(c.byteLength!=d.byteLength||!j(new Im(c),new Im(d)));case Ve:case at:case tt:return rs(+c,+d);case Dt:return c.name==d.name&&c.message==d.message;case _t:case kn:return c==d+"";case Se:var J=l0;case sn:var fe=R&T;if(J||(J=kd),c.size!=d.size&&!fe)return!1;var Pe=Z.get(c);if(Pe)return Pe==d;R|=A,Z.set(c,d);var Oe=tp(J(c),J(d),R,$,j,Z);return Z.delete(c),Oe;case bn:if(Fd)return Fd.call(c)==Fd.call(d)}return!1}function GT(c,d,y,R,$,j){var Z=y&T,J=np(c),fe=J.length,Pe=np(d),Oe=Pe.length;if(fe!=Oe&&!Z)return!1;for(var Ie=fe;Ie--;){var Qe=J[Ie];if(!(Z?Qe in d:er.call(d,Qe)))return!1}var gt=j.get(c),zt=j.get(d);if(gt&&zt)return gt==d&&zt==c;var hn=!0;j.set(c,d),j.set(d,c);for(var Vt=Z;++Ie<fe;){Qe=J[Ie];var xn=c[Qe],On=d[Qe];if(R)var Xi=Z?R(On,xn,Qe,d,c,j):R(xn,On,Qe,c,d,j);if(!(Xi===n?xn===On||$(xn,On,y,R,j):Xi)){hn=!1;break}Vt||(Vt=Qe=="constructor")}if(hn&&!Vt){var gr=c.constructor,ua=d.constructor;gr!=ua&&"constructor"in c&&"constructor"in d&&!(typeof gr=="function"&&gr instanceof gr&&typeof ua=="function"&&ua instanceof ua)&&(hn=!1)}return j.delete(c),j.delete(d),hn}function Cl(c){return Fs(ap(c,n,Ky),c+"")}function np(c){return wy(c,mi,sa)}function lc(c){return wy(c,$a,Ps)}var U0=af?function(c){return af.get(c)}:A1;function rp(c){for(var d=c.name+"",y=of[d],R=er.call(of,d)?y.length:0;R--;){var $=y[R],j=$.func;if(j==null||j==c)return $.name}return d}function Sf(c){var d=er.call(B,"placeholder")?B:c;return d.placeholder}function Ft(){var c=B.iteratee||T1;return c=c===T1?Ty:c,arguments.length?c(arguments[0],arguments[1]):c}function ih(c,d){var y=c.__data__;return R4(d)?y[typeof d=="string"?"string":"hash"]:y.map}function ah(c){for(var d=mi(c),y=d.length;y--;){var R=d[y],$=c[R];d[y]=[R,$,Uy($)]}return d}function tu(c,d){var y=e4(c,d);return Ny(y)?y:n}function zy(c){var d=er.call(c,Ku),y=c[Ku];try{c[Ku]=n;var R=!0}catch{}var $=Md.call(c);return R&&(d?c[Ku]=y:delete c[Ku]),$}var sa=d0?function(c){return c==null?[]:(c=Jn(c),Ai(d0(c),function(d){return Jc.call(c,d)}))}:L1,Ps=d0?function(c){for(var d=[];c;)ka(d,sa(c)),c=Dd(c);return d}:L1,Cr=aa;(p0&&Cr(new p0(new ArrayBuffer(1)))!=De||ml&&Cr(new ml)!=Se||$d&&Cr($d.resolve())!=on||Rs&&Cr(new Rs)!=sn||nf&&Cr(new nf)!=et)&&(Cr=function(c){var d=aa(c),y=d==nt?c.constructor:n,R=y?uc(y):"";if(R)switch(R){case sf:return De;case Bm:return Se;case Um:return on;case m0:return sn;case f4:return et}return d});function oh(c,d,y){for(var R=-1,$=y.length;++R<$;){var j=y[R],Z=j.size;switch(j.type){case"drop":c+=Z;break;case"dropRight":d-=Z;break;case"take":d=ui(d,c+Z);break;case"takeRight":c=Gr(c,d-Z);break}}return{start:c,end:d}}function ip(c){var d=c.match(Xe);return d?d[1].split(Et):[]}function Co(c,d,y){d=Ms(d,c);for(var R=-1,$=d.length,j=!1;++R<$;){var Z=Pa(d[R]);if(!(j=c!=null&&y(c,Z)))break;c=c[Z]}return j||++R!=$?j:($=c==null?0:c.length,!!$&&yp($)&&Is(Z,$)&&(un(c)||fc(c)))}function di(c){var d=c.length,y=new c.constructor(d);return d&&typeof c[0]=="string"&&er.call(c,"index")&&(y.index=c.index,y.input=c.input),y}function By(c){return typeof c.constructor=="function"&&!Cf(c)?Xl(Dd(c)):{}}function _4(c,d,y){var R=c.constructor;switch(d){case Pt:return hf(c);case Ve:case at:return new R(+c);case De:return vf(c,y);case qt:case _n:case We:case lt:case At:case vn:case Jt:case Tn:case $n:return Jm(c,y);case Se:return new R;case tt:case kn:return new R(c);case _t:return P0(c);case sn:return new R;case bn:return I0(c)}}function T4(c,d){var y=d.length;if(!y)return c;var R=y-1;return d[R]=(y>1?"& ":"")+d[R],d=d.join(y>2?", ":" "),c.replace(Ue,`{
/* [wrapped with `+d+`] */
`)}function j0(c){return un(c)||fc(c)||!!(ef&&c&&c[ef])}function Is(c,d){var y=typeof c;return d=d??le,!!d&&(y=="number"||y!="symbol"&&Vo.test(c))&&c>-1&&c%1==0&&c<d}function pi(c,d,y){if(!wr(y))return!1;var R=typeof d;return(R=="number"?ri(y)&&Is(d,y.length):R=="string"&&d in y)?rs(y[d],c):!1}function sh(c,d){if(un(c))return!1;var y=typeof c;return y=="number"||y=="symbol"||y=="boolean"||c==null||Nn(c)?!0:jo.test(c)||!Uo.test(c)||d!=null&&c in Jn(d)}function R4(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function V0(c){var d=rp(c),y=B[d];if(typeof y!="function"||!(d in An.prototype))return!1;if(c===y)return!0;var R=U0(y);return!!R&&c===R[0]}function H0(c){return!!oy&&oy in c}var A4=Mm?Bs:k1;function Cf(c){var d=c&&c.constructor,y=typeof d=="function"&&d.prototype||Qc;return c===y}function Uy(c){return c===c&&!wr(c)}function W0(c,d){return function(y){return y==null?!1:y[c]===d&&(d!==n||c in Jn(y))}}function O4(c){var d=gh(c,function(R){return y.size===v&&y.clear(),R}),y=d.cache;return d}function jy(c,d){var y=c[1],R=d[1],$=y|R,j=$<(k|I|Y),Z=R==Y&&y==P||R==Y&&y==Q&&c[7].length<=d[8]||R==(Y|Q)&&d[7].length<=d[8]&&y==P;if(!(j||Z))return c;R&k&&(c[2]=d[2],$|=y&k?0:D);var J=d[3];if(J){var fe=c[3];c[3]=fe?gf(fe,J,d[4]):J,c[4]=fe?Zl(c[3],g):d[4]}return J=d[5],J&&(fe=c[5],c[5]=fe?$0(fe,J,d[6]):J,c[6]=fe?Zl(c[5],g):d[6]),J=d[7],J&&(c[7]=J),R&Y&&(c[8]=c[8]==null?d[8]:ui(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=$,c}function L4(c){var d=[];if(c!=null)for(var y in Jn(c))d.push(y);return d}function G0(c){return Md.call(c)}function ap(c,d,y){return d=Gr(d===n?c.length-1:d,0),function(){for(var R=arguments,$=-1,j=Gr(R.length-d,0),Z=Ne(j);++$<j;)Z[$]=R[d+$];$=-1;for(var J=Ne(d+1);++$<d;)J[$]=R[$];return J[d]=y(Z),yt(c,this,J)}}function wl(c,d){return d.length<2?c:Li(c,qr(d,0,-1))}function nu(c,d){for(var y=c.length,R=ui(d.length,y),$=fi(c);R--;){var j=d[R];c[R]=Is(j,y)?$[j]:n}return c}function $s(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var wf=Hy(ni),Nl=tf||function(c,d){return Kt.setTimeout(c,d)},Fs=Hy(Yt);function Vy(c,d,y){var R=d+"";return Fs(c,T4(R,Wy(ip(R),y)))}function Hy(c){var d=0,y=0;return function(){var R=u4(),$=te-(R-y);if(y=R,$>0){if(++d>=$e)return arguments[0]}else d=0;return c.apply(n,arguments)}}function lh(c,d){var y=-1,R=c.length,$=R-1;for(d=d===n?R:d;++y<d;){var j=So(y,$),Z=c[j];c[j]=c[y],c[y]=Z}return c.length=d,c}var Y0=O4(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(hr,function(y,R,$,j){d.push($?j.replace(ot,"$1"):R||y)}),d});function Pa(c){if(typeof c=="string"||Nn(c))return c;var d=c+"";return d=="0"&&1/c==-K?"-0":d}function uc(c){if(c!=null){try{return Dm.call(c)}catch{}try{return c+""}catch{}}return""}function Wy(c,d){return Ot(Ze,function(y){var R="_."+y[0];d&y[1]&&!Qo(c,R)&&c.push(R)}),c.sort()}function Gy(c){if(c instanceof An)return c.clone();var d=new xo(c.__wrapped__,c.__chain__);return d.__actions__=fi(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function uh(c,d,y){(y?pi(c,d,y):d===n)?d=1:d=Gr(an(d),0);var R=c==null?0:c.length;if(!R||d<1)return[];for(var $=0,j=0,Z=Ne(pl(R/d));$<R;)Z[j++]=qr(c,$,$+=d);return Z}function Yy(c){for(var d=-1,y=c==null?0:c.length,R=0,$=[];++d<y;){var j=c[d];j&&($[R++]=j)}return $}function k4(){var c=arguments.length;if(!c)return[];for(var d=Ne(c-1),y=arguments[0],R=c;R--;)d[R-1]=arguments[R];return ka(un(y)?fi(y):[y],Oi(d,1))}var op=yn(function(c,d){return Lr(c)?Pr(c,Oi(d,1,Lr,!0)):[]}),sp=yn(function(c,d){var y=wo(d);return Lr(y)&&(y=n),Lr(c)?Pr(c,Oi(d,1,Lr,!0),Ft(y,2)):[]}),Nf=yn(function(c,d){var y=wo(d);return Lr(y)&&(y=n),Lr(c)?Pr(c,Oi(d,1,Lr,!0),n,y):[]});function q0(c,d,y){var R=c==null?0:c.length;return R?(d=y||d===n?1:an(d),qr(c,d<0?0:d,R)):[]}function qy(c,d,y){var R=c==null?0:c.length;return R?(d=y||d===n?1:an(d),d=R-d,qr(c,0,d<0?0:d)):[]}function M4(c,d){return c&&c.length?mf(c,Ft(d,3),!0,!0):[]}function D4(c,d){return c&&c.length?mf(c,Ft(d,3),!0):[]}function P4(c,d,y,R){var $=c==null?0:c.length;return $?(y&&typeof y!="number"&&pi(c,d,y)&&(y=0,R=$),m4(c,d,y,R)):[]}function Zy(c,d,y){var R=c==null?0:c.length;if(!R)return-1;var $=y==null?0:an(y);return $<0&&($=Gr(R+$,0)),Td(c,Ft(d,3),$)}function ch(c,d,y){var R=c==null?0:c.length;if(!R)return-1;var $=R-1;return y!==n&&($=an(y),$=y<0?Gr(R+$,0):ui($,R-1)),Td(c,Ft(d,3),$,!0)}function Ky(c){var d=c==null?0:c.length;return d?Oi(c,1):[]}function fh(c){var d=c==null?0:c.length;return d?Oi(c,K):[]}function Z0(c,d){var y=c==null?0:c.length;return y?(d=d===n?1:an(d),Oi(c,d)):[]}function Xy(c){for(var d=-1,y=c==null?0:c.length,R={};++d<y;){var $=c[d];R[$[0]]=$[1]}return R}function Qy(c){return c&&c.length?c[0]:n}function I4(c,d,y){var R=c==null?0:c.length;if(!R)return-1;var $=y==null?0:an(y);return $<0&&($=Gr(R+$,0)),Yu(c,d,$)}function $4(c){var d=c==null?0:c.length;return d?qr(c,0,-1):[]}var F4=yn(function(c){var d=Dn(c,Zd);return d.length&&d[0]===c[0]?E0(d):[]}),lp=yn(function(c){var d=wo(c),y=Dn(c,Zd);return d===wo(y)?d=n:y.pop(),y.length&&y[0]===c[0]?E0(y,Ft(d,2)):[]}),K0=yn(function(c){var d=wo(c),y=Dn(c,Zd);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===c[0]?E0(y,n,d):[]});function up(c,d){return c==null?"":fy.call(c,d)}function wo(c){var d=c==null?0:c.length;return d?c[d-1]:n}function z4(c,d,y){var R=c==null?0:c.length;if(!R)return-1;var $=R;return y!==n&&($=an(y),$=$<0?Gr(R+$,0):ui($,R-1)),d===d?ry(c,d,$):Td(c,_s,$,!0)}function Jy(c,d){return c&&c.length?Ly(c,an(d)):n}var e2=yn(cp);function cp(c,d){return c&&c.length&&d&&d.length?Wn(c,d):c}function dh(c,d,y){return c&&c.length&&d&&d.length?Wn(c,d,Ft(y,2)):c}function t2(c,d,y){return c&&c.length&&d&&d.length?Wn(c,d,n,y):c}var ro=Cl(function(c,d){var y=c==null?0:c.length,R=S0(c,d);return Ur(c,Dn(d,function($){return Is($,y)?+$:$}).sort(eh)),R});function Ef(c,d){var y=[];if(!(c&&c.length))return y;var R=-1,$=[],j=c.length;for(d=Ft(d,3);++R<j;){var Z=c[R];d(Z,R,c)&&(y.push(Z),$.push(R))}return Ur(c,$),y}function fp(c){return c==null?c:c4.call(c)}function dp(c,d,y){var R=c==null?0:c.length;return R?(y&&typeof y!="number"&&pi(c,d,y)?(d=0,y=R):(d=d==null?0:an(d),y=y===n?R:an(y)),qr(c,d,y)):[]}function B4(c,d){return to(c,d)}function X0(c,d,y){return ic(c,d,Ft(y,2))}function Q0(c,d){var y=c==null?0:c.length;if(y){var R=to(c,d);if(R<y&&rs(c[R],d))return R}return-1}function pp(c,d){return to(c,d,!0)}function U4(c,d,y){return ic(c,d,Ft(y,2),!0)}function ph(c,d){var y=c==null?0:c.length;if(y){var R=to(c,d,!0)-1;if(rs(c[R],d))return R}return-1}function n2(c){return c&&c.length?ac(c):[]}function j4(c,d){return c&&c.length?ac(c,Ft(d,2)):[]}function V4(c){var d=c==null?0:c.length;return d?qr(c,1,d):[]}function H4(c,d,y){return c&&c.length?(d=y||d===n?1:an(d),qr(c,0,d<0?0:d)):[]}function J0(c,d,y){var R=c==null?0:c.length;return R?(d=y||d===n?1:an(d),d=R-d,qr(c,d<0?0:d,R)):[]}function W4(c,d){return c&&c.length?mf(c,Ft(d,3),!1,!0):[]}function G4(c,d){return c&&c.length?mf(c,Ft(d,3)):[]}var Y4=yn(function(c){return ks(Oi(c,1,Lr,!0))}),q4=yn(function(c){var d=wo(c);return Lr(d)&&(d=n),ks(Oi(c,1,Lr,!0),Ft(d,2))}),Z4=yn(function(c){var d=wo(c);return d=typeof d=="function"?d:n,ks(Oi(c,1,Lr,!0),n,d)});function r2(c){return c&&c.length?ks(c):[]}function K4(c,d){return c&&c.length?ks(c,Ft(d,2)):[]}function X4(c,d){return d=typeof d=="function"?d:n,c&&c.length?ks(c,n,d):[]}function e1(c){if(!(c&&c.length))return[];var d=0;return c=Ai(c,function(y){if(Lr(y))return d=Gr(y.length,d),!0}),Lm(d,function(y){return Dn(c,Rd(y))})}function i2(c,d){if(!(c&&c.length))return[];var y=e1(c);return d==null?y:Dn(y,function(R){return yt(d,n,R)})}var Q4=yn(function(c,d){return Lr(c)?Pr(c,d):[]}),J4=yn(function(c){return qd(Ai(c,Lr))}),t1=yn(function(c){var d=wo(c);return Lr(d)&&(d=n),qd(Ai(c,Lr),Ft(d,2))}),eC=yn(function(c){var d=wo(c);return d=typeof d=="function"?d:n,qd(Ai(c,Lr),n,d)}),tC=yn(e1);function nC(c,d){return Km(c||[],d||[],jd)}function a2(c,d){return Km(c||[],d||[],Fe)}var rC=yn(function(c){var d=c.length,y=d>1?c[d-1]:n;return y=typeof y=="function"?(c.pop(),y):n,i2(c,y)});function o2(c){var d=B(c);return d.__chain__=!0,d}function iC(c,d){return d(c),c}function mh(c,d){return d(c)}var aC=Cl(function(c){var d=c.length,y=d?c[0]:0,R=this.__wrapped__,$=function(j){return S0(j,c)};return d>1||this.__actions__.length||!(R instanceof An)||!Is(y)?this.thru($):(R=R.slice(y,+y+(d?1:0)),R.__actions__.push({func:mh,args:[$],thisArg:n}),new xo(R,this.__chain__).thru(function(j){return d&&!j.length&&j.push(n),j}))});function oC(){return o2(this)}function sC(){return new xo(this.value(),this.__chain__)}function s2(){this.__values__===n&&(this.__values__=Af(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function n1(){return this}function mp(c){for(var d,y=this;y instanceof hl;){var R=Gy(y);R.__index__=0,R.__values__=n,d?$.__wrapped__=R:d=R;var $=R;y=y.__wrapped__}return $.__wrapped__=c,d}function lC(){var c=this.__wrapped__;if(c instanceof An){var d=c;return this.__actions__.length&&(d=new An(this)),d=d.reverse(),d.__actions__.push({func:mh,args:[fp],thisArg:n}),new xo(d,this.__chain__)}return this.thru(fp)}function l2(){return Zm(this.__wrapped__,this.__actions__)}var u2=tr(function(c,d,y){er.call(c,y)?++c[y]:Os(c,y,1)});function c2(c,d,y){var R=un(c)?La:C0;return y&&pi(c,d,y)&&(d=n),R(c,Ft(d,3))}function uC(c,d){var y=un(c)?Ai:Gm;return y(c,Ft(d,3))}var f2=nh(Zy),cC=nh(ch);function fC(c,d){return Oi(hh(c,d),1)}function dC(c,d){return Oi(hh(c,d),K)}function d2(c,d,y){return y=y===n?1:an(y),Oi(hh(c,d),y)}function r1(c,d){var y=un(c)?Ot:Jl;return y(c,Ft(d,3))}function i1(c,d){var y=un(c)?Ut:Vd;return y(c,Ft(d,3))}var _f=tr(function(c,d,y){er.call(c,y)?c[y].push(d):Os(c,y,[d])});function pC(c,d,y,R){c=ri(c)?c:kf(c),y=y&&!R?an(y):0;var $=c.length;return y<0&&(y=Gr($+y,0)),Sh(c)?y<=$&&c.indexOf(d,y)>-1:!!$&&Yu(c,d,y)>-1}var mC=yn(function(c,d,y){var R=-1,$=typeof d=="function",j=ri(c)?Ne(c.length):[];return Jl(c,function(Z){j[++R]=$?yt(d,Z,y):Hd(Z,d,y)}),j}),hC=tr(function(c,d,y){Os(c,y,d)});function hh(c,d){var y=un(c)?Dn:Ry;return y(c,Ft(d,3))}function vC(c,d,y,R){return c==null?[]:(un(d)||(d=d==null?[]:[d]),y=R?n:y,un(y)||(y=y==null?[]:[y]),ky(c,d,y))}var gC=tr(function(c,d,y){c[y?0:1].push(d)},function(){return[[],[]]});function p2(c,d,y){var R=un(c)?Es:Om,$=arguments.length<3;return R(c,Ft(d,4),y,$,Jl)}function bC(c,d,y){var R=un(c)?_d:Om,$=arguments.length<3;return R(c,Ft(d,4),y,$,Vd)}function yC(c,d){var y=un(c)?Ai:Gm;return y(c,bh(Ft(d,3)))}function m2(c){var d=un(c)?gy:C4;return d(c)}function hp(c,d,y){(y?pi(c,d,y):d===n)?d=1:d=an(d);var R=un(c)?tc:M0;return R(c,d)}function vp(c){var d=un(c)?by:df;return d(c)}function xC(c){if(c==null)return 0;if(ri(c))return Sh(c)?Zu(c):c.length;var d=Cr(c);return d==Se||d==sn?c.size:R0(c).length}function SC(c,d,y){var R=un(c)?i0:rc;return y&&pi(c,d,y)&&(d=n),R(c,Ft(d,3))}var CC=yn(function(c,d){if(c==null)return[];var y=d.length;return y>1&&pi(c,d[0],d[1])?d=[]:y>2&&pi(d[0],d[1],d[2])&&(d=[d[0]]),ky(c,Oi(d,1),[])}),cc=f0||function(){return Kt.Date.now()};function wC(c,d){if(typeof d!="function")throw new Qa(u);return c=an(c),function(){if(--c<1)return d.apply(this,arguments)}}function a1(c,d,y){return d=y?n:d,d=c&&d==null?c.length:d,ns(c,Y,n,n,n,n,d)}function h2(c,d){var y;if(typeof d!="function")throw new Qa(u);return c=an(c),function(){return--c>0&&(y=d.apply(this,arguments)),c<=1&&(d=n),y}}var vh=yn(function(c,d,y){var R=k;if(y.length){var $=Zl(y,Sf(vh));R|=z}return ns(c,R,d,y,$)}),o1=yn(function(c,d,y){var R=k|I;if(y.length){var $=Zl(y,Sf(o1));R|=z}return ns(d,R,c,y,$)});function v2(c,d,y){d=y?n:d;var R=ns(c,P,n,n,n,n,n,d);return R.placeholder=v2.placeholder,R}function g2(c,d,y){d=y?n:d;var R=ns(c,F,n,n,n,n,n,d);return R.placeholder=g2.placeholder,R}function b2(c,d,y){var R,$,j,Z,J,fe,Pe=0,Oe=!1,Ie=!1,Qe=!0;if(typeof c!="function")throw new Qa(u);d=No(d)||0,wr(y)&&(Oe=!!y.leading,Ie="maxWait"in y,j=Ie?Gr(No(y.maxWait)||0,d):j,Qe="trailing"in y?!!y.trailing:Qe);function gt(Nr){var ii=R,Qi=$;return R=$=n,Pe=Nr,Z=c.apply(Qi,ii),Z}function zt(Nr){return Pe=Nr,J=Nl(xn,d),Oe?gt(Nr):Z}function hn(Nr){var ii=Nr-fe,Qi=Nr-Pe,ki=d-ii;return Ie?ui(ki,j-Qi):ki}function Vt(Nr){var ii=Nr-fe,Qi=Nr-Pe;return fe===n||ii>=d||ii<0||Ie&&Qi>=j}function xn(){var Nr=cc();if(Vt(Nr))return On(Nr);J=Nl(xn,hn(Nr))}function On(Nr){return J=n,Qe&&R?gt(Nr):(R=$=n,Z)}function Xi(){J!==n&&Xm(J),Pe=0,R=fe=$=J=n}function gr(){return J===n?Z:On(cc())}function ua(){var Nr=cc(),ii=Vt(Nr);if(R=arguments,$=this,fe=Nr,ii){if(J===n)return zt(fe);if(Ie)return Xm(J),J=Nl(xn,d),gt(fe)}return J===n&&(J=Nl(xn,d)),Z}return ua.cancel=Xi,ua.flush=gr,ua}var NC=yn(function(c,d){return Cy(c,1,d)}),EC=yn(function(c,d,y){return Cy(c,No(d)||0,y)});function _C(c){return ns(c,ie)}function gh(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new Qa(u);var y=function(){var R=arguments,$=d?d.apply(this,R):R[0],j=y.cache;if(j.has($))return j.get($);var Z=c.apply(this,R);return y.cache=j.set($,Z)||j,Z};return y.cache=new(gh.Cache||bl),y}gh.Cache=bl;function bh(c){if(typeof c!="function")throw new Qa(u);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function TC(c){return h2(2,c)}var RC=D0(function(c,d){d=d.length==1&&un(d[0])?Dn(d[0],Hn(Ft())):Dn(Oi(d,1),Hn(Ft()));var y=d.length;return yn(function(R){for(var $=-1,j=ui(R.length,y);++$<j;)R[$]=d[$].call(this,R[$]);return yt(c,this,R)})}),la=yn(function(c,d){var y=Zl(d,Sf(la));return ns(c,z,n,d,y)}),Tf=yn(function(c,d){var y=Zl(d,Sf(Tf));return ns(c,q,n,d,y)}),y2=Cl(function(c,d){return ns(c,Q,n,n,n,d)});function AC(c,d){if(typeof c!="function")throw new Qa(u);return d=d===n?d:an(d),yn(c,d)}function x2(c,d){if(typeof c!="function")throw new Qa(u);return d=d==null?0:Gr(an(d),0),yn(function(y){var R=y[d],$=Ds(y,0,d);return R&&ka($,R),yt(c,this,$)})}function OC(c,d,y){var R=!0,$=!0;if(typeof c!="function")throw new Qa(u);return wr(y)&&(R="leading"in y?!!y.leading:R,$="trailing"in y?!!y.trailing:$),b2(c,d,{leading:R,maxWait:d,trailing:$})}function LC(c){return a1(c,1)}function kC(c,d){return la(Kd(d),c)}function S2(){if(!arguments.length)return[];var c=arguments[0];return un(c)?c:[c]}function C2(c){return Ja(c,w)}function MC(c,d){return d=typeof d=="function"?d:n,Ja(c,w,d)}function DC(c){return Ja(c,b|w)}function w2(c,d){return d=typeof d=="function"?d:n,Ja(c,b|w,d)}function s1(c,d){return d==null||Sy(c,d,mi(d))}function rs(c,d){return c===d||c!==c&&d!==d}var PC=Jd(N0),IC=Jd(function(c,d){return c>=d}),fc=_0(function(){return arguments}())?_0:function(c){return kr(c)&&er.call(c,"callee")&&!Jc.call(c,"callee")},un=Ne.isArray,$C=ze?Hn(ze):Wd;function ri(c){return c!=null&&yp(c.length)&&!Bs(c)}function Lr(c){return kr(c)&&ri(c)}function gp(c){return c===!0||c===!1||kr(c)&&aa(c)==Ve}var zs=uy||k1,FC=Ee?Hn(Ee):ff;function zC(c){return kr(c)&&c.nodeType===1&&!dc(c)}function N2(c){if(c==null)return!0;if(ri(c)&&(un(c)||typeof c=="string"||typeof c.splice=="function"||zs(c)||au(c)||fc(c)))return!c.length;var d=Cr(c);if(d==Se||d==sn)return!c.size;if(Cf(c))return!R0(c).length;for(var y in c)if(er.call(c,y))return!1;return!0}function BC(c,d){return Gd(c,d)}function yh(c,d,y){y=typeof y=="function"?y:n;var R=y?y(c,d):n;return R===n?Gd(c,d,n,y):!!R}function ru(c){if(!kr(c))return!1;var d=aa(c);return d==Dt||d==St||typeof c.message=="string"&&typeof c.name=="string"&&!dc(c)}function l1(c){return typeof c=="number"&&cy(c)}function Bs(c){if(!wr(c))return!1;var d=aa(c);return d==He||d==jt||d==Rt||d==Ln}function bp(c){return typeof c=="number"&&c==an(c)}function yp(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=le}function wr(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function kr(c){return c!=null&&typeof c=="object"}var u1=Ge?Hn(Ge):y4;function E2(c,d){return c===d||T0(c,d,ah(d))}function _2(c,d,y){return y=typeof y=="function"?y:n,T0(c,d,ah(d),y)}function iu(c){return Rf(c)&&c!=+c}function UC(c){if(A4(c))throw new rn(s);return Ny(c)}function jC(c){return c===null}function VC(c){return c==null}function Rf(c){return typeof c=="number"||kr(c)&&aa(c)==tt}function dc(c){if(!kr(c)||aa(c)!=nt)return!1;var d=Dd(c);if(d===null)return!0;var y=er.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&Dm.call(y)==ra}var xh=ct?Hn(ct):x4;function HC(c){return bp(c)&&c>=-le&&c<=le}var c1=wt?Hn(wt):Ey;function Sh(c){return typeof c=="string"||!un(c)&&kr(c)&&aa(c)==kn}function Nn(c){return typeof c=="symbol"||kr(c)&&aa(c)==bn}var au=It?Hn(It):_y;function Ch(c){return c===n}function xp(c){return kr(c)&&Cr(c)==et}function T2(c){return kr(c)&&aa(c)==nn}var R2=Jd(A0),f1=Jd(function(c,d){return c<=d});function Af(c){if(!c)return[];if(ri(c))return Sh(c)?es(c):fi(c);if(Pd&&c[Pd])return ty(c[Pd]());var d=Cr(c),y=d==Se?l0:d==sn?kd:kf;return y(c)}function El(c){if(!c)return c===0?c:0;if(c=No(c),c===K||c===-K){var d=c<0?-1:1;return d*ve}return c===c?c:0}function an(c){var d=El(c),y=d%1;return d===d?y?d-y:d:0}function pc(c){return c?Ql(an(c),0,we):0}function No(c){if(typeof c=="number")return c;if(Nn(c))return de;if(wr(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=wr(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=Ts(c);var y=cn.test(c);return y||Ea.test(c)?ut(c.slice(2),y?2:8):Bn.test(c)?de:+c}function d1(c){return Ki(c,$a(c))}function WC(c){return c?Ql(an(c),-le,le):c===0?c:0}function Xn(c){return c==null?"":oa(c)}var Ia=xl(function(c,d){if(Cf(d)||ri(d)){Ki(d,mi(d),c);return}for(var y in d)er.call(d,y)&&jd(c,y,d[y])}),Of=xl(function(c,d){Ki(d,$a(d),c)}),mc=xl(function(c,d,y,R){Ki(d,$a(d),c,R)}),ou=xl(function(c,d,y,R){Ki(d,mi(d),c,R)}),A2=Cl(S0);function hc(c,d){var y=Xl(c);return d==null?y:x0(y,d)}var vc=yn(function(c,d){c=Jn(c);var y=-1,R=d.length,$=R>2?d[2]:n;for($&&pi(d[0],d[1],$)&&(R=1);++y<R;)for(var j=d[y],Z=$a(j),J=-1,fe=Z.length;++J<fe;){var Pe=Z[J],Oe=c[Pe];(Oe===n||rs(Oe,Qc[Pe])&&!er.call(c,Pe))&&(c[Pe]=j[Pe])}return c}),wh=yn(function(c){return c.push(n,sc),yt(D2,n,c)});function p1(c,d){return o0(c,Ft(d,3),vr)}function Nh(c,d){return o0(c,Ft(d,3),st)}function Sp(c,d){return c==null?c:w0(c,Ft(d,3),$a)}function O2(c,d){return c==null?c:nc(c,Ft(d,3),$a)}function Eh(c,d){return c&&vr(c,Ft(d,3))}function L2(c,d){return c&&st(c,Ft(d,3))}function k2(c){return c==null?[]:eo(c,mi(c))}function GC(c){return c==null?[]:eo(c,$a(c))}function m1(c,d,y){var R=c==null?n:Li(c,d);return R===n?y:R}function _h(c,d){return c!=null&&Co(c,d,h4)}function Lf(c,d){return c!=null&&Co(c,d,v4)}var M2=F0(function(c,d,y){d!=null&&typeof d.toString!="function"&&(d=Md.call(d)),c[d]=y},E1(Fa)),YC=F0(function(c,d,y){d!=null&&typeof d.toString!="function"&&(d=Md.call(d)),er.call(c,d)?c[d].push(y):c[d]=[y]},Ft),Th=yn(Hd);function mi(c){return ri(c)?As(c):R0(c)}function $a(c){return ri(c)?As(c,!0):S4(c)}function qC(c,d){var y={};return d=Ft(d,3),vr(c,function(R,$,j){Os(y,d(R,$,j),R)}),y}function ZC(c,d){var y={};return d=Ft(d,3),vr(c,function(R,$,j){Os(y,$,d(R,$,j))}),y}var KC=xl(function(c,d,y){Ym(c,d,y)}),D2=xl(function(c,d,y,R){Ym(c,d,y,R)}),XC=Cl(function(c,d){var y={};if(c==null)return y;var R=!1;d=Dn(d,function(j){return j=Ms(j,c),R||(R=j.length>1),j}),Ki(c,lc(c),y),R&&(y=Ja(y,b|C|w,mn));for(var $=d.length;$--;)Yd(y,d[$]);return y});function QC(c,d){return P2(c,bh(Ft(d)))}var JC=Cl(function(c,d){return c==null?{}:L0(c,d)});function P2(c,d){if(c==null)return{};var y=Dn(lc(c),function(R){return[R]});return d=Ft(d),$t(c,y,function(R,$){return d(R,$[0])})}function h1(c,d,y){d=Ms(d,c);var R=-1,$=d.length;for($||($=1,c=n);++R<$;){var j=c==null?n:c[Pa(d[R])];j===n&&(R=$,j=y),c=Bs(j)?j.call(c):j}return c}function v1(c,d,y){return c==null?c:Fe(c,d,y)}function g1(c,d,y,R){return R=typeof R=="function"?R:n,c==null?c:Fe(c,d,y,R)}var Rh=eu(mi),I2=eu($a);function Cp(c,d,y){var R=un(c),$=R||zs(c)||au(c);if(d=Ft(d,4),y==null){var j=c&&c.constructor;$?y=R?new j:[]:wr(c)?y=Bs(j)?Xl(Dd(c)):{}:y={}}return($?Ot:vr)(c,function(Z,J,fe){return d(y,Z,J,fe)}),y}function wp(c,d){return c==null?!0:Yd(c,d)}function ew(c,d,y){return c==null?c:qm(c,d,Kd(y))}function $2(c,d,y,R){return R=typeof R=="function"?R:n,c==null?c:qm(c,d,Kd(y),R)}function kf(c){return c==null?[]:Jo(c,mi(c))}function tw(c){return c==null?[]:Jo(c,$a(c))}function F2(c,d,y){return y===n&&(y=d,d=n),y!==n&&(y=No(y),y=y===y?y:0),d!==n&&(d=No(d),d=d===d?d:0),Ql(No(c),d,y)}function nw(c,d,y){return d=El(d),y===n?(y=d,d=0):y=El(y),c=No(c),ci(c,d,y)}function rw(c,d,y){if(y&&typeof y!="boolean"&&pi(c,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof c=="boolean"&&(y=c,c=n)),c===n&&d===n?(c=0,d=1):(c=El(c),d===n?(d=c,c=0):d=El(d)),c>d){var R=c;c=d,d=R}if(y||c%1||d%1){var $=my();return ui(c+$*(d-c+ge("1e-"+(($+"").length-1))),d)}return So(c,d)}var z2=yf(function(c,d,y){return d=d.toLowerCase(),c+(y?Np(d):d)});function Np(c){return w1(Xn(c).toLowerCase())}function Ep(c){return c=Xn(c),c&&c.replace(Ei,Q3).replace(Jr,"")}function Ah(c,d,y){c=Xn(c),d=oa(d);var R=c.length;y=y===n?R:Ql(an(y),0,R);var $=y;return y-=d.length,y>=0&&c.slice(y,$)==d}function _p(c){return c=Xn(c),c&&xr.test(c)?c.replace(Rn,J3):c}function Tp(c){return c=Xn(c),c&&qa.test(c)?c.replace(Vi,"\\$&"):c}var iw=yf(function(c,d,y){return c+(y?"-":"")+d.toLowerCase()}),b1=yf(function(c,d,y){return c+(y?" ":"")+d.toLowerCase()}),y1=Py("toLowerCase");function aw(c,d,y){c=Xn(c),d=an(d);var R=d?Zu(c):0;if(!d||R>=d)return c;var $=(d-R)/2;return oc(Id($),y)+c+oc(pl($),y)}function ow(c,d,y){c=Xn(c),d=an(d);var R=d?Zu(c):0;return d&&R<d?c+oc(d-R,y):c}function YT(c,d,y){c=Xn(c),d=an(d);var R=d?Zu(c):0;return d&&R<d?oc(d-R,y)+c:c}function sw(c,d,y){return y||d==null?d=0:d&&(d=+d),py(Xn(c).replace(Hi,""),d||0)}function lw(c,d,y){return(y?pi(c,d,y):d===n)?d=1:d=an(d),k0(Xn(c),d)}function uw(){var c=arguments,d=Xn(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var cw=yf(function(c,d,y){return c+(y?"_":"")+d.toLowerCase()});function fw(c,d,y){return y&&typeof y!="number"&&pi(c,d,y)&&(d=y=n),y=y===n?we:y>>>0,y?(c=Xn(c),c&&(typeof d=="string"||d!=null&&!xh(d))&&(d=oa(d),!d&&Zc(c))?Ds(es(c),0,y):c.split(d,y)):[]}var dw=yf(function(c,d,y){return c+(y?" ":"")+w1(d)});function x1(c,d,y){return c=Xn(c),y=y==null?0:Ql(an(y),0,c.length),d=oa(d),c.slice(y,y+d.length)==d}function pw(c,d,y){var R=B.templateSettings;y&&pi(c,d,y)&&(d=n),c=Xn(c),d=mc({},d,R,Da);var $=mc({},d.imports,R.imports,Da),j=mi($),Z=Jo($,j),J,fe,Pe=0,Oe=d.interpolate||go,Ie="__p += '",Qe=fl((d.escape||go).source+"|"+Oe.source+"|"+(Oe===bs?Zt:go).source+"|"+(d.evaluate||go).source+"|$","g"),gt="//# sourceURL="+(er.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cl+"]")+`
`;c.replace(Qe,function(Vt,xn,On,Xi,gr,ua){return On||(On=Xi),Ie+=c.slice(Pe,ua).replace(Hu,s0),xn&&(J=!0,Ie+=`' +
__e(`+xn+`) +
'`),gr&&(fe=!0,Ie+=`';
`+gr+`;
__p += '`),On&&(Ie+=`' +
((__t = (`+On+`)) == null ? '' : __t) +
'`),Pe=ua+Vt.length,Vt}),Ie+=`';
`;var zt=er.call(d,"variable")&&d.variable;if(!zt)Ie=`with (obj) {
`+Ie+`
}
`;else if(Cn.test(zt))throw new rn(p);Ie=(fe?Ie.replace(Dr,""):Ie).replace(Mn,"$1").replace(wi,"$1;"),Ie="function("+(zt||"obj")+`) {
`+(zt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ie+`return __p
}`;var hn=U2(function(){return Zn(j,gt+"return "+Ie).apply(n,Z)});if(hn.source=Ie,ru(hn))throw hn;return hn}function mw(c){return Xn(c).toLowerCase()}function S1(c){return Xn(c).toUpperCase()}function hw(c,d,y){if(c=Xn(c),c&&(y||d===n))return Ts(c);if(!c||!(d=oa(d)))return c;var R=es(c),$=es(d),j=Od(R,$),Z=ey(R,$)+1;return Ds(R,j,Z).join("")}function C1(c,d,y){if(c=Xn(c),c&&(y||d===n))return c.slice(0,iy(c)+1);if(!c||!(d=oa(d)))return c;var R=es(c),$=ey(R,es(d))+1;return Ds(R,0,$).join("")}function B2(c,d,y){if(c=Xn(c),c&&(y||d===n))return c.replace(Hi,"");if(!c||!(d=oa(d)))return c;var R=es(c),$=Od(R,es(d));return Ds(R,$).join("")}function vw(c,d){var y=ae,R=pe;if(wr(d)){var $="separator"in d?d.separator:$;y="length"in d?an(d.length):y,R="omission"in d?oa(d.omission):R}c=Xn(c);var j=c.length;if(Zc(c)){var Z=es(c);j=Z.length}if(y>=j)return c;var J=y-Zu(R);if(J<1)return R;var fe=Z?Ds(Z,0,J).join(""):c.slice(0,J);if($===n)return fe+R;if(Z&&(J+=fe.length-J),xh($)){if(c.slice(J).search($)){var Pe,Oe=fe;for($.global||($=fl($.source,Xn(Vn.exec($))+"g")),$.lastIndex=0;Pe=$.exec(Oe);)var Ie=Pe.index;fe=fe.slice(0,Ie===n?J:Ie)}}else if(c.indexOf(oa($),J)!=J){var Qe=fe.lastIndexOf($);Qe>-1&&(fe=fe.slice(0,Qe))}return fe+R}function gw(c){return c=Xn(c),c&&Ni.test(c)?c.replace(jn,n4):c}var bw=yf(function(c,d,y){return c+(y?" ":"")+d.toUpperCase()}),w1=Py("toUpperCase");function N1(c,d,y){return c=Xn(c),d=y?n:d,d===n?t4(c)?a4(c):a0(c):c.match(d)||[]}var U2=yn(function(c,d){try{return yt(c,n,d)}catch(y){return ru(y)?y:new rn(y)}}),yw=Cl(function(c,d){return Ot(d,function(y){y=Pa(y),Os(c,y,vh(c[y],c))}),c});function xw(c){var d=c==null?0:c.length,y=Ft();return c=d?Dn(c,function(R){if(typeof R[1]!="function")throw new Qa(u);return[y(R[0]),R[1]]}):[],yn(function(R){for(var $=-1;++$<d;){var j=c[$];if(yt(j[0],this,R))return yt(j[1],this,R)}})}function Sw(c){return p4(Ja(c,b))}function E1(c){return function(){return c}}function Cw(c,d){return c==null||c!==c?d:c}var ww=Iy(),_1=Iy(!0);function Fa(c){return c}function T1(c){return Ty(typeof c=="function"?c:Ja(c,b))}function Nw(c){return Ay(Ja(c,b))}function Ew(c,d){return O0(c,Ja(d,b))}var _w=yn(function(c,d){return function(y){return Hd(y,c,d)}}),Tw=yn(function(c,d){return function(y){return Hd(c,y,d)}});function R1(c,d,y){var R=mi(d),$=eo(d,R);y==null&&!(wr(d)&&($.length||!R.length))&&(y=d,d=c,c=this,$=eo(d,mi(d)));var j=!(wr(y)&&"chain"in y)||!!y.chain,Z=Bs(c);return Ot($,function(J){var fe=d[J];c[J]=fe,Z&&(c.prototype[J]=function(){var Pe=this.__chain__;if(j||Pe){var Oe=c(this.__wrapped__),Ie=Oe.__actions__=fi(this.__actions__);return Ie.push({func:fe,args:arguments,thisArg:c}),Oe.__chain__=Pe,Oe}return fe.apply(c,ka([this.value()],arguments))})}),c}function Rw(){return Kt._===this&&(Kt._=sy),this}function A1(){}function j2(c){return c=an(c),yn(function(d){return Ly(d,c)})}var O1=z0(Dn),Aw=z0(La),Ow=z0(i0);function Rp(c){return sh(c)?Rd(Pa(c)):wn(c)}function Ap(c){return function(d){return c==null?n:Li(c,d)}}var Lw=B0(),kw=B0(!0);function L1(){return[]}function k1(){return!1}function Mw(){return{}}function Dw(){return""}function Pw(){return!0}function V2(c,d){if(c=an(c),c<1||c>le)return[];var y=we,R=ui(c,we);d=Ft(d),c-=we;for(var $=Lm(R,d);++y<c;)d(y);return $}function Iw(c){return un(c)?Dn(c,Pa):Nn(c)?[c]:fi(Y0(Xn(c)))}function $w(c){var d=++ay;return Xn(c)+d}var Fw=rh(function(c,d){return c+d},0),zw=Sl("ceil"),Bw=rh(function(c,d){return c/d},1),Uw=Sl("floor");function jw(c){return c&&c.length?Ls(c,Fa,N0):n}function Vw(c,d){return c&&c.length?Ls(c,Ft(d,2),N0):n}function Hw(c){return Jb(c,Fa)}function Ww(c,d){return Jb(c,Ft(d,2))}function Gw(c){return c&&c.length?Ls(c,Fa,A0):n}function Yw(c,d){return c&&c.length?Ls(c,Ft(d,2),A0):n}var qw=rh(function(c,d){return c*d},1),Zw=Sl("round"),Kw=rh(function(c,d){return c-d},0);function Xw(c){return c&&c.length?qc(c,Fa):0}function Mf(c,d){return c&&c.length?qc(c,Ft(d,2)):0}return B.after=wC,B.ary=a1,B.assign=Ia,B.assignIn=Of,B.assignInWith=mc,B.assignWith=ou,B.at=A2,B.before=h2,B.bind=vh,B.bindAll=yw,B.bindKey=o1,B.castArray=S2,B.chain=o2,B.chunk=uh,B.compact=Yy,B.concat=k4,B.cond=xw,B.conforms=Sw,B.constant=E1,B.countBy=u2,B.create=hc,B.curry=v2,B.curryRight=g2,B.debounce=b2,B.defaults=vc,B.defaultsDeep=wh,B.defer=NC,B.delay=EC,B.difference=op,B.differenceBy=sp,B.differenceWith=Nf,B.drop=q0,B.dropRight=qy,B.dropRightWhile=M4,B.dropWhile=D4,B.fill=P4,B.filter=uC,B.flatMap=fC,B.flatMapDeep=dC,B.flatMapDepth=d2,B.flatten=Ky,B.flattenDeep=fh,B.flattenDepth=Z0,B.flip=_C,B.flow=ww,B.flowRight=_1,B.fromPairs=Xy,B.functions=k2,B.functionsIn=GC,B.groupBy=_f,B.initial=$4,B.intersection=F4,B.intersectionBy=lp,B.intersectionWith=K0,B.invert=M2,B.invertBy=YC,B.invokeMap=mC,B.iteratee=T1,B.keyBy=hC,B.keys=mi,B.keysIn=$a,B.map=hh,B.mapKeys=qC,B.mapValues=ZC,B.matches=Nw,B.matchesProperty=Ew,B.memoize=gh,B.merge=KC,B.mergeWith=D2,B.method=_w,B.methodOf=Tw,B.mixin=R1,B.negate=bh,B.nthArg=j2,B.omit=XC,B.omitBy=QC,B.once=TC,B.orderBy=vC,B.over=O1,B.overArgs=RC,B.overEvery=Aw,B.overSome=Ow,B.partial=la,B.partialRight=Tf,B.partition=gC,B.pick=JC,B.pickBy=P2,B.property=Rp,B.propertyOf=Ap,B.pull=e2,B.pullAll=cp,B.pullAllBy=dh,B.pullAllWith=t2,B.pullAt=ro,B.range=Lw,B.rangeRight=kw,B.rearg=y2,B.reject=yC,B.remove=Ef,B.rest=AC,B.reverse=fp,B.sampleSize=hp,B.set=v1,B.setWith=g1,B.shuffle=vp,B.slice=dp,B.sortBy=CC,B.sortedUniq=n2,B.sortedUniqBy=j4,B.split=fw,B.spread=x2,B.tail=V4,B.take=H4,B.takeRight=J0,B.takeRightWhile=W4,B.takeWhile=G4,B.tap=iC,B.throttle=OC,B.thru=mh,B.toArray=Af,B.toPairs=Rh,B.toPairsIn=I2,B.toPath=Iw,B.toPlainObject=d1,B.transform=Cp,B.unary=LC,B.union=Y4,B.unionBy=q4,B.unionWith=Z4,B.uniq=r2,B.uniqBy=K4,B.uniqWith=X4,B.unset=wp,B.unzip=e1,B.unzipWith=i2,B.update=ew,B.updateWith=$2,B.values=kf,B.valuesIn=tw,B.without=Q4,B.words=N1,B.wrap=kC,B.xor=J4,B.xorBy=t1,B.xorWith=eC,B.zip=tC,B.zipObject=nC,B.zipObjectDeep=a2,B.zipWith=rC,B.entries=Rh,B.entriesIn=I2,B.extend=Of,B.extendWith=mc,R1(B,B),B.add=Fw,B.attempt=U2,B.camelCase=z2,B.capitalize=Np,B.ceil=zw,B.clamp=F2,B.clone=C2,B.cloneDeep=DC,B.cloneDeepWith=w2,B.cloneWith=MC,B.conformsTo=s1,B.deburr=Ep,B.defaultTo=Cw,B.divide=Bw,B.endsWith=Ah,B.eq=rs,B.escape=_p,B.escapeRegExp=Tp,B.every=c2,B.find=f2,B.findIndex=Zy,B.findKey=p1,B.findLast=cC,B.findLastIndex=ch,B.findLastKey=Nh,B.floor=Uw,B.forEach=r1,B.forEachRight=i1,B.forIn=Sp,B.forInRight=O2,B.forOwn=Eh,B.forOwnRight=L2,B.get=m1,B.gt=PC,B.gte=IC,B.has=_h,B.hasIn=Lf,B.head=Qy,B.identity=Fa,B.includes=pC,B.indexOf=I4,B.inRange=nw,B.invoke=Th,B.isArguments=fc,B.isArray=un,B.isArrayBuffer=$C,B.isArrayLike=ri,B.isArrayLikeObject=Lr,B.isBoolean=gp,B.isBuffer=zs,B.isDate=FC,B.isElement=zC,B.isEmpty=N2,B.isEqual=BC,B.isEqualWith=yh,B.isError=ru,B.isFinite=l1,B.isFunction=Bs,B.isInteger=bp,B.isLength=yp,B.isMap=u1,B.isMatch=E2,B.isMatchWith=_2,B.isNaN=iu,B.isNative=UC,B.isNil=VC,B.isNull=jC,B.isNumber=Rf,B.isObject=wr,B.isObjectLike=kr,B.isPlainObject=dc,B.isRegExp=xh,B.isSafeInteger=HC,B.isSet=c1,B.isString=Sh,B.isSymbol=Nn,B.isTypedArray=au,B.isUndefined=Ch,B.isWeakMap=xp,B.isWeakSet=T2,B.join=up,B.kebabCase=iw,B.last=wo,B.lastIndexOf=z4,B.lowerCase=b1,B.lowerFirst=y1,B.lt=R2,B.lte=f1,B.max=jw,B.maxBy=Vw,B.mean=Hw,B.meanBy=Ww,B.min=Gw,B.minBy=Yw,B.stubArray=L1,B.stubFalse=k1,B.stubObject=Mw,B.stubString=Dw,B.stubTrue=Pw,B.multiply=qw,B.nth=Jy,B.noConflict=Rw,B.noop=A1,B.now=cc,B.pad=aw,B.padEnd=ow,B.padStart=YT,B.parseInt=sw,B.random=rw,B.reduce=p2,B.reduceRight=bC,B.repeat=lw,B.replace=uw,B.result=h1,B.round=Zw,B.runInContext=ce,B.sample=m2,B.size=xC,B.snakeCase=cw,B.some=SC,B.sortedIndex=B4,B.sortedIndexBy=X0,B.sortedIndexOf=Q0,B.sortedLastIndex=pp,B.sortedLastIndexBy=U4,B.sortedLastIndexOf=ph,B.startCase=dw,B.startsWith=x1,B.subtract=Kw,B.sum=Xw,B.sumBy=Mf,B.template=pw,B.times=V2,B.toFinite=El,B.toInteger=an,B.toLength=pc,B.toLower=mw,B.toNumber=No,B.toSafeInteger=WC,B.toString=Xn,B.toUpper=S1,B.trim=hw,B.trimEnd=C1,B.trimStart=B2,B.truncate=vw,B.unescape=gw,B.uniqueId=$w,B.upperCase=bw,B.upperFirst=w1,B.each=r1,B.eachRight=i1,B.first=Qy,R1(B,function(){var c={};return vr(B,function(d,y){er.call(B.prototype,y)||(c[y]=d)}),c}(),{chain:!1}),B.VERSION=i,Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Ot(["drop","take"],function(c,d){An.prototype[c]=function(y){y=y===n?1:Gr(an(y),0);var R=this.__filtered__&&!d?new An(this):this.clone();return R.__filtered__?R.__takeCount__=ui(y,R.__takeCount__):R.__views__.push({size:ui(y,we),type:c+(R.__dir__<0?"Right":"")}),R},An.prototype[c+"Right"]=function(y){return this.reverse()[c](y).reverse()}}),Ot(["filter","map","takeWhile"],function(c,d){var y=d+1,R=y==ee||y==Ce;An.prototype[c]=function($){var j=this.clone();return j.__iteratees__.push({iteratee:Ft($,3),type:y}),j.__filtered__=j.__filtered__||R,j}}),Ot(["head","last"],function(c,d){var y="take"+(d?"Right":"");An.prototype[c]=function(){return this[y](1).value()[0]}}),Ot(["initial","tail"],function(c,d){var y="drop"+(d?"":"Right");An.prototype[c]=function(){return this.__filtered__?new An(this):this[y](1)}}),An.prototype.compact=function(){return this.filter(Fa)},An.prototype.find=function(c){return this.filter(c).head()},An.prototype.findLast=function(c){return this.reverse().find(c)},An.prototype.invokeMap=yn(function(c,d){return typeof c=="function"?new An(this):this.map(function(y){return Hd(y,c,d)})}),An.prototype.reject=function(c){return this.filter(bh(Ft(c)))},An.prototype.slice=function(c,d){c=an(c);var y=this;return y.__filtered__&&(c>0||d<0)?new An(y):(c<0?y=y.takeRight(-c):c&&(y=y.drop(c)),d!==n&&(d=an(d),y=d<0?y.dropRight(-d):y.take(d-c)),y)},An.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},An.prototype.toArray=function(){return this.take(we)},vr(An.prototype,function(c,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),R=/^(?:head|last)$/.test(d),$=B[R?"take"+(d=="last"?"Right":""):d],j=R||/^find/.test(d);!$||(B.prototype[d]=function(){var Z=this.__wrapped__,J=R?[1]:arguments,fe=Z instanceof An,Pe=J[0],Oe=fe||un(Z),Ie=function(xn){var On=$.apply(B,ka([xn],J));return R&&Qe?On[0]:On};Oe&&y&&typeof Pe=="function"&&Pe.length!=1&&(fe=Oe=!1);var Qe=this.__chain__,gt=!!this.__actions__.length,zt=j&&!Qe,hn=fe&&!gt;if(!j&&Oe){Z=hn?Z:new An(this);var Vt=c.apply(Z,J);return Vt.__actions__.push({func:mh,args:[Ie],thisArg:n}),new xo(Vt,Qe)}return zt&&hn?c.apply(this,J):(Vt=this.thru(Ie),zt?R?Vt.value()[0]:Vt.value():Vt)})}),Ot(["pop","push","shift","sort","splice","unshift"],function(c){var d=dl[c],y=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",R=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var $=arguments;if(R&&!this.__chain__){var j=this.value();return d.apply(un(j)?j:[],$)}return this[y](function(Z){return d.apply(un(Z)?Z:[],$)})}}),vr(An.prototype,function(c,d){var y=B[d];if(y){var R=y.name+"";er.call(of,R)||(of[R]=[]),of[R].push({name:d,func:y})}}),of[xf(n,I).name]=[{name:"wrapper",func:n}],An.prototype.clone=Bt,An.prototype.reverse=uf,An.prototype.value=Yr,B.prototype.at=aC,B.prototype.chain=oC,B.prototype.commit=sC,B.prototype.next=s2,B.prototype.plant=mp,B.prototype.reverse=lC,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=l2,B.prototype.first=B.prototype.head,Pd&&(B.prototype[Pd]=n1),B},Xc=o4();L?((L.exports=Xc)._=Xc,S._=Xc):Kt._=Xc}).call(Dc)})(Ga,Ga.exports);const yb=Ga.exports,J0e={currentImageUuid:"",images:[],areMoreImagesAvailable:!0},wU=xT({name:"gallery",initialState:J0e,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(u=>u.uuid===n),s=Ga.exports.clamp(o,0,i.length-1);e.currentImage=i.length?i[s]:void 0,e.currentImageUuid=i.length?i[s].uuid:""}e.images=i},addImage:(e,t)=>{const n=t.payload,{uuid:i,url:o,mtime:s}=n;e.images.find(u=>u.url===o&&u.mtime===s)||(e.images.unshift(n),e.currentImageUuid=i,e.intermediateImage=void 0,e.currentImage=n,e.latest_mtime=s)},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(yb.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(yb.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){const o=n.filter(s=>!e.images.find(u=>u.url===s.url&&u.mtime===s.mtime));if(e.images=e.images.concat(o).sort((s,u)=>u.mtime-s.mtime),!e.currentImage){const s=n[0];e.currentImage=s,e.currentImageUuid=s.uuid}e.latest_mtime=n[0].mtime,e.earliest_mtime=n[n.length-1].mtime}i!==void 0&&(e.areMoreImagesAvailable=i)}}}),{addImage:u7,clearIntermediateImage:AD,removeImage:e1e,setCurrentImage:t1e,addGalleryImages:n1e,setIntermediateImage:r1e,selectNextImage:NU,selectPrevImage:EU}=wU.actions,i1e=wU.reducer,a1e={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},o1e=a1e,_U=xT({name:"system",initialState:o1e,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,u={timestamp:n,message:i,level:o||"info"};e.log.push(u)},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:s1e,setIsProcessing:rS,addLogEntry:Lo,setShouldShowLogViewer:OD,setIsConnected:LD,setSocketId:USe,setShouldConfirmOnDelete:TU,setOpenAccordions:l1e,setSystemStatus:u1e,setCurrentStatus:kD,setSystemConfig:c1e,setShouldDisplayGuides:f1e,processingCanceled:d1e,errorOccurred:p1e,errorSeen:RU}=_U.actions,m1e=_U.reducer,Bu=Object.create(null);Bu.open="0";Bu.close="1";Bu.ping="2";Bu.pong="3";Bu.message="4";Bu.upgrade="5";Bu.noop="6";const iS=Object.create(null);Object.keys(Bu).forEach(e=>{iS[Bu[e]]=e});const h1e={type:"error",data:"parser error"},v1e=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",g1e=typeof ArrayBuffer=="function",b1e=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,AU=({type:e,data:t},n,i)=>v1e&&t instanceof Blob?n?i(t):MD(t,i):g1e&&(t instanceof ArrayBuffer||b1e(t))?n?i(t):MD(new Blob([t]),i):i(Bu[e]+(t||"")),MD=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+i)},n.readAsDataURL(e)},DD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<DD.length;e++)Mg[DD.charCodeAt(e)]=e;const y1e=e=>{let t=e.length*.75,n=e.length,i,o=0,s,u,p,m;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),g=new Uint8Array(v);for(i=0;i<n;i+=4)s=Mg[e.charCodeAt(i)],u=Mg[e.charCodeAt(i+1)],p=Mg[e.charCodeAt(i+2)],m=Mg[e.charCodeAt(i+3)],g[o++]=s<<2|u>>4,g[o++]=(u&15)<<4|p>>2,g[o++]=(p&3)<<6|m&63;return v},x1e=typeof ArrayBuffer=="function",OU=(e,t)=>{if(typeof e!="string")return{type:"message",data:LU(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:S1e(e.substring(1),t)}:iS[n]?e.length>1?{type:iS[n],data:e.substring(1)}:{type:iS[n]}:h1e},S1e=(e,t)=>{if(x1e){const n=y1e(e);return LU(n,t)}else return{base64:!0,data:e}},LU=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},kU=String.fromCharCode(30),C1e=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((s,u)=>{AU(s,!1,p=>{i[u]=p,++o===n&&t(i.join(kU))})})},w1e=(e,t)=>{const n=e.split(kU),i=[];for(let o=0;o<n.length;o++){const s=OU(n[o],t);if(i.push(s),s.type==="error")break}return i},MU=4;function Ci(e){if(e)return N1e(e)}function N1e(e){for(var t in Ci.prototype)e[t]=Ci.prototype[t];return e}Ci.prototype.on=Ci.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ci.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ci.prototype.off=Ci.prototype.removeListener=Ci.prototype.removeAllListeners=Ci.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};Ci.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};Ci.prototype.emitReserved=Ci.prototype.emit;Ci.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ci.prototype.hasListeners=function(e){return!!this.listeners(e).length};const cd=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function DU(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const E1e=setTimeout,_1e=clearTimeout;function U3(e,t){t.useNativeTimers?(e.setTimeoutFn=E1e.bind(cd),e.clearTimeoutFn=_1e.bind(cd)):(e.setTimeoutFn=setTimeout.bind(cd),e.clearTimeoutFn=clearTimeout.bind(cd))}const T1e=1.33;function R1e(e){return typeof e=="string"?A1e(e):Math.ceil((e.byteLength||e.size)*T1e)}function A1e(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 O1e extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class PU extends Ci{constructor(t){super(),this.writable=!1,U3(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,i){return super.emitReserved("error",new O1e(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=OU(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const IU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c8=64,L1e={};let PD=0,N5=0,ID;function $D(e){let t="";do t=IU[e%c8]+t,e=Math.floor(e/c8);while(e>0);return t}function $U(){const e=$D(+new Date);return e!==ID?(PD=0,ID=e):e+"."+$D(PD++)}for(;N5<c8;N5++)L1e[IU[N5]]=N5;function FU(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function k1e(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let s=n[i].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}let zU=!1;try{zU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const M1e=zU;function BU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||M1e))return new XMLHttpRequest}catch{}if(!t)try{return new cd[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function D1e(){}const P1e=function(){return new BU({xdomain:!1}).responseType!=null}();class I1e extends PU{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=P1e&&!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)};w1e(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,C1e(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]=$U()),!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=FU(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+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 Iu(this.uri(),t)}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}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 Iu extends Ci{constructor(t,n){super(),U3(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=DU(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 BU(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=Iu.requestsCount++,Iu.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=D1e,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Iu.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()}}Iu.requestsCount=0;Iu.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",FD);else if(typeof addEventListener=="function"){const e="onpagehide"in cd?"pagehide":"unload";addEventListener(e,FD,!1)}}function FD(){for(let e in Iu.requests)Iu.requests.hasOwnProperty(e)&&Iu.requests[e].abort()}const $1e=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),E5=cd.WebSocket||cd.MozWebSocket,zD=!0,F1e="arraybuffer",BD=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class z1e extends PU{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=BD?{}:DU(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=zD&&!BD?n?new E5(t,n):new E5(t):new E5(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||F1e,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;AU(i,this.supportsBinary,s=>{const u={};try{zD&&this.ws.send(s)}catch{}o&&$1e(()=>{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]=$U()),this.supportsBinary||(t.b64=1);const o=FU(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}check(){return!!E5}}const B1e={websocket:z1e,polling:I1e},U1e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,j1e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function f8(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=U1e.exec(e||""),s={},u=14;for(;u--;)s[j1e[u]]=o[u]||"";return n!=-1&&i!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=V1e(s,s.path),s.queryKey=H1e(s,s.query),s}function V1e(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 H1e(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,s){o&&(n[o]=s)}),n}class ad extends Ci{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=f8(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=f8(n.host).host),U3(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=k1e(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 B1e[t](i)}open(){let t;if(this.opts.rememberUpgrade&&ad.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;ad.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",b=>{if(!i)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ad.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=n.name,this.emitReserved("upgradeError",C)}}))};function s(){i||(i=!0,g(),n.close(),n=null)}const u=b=>{const C=new Error("probe error: "+b);C.transport=n.name,s(),this.emitReserved("upgradeError",C)};function p(){u("transport closed")}function m(){u("socket closed")}function v(b){n&&b.name!==n.name&&s()}const g=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",p),this.off("close",m),this.off("upgrading",v)};n.once("open",o),n.once("error",u),n.once("close",p),this.once("close",m),this.once("upgrading",v),n.open()}onOpen(){if(this.readyState="open",ad.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+=R1e(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 s={type:t,data:n,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),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){ad.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}}ad.protocol=MU;function W1e(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=f8(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 s=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}const G1e=typeof ArrayBuffer=="function",Y1e=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,UU=Object.prototype.toString,q1e=typeof Blob=="function"||typeof Blob<"u"&&UU.call(Blob)==="[object BlobConstructor]",Z1e=typeof File=="function"||typeof File<"u"&&UU.call(File)==="[object FileConstructor]";function AT(e){return G1e&&(e instanceof ArrayBuffer||Y1e(e))||q1e&&e instanceof Blob||Z1e&&e instanceof File}function aS(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(aS(e[n]))return!0;return!1}if(AT(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return aS(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&aS(e[n]))return!0;return!1}function K1e(e){const t=[],n=e.data,i=e;return i.data=d8(n,t),i.attachments=t.length,{packet:i,buffers:t}}function d8(e,t){if(!e)return e;if(AT(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]=d8(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]=d8(e[i],t));return n}return e}function X1e(e,t){return e.data=p8(e.data,t),e.attachments=void 0,e}function p8(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]=p8(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=p8(e[n],t));return e}const Q1e=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 J1e{constructor(t){this.replacer=t}encode(t){return(t.type===qn.EVENT||t.type===qn.ACK)&&aS(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=K1e(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}class OT extends Ci{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 ege(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(AT(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 s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(s,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(s,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const s=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}i.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(OT.isPayloadValid(i.type,s))i.data=s;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 ege{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=X1e(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const tge=Object.freeze(Object.defineProperty({__proto__:null,protocol:Q1e,get PacketType(){return qn},Encoder:J1e,Decoder:OT},Symbol.toStringTag,{value:"Module"}));function Bl(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const nge=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class jU extends Ci{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=[Bl(t,"open",this.onopen.bind(this)),Bl(t,"packet",this.onpacket.bind(this)),Bl(t,"error",this.onerror.bind(this)),Bl(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(nge.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 u=this.ids++,p=n.pop();this._registerAckCallback(u,p),i.id=u}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 s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}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 e0(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}e0.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};e0.prototype.reset=function(){this.attempts=0};e0.prototype.setMin=function(e){this.ms=e};e0.prototype.setMax=function(e){this.max=e};e0.prototype.setJitter=function(e){this.jitter=e};class m8 extends Ci{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,U3(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 e0({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||tge;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 ad(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=Bl(n,"open",function(){i.onopen(),t&&t()}),s=Bl(n,"error",u=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",u),t?t(u):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const u=this._timeout;u===0&&o();const p=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},u);this.opts.autoUnref&&p.unref(),this.subs.push(function(){clearTimeout(p)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Bl(t,"ping",this.onping.bind(this)),Bl(t,"data",this.ondata.bind(this)),Bl(t,"error",this.onerror.bind(this)),Bl(t,"close",this.onclose.bind(this)),Bl(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 jU(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 wg={};function oS(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=W1e(e,t.path||"/socket.io"),i=n.source,o=n.id,s=n.path,u=wg[o]&&s in wg[o].nsps,p=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let m;return p?m=new m8(i,t):(wg[o]||(wg[o]=new m8(i,t)),m=wg[o]),n.query&&!t.query&&(t.query=n.queryKey),m.socket(n.path,t)}Object.assign(oS,{Manager:m8,Socket:jU,io:oS,connect:oS});let _5;const rge=new Uint8Array(16);function ige(){if(!_5&&(_5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_5))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _5(rge)}const xa=[];for(let e=0;e<256;++e)xa.push((e+256).toString(16).slice(1));function age(e,t=0){return(xa[e[t+0]]+xa[e[t+1]]+xa[e[t+2]]+xa[e[t+3]]+"-"+xa[e[t+4]]+xa[e[t+5]]+"-"+xa[e[t+6]]+xa[e[t+7]]+"-"+xa[e[t+8]]+xa[e[t+9]]+"-"+xa[e[t+10]]+xa[e[t+11]]+xa[e[t+12]]+xa[e[t+13]]+xa[e[t+14]]+xa[e[t+15]]).toLowerCase()}const oge=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),UD={randomUUID:oge};function T5(e,t,n){if(UD.randomUUID&&!t&&!e)return UD.randomUUID();e=e||{};const i=e.random||(e.rng||ige)();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 age(i)}var sge=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,lge=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,uge=/[^-+\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(jD[t]||t||jD.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(i=!0));var s=function(){return n?"getUTC":"get"},u=function(){return e[s()+"Date"]()},p=function(){return e[s()+"Day"]()},m=function(){return e[s()+"Month"]()},v=function(){return e[s()+"FullYear"]()},g=function(){return e[s()+"Hours"]()},b=function(){return e[s()+"Minutes"]()},C=function(){return e[s()+"Seconds"]()},w=function(){return e[s()+"Milliseconds"]()},T=function(){return n?0:e.getTimezoneOffset()},A=function(){return cge(e)},k=function(){return fge(e)},I={d:function(){return u()},dd:function(){return ss(u())},ddd:function(){return Ao.dayNames[p()]},DDD:function(){return VD({y:v(),m:m(),d:u(),_:s(),dayName:Ao.dayNames[p()],short:!0})},dddd:function(){return Ao.dayNames[p()+7]},DDDD:function(){return VD({y:v(),m:m(),d:u(),_:s(),dayName:Ao.dayNames[p()+7]})},m:function(){return m()+1},mm:function(){return ss(m()+1)},mmm:function(){return Ao.monthNames[m()]},mmmm:function(){return Ao.monthNames[m()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return ss(v(),4)},h:function(){return g()%12||12},hh:function(){return ss(g()%12||12)},H:function(){return g()},HH:function(){return ss(g())},M:function(){return b()},MM:function(){return ss(b())},s:function(){return C()},ss:function(){return ss(C())},l:function(){return ss(w(),3)},L:function(){return ss(Math.floor(w()/10))},t:function(){return g()<12?Ao.timeNames[0]:Ao.timeNames[1]},tt:function(){return g()<12?Ao.timeNames[2]:Ao.timeNames[3]},T:function(){return g()<12?Ao.timeNames[4]:Ao.timeNames[5]},TT:function(){return g()<12?Ao.timeNames[6]:Ao.timeNames[7]},Z:function(){return i?"GMT":n?"UTC":dge(e)},o:function(){return(T()>0?"-":"+")+ss(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)},p:function(){return(T()>0?"-":"+")+ss(Math.floor(Math.abs(T())/60),2)+":"+ss(Math.floor(Math.abs(T())%60),2)},S:function(){return["th","st","nd","rd"][u()%10>3?0:(u()%100-u()%10!=10)*u()%10]},W:function(){return A()},WW:function(){return ss(A())},N:function(){return k()}};return t.replace(sge,function(D){return D in I?I[D]():D.slice(1,D.length-1)})}var jD={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"},Ao={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"]},ss=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},VD=function(t){var n=t.y,i=t.m,o=t.d,s=t._,u=t.dayName,p=t.short,m=p===void 0?!1:p,v=new Date,g=new Date;g.setDate(g[s+"Date"]()-1);var b=new Date;b.setDate(b[s+"Date"]()+1);var C=function(){return v[s+"Date"]()},w=function(){return v[s+"Month"]()},T=function(){return v[s+"FullYear"]()},A=function(){return g[s+"Date"]()},k=function(){return g[s+"Month"]()},I=function(){return g[s+"FullYear"]()},D=function(){return b[s+"Date"]()},P=function(){return b[s+"Month"]()},F=function(){return b[s+"FullYear"]()};return T()===n&&w()===i&&C()===o?m?"Tdy":"Today":I()===n&&k()===i&&A()===o?m?"Ysd":"Yesterday":F()===n&&P()===i&&D()===o?m?"Tmw":"Tomorrow":u},cge=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 s=(n-i)/(864e5*7);return 1+Math.floor(s)},fge=function(t){var n=t.getDay();return n===0&&(n=7),n},dge=function(t){return(String(t).match(lge)||[""]).pop().replace(uge,"").replace(/GMT\+0000/g,"UTC")};const h8=mo("socketio/generateImage"),pge=mo("socketio/runESRGAN"),mge=mo("socketio/runFacetool"),hge=mo("socketio/deleteImage"),VU=mo("socketio/requestImages"),vge=mo("socketio/requestNewImages"),gge=mo("socketio/cancelProcessing"),bge=mo("socketio/uploadInitialImage");mo("socketio/uploadMaskImage");const yge=mo("socketio/requestSystemConfig"),xge=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(LD(!0)),t(kD("Connected")),n().gallery.latest_mtime?t(vge()):t(VU())}catch(i){console.error(i)}},onDisconnect:()=>{try{t(LD(!1)),t(kD("Disconnected")),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(i){console.error(i)}},onGenerationResult:i=>{try{const{url:o,mtime:s,metadata:u}=i,p=T5();t(u7({uuid:p,url:o,mtime:s,metadata:u})),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Image generated: ${o}`}))}catch(o){console.error(o)}},onIntermediateResult:i=>{try{const o=T5(),{url:s,metadata:u,mtime:p}=i;t(r1e({uuid:o,url:s,mtime:p,metadata:u})),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Intermediate image generated: ${s}`}))}catch(o){console.error(o)}},onPostprocessingResult:i=>{try{const{url:o,metadata:s,mtime:u}=i;t(u7({uuid:T5(),url:o,mtime:u,metadata:s})),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Postprocessed: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:i=>{try{t(rS(!0)),t(u1e(i))}catch(o){console.error(o)}},onError:i=>{const{message:o,additionalData:s}=i;try{t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(p1e()),t(AD())}catch(u){console.error(u)}},onGalleryImages:i=>{const{images:o,areMoreImagesAvailable:s}=i,u=o.map(p=>{const{url:m,metadata:v,mtime:g}=p;return{uuid:T5(),url:m,mtime:g,metadata:v}});t(n1e({images:u,areMoreImagesAvailable:s})),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(d1e());const{intermediateImage:i}=n().gallery;i&&(t(u7(i)),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Intermediate image saved: ${i.url}`})),t(AD())),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:i=>{const{url:o,uuid:s}=i;t(e1e(s));const{initialImagePath:u,maskPath:p}=n().options;u===o&&t(ym("")),p===o&&t(u8("")),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:i=>{const{url:o}=i;t(ym(o)),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:i=>{const{url:o}=i;t(u8(o)),t(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:i=>{t(c1e(i))}}},Sge=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],Cge=[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],wge=[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],Nge=[{key:"2x",value:2},{key:"4x",value:4}],LT=0,kT=4294967295,Ege=["gfpgan","codeformer"],HU=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),_ge=(e,t)=>{const{prompt:n,iterations:i,steps:o,cfgScale:s,threshold:u,perlin:p,height:m,width:v,sampler:g,seed:b,seamless:C,hiresFix:w,shouldUseInitImage:T,img2imgStrength:A,initialImagePath:k,maskPath:I,shouldFitToWidthHeight:D,shouldGenerateVariations:P,variationAmount:F,seedWeights:z,shouldRunESRGAN:q,upscalingLevel:Y,upscalingStrength:Q,shouldRunFacetool:ie,facetoolStrength:ae,codeformerFidelity:pe,facetoolType:$e,shouldRandomizeSeed:te}=e,{shouldDisplayInProgress:ee}=t,be={prompt:n,iterations:i,steps:o,cfg_scale:s,threshold:u,perlin:p,height:m,width:v,sampler_name:g,seed:b,seamless:C,hires_fix:w,progress_images:ee};be.seed=te?HU(LT,kT):b,T&&(be.init_img=k,be.strength=A,be.fit=D,I&&(be.init_mask=I)),P?(be.variation_amount=F,z&&(be.with_variations=$0e(z))):be.variation_amount=0;let Ce=!1,K=!1;return q&&(Ce={level:Y,strength:Q}),ie&&(K={type:$e,strength:ae},$e==="codeformer"&&(K.codeformer_fidelity=pe)),{generationParameters:be,esrganParameters:Ce,facetoolParameters:K}};var c7=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function f7(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function WU(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 GU(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 Tge(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}var MT={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,"-":c7?173:189,"=":c7?61:187,";":c7?59:186,"'":222,"[":219,"]":221,"\\":220},xd={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},v8={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Ca={16:!1,18:!1,17:!1,91:!1},yi={};for(var R5=1;R5<20;R5++)MT["f".concat(R5)]=111+R5;var $r=[],HD=!1,YU="all",qU=[],j3=function(t){return MT[t.toLowerCase()]||xd[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ZU(e){YU=e||"all"}function xb(){return YU||"all"}function Rge(){return $r.slice(0)}function Age(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 Oge(e){return typeof e=="string"&&(e=j3(e)),$r.indexOf(e)!==-1}function Lge(e,t){var n,i;e||(e=xb());for(var o in yi)if(Object.prototype.hasOwnProperty.call(yi,o))for(n=yi[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1):i++;xb()===e&&ZU(t||"all")}function kge(e){var t=e.keyCode||e.which||e.charCode,n=$r.indexOf(t);if(n>=0&&$r.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&$r.splice(0,$r.length),(t===93||t===224)&&(t=91),t in Ca){Ca[t]=!1;for(var i in xd)xd[i]===t&&(fs[i]=!1)}}function Mge(e){if(typeof e>"u")Object.keys(yi).forEach(function(u){return delete yi[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&d7(u)});else if(typeof e=="object")e.key&&d7(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],s=n[1];typeof o=="function"&&(s=o,o=""),d7({key:e,scope:o,method:s,splitKey:"+"})}}var d7=function(t){var n=t.key,i=t.scope,o=t.method,s=t.splitKey,u=s===void 0?"+":s,p=GU(n);p.forEach(function(m){var v=m.split(u),g=v.length,b=v[g-1],C=b==="*"?"*":j3(b);if(!!yi[C]){i||(i=xb());var w=g>1?WU(xd,v):[];yi[C]=yi[C].filter(function(T){var A=o?T.method===o:!0;return!(A&&T.scope===i&&Tge(T.mods,w))})}})};function WD(e,t,n,i){if(t.element===i){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in Ca)Object.prototype.hasOwnProperty.call(Ca,s)&&(!Ca[s]&&t.mods.indexOf(+s)>-1||Ca[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!Ca[16]&&!Ca[18]&&!Ca[17]&&!Ca[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 GD(e,t){var n=yi["*"],i=e.keyCode||e.which||e.charCode;if(!!fs.filter.call(this,e)){if((i===93||i===224)&&(i=91),$r.indexOf(i)===-1&&i!==229&&$r.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(T){var A=v8[T];e[T]&&$r.indexOf(A)===-1?$r.push(A):!e[T]&&$r.indexOf(A)>-1?$r.splice($r.indexOf(A),1):T==="metaKey"&&e[T]&&$r.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||($r=$r.slice($r.indexOf(A))))}),i in Ca){Ca[i]=!0;for(var o in xd)xd[o]===i&&(fs[o]=!0);if(!n)return}for(var s in Ca)Object.prototype.hasOwnProperty.call(Ca,s)&&(Ca[s]=e[v8[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&($r.indexOf(17)===-1&&$r.push(17),$r.indexOf(18)===-1&&$r.push(18),Ca[17]=!0,Ca[18]=!0);var u=xb();if(n)for(var p=0;p<n.length;p++)n[p].scope===u&&(e.type==="keydown"&&n[p].keydown||e.type==="keyup"&&n[p].keyup)&&WD(e,n[p],u,t);if(i in yi){for(var m=0;m<yi[i].length;m++)if((e.type==="keydown"&&yi[i][m].keydown||e.type==="keyup"&&yi[i][m].keyup)&&yi[i][m].key){for(var v=yi[i][m],g=v.splitKey,b=v.key.split(g),C=[],w=0;w<b.length;w++)C.push(j3(b[w]));C.sort().join("")===$r.sort().join("")&&WD(e,v,u,t)}}}}function Dge(e){return qU.indexOf(e)>-1}function fs(e,t,n){$r=[];var i=GU(e),o=[],s="all",u=document,p=0,m=!1,v=!0,g="+",b=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(u=t.element),t.keyup&&(m=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey)),typeof t=="string"&&(s=t);p<i.length;p++)e=i[p].split(g),o=[],e.length>1&&(o=WU(xd,e)),e=e[e.length-1],e=e==="*"?"*":j3(e),e in yi||(yi[e]=[]),yi[e].push({keyup:m,keydown:v,scope:s,mods:o,shortcut:i[p],method:n,key:i[p],splitKey:g,element:u});typeof u<"u"&&!Dge(u)&&window&&(qU.push(u),f7(u,"keydown",function(C){GD(C,u)},b),HD||(HD=!0,f7(window,"focus",function(){$r=[]},b)),f7(u,"keyup",function(C){GD(C,u),kge(C)},b))}function Pge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(yi).forEach(function(n){var i=yi[n].find(function(o){return o.scope===t&&o.shortcut===e});i&&i.method&&i.method()})}var p7={setScope:ZU,getScope:xb,deleteScope:Lge,getPressedKeyCodes:Rge,isPressed:Oge,filter:Age,trigger:Pge,unbind:Mge,keyMap:MT,modifier:xd,modifierMap:v8};for(var m7 in p7)Object.prototype.hasOwnProperty.call(p7,m7)&&(fs[m7]=p7[m7]);if(typeof window<"u"){var Ige=window.hotkeys;fs.noConflict=function(e){return e&&window.hotkeys===fs&&(window.hotkeys=Ige),fs},window.hotkeys=fs}fs.filter=function(){return!0};var KU=function(t,n){var i=t.target,o=i&&i.tagName;return Boolean(o&&n&&n.includes(o))},$ge=function(t){return KU(t,["INPUT","TEXTAREA","SELECT"])};function oi(e,t,n,i){n instanceof Array&&(i=n,n=void 0);var o=n||{},s=o.enableOnTags,u=o.filter,p=o.keyup,m=o.keydown,v=o.filterPreventDefault,g=v===void 0?!0:v,b=o.enabled,C=b===void 0?!0:b,w=o.enableOnContentEditable,T=w===void 0?!1:w,A=E.exports.useRef(null),k=E.exports.useCallback(function(I,D){var P,F;return u&&!u(I)?!g:$ge(I)&&!KU(I,s)||(P=I.target)!=null&&P.isContentEditable&&!T?!0:A.current===null||document.activeElement===A.current||(F=A.current)!=null&&F.contains(document.activeElement)?(t(I,D),!0):!1},i?[A,s,u].concat(i):[A,s,u]);return E.exports.useEffect(function(){if(!C){fs.unbind(e,k);return}return p&&m!==!0&&(n.keydown=!1),fs(e,n||{},k),function(){return fs.unbind(e,k)}},[k,e,C]),A}fs.isPressed;var h7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/InpaintingWIP.tsx";function Fge(){return N("div",{className:"work-in-progress inpainting-work-in-progress",children:[N("h1",{children:"Inpainting"},void 0,!1,{fileName:h7,lineNumber:6,columnNumber:7},this),N("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:h7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:h7,lineNumber:5,columnNumber:5},this)}var v7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/NodesWIP.tsx";function zge(){return N("div",{className:"work-in-progress nodes-work-in-progress",children:[N("h1",{children:"Nodes"},void 0,!1,{fileName:v7,lineNumber:6,columnNumber:7},this),N("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:v7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:v7,lineNumber:5,columnNumber:5},this)}var g7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/OutpaintingWIP.tsx";function Bge(){return N("div",{className:"work-in-progress outpainting-work-in-progress",children:[N("h1",{children:"Outpainting"},void 0,!1,{fileName:g7,lineNumber:6,columnNumber:7},this),N("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:g7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:g7,lineNumber:5,columnNumber:5},this)}var Ng="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/WorkInProgress/PostProcessingWIP.tsx";const Uge=()=>N("div",{className:"work-in-progress post-processing-work-in-progress",children:[N("h1",{children:"Post Processing"},void 0,!1,{fileName:Ng,lineNumber:6,columnNumber:7},void 0),N("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 and Image To Image tabs. You can also process images directly, using the image action buttons above the main image display."},void 0,!1,{fileName:Ng,lineNumber:7,columnNumber:7},void 0),N("p",{children:"A dedicated UI will be released soon to facilitate more advanced post processing workflows."},void 0,!1,{fileName:Ng,lineNumber:14,columnNumber:7},void 0),N("p",{children:"The Invoke AI Command Line Interface offers various other features including Embiggen."},void 0,!1,{fileName:Ng,lineNumber:18,columnNumber:7},void 0)]},void 0,!0,{fileName:Ng,lineNumber:5,columnNumber:5},void 0);var YD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/ImageToImageIcon.tsx";const jge=Gv({displayName:"ImageToImageIcon",viewBox:"0 0 3543 3543",path:N("g",{transform:"matrix(1.10943,0,0,1.10943,-206.981,-213.533)",children:N("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:YD,lineNumber:8,columnNumber:7},void 0)},void 0,!1,{fileName:YD,lineNumber:7,columnNumber:5},void 0)});var Vge="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/InpaintIcon.tsx";const Hge=Gv({displayName:"InpaintIcon",viewBox:"0 0 3543 3543",path:N("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:Vge,lineNumber:7,columnNumber:5},void 0)});var Wge="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/NodesIcon.tsx";const Gge=Gv({displayName:"NodesIcon",viewBox:"0 0 3543 3543",path:N("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:Wge,lineNumber:7,columnNumber:5},void 0)});var Yge="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/OutpaintIcon.tsx";const qge=Gv({displayName:"OutpaintIcon",viewBox:"0 0 3543 3543",path:N("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:Yge,lineNumber:7,columnNumber:5},void 0)});var Zge="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/PostprocessingIcon.tsx";const Kge=Gv({displayName:"PostprocessingIcon",viewBox:"0 0 3543 3543",path:N("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:Zge,lineNumber:7,columnNumber:5},void 0)});var qD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/icons/TextToImageIcon.tsx";const Xge=Gv({displayName:"TextToImageIcon",viewBox:"0 0 3543 3543",path:N("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",transform:"matrix(1.11667,0,0,1.1066,-231.131,-213.062)",children:N("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:qD,lineNumber:13,columnNumber:7},void 0)},void 0,!1,{fileName:qD,lineNumber:7,columnNumber:5},void 0)});var Ul=(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))(Ul||{});const Qge={[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 A5="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAISwitch.tsx";const Rm=e=>{const{label:t,isDisabled:n=!1,fontSize:i="md",size:o="md",width:s="auto",...u}=e;return N(wd,{isDisabled:n,width:s,children:N(yr,{justifyContent:"space-between",alignItems:"center",children:[t&&N(Cm,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:A5,lineNumber:30,columnNumber:11},void 0),N(F3,{size:o,className:"switch-button",...u},void 0,!1,{fileName:A5,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:A5,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:A5,lineNumber:27,columnNumber:5},void 0)};var b7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestore.tsx";function XU(){const e=bt(o=>o.system.isGFPGANAvailable),t=bt(o=>o.options.shouldRunFacetool),n=Sn();return N(yr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Restore Face"},void 0,!1,{fileName:b7,lineNumber:32,columnNumber:7},this),N(Rm,{isDisabled:!e,isChecked:t,onChange:o=>n(W0e(o.target.checked))},void 0,!1,{fileName:b7,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:b7,lineNumber:26,columnNumber:5},this)}var Zp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAINumberInput.tsx";const ZD=/^-?(0\.)?\.?$/,Gl=e=>{const{label:t,styleClass:n,isDisabled:i=!1,showStepper:o=!0,fontSize:s="1rem",size:u="sm",width:p,textAlign:m,isInvalid:v,value:g,onChange:b,min:C,max:w,isInteger:T=!0,...A}=e,[k,I]=E.exports.useState(String(g));E.exports.useEffect(()=>{!k.match(ZD)&&g!==Number(k)&&I(String(g))},[g,k]);const D=F=>{I(F),F.match(ZD)||b(T?Math.floor(Number(F)):Number(F))},P=F=>{const z=yb.clamp(T?Math.floor(Number(F.target.value)):Number(F.target.value),C,w);I(String(z)),b(z)};return N(wd,{isDisabled:i,isInvalid:v,className:`number-input ${n}`,children:[t&&N(Cm,{fontSize:s,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"number-input-label",children:t},void 0,!1,{fileName:Zp,lineNumber:103,columnNumber:9},void 0),N(Kz,{size:u,...A,className:"number-input-field",value:k,keepWithinRange:!0,clampValueOnBlur:!1,onChange:D,onBlur:P,children:[N(Xz,{fontSize:s,className:"number-input-entry",width:p,textAlign:m},void 0,!1,{fileName:Zp,lineNumber:123,columnNumber:9},void 0),N("div",{className:"number-input-stepper",style:o?{display:"block"}:{display:"none"},children:[N(eB,{className:"number-input-stepper-button"},void 0,!1,{fileName:Zp,lineNumber:133,columnNumber:11},void 0),N(Jz,{className:"number-input-stepper-button"},void 0,!1,{fileName:Zp,lineNumber:134,columnNumber:11},void 0)]},void 0,!0,{fileName:Zp,lineNumber:129,columnNumber:9},void 0)]},void 0,!0,{fileName:Zp,lineNumber:113,columnNumber:7},void 0)]},void 0,!0,{fileName:Zp,lineNumber:97,columnNumber:5},void 0)};var Eg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAISelect.tsx";const qb=e=>{const{label:t,isDisabled:n,validValues:i,size:o="sm",fontSize:s="md",styleClass:u,...p}=e;return N(wd,{isDisabled:n,className:`iai-select ${u}`,children:[N(Cm,{fontSize:s,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"iai-select-label",children:t},void 0,!1,{fileName:Eg,lineNumber:25,columnNumber:7},void 0),N(iB,{fontSize:s,size:o,...p,className:"iai-select-picker",children:i.map(m=>typeof m=="string"||typeof m=="number"?N("option",{value:m,className:"iai-select-option",children:m},m,!1,{fileName:Eg,lineNumber:42,columnNumber:13},void 0):N("option",{value:m.value,children:m.key},m.value,!1,{fileName:Eg,lineNumber:46,columnNumber:13},void 0))},void 0,!1,{fileName:Eg,lineNumber:34,columnNumber:7},void 0)]},void 0,!0,{fileName:Eg,lineNumber:24,columnNumber:5},void 0)};var O5="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestoreOptions.tsx";const Jge=Ya(e=>e.options,e=>({facetoolStrength:e.facetoolStrength,facetoolType:e.facetoolType,codeformerFidelity:e.codeformerFidelity}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),ebe=Ya(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),DT=()=>{const e=Sn(),{facetoolStrength:t,facetoolType:n,codeformerFidelity:i}=bt(Jge),{isGFPGANAvailable:o}=bt(ebe),s=m=>e(tS(m)),u=m=>e(xU(m)),p=m=>e(nS(m.target.value));return N(yr,{direction:"column",gap:2,children:[N(qb,{label:"Type",validValues:Ege.concat(),value:n,onChange:p},void 0,!1,{fileName:O5,lineNumber:71,columnNumber:7},void 0),N(Gl,{isDisabled:!o,label:"Strength",step:.05,min:0,max:1,onChange:s,value:t,width:"90px",isInteger:!1},void 0,!1,{fileName:O5,lineNumber:77,columnNumber:7},void 0),n==="codeformer"&&N(Gl,{isDisabled:!o,label:"Fidelity",step:.05,min:0,max:1,onChange:u,value:i,width:"90px",isInteger:!1},void 0,!1,{fileName:O5,lineNumber:89,columnNumber:9},void 0)]},void 0,!0,{fileName:O5,lineNumber:70,columnNumber:5},void 0)};var tbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageFit.tsx";function nbe(){const e=Sn(),t=bt(i=>i.options.shouldFitToWidthHeight);return N(Rm,{label:"Fit Initial Image To Output Size",isChecked:t,onChange:i=>e(SU(i.target.checked))},void 0,!1,{fileName:tbe,lineNumber:21,columnNumber:5},this)}var rbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageToImageStrength.tsx";function ibe(e){const{label:t="Strength",styleClass:n}=e,i=bt(u=>u.options.img2imgStrength),o=Sn();return N(Gl,{label:t,step:.01,min:.01,max:.99,onChange:u=>o(yU(u)),value:i,width:"90px",isInteger:!1,styleClass:n},void 0,!1,{fileName:rbe,lineNumber:26,columnNumber:5},this)}var abe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/RandomizeSeed.tsx";function obe(){const e=Sn(),t=bt(i=>i.options.shouldRandomizeSeed);return N(Rm,{label:"Randomize Seed",isChecked:t,onChange:i=>e(Y0e(i.target.checked))},void 0,!1,{fileName:abe,lineNumber:22,columnNumber:5},this)}var sbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Seed.tsx";function lbe(){const e=bt(s=>s.options.seed),t=bt(s=>s.options.shouldRandomizeSeed),n=bt(s=>s.options.shouldGenerateVariations),i=Sn(),o=s=>i(Yb(s));return N(Gl,{label:"Seed",step:1,precision:0,flexGrow:1,min:LT,max:kT,isDisabled:t,isInvalid:e<0&&n,onChange:o,value:e,width:"10rem"},void 0,!1,{fileName:sbe,lineNumber:25,columnNumber:5},this)}var KD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/ShuffleSeed.tsx";function ube(){const e=Sn(),t=bt(i=>i.options.shouldRandomizeSeed);return N(Fu,{size:"sm",isDisabled:t,onClick:()=>e(Yb(HU(LT,kT))),children:N("p",{children:"Shuffle"},void 0,!1,{fileName:KD,lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:KD,lineNumber:22,columnNumber:5},this)}var cbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Threshold.tsx";function fbe(){const e=Sn(),t=bt(i=>i.options.threshold);return N(Gl,{label:"Threshold",min:0,max:1e3,step:.1,onChange:i=>e(B0e(i)),value:t,isInteger:!1},void 0,!1,{fileName:cbe,lineNumber:19,columnNumber:5},this)}var dbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Perlin.tsx";function pbe(){const e=Sn(),t=bt(i=>i.options.perlin);return N(Gl,{label:"Perlin Noise",min:0,max:1,step:.05,onChange:i=>e(U0e(i)),value:t,isInteger:!1},void 0,!1,{fileName:dbe,lineNumber:17,columnNumber:5},this)}var kc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/SeedOptions.tsx";const QU=()=>N(yr,{gap:2,direction:"column",children:[N(obe,{},void 0,!1,{fileName:kc,lineNumber:14,columnNumber:7},void 0),N(yr,{gap:2,children:[N(lbe,{},void 0,!1,{fileName:kc,lineNumber:16,columnNumber:9},void 0),N(ube,{},void 0,!1,{fileName:kc,lineNumber:17,columnNumber:9},void 0)]},void 0,!0,{fileName:kc,lineNumber:15,columnNumber:7},void 0),N(yr,{gap:2,children:N(fbe,{},void 0,!1,{fileName:kc,lineNumber:20,columnNumber:9},void 0)},void 0,!1,{fileName:kc,lineNumber:19,columnNumber:7},void 0),N(yr,{gap:2,children:N(pbe,{},void 0,!1,{fileName:kc,lineNumber:23,columnNumber:9},void 0)},void 0,!1,{fileName:kc,lineNumber:22,columnNumber:7},void 0)]},void 0,!0,{fileName:kc,lineNumber:13,columnNumber:5},void 0);var y7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/Upscale.tsx";function JU(){const e=bt(o=>o.system.isESRGANAvailable),t=bt(o=>o.options.shouldRunESRGAN),n=Sn();return N(yr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Upscale"},void 0,!1,{fileName:y7,lineNumber:30,columnNumber:7},this),N(Rm,{isDisabled:!e,isChecked:t,onChange:o=>n(G0e(o.target.checked))},void 0,!1,{fileName:y7,lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:y7,lineNumber:24,columnNumber:5},this)}var x7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/UpscaleOptions.tsx";const mbe=Ya(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),hbe=Ya(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),PT=()=>{const e=Sn(),{upscalingLevel:t,upscalingStrength:n}=bt(mbe),{isESRGANAvailable:i}=bt(hbe);return N("div",{className:"upscale-options",children:[N(qb,{isDisabled:!i,label:"Scale",value:t,onChange:u=>e(s8(Number(u.target.value))),validValues:Nge},void 0,!1,{fileName:x7,lineNumber:64,columnNumber:7},void 0),N(Gl,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:u=>e(l8(u)),value:n,isInteger:!1},void 0,!1,{fileName:x7,lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:x7,lineNumber:63,columnNumber:5},void 0)};var vbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/GenerateVariations.tsx";function gbe(){const e=bt(i=>i.options.shouldGenerateVariations),t=Sn();return N(Rm,{isChecked:e,width:"auto",onChange:i=>t(j0e(i.target.checked))},void 0,!1,{fileName:vbe,lineNumber:22,columnNumber:5},this)}var S7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/Variations.tsx";function ej(){return N(yr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Variations"},void 0,!1,{fileName:S7,lineNumber:13,columnNumber:7},this),N(gbe,{},void 0,!1,{fileName:S7,lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:S7,lineNumber:7,columnNumber:5},this)}var C7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIInput.tsx";function bbe(e){const{label:t,styleClass:n,isDisabled:i=!1,fontSize:o="1rem",width:s,isInvalid:u,...p}=e;return N(wd,{className:`input ${n}`,isInvalid:u,isDisabled:i,flexGrow:1,children:[N(Cm,{fontSize:o,marginBottom:1,whiteSpace:"nowrap",className:"input-label",children:t},void 0,!1,{fileName:C7,lineNumber:30,columnNumber:7},this),N(k_,{...p,className:"input-entry",size:"sm",width:s},void 0,!1,{fileName:C7,lineNumber:38,columnNumber:7},this)]},void 0,!0,{fileName:C7,lineNumber:24,columnNumber:5},this)}var ybe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/SeedWeights.tsx";function xbe(){const e=bt(o=>o.options.seedWeights),t=bt(o=>o.options.shouldGenerateVariations),n=Sn(),i=o=>n(CU(o.target.value));return N(bbe,{label:"Seed Weights",value:e,isInvalid:t&&!(TT(e)||e===""),isDisabled:!t,onChange:i},void 0,!1,{fileName:ybe,lineNumber:26,columnNumber:5},this)}var Sbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationAmount.tsx";function Cbe(){const e=bt(o=>o.options.variationAmount),t=bt(o=>o.options.shouldGenerateVariations),n=Sn();return N(Gl,{label:"Variation Amount",value:e,step:.01,min:0,max:1,isDisabled:!t,onChange:o=>n(V0e(o)),isInteger:!1},void 0,!1,{fileName:Sbe,lineNumber:24,columnNumber:5},this)}var w7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationsOptions.tsx";const tj=()=>N(yr,{gap:2,direction:"column",children:[N(Cbe,{},void 0,!1,{fileName:w7,lineNumber:11,columnNumber:7},void 0),N(xbe,{},void 0,!1,{fileName:w7,lineNumber:12,columnNumber:7},void 0)]},void 0,!0,{fileName:w7,lineNumber:10,columnNumber:5},void 0);var N7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainAdvancedOptions.tsx";function nj(){const e=bt(i=>i.options.showAdvancedOptions),t=Sn();return N("div",{className:"advanced_options_checker",children:[N("input",{type:"checkbox",name:"advanced_options",id:"",onChange:i=>t(q0e(i.target.checked)),checked:e},void 0,!1,{fileName:N7,lineNumber:16,columnNumber:7},this),N("label",{htmlFor:"advanced_options",children:"Advanced Options"},void 0,!1,{fileName:N7,lineNumber:23,columnNumber:7},this)]},void 0,!0,{fileName:N7,lineNumber:15,columnNumber:5},this)}var wbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainCFGScale.tsx";function Nbe(){const e=Sn(),t=bt(i=>i.options.cfgScale);return N(Gl,{label:"CFG Scale",step:.5,min:1,max:30,onChange:i=>e(pU(i)),value:t,width:IT,fontSize:t0,styleClass:"main-option-block",textAlign:"center",isInteger:!1},void 0,!1,{fileName:wbe,lineNumber:14,columnNumber:5},this)}var Ebe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainHeight.tsx";function _be(){const e=bt(i=>i.options.height),t=Sn();return N(qb,{label:"Height",value:e,flexGrow:1,onChange:i=>t(mU(Number(i.target.value))),validValues:wge,fontSize:t0,styleClass:"main-option-block"},void 0,!1,{fileName:Ebe,lineNumber:16,columnNumber:5},this)}var Tbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainIterations.tsx";function Rbe(){const e=Sn(),t=bt(i=>i.options.iterations);return N(Gl,{label:"Images",step:1,min:1,max:9999,onChange:i=>e(z0e(i)),value:t,width:IT,fontSize:t0,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:Tbe,lineNumber:16,columnNumber:5},this)}var Abe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainSampler.tsx";function Obe(){const e=bt(i=>i.options.sampler),t=Sn();return N(qb,{label:"Sampler",value:e,onChange:i=>t(vU(i.target.value)),validValues:Sge,fontSize:t0,styleClass:"main-option-block"},void 0,!1,{fileName:Abe,lineNumber:16,columnNumber:5},this)}var Lbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainSteps.tsx";function kbe(){const e=Sn(),t=bt(i=>i.options.steps);return N(Gl,{label:"Steps",min:1,max:9999,step:1,onChange:i=>e(dU(i)),value:t,width:IT,fontSize:t0,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:Lbe,lineNumber:14,columnNumber:5},this)}var Mbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainWidth.tsx";function Dbe(){const e=bt(i=>i.options.width),t=Sn();return N(qb,{label:"Width",value:e,flexGrow:1,onChange:i=>t(hU(Number(i.target.value))),validValues:Cge,fontSize:t0,styleClass:"main-option-block"},void 0,!1,{fileName:Mbe,lineNumber:16,columnNumber:5},this)}var xu="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/MainOptions/MainOptions.tsx";const t0="0.9rem",IT="auto";function rj(){return N("div",{className:"main-options",children:N("div",{className:"main-options-list",children:[N("div",{className:"main-options-row",children:[N(Rbe,{},void 0,!1,{fileName:xu,lineNumber:16,columnNumber:11},this),N(kbe,{},void 0,!1,{fileName:xu,lineNumber:17,columnNumber:11},this),N(Nbe,{},void 0,!1,{fileName:xu,lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:xu,lineNumber:15,columnNumber:9},this),N("div",{className:"main-options-row",children:[N(Dbe,{},void 0,!1,{fileName:xu,lineNumber:21,columnNumber:11},this),N(_be,{},void 0,!1,{fileName:xu,lineNumber:22,columnNumber:11},this),N(Obe,{},void 0,!1,{fileName:xu,lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:xu,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:xu,lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:xu,lineNumber:13,columnNumber:5},this)}var ij={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},XD=_e.createContext&&_e.createContext(ij),sS="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",dd=globalThis&&globalThis.__assign||function(){return dd=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},dd.apply(this,arguments)},Pbe=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 aj(e){return e&&e.map(function(t,n){return _e.createElement(t.tag,dd({key:n},t.attr),aj(t.child))})}function Ar(e){return function(t){return N(Ibe,{...dd({attr:dd({},e.attr)},t),children:aj(e.child)},void 0,!1,{fileName:sS,lineNumber:39,columnNumber:12},this)}}function Ibe(e){var t=function(n){var i=e.attr,o=e.size,s=e.title,u=Pbe(e,["attr","size","title"]),p=o||n.size||"1em",m;return n.className&&(m=n.className),e.className&&(m=(m?m+" ":"")+e.className),N("svg",{...dd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:m,style:dd(dd({color:e.color||n.color},n.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),children:[s&&N("title",{children:s},void 0,!1,{fileName:sS,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:sS,lineNumber:55,columnNumber:12},this)};return XD!==void 0?N(XD.Consumer,{children:function(n){return t(n)}},void 0,!1,{fileName:sS,lineNumber:70,columnNumber:38},this):t(ij)}function $be(e){return Ar({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 Fbe(e){return Ar({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 oj(e){return Ar({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 zbe(e){return Ar({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 Bbe(e){return Ar({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 Ube(e){return Ar({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 sj(e){return Ar({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 jbe(e){return Ar({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 Vbe(e){return Ar({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 QD(e){return Ar({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 Hbe(e){return Ar({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 Wbe(e){return Ar({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 uv="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuidePopover.tsx";const Gbe=Ya(e=>e.system,e=>e.shouldDisplayGuides),Ybe=({children:e,feature:t})=>{const n=bt(Gbe),{text:i}=Qge[t];return n?N(iT,{trigger:"hover",children:[N(lT,{children:N(Js,{children:e},void 0,!1,{fileName:uv,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:uv,lineNumber:30,columnNumber:7},void 0),N(sT,{className:"guide-popover-content",maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[N(aT,{className:"guide-popover-arrow"},void 0,!1,{fileName:uv,lineNumber:39,columnNumber:9},void 0),N("div",{className:"guide-popover-guide-content",children:i},void 0,!1,{fileName:uv,lineNumber:40,columnNumber:9},void 0)]},void 0,!0,{fileName:uv,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:uv,lineNumber:29,columnNumber:5},void 0):N(ji,{},void 0,!1)};var E7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/GuideIcon.tsx";const qbe=Ke(({feature:e,icon:t=oj},n)=>N(Ybe,{feature:e,children:N(Js,{ref:n,children:N(vs,{as:t},void 0,!1,{fileName:E7,lineNumber:16,columnNumber:9},void 0)},void 0,!1,{fileName:E7,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:E7,lineNumber:14,columnNumber:5},void 0));var cv="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/AccordionItems/InvokeAccordionItem.tsx";function Zbe(e){const{header:t,feature:n,options:i}=e;return N(cF,{className:"advanced-settings-item",children:[N("h2",{children:N(lF,{className:"advanced-settings-header",children:[t,N(qbe,{feature:n},void 0,!1,{fileName:cv,lineNumber:25,columnNumber:11},this),N(uF,{},void 0,!1,{fileName:cv,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:cv,lineNumber:23,columnNumber:9},this)},void 0,!1,{fileName:cv,lineNumber:22,columnNumber:7},this),N(fF,{className:"advanced-settings-panel",children:i},void 0,!1,{fileName:cv,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:cv,lineNumber:21,columnNumber:5},this)}var JD="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OptionsAccordion.tsx";const lj=e=>{const{accordionInfo:t}=e,n=bt(u=>u.system.openAccordions),i=Sn();return N(dF,{defaultIndex:n,allowMultiple:!0,reduceMotion:!0,onChange:u=>i(l1e(u)),className:"advanced-settings",children:(()=>{const u=[];return t&&Object.keys(t).forEach(p=>{u.push(N(Zbe,{header:t[p].header,feature:t[p].feature,options:t[p].options},p,!1,{fileName:JD,lineNumber:40,columnNumber:11},void 0))}),u})()},void 0,!1,{fileName:JD,lineNumber:53,columnNumber:5},void 0)};var eP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/HiresOptions.tsx";const Kbe=()=>{const e=Sn(),t=bt(i=>i.options.hiresFix);return N(yr,{gap:2,direction:"column",children:N(Rm,{label:"High Res Optimization",fontSize:"md",isChecked:t,onChange:i=>e(bU(i.target.checked))},void 0,!1,{fileName:eP,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:eP,lineNumber:21,columnNumber:5},void 0)};var tP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/SeamlessOptions.tsx";const Xbe=()=>{const e=Sn(),t=bt(i=>i.options.seamless);return N(yr,{gap:2,direction:"column",children:N(Rm,{label:"Seamless tiling",fontSize:"md",isChecked:t,onChange:i=>e(gU(i.target.checked))},void 0,!1,{fileName:tP,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:tP,lineNumber:17,columnNumber:5},void 0)};var _7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/OutputOptions.tsx";const uj=()=>N(yr,{gap:2,direction:"column",children:[N(Xbe,{},void 0,!1,{fileName:_7,lineNumber:10,columnNumber:7},void 0),N(Kbe,{},void 0,!1,{fileName:_7,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:_7,lineNumber:9,columnNumber:5},void 0);var nP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIButton.tsx";const Dg=e=>{const{label:t,tooltip:n="",size:i="sm",...o}=e;return N(po,{label:n,children:N(Fu,{size:i,...o,children:t},void 0,!1,{fileName:nP,lineNumber:17,columnNumber:7},void 0)},void 0,!1,{fileName:nP,lineNumber:16,columnNumber:5},void 0)},rP=Ya(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:Ga.exports.isEqual}}),$T=Ya(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),cj=()=>{const{prompt:e}=bt(rP),{shouldGenerateVariations:t,seedWeights:n,maskPath:i,initialImagePath:o,seed:s,activeTab:u}=bt(rP),{isProcessing:p,isConnected:m}=bt($T);return E.exports.useMemo(()=>!(!e||Boolean(e.match(/^[\s\r\n]+$/))||e&&!o&&u===1||i&&!o||p||!m||t&&(!(TT(n)||n==="")||s===-1)),[e,i,o,p,m,t,n,s,u])};var Qbe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/InvokeButton.tsx";function Jbe(){const e=Sn(),t=cj();return N(Dg,{label:"Invoke","aria-label":"Invoke",type:"submit",isDisabled:!t,onClick:()=>{e(h8())},className:"invoke-btn"},void 0,!1,{fileName:Qbe,lineNumber:16,columnNumber:5},this)}var iP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/IAIIconButton.tsx";const am=e=>{const{tooltip:t="",tooltipPlacement:n="bottom",onClick:i,...o}=e;return N(po,{label:t,hasArrow:!0,placement:n,children:N(wa,{...o,cursor:i?"pointer":"unset",onClick:i},void 0,!1,{fileName:iP,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:iP,lineNumber:21,columnNumber:5},void 0)};var aP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/CancelButton.tsx";function eye(){const e=Sn(),{isProcessing:t,isConnected:n}=bt($T),i=()=>e(gge());return oi("shift+x",()=>{(n||t)&&i()},[n,t]),N(am,{icon:N(Wbe,{},void 0,!1,{fileName:aP,lineNumber:26,columnNumber:13},this),tooltip:"Cancel","aria-label":"Cancel",isDisabled:!n||!t,onClick:i,className:"cancel-btn"},void 0,!1,{fileName:aP,lineNumber:25,columnNumber:5},this)}var T7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ProcessButtons/ProcessButtons.tsx";const fj=()=>N("div",{className:"process-buttons",children:[N(Jbe,{},void 0,!1,{fileName:T7,lineNumber:10,columnNumber:7},void 0),N(eye,{},void 0,!1,{fileName:T7,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:T7,lineNumber:9,columnNumber:5},void 0);var R7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/PromptInput/PromptInput.tsx";const tye=Ya(e=>e.options,e=>({prompt:e.prompt}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),dj=()=>{const e=E.exports.useRef(null),{prompt:t}=bt(tye),{isProcessing:n}=bt($T),i=Sn(),o=cj(),s=p=>{i(RT(p.target.value))};oi("ctrl+enter",()=>{o&&i(h8())},[o]),oi("alt+a",()=>{e.current?.focus()},[]);const u=p=>{p.key==="Enter"&&p.shiftKey===!1&&o&&(p.preventDefault(),i(h8()))};return N("div",{className:"prompt-bar",children:N(wd,{isInvalid:t.length===0||Boolean(t.match(/^[\s\r\n]+$/)),isDisabled:n,children:N(pB,{id:"prompt",name:"prompt",placeholder:"I'm dreaming of...",size:"lg",value:t,onChange:s,onKeyDown:u,resize:"vertical",height:30,ref:e},void 0,!1,{fileName:R7,lineNumber:73,columnNumber:9},void 0)},void 0,!1,{fileName:R7,lineNumber:69,columnNumber:7},void 0)},void 0,!1,{fileName:R7,lineNumber:68,columnNumber:5},void 0)};var Ji="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImagePanel.tsx";function nye(){const e=bt(n=>n.options.showAdvancedOptions),t={seed:{header:N(Js,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:Ji,lineNumber:29,columnNumber:9},this),feature:Ul.SEED,options:N(QU,{},void 0,!1,{fileName:Ji,lineNumber:34,columnNumber:16},this)},variations:{header:N(ej,{},void 0,!1,{fileName:Ji,lineNumber:37,columnNumber:15},this),feature:Ul.VARIATIONS,options:N(tj,{},void 0,!1,{fileName:Ji,lineNumber:39,columnNumber:16},this)},face_restore:{header:N(XU,{},void 0,!1,{fileName:Ji,lineNumber:42,columnNumber:15},this),feature:Ul.FACE_CORRECTION,options:N(DT,{},void 0,!1,{fileName:Ji,lineNumber:44,columnNumber:16},this)},upscale:{header:N(JU,{},void 0,!1,{fileName:Ji,lineNumber:47,columnNumber:15},this),feature:Ul.UPSCALE,options:N(PT,{},void 0,!1,{fileName:Ji,lineNumber:49,columnNumber:16},this)},other:{header:N(Js,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:Ji,lineNumber:53,columnNumber:9},this),feature:Ul.OTHER,options:N(uj,{},void 0,!1,{fileName:Ji,lineNumber:58,columnNumber:16},this)}};return N("div",{className:"image-to-image-panel",children:[N(dj,{},void 0,!1,{fileName:Ji,lineNumber:64,columnNumber:7},this),N(fj,{},void 0,!1,{fileName:Ji,lineNumber:65,columnNumber:7},this),N(rj,{},void 0,!1,{fileName:Ji,lineNumber:66,columnNumber:7},this),N(ibe,{label:"Image To Image Strength",styleClass:"main-option-block image-to-image-strength-main-option"},void 0,!1,{fileName:Ji,lineNumber:67,columnNumber:7},this),N(nbe,{},void 0,!1,{fileName:Ji,lineNumber:71,columnNumber:7},this),N(nj,{},void 0,!1,{fileName:Ji,lineNumber:72,columnNumber:7},this),e?N(lj,{accordionInfo:t},void 0,!1,{fileName:Ji,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:Ji,lineNumber:63,columnNumber:5},this)}function rye(e){return Ar({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 iye(e){return Ar({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 aye(e){return Ar({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 oye(e){return Ar({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 sye(e){return Ar({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 lye(e){return Ar({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 uye(e){return Ar({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 cye(e){return Ar({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 fye(e){return Ar({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 dye(e){return Ar({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 pye(e){return Ar({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 mye(e){return Ar({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 hye(e){return Ar({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 vye=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 Zb(e,t){var n=gye(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 gye(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),o=vye.get(i);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var bye=[".DS_Store","Thumbs.db"];function yye(e){return qv(this,void 0,void 0,function(){return Zv(this,function(t){return YS(e)&&xye(e.dataTransfer)?[2,Nye(e.dataTransfer,e.type)]:Sye(e)?[2,Cye(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,wye(e)]:[2,[]]})})}function xye(e){return YS(e)}function Sye(e){return YS(e)&&YS(e.target)}function YS(e){return typeof e=="object"&&e!==null}function Cye(e){return g8(e.target.files).map(function(t){return Zb(t)})}function wye(e){return qv(this,void 0,void 0,function(){var t;return Zv(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 Zb(i)})]}})})}function Nye(e,t){return qv(this,void 0,void 0,function(){var n,i;return Zv(this,function(o){switch(o.label){case 0:return e.items?(n=g8(e.items).filter(function(s){return s.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Eye))]):[3,2];case 1:return i=o.sent(),[2,oP(pj(i))];case 2:return[2,oP(g8(e.files).map(function(s){return Zb(s)}))]}})})}function oP(e){return e.filter(function(t){return bye.indexOf(t.name)===-1})}function g8(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function Eye(e){if(typeof e.webkitGetAsEntry!="function")return sP(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?mj(t):sP(e)}function pj(e){return e.reduce(function(t,n){return iE(iE([],FL(t),!1),FL(Array.isArray(n)?pj(n):[n]),!1)},[])}function sP(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Zb(t);return Promise.resolve(n)}function _ye(e){return qv(this,void 0,void 0,function(){return Zv(this,function(t){return[2,e.isDirectory?mj(e):Tye(e)]})})}function mj(e){var t=e.createReader();return new Promise(function(n,i){var o=[];function s(){var u=this;t.readEntries(function(p){return qv(u,void 0,void 0,function(){var m,v,g;return Zv(this,function(b){switch(b.label){case 0:if(p.length)return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return m=b.sent(),n(m),[3,4];case 3:return v=b.sent(),i(v),[3,4];case 4:return[3,6];case 5:g=Promise.all(p.map(_ye)),o.push(g),s(),b.label=6;case 6:return[2]}})})},function(p){i(p)})}s()})}function Tye(e){return qv(this,void 0,void 0,function(){return Zv(this,function(t){return[2,new Promise(function(n,i){e.file(function(o){var s=Zb(o,e.fullPath);n(s)},function(o){i(o)})})]})})}var Rye=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",o=(e.type||"").toLowerCase(),s=o.replace(/\/.*$/,"");return n.some(function(u){var p=u.trim().toLowerCase();return p.charAt(0)==="."?i.toLowerCase().endsWith(p):p.endsWith("/*")?s===p.replace(/\/.*$/,""):o===p})}return!0};function lP(e){return Lye(e)||Oye(e)||vj(e)||Aye()}function Aye(){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 Oye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lye(e){if(Array.isArray(e))return b8(e)}function uP(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 cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(i){hj(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function hj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sb(e,t){return Dye(e)||Mye(e,t)||vj(e,t)||kye()}function kye(){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 vj(e,t){if(!!e){if(typeof e=="string")return b8(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 b8(e,t)}}function b8(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 Mye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,s=!1,u,p;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(m){s=!0,p=m}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw p}}return i}}function Dye(e){if(Array.isArray(e))return e}var Pye="file-invalid-type",Iye="file-too-large",$ye="file-too-small",Fye="too-many-files",zye=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:Pye,message:"File type must be ".concat(n)}},fP=function(t){return{code:Iye,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},dP=function(t){return{code:$ye,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Bye={code:Fye,message:"Too many files"};function gj(e,t){var n=e.type==="application/x-moz-file"||Rye(e,t);return[n,n?null:zye(t)]}function bj(e,t,n){if(om(e.size))if(om(t)&&om(n)){if(e.size>n)return[!1,fP(n)];if(e.size<t)return[!1,dP(t)]}else{if(om(t)&&e.size<t)return[!1,dP(t)];if(om(n)&&e.size>n)return[!1,fP(n)]}return[!0,null]}function om(e){return e!=null}function Uye(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,s=e.multiple,u=e.maxFiles,p=e.validator;return!s&&t.length>1||s&&u>=1&&t.length>u?!1:t.every(function(m){var v=gj(m,n),g=Sb(v,1),b=g[0],C=bj(m,i,o),w=Sb(C,1),T=w[0],A=p?p(m):null;return b&&T&&!A})}function qS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function L5(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 pP(e){e.preventDefault()}function jye(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Vye(e){return e.indexOf("Edge/")!==-1}function Hye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return jye(e)||Vye(e)}function Su(){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,s=new Array(o>1?o-1:0),u=1;u<o;u++)s[u-1]=arguments[u];return t.some(function(p){return!qS(i)&&p&&p.apply(void 0,[i].concat(s)),qS(i)})}}function Wye(){return"showOpenFilePicker"in window}function Gye(e){if(om(e)){var t=Object.entries(e).filter(function(n){var i=Sb(n,2),o=i[0],s=i[1],u=!0;return yj(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.')),u=!1),(!Array.isArray(s)||!s.every(xj))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(n,i){var o=Sb(i,2),s=o[0],u=o[1];return cP(cP({},n),{},hj({},s,u))},{});return[{accept:t}]}return e}function Yye(e){if(om(e))return Object.entries(e).reduce(function(t,n){var i=Sb(n,2),o=i[0],s=i[1];return[].concat(lP(t),[o],lP(s))},[]).filter(function(t){return yj(t)||xj(t)}).join(",")}function qye(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Zye(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function yj(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function xj(e){return/^.*\.[\w]+$/.test(e)}var Kye="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",Xye=["children"],Qye=["open"],Jye=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],e2e=["refKey","onChange","onClick"];function t2e(e){return i2e(e)||r2e(e)||Sj(e)||n2e()}function n2e(){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 r2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i2e(e){if(Array.isArray(e))return y8(e)}function A7(e,t){return s2e(e)||o2e(e,t)||Sj(e,t)||a2e()}function a2e(){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 Sj(e,t){if(!!e){if(typeof e=="string")return y8(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 y8(e,t)}}function y8(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 o2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,s=!1,u,p;try{for(n=n.call(e);!(o=(u=n.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(m){s=!0,p=m}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw p}}return i}}function s2e(e){if(Array.isArray(e))return e}function mP(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 Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(n),!0).forEach(function(i){x8(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function x8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZS(e,t){if(e==null)return{};var n=l2e(e,t),i,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function l2e(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var FT=E.exports.forwardRef(function(e,t){var n=e.children,i=ZS(e,Xye),o=wj(i),s=o.open,u=ZS(o,Qye);return E.exports.useImperativeHandle(t,function(){return{open:s}},[s]),N(E.exports.Fragment,{children:n(Hr(Hr({},u),{},{open:s}))},void 0,!1,{fileName:Kye,lineNumber:70,columnNumber:23},this)});FT.displayName="Dropzone";var Cj={disabled:!1,getFilesFromEvent:yye,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};FT.defaultProps=Cj;FT.propTypes={children:Mt.exports.func,accept:Mt.exports.objectOf(Mt.exports.arrayOf(Mt.exports.string)),multiple:Mt.exports.bool,preventDropOnDocument:Mt.exports.bool,noClick:Mt.exports.bool,noKeyboard:Mt.exports.bool,noDrag:Mt.exports.bool,noDragEventsBubbling:Mt.exports.bool,minSize:Mt.exports.number,maxSize:Mt.exports.number,maxFiles:Mt.exports.number,disabled:Mt.exports.bool,getFilesFromEvent:Mt.exports.func,onFileDialogCancel:Mt.exports.func,onFileDialogOpen:Mt.exports.func,useFsAccessApi:Mt.exports.bool,autoFocus:Mt.exports.bool,onDragEnter:Mt.exports.func,onDragLeave:Mt.exports.func,onDragOver:Mt.exports.func,onDrop:Mt.exports.func,onDropAccepted:Mt.exports.func,onDropRejected:Mt.exports.func,onError:Mt.exports.func,validator:Mt.exports.func};var S8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function wj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Hr(Hr({},Cj),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,u=t.minSize,p=t.multiple,m=t.maxFiles,v=t.onDragEnter,g=t.onDragLeave,b=t.onDragOver,C=t.onDrop,w=t.onDropAccepted,T=t.onDropRejected,A=t.onFileDialogCancel,k=t.onFileDialogOpen,I=t.useFsAccessApi,D=t.autoFocus,P=t.preventDropOnDocument,F=t.noClick,z=t.noKeyboard,q=t.noDrag,Y=t.noDragEventsBubbling,Q=t.onError,ie=t.validator,ae=E.exports.useMemo(function(){return Yye(n)},[n]),pe=E.exports.useMemo(function(){return Gye(n)},[n]),$e=E.exports.useMemo(function(){return typeof k=="function"?k:hP},[k]),te=E.exports.useMemo(function(){return typeof A=="function"?A:hP},[A]),ee=E.exports.useRef(null),be=E.exports.useRef(null),Ce=E.exports.useReducer(u2e,S8),K=A7(Ce,2),le=K[0],ve=K[1],de=le.isFocused,we=le.isFileDialogActive,Le=E.exports.useRef(typeof window<"u"&&window.isSecureContext&&I&&Wye()),Me=function(){!Le.current&&we&&setTimeout(function(){if(be.current){var et=be.current.files;et.length||(ve({type:"closeDialog"}),te())}},300)};E.exports.useEffect(function(){return window.addEventListener("focus",Me,!1),function(){window.removeEventListener("focus",Me,!1)}},[be,we,te,Le]);var Ze=E.exports.useRef([]),Je=function(et){ee.current&&ee.current.contains(et.target)||(et.preventDefault(),Ze.current=[])};E.exports.useEffect(function(){return P&&(document.addEventListener("dragover",pP,!1),document.addEventListener("drop",Je,!1)),function(){P&&(document.removeEventListener("dragover",pP),document.removeEventListener("drop",Je))}},[ee,P]),E.exports.useEffect(function(){return!i&&D&&ee.current&&ee.current.focus(),function(){}},[ee,D,i]);var it=E.exports.useCallback(function(Ye){Q?Q(Ye):console.error(Ye)},[Q]),Rt=E.exports.useCallback(function(Ye){Ye.preventDefault(),Ye.persist(),_t(Ye),Ze.current=[].concat(t2e(Ze.current),[Ye.target]),L5(Ye)&&Promise.resolve(o(Ye)).then(function(et){if(!(qS(Ye)&&!Y)){var nn=et.length,Pt=nn>0&&Uye({files:et,accept:ae,minSize:u,maxSize:s,multiple:p,maxFiles:m,validator:ie}),De=nn>0&&!Pt;ve({isDragAccept:Pt,isDragReject:De,isDragActive:!0,type:"setDraggedFiles"}),v&&v(Ye)}}).catch(function(et){return it(et)})},[o,v,it,Y,ae,u,s,p,m,ie]),Ve=E.exports.useCallback(function(Ye){Ye.preventDefault(),Ye.persist(),_t(Ye);var et=L5(Ye);if(et&&Ye.dataTransfer)try{Ye.dataTransfer.dropEffect="copy"}catch{}return et&&b&&b(Ye),!1},[b,Y]),at=E.exports.useCallback(function(Ye){Ye.preventDefault(),Ye.persist(),_t(Ye);var et=Ze.current.filter(function(Pt){return ee.current&&ee.current.contains(Pt)}),nn=et.indexOf(Ye.target);nn!==-1&&et.splice(nn,1),Ze.current=et,!(et.length>0)&&(ve({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),L5(Ye)&&g&&g(Ye))},[ee,g,Y]),St=E.exports.useCallback(function(Ye,et){var nn=[],Pt=[];Ye.forEach(function(De){var qt=gj(De,ae),_n=A7(qt,2),We=_n[0],lt=_n[1],At=bj(De,u,s),vn=A7(At,2),Jt=vn[0],Tn=vn[1],$n=ie?ie(De):null;if(We&&Jt&&!$n)nn.push(De);else{var Dr=[lt,Tn];$n&&(Dr=Dr.concat($n)),Pt.push({file:De,errors:Dr.filter(function(Mn){return Mn})})}}),(!p&&nn.length>1||p&&m>=1&&nn.length>m)&&(nn.forEach(function(De){Pt.push({file:De,errors:[Bye]})}),nn.splice(0)),ve({acceptedFiles:nn,fileRejections:Pt,type:"setFiles"}),C&&C(nn,Pt,et),Pt.length>0&&T&&T(Pt,et),nn.length>0&&w&&w(nn,et)},[ve,p,ae,u,s,m,C,w,T,ie]),Dt=E.exports.useCallback(function(Ye){Ye.preventDefault(),Ye.persist(),_t(Ye),Ze.current=[],L5(Ye)&&Promise.resolve(o(Ye)).then(function(et){qS(Ye)&&!Y||St(et,Ye)}).catch(function(et){return it(et)}),ve({type:"reset"})},[o,St,it,Y]),He=E.exports.useCallback(function(){if(Le.current){ve({type:"openDialog"}),$e();var Ye={multiple:p,types:pe};window.showOpenFilePicker(Ye).then(function(et){return o(et)}).then(function(et){St(et,null),ve({type:"closeDialog"})}).catch(function(et){qye(et)?(te(et),ve({type:"closeDialog"})):Zye(et)?(Le.current=!1,be.current?(be.current.value=null,be.current.click()):it(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."))):it(et)});return}be.current&&(ve({type:"openDialog"}),$e(),be.current.value=null,be.current.click())},[ve,$e,te,I,St,it,pe,p]),jt=E.exports.useCallback(function(Ye){!ee.current||!ee.current.isEqualNode(Ye.target)||(Ye.key===" "||Ye.key==="Enter"||Ye.keyCode===32||Ye.keyCode===13)&&(Ye.preventDefault(),He())},[ee,He]),Se=E.exports.useCallback(function(){ve({type:"focus"})},[]),tt=E.exports.useCallback(function(){ve({type:"blur"})},[]),Ct=E.exports.useCallback(function(){F||(Hye()?setTimeout(He,0):He())},[F,He]),nt=function(et){return i?null:et},on=function(et){return z?null:nt(et)},Ln=function(et){return q?null:nt(et)},_t=function(et){Y&&et.stopPropagation()},sn=E.exports.useMemo(function(){return function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=Ye.refKey,nn=et===void 0?"ref":et,Pt=Ye.role,De=Ye.onKeyDown,qt=Ye.onFocus,_n=Ye.onBlur,We=Ye.onClick,lt=Ye.onDragEnter,At=Ye.onDragOver,vn=Ye.onDragLeave,Jt=Ye.onDrop,Tn=ZS(Ye,Jye);return Hr(Hr(x8({onKeyDown:on(Su(De,jt)),onFocus:on(Su(qt,Se)),onBlur:on(Su(_n,tt)),onClick:nt(Su(We,Ct)),onDragEnter:Ln(Su(lt,Rt)),onDragOver:Ln(Su(At,Ve)),onDragLeave:Ln(Su(vn,at)),onDrop:Ln(Su(Jt,Dt)),role:typeof Pt=="string"&&Pt!==""?Pt:"presentation"},nn,ee),!i&&!z?{tabIndex:0}:{}),Tn)}},[ee,jt,Se,tt,Ct,Rt,Ve,at,Dt,z,q,i]),kn=E.exports.useCallback(function(Ye){Ye.stopPropagation()},[]),bn=E.exports.useMemo(function(){return function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},et=Ye.refKey,nn=et===void 0?"ref":et,Pt=Ye.onChange,De=Ye.onClick,qt=ZS(Ye,e2e),_n=x8({accept:ae,multiple:p,type:"file",style:{display:"none"},onChange:nt(Su(Pt,Dt)),onClick:nt(Su(De,kn)),tabIndex:-1},nn,be);return Hr(Hr({},_n),qt)}},[be,n,p,Dt,i]);return Hr(Hr({},le),{},{isFocused:de&&!i,getRootProps:sn,getInputProps:bn,rootRef:ee,inputRef:be,open:nt(He)})}function u2e(e,t){switch(t.type){case"focus":return Hr(Hr({},e),{},{isFocused:!0});case"blur":return Hr(Hr({},e),{},{isFocused:!1});case"openDialog":return Hr(Hr({},S8),{},{isFileDialogActive:!0});case"closeDialog":return Hr(Hr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Hr(Hr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Hr(Hr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Hr({},S8);default:return e}}function hP(){}var vP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/options/ImageUploader.tsx";const c2e=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n,styleClass:i})=>{const o=E.exports.useCallback((v,g)=>{g.forEach(b=>{n(b)}),v.forEach(b=>{t(b)})},[t,n]),{getRootProps:s,getInputProps:u,open:p}=wj({onDrop:o,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),m=v=>{v.stopPropagation(),p()};return N(Js,{...s(),flexGrow:3,className:`${i}`,children:[N("input",{...u({multiple:!1})},void 0,!1,{fileName:vP,lineNumber:59,columnNumber:7},void 0),E.exports.cloneElement(e,{onClick:m})]},void 0,!0,{fileName:vP,lineNumber:58,columnNumber:5},void 0)};var gP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/InvokeImageUploader.tsx";function f2e(e){const{label:t,icon:n,dispatcher:i,styleClass:o,onMouseOver:s,OnMouseout:u}=e,p=Gb(),m=Sn(),v=E.exports.useCallback(b=>m(i(b)),[m,i]),g=E.exports.useCallback(b=>{const C=b.errors.reduce((w,T)=>w+`
`+T.message,"");p({title:"Upload failed",description:C,status:"error",isClosable:!0})},[p]);return N(c2e,{fileAcceptedCallback:v,fileRejectionCallback:g,styleClass:o,children:N(Fu,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:s,onMouseOut:u,leftIcon:n,width:"100%",children:t||null},void 0,!1,{fileName:gP,lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:gP,lineNumber:47,columnNumber:5},this)}var Oo="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const d2e=Ya(e=>e.system,e=>e.shouldConfirmOnDelete),C8=E.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:s}=LS(),u=Sn(),p=bt(d2e),m=E.exports.useRef(null),v=Gb(),g=w=>{w.stopPropagation(),p?o():b()},b=()=>{u(hge(e)),v({title:"Image Deleted",status:"success",duration:2500,isClosable:!0}),s()};oi("del",()=>{p?o():b()},[e,p]);const C=w=>u(TU(!w.target.checked));return N(ji,{children:[E.exports.cloneElement(t,{onClick:g,ref:n}),N(rle,{isOpen:i,leastDestructiveRef:m,onClose:s,children:N(mb,{children:N(ile,{children:[N(nT,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:Oo,lineNumber:106,columnNumber:15},void 0),N(PS,{children:N(yr,{direction:"column",gap:5,children:[N(Do,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:Oo,lineNumber:112,columnNumber:19},void 0),N(wd,{children:N(yr,{alignItems:"center",children:[N(Cm,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:Oo,lineNumber:117,columnNumber:23},void 0),N(F3,{checked:!p,onChange:C},void 0,!1,{fileName:Oo,lineNumber:118,columnNumber:23},void 0)]},void 0,!0,{fileName:Oo,lineNumber:116,columnNumber:21},void 0)},void 0,!1,{fileName:Oo,lineNumber:115,columnNumber:19},void 0)]},void 0,!0,{fileName:Oo,lineNumber:111,columnNumber:17},void 0)},void 0,!1,{fileName:Oo,lineNumber:110,columnNumber:15},void 0),N(tT,{children:[N(Fu,{ref:m,onClick:s,children:"Cancel"},void 0,!1,{fileName:Oo,lineNumber:127,columnNumber:17},void 0),N(Fu,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:Oo,lineNumber:130,columnNumber:17},void 0)]},void 0,!0,{fileName:Oo,lineNumber:126,columnNumber:15},void 0)]},void 0,!0,{fileName:Oo,lineNumber:105,columnNumber:13},void 0)},void 0,!1,{fileName:Oo,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Oo,lineNumber:99,columnNumber:9},void 0)]},void 0,!0)});var Kp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const bP=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:i,actionButton:o,children:s})=>N(iT,{trigger:"hover",closeDelay:n,children:[N(lT,{children:N(Js,{children:s},void 0,!1,{fileName:Kp,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:Kp,lineNumber:30,columnNumber:7},void 0),N(sT,{className:`popover-content ${t}`,children:[N(aT,{className:"popover-arrow"},void 0,!1,{fileName:Kp,lineNumber:34,columnNumber:9},void 0),N(tB,{className:"popover-header",children:e},void 0,!1,{fileName:Kp,lineNumber:35,columnNumber:9},void 0),N("div",{className:"popover-options",children:[i||null,o]},void 0,!0,{fileName:Kp,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:Kp,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:Kp,lineNumber:29,columnNumber:5},void 0);var vi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const p2e=Ya(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),Nj=({image:e})=>{const t=Sn(),n=bt(I=>I.options.shouldShowImageDetails),i=Gb(),o=bt(I=>I.gallery.intermediateImage),s=bt(I=>I.options.upscalingLevel),u=bt(I=>I.options.facetoolStrength),{isProcessing:p,isConnected:m,isGFPGANAvailable:v,isESRGANAvailable:g}=bt(p2e),b=()=>{t(ym(e.url)),t(Nu(1))};oi("shift+i",()=>{e?(b(),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 C=()=>t(H0e(e.metadata));oi("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(C(),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 w=()=>t(Yb(e.metadata.image.seed));oi("s",()=>{e?.metadata?.image?.seed?(w(),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(pge(e));oi("u",()=>{g&&Boolean(!o)&&m&&!p&&s?T():i({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,g,o,m,p,s]);const A=()=>t(mge(e));oi("r",()=>{v&&Boolean(!o)&&m&&!p&&u?A():i({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,v,o,m,p,u]);const k=()=>t(Z0e(!n));return oi("i",()=>{e?k():i({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,n]),N("div",{className:"current-image-options",children:[N(am,{icon:N(Vbe,{},void 0,!1,{fileName:vi,lineNumber:244,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:b},void 0,!1,{fileName:vi,lineNumber:243,columnNumber:7},void 0),N(Dg,{label:"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:C},void 0,!1,{fileName:vi,lineNumber:250,columnNumber:7},void 0),N(Dg,{label:"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:w},void 0,!1,{fileName:vi,lineNumber:258,columnNumber:7},void 0),N(bP,{title:"Restore Faces",popoverOptions:N(DT,{},void 0,!1,{fileName:vi,lineNumber:266,columnNumber:25},void 0),actionButton:N(Dg,{label:"Restore Faces",isDisabled:!v||Boolean(o)||!(m&&!p)||!u,onClick:A},void 0,!1,{fileName:vi,lineNumber:268,columnNumber:11},void 0),children:N(am,{icon:N(Fbe,{},void 0,!1,{fileName:vi,lineNumber:280,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:vi,lineNumber:280,columnNumber:9},void 0)},void 0,!1,{fileName:vi,lineNumber:264,columnNumber:7},void 0),N(bP,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:N(PT,{},void 0,!1,{fileName:vi,lineNumber:286,columnNumber:25},void 0),actionButton:N(Dg,{label:"Upscale Image",isDisabled:!g||Boolean(o)||!(m&&!p)||!s,onClick:T},void 0,!1,{fileName:vi,lineNumber:288,columnNumber:11},void 0),children:N(am,{icon:N(Ube,{},void 0,!1,{fileName:vi,lineNumber:300,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:vi,lineNumber:300,columnNumber:9},void 0)},void 0,!1,{fileName:vi,lineNumber:283,columnNumber:7},void 0),N(am,{icon:N(zbe,{},void 0,!1,{fileName:vi,lineNumber:304,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:k},void 0,!1,{fileName:vi,lineNumber:303,columnNumber:7},void 0),N(C8,{image:e,children:N(am,{icon:N($be,{},void 0,!1,{fileName:vi,lineNumber:312,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(o)},void 0,!1,{fileName:vi,lineNumber:311,columnNumber:9},void 0)},void 0,!1,{fileName:vi,lineNumber:310,columnNumber:7},void 0)]},void 0,!0,{fileName:vi,lineNumber:242,columnNumber:5},void 0)};var Mc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const m2e=Ya(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:yb.isEqual}});function Ej(e){const{imageToDisplay:t}=e,n=Sn(),{isOnFirstImage:i,isOnLastImage:o}=bt(m2e),s=bt(C=>C.options.shouldShowImageDetails),[u,p]=E.exports.useState(!1),m=()=>{p(!0)},v=()=>{p(!1)},g=()=>{n(EU())},b=()=>{n(NU())};return N("div",{className:"current-image-preview",children:[N(R3,{src:t.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Mc,lineNumber:65,columnNumber:7},this),!s&&N("div",{className:"current-image-next-prev-buttons",children:[N("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:m,onMouseOut:v,children:u&&!i&&N(wa,{"aria-label":"Previous image",icon:N(oye,{className:"next-prev-button"},void 0,!1,{fileName:Mc,lineNumber:81,columnNumber:23},this),variant:"unstyled",onClick:g},void 0,!1,{fileName:Mc,lineNumber:79,columnNumber:15},this)},void 0,!1,{fileName:Mc,lineNumber:73,columnNumber:11},this),N("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:m,onMouseOut:v,children:u&&!o&&N(wa,{"aria-label":"Next image",icon:N(sye,{className:"next-prev-button"},void 0,!1,{fileName:Mc,lineNumber:95,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Mc,lineNumber:93,columnNumber:15},this)},void 0,!1,{fileName:Mc,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:Mc,lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:Mc,lineNumber:64,columnNumber:5},this)}var Cv="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/node_modules/@chakra-ui/icon/dist/index.esm.js",yP={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:Cv,lineNumber:14,columnNumber:22},globalThis),N("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:Cv,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:Cv,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:Cv,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},_j=Ke((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:u,className:p,__css:m,...v}=e,g=Qr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},C={ref:t,focusable:s,className:g,__css:b},w=i??yP.viewBox;if(n&&typeof n!="string")return _e.createElement(je.svg,{as:n,...C,...v});const T=u??yP.path;return _e.createElement(je.svg,{verticalAlign:"middle",viewBox:w,...C,...v},T)});_j.displayName="Icon";function Tt(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,s=E.exports.Children.toArray(e.path),u=Ke((p,m)=>N(_j,{ref:m,viewBox:t,...o,...p,children:s.length?s:N("path",{fill:"currentColor",d:n},void 0,!1,{fileName:Cv,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:Cv,lineNumber:88,columnNumber:60},this));return u.displayName=i,u}var pt="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Tt({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"});Tt({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"});Tt({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"});Tt({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"});Tt({displayName:"SunIcon",path:N("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[N("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:pt,lineNumber:42,columnNumber:22},globalThis),N("path",{d:"M12 1v2"},void 0,!1,{fileName:pt,lineNumber:46,columnNumber:23},globalThis),N("path",{d:"M12 21v2"},void 0,!1,{fileName:pt,lineNumber:48,columnNumber:23},globalThis),N("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:pt,lineNumber:50,columnNumber:23},globalThis),N("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:pt,lineNumber:52,columnNumber:23},globalThis),N("path",{d:"M1 12h2"},void 0,!1,{fileName:pt,lineNumber:54,columnNumber:23},globalThis),N("path",{d:"M21 12h2"},void 0,!1,{fileName:pt,lineNumber:56,columnNumber:23},globalThis),N("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:pt,lineNumber:58,columnNumber:23},globalThis),N("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:pt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:36,columnNumber:25},globalThis)});Tt({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"});Tt({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:N("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:pt,lineNumber:77,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({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"});Tt({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"});Tt({displayName:"ViewIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:119,columnNumber:22},globalThis),N("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:pt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:117,columnNumber:25},globalThis)});Tt({displayName:"ViewOffIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:134,columnNumber:22},globalThis),N("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:pt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:132,columnNumber:25},globalThis)});Tt({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"});Tt({displayName:"DeleteIcon",path:N("g",{fill:"currentColor",children:N("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:pt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:pt,lineNumber:153,columnNumber:25},globalThis)});Tt({displayName:"RepeatIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:166,columnNumber:22},globalThis),N("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:pt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:164,columnNumber:25},globalThis)});Tt({displayName:"RepeatClockIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:179,columnNumber:22},globalThis),N("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:pt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:177,columnNumber:25},globalThis)});Tt({displayName:"EditIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("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:pt,lineNumber:195,columnNumber:22},globalThis),N("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:pt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:190,columnNumber:25},globalThis)});Tt({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Tt({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Tt({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Tt({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Tt({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Tt({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Tt({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Tt({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"});Tt({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var Tj=Tt({displayName:"ExternalLinkIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("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:pt,lineNumber:275,columnNumber:22},globalThis),N("path",{d:"M15 3h6v6"},void 0,!1,{fileName:pt,lineNumber:277,columnNumber:23},globalThis),N("path",{d:"M10 14L21 3"},void 0,!1,{fileName:pt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:270,columnNumber:25},globalThis)});Tt({displayName:"LinkIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:290,columnNumber:22},globalThis),N("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:pt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:288,columnNumber:25},globalThis)});Tt({displayName:"PlusSquareIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:pt,lineNumber:306,columnNumber:22},globalThis),N("path",{d:"M12 8v8"},void 0,!1,{fileName:pt,lineNumber:313,columnNumber:23},globalThis),N("path",{d:"M8 12h8"},void 0,!1,{fileName:pt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:301,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({displayName:"TimeIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:342,columnNumber:22},globalThis),N("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:pt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:340,columnNumber:25},globalThis)});Tt({displayName:"ArrowRightIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:355,columnNumber:22},globalThis),N("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:pt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:353,columnNumber:25},globalThis)});Tt({displayName:"ArrowLeftIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:368,columnNumber:22},globalThis),N("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:pt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:366,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({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"});Tt({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"});Tt({displayName:"EmailIcon",path:N("g",{fill:"currentColor",children:[N("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:pt,lineNumber:410,columnNumber:22},globalThis),N("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:pt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:408,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({displayName:"SpinnerIcon",path:N(ji,{children:[N("defs",{children:N("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[N("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:pt,lineNumber:443,columnNumber:22},globalThis),N("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:pt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:pt,lineNumber:437,columnNumber:83},globalThis),N("g",{transform:"translate(2)",fill:"none",children:[N("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:pt,lineNumber:453,columnNumber:22},globalThis),N("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:pt,lineNumber:459,columnNumber:23},globalThis),N("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:pt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Tt({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"});Tt({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:N("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:pt,lineNumber:484,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({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"});Tt({displayName:"InfoOutlineIcon",path:N("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[N("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:pt,lineNumber:521,columnNumber:22},globalThis),N("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:pt,lineNumber:527,columnNumber:23},globalThis),N("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:pt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:516,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({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"});Tt({displayName:"QuestionOutlineIcon",path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:pt,lineNumber:568,columnNumber:22},globalThis),N("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:pt,lineNumber:572,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:pt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:pt,lineNumber:565,columnNumber:25},globalThis)});Tt({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"});Tt({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"});Tt({viewBox:"0 0 14 14",path:N("g",{fill:"currentColor",children:N("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:pt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:pt,lineNumber:603,columnNumber:25},globalThis)});Tt({displayName:"MinusIcon",path:N("g",{fill:"currentColor",children:N("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:pt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:pt,lineNumber:614,columnNumber:25},globalThis)});Tt({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 h2e(e){return Ar({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 Ir=({label:e,value:t,onClick:n,isLink:i,labelPosition:o})=>N(yr,{gap:2,children:[n&&N(po,{label:`Recall ${e}`,children:N(wa,{"aria-label":"Use this parameter",icon:N(h2e,{},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),N(yr,{direction:o?"column":"row",children:[N(Do,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:kt,lineNumber:73,columnNumber:9},void 0),i?N(Tv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",N(Tj,{mx:"2px"},void 0,!1,{fileName:kt,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:kt,lineNumber:77,columnNumber:11},void 0):N(Do,{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),v2e=(e,t)=>e.image.uuid===t.image.uuid,Rj=E.exports.memo(({image:e,styleClass:t})=>{const n=Sn(),i=e?.metadata?.image||{},{type:o,postprocessing:s,sampler:u,prompt:p,seed:m,variations:v,steps:g,cfg_scale:b,seamless:C,hires_fix:w,width:T,height:A,strength:k,fit:I,init_image_path:D,mask_image_path:P,orig_path:F,scale:z}=i,q=JSON.stringify(i,null,2);return N("div",{className:`image-metadata-viewer ${t}`,children:N(yr,{gap:1,direction:"column",width:"100%",children:[N(yr,{gap:2,children:[N(Do,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:kt,lineNumber:140,columnNumber:13},void 0),N(Tv,{href:e.url,isExternal:!0,children:[e.url,N(Tj,{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?N(ji,{children:[o&&N(Ir,{label:"Generation type",value:o},void 0,!1,{fileName:kt,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(o)&&N(Ir,{label:"Original image",value:F},void 0,!1,{fileName:kt,lineNumber:150,columnNumber:17},void 0),o==="gfpgan"&&k!==void 0&&N(Ir,{label:"Fix faces strength",value:k,onClick:()=>n(tS(k))},void 0,!1,{fileName:kt,lineNumber:153,columnNumber:17},void 0),o==="esrgan"&&z!==void 0&&N(Ir,{label:"Upscaling scale",value:z,onClick:()=>n(s8(z))},void 0,!1,{fileName:kt,lineNumber:160,columnNumber:17},void 0),o==="esrgan"&&k!==void 0&&N(Ir,{label:"Upscaling strength",value:k,onClick:()=>n(l8(k))},void 0,!1,{fileName:kt,lineNumber:167,columnNumber:17},void 0),p&&N(Ir,{label:"Prompt",labelPosition:"top",value:eS(p),onClick:()=>n(RT(p))},void 0,!1,{fileName:kt,lineNumber:174,columnNumber:17},void 0),m!==void 0&&N(Ir,{label:"Seed",value:m,onClick:()=>n(Yb(m))},void 0,!1,{fileName:kt,lineNumber:182,columnNumber:17},void 0),u&&N(Ir,{label:"Sampler",value:u,onClick:()=>n(vU(u))},void 0,!1,{fileName:kt,lineNumber:189,columnNumber:17},void 0),g&&N(Ir,{label:"Steps",value:g,onClick:()=>n(dU(g))},void 0,!1,{fileName:kt,lineNumber:196,columnNumber:17},void 0),b!==void 0&&N(Ir,{label:"CFG scale",value:b,onClick:()=>n(pU(b))},void 0,!1,{fileName:kt,lineNumber:203,columnNumber:17},void 0),v&&v.length>0&&N(Ir,{label:"Seed-weight pairs",value:GS(v),onClick:()=>n(CU(GS(v)))},void 0,!1,{fileName:kt,lineNumber:210,columnNumber:17},void 0),C&&N(Ir,{label:"Seamless",value:C,onClick:()=>n(gU(C))},void 0,!1,{fileName:kt,lineNumber:219,columnNumber:17},void 0),w&&N(Ir,{label:"High Resolution Optimization",value:w,onClick:()=>n(bU(w))},void 0,!1,{fileName:kt,lineNumber:226,columnNumber:17},void 0),T&&N(Ir,{label:"Width",value:T,onClick:()=>n(hU(T))},void 0,!1,{fileName:kt,lineNumber:233,columnNumber:17},void 0),A&&N(Ir,{label:"Height",value:A,onClick:()=>n(mU(A))},void 0,!1,{fileName:kt,lineNumber:240,columnNumber:17},void 0),D&&N(Ir,{label:"Initial image",value:D,isLink:!0,onClick:()=>n(ym(D))},void 0,!1,{fileName:kt,lineNumber:247,columnNumber:17},void 0),P&&N(Ir,{label:"Mask image",value:P,isLink:!0,onClick:()=>n(u8(P))},void 0,!1,{fileName:kt,lineNumber:255,columnNumber:17},void 0),o==="img2img"&&k&&N(Ir,{label:"Image to image strength",value:k,onClick:()=>n(yU(k))},void 0,!1,{fileName:kt,lineNumber:263,columnNumber:17},void 0),I&&N(Ir,{label:"Image to image fit",value:I,onClick:()=>n(SU(I))},void 0,!1,{fileName:kt,lineNumber:270,columnNumber:17},void 0),s&&s.length>0&&N(ji,{children:[N(D_,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:kt,lineNumber:278,columnNumber:19},void 0),s.map((Y,Q)=>{if(Y.type==="esrgan"){const{scale:ie,strength:ae}=Y;return N(yr,{pl:"2rem",gap:1,direction:"column",children:[N(Do,{size:"md",children:`${Q+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:kt,lineNumber:293,columnNumber:29},void 0),N(Ir,{label:"Scale",value:ie,onClick:()=>n(s8(ie))},void 0,!1,{fileName:kt,lineNumber:296,columnNumber:29},void 0),N(Ir,{label:"Strength",value:ae,onClick:()=>n(l8(ae))},void 0,!1,{fileName:kt,lineNumber:301,columnNumber:29},void 0)]},Q,!0,{fileName:kt,lineNumber:287,columnNumber:27},void 0)}else if(Y.type==="gfpgan"){const{strength:ie}=Y;return N(yr,{pl:"2rem",gap:1,direction:"column",children:[N(Do,{size:"md",children:`${Q+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:kt,lineNumber:319,columnNumber:29},void 0),N(Ir,{label:"Strength",value:ie,onClick:()=>{n(tS(ie)),n(nS("gfpgan"))}},void 0,!1,{fileName:kt,lineNumber:323,columnNumber:29},void 0)]},Q,!0,{fileName:kt,lineNumber:313,columnNumber:27},void 0)}else if(Y.type==="codeformer"){const{strength:ie,fidelity:ae}=Y;return N(yr,{pl:"2rem",gap:1,direction:"column",children:[N(Do,{size:"md",children:`${Q+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:kt,lineNumber:342,columnNumber:29},void 0),N(Ir,{label:"Strength",value:ie,onClick:()=>{n(tS(ie)),n(nS("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:346,columnNumber:29},void 0),ae&&N(Ir,{label:"Fidelity",value:ae,onClick:()=>{n(xU(ae)),n(nS("codeformer"))}},void 0,!1,{fileName:kt,lineNumber:355,columnNumber:31},void 0)]},Q,!0,{fileName:kt,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),N(yr,{gap:2,direction:"column",children:[N(yr,{gap:2,children:[N(po,{label:"Copy metadata JSON",children:N(wa,{"aria-label":"Copy metadata JSON",icon:N(cye,{},void 0,!1,{fileName:kt,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(q)},void 0,!1,{fileName:kt,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:kt,lineNumber:373,columnNumber:19},void 0),N(Do,{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),N("div",{className:"image-json-viewer",children:N("pre",{children:q},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):N(IF,{width:"100%",pt:10,children:N(Do,{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)},v2e);var Xp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function xP(){const e=bt(s=>s.options.initialImagePath),t=Sn(),n=Gb();return N("div",{className:"init-image-preview",children:[N("div",{className:"init-image-preview-header",children:[N("h1",{children:"Initial Image"},void 0,!1,{fileName:Xp,lineNumber:34,columnNumber:9},this),N(wa,{isDisabled:!e,size:"sm","aria-label":"Reset Initial Image",onClick:s=>{s.stopPropagation(),t(ym(null))},icon:N(sj,{},void 0,!1,{fileName:Xp,lineNumber:40,columnNumber:17},this)},void 0,!1,{fileName:Xp,lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:Xp,lineNumber:33,columnNumber:7},this),e&&N("div",{className:"init-image-image",children:N(R3,{fit:"contain",src:e,rounded:"md",onError:()=>{n({title:"Problem loading parameters",description:"Unable to load init image.",status:"error",isClosable:!0}),t(ym(null))}},void 0,!1,{fileName:Xp,lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:Xp,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:Xp,lineNumber:32,columnNumber:5},this)}var ls="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";function g2e(){const e=bt(s=>s.options.initialImagePath),{currentImage:t,intermediateImage:n}=bt(s=>s.gallery),i=bt(s=>s.options.shouldShowImageDetails),o=n||t;return N("div",{className:"image-to-image-display",style:o?{gridAutoRows:"max-content auto"}:{gridAutoRows:"auto"},children:e?N(ji,{children:o?N(ji,{children:[N(Nj,{image:o},void 0,!1,{fileName:ls,lineNumber:40,columnNumber:15},this),N("div",{className:"image-to-image-dual-preview-container",children:[N("div",{className:"image-to-image-dual-preview",children:[N(xP,{},void 0,!1,{fileName:ls,lineNumber:43,columnNumber:19},this),N("div",{className:"image-to-image-current-image-display",children:N(Ej,{imageToDisplay:o},void 0,!1,{fileName:ls,lineNumber:45,columnNumber:21},this)},void 0,!1,{fileName:ls,lineNumber:44,columnNumber:19},this)]},void 0,!0,{fileName:ls,lineNumber:42,columnNumber:17},this),i&&N(Rj,{image:o,styleClass:"img2img-metadata"},void 0,!1,{fileName:ls,lineNumber:49,columnNumber:19},this)]},void 0,!0,{fileName:ls,lineNumber:41,columnNumber:15},this)]},void 0,!0):N("div",{className:"image-to-image-single-preview",children:N(xP,{},void 0,!1,{fileName:ls,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:ls,lineNumber:57,columnNumber:13},this)},void 0,!1):N("div",{className:"upload-image",children:N(f2e,{label:"Upload or Drop Image Here",icon:N(hye,{},void 0,!1,{fileName:ls,lineNumber:66,columnNumber:19},this),styleClass:"image-to-image-upload-btn",dispatcher:bge},void 0,!1,{fileName:ls,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:ls,lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:ls,lineNumber:28,columnNumber:5},this)}var b2e="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",y2e=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 s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},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)}}(),bi=globalThis&&globalThis.__assign||function(){return bi=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},bi.apply(this,arguments)},SP={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},CP={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},k5={width:"20px",height:"20px",position:"absolute"},x2e={top:bi(bi({},SP),{top:"-5px"}),right:bi(bi({},CP),{left:void 0,right:"-5px"}),bottom:bi(bi({},SP),{top:void 0,bottom:"-5px"}),left:bi(bi({},CP),{left:"-5px"}),topRight:bi(bi({},k5),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:bi(bi({},k5),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:bi(bi({},k5),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:bi(bi({},k5),{left:"-10px",top:"-10px",cursor:"nw-resize"})},S2e=function(e){y2e(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 N("div",{className:this.props.className||"",style:bi(bi({position:"absolute",userSelect:"none"},x2e[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children},void 0,!1,{fileName:b2e,lineNumber:68,columnNumber:17},this)},t}(E.exports.PureComponent),M5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/re-resizable/lib/index.js",C2e=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 s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},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)}}(),wu=globalThis&&globalThis.__assign||function(){return wu=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},wu.apply(this,arguments)},w2e={width:"auto",height:"auto"},D5=function(e,t,n){return Math.max(Math.min(e,n),t)},wP=function(e,t){return Math.round(e/t)*t},fv=function(e,t){return new RegExp(e,"i").test(t)},P5=function(e){return Boolean(e.touches&&e.touches.length)},N2e=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},NP=function(e,t,n){n===void 0&&(n=0);var i=t.reduce(function(s,u,p){return Math.abs(u-e)<Math.abs(t[s]-e)?p:s},0),o=Math.abs(t[i]-e);return n===0||o<n?t[i]:e},O7=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"},I5=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},E2e=function(e,t,n,i,o,s,u){return i=I5(i,e.width,t,n),o=I5(o,e.height,t,n),s=I5(s,e.width,t,n),u=I5(u,e.height,t,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof u>"u"?void 0:Number(u)}},_2e=["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"],EP="__resizable_base__",Aj=function(e){C2e(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 s=i.window.document.createElement("div");return s.style.width="100%",s.style.height="100%",s.style.position="absolute",s.style.transform="scale(0, 0)",s.style.left="0",s.style.flex="0 0 100%",s.classList?s.classList.add(EP):s.className+=EP,o.appendChild(s),s},i.removeBase=function(o){var s=i.parentNode;!s||s.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||w2e},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,s=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="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:s,this.resizable.style.position=u}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 m=n.getParentSize(),v=Number(n.state[p].toString().replace("px","")),g=v/m[p]*100;return g+"%"}return O7(n.state[p])},s=i&&typeof i.width<"u"&&!this.state.isResizing?O7(i.width):o("width"),u=i&&typeof i.height<"u"&&!this.state.isResizing?O7(i.height):o("height");return{width:s,height:u}},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 s={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(n),s},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,s=this.state.direction,u=o&&fv("left",s),p=o&&fv("top",s),m,v;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(m=u?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),v=p?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(m=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=p?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(m=u?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 m&&Number.isFinite(m)&&(n=n&&n<m?n:m),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,s=this.props.resizeRatio||1,u=this.state,p=u.direction,m=u.original,v=this.props,g=v.lockAspectRatio,b=v.lockAspectRatioExtraHeight,C=v.lockAspectRatioExtraWidth,w=m.width,T=m.height,A=b||0,k=C||0;return fv("right",p)&&(w=m.width+(n-m.x)*s/o,g&&(T=(w-k)/this.ratio+A)),fv("left",p)&&(w=m.width-(n-m.x)*s/o,g&&(T=(w-k)/this.ratio+A)),fv("bottom",p)&&(T=m.height+(i-m.y)*s/o,g&&(w=(T-A)*this.ratio+k)),fv("top",p)&&(T=m.height-(i-m.y)*s/o,g&&(w=(T-A)*this.ratio+k)),{newWidth:w,newHeight:T}},t.prototype.calculateNewSizeFromAspectRatio=function(n,i,o,s){var u=this.props,p=u.lockAspectRatio,m=u.lockAspectRatioExtraHeight,v=u.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,b=typeof o.width>"u"||o.width<0?n:o.width,C=typeof s.height>"u"?10:s.height,w=typeof o.height>"u"||o.height<0?i:o.height,T=m||0,A=v||0;if(p){var k=(C-T)*this.ratio+A,I=(w-T)*this.ratio+A,D=(g-A)/this.ratio+T,P=(b-A)/this.ratio+T,F=Math.max(g,k),z=Math.min(b,I),q=Math.max(C,D),Y=Math.min(w,P);n=D5(n,F,z),i=D5(i,q,Y)}else n=D5(n,g,b),i=D5(i,C,w);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 s=this.resizable.getBoundingClientRect(),u=s.left,p=s.top,m=s.right,v=s.bottom;this.resizableLeft=u,this.resizableRight=m,this.resizableTop=p,this.resizableBottom=v}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var o=0,s=0;if(n.nativeEvent&&N2e(n.nativeEvent)?(o=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&P5(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(n,i,this.resizable);if(u===!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,m=this.window.getComputedStyle(this.resizable);if(m.flexBasis!=="auto"){var v=this.parentNode;if(v){var g=this.window.getComputedStyle(v).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",p=m.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var b={original:{x:o,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:wu(wu({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:p};this.setState(b)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&P5(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,s=o.maxWidth,u=o.maxHeight,p=o.minWidth,m=o.minHeight,v=P5(n)?n.touches[0].clientX:n.clientX,g=P5(n)?n.touches[0].clientY:n.clientY,b=this.state,C=b.direction,w=b.original,T=b.width,A=b.height,k=this.getParentSize(),I=E2e(k,this.window.innerWidth,this.window.innerHeight,s,u,p,m);s=I.maxWidth,u=I.maxHeight,p=I.minWidth,m=I.minHeight;var D=this.calculateNewSizeFromDirection(v,g),P=D.newHeight,F=D.newWidth,z=this.calculateNewMaxFromBoundary(s,u);this.props.snap&&this.props.snap.x&&(F=NP(F,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(P=NP(P,this.props.snap.y,this.props.snapGap));var q=this.calculateNewSizeFromAspectRatio(F,P,{width:z.maxWidth,height:z.maxHeight},{width:p,height:m});if(F=q.newWidth,P=q.newHeight,this.props.grid){var Y=wP(F,this.props.grid[0]),Q=wP(P,this.props.grid[1]),ie=this.props.snapGap||0;F=ie===0||Math.abs(Y-F)<=ie?Y:F,P=ie===0||Math.abs(Q-P)<=ie?Q:P}var ae={width:F-w.width,height:P-w.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var pe=F/k.width*100;F=pe+"%"}else if(T.endsWith("vw")){var $e=F/this.window.innerWidth*100;F=$e+"vw"}else if(T.endsWith("vh")){var te=F/this.window.innerHeight*100;F=te+"vh"}}if(A&&typeof A=="string"){if(A.endsWith("%")){var pe=P/k.height*100;P=pe+"%"}else if(A.endsWith("vw")){var $e=P/this.window.innerWidth*100;P=$e+"vw"}else if(A.endsWith("vh")){var te=P/this.window.innerHeight*100;P=te+"vh"}}var ee={width:this.createSizeForCssProperty(F,"width"),height:this.createSizeForCssProperty(P,"height")};this.flexDir==="row"?ee.flexBasis=ee.width:this.flexDir==="column"&&(ee.flexBasis=ee.height),Wc.exports.flushSync(function(){i.setState(ee)}),this.props.onResize&&this.props.onResize(n,C,this.resizable,ae)}},t.prototype.onMouseUp=function(n){var i=this.state,o=i.isResizing,s=i.direction,u=i.original;if(!(!o||!this.resizable)){var p={width:this.size.width-u.width,height:this.size.height-u.height};this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,p),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:wu(wu({},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,s=i.handleStyles,u=i.handleClasses,p=i.handleWrapperStyle,m=i.handleWrapperClass,v=i.handleComponent;if(!o)return null;var g=Object.keys(o).map(function(b){return o[b]!==!1?N(S2e,{direction:b,onResizeStart:n.onResizeStart,replaceStyles:s&&s[b],className:u&&u[b],children:v&&v[b]?v[b]:null},b,!1,{fileName:M5,lineNumber:704,columnNumber:25},this):null});return N("div",{className:m,style:p,children:g},void 0,!1,{fileName:M5,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(u,p){return _2e.indexOf(p)!==-1||(u[p]=n.props[p]),u},{}),o=wu(wu(wu({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 s=this.props.as||"div";return N(s,{...wu({ref:this.ref,style:o,className:this.props.className},i),children:[this.state.isResizing&&N("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:M5,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:M5,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}(E.exports.PureComponent);function Tr(){return Tr=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},Tr.apply(this,arguments)}function _r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Kb(e,t=[]){let n=[];function i(s,u){const p=E.exports.createContext(u),m=n.length;n=[...n,u];function v(b){const{scope:C,children:w,...T}=b,A=C?.[e][m]||p,k=E.exports.useMemo(()=>T,Object.values(T));return E.exports.createElement(A.Provider,{value:k},w)}function g(b,C){const w=C?.[e][m]||p,T=E.exports.useContext(w);if(T)return T;if(u!==void 0)return u;throw new Error(`\`${b}\` must be used within \`${s}\``)}return v.displayName=s+"Provider",[v,g]}const o=()=>{const s=n.map(u=>E.exports.createContext(u));return function(p){const m=p?.[e]||s;return E.exports.useMemo(()=>({[`__scope${e}`]:{...p,[e]:m}}),[p,m])}};return o.scopeName=e,[i,T2e(o,...t)]}function T2e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const u=i.reduce((p,{useScope:m,scopeName:v})=>{const b=m(s)[`__scope${v}`];return{...p,...b}},{});return E.exports.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function R2e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Oj(...e){return t=>e.forEach(n=>R2e(n,t))}function nl(...e){return E.exports.useCallback(Oj(...e),e)}const Cb=E.exports.forwardRef((e,t)=>{const{children:n,...i}=e,o=E.exports.Children.toArray(n),s=o.find(O2e);if(s){const u=s.props.children,p=o.map(m=>m===s?E.exports.Children.count(u)>1?E.exports.Children.only(null):E.exports.isValidElement(u)?u.props.children:null:m);return E.exports.createElement(w8,Tr({},i,{ref:t}),E.exports.isValidElement(u)?E.exports.cloneElement(u,void 0,p):null)}return E.exports.createElement(w8,Tr({},i,{ref:t}),n)});Cb.displayName="Slot";const w8=E.exports.forwardRef((e,t)=>{const{children:n,...i}=e;return E.exports.isValidElement(n)?E.exports.cloneElement(n,{...L2e(i,n.props),ref:Oj(t,n.ref)}):E.exports.Children.count(n)>1?E.exports.Children.only(null):null});w8.displayName="SlotClone";const A2e=({children:e})=>E.exports.createElement(E.exports.Fragment,null,e);function O2e(e){return E.exports.isValidElement(e)&&e.type===A2e}function L2e(e,t){const n={...t};for(const i in t){const o=e[i],s=t[i];/^on[A-Z]/.test(i)?o&&s?n[i]=(...p)=>{s(...p),o(...p)}:o&&(n[i]=o):i==="style"?n[i]={...o,...s}:i==="className"&&(n[i]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}const k2e=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],jc=k2e.reduce((e,t)=>{const n=E.exports.forwardRef((i,o)=>{const{asChild:s,...u}=i,p=s?Cb:t;return E.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),E.exports.createElement(p,Tr({},u,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Lj(e,t){e&&Wc.exports.flushSync(()=>e.dispatchEvent(t))}function kj(e){const t=e+"CollectionProvider",[n,i]=Kb(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=w=>{const{scope:T,children:A}=w,k=_e.useRef(null),I=_e.useRef(new Map).current;return _e.createElement(o,{scope:T,itemMap:I,collectionRef:k},A)},p=e+"CollectionSlot",m=_e.forwardRef((w,T)=>{const{scope:A,children:k}=w,I=s(p,A),D=nl(T,I.collectionRef);return _e.createElement(Cb,{ref:D},k)}),v=e+"CollectionItemSlot",g="data-radix-collection-item",b=_e.forwardRef((w,T)=>{const{scope:A,children:k,...I}=w,D=_e.useRef(null),P=nl(T,D),F=s(v,A);return _e.useEffect(()=>(F.itemMap.set(D,{ref:D,...I}),()=>void F.itemMap.delete(D))),_e.createElement(Cb,{[g]:"",ref:P},k)});function C(w){const T=s(e+"CollectionConsumer",w);return _e.useCallback(()=>{const k=T.collectionRef.current;if(!k)return[];const I=Array.from(k.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((F,z)=>I.indexOf(F.ref.current)-I.indexOf(z.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:m,ItemSlot:b},C,i]}const M2e=E.exports.createContext(void 0);function Mj(e){const t=E.exports.useContext(M2e);return e||t||"ltr"}function Uu(e){const t=E.exports.useRef(e);return E.exports.useEffect(()=>{t.current=e}),E.exports.useMemo(()=>(...n)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...n)},[])}function D2e(e,t=globalThis?.document){const n=Uu(e);E.exports.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i)},[n,t])}const N8="dismissableLayer.update",P2e="dismissableLayer.pointerDownOutside",I2e="dismissableLayer.focusOutside";let _P;const $2e=E.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F2e=E.exports.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:p,onDismiss:m,...v}=e,g=E.exports.useContext($2e),[b,C]=E.exports.useState(null),w=(n=b?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,T]=E.exports.useState({}),A=nl(t,Q=>C(Q)),k=Array.from(g.layers),[I]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),D=k.indexOf(I),P=b?k.indexOf(b):-1,F=g.layersWithOutsidePointerEventsDisabled.size>0,z=P>=D,q=z2e(Q=>{const ie=Q.target,ae=[...g.branches].some(pe=>pe.contains(ie));!z||ae||(s?.(Q),p?.(Q),Q.defaultPrevented||m?.())},w),Y=B2e(Q=>{const ie=Q.target;[...g.branches].some(pe=>pe.contains(ie))||(u?.(Q),p?.(Q),Q.defaultPrevented||m?.())},w);return D2e(Q=>{P===g.layers.size-1&&(o?.(Q),!Q.defaultPrevented&&m&&(Q.preventDefault(),m()))},w),E.exports.useEffect(()=>{if(!!b)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_P=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(b)),g.layers.add(b),TP(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=_P)}},[b,w,i,g]),E.exports.useEffect(()=>()=>{!b||(g.layers.delete(b),g.layersWithOutsidePointerEventsDisabled.delete(b),TP())},[b,g]),E.exports.useEffect(()=>{const Q=()=>T({});return document.addEventListener(N8,Q),()=>document.removeEventListener(N8,Q)},[]),E.exports.createElement(jc.div,Tr({},v,{ref:A,style:{pointerEvents:F?z?"auto":"none":void 0,...e.style},onFocusCapture:_r(e.onFocusCapture,Y.onFocusCapture),onBlurCapture:_r(e.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:_r(e.onPointerDownCapture,q.onPointerDownCapture)}))});function z2e(e,t=globalThis?.document){const n=Uu(e),i=E.exports.useRef(!1),o=E.exports.useRef(()=>{});return E.exports.useEffect(()=>{const s=p=>{if(p.target&&!i.current){let g=function(){Dj(P2e,n,v,{discrete:!0})};var m=g;const v={originalEvent:p};p.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=g,t.addEventListener("click",o.current,{once:!0})):g()}i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function B2e(e,t=globalThis?.document){const n=Uu(e),i=E.exports.useRef(!1);return E.exports.useEffect(()=>{const o=s=>{s.target&&!i.current&&Dj(I2e,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function TP(){const e=new CustomEvent(N8);document.dispatchEvent(e)}function Dj(e,t,n,{discrete:i}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?Lj(o,s):o.dispatchEvent(s)}let L7=0;function U2e(){E.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:RP()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:RP()),L7++,()=>{L7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),L7--}},[])}function RP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const k7="focusScope.autoFocusOnMount",M7="focusScope.autoFocusOnUnmount",AP={bubbles:!1,cancelable:!0},j2e=E.exports.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[p,m]=E.exports.useState(null),v=Uu(o),g=Uu(s),b=E.exports.useRef(null),C=nl(t,A=>m(A)),w=E.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.exports.useEffect(()=>{if(i){let I=function(P){if(w.paused||!p)return;const F=P.target;p.contains(F)?b.current=F:nm(b.current,{select:!0})},D=function(P){w.paused||!p||p.contains(P.relatedTarget)||nm(b.current,{select:!0})};var A=I,k=D;return document.addEventListener("focusin",I),document.addEventListener("focusout",D),()=>{document.removeEventListener("focusin",I),document.removeEventListener("focusout",D)}}},[i,p,w.paused]),E.exports.useEffect(()=>{if(p){LP.add(w);const A=document.activeElement;if(!p.contains(A)){const I=new CustomEvent(k7,AP);p.addEventListener(k7,v),p.dispatchEvent(I),I.defaultPrevented||(V2e(q2e(Pj(p)),{select:!0}),document.activeElement===A&&nm(p))}return()=>{p.removeEventListener(k7,v),setTimeout(()=>{const I=new CustomEvent(M7,AP);p.addEventListener(M7,g),p.dispatchEvent(I),I.defaultPrevented||nm(A??document.body,{select:!0}),p.removeEventListener(M7,g),LP.remove(w)},0)}}},[p,v,g,w]);const T=E.exports.useCallback(A=>{if(!n&&!i||w.paused)return;const k=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,I=document.activeElement;if(k&&I){const D=A.currentTarget,[P,F]=H2e(D);P&&F?!A.shiftKey&&I===F?(A.preventDefault(),n&&nm(P,{select:!0})):A.shiftKey&&I===P&&(A.preventDefault(),n&&nm(F,{select:!0})):I===D&&A.preventDefault()}},[n,i,w.paused]);return E.exports.createElement(jc.div,Tr({tabIndex:-1},u,{ref:C,onKeyDown:T}))});function V2e(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(nm(i,{select:t}),document.activeElement!==n)return}function H2e(e){const t=Pj(e),n=OP(t,e),i=OP(t.reverse(),e);return[n,i]}function Pj(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function OP(e,t){for(const n of e)if(!W2e(n,{upTo:t}))return n}function W2e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function G2e(e){return e instanceof HTMLInputElement&&"select"in e}function nm(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G2e(e)&&t&&e.select()}}const LP=Y2e();function Y2e(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=kP(e,t),e.unshift(t)},remove(t){var n;e=kP(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function kP(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function q2e(e){return e.filter(t=>t.tagName!=="A")}const Hv=Boolean(globalThis?.document)?E.exports.useLayoutEffect:()=>{},Z2e=F7["useId".toString()]||(()=>{});let K2e=0;function X2e(e){const[t,n]=E.exports.useState(Z2e());return Hv(()=>{e||n(i=>i??String(K2e++))},[e]),e||(t?`radix-${t}`:"")}function n0(e){return e.split("-")[0]}function V3(e){return e.split("-")[1]}function r0(e){return["top","bottom"].includes(n0(e))?"x":"y"}function zT(e){return e==="y"?"height":"width"}function MP(e,t,n){let{reference:i,floating:o}=e;const s=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,p=r0(t),m=zT(p),v=i[m]/2-o[m]/2,g=n0(t),b=p==="x";let C;switch(g){case"top":C={x:s,y:i.y-o.height};break;case"bottom":C={x:s,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:u};break;case"left":C={x:i.x-o.width,y:u};break;default:C={x:i.x,y:i.y}}switch(V3(t)){case"start":C[p]-=v*(n&&b?-1:1);break;case"end":C[p]+=v*(n&&b?-1:1);break}return C}const Q2e=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:u}=n,p=await(u.isRTL==null?void 0:u.isRTL(t));if(u==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(T=>{let{name:A}=T;return A==="autoPlacement"||A==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let m=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:g}=MP(m,i,p),b=i,C={},w=0;for(let T=0;T<s.length;T++){const{name:A,fn:k}=s[T],{x:I,y:D,data:P,reset:F}=await k({x:v,y:g,initialPlacement:i,placement:b,strategy:o,middlewareData:C,rects:m,platform:u,elements:{reference:e,floating:t}});if(v=I??v,g=D??g,C={...C,[A]:{...C[A],...P}},w>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),F&&w<=50){w++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(m=F.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:v,y:g}=MP(m,b,p)),T=-1;continue}}return{x:v,y:g,placement:b,strategy:o,middlewareData:C}};function J2e(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ij(e){return typeof e!="number"?J2e(e):{top:e,right:e,bottom:e,left:e}}function KS(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function XS(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:u,elements:p,strategy:m}=e,{boundary:v="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:C=!1,padding:w=0}=t,T=Ij(w),k=p[C?b==="floating"?"reference":"floating":b],I=KS(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(k)))==null||n?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:v,rootBoundary:g,strategy:m})),D=KS(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b==="floating"?{...u.floating,x:i,y:o}:u.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),strategy:m}):u[b]);return{top:I.top-D.top+T.top,bottom:D.bottom-I.bottom+T.bottom,left:I.left-D.left+T.left,right:D.right-I.right+T.right}}const exe=Math.min,txe=Math.max;function E8(e,t,n){return txe(e,exe(t,n))}const DP=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e??{},{x:o,y:s,placement:u,rects:p,platform:m}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const v=Ij(i),g={x:o,y:s},b=r0(u),C=V3(u),w=zT(b),T=await m.getDimensions(n),A=b==="y"?"top":"left",k=b==="y"?"bottom":"right",I=p.reference[w]+p.reference[b]-g[b]-p.floating[w],D=g[b]-p.reference[b],P=await(m.getOffsetParent==null?void 0:m.getOffsetParent(n));let F=P?b==="y"?P.clientHeight||0:P.clientWidth||0:0;F===0&&(F=p.floating[w]);const z=I/2-D/2,q=v[A],Y=F-T[w]-v[k],Q=F/2-T[w]/2+z,ie=E8(q,Q,Y),$e=(C==="start"?v[A]:v[k])>0&&Q!==ie&&p.reference[w]<=p.floating[w]?Q<q?q-Q:Y-Q:0;return{[b]:g[b]-$e,data:{[b]:ie,centerOffset:Q-ie}}}}),nxe={left:"right",right:"left",bottom:"top",top:"bottom"};function QS(e){return e.replace(/left|right|bottom|top/g,t=>nxe[t])}function rxe(e,t,n){n===void 0&&(n=!1);const i=V3(e),o=r0(e),s=zT(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=QS(u)),{main:u,cross:QS(u)}}const ixe={start:"end",end:"start"};function PP(e){return e.replace(/start|end/g,t=>ixe[t])}const axe=["top","right","bottom","left"];function oxe(e){const t=QS(e);return[PP(e),t,PP(t)]}const sxe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:o,rects:s,initialPlacement:u,platform:p,elements:m}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",flipAlignment:w=!0,...T}=e,A=n0(i),I=b||(A===u||!w?[QS(u)]:oxe(u)),D=[u,...I],P=await XS(t,T),F=[];let z=((n=o.flip)==null?void 0:n.overflows)||[];if(v&&F.push(P[A]),g){const{main:ie,cross:ae}=rxe(i,s,await(p.isRTL==null?void 0:p.isRTL(m.floating)));F.push(P[ie],P[ae])}if(z=[...z,{placement:i,overflows:F}],!F.every(ie=>ie<=0)){var q,Y;const ie=((q=(Y=o.flip)==null?void 0:Y.index)!=null?q:0)+1,ae=D[ie];if(ae)return{data:{index:ie,overflows:z},reset:{placement:ae}};let pe="bottom";switch(C){case"bestFit":{var Q;const $e=(Q=z.map(te=>[te,te.overflows.filter(ee=>ee>0).reduce((ee,be)=>ee+be,0)]).sort((te,ee)=>te[1]-ee[1])[0])==null?void 0:Q[0].placement;$e&&(pe=$e);break}case"initialPlacement":pe=u;break}if(i!==pe)return{reset:{placement:pe}}}return{}}}};function IP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $P(e){return axe.some(t=>e[t]>=0)}const lxe=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(i){const{rects:o}=i;switch(t){case"referenceHidden":{const s=await XS(i,{...n,elementContext:"reference"}),u=IP(s,o.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:$P(u)}}}case"escaped":{const s=await XS(i,{...n,altBoundary:!0}),u=IP(s,o.floating);return{data:{escapedOffsets:u,escaped:$P(u)}}}default:return{}}}}};async function uxe(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=n0(n),p=V3(n),m=r0(n)==="x",v=["left","top"].includes(u)?-1:1,g=s&&m?-1:1,b=typeof t=="function"?t(e):t;let{mainAxis:C,crossAxis:w,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return p&&typeof T=="number"&&(w=p==="end"?T*-1:T),m?{x:w*g,y:C*v}:{x:C*v,y:w*g}}const cxe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,o=await uxe(t,e);return{x:n+o.x,y:i+o.y,data:o}}}};function $j(e){return e==="x"?"y":"x"}const fxe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:p={fn:k=>{let{x:I,y:D}=k;return{x:I,y:D}}},...m}=e,v={x:n,y:i},g=await XS(t,m),b=r0(n0(o)),C=$j(b);let w=v[b],T=v[C];if(s){const k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",D=w+g[k],P=w-g[I];w=E8(D,w,P)}if(u){const k=C==="y"?"top":"left",I=C==="y"?"bottom":"right",D=T+g[k],P=T-g[I];T=E8(D,T,P)}const A=p.fn({...t,[b]:w,[C]:T});return{...A,data:{x:A.x-n,y:A.y-i}}}}},dxe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:u}=t,{offset:p=0,mainAxis:m=!0,crossAxis:v=!0}=e,g={x:n,y:i},b=r0(o),C=$j(b);let w=g[b],T=g[C];const A=typeof p=="function"?p({...s,placement:o}):p,k=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(m){const z=b==="y"?"height":"width",q=s.reference[b]-s.floating[z]+k.mainAxis,Y=s.reference[b]+s.reference[z]-k.mainAxis;w<q?w=q:w>Y&&(w=Y)}if(v){var I,D,P,F;const z=b==="y"?"width":"height",q=["top","left"].includes(n0(o)),Y=s.reference[C]-s.floating[z]+(q&&(I=(D=u.offset)==null?void 0:D[C])!=null?I:0)+(q?0:k.crossAxis),Q=s.reference[C]+s.reference[z]+(q?0:(P=(F=u.offset)==null?void 0:F[C])!=null?P:0)-(q?k.crossAxis:0);T<Y?T=Y:T>Q&&(T=Q)}return{[b]:w,[C]:T}}}};function Fj(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Yc(e){if(e==null)return window;if(!Fj(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xb(e){return Yc(e).getComputedStyle(e)}function Vc(e){return Fj(e)?"":e?(e.nodeName||"").toLowerCase():""}function zj(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function ju(e){return e instanceof Yc(e).HTMLElement}function Sd(e){return e instanceof Yc(e).Element}function pxe(e){return e instanceof Yc(e).Node}function BT(e){if(typeof ShadowRoot>"u")return!1;const t=Yc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function H3(e){const{overflow:t,overflowX:n,overflowY:i}=Xb(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function mxe(e){return["table","td","th"].includes(Vc(e))}function Bj(e){const t=/firefox/i.test(zj()),n=Xb(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function Uj(){return!/^((?!chrome|android).)*safari/i.test(zj())}const FP=Math.min,Kg=Math.max,JS=Math.round;function Hc(e,t,n){var i,o,s,u;t===void 0&&(t=!1),n===void 0&&(n=!1);const p=e.getBoundingClientRect();let m=1,v=1;t&&ju(e)&&(m=e.offsetWidth>0&&JS(p.width)/e.offsetWidth||1,v=e.offsetHeight>0&&JS(p.height)/e.offsetHeight||1);const g=Sd(e)?Yc(e):window,b=!Uj()&&n,C=(p.left+(b&&(i=(o=g.visualViewport)==null?void 0:o.offsetLeft)!=null?i:0))/m,w=(p.top+(b&&(s=(u=g.visualViewport)==null?void 0:u.offsetTop)!=null?s:0))/v,T=p.width/m,A=p.height/v;return{width:T,height:A,top:w,right:C+T,bottom:w+A,left:C,x:C,y:w}}function Ed(e){return((pxe(e)?e.ownerDocument:e.document)||window.document).documentElement}function W3(e){return Sd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jj(e){return Hc(Ed(e)).left+W3(e).scrollLeft}function hxe(e){const t=Hc(e);return JS(t.width)!==e.offsetWidth||JS(t.height)!==e.offsetHeight}function vxe(e,t,n){const i=ju(t),o=Ed(t),s=Hc(e,i&&hxe(t),n==="fixed");let u={scrollLeft:0,scrollTop:0};const p={x:0,y:0};if(i||!i&&n!=="fixed")if((Vc(t)!=="body"||H3(o))&&(u=W3(t)),ju(t)){const m=Hc(t,!0);p.x=m.x+t.clientLeft,p.y=m.y+t.clientTop}else o&&(p.x=jj(o));return{x:s.left+u.scrollLeft-p.x,y:s.top+u.scrollTop-p.y,width:s.width,height:s.height}}function Vj(e){return Vc(e)==="html"?e:e.assignedSlot||e.parentNode||(BT(e)?e.host:null)||Ed(e)}function zP(e){return!ju(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function gxe(e){let t=Vj(e);for(BT(t)&&(t=t.host);ju(t)&&!["html","body"].includes(Vc(t));){if(Bj(t))return t;t=t.parentNode}return null}function _8(e){const t=Yc(e);let n=zP(e);for(;n&&mxe(n)&&getComputedStyle(n).position==="static";)n=zP(n);return n&&(Vc(n)==="html"||Vc(n)==="body"&&getComputedStyle(n).position==="static"&&!Bj(n))?t:n||gxe(e)||t}function BP(e){if(ju(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Hc(e);return{width:t.width,height:t.height}}function bxe(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=ju(n),s=Ed(n);if(n===s)return t;let u={scrollLeft:0,scrollTop:0};const p={x:0,y:0};if((o||!o&&i!=="fixed")&&((Vc(n)!=="body"||H3(s))&&(u=W3(n)),ju(n))){const m=Hc(n,!0);p.x=m.x+n.clientLeft,p.y=m.y+n.clientTop}return{...t,x:t.x-u.scrollLeft+p.x,y:t.y-u.scrollTop+p.y}}function yxe(e,t){const n=Yc(e),i=Ed(e),o=n.visualViewport;let s=i.clientWidth,u=i.clientHeight,p=0,m=0;if(o){s=o.width,u=o.height;const v=Uj();(v||!v&&t==="fixed")&&(p=o.offsetLeft,m=o.offsetTop)}return{width:s,height:u,x:p,y:m}}function xxe(e){var t;const n=Ed(e),i=W3(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Kg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Kg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let p=-i.scrollLeft+jj(e);const m=-i.scrollTop;return Xb(o||n).direction==="rtl"&&(p+=Kg(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:u,x:p,y:m}}function Hj(e){const t=Vj(e);return["html","body","#document"].includes(Vc(t))?e.ownerDocument.body:ju(t)&&H3(t)?t:Hj(t)}function e3(e,t){var n;t===void 0&&(t=[]);const i=Hj(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Yc(i),u=o?[s].concat(s.visualViewport||[],H3(i)?i:[]):i,p=t.concat(u);return o?p:p.concat(e3(u))}function Sxe(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&BT(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function Cxe(e,t){const n=Hc(e,!1,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:i,left:o,x:o,y:i,right:o+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function UP(e,t,n){return t==="viewport"?KS(yxe(e,n)):Sd(t)?Cxe(t,n):KS(xxe(Ed(e)))}function wxe(e){const t=e3(e),i=["absolute","fixed"].includes(Xb(e).position)&&ju(e)?_8(e):e;return Sd(i)?t.filter(o=>Sd(o)&&Sxe(o,i)&&Vc(o)!=="body"):[]}function Nxe(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const u=[...n==="clippingAncestors"?wxe(t):[].concat(n),i],p=u[0],m=u.reduce((v,g)=>{const b=UP(t,g,o);return v.top=Kg(b.top,v.top),v.right=FP(b.right,v.right),v.bottom=FP(b.bottom,v.bottom),v.left=Kg(b.left,v.left),v},UP(t,p,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}const Exe={getClippingRect:Nxe,convertOffsetParentRelativeRectToViewportRelativeRect:bxe,isElement:Sd,getDimensions:BP,getOffsetParent:_8,getDocumentElement:Ed,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:vxe(t,_8(n),i),floating:{...BP(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xb(e).direction==="rtl"};function _xe(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u=!0,animationFrame:p=!1}=i,m=o&&!p,v=s&&!p,g=m||v?[...Sd(e)?e3(e):[],...e3(t)]:[];g.forEach(A=>{m&&A.addEventListener("scroll",n,{passive:!0}),v&&A.addEventListener("resize",n)});let b=null;if(u){let A=!0;b=new ResizeObserver(()=>{A||n(),A=!1}),Sd(e)&&!p&&b.observe(e),b.observe(t)}let C,w=p?Hc(e):null;p&&T();function T(){const A=Hc(e);w&&(A.x!==w.x||A.y!==w.y||A.width!==w.width||A.height!==w.height)&&n(),w=A,C=requestAnimationFrame(T)}return n(),()=>{var A;g.forEach(k=>{m&&k.removeEventListener("scroll",n),v&&k.removeEventListener("resize",n)}),(A=b)==null||A.disconnect(),b=null,p&&cancelAnimationFrame(C)}}const Txe=(e,t,n)=>Q2e(e,t,{platform:Exe,...n});var T8=typeof document<"u"?E.exports.useLayoutEffect:E.exports.useEffect;function R8(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!R8(e[i],t[i]))return!1;return!0}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;for(i=n;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!R8(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Rxe(e){const t=E.exports.useRef(e);return T8(()=>{t.current=e}),t}function Axe(e){let{middleware:t,placement:n="bottom",strategy:i="absolute",whileElementsMounted:o}=e===void 0?{}:e;const s=E.exports.useRef(null),u=E.exports.useRef(null),p=Rxe(o),m=E.exports.useRef(null),[v,g]=E.exports.useState({x:null,y:null,strategy:i,placement:n,middlewareData:{}}),[b,C]=E.exports.useState(t);R8(b?.map(P=>{let{options:F}=P;return F}),t?.map(P=>{let{options:F}=P;return F}))||C(t);const w=E.exports.useCallback(()=>{!s.current||!u.current||Txe(s.current,u.current,{middleware:b,placement:n,strategy:i}).then(P=>{T.current&&Wc.exports.flushSync(()=>{g(P)})})},[b,n,i]);T8(()=>{T.current&&w()},[w]);const T=E.exports.useRef(!1);T8(()=>(T.current=!0,()=>{T.current=!1}),[]);const A=E.exports.useCallback(()=>{if(typeof m.current=="function"&&(m.current(),m.current=null),s.current&&u.current)if(p.current){const P=p.current(s.current,u.current,w);m.current=P}else w()},[w,p]),k=E.exports.useCallback(P=>{s.current=P,A()},[A]),I=E.exports.useCallback(P=>{u.current=P,A()},[A]),D=E.exports.useMemo(()=>({reference:s,floating:u}),[]);return E.exports.useMemo(()=>({...v,update:w,refs:D,reference:k,floating:I}),[v,w,D,k,I])}const Oxe=e=>{const{element:t,padding:n}=e;function i(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return i(t)?t.current!=null?DP({element:t.current,padding:n}).fn(o):{}:t?DP({element:t,padding:n}).fn(o):{}}}};function Lxe(e){const[t,n]=E.exports.useState(void 0);return Hv(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let u,p;if("borderBoxSize"in s){const m=s.borderBoxSize,v=Array.isArray(m)?m[0]:m;u=v.inlineSize,p=v.blockSize}else u=e.offsetWidth,p=e.offsetHeight;n({width:u,height:p})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}const Wj="Popper",[UT,Gj]=Kb(Wj),[kxe,Yj]=UT(Wj),Mxe=e=>{const{__scopePopper:t,children:n}=e,[i,o]=E.exports.useState(null);return E.exports.createElement(kxe,{scope:t,anchor:i,onAnchorChange:o},n)},Dxe="PopperAnchor",Pxe=E.exports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,s=Yj(Dxe,n),u=E.exports.useRef(null),p=nl(t,u);return E.exports.useEffect(()=>{s.onAnchorChange(i?.current||u.current)}),i?null:E.exports.createElement(jc.div,Tr({},o,{ref:p}))}),t3="PopperContent",[Ixe,jSe]=UT(t3),[$xe,Fxe]=UT(t3,{hasParent:!1,positionUpdateFns:new Set}),zxe=E.exports.forwardRef((e,t)=>{var n,i,o,s,u,p,m,v;const{__scopePopper:g,side:b="bottom",sideOffset:C=0,align:w="center",alignOffset:T=0,arrowPadding:A=0,collisionBoundary:k=[],collisionPadding:I=0,sticky:D="partial",hideWhenDetached:P=!1,avoidCollisions:F=!0,...z}=e,q=Yj(t3,g),[Y,Q]=E.exports.useState(null),ie=nl(t,_t=>Q(_t)),[ae,pe]=E.exports.useState(null),$e=Lxe(ae),te=(n=$e?.width)!==null&&n!==void 0?n:0,ee=(i=$e?.height)!==null&&i!==void 0?i:0,be=b+(w!=="center"?"-"+w:""),Ce=typeof I=="number"?I:{top:0,right:0,bottom:0,left:0,...I},K=Array.isArray(k)?k:[k],le=K.length>0,ve={padding:Ce,boundary:K.filter(Uxe),altBoundary:le},{reference:de,floating:we,strategy:Le,x:Me,y:Ze,placement:Je,middlewareData:it,update:Rt}=Axe({strategy:"fixed",placement:be,whileElementsMounted:_xe,middleware:[cxe({mainAxis:C+ee,alignmentAxis:T}),F?fxe({mainAxis:!0,crossAxis:!1,limiter:D==="partial"?dxe():void 0,...ve}):void 0,ae?Oxe({element:ae,padding:A}):void 0,F?sxe({...ve}):void 0,jxe({arrowWidth:te,arrowHeight:ee}),P?lxe({strategy:"referenceHidden"}):void 0].filter(Bxe)});Hv(()=>{de(q.anchor)},[de,q.anchor]);const Ve=Me!==null&&Ze!==null,[at,St]=qj(Je),Dt=(o=it.arrow)===null||o===void 0?void 0:o.x,He=(s=it.arrow)===null||s===void 0?void 0:s.y,jt=((u=it.arrow)===null||u===void 0?void 0:u.centerOffset)!==0,[Se,tt]=E.exports.useState();Hv(()=>{Y&&tt(window.getComputedStyle(Y).zIndex)},[Y]);const{hasParent:Ct,positionUpdateFns:nt}=Fxe(t3,g),on=!Ct;E.exports.useLayoutEffect(()=>{if(!on)return nt.add(Rt),()=>{nt.delete(Rt)}},[on,nt,Rt]),E.exports.useLayoutEffect(()=>{on&&Ve&&Array.from(nt).reverse().forEach(_t=>requestAnimationFrame(_t))},[on,Ve,nt]);const Ln={"data-side":at,"data-align":St,...z,ref:ie,style:{...z.style,animation:Ve?void 0:"none",opacity:(p=it.hide)!==null&&p!==void 0&&p.referenceHidden?0:void 0}};return E.exports.createElement("div",{ref:we,"data-radix-popper-content-wrapper":"",style:{position:Le,left:0,top:0,transform:Ve?`translate3d(${Math.round(Me)}px, ${Math.round(Ze)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Se,["--radix-popper-transform-origin"]:[(m=it.transformOrigin)===null||m===void 0?void 0:m.x,(v=it.transformOrigin)===null||v===void 0?void 0:v.y].join(" ")}},E.exports.createElement(Ixe,{scope:g,placedSide:at,onArrowChange:pe,arrowX:Dt,arrowY:He,shouldHideArrow:jt},on?E.exports.createElement($xe,{scope:g,hasParent:!0,positionUpdateFns:nt},E.exports.createElement(jc.div,Ln)):E.exports.createElement(jc.div,Ln)))});function Bxe(e){return e!==void 0}function Uxe(e){return e!==null}const jxe=e=>({name:"transformOrigin",options:e,fn(t){var n,i,o,s,u;const{placement:p,rects:m,middlewareData:v}=t,b=((n=v.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,C=b?0:e.arrowWidth,w=b?0:e.arrowHeight,[T,A]=qj(p),k={start:"0%",center:"50%",end:"100%"}[A],I=((i=(o=v.arrow)===null||o===void 0?void 0:o.x)!==null&&i!==void 0?i:0)+C/2,D=((s=(u=v.arrow)===null||u===void 0?void 0:u.y)!==null&&s!==void 0?s:0)+w/2;let P="",F="";return T==="bottom"?(P=b?k:`${I}px`,F=`${-w}px`):T==="top"?(P=b?k:`${I}px`,F=`${m.floating.height+w}px`):T==="right"?(P=`${-w}px`,F=b?k:`${D}px`):T==="left"&&(P=`${m.floating.width+w}px`,F=b?k:`${D}px`),{data:{x:P,y:F}}}});function qj(e){const[t,n="center"]=e.split("-");return[t,n]}const Vxe=Mxe,Hxe=Pxe,Wxe=zxe;function Gxe(e,t){return E.exports.useReducer((n,i)=>{const o=t[n][i];return o??n},e)}const Zj=e=>{const{present:t,children:n}=e,i=Yxe(t),o=typeof n=="function"?n({present:i.isPresent}):E.exports.Children.only(n),s=nl(i.ref,o.ref);return typeof n=="function"||i.isPresent?E.exports.cloneElement(o,{ref:s}):null};Zj.displayName="Presence";function Yxe(e){const[t,n]=E.exports.useState(),i=E.exports.useRef({}),o=E.exports.useRef(e),s=E.exports.useRef("none"),u=e?"mounted":"unmounted",[p,m]=Gxe(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.exports.useEffect(()=>{const v=$5(i.current);s.current=p==="mounted"?v:"none"},[p]),Hv(()=>{const v=i.current,g=o.current;if(g!==e){const C=s.current,w=$5(v);e?m("MOUNT"):w==="none"||v?.display==="none"?m("UNMOUNT"):m(g&&C!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Hv(()=>{if(t){const v=b=>{const w=$5(i.current).includes(b.animationName);b.target===t&&w&&Wc.exports.flushSync(()=>m("ANIMATION_END"))},g=b=>{b.target===t&&(s.current=$5(i.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:E.exports.useCallback(v=>{v&&(i.current=getComputedStyle(v)),n(v)},[])}}function $5(e){return e?.animationName||"none"}function qxe({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=Zxe({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:i,p=Uu(n),m=E.exports.useCallback(v=>{if(s){const b=typeof v=="function"?v(e):v;b!==e&&p(b)}else o(v)},[s,e,o,p]);return[u,m]}function Zxe({defaultProp:e,onChange:t}){const n=E.exports.useState(e),[i]=n,o=E.exports.useRef(i),s=Uu(t);return E.exports.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),n}const D7="rovingFocusGroup.onEntryFocus",Kxe={bubbles:!1,cancelable:!0},jT="RovingFocusGroup",[A8,Kj,Xxe]=kj(jT),[Qxe,Xj]=Kb(jT,[Xxe]),[Jxe,e5e]=Qxe(jT),t5e=E.exports.forwardRef((e,t)=>E.exports.createElement(A8.Provider,{scope:e.__scopeRovingFocusGroup},E.exports.createElement(A8.Slot,{scope:e.__scopeRovingFocusGroup},E.exports.createElement(n5e,Tr({},e,{ref:t}))))),n5e=E.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,...g}=e,b=E.exports.useRef(null),C=nl(t,b),w=Mj(s),[T=null,A]=qxe({prop:u,defaultProp:p,onChange:m}),[k,I]=E.exports.useState(!1),D=Uu(v),P=Kj(n),F=E.exports.useRef(!1),[z,q]=E.exports.useState(0);return E.exports.useEffect(()=>{const Y=b.current;if(Y)return Y.addEventListener(D7,D),()=>Y.removeEventListener(D7,D)},[D]),E.exports.createElement(Jxe,{scope:n,orientation:i,dir:w,loop:o,currentTabStopId:T,onItemFocus:E.exports.useCallback(Y=>A(Y),[A]),onItemShiftTab:E.exports.useCallback(()=>I(!0),[]),onFocusableItemAdd:E.exports.useCallback(()=>q(Y=>Y+1),[]),onFocusableItemRemove:E.exports.useCallback(()=>q(Y=>Y-1),[])},E.exports.createElement(jc.div,Tr({tabIndex:k||z===0?-1:0,"data-orientation":i},g,{ref:C,style:{outline:"none",...e.style},onMouseDown:_r(e.onMouseDown,()=>{F.current=!0}),onFocus:_r(e.onFocus,Y=>{const Q=!F.current;if(Y.target===Y.currentTarget&&Q&&!k){const ie=new CustomEvent(D7,Kxe);if(Y.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const ae=P().filter(be=>be.focusable),pe=ae.find(be=>be.active),$e=ae.find(be=>be.id===T),ee=[pe,$e,...ae].filter(Boolean).map(be=>be.ref.current);Qj(ee)}}F.current=!1}),onBlur:_r(e.onBlur,()=>I(!1))})))}),r5e="RovingFocusGroupItem",i5e=E.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,...s}=e,u=X2e(),p=e5e(r5e,n),m=p.currentTabStopId===u,v=Kj(n),{onFocusableItemAdd:g,onFocusableItemRemove:b}=p;return E.exports.useEffect(()=>{if(i)return g(),()=>b()},[i,g,b]),E.exports.createElement(A8.ItemSlot,{scope:n,id:u,focusable:i,active:o},E.exports.createElement(jc.span,Tr({tabIndex:m?0:-1,"data-orientation":p.orientation},s,{ref:t,onMouseDown:_r(e.onMouseDown,C=>{i?p.onItemFocus(u):C.preventDefault()}),onFocus:_r(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:_r(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){p.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const w=s5e(C,p.orientation,p.dir);if(w!==void 0){C.preventDefault();let A=v().filter(k=>k.focusable).map(k=>k.ref.current);if(w==="last")A.reverse();else if(w==="prev"||w==="next"){w==="prev"&&A.reverse();const k=A.indexOf(C.currentTarget);A=p.loop?l5e(A,k+1):A.slice(k+1)}setTimeout(()=>Qj(A))}})})))}),a5e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function o5e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function s5e(e,t,n){const i=o5e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return a5e[i]}function Qj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function l5e(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const u5e=t5e,c5e=i5e,f5e=["Enter"," "],d5e=["ArrowDown","PageUp","Home"],Jj=["ArrowUp","PageDown","End"],p5e=[...d5e,...Jj],G3="Menu",[O8,m5e,h5e]=kj(G3),[Am,eV]=Kb(G3,[h5e,Gj,Xj]),VT=Gj(),tV=Xj(),[v5e,Y3]=Am(G3),[g5e,HT]=Am(G3),b5e=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:s,modal:u=!0}=e,p=VT(t),[m,v]=E.exports.useState(null),g=E.exports.useRef(!1),b=Uu(s),C=Mj(o);return E.exports.useEffect(()=>{const w=()=>{g.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>g.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),E.exports.createElement(Vxe,p,E.exports.createElement(v5e,{scope:t,open:n,onOpenChange:b,content:m,onContentChange:v},E.exports.createElement(g5e,{scope:t,onClose:E.exports.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:g,dir:C,modal:u},i)))},y5e=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,o=VT(n);return E.exports.createElement(Hxe,Tr({},o,i,{ref:t}))}),x5e="MenuPortal",[VSe,S5e]=Am(x5e,{forceMount:void 0}),pd="MenuContent",[C5e,nV]=Am(pd),w5e=E.exports.forwardRef((e,t)=>{const n=S5e(pd,e.__scopeMenu),{forceMount:i=n.forceMount,...o}=e,s=Y3(pd,e.__scopeMenu),u=HT(pd,e.__scopeMenu);return E.exports.createElement(O8.Provider,{scope:e.__scopeMenu},E.exports.createElement(Zj,{present:i||s.open},E.exports.createElement(O8.Slot,{scope:e.__scopeMenu},u.modal?E.exports.createElement(N5e,Tr({},o,{ref:t})):E.exports.createElement(E5e,Tr({},o,{ref:t})))))}),N5e=E.exports.forwardRef((e,t)=>{const n=Y3(pd,e.__scopeMenu),i=E.exports.useRef(null),o=nl(t,i);return E.exports.useEffect(()=>{const s=i.current;if(s)return oz(s)},[]),E.exports.createElement(rV,Tr({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_r(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),E5e=E.exports.forwardRef((e,t)=>{const n=Y3(pd,e.__scopeMenu);return E.exports.createElement(rV,Tr({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),rV=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:C,disableOutsideScroll:w,...T}=e,A=Y3(pd,n),k=HT(pd,n),I=VT(n),D=tV(n),P=m5e(n),[F,z]=E.exports.useState(null),q=E.exports.useRef(null),Y=nl(t,q,A.onContentChange),Q=E.exports.useRef(0),ie=E.exports.useRef(""),ae=E.exports.useRef(0),pe=E.exports.useRef(null),$e=E.exports.useRef("right"),te=E.exports.useRef(0),ee=w?Gz:E.exports.Fragment,be=w?{as:Cb,allowPinchZoom:!0}:void 0,Ce=le=>{var ve,de;const we=ie.current+le,Le=P().filter(Ve=>!Ve.disabled),Me=document.activeElement,Ze=(ve=Le.find(Ve=>Ve.ref.current===Me))===null||ve===void 0?void 0:ve.textValue,Je=Le.map(Ve=>Ve.textValue),it=D5e(Je,we,Ze),Rt=(de=Le.find(Ve=>Ve.textValue===it))===null||de===void 0?void 0:de.ref.current;(function Ve(at){ie.current=at,window.clearTimeout(Q.current),at!==""&&(Q.current=window.setTimeout(()=>Ve(""),1e3))})(we),Rt&&setTimeout(()=>Rt.focus())};E.exports.useEffect(()=>()=>window.clearTimeout(Q.current),[]),U2e();const K=E.exports.useCallback(le=>{var ve,de;return $e.current===((ve=pe.current)===null||ve===void 0?void 0:ve.side)&&I5e(le,(de=pe.current)===null||de===void 0?void 0:de.area)},[]);return E.exports.createElement(C5e,{scope:n,searchRef:ie,onItemEnter:E.exports.useCallback(le=>{K(le)&&le.preventDefault()},[K]),onItemLeave:E.exports.useCallback(le=>{var ve;K(le)||((ve=q.current)===null||ve===void 0||ve.focus(),z(null))},[K]),onTriggerLeave:E.exports.useCallback(le=>{K(le)&&le.preventDefault()},[K]),pointerGraceTimerRef:ae,onPointerGraceIntentChange:E.exports.useCallback(le=>{pe.current=le},[])},E.exports.createElement(ee,be,E.exports.createElement(j2e,{asChild:!0,trapped:o,onMountAutoFocus:_r(s,le=>{var ve;le.preventDefault(),(ve=q.current)===null||ve===void 0||ve.focus()}),onUnmountAutoFocus:u},E.exports.createElement(F2e,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:C},E.exports.createElement(u5e,Tr({asChild:!0},D,{dir:k.dir,orientation:"vertical",loop:i,currentTabStopId:F,onCurrentTabStopIdChange:z,onEntryFocus:le=>{k.isUsingKeyboardRef.current||le.preventDefault()}}),E.exports.createElement(Wxe,Tr({role:"menu","aria-orientation":"vertical","data-state":L5e(A.open),"data-radix-menu-content":"",dir:k.dir},I,T,{ref:Y,style:{outline:"none",...T.style},onKeyDown:_r(T.onKeyDown,le=>{const de=le.target.closest("[data-radix-menu-content]")===le.currentTarget,we=le.ctrlKey||le.altKey||le.metaKey,Le=le.key.length===1;de&&(le.key==="Tab"&&le.preventDefault(),!we&&Le&&Ce(le.key));const Me=q.current;if(le.target!==Me||!p5e.includes(le.key))return;le.preventDefault();const Je=P().filter(it=>!it.disabled).map(it=>it.ref.current);Jj.includes(le.key)&&Je.reverse(),k5e(Je)}),onBlur:_r(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(Q.current),ie.current="")}),onPointerMove:_r(e.onPointerMove,k8(le=>{const ve=le.target,de=te.current!==le.clientX;if(le.currentTarget.contains(ve)&&de){const we=le.clientX>te.current?"right":"left";$e.current=we,te.current=le.clientX}}))})))))))}),L8="MenuItem",jP="menu.itemSelect",_5e=E.exports.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...o}=e,s=E.exports.useRef(null),u=HT(L8,e.__scopeMenu),p=nV(L8,e.__scopeMenu),m=nl(t,s),v=E.exports.useRef(!1),g=()=>{const b=s.current;if(!n&&b){const C=new CustomEvent(jP,{bubbles:!0,cancelable:!0});b.addEventListener(jP,w=>i?.(w),{once:!0}),Lj(b,C),C.defaultPrevented?v.current=!1:u.onClose()}};return E.exports.createElement(T5e,Tr({},o,{ref:m,disabled:n,onClick:_r(e.onClick,g),onPointerDown:b=>{var C;(C=e.onPointerDown)===null||C===void 0||C.call(e,b),v.current=!0},onPointerUp:_r(e.onPointerUp,b=>{var C;v.current||(C=b.currentTarget)===null||C===void 0||C.click()}),onKeyDown:_r(e.onKeyDown,b=>{const C=p.searchRef.current!=="";n||C&&b.key===" "||f5e.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})}))}),T5e=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:o,...s}=e,u=nV(L8,n),p=tV(n),m=E.exports.useRef(null),v=nl(t,m),[g,b]=E.exports.useState(!1),[C,w]=E.exports.useState("");return E.exports.useEffect(()=>{const T=m.current;if(T){var A;w(((A=T.textContent)!==null&&A!==void 0?A:"").trim())}},[s.children]),E.exports.createElement(O8.ItemSlot,{scope:n,disabled:i,textValue:o??C},E.exports.createElement(c5e,Tr({asChild:!0},p,{focusable:!i}),E.exports.createElement(jc.div,Tr({role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0},s,{ref:v,onPointerMove:_r(e.onPointerMove,k8(T=>{i?u.onItemLeave(T):(u.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus())})),onPointerLeave:_r(e.onPointerLeave,k8(T=>u.onItemLeave(T))),onFocus:_r(e.onFocus,()=>b(!0)),onBlur:_r(e.onBlur,()=>b(!1))}))))}),R5e="MenuRadioGroup";Am(R5e,{value:void 0,onValueChange:()=>{}});const A5e="MenuItemIndicator";Am(A5e,{checked:!1});const O5e="MenuSub";Am(O5e);function L5e(e){return e?"open":"closed"}function k5e(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function M5e(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function D5e(e,t,n){const o=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=M5e(e,Math.max(s,0));o.length===1&&(u=u.filter(v=>v!==n));const m=u.find(v=>v.toLowerCase().startsWith(o.toLowerCase()));return m!==n?m:void 0}function P5e(e,t){const{x:n,y:i}=e;let o=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const p=t[s].x,m=t[s].y,v=t[u].x,g=t[u].y;m>i!=g>i&&n<(v-p)*(i-m)/(g-m)+p&&(o=!o)}return o}function I5e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return P5e(n,t)}function k8(e){return t=>t.pointerType==="mouse"?e(t):void 0}const $5e=b5e,F5e=y5e,z5e=w5e,B5e=_5e,iV="ContextMenu",[U5e,HSe]=Kb(iV,[eV]),q3=eV(),[j5e,aV]=U5e(iV),V5e=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:i,dir:o,modal:s=!0}=e,[u,p]=E.exports.useState(!1),m=q3(t),v=Uu(i),g=E.exports.useCallback(b=>{p(b),v(b)},[v]);return E.exports.createElement(j5e,{scope:t,open:u,onOpenChange:g,modal:s},E.exports.createElement($5e,Tr({},m,{dir:o,open:u,onOpenChange:g,modal:s}),n))},H5e="ContextMenuTrigger",W5e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=aV(H5e,n),s=q3(n),u=E.exports.useRef({x:0,y:0}),p=E.exports.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...u.current})}),m=E.exports.useRef(0),v=E.exports.useCallback(()=>window.clearTimeout(m.current),[]),g=b=>{u.current={x:b.clientX,y:b.clientY},o.onOpenChange(!0)};return E.exports.useEffect(()=>v,[v]),E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(F5e,Tr({},s,{virtualRef:p})),E.exports.createElement(jc.span,Tr({"data-state":o.open?"open":"closed"},i,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:_r(e.onContextMenu,b=>{v(),g(b),b.preventDefault()}),onPointerDown:_r(e.onPointerDown,F5(b=>{v(),m.current=window.setTimeout(()=>g(b),700)})),onPointerMove:_r(e.onPointerMove,F5(v)),onPointerCancel:_r(e.onPointerCancel,F5(v)),onPointerUp:_r(e.onPointerUp,F5(v))})))}),G5e="ContextMenuContent",Y5e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=aV(G5e,n),s=q3(n),u=E.exports.useRef(!1);return E.exports.createElement(z5e,Tr({},s,i,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{var m;(m=e.onCloseAutoFocus)===null||m===void 0||m.call(e,p),!p.defaultPrevented&&u.current&&p.preventDefault(),u.current=!1},onInteractOutside:p=>{var m;(m=e.onInteractOutside)===null||m===void 0||m.call(e,p),!p.defaultPrevented&&!o.modal&&(u.current=!0)},style:{...e.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))}),q5e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=q3(n);return E.exports.createElement(B5e,Tr({},o,i,{ref:t}))});function F5(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const Z5e=V5e,K5e=W5e,X5e=Y5e,dv=q5e;var gi="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Q5e=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,J5e=E.exports.memo(e=>{const t=Sn(),n=bt(P=>P.options.activeTab),[i,o]=E.exports.useState(!1),s=Gb(),{image:u,isSelected:p}=e,{url:m,uuid:v,metadata:g}=u,b=()=>o(!0),C=()=>o(!1),w=()=>{t(RT(u.metadata.image.prompt)),s({title:"Prompt Set",status:"success",duration:2500,isClosable:!0})},T=()=>{t(Yb(u.metadata.image.seed)),s({title:"Seed Set",status:"success",duration:2500,isClosable:!0})},A=()=>{t(ym(u.url)),n!==1&&t(Nu(1)),s({title:"Sent to Image To Image",status:"success",duration:2500,isClosable:!0})},k=()=>{t(K0e(g)),s({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})},I=async()=>{if(g?.image?.init_image_path&&(await fetch(g.image.init_image_path)).ok){t(Nu(WT.indexOf("img2img"))),t(X0e(g)),s({title:"Initial Image Set",status:"success",duration:2500,isClosable:!0});return}s({title:"Initial Image Not Set",description:"Could not load initial image.",status:"error",duration:2500,isClosable:!0})};return N(Z5e,{children:[N(K5e,{children:N(Js,{position:"relative",className:"hoverable-image",onMouseOver:b,onMouseOut:C,children:[N(R3,{className:"hoverable-image-image",objectFit:"cover",rounded:"md",src:m,loading:"lazy"},void 0,!1,{fileName:gi,lineNumber:136,columnNumber:11},void 0),N("div",{className:"hoverable-image-content",onClick:()=>t(t1e(u)),children:p&&N(vs,{width:"50%",height:"50%",as:lye,className:"hoverable-image-check"},void 0,!1,{fileName:gi,lineNumber:145,columnNumber:15},void 0)},void 0,!1,{fileName:gi,lineNumber:143,columnNumber:11},void 0),i&&N("div",{className:"hoverable-image-delete-button",children:N(po,{label:"Delete image",hasArrow:!0,children:N(C8,{image:u,children:N(wa,{"aria-label":"Delete image",icon:N(mye,{},void 0,!1,{fileName:gi,lineNumber:159,columnNumber:27},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:gi,lineNumber:157,columnNumber:19},void 0)},void 0,!1,{fileName:gi,lineNumber:156,columnNumber:17},void 0)},void 0,!1,{fileName:gi,lineNumber:155,columnNumber:15},void 0)},void 0,!1,{fileName:gi,lineNumber:154,columnNumber:13},void 0)]},v,!0,{fileName:gi,lineNumber:129,columnNumber:9},void 0)},void 0,!1,{fileName:gi,lineNumber:128,columnNumber:7},void 0),N(X5e,{className:"hoverable-image-context-menu",children:[N(dv,{onClickCapture:w,disabled:u?.metadata?.image?.prompt===void 0,children:"Use Prompt"},void 0,!1,{fileName:gi,lineNumber:171,columnNumber:9},void 0),N(dv,{onClickCapture:T,disabled:u?.metadata?.image?.seed===void 0,children:"Use Seed"},void 0,!1,{fileName:gi,lineNumber:178,columnNumber:9},void 0),N(dv,{onClickCapture:k,disabled:!["txt2img","img2img"].includes(u?.metadata?.image?.type),children:"Use All Parameters"},void 0,!1,{fileName:gi,lineNumber:184,columnNumber:9},void 0),N(po,{label:"Load initial image used for this generation",children:N(dv,{onClickCapture:I,disabled:u?.metadata?.image?.type!=="img2img",children:"Use Initial Image"},void 0,!1,{fileName:gi,lineNumber:193,columnNumber:11},void 0)},void 0,!1,{fileName:gi,lineNumber:192,columnNumber:9},void 0),N(dv,{onClickCapture:A,children:"Send to Image To Image"},void 0,!1,{fileName:gi,lineNumber:200,columnNumber:9},void 0),N(C8,{image:u,children:N(dv,{"data-warning":!0,children:"Delete Image"},void 0,!1,{fileName:gi,lineNumber:204,columnNumber:11},void 0)},void 0,!1,{fileName:gi,lineNumber:203,columnNumber:9},void 0)]},void 0,!0,{fileName:gi,lineNumber:170,columnNumber:7},void 0)]},void 0,!0,{fileName:gi,lineNumber:127,columnNumber:5},void 0)},Q5e);var co="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";function oV(){const{images:e,currentImageUuid:t,areMoreImagesAvailable:n}=bt(v=>v.gallery),i=bt(v=>v.options.shouldShowGallery),o=bt(v=>v.options.activeTab),s=Sn(),u=()=>{s(RD(!i))},p=()=>{s(RD(!1))},m=()=>{s(VU())};return oi("g",()=>{u()},[i]),oi("left",()=>{s(EU())},[]),oi("right",()=>{s(NU())},[]),N("div",{className:"image-gallery-area",children:[!i&&N(am,{tooltip:"Show Gallery",tooltipPlacement:"top","aria-label":"Show Gallery",onClick:u,className:"image-gallery-popup-btn",children:N(QD,{},void 0,!1,{fileName:co,lineNumber:75,columnNumber:11},this)},void 0,!1,{fileName:co,lineNumber:68,columnNumber:9},this),i&&N(Aj,{defaultSize:{width:"300",height:"100%"},minWidth:"300",maxWidth:o==1?"300":"600",className:"image-gallery-popup",children:[N("div",{className:"image-gallery-header",children:[N("h1",{children:"Your Invocations"},void 0,!1,{fileName:co,lineNumber:87,columnNumber:13},this),N(wa,{size:"sm","aria-label":"Close Gallery",onClick:p,className:"image-gallery-close-btn",icon:N(sj,{},void 0,!1,{fileName:co,lineNumber:93,columnNumber:21},this)},void 0,!1,{fileName:co,lineNumber:88,columnNumber:13},this)]},void 0,!0,{fileName:co,lineNumber:86,columnNumber:11},this),N("div",{className:"image-gallery-container",children:[e.length?N("div",{className:"image-gallery",children:e.map(v=>{const{uuid:g}=v;return N(J5e,{image:v,isSelected:t===g},g,!1,{fileName:co,lineNumber:103,columnNumber:21},this)})},void 0,!1,{fileName:co,lineNumber:98,columnNumber:15},this):N("div",{className:"image-gallery-container-placeholder",children:[N(QD,{},void 0,!1,{fileName:co,lineNumber:113,columnNumber:17},this),N("p",{children:"No Images In Gallery"},void 0,!1,{fileName:co,lineNumber:114,columnNumber:17},this)]},void 0,!0,{fileName:co,lineNumber:112,columnNumber:15},this),N(Fu,{onClick:m,isDisabled:!n,className:"image-gallery-load-more-btn",children:n?"Load More":"All Images Loaded"},void 0,!1,{fileName:co,lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:co,lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:co,lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:co,lineNumber:66,columnNumber:5},this)}var _g="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx";function eSe(){const e=bt(t=>t.options.shouldShowGallery);return N("div",{className:"image-to-image-workarea",children:[N(nye,{},void 0,!1,{fileName:_g,lineNumber:14,columnNumber:7},this),N("div",{className:"image-to-image-display-area",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[N(g2e,{},void 0,!1,{fileName:_g,lineNumber:23,columnNumber:9},this),N(oV,{},void 0,!1,{fileName:_g,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:_g,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:_g,lineNumber:13,columnNumber:5},this)}var Va="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function tSe(){const e=bt(n=>n.options.showAdvancedOptions),t={seed:{header:N(Js,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:Va,lineNumber:29,columnNumber:9},this),feature:Ul.SEED,options:N(QU,{},void 0,!1,{fileName:Va,lineNumber:34,columnNumber:16},this)},variations:{header:N(ej,{},void 0,!1,{fileName:Va,lineNumber:37,columnNumber:15},this),feature:Ul.VARIATIONS,options:N(tj,{},void 0,!1,{fileName:Va,lineNumber:39,columnNumber:16},this)},face_restore:{header:N(XU,{},void 0,!1,{fileName:Va,lineNumber:42,columnNumber:15},this),feature:Ul.FACE_CORRECTION,options:N(DT,{},void 0,!1,{fileName:Va,lineNumber:44,columnNumber:16},this)},upscale:{header:N(JU,{},void 0,!1,{fileName:Va,lineNumber:47,columnNumber:15},this),feature:Ul.UPSCALE,options:N(PT,{},void 0,!1,{fileName:Va,lineNumber:49,columnNumber:16},this)},other:{header:N(Js,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:Va,lineNumber:58,columnNumber:9},this),feature:Ul.OTHER,options:N(uj,{},void 0,!1,{fileName:Va,lineNumber:63,columnNumber:16},this)}};return N("div",{className:"text-to-image-panel",children:[N(dj,{},void 0,!1,{fileName:Va,lineNumber:69,columnNumber:7},this),N(fj,{},void 0,!1,{fileName:Va,lineNumber:70,columnNumber:7},this),N(rj,{},void 0,!1,{fileName:Va,lineNumber:71,columnNumber:7},this),N(nj,{},void 0,!1,{fileName:Va,lineNumber:72,columnNumber:7},this),e?N(lj,{accordionInfo:t},void 0,!1,{fileName:Va,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:Va,lineNumber:68,columnNumber:5},this)}var Qp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const nSe=()=>{const{currentImage:e,intermediateImage:t}=bt(o=>o.gallery),n=bt(o=>o.options.shouldShowImageDetails),i=t||e;return i?N("div",{className:"current-image-display",children:[N("div",{className:"current-image-tools",children:N(Nj,{image:i},void 0,!1,{fileName:Qp,lineNumber:24,columnNumber:9},void 0)},void 0,!1,{fileName:Qp,lineNumber:23,columnNumber:7},void 0),N(Ej,{imageToDisplay:i},void 0,!1,{fileName:Qp,lineNumber:26,columnNumber:7},void 0),n&&N(Rj,{image:i,styleClass:"current-image-metadata"},void 0,!1,{fileName:Qp,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:Qp,lineNumber:22,columnNumber:5},void 0):N("div",{className:"current-image-display-placeholder",children:N(Hbe,{},void 0,!1,{fileName:Qp,lineNumber:36,columnNumber:7},void 0)},void 0,!1,{fileName:Qp,lineNumber:35,columnNumber:5},void 0)};var Tg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImage.tsx";function rSe(){const e=bt(t=>t.options.shouldShowGallery);return N("div",{className:"text-to-image-workarea",children:[N(tSe,{},void 0,!1,{fileName:Tg,lineNumber:14,columnNumber:7},this),N("div",{className:"text-to-image-display",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[N(nSe,{},void 0,!1,{fileName:Tg,lineNumber:23,columnNumber:9},this),N(oV,{},void 0,!1,{fileName:Tg,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:Tg,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:Tg,lineNumber:13,columnNumber:5},this)}var ea="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const hv={txt2img:{title:N(Xge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:22,columnNumber:12},void 0),panel:N(rSe,{},void 0,!1,{fileName:ea,lineNumber:23,columnNumber:12},void 0),tooltip:"Text To Image"},img2img:{title:N(jge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:27,columnNumber:12},void 0),panel:N(eSe,{},void 0,!1,{fileName:ea,lineNumber:28,columnNumber:12},void 0),tooltip:"Image To Image"},inpainting:{title:N(Hge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:32,columnNumber:12},void 0),panel:N(Fge,{},void 0,!1,{fileName:ea,lineNumber:33,columnNumber:12},void 0),tooltip:"Inpainting"},outpainting:{title:N(qge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:37,columnNumber:12},void 0),panel:N(Bge,{},void 0,!1,{fileName:ea,lineNumber:38,columnNumber:12},void 0),tooltip:"Outpainting"},nodes:{title:N(Gge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:42,columnNumber:12},void 0),panel:N(zge,{},void 0,!1,{fileName:ea,lineNumber:43,columnNumber:12},void 0),tooltip:"Nodes"},postprocess:{title:N(Kge,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ea,lineNumber:47,columnNumber:12},void 0),panel:N(Uge,{},void 0,!1,{fileName:ea,lineNumber:48,columnNumber:12},void 0),tooltip:"Post Processing"}},WT=yb.map(hv,(e,t)=>t);[...WT];function iSe(){const e=bt(o=>o.options.activeTab),t=Sn();oi("1",()=>{t(Nu(0))}),oi("2",()=>{t(Nu(1))}),oi("3",()=>{t(Nu(2))}),oi("4",()=>{t(Nu(3))}),oi("5",()=>{t(Nu(4))}),oi("6",()=>{t(Nu(5))});const n=()=>{const o=[];return Object.keys(hv).forEach(s=>{o.push(N(po,{hasArrow:!0,label:hv[s].tooltip,placement:"right",children:N(dB,{children:hv[s].title},void 0,!1,{fileName:ea,lineNumber:100,columnNumber:11},this)},s,!1,{fileName:ea,lineNumber:94,columnNumber:9},this))}),o},i=()=>{const o=[];return Object.keys(hv).forEach(s=>{o.push(N(cB,{className:"app-tabs-panel",children:hv[s].panel},s,!1,{fileName:ea,lineNumber:111,columnNumber:9},this))}),o};return N(uB,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:o=>{t(Nu(o))},children:[N("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:ea,lineNumber:130,columnNumber:7},this),N(fB,{className:"app-tabs-panels",children:i()},void 0,!1,{fileName:ea,lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:ea,lineNumber:120,columnNumber:5},this)}const aSe=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(rS(!0));const o={...i().options};WT[o.activeTab]!=="img2img"&&(o.shouldUseInitImage=!1);const{generationParameters:s,esrganParameters:u,facetoolParameters:p}=_ge(o,i().system);t.emit("generateImage",s,u,p),n(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...s,...u,...p})}`}))},emitRunESRGAN:o=>{n(rS(!0));const{upscalingLevel:s,upscalingStrength:u}=i().options,p={upscale:[s,u]};t.emit("runPostprocessing",o,{type:"esrgan",...p}),n(Lo({timestamp:ko(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...p})}`}))},emitRunFacetool:o=>{n(rS(!0));const{facetoolType:s,facetoolStrength:u,codeformerFidelity:p}=i().options,m={facetool_strength:u};s==="codeformer"&&(m.codeformer_fidelity=p),t.emit("runPostprocessing",o,{type:s,...m}),n(Lo({timestamp:ko(new Date,"isoDateTime"),message:`Face restoration (${s}) requested: ${JSON.stringify({file:o.url,...m})}`}))},emitDeleteImage:o=>{const{url:s,uuid:u}=o;t.emit("deleteImage",s,u)},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")}}},oSe=()=>{const{origin:e}=new URL(window.location.href),t=oS(e,{timeout:6e4});let n=!1;return o=>s=>u=>{const{onConnect:p,onDisconnect:m,onError:v,onPostprocessingResult:g,onGenerationResult:b,onIntermediateResult:C,onProgressUpdate:w,onGalleryImages:T,onProcessingCanceled:A,onImageDeleted:k,onInitialImageUploaded:I,onMaskImageUploaded:D,onSystemConfig:P}=xge(o),{emitGenerateImage:F,emitRunESRGAN:z,emitRunFacetool:q,emitDeleteImage:Y,emitRequestImages:Q,emitRequestNewImages:ie,emitCancelProcessing:ae,emitUploadInitialImage:pe,emitUploadMaskImage:$e,emitRequestSystemConfig:te}=aSe(o,t);switch(n||(t.on("connect",()=>p()),t.on("disconnect",()=>m()),t.on("error",ee=>v(ee)),t.on("generationResult",ee=>b(ee)),t.on("postprocessingResult",ee=>g(ee)),t.on("intermediateResult",ee=>C(ee)),t.on("progressUpdate",ee=>w(ee)),t.on("galleryImages",ee=>T(ee)),t.on("processingCanceled",()=>{A()}),t.on("imageDeleted",ee=>{k(ee)}),t.on("initialImageUploaded",ee=>{I(ee)}),t.on("maskImageUploaded",ee=>{D(ee)}),t.on("systemConfig",ee=>{P(ee)}),n=!0),u.type){case"socketio/generateImage":{F();break}case"socketio/runESRGAN":{z(u.payload);break}case"socketio/runFacetool":{q(u.payload);break}case"socketio/deleteImage":{Y(u.payload);break}case"socketio/requestImages":{Q();break}case"socketio/requestNewImages":{ie();break}case"socketio/cancelProcessing":{ae();break}case"socketio/uploadInitialImage":{pe(u.payload);break}case"socketio/uploadMaskImage":{$e(u.payload);break}case"socketio/requestSystemConfig":{te();break}}s(u)}},sSe={key:"root",storage:_T,blacklist:["gallery","system"]},lSe={key:"system",storage:_T,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},uSe=BB({options:Q0e,gallery:i1e,system:lU(lSe,m1e)}),cSe=lU(sSe,uSe),sV=zve({reducer:cSe,middleware:e=>e({serializableCheck:!1}).concat(oSe())}),Sn=o0e,bt=Kve;function lS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lS=function(n){return typeof n}:lS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lS(e)}function fSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VP(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 dSe(e,t,n){return t&&VP(e.prototype,t),n&&VP(e,n),e}function pSe(e,t){return t&&(lS(t)==="object"||typeof t=="function")?t:uS(e)}function M8(e){return M8=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},M8(e)}function uS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mSe(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&&D8(e,t)}function D8(e,t){return D8=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},D8(e,t)}function cS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lV=function(e){mSe(t,e);function t(){var n,i;fSe(this,t);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return i=pSe(this,(n=M8(t)).call.apply(n,[this].concat(s))),cS(uS(i),"state",{bootstrapped:!1}),cS(uS(i),"_unsubscribe",void 0),cS(uS(i),"handlePersistorState",function(){var p=i.props.persistor,m=p.getState(),v=m.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 dSe(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}(E.exports.PureComponent);cS(lV,"defaultProps",{children:null,loading:null});const HP=Zhe({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 WP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const uV=()=>N(yr,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:N(_3,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:WP,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:WP,lineNumber:5,columnNumber:9},void 0);var hSe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const vSe=Ya(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),gSe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=bt(vSe),o=t?Math.round(t*100/n):0;return N(nB,{height:"4px",value:o,isIndeterminate:e&&!i,className:"progress-bar"},void 0,!1,{fileName:hSe,lineNumber:30,columnNumber:5},void 0)},bSe="/assets/logo.13003d72.png";var Rg="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function ySe(e){const{title:t,hotkey:n,description:i}=e;return N("div",{className:"hotkey-modal-item",children:[N("div",{className:"hotkey-info",children:[N("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:Rg,lineNumber:14,columnNumber:9},this),i&&N("p",{className:"hotkey-description",children:i},void 0,!1,{fileName:Rg,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:Rg,lineNumber:13,columnNumber:7},this),N("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:Rg,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:Rg,lineNumber:12,columnNumber:5},this)}var Jp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function xSe({children:e}){const{isOpen:t,onOpen:n,onClose:i}=LS(),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:"`"}],s=()=>{const u=[];return o.forEach((p,m)=>{u.push(N(ySe,{title:p.title,description:p.desc,hotkey:p.hotkey},m,!1,{fileName:Jp,lineNumber:91,columnNumber:9},this))}),u};return N(ji,{children:[E.exports.cloneElement(e,{onClick:n}),N(Uv,{isOpen:t,onClose:i,children:[N(mb,{},void 0,!1,{fileName:Jp,lineNumber:109,columnNumber:9},this),N(pb,{className:"hotkeys-modal",children:[N(eT,{},void 0,!1,{fileName:Jp,lineNumber:111,columnNumber:11},this),N("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:Jp,lineNumber:112,columnNumber:11},this),N("div",{className:"hotkeys-modal-items",children:s()},void 0,!1,{fileName:Jp,lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:Jp,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:Jp,lineNumber:108,columnNumber:7},this)]},void 0,!0)}var P7="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function I7({settingTitle:e,isChecked:t,dispatcher:n}){const i=Sn();return N(wd,{className:"settings-modal-item",children:[N(Cm,{marginBottom:1,children:e},void 0,!1,{fileName:P7,lineNumber:17,columnNumber:7},this),N(F3,{isChecked:t,onChange:o=>i(n(o.target.checked))},void 0,!1,{fileName:P7,lineNumber:18,columnNumber:7},this)]},void 0,!0,{fileName:P7,lineNumber:16,columnNumber:5},this)}var Vr="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const SSe=Ya(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n,shouldDisplayGuides:i}},{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),CSe=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=LS(),{isOpen:o,onOpen:s,onClose:u}=LS(),{shouldDisplayInProgress:p,shouldConfirmOnDelete:m,shouldDisplayGuides:v}=bt(SSe),g=()=>{cV.purge().then(()=>{i(),s()})};return N(ji,{children:[E.exports.cloneElement(e,{onClick:n}),N(Uv,{isOpen:t,onClose:i,children:[N(mb,{},void 0,!1,{fileName:Vr,lineNumber:95,columnNumber:9},void 0),N(pb,{className:"settings-modal",children:[N(nT,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:Vr,lineNumber:97,columnNumber:11},void 0),N(eT,{},void 0,!1,{fileName:Vr,lineNumber:98,columnNumber:11},void 0),N(PS,{className:"settings-modal-content",children:[N("div",{className:"settings-modal-items",children:[N(I7,{settingTitle:"Display In-Progress Images (slower)",isChecked:p,dispatcher:s1e},void 0,!1,{fileName:Vr,lineNumber:101,columnNumber:15},void 0),N(I7,{settingTitle:"Confirm on Delete",isChecked:m,dispatcher:TU},void 0,!1,{fileName:Vr,lineNumber:107,columnNumber:15},void 0),N(I7,{settingTitle:"Display Help Icons",isChecked:v,dispatcher:f1e},void 0,!1,{fileName:Vr,lineNumber:113,columnNumber:15},void 0)]},void 0,!0,{fileName:Vr,lineNumber:100,columnNumber:13},void 0),N("div",{className:"settings-modal-reset",children:[N(D_,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:Vr,lineNumber:121,columnNumber:15},void 0),N(Do,{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:Vr,lineNumber:122,columnNumber:15},void 0),N(Do,{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:Vr,lineNumber:127,columnNumber:15},void 0),N(Fu,{colorScheme:"red",onClick:g,children:"Reset Web UI"},void 0,!1,{fileName:Vr,lineNumber:132,columnNumber:15},void 0)]},void 0,!0,{fileName:Vr,lineNumber:120,columnNumber:13},void 0)]},void 0,!0,{fileName:Vr,lineNumber:99,columnNumber:11},void 0),N(tT,{children:N(Fu,{onClick:i,children:"Close"},void 0,!1,{fileName:Vr,lineNumber:139,columnNumber:13},void 0)},void 0,!1,{fileName:Vr,lineNumber:138,columnNumber:11},void 0)]},void 0,!0,{fileName:Vr,lineNumber:96,columnNumber:9},void 0)]},void 0,!0,{fileName:Vr,lineNumber:94,columnNumber:7},void 0),N(Uv,{closeOnOverlayClick:!1,isOpen:o,onClose:u,isCentered:!0,children:[N(mb,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:Vr,lineNumber:150,columnNumber:9},void 0),N(pb,{children:N(PS,{pb:6,pt:6,children:N(yr,{justifyContent:"center",children:N(Do,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:Vr,lineNumber:154,columnNumber:15},void 0)},void 0,!1,{fileName:Vr,lineNumber:153,columnNumber:13},void 0)},void 0,!1,{fileName:Vr,lineNumber:152,columnNumber:11},void 0)},void 0,!1,{fileName:Vr,lineNumber:151,columnNumber:9},void 0)]},void 0,!0,{fileName:Vr,lineNumber:144,columnNumber:7},void 0)]},void 0,!0)};var GP="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const wSe=Ya(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:Ga.exports.isEqual}}),NSe=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:i,currentStatus:o,hasError:s,wasErrorSeen:u}=bt(wSe),p=Sn();let m;e&&!s?m="status-good":m="status-bad";let v=o;return["generating","preparing","saving image","restoring faces","upscaling"].includes(v.toLowerCase())&&(m="status-working"),v&&t&&i>1&&(v+=` (${n}/${i})`),N(po,{label:s&&!u?"Click to clear, check logs for details":void 0,children:N(Do,{cursor:s&&!u?"pointer":"initial",onClick:()=>{(s||!u)&&p(RU())},className:`status ${m}`,children:v},void 0,!1,{fileName:GP,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:GP,lineNumber:82,columnNumber:5},void 0)};var ur="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const ESe=()=>{const{colorMode:e,toggleColorMode:t}=$8();oi("shift+d",()=>{t()},[e,t]);const n=e=="light"?N(dye,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:48},void 0):N(pye,{},void 0,!1,{fileName:ur,lineNumber:27,columnNumber:61},void 0),i=e=="light"?18:20;return N("div",{className:"site-header",children:[N("div",{className:"site-header-left-side",children:[N("img",{src:bSe,alt:"invoke-ai-logo"},void 0,!1,{fileName:ur,lineNumber:35,columnNumber:9},void 0),N("h1",{children:["invoke ",N("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),N("div",{className:"site-header-right-side",children:[N(NSe,{},void 0,!1,{fileName:ur,lineNumber:42,columnNumber:9},void 0),N(CSe,{children:N(wa,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:N(Bbe,{},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),N(xSe,{children:N(wa,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:N(jbe,{},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),N(po,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:N(wa,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:N(Tv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:N(oj,{},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),N(po,{hasArrow:!0,label:"Github",placement:"bottom",children:N(wa,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:N(Tv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:N(iye,{},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),N(po,{hasArrow:!0,label:"Discord",placement:"bottom",children:N(wa,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:N(Tv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:N(rye,{},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),N(po,{hasArrow:!0,label:"Theme",placement:"bottom",children:N(wa,{"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 Zs="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/Console.tsx";const _Se=Ya(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),TSe=Ya(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Ga.exports.isEqual}}),RSe=()=>{const e=Sn(),t=bt(_Se),{shouldShowLogViewer:n,hasError:i,wasErrorSeen:o}=bt(TSe),[s,u]=E.exports.useState(!0),p=E.exports.useRef(null);E.exports.useLayoutEffect(()=>{p.current!==null&&s&&(p.current.scrollTop=p.current.scrollHeight)},[s,t,n]);const m=()=>{e(RU()),e(OD(!n))};return oi("`",()=>{e(OD(!n))},[n]),N(ji,{children:[n&&N(Aj,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0},maxHeight:"90vh",children:N("div",{className:"console",ref:p,children:t.map((v,g)=>{const{timestamp:b,message:C,level:w}=v;return N("div",{className:`console-entry console-${w}-color`,children:[N("p",{className:"console-timestamp",children:[b,":"]},void 0,!0,{fileName:Zs,lineNumber:94,columnNumber:19},void 0),N("p",{className:"console-message",children:C},void 0,!1,{fileName:Zs,lineNumber:95,columnNumber:19},void 0)]},g,!0,{fileName:Zs,lineNumber:93,columnNumber:17},void 0)})},void 0,!1,{fileName:Zs,lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:Zs,lineNumber:81,columnNumber:9},void 0),n&&N(po,{hasArrow:!0,label:s?"Autoscroll On":"Autoscroll Off",children:N(wa,{className:`console-autoscroll-icon-button ${s&&"autoscroll-enabled"}`,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:N(aye,{},void 0,!1,{fileName:Zs,lineNumber:111,columnNumber:19},void 0),onClick:()=>u(!s)},void 0,!1,{fileName:Zs,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Zs,lineNumber:103,columnNumber:9},void 0),N(po,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:N(wa,{className:`console-toggle-icon-button ${(i||!o)&&"error-seen"}`,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?N(fye,{},void 0,!1,{fileName:Zs,lineNumber:126,columnNumber:39},void 0):N(uye,{},void 0,!1,{fileName:Zs,lineNumber:126,columnNumber:53},void 0),onClick:m},void 0,!1,{fileName:Zs,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Zs,lineNumber:116,columnNumber:7},void 0)]},void 0,!0)};function ASe(){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 Qf="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";ASe();const OSe=()=>{const e=Sn(),[t,n]=E.exports.useState(!1);return E.exports.useEffect(()=>{e(yge()),n(!0)},[e]),t?N("div",{className:"App",children:[N(gSe,{},void 0,!1,{fileName:Qf,lineNumber:24,columnNumber:7},void 0),N("div",{className:"app-content",children:[N(ESe,{},void 0,!1,{fileName:Qf,lineNumber:26,columnNumber:9},void 0),N(iSe,{},void 0,!1,{fileName:Qf,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:Qf,lineNumber:25,columnNumber:7},void 0),N("div",{className:"app-console",children:N(RSe,{},void 0,!1,{fileName:Qf,lineNumber:30,columnNumber:9},void 0)},void 0,!1,{fileName:Qf,lineNumber:29,columnNumber:7},void 0)]},void 0,!0,{fileName:Qf,lineNumber:23,columnNumber:5},void 0):N(uV,{},void 0,!1,{fileName:Qf,lineNumber:34,columnNumber:5},void 0)};var em="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const cV=_0e(sV);z7.createRoot(document.getElementById("root")).render(N(_e.StrictMode,{children:N(r0e,{store:sV,children:N(lV,{loading:N(uV,{},void 0,!1,{fileName:em,lineNumber:21,columnNumber:29},void 0),persistor:cV,children:N(qhe,{theme:HP,children:[N(pY,{initialColorMode:HP.config.initialColorMode},void 0,!1,{fileName:em,lineNumber:23,columnNumber:11},void 0),N(OSe,{},void 0,!1,{fileName:em,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:em,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:em,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:em,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:em,lineNumber:19,columnNumber:3},void 0));