InvokeAI/frontend/dist/assets/index.de730902.js
2022-09-18 17:33:09 +10:00

695 lines
1018 KiB
JavaScript

function qV(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(e,o,c.get?c:{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 c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerpolicy&&(c.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?c.credentials="include":o.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}},kA={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 r="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),I=Symbol.iterator,V="@@iterator";function M(b){if(b===null||typeof b!="object")return null;var R=I&&b[I]||b[V];return typeof R=="function"?R:null}var z={current:null},B={transition:null},j={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},fe=null;function me(b){fe=b}X.setExtraStackFrame=function(b){fe=b},X.getCurrentStack=null,X.getStackAddendum=function(){var b="";fe&&(b+=fe);var R=X.getCurrentStack;return R&&(b+=R()||""),b};var se=!1,be=!1,Ke=!1,J=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=j;function Ce(b){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("warn",b,$)}}function oe(b){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("error",b,$)}}function Se(b,R,$){{var G=Re.ReactDebugCurrentFrame,ne=G.getStackAddendum();ne!==""&&(R+="%s",$=$.concat([ne]));var Fe=$.map(function(xe){return String(xe)});Fe.unshift("Warning: "+R),Function.prototype.apply.call(console[b],console,Fe)}}var Te={};function pe(b,R){{var $=b.constructor,G=$&&($.displayName||$.name)||"ReactClass",ne=G+"."+R;if(Te[ne])return;oe("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.",R,G),Te[ne]=!0}}var we={isMounted:function(b){return!1},enqueueForceUpdate:function(b,R,$){pe(b,"forceUpdate")},enqueueReplaceState:function(b,R,$,G){pe(b,"replaceState")},enqueueSetState:function(b,R,$,G){pe(b,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(b,R,$){this.props=b,this.context=R,this.refs=Le,this.updater=$||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(b,R){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,R,"setState")},Ye.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};{var st={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)."]},mt=function(b,R){Object.defineProperty(Ye.prototype,b,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(b,R,$){this.props=b,this.context=R,this.refs=Le,this.updater=$||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var b={current:null};return Object.seal(b),b}var We=Array.isArray;function Yt(b){return We(b)}function ye(b){{var R=typeof Symbol=="function"&&Symbol.toStringTag,$=R&&b[Symbol.toStringTag]||b.constructor.name||"Object";return $}}function Mt(b){try{return Kt(b),!1}catch{return!0}}function Kt(b){return""+b}function St(b){if(Mt(b))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(b)),Kt(b)}function ar(b,R,$){var G=b.displayName;if(G)return G;var ne=R.displayName||R.name||"";return ne!==""?$+"("+ne+")":$}function ir(b){return b.displayName||"Context"}function Bt(b){if(b==null)return null;if(typeof b.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case c:return"Fragment";case o:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case v:var R=b;return ir(R)+".Consumer";case m:var $=b;return ir($._context)+".Provider";case S:return ar(b,b.render,"ForwardRef");case _:var G=b.displayName||null;return G!==null?G:Bt(b.type)||"Memo";case N:{var ne=b,Fe=ne._payload,xe=ne._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(b){if(fn.call(b,"ref")){var R=Object.getOwnPropertyDescriptor(b,"ref").get;if(R&&R.isReactWarning)return!1}return b.ref!==void 0}function Tt(b){if(fn.call(b,"key")){var R=Object.getOwnPropertyDescriptor(b,"key").get;if(R&&R.isReactWarning)return!1}return b.key!==void 0}function ke(b,R){var $=function(){hn||(hn=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};$.isReactWarning=!0,Object.defineProperty(b,"key",{get:$,configurable:!0})}function jt(b,R){var $=function(){Ve||(Ve=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};$.isReactWarning=!0,Object.defineProperty(b,"ref",{get:$,configurable:!0})}function xn(b){if(typeof b.ref=="string"&&K.current&&b.__self&&K.current.stateNode!==b.__self){var R=Bt(K.current.type);Ze[R]||(oe('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',R,b.ref),Ze[R]=!0)}}var je=function(b,R,$,G,ne,Fe,xe){var $e={$$typeof:i,type:b,key:R,ref:$,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(b,R,$){var G,ne={},Fe=null,xe=null,$e=null,it=null;if(R!=null){Jt(R)&&(xe=R.ref,xn(R)),Tt(R)&&(St(R.key),Fe=""+R.key),$e=R.__self===void 0?null:R.__self,it=R.__source===void 0?null:R.__source;for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(ne[G]=R[G])}var gt=arguments.length-2;if(gt===1)ne.children=$;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),ne.children=Nt}if(b&&b.defaultProps){var Lt=b.defaultProps;for(G in Lt)ne[G]===void 0&&(ne[G]=Lt[G])}if(Fe||xe){var wt=typeof b=="function"?b.displayName||b.name||"Unknown":b;Fe&&ke(ne,wt),xe&&jt(ne,wt)}return je(b,Fe,xe,$e,it,K.current,ne)}function xt(b,R){var $=je(b.type,R,b.ref,b._self,b._source,b._owner,b.props);return $}function dn(b,R,$){if(b==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var G,ne=Ie({},b.props),Fe=b.key,xe=b.ref,$e=b._self,it=b._source,gt=b._owner;if(R!=null){Jt(R)&&(xe=R.ref,gt=K.current),Tt(R)&&(St(R.key),Fe=""+R.key);var Nt;b.type&&b.type.defaultProps&&(Nt=b.type.defaultProps);for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(R[G]===void 0&&Nt!==void 0?ne[G]=Nt[G]:ne[G]=R[G])}var pt=arguments.length-2;if(pt===1)ne.children=$;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];ne.children=Lt}return je(b.type,Fe,xe,$e,it,gt,ne)}function Xt(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}var wn=".",Dn=":";function Rr(b){var R=/[=:]/g,$={"=":"=0",":":"=2"},G=b.replace(R,function(ne){return $[ne]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(b){return b.replace(ca,"$&/")}function Cn(b,R){return typeof b=="object"&&b!==null&&b.key!=null?(St(b.key),Rr(""+b.key)):R.toString(36)}function fa(b,R,$,G,ne){var Fe=typeof b;(Fe==="undefined"||Fe==="boolean")&&(b=null);var xe=!1;if(b===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(b.$$typeof){case i:case o:xe=!0}}if(xe){var $e=b,it=ne($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,R,Nt,"",function(Qf){return Qf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,$+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),R.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+Dn;if(Yt(b))for(var gi=0;gi<b.length;gi++)pt=b[gi],Lt=Dt+Cn(pt,gi),wt+=fa(pt,R,$,Lt,ne);else{var va=M(b);if(typeof va=="function"){var Mo=b;va===Mo.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var wu=va.call(Mo),Nn,yi=0;!(Nn=wu.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,yi++),wt+=fa(pt,R,$,Lt,ne)}else if(Fe==="object"){var ss=String(b);throw new Error("Objects are not valid as a React child (found: "+(ss==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":ss)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function vr(b,R,$){if(b==null)return b;var G=[],ne=0;return fa(b,G,"","",function(Fe){return R.call($,Fe,ne++)}),G}function wo(b){var R=0;return vr(b,function(){R++}),R}function Jo(b,R,$){vr(b,function(){R.apply(this,arguments)},$)}function es(b){return vr(b,function(R){return R})||[]}function Co(b){if(!Xt(b))throw new Error("React.Children.only expected to receive a single React element child.");return b}function _o(b){var R={$$typeof:v,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:m,_context:R};var $=!1,G=!1,ne=!1;{var Fe={$$typeof:v,_context:R};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(xe){R.Provider=xe}},_currentValue:{get:function(){return R._currentValue},set:function(xe){R._currentValue=xe}},_currentValue2:{get:function(){return R._currentValue2},set:function(xe){R._currentValue2=xe}},_threadCount:{get:function(){return R._threadCount},set:function(xe){R._threadCount=xe}},Consumer:{get:function(){return $||($=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(xe){ne||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),ne=!0)}}}),R.Consumer=Fe}return R._currentRenderer=null,R._currentRenderer2=null,R}var cr=-1,Oa=0,Di=1,ka=2;function q(b){if(b._status===cr){var R=b._result,$=R();if($.then(function(Fe){if(b._status===Oa||b._status===cr){var xe=b;xe._status=Di,xe._result=Fe}},function(Fe){if(b._status===Oa||b._status===cr){var xe=b;xe._status=ka,xe._result=Fe}}),b._status===cr){var G=b;G._status=Oa,G._result=$}}if(b._status===Di){var ne=b._result;return ne===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,ne),"default"in ne||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,ne),ne.default}else throw b._result}function Be(b){var R={_status:cr,_result:b},$={$$typeof:N,_payload:R,_init:q};{var G,ne;Object.defineProperties($,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("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=Fe,Object.defineProperty($,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ne},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ne=Fe,Object.defineProperty($,"propTypes",{enumerable:!0})}}})}return $}function qe(b){b!=null&&b.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!="function"?oe("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&(b.defaultProps!=null||b.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:S,render:b};{var $;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return $},set:function(G){$=G,!b.name&&!b.displayName&&(b.displayName=G)}})}return R}var bt;bt=Symbol.for("react.module.reference");function nn(b){return!!(typeof b=="string"||typeof b=="function"||b===c||b===h||ce||b===u||b===x||b===C||J||b===O||se||be||Ke||typeof b=="object"&&b!==null&&(b.$$typeof===N||b.$$typeof===_||b.$$typeof===m||b.$$typeof===v||b.$$typeof===S||b.$$typeof===bt||b.getModuleId!==void 0))}function gn(b,R){nn(b)||oe("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b);var $={$$typeof:_,type:b,compare:R===void 0?null:R};{var G;Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(ne){G=ne,!b.name&&!b.displayName&&(b.displayName=ne)}})}return $}function tt(){var b=z.current;return b===null&&oe(`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.`),b}function $t(b){var R=tt();if(b._context!==void 0){var $=b._context;$.Consumer===b?oe("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?"):$.Provider===b&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(b)}function zn(b){var R=tt();return R.useState(b)}function In(b,R,$){var G=tt();return G.useReducer(b,R,$)}function an(b){var R=tt();return R.useRef(b)}function Lr(b,R){var $=tt();return $.useEffect(b,R)}function fi(b,R){var $=tt();return $.useInsertionEffect(b,R)}function Eo(b,R){var $=tt();return $.useLayoutEffect(b,R)}function da(b,R){var $=tt();return $.useCallback(b,R)}function Ji(b,R){var $=tt();return $.useMemo(b,R)}function Su(b,R,$){var G=tt();return G.useImperativeHandle(b,R,$)}function di(b,R){{var $=tt();return $.useDebugValue(b,R)}}function Bs(){var b=tt();return b.useTransition()}function Pi(b){var R=tt();return R.useDeferredValue(b)}function Zt(){var b=tt();return b.useId()}function Mi(b,R,$){var G=tt();return G.useSyncExternalStore(b,R,$)}var pa=0,To,ts,No,ns,rs,Ro,Ao;function as(){}as.__reactDisabledLog=!0;function Us(){{if(pa===0){To=console.log,ts=console.info,No=console.warn,ns=console.error,rs=console.group,Ro=console.groupCollapsed,Ao=console.groupEnd;var b={configurable:!0,enumerable:!0,value:as,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}pa++}}function js(){{if(pa--,pa===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},b,{value:To}),info:Ie({},b,{value:ts}),warn:Ie({},b,{value:No}),error:Ie({},b,{value:ns}),group:Ie({},b,{value:rs}),groupCollapsed:Ie({},b,{value:Ro}),groupEnd:Ie({},b,{value:Ao})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pi=Re.ReactCurrentDispatcher,Dr;function Da(b,R,$){{if(Dr===void 0)try{throw Error()}catch(ne){var G=ne.stack.trim().match(/\n( *(at )?)/);Dr=G&&G[1]||""}return`
`+Dr+b}}var ha=!1,Pa;{var is=typeof WeakMap=="function"?WeakMap:Map;Pa=new is}function Oo(b,R){if(!b||ha)return"";{var $=Pa.get(b);if($!==void 0)return $}var G;ha=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=pi.current,pi.current=null,Us();try{if(R){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(b,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}b.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}b()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
`),it=G.stack.split(`
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
`+$e[gt].replace(" at new "," at ");return b.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",b.displayName)),typeof b=="function"&&Pa.set(b,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,pi.current=Fe,js(),Error.prepareStackTrace=ne}var Lt=b?b.displayName||b.name:"",wt=Lt?Da(Lt):"";return typeof b=="function"&&Pa.set(b,wt),wt}function os(b,R,$){return Oo(b,!1)}function Rl(b){var R=b.prototype;return!!(R&&R.isReactComponent)}function ma(b,R,$){if(b==null)return"";if(typeof b=="function")return Oo(b,Rl(b));if(typeof b=="string")return Da(b);switch(b){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case S:return os(b.render);case _:return ma(b.type,R,$);case N:{var G=b,ne=G._payload,Fe=G._init;try{return ma(Fe(ne),R,$)}catch{}}}return""}var ko={},Ma=Re.ReactDebugCurrentFrame;function hi(b){if(b){var R=b._owner,$=ma(b.type,b._source,R?R.type:null);Ma.setExtraStackFrame($)}else Ma.setExtraStackFrame(null)}function $s(b,R,$,G,ne){{var Fe=Function.call.bind(fn);for(var xe in b)if(Fe(b,xe)){var $e=void 0;try{if(typeof b[xe]!="function"){var it=Error((G||"React class")+": "+$+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=b[xe](R,xe,G,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(hi(ne),oe("%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",$,xe,typeof $e),hi(null)),$e instanceof Error&&!($e.message in ko)&&(ko[$e.message]=!0,hi(ne),oe("Failed %s type: %s",$,$e.message),hi(null))}}}function on(b){if(b){var R=b._owner,$=ma(b.type,b._source,R?R.type:null);me($)}else me(null)}var mi;mi=!1;function Do(){if(K.current){var b=Bt(K.current.type);if(b)return`
Check the render method of \``+b+"`."}return""}function It(b){if(b!==void 0){var R=b.fileName.replace(/^.*[\\\/]/,""),$=b.lineNumber;return`
Check your code at `+R+":"+$+"."}return""}function Vs(b){return b!=null?It(b.__source):""}var gr={};function Ii(b){var R=Do();if(!R){var $=typeof b=="string"?b:b.displayName||b.name;$&&(R=`
Check the top-level render call using <`+$+">.")}return R}function ja(b,R){if(!(!b._store||b._store.validated||b.key!=null)){b._store.validated=!0;var $=Ii(R);if(!gr[$]){gr[$]=!0;var G="";b&&b._owner&&b._owner!==K.current&&(G=" It was passed a child from "+Bt(b._owner.type)+"."),on(b),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,G),on(null)}}}function eo(b,R){if(typeof b=="object"){if(Yt(b))for(var $=0;$<b.length;$++){var G=b[$];Xt(G)&&ja(G,R)}else if(Xt(b))b._store&&(b._store.validated=!0);else if(b){var ne=M(b);if(typeof ne=="function"&&ne!==b.entries)for(var Fe=ne.call(b),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&ja(xe.value,R)}}}function Cr(b){{var R=b.type;if(R==null||typeof R=="string")return;var $;if(typeof R=="function")$=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===S||R.$$typeof===_))$=R.propTypes;else return;if($){var G=Bt(R);$s($,b.props,"prop",G,b)}else if(R.PropTypes!==void 0&&!mi){mi=!0;var ne=Bt(R);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(b){{for(var R=Object.keys(b.props),$=0;$<R.length;$++){var G=R[$];if(G!=="children"&&G!=="key"){on(b),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}b.ref!==null&&(on(b),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Po(b,R,$){var G=nn(b);if(!G){var ne="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Fe=Vs(R);Fe?ne+=Fe:ne+=Do();var xe;b===null?xe="null":Yt(b)?xe="array":b!==void 0&&b.$$typeof===i?(xe="<"+(Bt(b.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof b,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,ne)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)eo(arguments[it],b);return b===c?er($e):Cr($e),$e}var Hr=!1;function ur(b){var R=Po.bind(null,b);return R.type=b,Hr||(Hr=!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(R,"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:b}),b}}),R}function ea(b,R,$){for(var G=dn.apply(this,arguments),ne=2;ne<arguments.length;ne++)eo(arguments[ne],G.type);return Cr(G),G}function xu(b,R){var $=B.transition;B.transition={};var G=B.transition;B.transition._updatedFibers=new Set;try{b()}finally{if(B.transition=$,$===null&&G._updatedFibers){var ne=G._updatedFibers.size;ne>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 to=!1,vi=null;function Hs(b){if(vi===null)try{var R=("require"+Math.random()).slice(0,7),$=e&&e[R];vi=$.call(e,"timers").setImmediate}catch{vi=function(ne){to===!1&&(to=!0,typeof MessageChannel>"u"&&oe("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 Fe=new MessageChannel;Fe.port1.onmessage=ne,Fe.port2.postMessage(void 0)}}return vi(b)}var pn=0,Pn=!1;function Al(b){{var R=pn;pn++,j.current===null&&(j.current=[]);var $=j.isBatchingLegacy,G;try{if(j.isBatchingLegacy=!0,G=b(),!$&&j.didScheduleLegacyUpdate){var ne=j.current;ne!==null&&(j.didScheduleLegacyUpdate=!1,de(ne))}}catch(Lt){throw Ia(R),Lt}finally{j.isBatchingLegacy=$}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(R),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(R),wt(Dt)})}};return!Pn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Pn=!0,oe("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 () => ...);"))}),$e}else{var it=G;if(Ia(R),pn===0){var gt=j.current;gt!==null&&(de(gt),j.current=null);var Nt={then:function(Lt,wt){j.current===null?(j.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(b){b!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=b}function W(b,R,$){{var G=j.current;if(G!==null)try{de(G),Hs(function(){G.length===0?(j.current=null,R(b)):W(b,R,$)})}catch(ne){$(ne)}else R(b)}}var Q=!1;function de(b){if(!Q){Q=!0;var R=0;try{for(;R<b.length;R++){var $=b[R];do $=$(!0);while($!==null)}b.length=0}catch(G){throw b=b.slice(R+1),G}finally{Q=!1}}}var at=Po,sn=ea,Mn=ur,Vt={map:vr,forEach:Jo,count:wo,toArray:es,only:Co};t.Children=Vt,t.Component=Ye,t.Fragment=c,t.Profiler=h,t.PureComponent=vt,t.StrictMode=u,t.Suspense=x,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,t.cloneElement=sn,t.createContext=_o,t.createElement=at,t.createFactory=Mn,t.createRef=zt,t.forwardRef=qe,t.isValidElement=Xt,t.lazy=Be,t.memo=gn,t.startTransition=xu,t.unstable_act=Al,t.useCallback=da,t.useContext=$t,t.useDebugValue=di,t.useDeferredValue=Pi,t.useEffect=Lr,t.useId=Zt,t.useImperativeHandle=Su,t.useInsertionEffect=fi,t.useLayoutEffect=Eo,t.useMemo=Ji,t.useReducer=In,t.useRef=an,t.useState=zn,t.useSyncExternalStore=Mi,t.useTransition=Bs,t.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(kA,kA.exports);(function(e){e.exports=kA.exports})(D);const Ue=KV(D.exports),oI=qV({__proto__:null,default:Ue},[D.exports]);var DA={},_b={exports:{}},Ho={},g3={exports:{}},y3={};/**
* @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,r=!1,i=5;function o(je,rt){var xt=je.length;je.push(rt),h(je,rt,xt)}function c(je){return je.length===0?null:je[0]}function u(je){if(je.length===0)return null;var rt=je[0],xt=je.pop();return xt!==rt&&(je[0]=xt,m(je,xt,0)),rt}function h(je,rt,xt){for(var dn=xt;dn>0;){var Xt=dn-1>>>1,wn=je[Xt];if(v(wn,rt)>0)je[Xt]=rt,je[dn]=wn,dn=Xt;else return}}function m(je,rt,xt){for(var dn=xt,Xt=je.length,wn=Xt>>>1;dn<wn;){var Dn=(dn+1)*2-1,Rr=je[Dn],Tn=Dn+1,ca=je[Tn];if(v(Rr,rt)<0)Tn<Xt&&v(ca,Rr)<0?(je[dn]=ca,je[Tn]=rt,dn=Tn):(je[dn]=Rr,je[Dn]=rt,dn=Dn);else if(Tn<Xt&&v(ca,rt)<0)je[dn]=ca,je[Tn]=rt,dn=Tn;else return}}function v(je,rt){var xt=je.sortIndex-rt.sortIndex;return xt!==0?xt:je.id-rt.id}var S=1,x=2,C=3,_=4,N=5;function O(je,rt){}var I=typeof performance=="object"&&typeof performance.now=="function";if(I){var V=performance;e.unstable_now=function(){return V.now()}}else{var M=Date,z=M.now();e.unstable_now=function(){return M.now()-z}}var B=1073741823,j=-1,K=250,X=5e3,fe=1e4,me=B,se=[],be=[],Ke=1,J=null,ce=C,Re=!1,Ce=!1,oe=!1,Se=typeof setTimeout=="function"?setTimeout:null,Te=typeof clearTimeout=="function"?clearTimeout:null,pe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function we(je){for(var rt=c(be);rt!==null;){if(rt.callback===null)u(be);else if(rt.startTime<=je)u(be),rt.sortIndex=rt.expirationTime,o(se,rt);else return;rt=c(be)}}function Ie(je){if(oe=!1,we(je),!Ce)if(c(se)!==null)Ce=!0,Jt(Le);else{var rt=c(be);rt!==null&&Tt(Ie,rt.startTime-je)}}function Le(je,rt){Ce=!1,oe&&(oe=!1,ke()),Re=!0;var xt=ce;try{var dn;if(!r)return Ye(je,rt)}finally{J=null,ce=xt,Re=!1}}function Ye(je,rt){var xt=rt;for(we(xt),J=c(se);J!==null&&!t&&!(J.expirationTime>xt&&(!je||ir()));){var dn=J.callback;if(typeof dn=="function"){J.callback=null,ce=J.priorityLevel;var Xt=J.expirationTime<=xt,wn=dn(Xt);xt=e.unstable_now(),typeof wn=="function"?J.callback=wn:J===c(se)&&u(se),we(xt)}else u(se);J=c(se)}if(J!==null)return!0;var Dn=c(be);return Dn!==null&&Tt(Ie,Dn.startTime-xt),!1}function st(je,rt){switch(je){case S:case x:case C:case _:case N:break;default:je=C}var xt=ce;ce=je;try{return rt()}finally{ce=xt}}function mt(je){var rt;switch(ce){case S:case x:case C:rt=C;break;default:rt=ce;break}var xt=ce;ce=rt;try{return je()}finally{ce=xt}}function Gt(je){var rt=ce;return function(){var xt=ce;ce=rt;try{return je.apply(this,arguments)}finally{ce=xt}}}function Qe(je,rt,xt){var dn=e.unstable_now(),Xt;if(typeof xt=="object"&&xt!==null){var wn=xt.delay;typeof wn=="number"&&wn>0?Xt=dn+wn:Xt=dn}else Xt=dn;var Dn;switch(je){case S:Dn=j;break;case x:Dn=K;break;case N:Dn=me;break;case _:Dn=fe;break;case C:default:Dn=X;break}var Rr=Xt+Dn,Tn={id:Ke++,callback:rt,priorityLevel:je,startTime:Xt,expirationTime:Rr,sortIndex:-1};return Xt>dn?(Tn.sortIndex=Xt,o(be,Tn),c(se)===null&&Tn===c(be)&&(oe?ke():oe=!0,Tt(Ie,Xt-dn))):(Tn.sortIndex=Rr,o(se,Tn),!Ce&&!Re&&(Ce=!0,Jt(Le))),Tn}function vt(){}function Et(){!Ce&&!Re&&(Ce=!0,Jt(Le))}function zt(){return c(se)}function We(je){je.callback=null}function Yt(){return ce}var ye=!1,Mt=null,Kt=-1,St=i,ar=-1;function ir(){var je=e.unstable_now()-ar;return!(je<St)}function Bt(){}function fn(je){if(je<0||je>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?St=Math.floor(1e3/je):St=i}var kn=function(){if(Mt!==null){var je=e.unstable_now();ar=je;var rt=!0,xt=!0;try{xt=Mt(rt,je)}finally{xt?hn():(ye=!1,Mt=null)}}else ye=!1},hn;if(typeof pe=="function")hn=function(){pe(kn)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Ze=Ve.port2;Ve.port1.onmessage=kn,hn=function(){Ze.postMessage(null)}}else hn=function(){Se(kn,0)};function Jt(je){Mt=je,ye||(ye=!0,hn())}function Tt(je,rt){Kt=Se(function(){je(e.unstable_now())},rt)}function ke(){Te(Kt),Kt=-1}var jt=Bt,xn=null;e.unstable_IdlePriority=N,e.unstable_ImmediatePriority=S,e.unstable_LowPriority=_,e.unstable_NormalPriority=C,e.unstable_Profiling=xn,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=We,e.unstable_continueExecution=Et,e.unstable_forceFrameRate=fn,e.unstable_getCurrentPriorityLevel=Yt,e.unstable_getFirstCallbackNode=zt,e.unstable_next=mt,e.unstable_pauseExecution=vt,e.unstable_requestPaint=jt,e.unstable_runWithPriority=st,e.unstable_scheduleCallback=Qe,e.unstable_shouldYield=ir,e.unstable_wrapCallback=Gt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(y3);(function(e){e.exports=y3})(g3);/**
* @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=D.exports,t=g3.exports,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(n){i=n}function c(n){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];h("warn",n,s)}}function u(n){if(!i){for(var a=arguments.length,s=new Array(a>1?a-1:0),f=1;f<a;f++)s[f-1]=arguments[f];h("error",n,s)}}function h(n,a,s){{var f=r.ReactDebugCurrentFrame,p=f.getStackAddendum();p!==""&&(a+="%s",s=s.concat([p]));var y=s.map(function(w){return String(w)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,y)}}var m=0,v=1,S=2,x=3,C=4,_=5,N=6,O=7,I=8,V=9,M=10,z=11,B=12,j=13,K=14,X=15,fe=16,me=17,se=18,be=19,Ke=21,J=22,ce=23,Re=24,Ce=25,oe=!0,Se=!1,Te=!1,pe=!1,we=!1,Ie=!0,Le=!1,Ye=!1,st=!0,mt=!0,Gt=!0,Qe=new Set,vt={},Et={};function zt(n,a){We(n,a),We(n+"Capture",a)}function We(n,a){vt[n]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),vt[n]=a;{var s=n.toLowerCase();Et[s]=n,n==="onDoubleClick"&&(Et.ondblclick=n)}for(var f=0;f<a.length;f++)Qe.add(a[f])}var Yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=Object.prototype.hasOwnProperty;function Mt(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return s}}function Kt(n){try{return St(n),!1}catch{return!0}}function St(n){return""+n}function ar(n,a){if(Kt(n))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,Mt(n)),St(n)}function ir(n){if(Kt(n))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(n)),St(n)}function Bt(n,a){if(Kt(n))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,Mt(n)),St(n)}function fn(n,a){if(Kt(n))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,Mt(n)),St(n)}function kn(n){if(Kt(n))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.",Mt(n)),St(n)}function hn(n){if(Kt(n))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.",Mt(n)),St(n)}var Ve=0,Ze=1,Jt=2,Tt=3,ke=4,jt=5,xn=6,je=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",rt=je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xt=new RegExp("^["+je+"]["+rt+"]*$"),dn={},Xt={};function wn(n){return ye.call(Xt,n)?!0:ye.call(dn,n)?!1:xt.test(n)?(Xt[n]=!0,!0):(dn[n]=!0,u("Invalid attribute name: `%s`",n),!1)}function Dn(n,a,s){return a!==null?a.type===Ve:s?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Rr(n,a,s,f){if(s!==null&&s.type===Ve)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(s!==null)return!s.acceptsBooleans;var p=n.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Tn(n,a,s,f){if(a===null||typeof a>"u"||Rr(n,a,s,f))return!0;if(f)return!1;if(s!==null)switch(s.type){case Tt:return!a;case ke:return a===!1;case jt:return isNaN(a);case xn:return isNaN(a)||a<1}return!1}function ca(n){return Cn.hasOwnProperty(n)?Cn[n]:null}function Fn(n,a,s,f,p,y,w){this.acceptsBooleans=a===Jt||a===Tt||a===ke,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=n,this.type=a,this.sanitizeURL=y,this.removeEmptyString=w}var Cn={},fa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fa.forEach(function(n){Cn[n]=new Fn(n,Ve,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],s=n[1];Cn[a]=new Fn(a,Ze,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n,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(n){Cn[n]=new Fn(n,Tt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Cn[n]=new Fn(n,Tt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Cn[n]=new Fn(n,ke,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Cn[n]=new Fn(n,xn,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Cn[n]=new Fn(n,jt,!1,n.toLowerCase(),null,!1,!1)});var vr=/[\-\:]([a-z])/g,wo=function(n){return n[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(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!1,!1)});var Jo="xlinkHref";Cn[Jo]=new Fn("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!0,!0)});var es=/^[\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,Co=!1;function _o(n){!Co&&es.test(n)&&(Co=!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(n)))}function cr(n,a,s,f){if(f.mustUseProperty){var p=f.propertyName;return n[p]}else{ar(s,a),f.sanitizeURL&&_o(""+s);var y=f.attributeName,w=null;if(f.type===ke){if(n.hasAttribute(y)){var T=n.getAttribute(y);return T===""?!0:Tn(a,s,f,!1)?T:T===""+s?s:T}}else if(n.hasAttribute(y)){if(Tn(a,s,f,!1))return n.getAttribute(y);if(f.type===Tt)return s;w=n.getAttribute(y)}return Tn(a,s,f,!1)?w===null?s:w:w===""+s?s:w}}function Oa(n,a,s,f){{if(!wn(a))return;if(!n.hasAttribute(a))return s===void 0?void 0:null;var p=n.getAttribute(a);return ar(s,a),p===""+s?s:p}}function Di(n,a,s,f){var p=ca(a);if(!Dn(a,p,f)){if(Tn(a,s,p,f)&&(s=null),f||p===null){if(wn(a)){var y=a;s===null?n.removeAttribute(y):(ar(s,a),n.setAttribute(y,""+s))}return}var w=p.mustUseProperty;if(w){var T=p.propertyName;if(s===null){var A=p.type;n[T]=A===Tt?!1:""}else n[T]=s;return}var F=p.attributeName,H=p.attributeNamespace;if(s===null)n.removeAttribute(F);else{var te=p.type,ee;te===Tt||te===ke&&s===!0?ee="":(ar(s,F),ee=""+s,p.sanitizeURL&&_o(ee.toString())),H?n.setAttributeNS(H,F,ee):n.setAttribute(F,ee)}}}var ka=Symbol.for("react.element"),q=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),bt=Symbol.for("react.profiler"),nn=Symbol.for("react.provider"),gn=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),zn=Symbol.for("react.suspense_list"),In=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Lr=Symbol.for("react.scope"),fi=Symbol.for("react.debug_trace_mode"),Eo=Symbol.for("react.offscreen"),da=Symbol.for("react.legacy_hidden"),Ji=Symbol.for("react.cache"),Su=Symbol.for("react.tracing_marker"),di=Symbol.iterator,Bs="@@iterator";function Pi(n){if(n===null||typeof n!="object")return null;var a=di&&n[di]||n[Bs];return typeof a=="function"?a:null}var Zt=Object.assign,Mi=0,pa,To,ts,No,ns,rs,Ro;function Ao(){}Ao.__reactDisabledLog=!0;function as(){{if(Mi===0){pa=console.log,To=console.info,ts=console.warn,No=console.error,ns=console.group,rs=console.groupCollapsed,Ro=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Ao,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Mi++}}function Us(){{if(Mi--,Mi===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Zt({},n,{value:pa}),info:Zt({},n,{value:To}),warn:Zt({},n,{value:ts}),error:Zt({},n,{value:No}),group:Zt({},n,{value:ns}),groupCollapsed:Zt({},n,{value:rs}),groupEnd:Zt({},n,{value:Ro})})}Mi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var js=r.ReactCurrentDispatcher,pi;function Dr(n,a,s){{if(pi===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);pi=f&&f[1]||""}return`
`+pi+n}}var Da=!1,ha;{var Pa=typeof WeakMap=="function"?WeakMap:Map;ha=new Pa}function is(n,a){if(!n||Da)return"";{var s=ha.get(n);if(s!==void 0)return s}var f;Da=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=js.current,js.current=null,as();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(ve){f=ve}Reflect.construct(n,[],w)}else{try{w.call()}catch(ve){f=ve}n.call(w.prototype)}}else{try{throw Error()}catch(ve){f=ve}n()}}catch(ve){if(ve&&f&&typeof ve.stack=="string"){for(var T=ve.stack.split(`
`),A=f.stack.split(`
`),F=T.length-1,H=A.length-1;F>=1&&H>=0&&T[F]!==A[H];)H--;for(;F>=1&&H>=0;F--,H--)if(T[F]!==A[H]){if(F!==1||H!==1)do if(F--,H--,H<0||T[F]!==A[H]){var te=`
`+T[F].replace(" at new "," at ");return n.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",n.displayName)),typeof n=="function"&&ha.set(n,te),te}while(F>=1&&H>=0);break}}}finally{Da=!1,js.current=y,Us(),Error.prepareStackTrace=p}var ee=n?n.displayName||n.name:"",he=ee?Dr(ee):"";return typeof n=="function"&&ha.set(n,he),he}function Oo(n,a,s){return is(n,!0)}function os(n,a,s){return is(n,!1)}function Rl(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function ma(n,a,s){if(n==null)return"";if(typeof n=="function")return is(n,Rl(n));if(typeof n=="string")return Dr(n);switch(n){case $t:return Dr("Suspense");case zn:return Dr("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case tt:return os(n.render);case In:return ma(n.type,a,s);case an:{var f=n,p=f._payload,y=f._init;try{return ma(y(p),a,s)}catch{}}}return""}function ko(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case _:return Dr(n.type);case fe:return Dr("Lazy");case j:return Dr("Suspense");case be:return Dr("SuspenseList");case m:case S:case X:return os(n.type);case z:return os(n.type.render);case v:return Oo(n.type);default:return""}}function Ma(n){try{var a="",s=n;do a+=ko(s),s=s.return;while(s);return a}catch(f){return`
Error generating stack: `+f.message+`
`+f.stack}}function hi(n,a,s){var f=n.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?s+"("+p+")":s}function $s(n){return n.displayName||"Context"}function on(n){if(n==null)return null;if(typeof n.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Be:return"Fragment";case q:return"Portal";case bt:return"Profiler";case qe:return"StrictMode";case $t:return"Suspense";case zn:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gn:var a=n;return $s(a)+".Consumer";case nn:var s=n;return $s(s._context)+".Provider";case tt:return hi(n,n.render,"ForwardRef");case In:var f=n.displayName||null;return f!==null?f:on(n.type)||"Memo";case an:{var p=n,y=p._payload,w=p._init;try{return on(w(y))}catch{return null}}}return null}function mi(n,a,s){var f=a.displayName||a.name||"";return n.displayName||(f!==""?s+"("+f+")":s)}function Do(n){return n.displayName||"Context"}function It(n){var a=n.tag,s=n.type;switch(a){case Re:return"Cache";case V:var f=s;return Do(f)+".Consumer";case M:var p=s;return Do(p._context)+".Provider";case se:return"DehydratedFragment";case z:return mi(s,s.render,"ForwardRef");case O:return"Fragment";case _:return s;case C:return"Portal";case x:return"Root";case N:return"Text";case fe:return on(s);case I:return s===qe?"StrictMode":"Mode";case J:return"Offscreen";case B:return"Profiler";case Ke:return"Scope";case j:return"Suspense";case be:return"SuspenseList";case Ce:return"TracingMarker";case v:case m:case me:case S:case K:case X:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var Vs=r.ReactDebugCurrentFrame,gr=null,Ii=!1;function ja(){{if(gr===null)return null;var n=gr._debugOwner;if(n!==null&&typeof n<"u")return It(n)}return null}function eo(){return gr===null?"":Ma(gr)}function Cr(){Vs.getCurrentStack=null,gr=null,Ii=!1}function er(n){Vs.getCurrentStack=n===null?null:eo,gr=n,Ii=!1}function Po(){return gr}function Hr(n){Ii=n}function ur(n){return""+n}function ea(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return hn(n),n;default:return""}}var xu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function to(n,a){xu[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 vi(n){var a=n.type,s=n.nodeName;return s&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Hs(n){return n._valueTracker}function pn(n){n._valueTracker=null}function Pn(n){var a="";return n&&(vi(n)?a=n.checked?"true":"false":a=n.value),a}function Al(n){var a=vi(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);hn(n[a]);var f=""+n[a];if(!(n.hasOwnProperty(a)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var p=s.get,y=s.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){hn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(n,a,{enumerable:s.enumerable});var w={getValue:function(){return f},setValue:function(T){hn(T),f=""+T},stopTracking:function(){pn(n),delete n[a]}};return w}}function Ia(n){Hs(n)||(n._valueTracker=Al(n))}function W(n){if(!n)return!1;var a=Hs(n);if(!a)return!0;var s=a.getValue(),f=Pn(n);return f!==s?(a.setValue(f),!0):!1}function Q(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var de=!1,at=!1,sn=!1,Mn=!1;function Vt(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function b(n,a){var s=n,f=a.checked,p=Zt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??s._wrapperState.initialChecked});return p}function R(n,a){to("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!at&&(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",ja()||"A component",a.type),at=!0),a.value!==void 0&&a.defaultValue!==void 0&&!de&&(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",ja()||"A component",a.type),de=!0);var s=n,f=a.defaultValue==null?"":a.defaultValue;s._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:ea(a.value!=null?a.value:f),controlled:Vt(a)}}function $(n,a){var s=n,f=a.checked;f!=null&&Di(s,"checked",f,!1)}function G(n,a){var s=n;{var f=Vt(a);!s._wrapperState.controlled&&f&&!Mn&&(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"),Mn=!0),s._wrapperState.controlled&&!f&&!sn&&(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"),sn=!0)}$(n,a);var p=ea(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=ur(p)):s.value!==ur(p)&&(s.value=ur(p));else if(y==="submit"||y==="reset"){s.removeAttribute("value");return}a.hasOwnProperty("value")?$e(s,a.type,p):a.hasOwnProperty("defaultValue")&&$e(s,a.type,ea(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(s.defaultChecked=!!a.defaultChecked)}function ne(n,a,s){var f=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type,y=p==="submit"||p==="reset";if(y&&(a.value===void 0||a.value===null))return;var w=ur(f._wrapperState.initialValue);s||w!==f.value&&(f.value=w),f.defaultValue=w}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function Fe(n,a){var s=n;G(s,a),xe(s,a)}function xe(n,a){var s=a.name;if(a.type==="radio"&&s!=null){for(var f=n;f.parentNode;)f=f.parentNode;ar(s,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),y=0;y<p.length;y++){var w=p[y];if(!(w===n||w.form!==n.form)){var T=Ot(w);if(!T)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(w),G(w,T)}}}}function $e(n,a,s){(a!=="number"||Q(n.ownerDocument)!==n)&&(s==null?n.defaultValue=ur(n._wrapperState.initialValue):n.defaultValue!==ur(s)&&(n.defaultValue=ur(s)))}var it=!1,gt=!1,Nt=!1;function pt(n,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||gt||(gt=!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&&(Nt||(Nt=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!it&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),it=!0)}function Lt(n,a){a.value!=null&&n.setAttribute("value",ur(ea(a.value)))}var wt=Array.isArray;function Dt(n){return wt(n)}var gi;gi=!1;function va(){var n=ja();return n?`
Check the render method of \``+n+"`.":""}var Mo=["value","defaultValue"];function wu(n){{to("select",n);for(var a=0;a<Mo.length;a++){var s=Mo[a];if(n[s]!=null){var f=Dt(n[s]);n.multiple&&!f?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,va()):!n.multiple&&f&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,va())}}}}function Nn(n,a,s,f){var p=n.options;if(a){for(var y=s,w={},T=0;T<y.length;T++)w["$"+y[T]]=!0;for(var A=0;A<p.length;A++){var F=w.hasOwnProperty("$"+p[A].value);p[A].selected!==F&&(p[A].selected=F),F&&f&&(p[A].defaultSelected=!0)}}else{for(var H=ur(ea(s)),te=null,ee=0;ee<p.length;ee++){if(p[ee].value===H){p[ee].selected=!0,f&&(p[ee].defaultSelected=!0);return}te===null&&!p[ee].disabled&&(te=p[ee])}te!==null&&(te.selected=!0)}}function yi(n,a){return Zt({},a,{value:void 0})}function ss(n,a){var s=n;wu(a),s._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!gi&&(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"),gi=!0)}function Qf(n,a){var s=n;s.multiple=!!a.multiple;var f=a.value;f!=null?Nn(s,!!a.multiple,f,!1):a.defaultValue!=null&&Nn(s,!!a.multiple,a.defaultValue,!0)}function cv(n,a){var s=n,f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Nn(s,!!a.multiple,p,!1):f!==!!a.multiple&&(a.defaultValue!=null?Nn(s,!!a.multiple,a.defaultValue,!0):Nn(s,!!a.multiple,a.multiple?[]:"",!1))}function vC(n,a){var s=n,f=a.value;f!=null&&Nn(s,!!a.multiple,f,!1)}var Vb=!1;function fv(n,a){var s=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var f=Zt({},a,{value:void 0,defaultValue:void 0,children:ur(s._wrapperState.initialValue)});return f}function dv(n,a){var s=n;to("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Vb&&(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",ja()||"A component"),Vb=!0);var f=a.value;if(f==null){var p=a.children,y=a.defaultValue;if(p!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Dt(p)){if(p.length>1)throw new Error("<textarea> can only have at most one child.");p=p[0]}y=p}}y==null&&(y=""),f=y}s._wrapperState={initialValue:ea(f)}}function Jf(n,a){var s=n,f=ea(a.value),p=ea(a.defaultValue);if(f!=null){var y=ur(f);y!==s.value&&(s.value=y),a.defaultValue==null&&s.defaultValue!==y&&(s.defaultValue=y)}p!=null&&(s.defaultValue=ur(p))}function Cu(n,a){var s=n,f=s.textContent;f===s._wrapperState.initialValue&&f!==""&&f!==null&&(s.value=f)}function gC(n,a){Jf(n,a)}var ls="http://www.w3.org/1999/xhtml",Hb="http://www.w3.org/1998/Math/MathML",ed="http://www.w3.org/2000/svg";function td(n){switch(n){case"svg":return ed;case"math":return Hb;default:return ls}}function Qp(n,a){return n==null||n===ls?td(a):n===ed&&a==="foreignObject"?ls:n}var yC=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,s,f,p){MSApp.execUnsafeLocalFunction(function(){return n(a,s,f,p)})}:n},Sc,Jp=yC(function(n,a){if(n.namespaceURI===ed&&!("innerHTML"in n)){Sc=Sc||document.createElement("div"),Sc.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var s=Sc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild);return}n.innerHTML=a}),bi=1,us=3,Bn=8,Io=9,_u=11,nd=function(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===us){s.nodeValue=a;return}}n.textContent=a},Wb={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"]},rd={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 bC(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var SC=["Webkit","ms","Moz","O"];Object.keys(rd).forEach(function(n){SC.forEach(function(a){rd[bC(a,n)]=rd[n]})});function pv(n,a,s){var f=a==null||typeof a=="boolean"||a==="";return f?"":!s&&typeof a=="number"&&a!==0&&!(rd.hasOwnProperty(n)&&rd[n])?a+"px":(fn(a,n),(""+a).trim())}var xC=/([A-Z])/g,xc=/^ms-/;function wC(n){return n.replace(xC,"-$1").toLowerCase().replace(xc,"-ms-")}var Gb=function(){};{var hv=/^(?:webkit|moz|o)[A-Z]/,Yb=/^-ms-/,Ol=/-(.)/g,ad=/;\s*$/,wc={},mv={},qb=!1,Eu=!1,Lo=function(n){return n.replace(Ol,function(a,s){return s.toUpperCase()})},Kb=function(n){wc.hasOwnProperty(n)&&wc[n]||(wc[n]=!0,u("Unsupported style property %s. Did you mean %s?",n,Lo(n.replace(Yb,"ms-"))))},CC=function(n){wc.hasOwnProperty(n)&&wc[n]||(wc[n]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},_C=function(n,a){mv.hasOwnProperty(a)&&mv[a]||(mv[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(ad,"")))},EC=function(n,a){qb||(qb=!0,u("`NaN` is an invalid value for the `%s` css style property.",n))},TC=function(n,a){Eu||(Eu=!0,u("`Infinity` is an invalid value for the `%s` css style property.",n))};Gb=function(n,a){n.indexOf("-")>-1?Kb(n):hv.test(n)?CC(n):ad.test(a)&&_C(n,a),typeof a=="number"&&(isNaN(a)?EC(n,a):isFinite(a)||TC(n,a))}}var NC=Gb;function Cc(n){{var a="",s="";for(var f in n)if(!!n.hasOwnProperty(f)){var p=n[f];if(p!=null){var y=f.indexOf("--")===0;a+=s+(y?f:wC(f))+":",a+=pv(f,p,y),s=";"}}return a||null}}function ae(n,a){var s=n.style;for(var f in a)if(!!a.hasOwnProperty(f)){var p=f.indexOf("--")===0;p||NC(f,a[f]);var y=pv(f,a[f],p);f==="float"&&(f="cssFloat"),p?s.setProperty(f,y):s[f]=y}}function Ne(n){return n==null||typeof n=="boolean"||n===""}function ge(n){var a={};for(var s in n)for(var f=Wb[s]||[s],p=0;p<f.length;p++)a[f[p]]=s;return a}function ft(n,a){{if(!a)return;var s=ge(n),f=ge(a),p={};for(var y in s){var w=s[y],T=f[y];if(T&&w!==T){var A=w+","+T;if(p[A])continue;p[A]=!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.",Ne(n[w])?"Removing":"Updating",w,T)}}}}var en={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},Hn=Zt({menuitem:!0},en),Wr="__html";function qn(n,a){if(!!a){if(Hn[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" 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"||!(Wr 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 Ws(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 eh={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"},Li={"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},Gs={},RC=new RegExp("^(aria)-["+rt+"]*$"),_c=new RegExp("^(aria)[A-Z]["+rt+"]*$");function th(n,a){{if(ye.call(Gs,a)&&Gs[a])return!0;if(_c.test(a)){var s="aria-"+a.slice(4).toLowerCase(),f=Li.hasOwnProperty(s)?s:null;if(f==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Gs[a]=!0,!0;if(a!==f)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),Gs[a]=!0,!0}if(RC.test(a)){var p=a.toLowerCase(),y=Li.hasOwnProperty(p)?p:null;if(y==null)return Gs[a]=!0,!1;if(a!==y)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,y),Gs[a]=!0,!0}}return!0}function nh(n,a){{var s=[];for(var f in a){var p=th(n,f);p||s.push(f)}var y=s.map(function(w){return"`"+w+"`"}).join(", ");s.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n):s.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",y,n)}}function Kn(n,a){Ws(n,a)||nh(n,a)}var Xb=!1;function Zb(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!Xb&&(Xb=!0,n==="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.",n):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var id=function(){};{var $a={},Qb=/^on./,AC=/^on[^A-Z]/,rh=new RegExp("^(aria)-["+rt+"]*$"),kl=new RegExp("^(aria)[A-Z]["+rt+"]*$");id=function(n,a,s,f){if(ye.call($a,a)&&$a[a])return!0;var p=a.toLowerCase();if(p==="onfocusin"||p==="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."),$a[a]=!0,!0;if(f!=null){var y=f.registrationNameDependencies,w=f.possibleRegistrationNames;if(y.hasOwnProperty(a))return!0;var T=w.hasOwnProperty(p)?w[p]:null;if(T!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,T),$a[a]=!0,!0;if(Qb.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),$a[a]=!0,!0}else if(Qb.test(a))return AC.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),$a[a]=!0,!0;if(rh.test(a)||kl.test(a))return!0;if(p==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$a[a]=!0,!0;if(p==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$a[a]=!0,!0;if(p==="is"&&s!==null&&s!==void 0&&typeof s!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),$a[a]=!0,!0;if(typeof s=="number"&&isNaN(s))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),$a[a]=!0,!0;var A=ca(a),F=A!==null&&A.type===Ve;if(eh.hasOwnProperty(p)){var H=eh[p];if(H!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,H),$a[a]=!0,!0}else if(!F&&a!==p)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,p),$a[a]=!0,!0;return typeof s=="boolean"&&Rr(a,s,A,!1)?(s?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()}.',s,a,a,s,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.',s,a,a,s,a,a,a),$a[a]=!0,!0):F?!0:Rr(a,s,A,!1)?($a[a]=!0,!1):((s==="false"||s==="true")&&A!==null&&A.type===Tt&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,a,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,s),$a[a]=!0),!0)}}var ah=function(n,a,s){{var f=[];for(var p in a){var y=id(n,p,a[p],s);y||f.push(p)}var w=f.map(function(T){return"`"+T+"`"}).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 ",w,n):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 ",w,n)}};function Jb(n,a,s){Ws(n,a)||ah(n,a,s)}var od=1,ih=1<<1,Ec=1<<2,oh=od|ih|Ec,Tc=null;function sd(n){Tc!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Tc=n}function Tu(){Tc===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Tc=null}function sh(n){return n===Tc}function vv(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===us?a.parentNode:a}var gv=null,Nc=null,Ys=null;function ld(n){var a=Xe(n);if(!!a){if(typeof gv!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=a.stateNode;if(s){var f=Ot(s);gv(a.stateNode,a.type,f)}}}function yv(n){gv=n}function e0(n){Nc?Ys?Ys.push(n):Ys=[n]:Nc=n}function t0(){return Nc!==null||Ys!==null}function n0(){if(!!Nc){var n=Nc,a=Ys;if(Nc=null,Ys=null,ld(n),a)for(var s=0;s<a.length;s++)ld(a[s])}}var r0=function(n,a){return n(a)},Fr=function(){},ta=!1;function OC(){var n=t0();n&&(Fr(),n0())}function a0(n,a,s){if(ta)return n(a,s);ta=!0;try{return r0(n,a,s)}finally{ta=!1,OC()}}function i0(n,a,s){r0=n,Fr=s}function kC(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function bv(n,a,s){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&kC(a));default:return!1}}function qs(n,a){var s=n.stateNode;if(s===null)return null;var f=Ot(s);if(f===null)return null;var p=f[a];if(bv(a,n.type,f))return null;if(p&&typeof p!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}var ud=!1;if(Yt)try{var cs={};Object.defineProperty(cs,"passive",{get:function(){ud=!0}}),window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{ud=!1}function Rc(n,a,s,f,p,y,w,T,A){var F=Array.prototype.slice.call(arguments,3);try{a.apply(s,F)}catch(H){this.onError(H)}}var Ac=Rc;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Oc=document.createElement("react");Ac=function(a,s,f,p,y,w,T,A,F){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var H=document.createEvent("Event"),te=!1,ee=!0,he=window.event,ve=Object.getOwnPropertyDescriptor(window,"event");function _e(){Oc.removeEventListener(Ee,Ct,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=he)}var ut=Array.prototype.slice.call(arguments,3);function Ct(){te=!0,_e(),s.apply(f,ut),ee=!1}var yt,An=!1,Sn=!1;function le(ue){if(yt=ue.error,An=!0,yt===null&&ue.colno===0&&ue.lineno===0&&(Sn=!0),ue.defaultPrevented&&yt!=null&&typeof yt=="object")try{yt._suppressLogging=!0}catch{}}var Ee="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",le),Oc.addEventListener(Ee,Ct,!1),H.initEvent(Ee,!1,!1),Oc.dispatchEvent(H),ve&&Object.defineProperty(window,"event",ve),te&&ee&&(An?Sn&&(yt=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.")):yt=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(yt)),window.removeEventListener("error",le),!te)return _e(),Rc.apply(this,arguments)}}var kc=Ac,Dc=!1,lh=null,uh=!1,Sv=null,DC={onError:function(n){Dc=!0,lh=n}};function Pc(n,a,s,f,p,y,w,T,A){Dc=!1,lh=null,kc.apply(DC,arguments)}function cd(n,a,s,f,p,y,w,T,A){if(Pc.apply(this,arguments),Dc){var F=Dl();uh||(uh=!0,Sv=F)}}function o0(){if(uh){var n=Sv;throw uh=!1,Sv=null,n}}function L(){return Dc}function Dl(){if(Dc){var n=lh;return Dc=!1,lh=null,n}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 Ks(n){return n._reactInternals}function no(n){return n._reactInternals!==void 0}function _n(n,a){n._reactInternals=a}var kt=0,Mc=1,zr=2,ln=4,Nu=16,fd=32,xv=64,Ln=128,Xs=256,La=512,Ru=1024,Fo=2048,Zs=4096,Au=8192,ch=16384,Qs=Fo|ln|xv|La|Ru|ch,PC=32767,dd=32768,Va=65536,wv=131072,s0=1048576,Js=2097152,Ou=4194304,Cv=8388608,Gr=16777216,fh=33554432,_v=ln|Ru|0,Ev=zr|ln|Nu|fd|La|Zs|Au,pd=ln|xv|La|Au,Ic=Fo|Nu,fs=Ou|Cv|Js,l0=r.ReactCurrentOwner;function ku(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(zr|Zs))!==kt&&(s=a.return),f=a.return;while(f)}return a.tag===x?s:null}function u0(n){if(n.tag===j){var a=n.memoizedState;if(a===null){var s=n.alternate;s!==null&&(a=s.memoizedState)}if(a!==null)return a.dehydrated}return null}function dh(n){return n.tag===x?n.stateNode.containerInfo:null}function hd(n){return ku(n)===n}function ph(n){{var a=l0.current;if(a!==null&&a.tag===v){var s=a,f=s.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.",It(s)||"A component"),f._warnedAboutRefsInRender=!0}}var p=Ks(n);return p?ku(p)===p:!1}function c0(n){if(ku(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function Tv(n){var a=n.alternate;if(!a){var s=ku(n);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==n?null:n}for(var f=n,p=a;;){var y=f.return;if(y===null)break;var w=y.alternate;if(w===null){var T=y.return;if(T!==null){f=p=T;continue}break}if(y.child===w.child){for(var A=y.child;A;){if(A===f)return c0(y),n;if(A===p)return c0(y),a;A=A.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==p.return)f=y,p=w;else{for(var F=!1,H=y.child;H;){if(H===f){F=!0,f=y,p=w;break}if(H===p){F=!0,p=y,f=w;break}H=H.sibling}if(!F){for(H=w.child;H;){if(H===f){F=!0,f=w,p=y;break}if(H===p){F=!0,p=w,f=y;break}H=H.sibling}if(!F)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!==p)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(f.tag!==x)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?n:a}function f0(n){var a=Tv(n);return a!==null?ds(a):null}function ds(n){if(n.tag===_||n.tag===N)return n;for(var a=n.child;a!==null;){var s=ds(a);if(s!==null)return s;a=a.sibling}return null}function Nv(n){var a=Tv(n);return a!==null?Pl(a):null}function Pl(n){if(n.tag===_||n.tag===N)return n;for(var a=n.child;a!==null;){if(a.tag!==C){var s=Pl(a);if(s!==null)return s}a=a.sibling}return null}var Fi=t.unstable_scheduleCallback,MC=t.unstable_cancelCallback,d0=t.unstable_shouldYield,p0=t.unstable_requestPaint,Ar=t.unstable_now,Ml=t.unstable_getCurrentPriorityLevel,md=t.unstable_ImmediatePriority,Rv=t.unstable_UserBlockingPriority,ps=t.unstable_NormalPriority,IC=t.unstable_LowPriority,hh=t.unstable_IdlePriority,ga=t.unstable_yieldValue,Av=t.unstable_setDisableYieldValue,Du=null,fr=null,nt=null,zi=!1,ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function h0(n){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{st&&(n=Zt({},n,{getLaneLabelMap:zC,injectProfilingHooks:kv})),Du=a.inject(n),fr=a}catch(s){u("React instrumentation encountered an error: %s.",s)}return!!a.checkDCE}function Ha(n,a){if(fr&&typeof fr.onScheduleFiberRoot=="function")try{fr.onScheduleFiberRoot(Du,n,a)}catch(s){zi||(zi=!0,u("React instrumentation encountered an error: %s",s))}}function Ov(n,a){if(fr&&typeof fr.onCommitFiberRoot=="function")try{var s=(n.current.flags&Ln)===Ln;if(mt){var f;switch(a){case Ga:f=md;break;case gs:f=Rv;break;case yr:f=ps;break;case Rh:f=hh;break;default:f=ps;break}fr.onCommitFiberRoot(Du,n,f,s)}}catch(p){zi||(zi=!0,u("React instrumentation encountered an error: %s",p))}}function LC(n){if(fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(Du,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function FC(n){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(Du,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function na(n){if(typeof ga=="function"&&(Av(n),o(n)),fr&&typeof fr.setStrictMode=="function")try{fr.setStrictMode(Du,n)}catch(a){zi||(zi=!0,u("React instrumentation encountered an error: %s",a))}}function kv(n){nt=n}function zC(){{for(var n=new Map,a=1,s=0;s<Bv;s++){var f=HC(a);n.set(a,f),a*=2}return n}}function vd(n){nt!==null&&typeof nt.markCommitStarted=="function"&&nt.markCommitStarted(n)}function Dv(){nt!==null&&typeof nt.markCommitStopped=="function"&&nt.markCommitStopped()}function gd(n){nt!==null&&typeof nt.markComponentRenderStarted=="function"&&nt.markComponentRenderStarted(n)}function Lc(){nt!==null&&typeof nt.markComponentRenderStopped=="function"&&nt.markComponentRenderStopped()}function yd(n){nt!==null&&typeof nt.markComponentPassiveEffectMountStarted=="function"&&nt.markComponentPassiveEffectMountStarted(n)}function BC(){nt!==null&&typeof nt.markComponentPassiveEffectMountStopped=="function"&&nt.markComponentPassiveEffectMountStopped()}function UC(n){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStarted=="function"&&nt.markComponentPassiveEffectUnmountStarted(n)}function Pv(){nt!==null&&typeof nt.markComponentPassiveEffectUnmountStopped=="function"&&nt.markComponentPassiveEffectUnmountStopped()}function m0(n){nt!==null&&typeof nt.markComponentLayoutEffectMountStarted=="function"&&nt.markComponentLayoutEffectMountStarted(n)}function jC(){nt!==null&&typeof nt.markComponentLayoutEffectMountStopped=="function"&&nt.markComponentLayoutEffectMountStopped()}function v0(n){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStarted=="function"&&nt.markComponentLayoutEffectUnmountStarted(n)}function g0(){nt!==null&&typeof nt.markComponentLayoutEffectUnmountStopped=="function"&&nt.markComponentLayoutEffectUnmountStopped()}function y0(n,a,s){nt!==null&&typeof nt.markComponentErrored=="function"&&nt.markComponentErrored(n,a,s)}function Mv(n,a,s){nt!==null&&typeof nt.markComponentSuspended=="function"&&nt.markComponentSuspended(n,a,s)}function $C(n){nt!==null&&typeof nt.markLayoutEffectsStarted=="function"&&nt.markLayoutEffectsStarted(n)}function Iv(){nt!==null&&typeof nt.markLayoutEffectsStopped=="function"&&nt.markLayoutEffectsStopped()}function b0(n){nt!==null&&typeof nt.markPassiveEffectsStarted=="function"&&nt.markPassiveEffectsStarted(n)}function S0(){nt!==null&&typeof nt.markPassiveEffectsStopped=="function"&&nt.markPassiveEffectsStopped()}function Lv(n){nt!==null&&typeof nt.markRenderStarted=="function"&&nt.markRenderStarted(n)}function mh(){nt!==null&&typeof nt.markRenderYielded=="function"&&nt.markRenderYielded()}function x0(){nt!==null&&typeof nt.markRenderStopped=="function"&&nt.markRenderStopped()}function w0(n){nt!==null&&typeof nt.markRenderScheduled=="function"&&nt.markRenderScheduled(n)}function C0(n,a){nt!==null&&typeof nt.markForceUpdateScheduled=="function"&&nt.markForceUpdateScheduled(n,a)}function Fv(n,a){nt!==null&&typeof nt.markStateUpdateScheduled=="function"&&nt.markStateUpdateScheduled(n,a)}var Rt=0,yn=1,Un=2,Pr=8,ro=16,_0=Math.clz32?Math.clz32:VC,zv=Math.log,mn=Math.LN2;function VC(n){var a=n>>>0;return a===0?32:31-(zv(a)/mn|0)|0}var Bv=31,Me=0,Yr=0,Ut=1,Fc=2,Br=4,Pu=8,Bi=16,Mu=32,Iu=4194240,zc=64,Wa=128,hs=256,bd=512,vh=1024,Bc=2048,gh=4096,Sd=8192,yh=16384,xd=32768,wd=65536,ms=131072,Uv=262144,vs=524288,bh=1048576,Sh=2097152,Uc=130023424,jc=4194304,jv=8388608,$v=16777216,xh=33554432,wh=67108864,E0=jc,$c=134217728,Vv=268435455,ra=268435456,Fa=536870912,Ui=1073741824;function HC(n){{if(n&Ut)return"Sync";if(n&Fc)return"InputContinuousHydration";if(n&Br)return"InputContinuous";if(n&Pu)return"DefaultHydration";if(n&Bi)return"Default";if(n&Mu)return"TransitionHydration";if(n&Iu)return"Transition";if(n&Uc)return"Retry";if(n&$c)return"SelectiveHydration";if(n&ra)return"IdleHydration";if(n&Fa)return"Idle";if(n&Ui)return"Offscreen"}}var Xn=-1,el=zc,Cd=jc;function Vc(n){switch(tl(n)){case Ut:return Ut;case Fc:return Fc;case Br:return Br;case Pu:return Pu;case Bi:return Bi;case Mu:return Mu;case zc:case Wa:case hs:case bd:case vh:case Bc:case gh:case Sd:case yh:case xd:case wd:case ms:case Uv:case vs:case bh:case Sh:return n&Iu;case jc:case jv:case $v:case xh:case wh:return n&Uc;case $c:return $c;case ra:return ra;case Fa:return Fa;case Ui:return Ui;default:return u("Should have found matching lanes. This is a bug in React."),n}}function Ch(n,a){var s=n.pendingLanes;if(s===Me)return Me;var f=Me,p=n.suspendedLanes,y=n.pingedLanes,w=s&Vv;if(w!==Me){var T=w&~p;if(T!==Me)f=Vc(T);else{var A=w&y;A!==Me&&(f=Vc(A))}}else{var F=s&~p;F!==Me?f=Vc(F):y!==Me&&(f=Vc(y))}if(f===Me)return Me;if(a!==Me&&a!==f&&(a&p)===Me){var H=tl(f),te=tl(a);if(H>=te||H===Bi&&(te&Iu)!==Me)return a}(f&Br)!==Me&&(f|=s&Bi);var ee=n.entangledLanes;if(ee!==Me)for(var he=n.entanglements,ve=f&ee;ve>0;){var _e=Il(ve),ut=1<<_e;f|=he[_e],ve&=~ut}return f}function T0(n,a){for(var s=n.eventTimes,f=Xn;a>0;){var p=Il(a),y=1<<p,w=s[p];w>f&&(f=w),a&=~y}return f}function Hc(n,a){switch(n){case Ut:case Fc:case Br:return a+250;case Pu:case Bi:case Mu:case zc:case Wa:case hs:case bd:case vh:case Bc:case gh:case Sd:case yh:case xd:case wd:case ms:case Uv:case vs:case bh:case Sh:return a+5e3;case jc:case jv:case $v:case xh:case wh:return Xn;case $c:case ra:case Fa:case Ui:return Xn;default:return u("Should have found matching lanes. This is a bug in React."),Xn}}function _d(n,a){for(var s=n.pendingLanes,f=n.suspendedLanes,p=n.pingedLanes,y=n.expirationTimes,w=s;w>0;){var T=Il(w),A=1<<T,F=y[T];F===Xn?((A&f)===Me||(A&p)!==Me)&&(y[T]=Hc(A,a)):F<=a&&(n.expiredLanes|=A),w&=~A}}function WC(n){return Vc(n.pendingLanes)}function _h(n){var a=n.pendingLanes&~Ui;return a!==Me?a:a&Ui?Ui:Me}function N0(n){return(n&Ut)!==Me}function Wc(n){return(n&Vv)!==Me}function Hv(n){return(n&Uc)===n}function Eh(n){var a=Ut|Br|Bi;return(n&a)===Me}function Wv(n){return(n&Iu)===n}function Lu(n,a){var s=Fc|Br|Pu|Bi;return(a&s)!==Me}function GC(n,a){return(a&n.expiredLanes)!==Me}function Gv(n){return(n&Iu)!==Me}function Ed(){var n=el;return el<<=1,(el&Iu)===Me&&(el=zc),n}function R0(){var n=Cd;return Cd<<=1,(Cd&Uc)===Me&&(Cd=jc),n}function tl(n){return n&-n}function Td(n){return tl(n)}function Il(n){return 31-_0(n)}function zo(n){return Il(n)}function Si(n,a){return(n&a)!==Me}function Fu(n,a){return(n&a)===a}function un(n,a){return n|a}function Nd(n,a){return n&~a}function A0(n,a){return n&a}function tD(n){return n}function nl(n,a){return n!==Yr&&n<a?n:a}function Rd(n){for(var a=[],s=0;s<Bv;s++)a.push(n);return a}function zu(n,a,s){n.pendingLanes|=a,a!==Fa&&(n.suspendedLanes=Me,n.pingedLanes=Me);var f=n.eventTimes,p=zo(a);f[p]=s}function Yv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var s=n.expirationTimes,f=a;f>0;){var p=Il(f),y=1<<p;s[p]=Xn,f&=~y}}function Ad(n,a,s){n.pingedLanes|=n.suspendedLanes&a}function Gc(n,a){var s=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Me,n.pingedLanes=Me,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var f=n.entanglements,p=n.eventTimes,y=n.expirationTimes,w=s;w>0;){var T=Il(w),A=1<<T;f[T]=Me,p[T]=Xn,y[T]=Xn,w&=~A}}function At(n,a){for(var s=n.entangledLanes|=a,f=n.entanglements,p=s;p;){var y=Il(p),w=1<<y;w&a|f[y]&a&&(f[y]|=a),p&=~w}}function Th(n,a){var s=tl(a),f;switch(s){case Br:f=Fc;break;case Bi:f=Pu;break;case zc:case Wa:case hs:case bd:case vh:case Bc:case gh:case Sd:case yh:case xd:case wd:case ms:case Uv:case vs:case bh:case Sh:case jc:case jv:case $v:case xh:case wh:f=Mu;break;case Fa:f=ra;break;default:f=Yr;break}return(f&(n.suspendedLanes|a))!==Yr?Yr:f}function Nh(n,a,s){if(!!ya)for(var f=n.pendingUpdatersLaneMap;s>0;){var p=zo(s),y=1<<p,w=f[p];w.add(a),s&=~y}}function Ll(n,a){if(!!ya)for(var s=n.pendingUpdatersLaneMap,f=n.memoizedUpdaters;a>0;){var p=zo(a),y=1<<p,w=s[p];w.size>0&&(w.forEach(function(T){var A=T.alternate;(A===null||!f.has(A))&&f.add(T)}),w.clear()),a&=~y}}function O0(n,a){return null}var Ga=Ut,gs=Br,yr=Bi,Rh=Fa,Od=Yr;function ao(){return Od}function aa(n){Od=n}function k0(n,a){var s=Od;try{return Od=n,a()}finally{Od=s}}function YC(n,a){return n!==0&&n<a?n:a}function qC(n,a){return n===0||n>a?n:a}function qv(n,a){return n!==0&&n<a}function ys(n){var a=tl(n);return qv(Ga,a)?qv(gs,a)?Wc(a)?yr:Rh:gs:Ga}function ia(n){var a=n.current.memoizedState;return a.isDehydrated}var Ah;function KC(n){Ah=n}function Kv(n){Ah(n)}var Xv;function XC(n){Xv=n}var Yc;function D0(n){Yc=n}var Zv;function ZC(n){Zv=n}var P0;function QC(n){P0=n}var Qv=!1,kd=[],rl=null,Fl=null,bs=null,qc=new Map,al=new Map,Ss=[],M0=["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 I0(n){return M0.indexOf(n)>-1}function Oh(n,a,s,f,p){return{blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]}}function Jv(n,a){switch(n){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":Fl=null;break;case"mouseover":case"mouseout":bs=null;break;case"pointerover":case"pointerout":{var s=a.pointerId;qc.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;al.delete(f);break}}}function xi(n,a,s,f,p,y){if(n===null||n.nativeEvent!==y){var w=Oh(a,s,f,p,y);if(a!==null){var T=Xe(a);T!==null&&Xv(T)}return w}n.eventSystemFlags|=f;var A=n.targetContainers;return p!==null&&A.indexOf(p)===-1&&A.push(p),n}function Bu(n,a,s,f,p){switch(a){case"focusin":{var y=p;return rl=xi(rl,n,a,s,f,y),!0}case"dragenter":{var w=p;return Fl=xi(Fl,n,a,s,f,w),!0}case"mouseover":{var T=p;return bs=xi(bs,n,a,s,f,T),!0}case"pointerover":{var A=p,F=A.pointerId;return qc.set(F,xi(qc.get(F)||null,n,a,s,f,A)),!0}case"gotpointercapture":{var H=p,te=H.pointerId;return al.set(te,xi(al.get(te)||null,n,a,s,f,H)),!0}}return!1}function L0(n){var a=Pe(n.target);if(a!==null){var s=ku(a);if(s!==null){var f=s.tag;if(f===j){var p=u0(s);if(p!==null){n.blockedOn=p,P0(n.priority,function(){Yc(s)});return}}else if(f===x){var y=s.stateNode;if(ia(y)){n.blockedOn=dh(s);return}}}}n.blockedOn=null}function F0(n){for(var a=Zv(),s={blockedOn:null,target:n,priority:a},f=0;f<Ss.length&&qv(a,Ss[f].priority);f++);Ss.splice(f,0,s),f===0&&L0(s)}function kh(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var s=a[0],f=tg(n.domEventName,n.eventSystemFlags,s,n.nativeEvent);if(f===null){var p=n.nativeEvent,y=new p.constructor(p.type,p);sd(y),p.target.dispatchEvent(y),Tu()}else{var w=Xe(f);return w!==null&&Xv(w),n.blockedOn=f,!1}a.shift()}return!0}function z0(n,a,s){kh(n)&&s.delete(a)}function JC(){Qv=!1,rl!==null&&kh(rl)&&(rl=null),Fl!==null&&kh(Fl)&&(Fl=null),bs!==null&&kh(bs)&&(bs=null),qc.forEach(z0),al.forEach(z0)}function Dd(n,a){n.blockedOn===a&&(n.blockedOn=null,Qv||(Qv=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,JC)))}function Pd(n){if(kd.length>0){Dd(kd[0],n);for(var a=1;a<kd.length;a++){var s=kd[a];s.blockedOn===n&&(s.blockedOn=null)}}rl!==null&&Dd(rl,n),Fl!==null&&Dd(Fl,n),bs!==null&&Dd(bs,n);var f=function(T){return Dd(T,n)};qc.forEach(f),al.forEach(f);for(var p=0;p<Ss.length;p++){var y=Ss[p];y.blockedOn===n&&(y.blockedOn=null)}for(;Ss.length>0;){var w=Ss[0];if(w.blockedOn!==null)break;L0(w),w.blockedOn===null&&Ss.shift()}}var Kc=r.ReactCurrentBatchConfig,eg=!0;function B0(n){eg=!!n}function e_(){return eg}function t_(n,a,s){var f=$0(a),p;switch(f){case Ga:p=n_;break;case gs:p=U0;break;case yr:default:p=Dh;break}return p.bind(null,a,s,n)}function n_(n,a,s,f){var p=ao(),y=Kc.transition;Kc.transition=null;try{aa(Ga),Dh(n,a,s,f)}finally{aa(p),Kc.transition=y}}function U0(n,a,s,f){var p=ao(),y=Kc.transition;Kc.transition=null;try{aa(gs),Dh(n,a,s,f)}finally{aa(p),Kc.transition=y}}function Dh(n,a,s,f){!eg||j0(n,a,s,f)}function j0(n,a,s,f){var p=tg(n,a,s,f);if(p===null){gg(n,a,f,Ph,s),Jv(n,f);return}if(Bu(p,n,a,s,f)){f.stopPropagation();return}if(Jv(n,f),a&Ec&&I0(n)){for(;p!==null;){var y=Xe(p);y!==null&&Kv(y);var w=tg(n,a,s,f);if(w===null&&gg(n,a,f,Ph,s),w===p)break;p=w}p!==null&&f.stopPropagation();return}gg(n,a,f,null,s)}var Ph=null;function tg(n,a,s,f){Ph=null;var p=vv(f),y=Pe(p);if(y!==null){var w=ku(y);if(w===null)y=null;else{var T=w.tag;if(T===j){var A=u0(w);if(A!==null)return A;y=null}else if(T===x){var F=w.stateNode;if(ia(F))return dh(w);y=null}else w!==y&&(y=null)}}return Ph=y,null}function $0(n){switch(n){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 Ga;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 gs;case"message":{var a=Ml();switch(a){case md:return Ga;case Rv:return gs;case ps:case IC:return yr;case hh:return Rh;default:return yr}}default:return yr}}function V0(n,a,s){return n.addEventListener(a,s,!1),s}function r_(n,a,s){return n.addEventListener(a,s,!0),s}function a_(n,a,s,f){return n.addEventListener(a,s,{capture:!0,passive:f}),s}function i_(n,a,s,f){return n.addEventListener(a,s,{passive:f}),s}var Md=null,ng=null,Id=null;function io(n){return Md=n,ng=W0(),!0}function o_(){Md=null,ng=null,Id=null}function H0(){if(Id)return Id;var n,a=ng,s=a.length,f,p=W0(),y=p.length;for(n=0;n<s&&a[n]===p[n];n++);var w=s-n;for(f=1;f<=w&&a[s-f]===p[y-f];f++);var T=f>1?1-f:void 0;return Id=p.slice(n,T),Id}function W0(){return"value"in Md?Md.value:Md.textContent}function Ld(n){var a,s=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),a>=32||a===13?a:0}function Mh(){return!0}function G0(){return!1}function ji(n){function a(s,f,p,y,w){this._reactName=s,this._targetInst=p,this.type=f,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var T in n)if(!!n.hasOwnProperty(T)){var A=n[T];A?this[T]=A(y):this[T]=y[T]}var F=y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1;return F?this.isDefaultPrevented=Mh:this.isDefaultPrevented=G0,this.isPropagationStopped=G0,this}return Zt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;!s||(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Mh)},stopPropagation:function(){var s=this.nativeEvent;!s||(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Mh)},persist:function(){},isPersistent:Mh}),a}var Xc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fd=ji(Xc),zd=Zt({},Xc,{view:0,detail:0}),s_=ji(zd),rg,ag,Bd;function l_(n){n!==Bd&&(Bd&&n.type==="mousemove"?(rg=n.screenX-Bd.screenX,ag=n.screenY-Bd.screenY):(rg=0,ag=0),Bd=n)}var Ih=Zt({},zd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sg,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(l_(n),rg)},movementY:function(n){return"movementY"in n?n.movementY:ag}}),Y0=ji(Ih),u_=Zt({},Ih,{dataTransfer:0}),c_=ji(u_),f_=Zt({},zd,{relatedTarget:0}),ig=ji(f_),d_=Zt({},Xc,{animationName:0,elapsedTime:0,pseudoElement:0}),p_=ji(d_),h_=Zt({},Xc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),m_=ji(h_),v_=Zt({},Xc,{data:0}),q0=ji(v_),g_=q0,y_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},og={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 K0(n){if(n.key){var a=y_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var s=Ld(n);return s===13?"Enter":String.fromCharCode(s)}return n.type==="keydown"||n.type==="keyup"?og[n.keyCode]||"Unidentified":""}var b_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S_(n){var a=this,s=a.nativeEvent;if(s.getModifierState)return s.getModifierState(n);var f=b_[n];return f?!!s[f]:!1}function sg(n){return S_}var x_=Zt({},zd,{key:K0,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sg,charCode:function(n){return n.type==="keypress"?Ld(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ld(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),w_=ji(x_),C_=Zt({},Ih,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X0=ji(C_),__=Zt({},zd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sg}),Z0=ji(__),E_=Zt({},Xc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lh=ji(E_),T_=Zt({},Ih,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),N_=ji(T_),R_=[9,13,27,32],Q0=229,lg=Yt&&"CompositionEvent"in window,Ud=null;Yt&&"documentMode"in document&&(Ud=document.documentMode);var A_=Yt&&"TextEvent"in window&&!Ud,J0=Yt&&(!lg||Ud&&Ud>8&&Ud<=11),eS=32,tS=String.fromCharCode(eS);function O_(){zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),zt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),zt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var nS=!1;function k_(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function D_(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function P_(n,a){return n==="keydown"&&a.keyCode===Q0}function rS(n,a){switch(n){case"keyup":return R_.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Q0;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ug(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function cg(n){return n.locale==="ko"}var Zc=!1;function M_(n,a,s,f,p){var y,w;if(lg?y=D_(a):Zc?rS(a,f)&&(y="onCompositionEnd"):P_(a,f)&&(y="onCompositionStart"),!y)return null;J0&&!cg(f)&&(!Zc&&y==="onCompositionStart"?Zc=io(p):y==="onCompositionEnd"&&Zc&&(w=H0()));var T=tn(s,y);if(T.length>0){var A=new q0(y,a,null,f,p);if(n.push({event:A,listeners:T}),w)A.data=w;else{var F=ug(f);F!==null&&(A.data=F)}}}function I_(n,a){switch(n){case"compositionend":return ug(a);case"keypress":var s=a.which;return s!==eS?null:(nS=!0,tS);case"textInput":var f=a.data;return f===tS&&nS?null:f;default:return null}}function L_(n,a){if(Zc){if(n==="compositionend"||!lg&&rS(n,a)){var s=H0();return o_(),Zc=!1,s}return null}switch(n){case"paste":return null;case"keypress":if(!k_(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return J0&&!cg(a)?null:a.data;default:return null}}function Fh(n,a,s,f,p){var y;if(A_?y=I_(a,f):y=L_(a,f),!y)return null;var w=tn(s,"onBeforeInput");if(w.length>0){var T=new g_("onBeforeInput","beforeinput",null,f,p);n.push({event:T,listeners:w}),T.data=y}}function F_(n,a,s,f,p,y,w){M_(n,a,s,f,p),Fh(n,a,s,f,p)}var z_={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 aS(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!z_[n.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 B_(n){if(!Yt)return!1;var a="on"+n,s=a in document;if(!s){var f=document.createElement("div");f.setAttribute(a,"return;"),s=typeof f[a]=="function"}return s}function U_(){zt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function iS(n,a,s,f){e0(f);var p=tn(a,"onChange");if(p.length>0){var y=new Fd("onChange","change",null,s,f);n.push({event:y,listeners:p})}}var jd=null,$d=null;function j_(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function $_(n){var a=[];iS(a,$d,n,vv(n)),a0(V_,a)}function V_(n){vg(n,0)}function Uu(n){var a=dt(n);if(W(a))return n}function H_(n,a){if(n==="change")return a}var fg=!1;Yt&&(fg=B_("input")&&(!document.documentMode||document.documentMode>9));function oS(n,a){jd=n,$d=a,jd.attachEvent("onpropertychange",dg)}function zh(){!jd||(jd.detachEvent("onpropertychange",dg),jd=null,$d=null)}function dg(n){n.propertyName==="value"&&Uu($d)&&$_(n)}function sS(n,a,s){n==="focusin"?(zh(),oS(a,s)):n==="focusout"&&zh()}function lS(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Uu($d)}function uS(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function W_(n,a){if(n==="click")return Uu(a)}function G_(n,a){if(n==="input"||n==="change")return Uu(a)}function Y_(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||$e(n,"number",n.value)}function Bh(n,a,s,f,p,y,w){var T=s?dt(s):window,A,F;if(j_(T)?A=H_:aS(T)?fg?A=G_:(A=lS,F=sS):uS(T)&&(A=W_),A){var H=A(a,s);if(H){iS(n,H,f,p);return}}F&&F(a,T,s),a==="focusout"&&Y_(T)}function Uh(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function q_(n,a,s,f,p,y,w){var T=a==="mouseover"||a==="pointerover",A=a==="mouseout"||a==="pointerout";if(T&&!sh(f)){var F=f.relatedTarget||f.fromElement;if(F&&(Pe(F)||Ae(F)))return}if(!(!A&&!T)){var H;if(p.window===p)H=p;else{var te=p.ownerDocument;te?H=te.defaultView||te.parentWindow:H=window}var ee,he;if(A){var ve=f.relatedTarget||f.toElement;if(ee=s,he=ve?Pe(ve):null,he!==null){var _e=ku(he);(he!==_e||he.tag!==_&&he.tag!==N)&&(he=null)}}else ee=null,he=s;if(ee!==he){var ut=Y0,Ct="onMouseLeave",yt="onMouseEnter",An="mouse";(a==="pointerout"||a==="pointerover")&&(ut=X0,Ct="onPointerLeave",yt="onPointerEnter",An="pointer");var Sn=ee==null?H:dt(ee),le=he==null?H:dt(he),Ee=new ut(Ct,An+"leave",ee,f,p);Ee.target=Sn,Ee.relatedTarget=le;var ue=null,He=Pe(p);if(He===s){var ct=new ut(yt,An+"enter",he,f,p);ct.target=le,ct.relatedTarget=Sn,ue=ct}dE(n,Ee,ue,ee,he)}}}function K_(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Ya=typeof Object.is=="function"?Object.is:K_;function Qc(n,a){if(Ya(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),f=Object.keys(a);if(s.length!==f.length)return!1;for(var p=0;p<s.length;p++){var y=s[p];if(!ye.call(a,y)||!Ya(n[y],a[y]))return!1}return!0}function cS(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function X_(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function fS(n,a){for(var s=cS(n),f=0,p=0;s;){if(s.nodeType===us){if(p=f+s.textContent.length,f<=a&&p>=a)return{node:s,offset:a-f};f=p}s=cS(X_(s))}}function Z_(n){var a=n.ownerDocument,s=a&&a.defaultView||window,f=s.getSelection&&s.getSelection();if(!f||f.rangeCount===0)return null;var p=f.anchorNode,y=f.anchorOffset,w=f.focusNode,T=f.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return Q_(n,p,y,w,T)}function Q_(n,a,s,f,p){var y=0,w=-1,T=-1,A=0,F=0,H=n,te=null;e:for(;;){for(var ee=null;H===a&&(s===0||H.nodeType===us)&&(w=y+s),H===f&&(p===0||H.nodeType===us)&&(T=y+p),H.nodeType===us&&(y+=H.nodeValue.length),(ee=H.firstChild)!==null;)te=H,H=ee;for(;;){if(H===n)break e;if(te===a&&++A===s&&(w=y),te===f&&++F===p&&(T=y),(ee=H.nextSibling)!==null)break;H=te,te=H.parentNode}H=ee}return w===-1||T===-1?null:{start:w,end:T}}function J_(n,a){var s=n.ownerDocument||document,f=s&&s.defaultView||window;if(!!f.getSelection){var p=f.getSelection(),y=n.textContent.length,w=Math.min(a.start,y),T=a.end===void 0?w:Math.min(a.end,y);if(!p.extend&&w>T){var A=T;T=w,w=A}var F=fS(n,w),H=fS(n,T);if(F&&H){if(p.rangeCount===1&&p.anchorNode===F.node&&p.anchorOffset===F.offset&&p.focusNode===H.node&&p.focusOffset===H.offset)return;var te=s.createRange();te.setStart(F.node,F.offset),p.removeAllRanges(),w>T?(p.addRange(te),p.extend(H.node,H.offset)):(te.setEnd(H.node,H.offset),p.addRange(te))}}}function dS(n){return n&&n.nodeType===us}function pS(n,a){return!n||!a?!1:n===a?!0:dS(n)?!1:dS(a)?pS(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function eE(n){return n&&n.ownerDocument&&pS(n.ownerDocument.documentElement,n)}function tE(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function hS(){for(var n=window,a=Q();a instanceof n.HTMLIFrameElement;){if(tE(a))n=a.contentWindow;else return a;a=Q(n.document)}return a}function pg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Bo(){var n=hS();return{focusedElem:n,selectionRange:pg(n)?rE(n):null}}function nE(n){var a=hS(),s=n.focusedElem,f=n.selectionRange;if(a!==s&&eE(s)){f!==null&&pg(s)&&ju(s,f);for(var p=[],y=s;y=y.parentNode;)y.nodeType===bi&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var w=0;w<p.length;w++){var T=p[w];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}}function rE(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=Z_(n),a||{start:0,end:0}}function ju(n,a){var s=a.start,f=a.end;f===void 0&&(f=s),"selectionStart"in n?(n.selectionStart=s,n.selectionEnd=Math.min(f,n.value.length)):J_(n,a)}var rn=Yt&&"documentMode"in document&&document.documentMode<=11;function aE(){zt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var qr=null,_r=null,Vd=null,xs=!1;function iE(n){if("selectionStart"in n&&pg(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,s=a.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function oE(n){return n.window===n?n.document:n.nodeType===Io?n:n.ownerDocument}function mS(n,a,s){var f=oE(s);if(!(xs||qr==null||qr!==Q(f))){var p=iE(qr);if(!Vd||!Qc(Vd,p)){Vd=p;var y=tn(_r,"onSelect");if(y.length>0){var w=new Fd("onSelect","select",null,a,s);n.push({event:w,listeners:y}),w.target=qr}}}}function sE(n,a,s,f,p,y,w){var T=s?dt(s):window;switch(a){case"focusin":(aS(T)||T.contentEditable==="true")&&(qr=T,_r=s,Vd=null);break;case"focusout":qr=null,_r=null,Vd=null;break;case"mousedown":xs=!0;break;case"contextmenu":case"mouseup":case"dragend":xs=!1,mS(n,f,p);break;case"selectionchange":if(rn)break;case"keydown":case"keyup":mS(n,f,p)}}function jh(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var zl={animationend:jh("Animation","AnimationEnd"),animationiteration:jh("Animation","AnimationIteration"),animationstart:jh("Animation","AnimationStart"),transitionend:jh("Transition","TransitionEnd")},hg={},ws={};Yt&&(ws=document.createElement("div").style,"AnimationEvent"in window||(delete zl.animationend.animation,delete zl.animationiteration.animation,delete zl.animationstart.animation),"TransitionEvent"in window||delete zl.transitionend.transition);function Hd(n){if(hg[n])return hg[n];if(!zl[n])return n;var a=zl[n];for(var s in a)if(a.hasOwnProperty(s)&&s in ws)return hg[n]=a[s];return n}var Wd=Hd("animationend"),br=Hd("animationiteration"),Er=Hd("animationstart"),mg=Hd("transitionend"),vS=new Map,gS=["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 Bl(n,a){vS.set(n,a),zt(a,[n])}function lE(){for(var n=0;n<gS.length;n++){var a=gS[n],s=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);Bl(s,"on"+f)}Bl(Wd,"onAnimationEnd"),Bl(br,"onAnimationIteration"),Bl(Er,"onAnimationStart"),Bl("dblclick","onDoubleClick"),Bl("focusin","onFocus"),Bl("focusout","onBlur"),Bl(mg,"onTransitionEnd")}function uE(n,a,s,f,p,y,w){var T=vS.get(a);if(T!==void 0){var A=Fd,F=a;switch(a){case"keypress":if(Ld(f)===0)return;case"keydown":case"keyup":A=w_;break;case"focusin":F="focus",A=ig;break;case"focusout":F="blur",A=ig;break;case"beforeblur":case"afterblur":A=ig;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Y0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=c_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Z0;break;case Wd:case br:case Er:A=p_;break;case mg:A=Lh;break;case"scroll":A=s_;break;case"wheel":A=N_;break;case"copy":case"cut":case"paste":A=m_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=X0;break}var H=(y&Ec)!==0;{var te=!H&&a==="scroll",ee=il(s,T,f.type,H,te);if(ee.length>0){var he=new A(T,F,null,f,p);n.push({event:he,listeners:ee})}}}}lE(),Uh(),U_(),aE(),O_();function cE(n,a,s,f,p,y,w){uE(n,a,s,f,p,y);var T=(y&oh)===0;T&&(q_(n,a,s,f,p),Bh(n,a,s,f,p),sE(n,a,s,f,p),F_(n,a,s,f,p))}var Jc=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],$u=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Jc));function $h(n,a,s){var f=n.type||"unknown-event";n.currentTarget=s,cd(f,a,void 0,n),n.currentTarget=null}function fE(n,a,s){var f;if(s)for(var p=a.length-1;p>=0;p--){var y=a[p],w=y.instance,T=y.currentTarget,A=y.listener;if(w!==f&&n.isPropagationStopped())return;$h(n,A,T),f=w}else for(var F=0;F<a.length;F++){var H=a[F],te=H.instance,ee=H.currentTarget,he=H.listener;if(te!==f&&n.isPropagationStopped())return;$h(n,he,ee),f=te}}function vg(n,a){for(var s=(a&Ec)!==0,f=0;f<n.length;f++){var p=n[f],y=p.event,w=p.listeners;fE(y,w,s)}o0()}function Vh(n,a,s,f,p){var y=vv(s),w=[];cE(w,n,f,s,y,a),vg(w,a)}function bn(n,a){$u.has(n)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var s=!1,f=Pt(a),p=Gn(n,s);f.has(p)||(yS(a,n,ih,s),f.add(p))}function Ul(n,a,s){$u.has(n)&&!a&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var f=0;a&&(f|=Ec),yS(s,n,f,a)}var Hh="_reactListening"+Math.random().toString(36).slice(2);function Gd(n){if(!n[Hh]){n[Hh]=!0,Qe.forEach(function(s){s!=="selectionchange"&&($u.has(s)||Ul(s,!1,n),Ul(s,!0,n))});var a=n.nodeType===Io?n:n.ownerDocument;a!==null&&(a[Hh]||(a[Hh]=!0,Ul("selectionchange",!1,a)))}}function yS(n,a,s,f,p){var y=t_(n,a,s),w=void 0;ud&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(w=!0),n=n,f?w!==void 0?a_(n,a,y,w):r_(n,a,y):w!==void 0?i_(n,a,y,w):V0(n,a,y)}function bS(n,a){return n===a||n.nodeType===Bn&&n.parentNode===a}function gg(n,a,s,f,p){var y=f;if((a&od)===0&&(a&ih)===0){var w=p;if(f!==null){var T=f;e:for(;;){if(T===null)return;var A=T.tag;if(A===x||A===C){var F=T.stateNode.containerInfo;if(bS(F,w))break;if(A===C)for(var H=T.return;H!==null;){var te=H.tag;if(te===x||te===C){var ee=H.stateNode.containerInfo;if(bS(ee,w))return}H=H.return}for(;F!==null;){var he=Pe(F);if(he===null)return;var ve=he.tag;if(ve===_||ve===N){T=y=he;continue e}F=F.parentNode}}T=T.return}}}a0(function(){return Vh(n,a,s,y)})}function ef(n,a,s){return{instance:n,listener:a,currentTarget:s}}function il(n,a,s,f,p,y){for(var w=a!==null?a+"Capture":null,T=f?w:a,A=[],F=n,H=null;F!==null;){var te=F,ee=te.stateNode,he=te.tag;if(he===_&&ee!==null&&(H=ee,T!==null)){var ve=qs(F,T);ve!=null&&A.push(ef(F,ve,H))}if(p)break;F=F.return}return A}function tn(n,a){for(var s=a+"Capture",f=[],p=n;p!==null;){var y=p,w=y.stateNode,T=y.tag;if(T===_&&w!==null){var A=w,F=qs(p,s);F!=null&&f.unshift(ef(p,F,A));var H=qs(p,a);H!=null&&f.push(ef(p,H,A))}p=p.return}return f}function Vu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==_);return n||null}function oo(n,a){for(var s=n,f=a,p=0,y=s;y;y=Vu(y))p++;for(var w=0,T=f;T;T=Vu(T))w++;for(;p-w>0;)s=Vu(s),p--;for(;w-p>0;)f=Vu(f),w--;for(var A=p;A--;){if(s===f||f!==null&&s===f.alternate)return s;s=Vu(s),f=Vu(f)}return null}function yg(n,a,s,f,p){for(var y=a._reactName,w=[],T=s;T!==null&&T!==f;){var A=T,F=A.alternate,H=A.stateNode,te=A.tag;if(F!==null&&F===f)break;if(te===_&&H!==null){var ee=H;if(p){var he=qs(T,y);he!=null&&w.unshift(ef(T,he,ee))}else if(!p){var ve=qs(T,y);ve!=null&&w.push(ef(T,ve,ee))}}T=T.return}w.length!==0&&n.push({event:a,listeners:w})}function dE(n,a,s,f,p){var y=f&&p?oo(f,p):null;f!==null&&yg(n,a,f,y,!1),p!==null&&s!==null&&yg(n,s,p,y,!0)}function Gn(n,a){return n+"__"+(a?"capture":"bubble")}var wi=!1,tf="dangerouslySetInnerHTML",Hu="suppressContentEditableWarning",jl="suppressHydrationWarning",SS="autoFocus",Wu="children",Gu="style",Wh="__html",bg,Gh,Yd,xS,Yh,wS,CS;bg={dialog:!0,webview:!0},Gh=function(n,a){Kn(n,a),Zb(n,a),Jb(n,a,{registrationNameDependencies:vt,possibleRegistrationNames:Et})},wS=Yt&&!document.documentMode,Yd=function(n,a,s){if(!wi){var f=qh(s),p=qh(a);p!==f&&(wi=!0,u("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(p),JSON.stringify(f)))}},xS=function(n){if(!wi){wi=!0;var a=[];n.forEach(function(s){a.push(s)}),u("Extra attributes from the server: %s",a)}},Yh=function(n,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.",n,n,n):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},CS=function(n,a){var s=n.namespaceURI===ls?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return s.innerHTML=a,s.innerHTML};var pE=/\r\n?/g,Sg=/\u0000|\uFFFD/g;function qh(n){kn(n);var a=typeof n=="string"?n:""+n;return a.replace(pE,`
`).replace(Sg,"")}function nf(n,a,s,f){var p=qh(a),y=qh(n);if(y!==p&&(f&&(wi||(wi=!0,u('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&oe))throw new Error("Text content does not match server-rendered HTML.")}function _S(n){return n.nodeType===Io?n:n.ownerDocument}function hE(){}function Kh(n){n.onclick=hE}function oa(n,a,s,f,p){for(var y in f)if(!!f.hasOwnProperty(y)){var w=f[y];if(y===Gu)w&&Object.freeze(w),ae(a,w);else if(y===tf){var T=w?w[Wh]:void 0;T!=null&&Jp(a,T)}else if(y===Wu)if(typeof w=="string"){var A=n!=="textarea"||w!=="";A&&nd(a,w)}else typeof w=="number"&&nd(a,""+w);else y===Hu||y===jl||y===SS||(vt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Yh(y,w),y==="onScroll"&&bn("scroll",a)):w!=null&&Di(a,y,w,p))}}function Ci(n,a,s,f){for(var p=0;p<a.length;p+=2){var y=a[p],w=a[p+1];y===Gu?ae(n,w):y===tf?Jp(n,w):y===Wu?nd(n,w):Di(n,y,w,f)}}function mE(n,a,s,f){var p,y=_S(s),w,T=f;if(T===ls&&(T=td(n)),T===ls){if(p=Ws(n,a),!p&&n!==n.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var A=y.createElement("div");A.innerHTML="<script><\/script>";var F=A.firstChild;w=A.removeChild(F)}else if(typeof a.is=="string")w=y.createElement(n,{is:a.is});else if(w=y.createElement(n),n==="select"){var H=w;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else w=y.createElementNS(T,n);return T===ls&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ye.call(bg,n)&&(bg[n]=!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.",n)),w}function vE(n,a){return _S(a).createTextNode(n)}function gE(n,a,s,f){var p=Ws(a,s);Gh(a,s);var y;switch(a){case"dialog":bn("cancel",n),bn("close",n),y=s;break;case"iframe":case"object":case"embed":bn("load",n),y=s;break;case"video":case"audio":for(var w=0;w<Jc.length;w++)bn(Jc[w],n);y=s;break;case"source":bn("error",n),y=s;break;case"img":case"image":case"link":bn("error",n),bn("load",n),y=s;break;case"details":bn("toggle",n),y=s;break;case"input":R(n,s),y=b(n,s),bn("invalid",n);break;case"option":pt(n,s),y=s;break;case"select":ss(n,s),y=yi(n,s),bn("invalid",n);break;case"textarea":dv(n,s),y=fv(n,s),bn("invalid",n);break;default:y=s}switch(qn(a,y),oa(a,n,f,y,p),a){case"input":Ia(n),ne(n,s,!1);break;case"textarea":Ia(n),Cu(n);break;case"option":Lt(n,s);break;case"select":Qf(n,s);break;default:typeof y.onClick=="function"&&Kh(n);break}}function ES(n,a,s,f,p){Gh(a,f);var y=null,w,T;switch(a){case"input":w=b(n,s),T=b(n,f),y=[];break;case"select":w=yi(n,s),T=yi(n,f),y=[];break;case"textarea":w=fv(n,s),T=fv(n,f),y=[];break;default:w=s,T=f,typeof w.onClick!="function"&&typeof T.onClick=="function"&&Kh(n);break}qn(a,T);var A,F,H=null;for(A in w)if(!(T.hasOwnProperty(A)||!w.hasOwnProperty(A)||w[A]==null))if(A===Gu){var te=w[A];for(F in te)te.hasOwnProperty(F)&&(H||(H={}),H[F]="")}else A===tf||A===Wu||A===Hu||A===jl||A===SS||(vt.hasOwnProperty(A)?y||(y=[]):(y=y||[]).push(A,null));for(A in T){var ee=T[A],he=w?.[A];if(!(!T.hasOwnProperty(A)||ee===he||ee==null&&he==null))if(A===Gu)if(ee&&Object.freeze(ee),he){for(F in he)he.hasOwnProperty(F)&&(!ee||!ee.hasOwnProperty(F))&&(H||(H={}),H[F]="");for(F in ee)ee.hasOwnProperty(F)&&he[F]!==ee[F]&&(H||(H={}),H[F]=ee[F])}else H||(y||(y=[]),y.push(A,H)),H=ee;else if(A===tf){var ve=ee?ee[Wh]:void 0,_e=he?he[Wh]:void 0;ve!=null&&_e!==ve&&(y=y||[]).push(A,ve)}else A===Wu?(typeof ee=="string"||typeof ee=="number")&&(y=y||[]).push(A,""+ee):A===Hu||A===jl||(vt.hasOwnProperty(A)?(ee!=null&&(typeof ee!="function"&&Yh(A,ee),A==="onScroll"&&bn("scroll",n)),!y&&he!==ee&&(y=[])):(y=y||[]).push(A,ee))}return H&&(ft(H,T[Gu]),(y=y||[]).push(Gu,H)),y}function yE(n,a,s,f,p){s==="input"&&p.type==="radio"&&p.name!=null&&$(n,p);var y=Ws(s,f),w=Ws(s,p);switch(Ci(n,a,y,w),s){case"input":G(n,p);break;case"textarea":Jf(n,p);break;case"select":cv(n,p);break}}function bE(n){{var a=n.toLowerCase();return eh.hasOwnProperty(a)&&eh[a]||null}}function SE(n,a,s,f,p,y,w){var T,A;switch(T=Ws(a,s),Gh(a,s),a){case"dialog":bn("cancel",n),bn("close",n);break;case"iframe":case"object":case"embed":bn("load",n);break;case"video":case"audio":for(var F=0;F<Jc.length;F++)bn(Jc[F],n);break;case"source":bn("error",n);break;case"img":case"image":case"link":bn("error",n),bn("load",n);break;case"details":bn("toggle",n);break;case"input":R(n,s),bn("invalid",n);break;case"option":pt(n,s);break;case"select":ss(n,s),bn("invalid",n);break;case"textarea":dv(n,s),bn("invalid",n);break}qn(a,s);{A=new Set;for(var H=n.attributes,te=0;te<H.length;te++){var ee=H[te].name.toLowerCase();switch(ee){case"value":break;case"checked":break;case"selected":break;default:A.add(H[te].name)}}}var he=null;for(var ve in s)if(!!s.hasOwnProperty(ve)){var _e=s[ve];if(ve===Wu)typeof _e=="string"?n.textContent!==_e&&(s[jl]!==!0&&nf(n.textContent,_e,y,w),he=[Wu,_e]):typeof _e=="number"&&n.textContent!==""+_e&&(s[jl]!==!0&&nf(n.textContent,_e,y,w),he=[Wu,""+_e]);else if(vt.hasOwnProperty(ve))_e!=null&&(typeof _e!="function"&&Yh(ve,_e),ve==="onScroll"&&bn("scroll",n));else if(w&&!0&&typeof T=="boolean"){var ut=void 0,Ct=T&&Le?null:ca(ve);if(s[jl]!==!0){if(!(ve===Hu||ve===jl||ve==="value"||ve==="checked"||ve==="selected")){if(ve===tf){var yt=n.innerHTML,An=_e?_e[Wh]:void 0;if(An!=null){var Sn=CS(n,An);Sn!==yt&&Yd(ve,yt,Sn)}}else if(ve===Gu){if(A.delete(ve),wS){var le=Cc(_e);ut=n.getAttribute("style"),le!==ut&&Yd(ve,ut,le)}}else if(T&&!Le)A.delete(ve.toLowerCase()),ut=Oa(n,ve,_e),_e!==ut&&Yd(ve,ut,_e);else if(!Dn(ve,Ct,T)&&!Tn(ve,_e,Ct,T)){var Ee=!1;if(Ct!==null)A.delete(Ct.attributeName),ut=cr(n,ve,_e,Ct);else{var ue=f;if(ue===ls&&(ue=td(a)),ue===ls)A.delete(ve.toLowerCase());else{var He=bE(ve);He!==null&&He!==ve&&(Ee=!0,A.delete(He)),A.delete(ve)}ut=Oa(n,ve,_e)}var ct=Le;!ct&&_e!==ut&&!Ee&&Yd(ve,ut,_e)}}}}}switch(w&&A.size>0&&s[jl]!==!0&&xS(A),a){case"input":Ia(n),ne(n,s,!0);break;case"textarea":Ia(n),Cu(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&Kh(n);break}return he}function TS(n,a,s){var f=n.nodeValue!==a;return f}function xg(n,a){{if(wi)return;wi=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function wg(n,a){{if(wi)return;wi=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function Cg(n,a,s){{if(wi)return;wi=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function Xh(n,a){{if(a===""||wi)return;wi=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function NS(n,a,s){switch(a){case"input":Fe(n,s);return;case"textarea":gC(n,s);return;case"select":vC(n,s);return}}var qd=function(){},Kd=function(){};{var xE=["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"],RS=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],rf=RS.concat(["button"]),wE=["dd","dt","li","option","optgroup","p","rp","rt"],AS={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Kd=function(n,a){var s=Zt({},n||AS),f={tag:a};return RS.indexOf(a)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),rf.indexOf(a)!==-1&&(s.pTagInButtonScope=null),xE.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=f,a==="form"&&(s.formTag=f),a==="a"&&(s.aTagInScope=f),a==="button"&&(s.buttonTagInScope=f),a==="nobr"&&(s.nobrTagInScope=f),a==="p"&&(s.pTagInButtonScope=f),a==="li"&&(s.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(s.dlItemTagAutoclosing=f),s};var CE=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){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 wE.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},_E=function(n,a){switch(n){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},OS={};qd=function(n,a,s){s=s||AS;var f=s.current,p=f&&f.tag;a!=null&&(n!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var y=CE(n,p)?null:f,w=y?null:_E(n,s),T=y||w;if(!!T){var A=T.tag,F=!!y+"|"+n+"|"+A;if(!OS[F]){OS[F]=!0;var H=n,te="";if(n==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",te=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+n+">",y){var ee="";A==="table"&&n==="tr"&&(ee+=" 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,A,te,ee)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,A)}}}}var Xd="suppressHydrationWarning",Zd="$",Zh="/$",Qd="$?",Jd="$!",EE="style",_g=null,Eg=null;function TE(n){var a,s,f=n.nodeType;switch(f){case Io:case _u:{a=f===Io?"#document":"#fragment";var p=n.documentElement;s=p?p.namespaceURI:Qp(null,"");break}default:{var y=f===Bn?n.parentNode:n,w=y.namespaceURI||null;a=y.tagName,s=Qp(w,a);break}}{var T=a.toLowerCase(),A=Kd(null,T);return{namespace:s,ancestorInfo:A}}}function NE(n,a,s){{var f=n,p=Qp(f.namespace,a),y=Kd(f.ancestorInfo,a);return{namespace:p,ancestorInfo:y}}}function nD(n){return n}function RE(n){_g=e_(),Eg=Bo();var a=null;return B0(!1),a}function AE(n){nE(Eg),B0(_g),_g=null,Eg=null}function OE(n,a,s,f,p){var y;{var w=f;if(qd(n,null,w.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var T=""+a.children,A=Kd(w.ancestorInfo,n);qd(null,T,A)}y=w.namespace}var F=mE(n,a,s,y);return Z(p,F),cn(F,a),F}function kE(n,a){n.appendChild(a)}function DE(n,a,s,f,p){switch(gE(n,a,s,f),a){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function PE(n,a,s,f,p,y){{var w=y;if(typeof f.children!=typeof s.children&&(typeof f.children=="string"||typeof f.children=="number")){var T=""+f.children,A=Kd(w.ancestorInfo,a);qd(null,T,A)}}return ES(n,a,s,f)}function Tg(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function ME(n,a,s,f){{var p=s;qd(null,n,p.ancestorInfo)}var y=vE(n,a);return Z(f,y),y}function IE(){var n=window.event;return n===void 0?yr:$0(n.type)}var Ng=typeof setTimeout=="function"?setTimeout:void 0,LE=typeof clearTimeout=="function"?clearTimeout:void 0,Rg=-1,kS=typeof Promise=="function"?Promise:void 0,FE=typeof queueMicrotask=="function"?queueMicrotask:typeof kS<"u"?function(n){return kS.resolve(null).then(n).catch(zE)}:Ng;function zE(n){setTimeout(function(){throw n})}function BE(n,a,s,f){switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();return;case"img":{s.src&&(n.src=s.src);return}}}function Ag(n,a,s,f,p,y){yE(n,a,s,f,p),cn(n,p)}function Og(n){nd(n,"")}function DS(n,a,s){n.nodeValue=s}function UE(n,a){n.appendChild(a)}function jE(n,a){var s;n.nodeType===Bn?(s=n.parentNode,s.insertBefore(a,n)):(s=n,s.appendChild(a));var f=n._reactRootContainer;f==null&&s.onclick===null&&Kh(s)}function $E(n,a,s){n.insertBefore(a,s)}function kg(n,a,s){n.nodeType===Bn?n.parentNode.insertBefore(a,s):n.insertBefore(a,s)}function VE(n,a){n.removeChild(a)}function HE(n,a){n.nodeType===Bn?n.parentNode.removeChild(a):n.removeChild(a)}function Dg(n,a){var s=a,f=0;do{var p=s.nextSibling;if(n.removeChild(s),p&&p.nodeType===Bn){var y=p.data;if(y===Zh)if(f===0){n.removeChild(p),Pd(a);return}else f--;else(y===Zd||y===Qd||y===Jd)&&f++}s=p}while(s);Pd(a)}function _i(n,a){n.nodeType===Bn?Dg(n.parentNode,a):n.nodeType===bi&&Dg(n,a),Pd(n)}function Pg(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function WE(n){n.nodeValue=""}function GE(n,a){n=n;var s=a[EE],f=s!=null&&s.hasOwnProperty("display")?s.display:null;n.style.display=pv("display",f)}function YE(n,a){n.nodeValue=a}function qE(n){n.nodeType===bi?n.textContent="":n.nodeType===Io&&n.documentElement&&n.removeChild(n.documentElement)}function Mg(n,a,s){return n.nodeType!==bi||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function KE(n,a){return a===""||n.nodeType!==us?null:n}function Ig(n){return n.nodeType!==Bn?null:n}function PS(n){return n.data===Qd}function Lg(n){return n.data===Jd}function XE(n){var a=n.nextSibling&&n.nextSibling.dataset,s,f,p;return a&&(s=a.dgst,f=a.msg,p=a.stck),{message:f,digest:s,stack:p}}function ZE(n,a){n._reactRetry=a}function ep(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===bi||a===us)break;if(a===Bn){var s=n.data;if(s===Zd||s===Jd||s===Qd)break;if(s===Zh)return null}}return n}function tp(n){return ep(n.nextSibling)}function QE(n){return ep(n.firstChild)}function JE(n){return ep(n.firstChild)}function Fg(n){return ep(n.nextSibling)}function zg(n,a,s,f,p,y,w){Z(y,n),cn(n,s);var T;{var A=p;T=A.namespace}var F=(y.mode&yn)!==Rt;return SE(n,a,s,T,f,F,w)}function eT(n,a,s,f){return Z(s,n),s.mode&yn,TS(n,a)}function tT(n,a){Z(a,n)}function nT(n){for(var a=n.nextSibling,s=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Zh){if(s===0)return tp(a);s--}else(f===Zd||f===Jd||f===Qd)&&s++}a=a.nextSibling}return null}function MS(n){for(var a=n.previousSibling,s=0;a;){if(a.nodeType===Bn){var f=a.data;if(f===Zd||f===Jd||f===Qd){if(s===0)return a;s--}else f===Zh&&s++}a=a.previousSibling}return null}function rT(n){Pd(n)}function aT(n){Pd(n)}function iT(n){return n!=="head"&&n!=="body"}function oT(n,a,s,f){var p=!0;nf(a.nodeValue,s,f,p)}function sT(n,a,s,f,p,y){if(a[Xd]!==!0){var w=!0;nf(f.nodeValue,p,y,w)}}function lT(n,a){a.nodeType===bi?xg(n,a):a.nodeType===Bn||wg(n,a)}function uT(n,a){{var s=n.parentNode;s!==null&&(a.nodeType===bi?xg(s,a):a.nodeType===Bn||wg(s,a))}}function cT(n,a,s,f,p){(p||a[Xd]!==!0)&&(f.nodeType===bi?xg(s,f):f.nodeType===Bn||wg(s,f))}function fT(n,a,s){Cg(n,a)}function dT(n,a){Xh(n,a)}function pT(n,a,s){{var f=n.parentNode;f!==null&&Cg(f,a)}}function hT(n,a){{var s=n.parentNode;s!==null&&Xh(s,a)}}function mT(n,a,s,f,p,y){(y||a[Xd]!==!0)&&Cg(s,f)}function vT(n,a,s,f,p){(p||a[Xd]!==!0)&&Xh(s,f)}function gT(n){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function yT(n){Gd(n)}var af=Math.random().toString(36).slice(2),l="__reactFiber$"+af,d="__reactProps$"+af,g="__reactContainer$"+af,E="__reactEvents$"+af,P="__reactListeners$"+af,U="__reactHandles$"+af;function Y(n){delete n[l],delete n[d],delete n[E],delete n[P],delete n[U]}function Z(n,a){a[l]=n}function ie(n,a){a[g]=n}function De(n){n[g]=null}function Ae(n){return!!n[g]}function Pe(n){var a=n[l];if(a)return a;for(var s=n.parentNode;s;){if(a=s[g]||s[l],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var p=MS(n);p!==null;){var y=p[l];if(y)return y;p=MS(p)}return a}n=s,s=n.parentNode}return null}function Xe(n){var a=n[l]||n[g];return a&&(a.tag===_||a.tag===N||a.tag===j||a.tag===x)?a:null}function dt(n){if(n.tag===_||n.tag===N)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Ot(n){return n[d]||null}function cn(n,a){n[d]=a}function Pt(n){var a=n[E];return a===void 0&&(a=n[E]=new Set),a}var vn={},En=r.ReactDebugCurrentFrame;function za(n){if(n){var a=n._owner,s=ma(n.type,n._source,a?a.type:null);En.setExtraStackFrame(s)}else En.setExtraStackFrame(null)}function dr(n,a,s,f,p){{var y=Function.call.bind(ye);for(var w in n)if(y(n,w)){var T=void 0;try{if(typeof n[w]!="function"){var A=Error((f||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}T=n[w](a,w,f,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){T=F}T&&!(T instanceof Error)&&(za(p),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",s,w,typeof T),za(null)),T instanceof Error&&!(T.message in vn)&&(vn[T.message]=!0,za(p),u("Failed %s type: %s",s,T.message),za(null))}}}var qa=[],Sr;Sr=[];var Kr=-1;function Ba(n){return{current:n}}function ba(n,a){if(Kr<0){u("Unexpected pop.");return}a!==Sr[Kr]&&u("Unexpected Fiber popped."),n.current=qa[Kr],qa[Kr]=null,Sr[Kr]=null,Kr--}function Ei(n,a,s){Kr++,qa[Kr]=n.current,Sr[Kr]=s,n.current=a}var bT;bT={};var Uo={};Object.freeze(Uo);var Yu=Ba(Uo),$l=Ba(!1),ST=Uo;function Qh(n,a,s){return s&&Vl(a)?ST:Yu.current}function rD(n,a,s){{var f=n.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=s}}function Jh(n,a){{var s=n.type,f=s.contextTypes;if(!f)return Uo;var p=n.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in f)y[w]=a[w];{var T=It(n)||"Unknown";dr(f,y,"context",T)}return p&&rD(n,a,y),y}}function IS(){return $l.current}function Vl(n){{var a=n.childContextTypes;return a!=null}}function LS(n){ba($l,n),ba(Yu,n)}function xT(n){ba($l,n),ba(Yu,n)}function aD(n,a,s){{if(Yu.current!==Uo)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ei(Yu,a,n),Ei($l,s,n)}}function iD(n,a,s){{var f=n.stateNode,p=a.childContextTypes;if(typeof f.getChildContext!="function"){{var y=It(n)||"Unknown";bT[y]||(bT[y]=!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.",y,y))}return s}var w=f.getChildContext();for(var T in w)if(!(T in p))throw new Error((It(n)||"Unknown")+'.getChildContext(): key "'+T+'" is not defined in childContextTypes.');{var A=It(n)||"Unknown";dr(p,w,"child context",A)}return Zt({},s,w)}}function FS(n){{var a=n.stateNode,s=a&&a.__reactInternalMemoizedMergedChildContext||Uo;return ST=Yu.current,Ei(Yu,s,n),Ei($l,$l.current,n),!0}}function oD(n,a,s){{var f=n.stateNode;if(!f)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=iD(n,a,ST);f.__reactInternalMemoizedMergedChildContext=p,ba($l,n),ba(Yu,n),Ei(Yu,p,n),Ei($l,s,n)}else ba($l,n),Ei($l,s,n)}}function tj(n){{if(!hd(n)||n.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=n;do{switch(a.tag){case x:return a.stateNode.context;case v:{var s=a.type;if(Vl(s))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var of=0,zS=1,qu=null,wT=!1,CT=!1;function sD(n){qu===null?qu=[n]:qu.push(n)}function nj(n){wT=!0,sD(n)}function lD(){wT&&sf()}function sf(){if(!CT&&qu!==null){CT=!0;var n=0,a=ao();try{var s=!0,f=qu;for(aa(Ga);n<f.length;n++){var p=f[n];do p=p(s);while(p!==null)}qu=null,wT=!1}catch(y){throw qu!==null&&(qu=qu.slice(n+1)),Fi(md,sf),y}finally{aa(a),CT=!1}}return null}var em=[],tm=0,BS=null,US=0,Cs=[],_s=0,np=null,Ku=1,Xu="";function rj(n){return ap(),(n.flags&s0)!==kt}function aj(n){return ap(),US}function ij(){var n=Xu,a=Ku,s=a&~oj(a);return s.toString(32)+n}function rp(n,a){ap(),em[tm++]=US,em[tm++]=BS,BS=n,US=a}function uD(n,a,s){ap(),Cs[_s++]=Ku,Cs[_s++]=Xu,Cs[_s++]=np,np=n;var f=Ku,p=Xu,y=jS(f)-1,w=f&~(1<<y),T=s+1,A=jS(a)+y;if(A>30){var F=y-y%5,H=(1<<F)-1,te=(w&H).toString(32),ee=w>>F,he=y-F,ve=jS(a)+he,_e=T<<he,ut=_e|ee,Ct=te+p;Ku=1<<ve|ut,Xu=Ct}else{var yt=T<<y,An=yt|w,Sn=p;Ku=1<<A|An,Xu=Sn}}function _T(n){ap();var a=n.return;if(a!==null){var s=1,f=0;rp(n,s),uD(n,s,f)}}function jS(n){return 32-_0(n)}function oj(n){return 1<<jS(n)-1}function ET(n){for(;n===BS;)BS=em[--tm],em[tm]=null,US=em[--tm],em[tm]=null;for(;n===np;)np=Cs[--_s],Cs[_s]=null,Xu=Cs[--_s],Cs[_s]=null,Ku=Cs[--_s],Cs[_s]=null}function sj(){return ap(),np!==null?{id:Ku,overflow:Xu}:null}function lj(n,a){ap(),Cs[_s++]=Ku,Cs[_s++]=Xu,Cs[_s++]=np,Ku=a.id,Xu=a.overflow,np=n}function ap(){Xa()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ka=null,Es=null,ol=!1,ip=!1,lf=null;function uj(){ol&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function cD(){ip=!0}function cj(){return ip}function fj(n){var a=n.stateNode.containerInfo;return Es=JE(a),Ka=n,ol=!0,lf=null,ip=!1,!0}function dj(n,a,s){return Es=Fg(a),Ka=n,ol=!0,lf=null,ip=!1,s!==null&&lj(n,s),!0}function fD(n,a){switch(n.tag){case x:{lT(n.stateNode.containerInfo,a);break}case _:{var s=(n.mode&yn)!==Rt;cT(n.type,n.memoizedProps,n.stateNode,a,s);break}case j:{var f=n.memoizedState;f.dehydrated!==null&&uT(f.dehydrated,a);break}}}function dD(n,a){fD(n,a);var s=mV();s.stateNode=a,s.return=n;var f=n.deletions;f===null?(n.deletions=[s],n.flags|=Nu):f.push(s)}function TT(n,a){{if(ip)return;switch(n.tag){case x:{var s=n.stateNode.containerInfo;switch(a.tag){case _:var f=a.type;a.pendingProps,fT(s,f);break;case N:var p=a.pendingProps;dT(s,p);break}break}case _:{var y=n.type,w=n.memoizedProps,T=n.stateNode;switch(a.tag){case _:{var A=a.type,F=a.pendingProps,H=(n.mode&yn)!==Rt;mT(y,w,T,A,F,H);break}case N:{var te=a.pendingProps,ee=(n.mode&yn)!==Rt;vT(y,w,T,te,ee);break}}break}case j:{var he=n.memoizedState,ve=he.dehydrated;if(ve!==null)switch(a.tag){case _:var _e=a.type;a.pendingProps,pT(ve,_e);break;case N:var ut=a.pendingProps;hT(ve,ut);break}break}default:return}}}function pD(n,a){a.flags=a.flags&~Zs|zr,TT(n,a)}function hD(n,a){switch(n.tag){case _:{var s=n.type;n.pendingProps;var f=Mg(a,s);return f!==null?(n.stateNode=f,Ka=n,Es=QE(f),!0):!1}case N:{var p=n.pendingProps,y=KE(a,p);return y!==null?(n.stateNode=y,Ka=n,Es=null,!0):!1}case j:{var w=Ig(a);if(w!==null){var T={dehydrated:w,treeContext:sj(),retryLane:Ui};n.memoizedState=T;var A=vV(w);return A.return=n,n.child=A,Ka=n,Es=null,!0}return!1}default:return!1}}function NT(n){return(n.mode&yn)!==Rt&&(n.flags&Ln)===kt}function RT(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function AT(n){if(!!ol){var a=Es;if(!a){NT(n)&&(TT(Ka,n),RT()),pD(Ka,n),ol=!1,Ka=n;return}var s=a;if(!hD(n,a)){NT(n)&&(TT(Ka,n),RT()),a=tp(s);var f=Ka;if(!a||!hD(n,a)){pD(Ka,n),ol=!1,Ka=n;return}dD(f,s)}}}function pj(n,a,s){var f=n.stateNode,p=!ip,y=zg(f,n.type,n.memoizedProps,a,s,n,p);return n.updateQueue=y,y!==null}function hj(n){var a=n.stateNode,s=n.memoizedProps,f=eT(a,s,n);if(f){var p=Ka;if(p!==null)switch(p.tag){case x:{var y=p.stateNode.containerInfo,w=(p.mode&yn)!==Rt;oT(y,a,s,w);break}case _:{var T=p.type,A=p.memoizedProps,F=p.stateNode,H=(p.mode&yn)!==Rt;sT(T,A,F,a,s,H);break}}}return f}function mj(n){var a=n.memoizedState,s=a!==null?a.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");tT(s,n)}function vj(n){var a=n.memoizedState,s=a!==null?a.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return nT(s)}function mD(n){for(var a=n.return;a!==null&&a.tag!==_&&a.tag!==x&&a.tag!==j;)a=a.return;Ka=a}function $S(n){if(n!==Ka)return!1;if(!ol)return mD(n),ol=!0,!1;if(n.tag!==x&&(n.tag!==_||iT(n.type)&&!Tg(n.type,n.memoizedProps))){var a=Es;if(a)if(NT(n))vD(n),RT();else for(;a;)dD(n,a),a=tp(a)}return mD(n),n.tag===j?Es=vj(n):Es=Ka?tp(n.stateNode):null,!0}function gj(){return ol&&Es!==null}function vD(n){for(var a=Es;a;)fD(n,a),a=tp(a)}function nm(){Ka=null,Es=null,ol=!1,ip=!1}function gD(){lf!==null&&(fM(lf),lf=null)}function Xa(){return ol}function OT(n){lf===null?lf=[n]:lf.push(n)}var yj=r.ReactCurrentBatchConfig,bj=null;function Sj(){return yj.transition}var sl={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var xj=function(n){for(var a=null,s=n;s!==null;)s.mode&Pr&&(a=s),s=s.return;return a},op=function(n){var a=[];return n.forEach(function(s){a.push(s)}),a.sort().join(", ")},Bg=[],Ug=[],jg=[],$g=[],Vg=[],Hg=[],sp=new Set;sl.recordUnsafeLifecycleWarnings=function(n,a){sp.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&Bg.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillMount=="function"&&Ug.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&jg.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&$g.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Vg.push(n),n.mode&Pr&&typeof a.UNSAFE_componentWillUpdate=="function"&&Hg.push(n))},sl.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;Bg.length>0&&(Bg.forEach(function(ee){n.add(It(ee)||"Component"),sp.add(ee.type)}),Bg=[]);var a=new Set;Ug.length>0&&(Ug.forEach(function(ee){a.add(It(ee)||"Component"),sp.add(ee.type)}),Ug=[]);var s=new Set;jg.length>0&&(jg.forEach(function(ee){s.add(It(ee)||"Component"),sp.add(ee.type)}),jg=[]);var f=new Set;$g.length>0&&($g.forEach(function(ee){f.add(It(ee)||"Component"),sp.add(ee.type)}),$g=[]);var p=new Set;Vg.length>0&&(Vg.forEach(function(ee){p.add(It(ee)||"Component"),sp.add(ee.type)}),Vg=[]);var y=new Set;if(Hg.length>0&&(Hg.forEach(function(ee){y.add(It(ee)||"Component"),sp.add(ee.type)}),Hg=[]),a.size>0){var w=op(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`,w)}if(f.size>0){var T=op(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`,T)}if(y.size>0){var A=op(y);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`,A)}if(n.size>0){var F=op(n);c(`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`,F)}if(s.size>0){var H=op(s);c(`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(p.size>0){var te=op(p);c(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,te)}};var VS=new Map,yD=new Set;sl.recordLegacyContextWarning=function(n,a){var s=xj(n);if(s===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(!yD.has(n.type)){var f=VS.get(s);(n.type.contextTypes!=null||n.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],VS.set(s,f)),f.push(n))}},sl.flushLegacyContextWarning=function(){VS.forEach(function(n,a){if(n.length!==0){var s=n[0],f=new Set;n.forEach(function(y){f.add(It(y)||"Component"),yD.add(y.type)});var p=op(f);try{er(s),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`,p)}finally{Cr()}}})},sl.discardPendingWarnings=function(){Bg=[],Ug=[],jg=[],$g=[],Vg=[],Hg=[],VS=new Map}}function ll(n,a){if(n&&n.defaultProps){var s=Zt({},a),f=n.defaultProps;for(var p in f)s[p]===void 0&&(s[p]=f[p]);return s}return a}var kT=Ba(null),DT;DT={};var HS=null,rm=null,PT=null,WS=!1;function GS(){HS=null,rm=null,PT=null,WS=!1}function bD(){WS=!0}function SD(){WS=!1}function xD(n,a,s){Ei(kT,a._currentValue,n),a._currentValue=s,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==DT&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=DT}function MT(n,a){var s=kT.current;ba(kT,a),n._currentValue=s}function IT(n,a,s){for(var f=n;f!==null;){var p=f.alternate;if(Fu(f.childLanes,a)?p!==null&&!Fu(p.childLanes,a)&&(p.childLanes=un(p.childLanes,a)):(f.childLanes=un(f.childLanes,a),p!==null&&(p.childLanes=un(p.childLanes,a))),f===s)break;f=f.return}f!==s&&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 wj(n,a,s){Cj(n,a,s)}function Cj(n,a,s){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=void 0,y=f.dependencies;if(y!==null){p=f.child;for(var w=y.firstContext;w!==null;){if(w.context===a){if(f.tag===v){var T=Td(s),A=Zu(Xn,T);A.tag=qS;var F=f.updateQueue;if(F!==null){var H=F.shared,te=H.pending;te===null?A.next=A:(A.next=te.next,te.next=A),H.pending=A}}f.lanes=un(f.lanes,s);var ee=f.alternate;ee!==null&&(ee.lanes=un(ee.lanes,s)),IT(f.return,s,n),y.lanes=un(y.lanes,s);break}w=w.next}}else if(f.tag===M)p=f.type===n.type?null:f.child;else if(f.tag===se){var he=f.return;if(he===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");he.lanes=un(he.lanes,s);var ve=he.alternate;ve!==null&&(ve.lanes=un(ve.lanes,s)),IT(he,s,n),p=f.sibling}else p=f.child;if(p!==null)p.return=f;else for(p=f;p!==null;){if(p===n){p=null;break}var _e=p.sibling;if(_e!==null){_e.return=p.return,p=_e;break}p=p.return}f=p}}function am(n,a){HS=n,rm=null,PT=null;var s=n.dependencies;if(s!==null){var f=s.firstContext;f!==null&&(Si(s.lanes,a)&&ay(),s.firstContext=null)}}function sa(n){WS&&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=n._currentValue;if(PT!==n){var s={context:n,memoizedValue:a,next:null};if(rm===null){if(HS===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().");rm=s,HS.dependencies={lanes:Me,firstContext:s}}else rm=rm.next=s}return a}var lp=null;function LT(n){lp===null?lp=[n]:lp.push(n)}function _j(){if(lp!==null){for(var n=0;n<lp.length;n++){var a=lp[n],s=a.interleaved;if(s!==null){a.interleaved=null;var f=s.next,p=a.pending;if(p!==null){var y=p.next;p.next=f,s.next=y}a.pending=s}}lp=null}}function wD(n,a,s,f){var p=a.interleaved;return p===null?(s.next=s,LT(a)):(s.next=p.next,p.next=s),a.interleaved=s,YS(n,f)}function Ej(n,a,s,f){var p=a.interleaved;p===null?(s.next=s,LT(a)):(s.next=p.next,p.next=s),a.interleaved=s}function Tj(n,a,s,f){var p=a.interleaved;return p===null?(s.next=s,LT(a)):(s.next=p.next,p.next=s),a.interleaved=s,YS(n,f)}function so(n,a){return YS(n,a)}var Nj=YS;function YS(n,a){n.lanes=un(n.lanes,a);var s=n.alternate;s!==null&&(s.lanes=un(s.lanes,a)),s===null&&(n.flags&(zr|Zs))!==kt&&CM(n);for(var f=n,p=n.return;p!==null;)p.childLanes=un(p.childLanes,a),s=p.alternate,s!==null?s.childLanes=un(s.childLanes,a):(p.flags&(zr|Zs))!==kt&&CM(n),f=p,p=p.return;if(f.tag===x){var y=f.stateNode;return y}else return null}var CD=0,_D=1,qS=2,FT=3,KS=!1,zT,XS;zT=!1,XS=null;function BT(n){var a={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Me},effects:null};n.updateQueue=a}function ED(n,a){var s=a.updateQueue,f=n.updateQueue;if(s===f){var p={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=p}}function Zu(n,a){var s={eventTime:n,lane:a,tag:CD,payload:null,callback:null,next:null};return s}function uf(n,a,s){var f=n.updateQueue;if(f===null)return null;var p=f.shared;if(XS===p&&!zT&&(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."),zT=!0),N9()){var y=p.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),p.pending=a,Nj(n,s)}else return Tj(n,p,a,s)}function ZS(n,a,s){var f=a.updateQueue;if(f!==null){var p=f.shared;if(Gv(s)){var y=p.lanes;y=A0(y,n.pendingLanes);var w=un(y,s);p.lanes=w,At(n,w)}}}function UT(n,a){var s=n.updateQueue,f=n.alternate;if(f!==null){var p=f.updateQueue;if(s===p){var y=null,w=null,T=s.firstBaseUpdate;if(T!==null){var A=T;do{var F={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};w===null?y=w=F:(w.next=F,w=F),A=A.next}while(A!==null);w===null?y=w=a:(w.next=a,w=a)}else y=w=a;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},n.updateQueue=s;return}}var H=s.lastBaseUpdate;H===null?s.firstBaseUpdate=a:H.next=a,s.lastBaseUpdate=a}function Rj(n,a,s,f,p,y){switch(s.tag){case _D:{var w=s.payload;if(typeof w=="function"){bD();var T=w.call(y,f,p);{if(n.mode&Pr){na(!0);try{w.call(y,f,p)}finally{na(!1)}}SD()}return T}return w}case FT:n.flags=n.flags&~Va|Ln;case CD:{var A=s.payload,F;if(typeof A=="function"){bD(),F=A.call(y,f,p);{if(n.mode&Pr){na(!0);try{A.call(y,f,p)}finally{na(!1)}}SD()}}else F=A;return F==null?f:Zt({},f,F)}case qS:return KS=!0,f}return f}function QS(n,a,s,f){var p=n.updateQueue;KS=!1,XS=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var A=T,F=A.next;A.next=null,w===null?y=F:w.next=F,w=A;var H=n.alternate;if(H!==null){var te=H.updateQueue,ee=te.lastBaseUpdate;ee!==w&&(ee===null?te.firstBaseUpdate=F:ee.next=F,te.lastBaseUpdate=A)}}if(y!==null){var he=p.baseState,ve=Me,_e=null,ut=null,Ct=null,yt=y;do{var An=yt.lane,Sn=yt.eventTime;if(Fu(f,An)){if(Ct!==null){var Ee={eventTime:Sn,lane:Yr,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct=Ct.next=Ee}he=Rj(n,p,yt,he,a,s);var ue=yt.callback;if(ue!==null&&yt.lane!==Yr){n.flags|=xv;var He=p.effects;He===null?p.effects=[yt]:He.push(yt)}}else{var le={eventTime:Sn,lane:An,tag:yt.tag,payload:yt.payload,callback:yt.callback,next:null};Ct===null?(ut=Ct=le,_e=he):Ct=Ct.next=le,ve=un(ve,An)}if(yt=yt.next,yt===null){if(T=p.shared.pending,T===null)break;var ct=T,ot=ct.next;ct.next=null,yt=ot,p.lastBaseUpdate=ct,p.shared.pending=null}}while(!0);Ct===null&&(_e=he),p.baseState=_e,p.firstBaseUpdate=ut,p.lastBaseUpdate=Ct;var Ft=p.shared.interleaved;if(Ft!==null){var Qt=Ft;do ve=un(ve,Qt.lane),Qt=Qt.next;while(Qt!==Ft)}else y===null&&(p.shared.lanes=Me);vy(ve),n.lanes=ve,n.memoizedState=he}XS=null}function Aj(n,a){if(typeof n!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+n));n.call(a)}function TD(){KS=!1}function JS(){return KS}function ND(n,a,s){var f=a.effects;if(a.effects=null,f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.callback;w!==null&&(y.callback=null,Aj(w,s))}}var jT={},RD=new e.Component().refs,$T,VT,HT,WT,GT,AD,e1,YT,qT,KT;{$T=new Set,VT=new Set,HT=new Set,WT=new Set,YT=new Set,GT=new Set,qT=new Set,KT=new Set;var OD=new Set;e1=function(n,a){if(!(n===null||typeof n=="function")){var s=a+"_"+n;OD.has(s)||(OD.add(s),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n))}},AD=function(n,a){if(a===void 0){var s=on(n)||"Component";GT.has(s)||(GT.add(s),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(jT,"_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(jT)}function XT(n,a,s,f){var p=n.memoizedState,y=s(f,p);{if(n.mode&Pr){na(!0);try{y=s(f,p)}finally{na(!1)}}AD(a,y)}var w=y==null?p:Zt({},p,y);if(n.memoizedState=w,n.lanes===Me){var T=n.updateQueue;T.baseState=w}}var ZT={isMounted:ph,enqueueSetState:function(n,a,s){var f=Ks(n),p=Hi(),y=gf(f),w=Zu(p,y);w.payload=a,s!=null&&(e1(s,"setState"),w.callback=s);var T=uf(f,w,y);T!==null&&(Na(T,f,y,p),ZS(T,f,y)),Fv(f,y)},enqueueReplaceState:function(n,a,s){var f=Ks(n),p=Hi(),y=gf(f),w=Zu(p,y);w.tag=_D,w.payload=a,s!=null&&(e1(s,"replaceState"),w.callback=s);var T=uf(f,w,y);T!==null&&(Na(T,f,y,p),ZS(T,f,y)),Fv(f,y)},enqueueForceUpdate:function(n,a){var s=Ks(n),f=Hi(),p=gf(s),y=Zu(f,p);y.tag=qS,a!=null&&(e1(a,"forceUpdate"),y.callback=a);var w=uf(s,y,p);w!==null&&(Na(w,s,p,f),ZS(w,s,p)),C0(s,p)}};function kD(n,a,s,f,p,y,w){var T=n.stateNode;if(typeof T.shouldComponentUpdate=="function"){var A=T.shouldComponentUpdate(f,y,w);{if(n.mode&Pr){na(!0);try{A=T.shouldComponentUpdate(f,y,w)}finally{na(!1)}}A===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",on(a)||"Component")}return A}return a.prototype&&a.prototype.isPureReactComponent?!Qc(s,f)||!Qc(p,y):!0}function Oj(n,a,s){var f=n.stateNode;{var p=on(a)||"Component",y=f.render;y||(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?",p):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),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?",p),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.",p),f.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),f.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),f.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),a.contextType&&a.contextTypes&&!qT.has(a)&&(qT.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),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.",p),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.",on(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()?",p),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().",p),typeof f.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof f.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var w=f.props!==s;f.props!==void 0&&w&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),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.",p,p),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!HT.has(a)&&(HT.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",on(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.",p),typeof f.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var T=f.state;T&&(typeof T!="object"||Dt(T))&&u("%s.state: must be set to an object or null",p),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function DD(n,a){a.updater=ZT,n.stateNode=a,_n(a,n),a._reactInternalInstance=jT}function PD(n,a,s){var f=!1,p=Uo,y=Uo,w=a.contextType;if("contextType"in a){var T=w===null||w!==void 0&&w.$$typeof===gn&&w._context===void 0;if(!T&&!KT.has(a)){KT.add(a);var A="";w===void 0?A=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof w!="object"?A=" However, it is set to a "+typeof w+".":w.$$typeof===nn?A=" Did you accidentally pass the Context.Provider instead?":w._context!==void 0?A=" Did you accidentally pass the Context.Consumer instead?":A=" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",on(a)||"Component",A)}}if(typeof w=="object"&&w!==null)y=sa(w);else{p=Qh(n,a,!0);var F=a.contextTypes;f=F!=null,y=f?Jh(n,p):Uo}var H=new a(s,y);if(n.mode&Pr){na(!0);try{H=new a(s,y)}finally{na(!1)}}var te=n.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;DD(n,H);{if(typeof a.getDerivedStateFromProps=="function"&&te===null){var ee=on(a)||"Component";VT.has(ee)||(VT.add(ee),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.",ee,H.state===null?"null":"undefined",ee))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var he=null,ve=null,_e=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?he="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(he="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ve="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(ve="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?_e="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(_e="UNSAFE_componentWillUpdate"),he!==null||ve!==null||_e!==null){var ut=on(a)||"Component",Ct=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";WT.has(ut)||(WT.add(ut),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`,ut,Ct,he!==null?`
`+he:"",ve!==null?`
`+ve:"",_e!==null?`
`+_e:""))}}}return f&&rD(n,p,y),H}function kj(n,a){var s=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",It(n)||"Component"),ZT.enqueueReplaceState(a,a.state,null))}function MD(n,a,s,f){var p=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,f),a.state!==p){{var y=It(n)||"Component";$T.has(y)||($T.add(y),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}ZT.enqueueReplaceState(a,a.state,null)}}function QT(n,a,s,f){Oj(n,a,s);var p=n.stateNode;p.props=s,p.state=n.memoizedState,p.refs=RD,BT(n);var y=a.contextType;if(typeof y=="object"&&y!==null)p.context=sa(y);else{var w=Qh(n,a,!0);p.context=Jh(n,w)}{if(p.state===s){var T=on(a)||"Component";YT.has(T)||(YT.add(T),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.",T))}n.mode&Pr&&sl.recordLegacyContextWarning(n,p),sl.recordUnsafeLifecycleWarnings(n,p)}p.state=n.memoizedState;var A=a.getDerivedStateFromProps;if(typeof A=="function"&&(XT(n,a,A,s),p.state=n.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(kj(n,p),QS(n,s,p,f),p.state=n.memoizedState),typeof p.componentDidMount=="function"){var F=ln;F|=Ou,(n.mode&ro)!==Rt&&(F|=Gr),n.flags|=F}}function Dj(n,a,s,f){var p=n.stateNode,y=n.memoizedProps;p.props=y;var w=p.context,T=a.contextType,A=Uo;if(typeof T=="object"&&T!==null)A=sa(T);else{var F=Qh(n,a,!0);A=Jh(n,F)}var H=a.getDerivedStateFromProps,te=typeof H=="function"||typeof p.getSnapshotBeforeUpdate=="function";!te&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(y!==s||w!==A)&&MD(n,p,s,A),TD();var ee=n.memoizedState,he=p.state=ee;if(QS(n,s,p,f),he=n.memoizedState,y===s&&ee===he&&!IS()&&!JS()){if(typeof p.componentDidMount=="function"){var ve=ln;ve|=Ou,(n.mode&ro)!==Rt&&(ve|=Gr),n.flags|=ve}return!1}typeof H=="function"&&(XT(n,a,H,s),he=n.memoizedState);var _e=JS()||kD(n,a,y,s,ee,he,A);if(_e){if(!te&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var ut=ln;ut|=Ou,(n.mode&ro)!==Rt&&(ut|=Gr),n.flags|=ut}}else{if(typeof p.componentDidMount=="function"){var Ct=ln;Ct|=Ou,(n.mode&ro)!==Rt&&(Ct|=Gr),n.flags|=Ct}n.memoizedProps=s,n.memoizedState=he}return p.props=s,p.state=he,p.context=A,_e}function Pj(n,a,s,f,p){var y=a.stateNode;ED(n,a);var w=a.memoizedProps,T=a.type===a.elementType?w:ll(a.type,w);y.props=T;var A=a.pendingProps,F=y.context,H=s.contextType,te=Uo;if(typeof H=="object"&&H!==null)te=sa(H);else{var ee=Qh(a,s,!0);te=Jh(a,ee)}var he=s.getDerivedStateFromProps,ve=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function";!ve&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(w!==A||F!==te)&&MD(a,y,f,te),TD();var _e=a.memoizedState,ut=y.state=_e;if(QS(a,f,y,p),ut=a.memoizedState,w===A&&_e===ut&&!IS()&&!JS()&&!Te)return typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Ru),!1;typeof he=="function"&&(XT(a,s,he,f),ut=a.memoizedState);var Ct=JS()||kD(a,s,T,f,_e,ut,te)||Te;return Ct?(!ve&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(f,ut,te),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(f,ut,te)),typeof y.componentDidUpdate=="function"&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=Ru)):(typeof y.componentDidUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=ln),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==n.memoizedProps||_e!==n.memoizedState)&&(a.flags|=Ru),a.memoizedProps=f,a.memoizedState=ut),y.props=f,y.state=ut,y.context=te,Ct}var JT,eN,tN,nN,rN,ID=function(n,a){};JT=!1,eN=!1,tN={},nN={},rN={},ID=function(n,a){if(!(n===null||typeof n!="object")&&!(!n._store||n._store.validated||n.key!=null)){if(typeof n._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.");n._store.validated=!0;var s=It(a)||"Component";nN[s]||(nN[s]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Wg(n,a,s){var f=s.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((n.mode&Pr||Ye)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)){var p=It(n)||"Component";tN[p]||(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),tN[p]=!0)}if(s._owner){var y=s._owner,w;if(y){var T=y;if(T.tag!==v)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");w=T.stateNode}if(!w)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var A=w;Bt(f,"ref");var F=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===F)return a.ref;var H=function(te){var ee=A.refs;ee===RD&&(ee=A.refs={}),te===null?delete ee[F]:ee[F]=te};return H._stringRef=F,H}else{if(typeof f!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+f+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return f}function t1(n,a){var s=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function n1(n){{var a=It(n)||"Component";if(rN[a])return;rN[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 LD(n){var a=n._payload,s=n._init;return s(a)}function FD(n){function a(le,Ee){if(!!n){var ue=le.deletions;ue===null?(le.deletions=[Ee],le.flags|=Nu):ue.push(Ee)}}function s(le,Ee){if(!n)return null;for(var ue=Ee;ue!==null;)a(le,ue),ue=ue.sibling;return null}function f(le,Ee){for(var ue=new Map,He=Ee;He!==null;)He.key!==null?ue.set(He.key,He):ue.set(He.index,He),He=He.sibling;return ue}function p(le,Ee){var ue=vp(le,Ee);return ue.index=0,ue.sibling=null,ue}function y(le,Ee,ue){if(le.index=ue,!n)return le.flags|=s0,Ee;var He=le.alternate;if(He!==null){var ct=He.index;return ct<Ee?(le.flags|=zr,Ee):ct}else return le.flags|=zr,Ee}function w(le){return n&&le.alternate===null&&(le.flags|=zr),le}function T(le,Ee,ue,He){if(Ee===null||Ee.tag!==N){var ct=OR(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue);return ot.return=le,ot}}function A(le,Ee,ue,He){var ct=ue.type;if(ct===Be)return H(le,Ee,ue.props.children,He,ue.key);if(Ee!==null&&(Ee.elementType===ct||NM(Ee,ue)||typeof ct=="object"&&ct!==null&&ct.$$typeof===an&&LD(ct)===Ee.type)){var ot=p(Ee,ue.props);return ot.ref=Wg(le,Ee,ue),ot.return=le,ot._debugSource=ue._source,ot._debugOwner=ue._owner,ot}var Ft=AR(ue,le.mode,He);return Ft.ref=Wg(le,Ee,ue),Ft.return=le,Ft}function F(le,Ee,ue,He){if(Ee===null||Ee.tag!==C||Ee.stateNode.containerInfo!==ue.containerInfo||Ee.stateNode.implementation!==ue.implementation){var ct=kR(ue,le.mode,He);return ct.return=le,ct}else{var ot=p(Ee,ue.children||[]);return ot.return=le,ot}}function H(le,Ee,ue,He,ct){if(Ee===null||Ee.tag!==O){var ot=bf(ue,le.mode,He,ct);return ot.return=le,ot}else{var Ft=p(Ee,ue);return Ft.return=le,Ft}}function te(le,Ee,ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"){var He=OR(""+Ee,le.mode,ue);return He.return=le,He}if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ka:{var ct=AR(Ee,le.mode,ue);return ct.ref=Wg(le,null,Ee),ct.return=le,ct}case q:{var ot=kR(Ee,le.mode,ue);return ot.return=le,ot}case an:{var Ft=Ee._payload,Qt=Ee._init;return te(le,Qt(Ft),ue)}}if(Dt(Ee)||Pi(Ee)){var nr=bf(Ee,le.mode,ue,null);return nr.return=le,nr}t1(le,Ee)}return typeof Ee=="function"&&n1(le),null}function ee(le,Ee,ue,He){var ct=Ee!==null?Ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ct!==null?null:T(le,Ee,""+ue,He);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return ue.key===ct?A(le,Ee,ue,He):null;case q:return ue.key===ct?F(le,Ee,ue,He):null;case an:{var ot=ue._payload,Ft=ue._init;return ee(le,Ee,Ft(ot),He)}}if(Dt(ue)||Pi(ue))return ct!==null?null:H(le,Ee,ue,He,null);t1(le,ue)}return typeof ue=="function"&&n1(le),null}function he(le,Ee,ue,He,ct){if(typeof He=="string"&&He!==""||typeof He=="number"){var ot=le.get(ue)||null;return T(Ee,ot,""+He,ct)}if(typeof He=="object"&&He!==null){switch(He.$$typeof){case ka:{var Ft=le.get(He.key===null?ue:He.key)||null;return A(Ee,Ft,He,ct)}case q:{var Qt=le.get(He.key===null?ue:He.key)||null;return F(Ee,Qt,He,ct)}case an:var nr=He._payload,jn=He._init;return he(le,Ee,ue,jn(nr),ct)}if(Dt(He)||Pi(He)){var Xr=le.get(ue)||null;return H(Ee,Xr,He,ct,null)}t1(Ee,He)}return typeof He=="function"&&n1(Ee),null}function ve(le,Ee,ue){{if(typeof le!="object"||le===null)return Ee;switch(le.$$typeof){case ka:case q:ID(le,ue);var He=le.key;if(typeof He!="string")break;if(Ee===null){Ee=new Set,Ee.add(He);break}if(!Ee.has(He)){Ee.add(He);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.",He);break;case an:var ct=le._payload,ot=le._init;ve(ot(ct),Ee,ue);break}}return Ee}function _e(le,Ee,ue,He){for(var ct=null,ot=0;ot<ue.length;ot++){var Ft=ue[ot];ct=ve(Ft,ct,le)}for(var Qt=null,nr=null,jn=Ee,Xr=0,$n=0,Ur=null;jn!==null&&$n<ue.length;$n++){jn.index>$n?(Ur=jn,jn=null):Ur=jn.sibling;var Ni=ee(le,jn,ue[$n],He);if(Ni===null){jn===null&&(jn=Ur);break}n&&jn&&Ni.alternate===null&&a(le,jn),Xr=y(Ni,Xr,$n),nr===null?Qt=Ni:nr.sibling=Ni,nr=Ni,jn=Ur}if($n===ue.length){if(s(le,jn),Xa()){var ri=$n;rp(le,ri)}return Qt}if(jn===null){for(;$n<ue.length;$n++){var $o=te(le,ue[$n],He);$o!==null&&(Xr=y($o,Xr,$n),nr===null?Qt=$o:nr.sibling=$o,nr=$o)}if(Xa()){var Wi=$n;rp(le,Wi)}return Qt}for(var Gi=f(le,jn);$n<ue.length;$n++){var Ri=he(Gi,le,$n,ue[$n],He);Ri!==null&&(n&&Ri.alternate!==null&&Gi.delete(Ri.key===null?$n:Ri.key),Xr=y(Ri,Xr,$n),nr===null?Qt=Ri:nr.sibling=Ri,nr=Ri)}if(n&&Gi.forEach(function(xm){return a(le,xm)}),Xa()){var rc=$n;rp(le,rc)}return Qt}function ut(le,Ee,ue,He){var ct=Pi(ue);if(typeof ct!="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"&&ue[Symbol.toStringTag]==="Generator"&&(eN||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."),eN=!0),ue.entries===ct&&(JT||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),JT=!0);var ot=ct.call(ue);if(ot)for(var Ft=null,Qt=ot.next();!Qt.done;Qt=ot.next()){var nr=Qt.value;Ft=ve(nr,Ft,le)}}var jn=ct.call(ue);if(jn==null)throw new Error("An iterable object provided no iterator.");for(var Xr=null,$n=null,Ur=Ee,Ni=0,ri=0,$o=null,Wi=jn.next();Ur!==null&&!Wi.done;ri++,Wi=jn.next()){Ur.index>ri?($o=Ur,Ur=null):$o=Ur.sibling;var Gi=ee(le,Ur,Wi.value,He);if(Gi===null){Ur===null&&(Ur=$o);break}n&&Ur&&Gi.alternate===null&&a(le,Ur),Ni=y(Gi,Ni,ri),$n===null?Xr=Gi:$n.sibling=Gi,$n=Gi,Ur=$o}if(Wi.done){if(s(le,Ur),Xa()){var Ri=ri;rp(le,Ri)}return Xr}if(Ur===null){for(;!Wi.done;ri++,Wi=jn.next()){var rc=te(le,Wi.value,He);rc!==null&&(Ni=y(rc,Ni,ri),$n===null?Xr=rc:$n.sibling=rc,$n=rc)}if(Xa()){var xm=ri;rp(le,xm)}return Xr}for(var xy=f(le,Ur);!Wi.done;ri++,Wi=jn.next()){var Zl=he(xy,le,ri,Wi.value,He);Zl!==null&&(n&&Zl.alternate!==null&&xy.delete(Zl.key===null?ri:Zl.key),Ni=y(Zl,Ni,ri),$n===null?Xr=Zl:$n.sibling=Zl,$n=Zl)}if(n&&xy.forEach(function(YV){return a(le,YV)}),Xa()){var GV=ri;rp(le,GV)}return Xr}function Ct(le,Ee,ue,He){if(Ee!==null&&Ee.tag===N){s(le,Ee.sibling);var ct=p(Ee,ue);return ct.return=le,ct}s(le,Ee);var ot=OR(ue,le.mode,He);return ot.return=le,ot}function yt(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct){var Ft=ue.type;if(Ft===Be){if(ot.tag===O){s(le,ot.sibling);var Qt=p(ot,ue.props.children);return Qt.return=le,Qt._debugSource=ue._source,Qt._debugOwner=ue._owner,Qt}}else if(ot.elementType===Ft||NM(ot,ue)||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===an&&LD(Ft)===ot.type){s(le,ot.sibling);var nr=p(ot,ue.props);return nr.ref=Wg(le,ot,ue),nr.return=le,nr._debugSource=ue._source,nr._debugOwner=ue._owner,nr}s(le,ot);break}else a(le,ot);ot=ot.sibling}if(ue.type===Be){var jn=bf(ue.props.children,le.mode,He,ue.key);return jn.return=le,jn}else{var Xr=AR(ue,le.mode,He);return Xr.ref=Wg(le,Ee,ue),Xr.return=le,Xr}}function An(le,Ee,ue,He){for(var ct=ue.key,ot=Ee;ot!==null;){if(ot.key===ct)if(ot.tag===C&&ot.stateNode.containerInfo===ue.containerInfo&&ot.stateNode.implementation===ue.implementation){s(le,ot.sibling);var Ft=p(ot,ue.children||[]);return Ft.return=le,Ft}else{s(le,ot);break}else a(le,ot);ot=ot.sibling}var Qt=kR(ue,le.mode,He);return Qt.return=le,Qt}function Sn(le,Ee,ue,He){var ct=typeof ue=="object"&&ue!==null&&ue.type===Be&&ue.key===null;if(ct&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case ka:return w(yt(le,Ee,ue,He));case q:return w(An(le,Ee,ue,He));case an:var ot=ue._payload,Ft=ue._init;return Sn(le,Ee,Ft(ot),He)}if(Dt(ue))return _e(le,Ee,ue,He);if(Pi(ue))return ut(le,Ee,ue,He);t1(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?w(Ct(le,Ee,""+ue,He)):(typeof ue=="function"&&n1(le),s(le,Ee))}return Sn}var im=FD(!0),zD=FD(!1);function Mj(n,a){if(n!==null&&a.child!==n.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var s=a.child,f=vp(s,s.pendingProps);for(a.child=f,f.return=a;s.sibling!==null;)s=s.sibling,f=f.sibling=vp(s,s.pendingProps),f.return=a;f.sibling=null}}function Ij(n,a){for(var s=n.child;s!==null;)cV(s,a),s=s.sibling}var Gg={},cf=Ba(Gg),Yg=Ba(Gg),r1=Ba(Gg);function a1(n){if(n===Gg)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return n}function BD(){var n=a1(r1.current);return n}function aN(n,a){Ei(r1,a,n),Ei(Yg,n,n),Ei(cf,Gg,n);var s=TE(a);ba(cf,n),Ei(cf,s,n)}function om(n){ba(cf,n),ba(Yg,n),ba(r1,n)}function iN(){var n=a1(cf.current);return n}function UD(n){a1(r1.current);var a=a1(cf.current),s=NE(a,n.type);a!==s&&(Ei(Yg,n,n),Ei(cf,s,n))}function oN(n){Yg.current===n&&(ba(cf,n),ba(Yg,n))}var Lj=0,jD=1,$D=1,qg=2,ul=Ba(Lj);function sN(n,a){return(n&a)!==0}function sm(n){return n&jD}function lN(n,a){return n&jD|a}function Fj(n,a){return n|a}function ff(n,a){Ei(ul,a,n)}function lm(n){ba(ul,n)}function zj(n,a){var s=n.memoizedState;return s!==null?s.dehydrated!==null:(n.memoizedProps,!0)}function i1(n){for(var a=n;a!==null;){if(a.tag===j){var s=a.memoizedState;if(s!==null){var f=s.dehydrated;if(f===null||PS(f)||Lg(f))return a}}else if(a.tag===be&&a.memoizedProps.revealOrder!==void 0){var p=(a.flags&Ln)!==kt;if(p)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)return null;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var lo=0,Sa=1,Hl=2,xa=4,Za=8,uN=[];function cN(){for(var n=0;n<uN.length;n++){var a=uN[n];a._workInProgressVersionPrimary=null}uN.length=0}function Bj(n,a){var s=a._getVersion,f=s(a._source);n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[a,f]:n.mutableSourceEagerHydrationData.push(a,f)}var lt=r.ReactCurrentDispatcher,Kg=r.ReactCurrentBatchConfig,fN,um;fN=new Set;var up=Me,tr=null,wa=null,Ca=null,o1=!1,Xg=!1,Zg=0,Uj=0,jj=25,Oe=null,Ts=null,df=-1,dN=!1;function Yn(){{var n=Oe;Ts===null?Ts=[n]:Ts.push(n)}}function Je(){{var n=Oe;Ts!==null&&(df++,Ts[df]!==n&&$j(n))}}function cm(n){n!=null&&!Dt(n)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Oe,typeof n)}function $j(n){{var a=It(tr);if(!fN.has(a)&&(fN.add(a),Ts!==null)){for(var s="",f=30,p=0;p<=df;p++){for(var y=Ts[p],w=p===df?n:y,T=p+1+". "+y;T.length<f;)T+=" ";T+=w+`
`,s+=T}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,s)}}}function Ti(){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 pN(n,a){if(dN)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.",Oe),!1;n.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`,Oe,"["+a.join(", ")+"]","["+n.join(", ")+"]");for(var s=0;s<a.length&&s<n.length;s++)if(!Ya(n[s],a[s]))return!1;return!0}function fm(n,a,s,f,p,y){up=y,tr=a,Ts=n!==null?n._debugHookTypes:null,df=-1,dN=n!==null&&n.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Me,n!==null&&n.memoizedState!==null?lt.current=cP:Ts!==null?lt.current=uP:lt.current=lP;var w=s(f,p);if(Xg){var T=0;do{if(Xg=!1,Zg=0,T>=jj)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");T+=1,dN=!1,wa=null,Ca=null,a.updateQueue=null,df=-1,lt.current=fP,w=s(f,p)}while(Xg)}lt.current=b1,a._debugHookTypes=Ts;var A=wa!==null&&wa.next!==null;if(up=Me,tr=null,wa=null,Ca=null,Oe=null,Ts=null,df=-1,n!==null&&(n.flags&fs)!==(a.flags&fs)&&(n.mode&yn)!==Rt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),o1=!1,A)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function dm(){var n=Zg!==0;return Zg=0,n}function VD(n,a,s){a.updateQueue=n.updateQueue,(a.mode&ro)!==Rt?a.flags&=~(fh|Gr|Fo|ln):a.flags&=~(Fo|ln),n.lanes=Nd(n.lanes,s)}function HD(){if(lt.current=b1,o1){for(var n=tr.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}o1=!1}up=Me,tr=null,wa=null,Ca=null,Ts=null,df=-1,Oe=null,rP=!1,Xg=!1,Zg=0}function Wl(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ca===null?tr.memoizedState=Ca=n:Ca=Ca.next=n,Ca}function Ns(){var n;if(wa===null){var a=tr.alternate;a!==null?n=a.memoizedState:n=null}else n=wa.next;var s;if(Ca===null?s=tr.memoizedState:s=Ca.next,s!==null)Ca=s,s=Ca.next,wa=n;else{if(n===null)throw new Error("Rendered more hooks than during the previous render.");wa=n;var f={memoizedState:wa.memoizedState,baseState:wa.baseState,baseQueue:wa.baseQueue,queue:wa.queue,next:null};Ca===null?tr.memoizedState=Ca=f:Ca=Ca.next=f}return Ca}function WD(){return{lastEffect:null,stores:null}}function hN(n,a){return typeof a=="function"?a(n):a}function mN(n,a,s){var f=Wl(),p;s!==void 0?p=s(a):p=a,f.memoizedState=f.baseState=p;var y={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:n,lastRenderedState:p};f.queue=y;var w=y.dispatch=Gj.bind(null,tr,y);return[f.memoizedState,w]}function vN(n,a,s){var f=Ns(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=wa,w=y.baseQueue,T=p.pending;if(T!==null){if(w!==null){var A=w.next,F=T.next;w.next=F,T.next=A}y.baseQueue!==w&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=T,p.pending=null}if(w!==null){var H=w.next,te=y.baseState,ee=null,he=null,ve=null,_e=H;do{var ut=_e.lane;if(Fu(up,ut)){if(ve!==null){var yt={lane:Yr,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ve=ve.next=yt}if(_e.hasEagerState)te=_e.eagerState;else{var An=_e.action;te=n(te,An)}}else{var Ct={lane:ut,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ve===null?(he=ve=Ct,ee=te):ve=ve.next=Ct,tr.lanes=un(tr.lanes,ut),vy(ut)}_e=_e.next}while(_e!==null&&_e!==H);ve===null?ee=te:ve.next=he,Ya(te,f.memoizedState)||ay(),f.memoizedState=te,f.baseState=ee,f.baseQueue=ve,p.lastRenderedState=te}var Sn=p.interleaved;if(Sn!==null){var le=Sn;do{var Ee=le.lane;tr.lanes=un(tr.lanes,Ee),vy(Ee),le=le.next}while(le!==Sn)}else w===null&&(p.lanes=Me);var ue=p.dispatch;return[f.memoizedState,ue]}function gN(n,a,s){var f=Ns(),p=f.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=n;var y=p.dispatch,w=p.pending,T=f.memoizedState;if(w!==null){p.pending=null;var A=w.next,F=A;do{var H=F.action;T=n(T,H),F=F.next}while(F!==A);Ya(T,f.memoizedState)||ay(),f.memoizedState=T,f.baseQueue===null&&(f.baseState=T),p.lastRenderedState=T}return[T,y]}function Sme(n,a,s){}function xme(n,a,s){}function yN(n,a,s){var f=tr,p=Wl(),y,w=Xa();if(w){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=s(),um||y!==s()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),um=!0)}else{if(y=a(),!um){var T=a();Ya(y,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),um=!0)}var A=F1();if(A===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Lu(A,up)||GD(f,a,y)}p.memoizedState=y;var F={value:y,getSnapshot:a};return p.queue=F,f1(qD.bind(null,f,F,n),[n]),f.flags|=Fo,Qg(Sa|Za,YD.bind(null,f,F,y,a),void 0,null),y}function s1(n,a,s){var f=tr,p=Ns(),y=a();if(!um){var w=a();Ya(y,w)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),um=!0)}var T=p.memoizedState,A=!Ya(T,y);A&&(p.memoizedState=y,ay());var F=p.queue;if(ey(qD.bind(null,f,F,n),[n]),F.getSnapshot!==a||A||Ca!==null&&Ca.memoizedState.tag&Sa){f.flags|=Fo,Qg(Sa|Za,YD.bind(null,f,F,y,a),void 0,null);var H=F1();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Lu(H,up)||GD(f,a,y)}return y}function GD(n,a,s){n.flags|=ch;var f={getSnapshot:a,value:s},p=tr.updateQueue;if(p===null)p=WD(),tr.updateQueue=p,p.stores=[f];else{var y=p.stores;y===null?p.stores=[f]:y.push(f)}}function YD(n,a,s,f){a.value=s,a.getSnapshot=f,KD(a)&&XD(n)}function qD(n,a,s){var f=function(){KD(a)&&XD(n)};return s(f)}function KD(n){var a=n.getSnapshot,s=n.value;try{var f=a();return!Ya(s,f)}catch{return!0}}function XD(n){var a=so(n,Ut);a!==null&&Na(a,n,Ut,Xn)}function l1(n){var a=Wl();typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n;var s={pending:null,interleaved:null,lanes:Me,dispatch:null,lastRenderedReducer:hN,lastRenderedState:n};a.queue=s;var f=s.dispatch=Yj.bind(null,tr,s);return[a.memoizedState,f]}function bN(n){return vN(hN)}function SN(n){return gN(hN)}function Qg(n,a,s,f){var p={tag:n,create:a,destroy:s,deps:f,next:null},y=tr.updateQueue;if(y===null)y=WD(),tr.updateQueue=y,y.lastEffect=p.next=p;else{var w=y.lastEffect;if(w===null)y.lastEffect=p.next=p;else{var T=w.next;w.next=p,p.next=T,y.lastEffect=p}}return p}function xN(n){var a=Wl();{var s={current:n};return a.memoizedState=s,s}}function u1(n){var a=Ns();return a.memoizedState}function Jg(n,a,s,f){var p=Wl(),y=f===void 0?null:f;tr.flags|=n,p.memoizedState=Qg(Sa|a,s,void 0,y)}function c1(n,a,s,f){var p=Ns(),y=f===void 0?null:f,w=void 0;if(wa!==null){var T=wa.memoizedState;if(w=T.destroy,y!==null){var A=T.deps;if(pN(y,A)){p.memoizedState=Qg(a,s,w,y);return}}}tr.flags|=n,p.memoizedState=Qg(Sa|a,s,w,y)}function f1(n,a){return(tr.mode&ro)!==Rt?Jg(fh|Fo|Cv,Za,n,a):Jg(Fo|Cv,Za,n,a)}function ey(n,a){return c1(Fo,Za,n,a)}function wN(n,a){return Jg(ln,Hl,n,a)}function d1(n,a){return c1(ln,Hl,n,a)}function CN(n,a){var s=ln;return s|=Ou,(tr.mode&ro)!==Rt&&(s|=Gr),Jg(s,xa,n,a)}function p1(n,a){return c1(ln,xa,n,a)}function ZD(n,a){if(typeof a=="function"){var s=a,f=n();return s(f),function(){s(null)}}else if(a!=null){var p=a;p.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(p).join(", ")+"}");var y=n();return p.current=y,function(){p.current=null}}}function _N(n,a,s){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=s!=null?s.concat([n]):null,p=ln;return p|=Ou,(tr.mode&ro)!==Rt&&(p|=Gr),Jg(p,xa,ZD.bind(null,a,n),f)}function h1(n,a,s){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=s!=null?s.concat([n]):null;return c1(ln,xa,ZD.bind(null,a,n),f)}function Vj(n,a){}var m1=Vj;function EN(n,a){var s=Wl(),f=a===void 0?null:a;return s.memoizedState=[n,f],n}function v1(n,a){var s=Ns(),f=a===void 0?null:a,p=s.memoizedState;if(p!==null&&f!==null){var y=p[1];if(pN(f,y))return p[0]}return s.memoizedState=[n,f],n}function TN(n,a){var s=Wl(),f=a===void 0?null:a,p=n();return s.memoizedState=[p,f],p}function g1(n,a){var s=Ns(),f=a===void 0?null:a,p=s.memoizedState;if(p!==null&&f!==null){var y=p[1];if(pN(f,y))return p[0]}var w=n();return s.memoizedState=[w,f],w}function NN(n){var a=Wl();return a.memoizedState=n,n}function QD(n){var a=Ns(),s=wa,f=s.memoizedState;return eP(a,f,n)}function JD(n){var a=Ns();if(wa===null)return a.memoizedState=n,n;var s=wa.memoizedState;return eP(a,s,n)}function eP(n,a,s){var f=!Eh(up);if(f){if(!Ya(s,a)){var p=Ed();tr.lanes=un(tr.lanes,p),vy(p),n.baseState=!0}return a}else return n.baseState&&(n.baseState=!1,ay()),n.memoizedState=s,s}function Hj(n,a,s){var f=ao();aa(YC(f,gs)),n(!0);var p=Kg.transition;Kg.transition={};var y=Kg.transition;Kg.transition._updatedFibers=new Set;try{n(!1),a()}finally{if(aa(f),Kg.transition=p,p===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),y._updatedFibers.clear()}}}function RN(){var n=l1(!1),a=n[0],s=n[1],f=Hj.bind(null,s),p=Wl();return p.memoizedState=f,[a,f]}function tP(){var n=bN(),a=n[0],s=Ns(),f=s.memoizedState;return[a,f]}function nP(){var n=SN(),a=n[0],s=Ns(),f=s.memoizedState;return[a,f]}var rP=!1;function Wj(){return rP}function AN(){var n=Wl(),a=F1(),s=a.identifierPrefix,f;if(Xa()){var p=ij();f=":"+s+"R"+p;var y=Zg++;y>0&&(f+="H"+y.toString(32)),f+=":"}else{var w=Uj++;f=":"+s+"r"+w.toString(32)+":"}return n.memoizedState=f,f}function y1(){var n=Ns(),a=n.memoizedState;return a}function Gj(n,a,s){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=gf(n),p={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(aP(n))iP(a,p);else{var y=wD(n,a,p,f);if(y!==null){var w=Hi();Na(y,n,f,w),oP(y,a,f)}}sP(n,f)}function Yj(n,a,s){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=gf(n),p={lane:f,action:s,hasEagerState:!1,eagerState:null,next:null};if(aP(n))iP(a,p);else{var y=n.alternate;if(n.lanes===Me&&(y===null||y.lanes===Me)){var w=a.lastRenderedReducer;if(w!==null){var T;T=lt.current,lt.current=cl;try{var A=a.lastRenderedState,F=w(A,s);if(p.hasEagerState=!0,p.eagerState=F,Ya(F,A)){Ej(n,a,p,f);return}}catch{}finally{lt.current=T}}}var H=wD(n,a,p,f);if(H!==null){var te=Hi();Na(H,n,f,te),oP(H,a,f)}}sP(n,f)}function aP(n){var a=n.alternate;return n===tr||a!==null&&a===tr}function iP(n,a){Xg=o1=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function oP(n,a,s){if(Gv(s)){var f=a.lanes;f=A0(f,n.pendingLanes);var p=un(f,s);a.lanes=p,At(n,p)}}function sP(n,a,s){Fv(n,a)}var b1={readContext:sa,useCallback:Ti,useContext:Ti,useEffect:Ti,useImperativeHandle:Ti,useInsertionEffect:Ti,useLayoutEffect:Ti,useMemo:Ti,useReducer:Ti,useRef:Ti,useState:Ti,useDebugValue:Ti,useDeferredValue:Ti,useTransition:Ti,useMutableSource:Ti,useSyncExternalStore:Ti,useId:Ti,unstable_isNewReconciler:Se},lP=null,uP=null,cP=null,fP=null,Gl=null,cl=null,S1=null;{var ON=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")};lP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Yn(),cm(a),EN(n,a)},useContext:function(n){return Oe="useContext",Yn(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Yn(),cm(a),f1(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",Yn(),cm(s),_N(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Yn(),cm(a),wN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Yn(),cm(a),CN(n,a)},useMemo:function(n,a){Oe="useMemo",Yn(),cm(a);var s=lt.current;lt.current=Gl;try{return TN(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",Yn();var f=lt.current;lt.current=Gl;try{return mN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Yn(),xN(n)},useState:function(n){Oe="useState",Yn();var a=lt.current;lt.current=Gl;try{return l1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Yn(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",Yn(),NN(n)},useTransition:function(){return Oe="useTransition",Yn(),RN()},useMutableSource:function(n,a,s){return Oe="useMutableSource",Yn(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",Yn(),yN(n,a,s)},useId:function(){return Oe="useId",Yn(),AN()},unstable_isNewReconciler:Se},uP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),EN(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),f1(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",Je(),_N(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),wN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),CN(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var s=lt.current;lt.current=Gl;try{return TN(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",Je();var f=lt.current;lt.current=Gl;try{return mN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),xN(n)},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=Gl;try{return l1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),NN(n)},useTransition:function(){return Oe="useTransition",Je(),RN()},useMutableSource:function(n,a,s){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",Je(),yN(n,a,s)},useId:function(){return Oe="useId",Je(),AN()},unstable_isNewReconciler:Se},cP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),v1(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),ey(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",Je(),h1(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),d1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),p1(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var s=lt.current;lt.current=cl;try{return g1(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",Je();var f=lt.current;lt.current=cl;try{return vN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),u1()},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=cl;try{return bN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),m1()},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),QD(n)},useTransition:function(){return Oe="useTransition",Je(),tP()},useMutableSource:function(n,a,s){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",Je(),s1(n,a)},useId:function(){return Oe="useId",Je(),y1()},unstable_isNewReconciler:Se},fP={readContext:function(n){return sa(n)},useCallback:function(n,a){return Oe="useCallback",Je(),v1(n,a)},useContext:function(n){return Oe="useContext",Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",Je(),ey(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",Je(),h1(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",Je(),d1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",Je(),p1(n,a)},useMemo:function(n,a){Oe="useMemo",Je();var s=lt.current;lt.current=S1;try{return g1(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",Je();var f=lt.current;lt.current=S1;try{return gN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",Je(),u1()},useState:function(n){Oe="useState",Je();var a=lt.current;lt.current=S1;try{return SN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",Je(),m1()},useDeferredValue:function(n){return Oe="useDeferredValue",Je(),JD(n)},useTransition:function(){return Oe="useTransition",Je(),nP()},useMutableSource:function(n,a,s){return Oe="useMutableSource",Je(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",Je(),s1(n,a)},useId:function(){return Oe="useId",Je(),y1()},unstable_isNewReconciler:Se},Gl={readContext:function(n){return ON(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Yn(),EN(n,a)},useContext:function(n){return Oe="useContext",qt(),Yn(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Yn(),f1(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",qt(),Yn(),_N(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Yn(),wN(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Yn(),CN(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Yn();var s=lt.current;lt.current=Gl;try{return TN(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",qt(),Yn();var f=lt.current;lt.current=Gl;try{return mN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Yn(),xN(n)},useState:function(n){Oe="useState",qt(),Yn();var a=lt.current;lt.current=Gl;try{return l1(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Yn(),void 0},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Yn(),NN(n)},useTransition:function(){return Oe="useTransition",qt(),Yn(),RN()},useMutableSource:function(n,a,s){return Oe="useMutableSource",qt(),Yn(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",qt(),Yn(),yN(n,a,s)},useId:function(){return Oe="useId",qt(),Yn(),AN()},unstable_isNewReconciler:Se},cl={readContext:function(n){return ON(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Je(),v1(n,a)},useContext:function(n){return Oe="useContext",qt(),Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Je(),ey(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",qt(),Je(),h1(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Je(),d1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Je(),p1(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Je();var s=lt.current;lt.current=cl;try{return g1(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",qt(),Je();var f=lt.current;lt.current=cl;try{return vN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Je(),u1()},useState:function(n){Oe="useState",qt(),Je();var a=lt.current;lt.current=cl;try{return bN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Je(),m1()},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Je(),QD(n)},useTransition:function(){return Oe="useTransition",qt(),Je(),tP()},useMutableSource:function(n,a,s){return Oe="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",qt(),Je(),s1(n,a)},useId:function(){return Oe="useId",qt(),Je(),y1()},unstable_isNewReconciler:Se},S1={readContext:function(n){return ON(),sa(n)},useCallback:function(n,a){return Oe="useCallback",qt(),Je(),v1(n,a)},useContext:function(n){return Oe="useContext",qt(),Je(),sa(n)},useEffect:function(n,a){return Oe="useEffect",qt(),Je(),ey(n,a)},useImperativeHandle:function(n,a,s){return Oe="useImperativeHandle",qt(),Je(),h1(n,a,s)},useInsertionEffect:function(n,a){return Oe="useInsertionEffect",qt(),Je(),d1(n,a)},useLayoutEffect:function(n,a){return Oe="useLayoutEffect",qt(),Je(),p1(n,a)},useMemo:function(n,a){Oe="useMemo",qt(),Je();var s=lt.current;lt.current=cl;try{return g1(n,a)}finally{lt.current=s}},useReducer:function(n,a,s){Oe="useReducer",qt(),Je();var f=lt.current;lt.current=cl;try{return gN(n,a,s)}finally{lt.current=f}},useRef:function(n){return Oe="useRef",qt(),Je(),u1()},useState:function(n){Oe="useState",qt(),Je();var a=lt.current;lt.current=cl;try{return SN(n)}finally{lt.current=a}},useDebugValue:function(n,a){return Oe="useDebugValue",qt(),Je(),m1()},useDeferredValue:function(n){return Oe="useDeferredValue",qt(),Je(),JD(n)},useTransition:function(){return Oe="useTransition",qt(),Je(),nP()},useMutableSource:function(n,a,s){return Oe="useMutableSource",qt(),Je(),void 0},useSyncExternalStore:function(n,a,s){return Oe="useSyncExternalStore",qt(),Je(),s1(n,a)},useId:function(){return Oe="useId",qt(),Je(),y1()},unstable_isNewReconciler:Se}}var pf=t.unstable_now,dP=0,x1=-1,ty=-1,w1=-1,kN=!1,C1=!1;function pP(){return kN}function qj(){C1=!0}function Kj(){kN=!1,C1=!1}function Xj(){kN=C1,C1=!1}function hP(){return dP}function mP(){dP=pf()}function DN(n){ty=pf(),n.actualStartTime<0&&(n.actualStartTime=pf())}function vP(n){ty=-1}function _1(n,a){if(ty>=0){var s=pf()-ty;n.actualDuration+=s,a&&(n.selfBaseDuration=s),ty=-1}}function Yl(n){if(x1>=0){var a=pf()-x1;x1=-1;for(var s=n.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f.effectDuration+=a;return;case B:var p=s.stateNode;p.effectDuration+=a;return}s=s.return}}}function PN(n){if(w1>=0){var a=pf()-w1;w1=-1;for(var s=n.return;s!==null;){switch(s.tag){case x:var f=s.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case B:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=a);return}s=s.return}}}function ql(){x1=pf()}function MN(){w1=pf()}function IN(n){for(var a=n.child;a;)n.actualDuration+=a.actualDuration,a=a.sibling}function cp(n,a){return{value:n,source:a,stack:Ma(a),digest:null}}function LN(n,a,s){return{value:n,source:null,stack:s??null,digest:a??null}}function Zj(n,a){return!0}function FN(n,a){try{var s=Zj(n,a);if(s===!1)return;var f=a.value,p=a.source,y=a.stack,w=y!==null?y:"";if(f!=null&&f._suppressLogging){if(n.tag===v)return;console.error(f)}var T=p?It(p):null,A=T?"The above error occurred in the <"+T+"> component:":"The above error occurred in one of your React components:",F;if(n.tag===x)F=`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=It(n)||"Anonymous";F="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var te=A+`
`+w+`
`+(""+F);console.error(te)}catch(ee){setTimeout(function(){throw ee})}}var Qj=typeof WeakMap=="function"?WeakMap:Map;function gP(n,a,s){var f=Zu(Xn,s);f.tag=FT,f.payload={element:null};var p=a.value;return f.callback=function(){H9(p),FN(n,a)},f}function zN(n,a,s){var f=Zu(Xn,s);f.tag=FT;var p=n.type.getDerivedStateFromError;if(typeof p=="function"){var y=a.value;f.payload=function(){return p(y)},f.callback=function(){RM(n),FN(n,a)}}var w=n.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){RM(n),FN(n,a),typeof p!="function"&&$9(this);var A=a.value,F=a.stack;this.componentDidCatch(A,{componentStack:F!==null?F:""}),typeof p!="function"&&(Si(n.lanes,Ut)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",It(n)||"Unknown"))}),f}function yP(n,a,s){var f=n.pingCache,p;if(f===null?(f=n.pingCache=new Qj,p=new Set,f.set(a,p)):(p=f.get(a),p===void 0&&(p=new Set,f.set(a,p))),!p.has(s)){p.add(s);var y=W9.bind(null,n,a,s);ya&&gy(n,s),a.then(y,y)}}function Jj(n,a,s,f){var p=n.updateQueue;if(p===null){var y=new Set;y.add(s),n.updateQueue=y}else p.add(s)}function e$(n,a){var s=n.tag;if((n.mode&yn)===Rt&&(s===m||s===z||s===X)){var f=n.alternate;f?(n.updateQueue=f.updateQueue,n.memoizedState=f.memoizedState,n.lanes=f.lanes):(n.updateQueue=null,n.memoizedState=null)}}function bP(n){var a=n;do{if(a.tag===j&&zj(a))return a;a=a.return}while(a!==null);return null}function SP(n,a,s,f,p){if((n.mode&yn)===Rt){if(n===a)n.flags|=Va;else{if(n.flags|=Ln,s.flags|=wv,s.flags&=~(Qs|dd),s.tag===v){var y=s.alternate;if(y===null)s.tag=me;else{var w=Zu(Xn,Ut);w.tag=qS,uf(s,w,Ut)}}s.lanes=un(s.lanes,Ut)}return n}return n.flags|=Va,n.lanes=p,n}function t$(n,a,s,f,p){if(s.flags|=dd,ya&&gy(n,p),f!==null&&typeof f=="object"&&typeof f.then=="function"){var y=f;e$(s),Xa()&&s.mode&yn&&cD();var w=bP(a);if(w!==null){w.flags&=~Xs,SP(w,a,s,n,p),w.mode&yn&&yP(n,y,p),Jj(w,n,y);return}else{if(!N0(p)){yP(n,y,p),gR();return}var T=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=T}}else if(Xa()&&s.mode&yn){cD();var A=bP(a);if(A!==null){(A.flags&Va)===kt&&(A.flags|=Xs),SP(A,a,s,n,p),OT(cp(f,s));return}}f=cp(f,s),M9(f);var F=a;do{switch(F.tag){case x:{var H=f;F.flags|=Va;var te=Td(p);F.lanes=un(F.lanes,te);var ee=gP(F,H,te);UT(F,ee);return}case v:var he=f,ve=F.type,_e=F.stateNode;if((F.flags&Ln)===kt&&(typeof ve.getDerivedStateFromError=="function"||_e!==null&&typeof _e.componentDidCatch=="function"&&!bM(_e))){F.flags|=Va;var ut=Td(p);F.lanes=un(F.lanes,ut);var Ct=zN(F,he,ut);UT(F,Ct);return}break}F=F.return}while(F!==null)}function n$(){return null}var ny=r.ReactCurrentOwner,fl=!1,BN,ry,UN,jN,$N,fp,VN,E1;BN={},ry={},UN={},jN={},$N={},fp=!1,VN={},E1={};function $i(n,a,s,f){n===null?a.child=zD(a,null,s,f):a.child=im(a,n.child,s,f)}function r$(n,a,s,f){a.child=im(a,n.child,null,f),a.child=im(a,null,s,f)}function xP(n,a,s,f,p){if(a.type!==a.elementType){var y=s.propTypes;y&&dr(y,f,"prop",on(s))}var w=s.render,T=a.ref,A,F;am(a,p),gd(a);{if(ny.current=a,Hr(!0),A=fm(n,a,w,f,T,p),F=dm(),a.mode&Pr){na(!0);try{A=fm(n,a,w,f,T,p),F=dm()}finally{na(!1)}}Hr(!1)}return Lc(),n!==null&&!fl?(VD(n,a,p),Qu(n,a,p)):(Xa()&&F&&_T(a),a.flags|=Mc,$i(n,a,A,p),a.child)}function wP(n,a,s,f,p){if(n===null){var y=s.type;if(lV(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=Sm(y),a.tag=X,a.type=w,GN(a,y),CP(n,a,w,f,p)}{var T=y.propTypes;T&&dr(T,f,"prop",on(y))}var A=RR(s.type,null,f,a,a.mode,p);return A.ref=a.ref,A.return=a,a.child=A,A}{var F=s.type,H=F.propTypes;H&&dr(H,f,"prop",on(F))}var te=n.child,ee=QN(n,p);if(!ee){var he=te.memoizedProps,ve=s.compare;if(ve=ve!==null?ve:Qc,ve(he,f)&&n.ref===a.ref)return Qu(n,a,p)}a.flags|=Mc;var _e=vp(te,f);return _e.ref=a.ref,_e.return=a,a.child=_e,_e}function CP(n,a,s,f,p){if(a.type!==a.elementType){var y=a.elementType;if(y.$$typeof===an){var w=y,T=w._payload,A=w._init;try{y=A(T)}catch{y=null}var F=y&&y.propTypes;F&&dr(F,f,"prop",on(y))}}if(n!==null){var H=n.memoizedProps;if(Qc(H,f)&&n.ref===a.ref&&a.type===n.type)if(fl=!1,a.pendingProps=f=H,QN(n,p))(n.flags&wv)!==kt&&(fl=!0);else return a.lanes=n.lanes,Qu(n,a,p)}return HN(n,a,s,f,p)}function _P(n,a,s){var f=a.pendingProps,p=f.children,y=n!==null?n.memoizedState:null;if(f.mode==="hidden"||pe)if((a.mode&yn)===Rt){var w={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=w,z1(a,s)}else if(Si(s,Ui)){var te={baseLanes:Me,cachePool:null,transitions:null};a.memoizedState=te;var ee=y!==null?y.baseLanes:s;z1(a,ee)}else{var T=null,A;if(y!==null){var F=y.baseLanes;A=un(F,s)}else A=s;a.lanes=a.childLanes=Ui;var H={baseLanes:A,cachePool:T,transitions:null};return a.memoizedState=H,a.updateQueue=null,z1(a,A),null}else{var he;y!==null?(he=un(y.baseLanes,s),a.memoizedState=null):he=s,z1(a,he)}return $i(n,a,p,s),a.child}function a$(n,a,s){var f=a.pendingProps;return $i(n,a,f,s),a.child}function i$(n,a,s){var f=a.pendingProps.children;return $i(n,a,f,s),a.child}function o$(n,a,s){{a.flags|=ln;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var p=a.pendingProps,y=p.children;return $i(n,a,y,s),a.child}function EP(n,a){var s=a.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(a.flags|=La,a.flags|=Js)}function HN(n,a,s,f,p){if(a.type!==a.elementType){var y=s.propTypes;y&&dr(y,f,"prop",on(s))}var w;{var T=Qh(a,s,!0);w=Jh(a,T)}var A,F;am(a,p),gd(a);{if(ny.current=a,Hr(!0),A=fm(n,a,s,f,w,p),F=dm(),a.mode&Pr){na(!0);try{A=fm(n,a,s,f,w,p),F=dm()}finally{na(!1)}}Hr(!1)}return Lc(),n!==null&&!fl?(VD(n,a,p),Qu(n,a,p)):(Xa()&&F&&_T(a),a.flags|=Mc,$i(n,a,A,p),a.child)}function TP(n,a,s,f,p){{switch(CV(a)){case!1:{var y=a.stateNode,w=a.type,T=new w(a.memoizedProps,y.context),A=T.state;y.updater.enqueueSetState(y,A,null);break}case!0:{a.flags|=Ln,a.flags|=Va;var F=new Error("Simulated error coming from DevTools"),H=Td(p);a.lanes=un(a.lanes,H);var te=zN(a,cp(F,a),H);UT(a,te);break}}if(a.type!==a.elementType){var ee=s.propTypes;ee&&dr(ee,f,"prop",on(s))}}var he;Vl(s)?(he=!0,FS(a)):he=!1,am(a,p);var ve=a.stateNode,_e;ve===null?(N1(n,a),PD(a,s,f),QT(a,s,f,p),_e=!0):n===null?_e=Dj(a,s,f,p):_e=Pj(n,a,s,f,p);var ut=WN(n,a,s,_e,he,p);{var Ct=a.stateNode;_e&&Ct.props!==f&&(fp||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",It(a)||"a component"),fp=!0)}return ut}function WN(n,a,s,f,p,y){EP(n,a);var w=(a.flags&Ln)!==kt;if(!f&&!w)return p&&oD(a,s,!1),Qu(n,a,y);var T=a.stateNode;ny.current=a;var A;if(w&&typeof s.getDerivedStateFromError!="function")A=null,vP();else{gd(a);{if(Hr(!0),A=T.render(),a.mode&Pr){na(!0);try{T.render()}finally{na(!1)}}Hr(!1)}Lc()}return a.flags|=Mc,n!==null&&w?r$(n,a,A,y):$i(n,a,A,y),a.memoizedState=T.state,p&&oD(a,s,!0),a.child}function NP(n){var a=n.stateNode;a.pendingContext?aD(n,a.pendingContext,a.pendingContext!==a.context):a.context&&aD(n,a.context,!1),aN(n,a.containerInfo)}function s$(n,a,s){if(NP(a),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,p=a.memoizedState,y=p.element;ED(n,a),QS(a,f,null,s);var w=a.memoizedState;a.stateNode;var T=w.element;if(p.isDehydrated){var A={element:T,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},F=a.updateQueue;if(F.baseState=A,a.memoizedState=A,a.flags&Xs){var H=cp(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 RP(n,a,T,s,H)}else if(T!==y){var te=cp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return RP(n,a,T,s,te)}else{fj(a);var ee=zD(a,null,T,s);a.child=ee;for(var he=ee;he;)he.flags=he.flags&~zr|Zs,he=he.sibling}}else{if(nm(),T===y)return Qu(n,a,s);$i(n,a,T,s)}return a.child}function RP(n,a,s,f,p){return nm(),OT(p),a.flags|=Xs,$i(n,a,s,f),a.child}function l$(n,a,s){UD(a),n===null&&AT(a);var f=a.type,p=a.pendingProps,y=n!==null?n.memoizedProps:null,w=p.children,T=Tg(f,p);return T?w=null:y!==null&&Tg(f,y)&&(a.flags|=fd),EP(n,a),$i(n,a,w,s),a.child}function u$(n,a){return n===null&&AT(a),null}function c$(n,a,s,f){N1(n,a);var p=a.pendingProps,y=s,w=y._payload,T=y._init,A=T(w);a.type=A;var F=a.tag=uV(A),H=ll(A,p),te;switch(F){case m:return GN(a,A),a.type=A=Sm(A),te=HN(null,a,A,H,f),te;case v:return a.type=A=wR(A),te=TP(null,a,A,H,f),te;case z:return a.type=A=CR(A),te=xP(null,a,A,H,f),te;case K:{if(a.type!==a.elementType){var ee=A.propTypes;ee&&dr(ee,H,"prop",on(A))}return te=wP(null,a,A,ll(A.type,H),f),te}}var he="";throw A!==null&&typeof A=="object"&&A.$$typeof===an&&(he=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+A+". "+("Lazy element type must resolve to a class or function."+he))}function f$(n,a,s,f,p){N1(n,a),a.tag=v;var y;return Vl(s)?(y=!0,FS(a)):y=!1,am(a,p),PD(a,s,f),QT(a,s,f,p),WN(null,a,s,!0,y,p)}function d$(n,a,s,f){N1(n,a);var p=a.pendingProps,y;{var w=Qh(a,s,!1);y=Jh(a,w)}am(a,f);var T,A;gd(a);{if(s.prototype&&typeof s.prototype.render=="function"){var F=on(s)||"Unknown";BN[F]||(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.",F,F),BN[F]=!0)}a.mode&Pr&&sl.recordLegacyContextWarning(a,null),Hr(!0),ny.current=a,T=fm(null,a,s,p,y,f),A=dm(),Hr(!1)}if(Lc(),a.flags|=Mc,typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){var H=on(s)||"Unknown";ry[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),ry[H]=!0)}if(typeof T=="object"&&T!==null&&typeof T.render=="function"&&T.$$typeof===void 0){{var te=on(s)||"Unknown";ry[te]||(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.",te,te,te),ry[te]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var ee=!1;return Vl(s)?(ee=!0,FS(a)):ee=!1,a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,BT(a),DD(a,T),QT(a,s,p,f),WN(null,a,s,!0,ee,f)}else{if(a.tag=m,a.mode&Pr){na(!0);try{T=fm(null,a,s,p,y,f),A=dm()}finally{na(!1)}}return Xa()&&A&&_T(a),$i(null,a,T,f),GN(a,s),a.child}}function GN(n,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var s="",f=ja();f&&(s+=`
Check the render method of \``+f+"`.");var p=f||"",y=n._debugSource;y&&(p=y.fileName+":"+y.lineNumber),$N[p]||($N[p]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(typeof a.getDerivedStateFromProps=="function"){var w=on(a)||"Unknown";jN[w]||(u("%s: Function components do not support getDerivedStateFromProps.",w),jN[w]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var T=on(a)||"Unknown";UN[T]||(u("%s: Function components do not support contextType.",T),UN[T]=!0)}}}var YN={dehydrated:null,treeContext:null,retryLane:Yr};function qN(n){return{baseLanes:n,cachePool:n$(),transitions:null}}function p$(n,a){var s=null;return{baseLanes:un(n.baseLanes,a),cachePool:s,transitions:n.transitions}}function h$(n,a,s,f){if(a!==null){var p=a.memoizedState;if(p===null)return!1}return sN(n,qg)}function m$(n,a){return Nd(n.childLanes,a)}function AP(n,a,s){var f=a.pendingProps;_V(a)&&(a.flags|=Ln);var p=ul.current,y=!1,w=(a.flags&Ln)!==kt;if(w||h$(p,n)?(y=!0,a.flags&=~Ln):(n===null||n.memoizedState!==null)&&(p=Fj(p,$D)),p=sm(p),ff(a,p),n===null){AT(a);var T=a.memoizedState;if(T!==null){var A=T.dehydrated;if(A!==null)return S$(a,A)}var F=f.children,H=f.fallback;if(y){var te=v$(a,F,H,s),ee=a.child;return ee.memoizedState=qN(s),a.memoizedState=YN,te}else return KN(a,F)}else{var he=n.memoizedState;if(he!==null){var ve=he.dehydrated;if(ve!==null)return x$(n,a,w,f,ve,he,s)}if(y){var _e=f.fallback,ut=f.children,Ct=y$(n,a,ut,_e,s),yt=a.child,An=n.child.memoizedState;return yt.memoizedState=An===null?qN(s):p$(An,s),yt.childLanes=m$(n,s),a.memoizedState=YN,Ct}else{var Sn=f.children,le=g$(n,a,Sn,s);return a.memoizedState=null,le}}}function KN(n,a,s){var f=n.mode,p={mode:"visible",children:a},y=XN(p,f);return y.return=n,n.child=y,y}function v$(n,a,s,f){var p=n.mode,y=n.child,w={mode:"hidden",children:a},T,A;return(p&yn)===Rt&&y!==null?(T=y,T.childLanes=Me,T.pendingProps=w,n.mode&Un&&(T.actualDuration=0,T.actualStartTime=-1,T.selfBaseDuration=0,T.treeBaseDuration=0),A=bf(s,p,f,null)):(T=XN(w,p),A=bf(s,p,f,null)),T.return=n,A.return=n,T.sibling=A,n.child=T,A}function XN(n,a,s){return OM(n,a,Me,null)}function OP(n,a){return vp(n,a)}function g$(n,a,s,f){var p=n.child,y=p.sibling,w=OP(p,{mode:"visible",children:s});if((a.mode&yn)===Rt&&(w.lanes=f),w.return=a,w.sibling=null,y!==null){var T=a.deletions;T===null?(a.deletions=[y],a.flags|=Nu):T.push(y)}return a.child=w,w}function y$(n,a,s,f,p){var y=a.mode,w=n.child,T=w.sibling,A={mode:"hidden",children:s},F;if((y&yn)===Rt&&a.child!==w){var H=a.child;F=H,F.childLanes=Me,F.pendingProps=A,a.mode&Un&&(F.actualDuration=0,F.actualStartTime=-1,F.selfBaseDuration=w.selfBaseDuration,F.treeBaseDuration=w.treeBaseDuration),a.deletions=null}else F=OP(w,A),F.subtreeFlags=w.subtreeFlags&fs;var te;return T!==null?te=vp(T,f):(te=bf(f,y,p,null),te.flags|=zr),te.return=a,F.return=a,F.sibling=te,a.child=F,te}function T1(n,a,s,f){f!==null&&OT(f),im(a,n.child,null,s);var p=a.pendingProps,y=p.children,w=KN(a,y);return w.flags|=zr,a.memoizedState=null,w}function b$(n,a,s,f,p){var y=a.mode,w={mode:"visible",children:s},T=XN(w,y),A=bf(f,y,p,null);return A.flags|=zr,T.return=a,A.return=a,T.sibling=A,a.child=T,(a.mode&yn)!==Rt&&im(a,n.child,null,p),A}function S$(n,a,s){return(n.mode&yn)===Rt?(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."),n.lanes=Ut):Lg(a)?n.lanes=Pu:n.lanes=Ui,null}function x$(n,a,s,f,p,y,w){if(s)if(a.flags&Xs){a.flags&=~Xs;var le=LN(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return T1(n,a,w,le)}else{if(a.memoizedState!==null)return a.child=n.child,a.flags|=Ln,null;var Ee=f.children,ue=f.fallback,He=b$(n,a,Ee,ue,w),ct=a.child;return ct.memoizedState=qN(w),a.memoizedState=YN,He}else{if(uj(),(a.mode&yn)===Rt)return T1(n,a,w,null);if(Lg(p)){var T,A,F;{var H=XE(p);T=H.digest,A=H.message,F=H.stack}var te;A?te=new Error(A):te=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var ee=LN(te,T,F);return T1(n,a,w,ee)}var he=Si(w,n.childLanes);if(fl||he){var ve=F1();if(ve!==null){var _e=Th(ve,w);if(_e!==Yr&&_e!==y.retryLane){y.retryLane=_e;var ut=Xn;so(n,_e),Na(ve,n,_e,ut)}}gR();var Ct=LN(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 T1(n,a,w,Ct)}else if(PS(p)){a.flags|=Ln,a.child=n.child;var yt=G9.bind(null,n);return ZE(p,yt),null}else{dj(a,p,y.treeContext);var An=f.children,Sn=KN(a,An);return Sn.flags|=Zs,Sn}}}function kP(n,a,s){n.lanes=un(n.lanes,a);var f=n.alternate;f!==null&&(f.lanes=un(f.lanes,a)),IT(n.return,a,s)}function w$(n,a,s){for(var f=a;f!==null;){if(f.tag===j){var p=f.memoizedState;p!==null&&kP(f,s,n)}else if(f.tag===be)kP(f,s,n);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function C$(n){for(var a=n,s=null;a!==null;){var f=a.alternate;f!==null&&i1(f)===null&&(s=a),a=a.sibling}return s}function _$(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!VN[n])if(VN[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.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.',n,n.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function E$(n,a){n!==void 0&&!E1[n]&&(n!=="collapsed"&&n!=="hidden"?(E1[n]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(E1[n]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function DP(n,a){{var s=Dt(n),f=!s&&typeof Pi(n)=="function";if(s||f){var p=s?"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>",p,a,p),!1}}return!0}function T$(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Dt(n)){for(var s=0;s<n.length;s++)if(!DP(n[s],s))return}else{var f=Pi(n);if(typeof f=="function"){var p=f.call(n);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!DP(y.value,w))return;w++}}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 ZN(n,a,s,f,p){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:s,tailMode:p}:(y.isBackwards=a,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=s,y.tailMode=p)}function PP(n,a,s){var f=a.pendingProps,p=f.revealOrder,y=f.tail,w=f.children;_$(p),E$(y,p),T$(w,p),$i(n,a,w,s);var T=ul.current,A=sN(T,qg);if(A)T=lN(T,qg),a.flags|=Ln;else{var F=n!==null&&(n.flags&Ln)!==kt;F&&w$(a,a.child,s),T=sm(T)}if(ff(a,T),(a.mode&yn)===Rt)a.memoizedState=null;else switch(p){case"forwards":{var H=C$(a.child),te;H===null?(te=a.child,a.child=null):(te=H.sibling,H.sibling=null),ZN(a,!1,te,H,y);break}case"backwards":{var ee=null,he=a.child;for(a.child=null;he!==null;){var ve=he.alternate;if(ve!==null&&i1(ve)===null){a.child=he;break}var _e=he.sibling;he.sibling=ee,ee=he,he=_e}ZN(a,!0,ee,null,y);break}case"together":{ZN(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function N$(n,a,s){aN(a,a.stateNode.containerInfo);var f=a.pendingProps;return n===null?a.child=im(a,null,f,s):$i(n,a,f,s),a.child}var MP=!1;function R$(n,a,s){var f=a.type,p=f._context,y=a.pendingProps,w=a.memoizedProps,T=y.value;{"value"in y||MP||(MP=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var A=a.type.propTypes;A&&dr(A,y,"prop","Context.Provider")}if(xD(a,p,T),w!==null){var F=w.value;if(Ya(F,T)){if(w.children===y.children&&!IS())return Qu(n,a,s)}else wj(a,p,s)}var H=y.children;return $i(n,a,H,s),a.child}var IP=!1;function A$(n,a,s){var f=a.type;f._context===void 0?f!==f.Consumer&&(IP||(IP=!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 p=a.pendingProps,y=p.children;typeof y!="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."),am(a,s);var w=sa(f);gd(a);var T;return ny.current=a,Hr(!0),T=y(w),Hr(!1),Lc(),a.flags|=Mc,$i(n,a,T,s),a.child}function ay(){fl=!0}function N1(n,a){(a.mode&yn)===Rt&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=zr)}function Qu(n,a,s){return n!==null&&(a.dependencies=n.dependencies),vP(),vy(a.lanes),Si(s,a.childLanes)?(Mj(n,a),a.child):null}function O$(n,a,s){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,s.index=a.index,s.sibling=a.sibling,s.return=a.return,s.ref=a.ref,a===f.child)f.child=s;else{var p=f.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==a;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var y=f.deletions;return y===null?(f.deletions=[n],f.flags|=Nu):y.push(n),s.flags|=zr,s}}function QN(n,a){var s=n.lanes;return!!Si(s,a)}function k$(n,a,s){switch(a.tag){case x:NP(a),a.stateNode,nm();break;case _:UD(a);break;case v:{var f=a.type;Vl(f)&&FS(a);break}case C:aN(a,a.stateNode.containerInfo);break;case M:{var p=a.memoizedProps.value,y=a.type._context;xD(a,y,p);break}case B:{var w=Si(s,a.childLanes);w&&(a.flags|=ln);{var T=a.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}}break;case j:{var A=a.memoizedState;if(A!==null){if(A.dehydrated!==null)return ff(a,sm(ul.current)),a.flags|=Ln,null;var F=a.child,H=F.childLanes;if(Si(s,H))return AP(n,a,s);ff(a,sm(ul.current));var te=Qu(n,a,s);return te!==null?te.sibling:null}else ff(a,sm(ul.current));break}case be:{var ee=(n.flags&Ln)!==kt,he=Si(s,a.childLanes);if(ee){if(he)return PP(n,a,s);a.flags|=Ln}var ve=a.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),ff(a,ul.current),he)break;return null}case J:case ce:return a.lanes=Me,_P(n,a,s)}return Qu(n,a,s)}function LP(n,a,s){if(a._debugNeedsRemount&&n!==null)return O$(n,a,RR(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var f=n.memoizedProps,p=a.pendingProps;if(f!==p||IS()||a.type!==n.type)fl=!0;else{var y=QN(n,s);if(!y&&(a.flags&Ln)===kt)return fl=!1,k$(n,a,s);(n.flags&wv)!==kt?fl=!0:fl=!1}}else if(fl=!1,Xa()&&rj(a)){var w=a.index,T=aj();uD(a,T,w)}switch(a.lanes=Me,a.tag){case S:return d$(n,a,a.type,s);case fe:{var A=a.elementType;return c$(n,a,A,s)}case m:{var F=a.type,H=a.pendingProps,te=a.elementType===F?H:ll(F,H);return HN(n,a,F,te,s)}case v:{var ee=a.type,he=a.pendingProps,ve=a.elementType===ee?he:ll(ee,he);return TP(n,a,ee,ve,s)}case x:return s$(n,a,s);case _:return l$(n,a,s);case N:return u$(n,a);case j:return AP(n,a,s);case C:return N$(n,a,s);case z:{var _e=a.type,ut=a.pendingProps,Ct=a.elementType===_e?ut:ll(_e,ut);return xP(n,a,_e,Ct,s)}case O:return a$(n,a,s);case I:return i$(n,a,s);case B:return o$(n,a,s);case M:return R$(n,a,s);case V:return A$(n,a,s);case K:{var yt=a.type,An=a.pendingProps,Sn=ll(yt,An);if(a.type!==a.elementType){var le=yt.propTypes;le&&dr(le,Sn,"prop",on(yt))}return Sn=ll(yt.type,Sn),wP(n,a,yt,Sn,s)}case X:return CP(n,a,a.type,a.pendingProps,s);case me:{var Ee=a.type,ue=a.pendingProps,He=a.elementType===Ee?ue:ll(Ee,ue);return f$(n,a,Ee,He,s)}case be:return PP(n,a,s);case Ke:break;case J:return _P(n,a,s)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pm(n){n.flags|=ln}function FP(n){n.flags|=La,n.flags|=Js}var zP,JN,BP,UP;zP=function(n,a,s,f){for(var p=a.child;p!==null;){if(p.tag===_||p.tag===N)kE(n,p.stateNode);else if(p.tag!==C){if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===a)return;for(;p.sibling===null;){if(p.return===null||p.return===a)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},JN=function(n,a){},BP=function(n,a,s,f,p){var y=n.memoizedProps;if(y!==f){var w=a.stateNode,T=iN(),A=PE(w,s,y,f,p,T);a.updateQueue=A,A&&pm(a)}},UP=function(n,a,s,f){s!==f&&pm(a)};function iy(n,a){if(!Xa())switch(n.tailMode){case"hidden":{for(var s=n.tail,f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?n.tail=null:f.sibling=null;break}case"collapsed":{for(var p=n.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:y.sibling=null;break}}}function Qa(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=Me,f=kt;if(a){if((n.mode&Un)!==Rt){for(var A=n.selfBaseDuration,F=n.child;F!==null;)s=un(s,un(F.lanes,F.childLanes)),f|=F.subtreeFlags&fs,f|=F.flags&fs,A+=F.treeBaseDuration,F=F.sibling;n.treeBaseDuration=A}else for(var H=n.child;H!==null;)s=un(s,un(H.lanes,H.childLanes)),f|=H.subtreeFlags&fs,f|=H.flags&fs,H.return=n,H=H.sibling;n.subtreeFlags|=f}else{if((n.mode&Un)!==Rt){for(var p=n.actualDuration,y=n.selfBaseDuration,w=n.child;w!==null;)s=un(s,un(w.lanes,w.childLanes)),f|=w.subtreeFlags,f|=w.flags,p+=w.actualDuration,y+=w.treeBaseDuration,w=w.sibling;n.actualDuration=p,n.treeBaseDuration=y}else for(var T=n.child;T!==null;)s=un(s,un(T.lanes,T.childLanes)),f|=T.subtreeFlags,f|=T.flags,T.return=n,T=T.sibling;n.subtreeFlags|=f}return n.childLanes=s,a}function D$(n,a,s){if(gj()&&(a.mode&yn)!==Rt&&(a.flags&Ln)===kt)return vD(a),nm(),a.flags|=Xs|dd|Va,!1;var f=$S(a);if(s!==null&&s.dehydrated!==null)if(n===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(mj(a),Qa(a),(a.mode&Un)!==Rt){var p=s!==null;if(p){var y=a.child;y!==null&&(a.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if(nm(),(a.flags&Ln)===kt&&(a.memoizedState=null),a.flags|=ln,Qa(a),(a.mode&Un)!==Rt){var w=s!==null;if(w){var T=a.child;T!==null&&(a.treeBaseDuration-=T.treeBaseDuration)}}return!1}else return gD(),!0}function jP(n,a,s){var f=a.pendingProps;switch(ET(a),a.tag){case S:case fe:case X:case m:case z:case O:case I:case B:case V:case K:return Qa(a),null;case v:{var p=a.type;return Vl(p)&&LS(a),Qa(a),null}case x:{var y=a.stateNode;if(om(a),xT(a),cN(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),n===null||n.child===null){var w=$S(a);if(w)pm(a);else if(n!==null){var T=n.memoizedState;(!T.isDehydrated||(a.flags&Xs)!==kt)&&(a.flags|=Ru,gD())}}return JN(n,a),Qa(a),null}case _:{oN(a);var A=BD(),F=a.type;if(n!==null&&a.stateNode!=null)BP(n,a,F,f,A),n.ref!==a.ref&&FP(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 Qa(a),null}var H=iN(),te=$S(a);if(te)pj(a,A,H)&&pm(a);else{var ee=OE(F,f,A,H,a);zP(ee,a,!1,!1),a.stateNode=ee,DE(ee,F,f,A)&&pm(a)}a.ref!==null&&FP(a)}return Qa(a),null}case N:{var he=f;if(n&&a.stateNode!=null){var ve=n.memoizedProps;UP(n,a,ve,he)}else{if(typeof he!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var _e=BD(),ut=iN(),Ct=$S(a);Ct?hj(a)&&pm(a):a.stateNode=ME(he,_e,ut,a)}return Qa(a),null}case j:{lm(a);var yt=a.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var An=D$(n,a,yt);if(!An)return a.flags&Va?a:null}if((a.flags&Ln)!==kt)return a.lanes=s,(a.mode&Un)!==Rt&&IN(a),a;var Sn=yt!==null,le=n!==null&&n.memoizedState!==null;if(Sn!==le&&Sn){var Ee=a.child;if(Ee.flags|=Au,(a.mode&yn)!==Rt){var ue=n===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!we);ue||sN(ul.current,$D)?P9():gR()}}var He=a.updateQueue;if(He!==null&&(a.flags|=ln),Qa(a),(a.mode&Un)!==Rt&&Sn){var ct=a.child;ct!==null&&(a.treeBaseDuration-=ct.treeBaseDuration)}return null}case C:return om(a),JN(n,a),n===null&&yT(a.stateNode.containerInfo),Qa(a),null;case M:var ot=a.type._context;return MT(ot,a),Qa(a),null;case me:{var Ft=a.type;return Vl(Ft)&&LS(a),Qa(a),null}case be:{lm(a);var Qt=a.memoizedState;if(Qt===null)return Qa(a),null;var nr=(a.flags&Ln)!==kt,jn=Qt.rendering;if(jn===null)if(nr)iy(Qt,!1);else{var Xr=I9()&&(n===null||(n.flags&Ln)===kt);if(!Xr)for(var $n=a.child;$n!==null;){var Ur=i1($n);if(Ur!==null){nr=!0,a.flags|=Ln,iy(Qt,!1);var Ni=Ur.updateQueue;return Ni!==null&&(a.updateQueue=Ni,a.flags|=ln),a.subtreeFlags=kt,Ij(a,s),ff(a,lN(ul.current,qg)),a.child}$n=$n.sibling}Qt.tail!==null&&Ar()>lM()&&(a.flags|=Ln,nr=!0,iy(Qt,!1),a.lanes=E0)}else{if(!nr){var ri=i1(jn);if(ri!==null){a.flags|=Ln,nr=!0;var $o=ri.updateQueue;if($o!==null&&(a.updateQueue=$o,a.flags|=ln),iy(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!jn.alternate&&!Xa())return Qa(a),null}else Ar()*2-Qt.renderingStartTime>lM()&&s!==Ui&&(a.flags|=Ln,nr=!0,iy(Qt,!1),a.lanes=E0)}if(Qt.isBackwards)jn.sibling=a.child,a.child=jn;else{var Wi=Qt.last;Wi!==null?Wi.sibling=jn:a.child=jn,Qt.last=jn}}if(Qt.tail!==null){var Gi=Qt.tail;Qt.rendering=Gi,Qt.tail=Gi.sibling,Qt.renderingStartTime=Ar(),Gi.sibling=null;var Ri=ul.current;return nr?Ri=lN(Ri,qg):Ri=sm(Ri),ff(a,Ri),Gi}return Qa(a),null}case Ke:break;case J:case ce:{vR(a);var rc=a.memoizedState,xm=rc!==null;if(n!==null){var xy=n.memoizedState,Zl=xy!==null;Zl!==xm&&!pe&&(a.flags|=Au)}return!xm||(a.mode&yn)===Rt?Qa(a):Si(Xl,Ui)&&(Qa(a),a.subtreeFlags&(zr|ln)&&(a.flags|=Au)),null}case Re: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 P$(n,a,s){switch(ET(a),a.tag){case v:{var f=a.type;Vl(f)&&LS(a);var p=a.flags;return p&Va?(a.flags=p&~Va|Ln,(a.mode&Un)!==Rt&&IN(a),a):null}case x:{a.stateNode,om(a),xT(a),cN();var y=a.flags;return(y&Va)!==kt&&(y&Ln)===kt?(a.flags=y&~Va|Ln,a):null}case _:return oN(a),null;case j:{lm(a);var w=a.memoizedState;if(w!==null&&w.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");nm()}var T=a.flags;return T&Va?(a.flags=T&~Va|Ln,(a.mode&Un)!==Rt&&IN(a),a):null}case be:return lm(a),null;case C:return om(a),null;case M:var A=a.type._context;return MT(A,a),null;case J:case ce:return vR(a),null;case Re:return null;default:return null}}function $P(n,a,s){switch(ET(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&LS(a);break}case x:{a.stateNode,om(a),xT(a),cN();break}case _:{oN(a);break}case C:om(a);break;case j:lm(a);break;case be:lm(a);break;case M:var p=a.type._context;MT(p,a);break;case J:case ce:vR(a);break}}var VP=null;VP=new Set;var R1=!1,Ja=!1,M$=typeof WeakSet=="function"?WeakSet:Set,ht=null,hm=null,mm=null;function I$(n){Pc(null,function(){throw n}),Dl()}var L$=function(n,a){if(a.props=n.memoizedProps,a.state=n.memoizedState,n.mode&Un)try{ql(),a.componentWillUnmount()}finally{Yl(n)}else a.componentWillUnmount()};function HP(n,a){try{hf(xa,n)}catch(s){pr(n,a,s)}}function eR(n,a,s){try{L$(n,s)}catch(f){pr(n,a,f)}}function F$(n,a,s){try{s.componentDidMount()}catch(f){pr(n,a,f)}}function WP(n,a){try{YP(n)}catch(s){pr(n,a,s)}}function vm(n,a){var s=n.ref;if(s!==null)if(typeof s=="function"){var f;try{if(mt&&Gt&&n.mode&Un)try{ql(),f=s(null)}finally{Yl(n)}else f=s(null)}catch(p){pr(n,a,p)}typeof f=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else s.current=null}function A1(n,a,s){try{s()}catch(f){pr(n,a,f)}}var GP=!1;function z$(n,a){RE(n.containerInfo),ht=a,B$();var s=GP;return GP=!1,s}function B$(){for(;ht!==null;){var n=ht,a=n.child;(n.subtreeFlags&_v)!==kt&&a!==null?(a.return=n,ht=a):U$()}}function U$(){for(;ht!==null;){var n=ht;er(n);try{j$(n)}catch(s){pr(n,n.return,s)}Cr();var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function j$(n){var a=n.alternate,s=n.flags;if((s&Ru)!==kt){switch(er(n),n.tag){case m:case z:case X:break;case v:{if(a!==null){var f=a.memoizedProps,p=a.memoizedState,y=n.stateNode;n.type===n.elementType&&!fp&&(y.props!==n.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.",It(n)||"instance"),y.state!==n.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.",It(n)||"instance"));var w=y.getSnapshotBeforeUpdate(n.elementType===n.type?f:ll(n.type,f),p);{var T=VP;w===void 0&&!T.has(n.type)&&(T.add(n.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",It(n)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case x:{{var A=n.stateNode;qE(A.containerInfo)}break}case _:case N:case C:case me: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.")}Cr()}}function dl(n,a,s){var f=a.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&n)===n){var T=w.destroy;w.destroy=void 0,T!==void 0&&((n&Za)!==lo?UC(a):(n&xa)!==lo&&v0(a),(n&Hl)!==lo&&yy(!0),A1(a,s,T),(n&Hl)!==lo&&yy(!1),(n&Za)!==lo?Pv():(n&xa)!==lo&&g0())}w=w.next}while(w!==y)}}function hf(n,a){var s=a.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next,y=p;do{if((y.tag&n)===n){(n&Za)!==lo?yd(a):(n&xa)!==lo&&m0(a);var w=y.create;(n&Hl)!==lo&&yy(!0),y.destroy=w(),(n&Hl)!==lo&&yy(!1),(n&Za)!==lo?BC():(n&xa)!==lo&&jC();{var T=y.destroy;if(T!==void 0&&typeof T!="function"){var A=void 0;(y.tag&xa)!==kt?A="useLayoutEffect":(y.tag&Hl)!==kt?A="useInsertionEffect":A="useEffect";var F=void 0;T===null?F=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof T.then=="function"?F=`
It looks like you wrote `+A+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+A+`(() => {
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`:F=" You returned: "+T,u("%s must not return anything besides a function, which is used for clean-up.%s",A,F)}}}y=y.next}while(y!==p)}}function $$(n,a){if((a.flags&ln)!==kt)switch(a.tag){case B:{var s=a.stateNode.passiveEffectDuration,f=a.memoizedProps,p=f.id,y=f.onPostCommit,w=hP(),T=a.alternate===null?"mount":"update";pP()&&(T="nested-update"),typeof y=="function"&&y(p,T,s,w);var A=a.return;e:for(;A!==null;){switch(A.tag){case x:var F=A.stateNode;F.passiveEffectDuration+=s;break e;case B:var H=A.stateNode;H.passiveEffectDuration+=s;break e}A=A.return}break}}}function V$(n,a,s,f){if((s.flags&pd)!==kt)switch(s.tag){case m:case z:case X:{if(!Ja)if(s.mode&Un)try{ql(),hf(xa|Sa,s)}finally{Yl(s)}else hf(xa|Sa,s);break}case v:{var p=s.stateNode;if(s.flags&ln&&!Ja)if(a===null)if(s.type===s.elementType&&!fp&&(p.props!==s.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.",It(s)||"instance"),p.state!==s.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.",It(s)||"instance")),s.mode&Un)try{ql(),p.componentDidMount()}finally{Yl(s)}else p.componentDidMount();else{var y=s.elementType===s.type?a.memoizedProps:ll(s.type,a.memoizedProps),w=a.memoizedState;if(s.type===s.elementType&&!fp&&(p.props!==s.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.",It(s)||"instance"),p.state!==s.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.",It(s)||"instance")),s.mode&Un)try{ql(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{Yl(s)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var T=s.updateQueue;T!==null&&(s.type===s.elementType&&!fp&&(p.props!==s.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.",It(s)||"instance"),p.state!==s.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.",It(s)||"instance")),ND(s,T,p));break}case x:{var A=s.updateQueue;if(A!==null){var F=null;if(s.child!==null)switch(s.child.tag){case _:F=s.child.stateNode;break;case v:F=s.child.stateNode;break}ND(s,A,F)}break}case _:{var H=s.stateNode;if(a===null&&s.flags&ln){var te=s.type,ee=s.memoizedProps;BE(H,te,ee)}break}case N:break;case C:break;case B:{{var he=s.memoizedProps,ve=he.onCommit,_e=he.onRender,ut=s.stateNode.effectDuration,Ct=hP(),yt=a===null?"mount":"update";pP()&&(yt="nested-update"),typeof _e=="function"&&_e(s.memoizedProps.id,yt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,Ct);{typeof ve=="function"&&ve(s.memoizedProps.id,yt,ut,Ct),U9(s);var An=s.return;e:for(;An!==null;){switch(An.tag){case x:var Sn=An.stateNode;Sn.effectDuration+=ut;break e;case B:var le=An.stateNode;le.effectDuration+=ut;break e}An=An.return}}}break}case j:{Z$(n,s);break}case be:case me:case Ke:case J:case ce: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.")}Ja||s.flags&La&&YP(s)}function H$(n){switch(n.tag){case m:case z:case X:{if(n.mode&Un)try{ql(),HP(n,n.return)}finally{Yl(n)}else HP(n,n.return);break}case v:{var a=n.stateNode;typeof a.componentDidMount=="function"&&F$(n,n.return,a),WP(n,n.return);break}case _:{WP(n,n.return);break}}}function W$(n,a){for(var s=null,f=n;;){if(f.tag===_){if(s===null){s=f;try{var p=f.stateNode;a?Pg(p):GE(f.stateNode,f.memoizedProps)}catch(w){pr(n,n.return,w)}}}else if(f.tag===N){if(s===null)try{var y=f.stateNode;a?WE(y):YE(y,f.memoizedProps)}catch(w){pr(n,n.return,w)}}else if(!((f.tag===J||f.tag===ce)&&f.memoizedState!==null&&f!==n)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===n)return;for(;f.sibling===null;){if(f.return===null||f.return===n)return;s===f&&(s=null),f=f.return}s===f&&(s=null),f.sibling.return=f.return,f=f.sibling}}function YP(n){var a=n.ref;if(a!==null){var s=n.stateNode,f;switch(n.tag){case _:f=s;break;default:f=s}if(typeof a=="function"){var p;if(n.mode&Un)try{ql(),p=a(f)}finally{Yl(n)}else p=a(f);typeof p=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",It(n))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",It(n)),a.current=f}}function G$(n){var a=n.alternate;a!==null&&(a.return=null),n.return=null}function qP(n){var a=n.alternate;a!==null&&(n.alternate=null,qP(a));{if(n.child=null,n.deletions=null,n.sibling=null,n.tag===_){var s=n.stateNode;s!==null&&Y(s)}n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}}function Y$(n){for(var a=n.return;a!==null;){if(KP(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 KP(n){return n.tag===_||n.tag===x||n.tag===C}function XP(n){var a=n;e:for(;;){for(;a.sibling===null;){if(a.return===null||KP(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==_&&a.tag!==N&&a.tag!==se;){if(a.flags&zr||a.child===null||a.tag===C)continue e;a.child.return=a,a=a.child}if(!(a.flags&zr))return a.stateNode}}function q$(n){var a=Y$(n);switch(a.tag){case _:{var s=a.stateNode;a.flags&fd&&(Og(s),a.flags&=~fd);var f=XP(n);nR(n,f,s);break}case x:case C:{var p=a.stateNode.containerInfo,y=XP(n);tR(n,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function tR(n,a,s){var f=n.tag,p=f===_||f===N;if(p){var y=n.stateNode;a?kg(s,y,a):jE(s,y)}else if(f!==C){var w=n.child;if(w!==null){tR(w,a,s);for(var T=w.sibling;T!==null;)tR(T,a,s),T=T.sibling}}}function nR(n,a,s){var f=n.tag,p=f===_||f===N;if(p){var y=n.stateNode;a?$E(s,y,a):UE(s,y)}else if(f!==C){var w=n.child;if(w!==null){nR(w,a,s);for(var T=w.sibling;T!==null;)nR(T,a,s),T=T.sibling}}}var ei=null,pl=!1;function K$(n,a,s){{var f=a;e:for(;f!==null;){switch(f.tag){case _:{ei=f.stateNode,pl=!1;break e}case x:{ei=f.stateNode.containerInfo,pl=!0;break e}case C:{ei=f.stateNode.containerInfo,pl=!0;break e}}f=f.return}if(ei===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ZP(n,a,s),ei=null,pl=!1}G$(s)}function mf(n,a,s){for(var f=s.child;f!==null;)ZP(n,a,f),f=f.sibling}function ZP(n,a,s){switch(FC(s),s.tag){case _:Ja||vm(s,a);case N:{{var f=ei,p=pl;ei=null,mf(n,a,s),ei=f,pl=p,ei!==null&&(pl?HE(ei,s.stateNode):VE(ei,s.stateNode))}return}case se:{ei!==null&&(pl?_i(ei,s.stateNode):Dg(ei,s.stateNode));return}case C:{{var y=ei,w=pl;ei=s.stateNode.containerInfo,pl=!0,mf(n,a,s),ei=y,pl=w}return}case m:case z:case K:case X:{if(!Ja){var T=s.updateQueue;if(T!==null){var A=T.lastEffect;if(A!==null){var F=A.next,H=F;do{var te=H,ee=te.destroy,he=te.tag;ee!==void 0&&((he&Hl)!==lo?A1(s,a,ee):(he&xa)!==lo&&(v0(s),s.mode&Un?(ql(),A1(s,a,ee),Yl(s)):A1(s,a,ee),g0())),H=H.next}while(H!==F)}}}mf(n,a,s);return}case v:{if(!Ja){vm(s,a);var ve=s.stateNode;typeof ve.componentWillUnmount=="function"&&eR(s,a,ve)}mf(n,a,s);return}case Ke:{mf(n,a,s);return}case J:{if(s.mode&yn){var _e=Ja;Ja=_e||s.memoizedState!==null,mf(n,a,s),Ja=_e}else mf(n,a,s);break}default:{mf(n,a,s);return}}}function X$(n){n.memoizedState}function Z$(n,a){var s=a.memoizedState;if(s===null){var f=a.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&aT(y)}}}}function QP(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new M$),a.forEach(function(f){var p=Y9.bind(null,n,f);if(!s.has(f)){if(s.add(f),ya)if(hm!==null&&mm!==null)gy(mm,hm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(p,p)}})}}function Q$(n,a,s){hm=s,mm=n,er(a),JP(a,n),er(a),hm=null,mm=null}function hl(n,a,s){var f=a.deletions;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p];try{K$(n,a,y)}catch(A){pr(y,a,A)}}var w=Po();if(a.subtreeFlags&Ev)for(var T=a.child;T!==null;)er(T),JP(T,n),T=T.sibling;er(w)}function JP(n,a,s){var f=n.alternate,p=n.flags;switch(n.tag){case m:case z:case K:case X:{if(hl(a,n),Kl(n),p&ln){try{dl(Hl|Sa,n,n.return),hf(Hl|Sa,n)}catch(Ft){pr(n,n.return,Ft)}if(n.mode&Un){try{ql(),dl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}Yl(n)}else try{dl(xa|Sa,n,n.return)}catch(Ft){pr(n,n.return,Ft)}}return}case v:{hl(a,n),Kl(n),p&La&&f!==null&&vm(f,f.return);return}case _:{hl(a,n),Kl(n),p&La&&f!==null&&vm(f,f.return);{if(n.flags&fd){var y=n.stateNode;try{Og(y)}catch(Ft){pr(n,n.return,Ft)}}if(p&ln){var w=n.stateNode;if(w!=null){var T=n.memoizedProps,A=f!==null?f.memoizedProps:T,F=n.type,H=n.updateQueue;if(n.updateQueue=null,H!==null)try{Ag(w,H,F,A,T,n)}catch(Ft){pr(n,n.return,Ft)}}}}return}case N:{if(hl(a,n),Kl(n),p&ln){if(n.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var te=n.stateNode,ee=n.memoizedProps,he=f!==null?f.memoizedProps:ee;try{DS(te,he,ee)}catch(Ft){pr(n,n.return,Ft)}}return}case x:{if(hl(a,n),Kl(n),p&ln&&f!==null){var ve=f.memoizedState;if(ve.isDehydrated)try{rT(a.containerInfo)}catch(Ft){pr(n,n.return,Ft)}}return}case C:{hl(a,n),Kl(n);return}case j:{hl(a,n),Kl(n);var _e=n.child;if(_e.flags&Au){var ut=_e.stateNode,Ct=_e.memoizedState,yt=Ct!==null;if(ut.isHidden=yt,yt){var An=_e.alternate!==null&&_e.alternate.memoizedState!==null;An||D9()}}if(p&ln){try{X$(n)}catch(Ft){pr(n,n.return,Ft)}QP(n)}return}case J:{var Sn=f!==null&&f.memoizedState!==null;if(n.mode&yn){var le=Ja;Ja=le||Sn,hl(a,n),Ja=le}else hl(a,n);if(Kl(n),p&Au){var Ee=n.stateNode,ue=n.memoizedState,He=ue!==null,ct=n;if(Ee.isHidden=He,He&&!Sn&&(ct.mode&yn)!==Rt){ht=ct;for(var ot=ct.child;ot!==null;)ht=ot,e9(ot),ot=ot.sibling}W$(ct,He)}return}case be:{hl(a,n),Kl(n),p&ln&&QP(n);return}case Ke:return;default:{hl(a,n),Kl(n);return}}}function Kl(n){var a=n.flags;if(a&zr){try{q$(n)}catch(s){pr(n,n.return,s)}n.flags&=~zr}a&Zs&&(n.flags&=~Zs)}function J$(n,a,s){hm=s,mm=a,ht=n,eM(n,a,s),hm=null,mm=null}function eM(n,a,s){for(var f=(n.mode&yn)!==Rt;ht!==null;){var p=ht,y=p.child;if(p.tag===J&&f){var w=p.memoizedState!==null,T=w||R1;if(T){rR(n,a,s);continue}else{var A=p.alternate,F=A!==null&&A.memoizedState!==null,H=F||Ja,te=R1,ee=Ja;R1=T,Ja=H,Ja&&!ee&&(ht=p,t9(p));for(var he=y;he!==null;)ht=he,eM(he,a,s),he=he.sibling;ht=p,R1=te,Ja=ee,rR(n,a,s);continue}}(p.subtreeFlags&pd)!==kt&&y!==null?(y.return=p,ht=y):rR(n,a,s)}}function rR(n,a,s){for(;ht!==null;){var f=ht;if((f.flags&pd)!==kt){var p=f.alternate;er(f);try{V$(a,p,f,s)}catch(w){pr(f,f.return,w)}Cr()}if(f===n){ht=null;return}var y=f.sibling;if(y!==null){y.return=f.return,ht=y;return}ht=f.return}}function e9(n){for(;ht!==null;){var a=ht,s=a.child;switch(a.tag){case m:case z:case K:case X:{if(a.mode&Un)try{ql(),dl(xa,a,a.return)}finally{Yl(a)}else dl(xa,a,a.return);break}case v:{vm(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&eR(a,a.return,f);break}case _:{vm(a,a.return);break}case J:{var p=a.memoizedState!==null;if(p){tM(n);continue}break}}s!==null?(s.return=a,ht=s):tM(n)}}function tM(n){for(;ht!==null;){var a=ht;if(a===n){ht=null;return}var s=a.sibling;if(s!==null){s.return=a.return,ht=s;return}ht=a.return}}function t9(n){for(;ht!==null;){var a=ht,s=a.child;if(a.tag===J){var f=a.memoizedState!==null;if(f){nM(n);continue}}s!==null?(s.return=a,ht=s):nM(n)}}function nM(n){for(;ht!==null;){var a=ht;er(a);try{H$(a)}catch(f){pr(a,a.return,f)}if(Cr(),a===n){ht=null;return}var s=a.sibling;if(s!==null){s.return=a.return,ht=s;return}ht=a.return}}function n9(n,a,s,f){ht=a,r9(a,n,s,f)}function r9(n,a,s,f){for(;ht!==null;){var p=ht,y=p.child;(p.subtreeFlags&Ic)!==kt&&y!==null?(y.return=p,ht=y):a9(n,a,s,f)}}function a9(n,a,s,f){for(;ht!==null;){var p=ht;if((p.flags&Fo)!==kt){er(p);try{i9(a,p,s,f)}catch(w){pr(p,p.return,w)}Cr()}if(p===n){ht=null;return}var y=p.sibling;if(y!==null){y.return=p.return,ht=y;return}ht=p.return}}function i9(n,a,s,f){switch(a.tag){case m:case z:case X:{if(a.mode&Un){MN();try{hf(Za|Sa,a)}finally{PN(a)}}else hf(Za|Sa,a);break}}}function o9(n){ht=n,s9()}function s9(){for(;ht!==null;){var n=ht,a=n.child;if((ht.flags&Nu)!==kt){var s=n.deletions;if(s!==null){for(var f=0;f<s.length;f++){var p=s[f];ht=p,c9(p,n)}{var y=n.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var T=w.sibling;w.sibling=null,w=T}while(w!==null)}}}ht=n}}(n.subtreeFlags&Ic)!==kt&&a!==null?(a.return=n,ht=a):l9()}}function l9(){for(;ht!==null;){var n=ht;(n.flags&Fo)!==kt&&(er(n),u9(n),Cr());var a=n.sibling;if(a!==null){a.return=n.return,ht=a;return}ht=n.return}}function u9(n){switch(n.tag){case m:case z:case X:{n.mode&Un?(MN(),dl(Za|Sa,n,n.return),PN(n)):dl(Za|Sa,n,n.return);break}}}function c9(n,a){for(;ht!==null;){var s=ht;er(s),d9(s,a),Cr();var f=s.child;f!==null?(f.return=s,ht=f):f9(n)}}function f9(n){for(;ht!==null;){var a=ht,s=a.sibling,f=a.return;if(qP(a),a===n){ht=null;return}if(s!==null){s.return=f,ht=s;return}ht=f}}function d9(n,a){switch(n.tag){case m:case z:case X:{n.mode&Un?(MN(),dl(Za,n,a),PN(n)):dl(Za,n,a);break}}}function p9(n){switch(n.tag){case m:case z:case X:{try{hf(xa|Sa,n)}catch(s){pr(n,n.return,s)}break}case v:{var a=n.stateNode;try{a.componentDidMount()}catch(s){pr(n,n.return,s)}break}}}function h9(n){switch(n.tag){case m:case z:case X:{try{hf(Za|Sa,n)}catch(a){pr(n,n.return,a)}break}}}function m9(n){switch(n.tag){case m:case z:case X:{try{dl(xa|Sa,n,n.return)}catch(s){pr(n,n.return,s)}break}case v:{var a=n.stateNode;typeof a.componentWillUnmount=="function"&&eR(n,n.return,a);break}}}function v9(n){switch(n.tag){case m:case z:case X:try{dl(Za|Sa,n,n.return)}catch(a){pr(n,n.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var oy=Symbol.for;oy("selector.component"),oy("selector.has_pseudo_class"),oy("selector.role"),oy("selector.test_id"),oy("selector.text")}var g9=[];function y9(){g9.forEach(function(n){return n()})}var b9=r.ReactCurrentActQueue;function S9(n){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&a!==!1}}function rM(){{var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!n&&b9.current!==null&&u("The current testing environment is not configured to support act(...)"),n}}var x9=Math.ceil,aR=r.ReactCurrentDispatcher,iR=r.ReactCurrentOwner,ti=r.ReactCurrentBatchConfig,ml=r.ReactCurrentActQueue,_a=0,aM=1,ni=2,Rs=4,Ju=0,sy=1,dp=2,O1=3,ly=4,iM=5,oR=6,Rn=_a,Vi=null,Mr=null,Ea=Me,Xl=Me,sR=Ba(Me),Ta=Ju,uy=null,k1=Me,cy=Me,D1=Me,fy=null,uo=null,lR=0,oM=500,sM=1/0,w9=500,ec=null;function dy(){sM=Ar()+w9}function lM(){return sM}var P1=!1,uR=null,gm=null,pp=!1,vf=null,py=Me,cR=[],fR=null,C9=50,hy=0,dR=null,pR=!1,M1=!1,_9=50,ym=0,I1=null,my=Xn,L1=Me,uM=!1;function F1(){return Vi}function Hi(){return(Rn&(ni|Rs))!==_a?Ar():(my!==Xn||(my=Ar()),my)}function gf(n){var a=n.mode;if((a&yn)===Rt)return Ut;if((Rn&ni)!==_a&&Ea!==Me)return Td(Ea);var s=Sj()!==bj;if(s){if(ti.transition!==null){var f=ti.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(n)}return L1===Yr&&(L1=Ed()),L1}var p=ao();if(p!==Yr)return p;var y=IE();return y}function E9(n){var a=n.mode;return(a&yn)===Rt?Ut:R0()}function Na(n,a,s,f){K9(),uM&&u("useInsertionEffect must not schedule updates."),pR&&(M1=!0),zu(n,s,f),(Rn&ni)!==Me&&n===Vi?Q9(a):(ya&&Nh(n,a,s),J9(a),n===Vi&&((Rn&ni)===_a&&(cy=un(cy,s)),Ta===ly&&yf(n,Ea)),co(n,f),s===Ut&&Rn===_a&&(a.mode&yn)===Rt&&!ml.isBatchingLegacy&&(dy(),lD()))}function T9(n,a,s){var f=n.current;f.lanes=a,zu(n,a,s),co(n,s)}function N9(n){return(Rn&ni)!==_a}function co(n,a){var s=n.callbackNode;_d(n,a);var f=Ch(n,n===Vi?Ea:Me);if(f===Me){s!==null&&EM(s),n.callbackNode=null,n.callbackPriority=Yr;return}var p=tl(f),y=n.callbackPriority;if(y===p&&!(ml.current!==null&&s!==SR)){s==null&&y!==Ut&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&EM(s);var w;if(p===Ut)n.tag===of?(ml.isBatchingLegacy!==null&&(ml.didScheduleLegacyUpdate=!0),nj(dM.bind(null,n))):sD(dM.bind(null,n)),ml.current!==null?ml.current.push(sf):FE(function(){(Rn&(ni|Rs))===_a&&sf()}),w=null;else{var T;switch(ys(f)){case Ga:T=md;break;case gs:T=Rv;break;case yr:T=ps;break;case Rh:T=hh;break;default:T=ps;break}w=xR(T,cM.bind(null,n))}n.callbackPriority=p,n.callbackNode=w}function cM(n,a){if(Kj(),my=Xn,L1=Me,(Rn&(ni|Rs))!==_a)throw new Error("Should not already be working.");var s=n.callbackNode,f=nc();if(f&&n.callbackNode!==s)return null;var p=Ch(n,n===Vi?Ea:Me);if(p===Me)return null;var y=!Lu(n,p)&&!GC(n,p)&&!a,w=y?F9(n,p):B1(n,p);if(w!==Ju){if(w===dp){var T=_h(n);T!==Me&&(p=T,w=hR(n,T))}if(w===sy){var A=uy;throw hp(n,Me),yf(n,p),co(n,Ar()),A}if(w===oR)yf(n,p);else{var F=!Lu(n,p),H=n.current.alternate;if(F&&!A9(H)){if(w=B1(n,p),w===dp){var te=_h(n);te!==Me&&(p=te,w=hR(n,te))}if(w===sy){var ee=uy;throw hp(n,Me),yf(n,p),co(n,Ar()),ee}}n.finishedWork=H,n.finishedLanes=p,R9(n,w,p)}}return co(n,Ar()),n.callbackNode===s?cM.bind(null,n):null}function hR(n,a){var s=fy;if(ia(n)){var f=hp(n,a);f.flags|=Xs,gT(n.containerInfo)}var p=B1(n,a);if(p!==dp){var y=uo;uo=s,y!==null&&fM(y)}return p}function fM(n){uo===null?uo=n:uo.push.apply(uo,n)}function R9(n,a,s){switch(a){case Ju:case sy:throw new Error("Root did not complete. This is a bug in React.");case dp:{mp(n,uo,ec);break}case O1:{if(yf(n,s),Hv(s)&&!TM()){var f=lR+oM-Ar();if(f>10){var p=Ch(n,Me);if(p!==Me)break;var y=n.suspendedLanes;if(!Fu(y,s)){Hi(),Ad(n,y);break}n.timeoutHandle=Ng(mp.bind(null,n,uo,ec),f);break}}mp(n,uo,ec);break}case ly:{if(yf(n,s),Wv(s))break;if(!TM()){var w=T0(n,s),T=w,A=Ar()-T,F=q9(A)-A;if(F>10){n.timeoutHandle=Ng(mp.bind(null,n,uo,ec),F);break}}mp(n,uo,ec);break}case iM:{mp(n,uo,ec);break}default:throw new Error("Unknown root exit status.")}}function A9(n){for(var a=n;;){if(a.flags&ch){var s=a.updateQueue;if(s!==null){var f=s.stores;if(f!==null)for(var p=0;p<f.length;p++){var y=f[p],w=y.getSnapshot,T=y.value;try{if(!Ya(w(),T))return!1}catch{return!1}}}}var A=a.child;if(a.subtreeFlags&ch&&A!==null){A.return=a,a=A;continue}if(a===n)return!0;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function yf(n,a){a=Nd(a,D1),a=Nd(a,cy),Yv(n,a)}function dM(n){if(Xj(),(Rn&(ni|Rs))!==_a)throw new Error("Should not already be working.");nc();var a=Ch(n,Me);if(!Si(a,Ut))return co(n,Ar()),null;var s=B1(n,a);if(n.tag!==of&&s===dp){var f=_h(n);f!==Me&&(a=f,s=hR(n,f))}if(s===sy){var p=uy;throw hp(n,Me),yf(n,a),co(n,Ar()),p}if(s===oR)throw new Error("Root did not complete. This is a bug in React.");var y=n.current.alternate;return n.finishedWork=y,n.finishedLanes=a,mp(n,uo,ec),co(n,Ar()),null}function O9(n,a){a!==Me&&(At(n,un(a,Ut)),co(n,Ar()),(Rn&(ni|Rs))===_a&&(dy(),sf()))}function mR(n,a){var s=Rn;Rn|=aM;try{return n(a)}finally{Rn=s,Rn===_a&&!ml.isBatchingLegacy&&(dy(),lD())}}function k9(n,a,s,f,p){var y=ao(),w=ti.transition;try{return ti.transition=null,aa(Ga),n(a,s,f,p)}finally{aa(y),ti.transition=w,Rn===_a&&dy()}}function tc(n){vf!==null&&vf.tag===of&&(Rn&(ni|Rs))===_a&&nc();var a=Rn;Rn|=aM;var s=ti.transition,f=ao();try{return ti.transition=null,aa(Ga),n?n():void 0}finally{aa(f),ti.transition=s,Rn=a,(Rn&(ni|Rs))===_a&&sf()}}function pM(){return(Rn&(ni|Rs))!==_a}function z1(n,a){Ei(sR,Xl,n),Xl=un(Xl,a)}function vR(n){Xl=sR.current,ba(sR,n)}function hp(n,a){n.finishedWork=null,n.finishedLanes=Me;var s=n.timeoutHandle;if(s!==Rg&&(n.timeoutHandle=Rg,LE(s)),Mr!==null)for(var f=Mr.return;f!==null;){var p=f.alternate;$P(p,f),f=f.return}Vi=n;var y=vp(n.current,null);return Mr=y,Ea=Xl=a,Ta=Ju,uy=null,k1=Me,cy=Me,D1=Me,fy=null,uo=null,_j(),sl.discardPendingWarnings(),y}function hM(n,a){do{var s=Mr;try{if(GS(),HD(),Cr(),iR.current=null,s===null||s.return===null){Ta=sy,uy=a,Mr=null;return}if(mt&&s.mode&Un&&_1(s,!0),st)if(Lc(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;Mv(s,f,Ea)}else y0(s,a,Ea);t$(n,s.return,s,a,Ea),yM(s)}catch(p){a=p,Mr===s&&s!==null?(s=s.return,Mr=s):s=Mr;continue}return}while(!0)}function mM(){var n=aR.current;return aR.current=b1,n===null?b1:n}function vM(n){aR.current=n}function D9(){lR=Ar()}function vy(n){k1=un(n,k1)}function P9(){Ta===Ju&&(Ta=O1)}function gR(){(Ta===Ju||Ta===O1||Ta===dp)&&(Ta=ly),Vi!==null&&(Wc(k1)||Wc(cy))&&yf(Vi,Ea)}function M9(n){Ta!==ly&&(Ta=dp),fy===null?fy=[n]:fy.push(n)}function I9(){return Ta===Ju}function B1(n,a){var s=Rn;Rn|=ni;var f=mM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(gy(n,Ea),p.clear()),Ll(n,a)}ec=O0(),hp(n,a)}Lv(a);do try{L9();break}catch(y){hM(n,y)}while(!0);if(GS(),Rn=s,vM(f),Mr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return x0(),Vi=null,Ea=Me,Ta}function L9(){for(;Mr!==null;)gM(Mr)}function F9(n,a){var s=Rn;Rn|=ni;var f=mM();if(Vi!==n||Ea!==a){if(ya){var p=n.memoizedUpdaters;p.size>0&&(gy(n,Ea),p.clear()),Ll(n,a)}ec=O0(),dy(),hp(n,a)}Lv(a);do try{z9();break}catch(y){hM(n,y)}while(!0);return GS(),vM(f),Rn=s,Mr!==null?(mh(),Ju):(x0(),Vi=null,Ea=Me,Ta)}function z9(){for(;Mr!==null&&!d0();)gM(Mr)}function gM(n){var a=n.alternate;er(n);var s;(n.mode&Un)!==Rt?(DN(n),s=yR(a,n,Xl),_1(n,!0)):s=yR(a,n,Xl),Cr(),n.memoizedProps=n.pendingProps,s===null?yM(n):Mr=s,iR.current=null}function yM(n){var a=n;do{var s=a.alternate,f=a.return;if((a.flags&dd)===kt){er(a);var p=void 0;if((a.mode&Un)===Rt?p=jP(s,a,Xl):(DN(a),p=jP(s,a,Xl),_1(a,!1)),Cr(),p!==null){Mr=p;return}}else{var y=P$(s,a);if(y!==null){y.flags&=PC,Mr=y;return}if((a.mode&Un)!==Rt){_1(a,!1);for(var w=a.actualDuration,T=a.child;T!==null;)w+=T.actualDuration,T=T.sibling;a.actualDuration=w}if(f!==null)f.flags|=dd,f.subtreeFlags=kt,f.deletions=null;else{Ta=oR,Mr=null;return}}var A=a.sibling;if(A!==null){Mr=A;return}a=f,Mr=a}while(a!==null);Ta===Ju&&(Ta=iM)}function mp(n,a,s){var f=ao(),p=ti.transition;try{ti.transition=null,aa(Ga),B9(n,a,s,f)}finally{ti.transition=p,aa(f)}return null}function B9(n,a,s,f){do nc();while(vf!==null);if(X9(),(Rn&(ni|Rs))!==_a)throw new Error("Should not already be working.");var p=n.finishedWork,y=n.finishedLanes;if(vd(y),p===null)return Dv(),null;if(y===Me&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),n.finishedWork=null,n.finishedLanes=Me,p===n.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.");n.callbackNode=null,n.callbackPriority=Yr;var w=un(p.lanes,p.childLanes);Gc(n,w),n===Vi&&(Vi=null,Mr=null,Ea=Me),((p.subtreeFlags&Ic)!==kt||(p.flags&Ic)!==kt)&&(pp||(pp=!0,fR=s,xR(ps,function(){return nc(),null})));var T=(p.subtreeFlags&(_v|Ev|pd|Ic))!==kt,A=(p.flags&(_v|Ev|pd|Ic))!==kt;if(T||A){var F=ti.transition;ti.transition=null;var H=ao();aa(Ga);var te=Rn;Rn|=Rs,iR.current=null,z$(n,p),mP(),Q$(n,p,y),AE(n.containerInfo),n.current=p,$C(y),J$(p,n,y),Iv(),p0(),Rn=te,aa(H),ti.transition=F}else n.current=p,mP();var ee=pp;if(pp?(pp=!1,vf=n,py=y):(ym=0,I1=null),w=n.pendingLanes,w===Me&&(gm=null),ee||wM(n.current,!1),Ov(p.stateNode,f),ya&&n.memoizedUpdaters.clear(),y9(),co(n,Ar()),a!==null)for(var he=n.onRecoverableError,ve=0;ve<a.length;ve++){var _e=a[ve],ut=_e.stack,Ct=_e.digest;he(_e.value,{componentStack:ut,digest:Ct})}if(P1){P1=!1;var yt=uR;throw uR=null,yt}return Si(py,Ut)&&n.tag!==of&&nc(),w=n.pendingLanes,Si(w,Ut)?(qj(),n===dR?hy++:(hy=0,dR=n)):hy=0,sf(),Dv(),null}function nc(){if(vf!==null){var n=ys(py),a=qC(yr,n),s=ti.transition,f=ao();try{return ti.transition=null,aa(a),j9()}finally{aa(f),ti.transition=s}}return!1}function U9(n){cR.push(n),pp||(pp=!0,xR(ps,function(){return nc(),null}))}function j9(){if(vf===null)return!1;var n=fR;fR=null;var a=vf,s=py;if(vf=null,py=Me,(Rn&(ni|Rs))!==_a)throw new Error("Cannot flush passive effects while already rendering.");pR=!0,M1=!1,b0(s);var f=Rn;Rn|=Rs,o9(a.current),n9(a,a.current,s,n);{var p=cR;cR=[];for(var y=0;y<p.length;y++){var w=p[y];$$(a,w)}}S0(),wM(a.current,!0),Rn=f,sf(),M1?a===I1?ym++:(ym=0,I1=a):ym=0,pR=!1,M1=!1,LC(a);{var T=a.current.stateNode;T.effectDuration=0,T.passiveEffectDuration=0}return!0}function bM(n){return gm!==null&&gm.has(n)}function $9(n){gm===null?gm=new Set([n]):gm.add(n)}function V9(n){P1||(P1=!0,uR=n)}var H9=V9;function SM(n,a,s){var f=cp(s,a),p=gP(n,f,Ut),y=uf(n,p,Ut),w=Hi();y!==null&&(zu(y,Ut,w),co(y,w))}function pr(n,a,s){if(I$(s),yy(!1),n.tag===x){SM(n,n,s);return}var f=null;for(f=a;f!==null;){if(f.tag===x){SM(f,n,s);return}else if(f.tag===v){var p=f.type,y=f.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!bM(y)){var w=cp(s,n),T=zN(f,w,Ut),A=uf(f,T,Ut),F=Hi();A!==null&&(zu(A,Ut,F),co(A,F));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`,s)}function W9(n,a,s){var f=n.pingCache;f!==null&&f.delete(a);var p=Hi();Ad(n,s),eV(n),Vi===n&&Fu(Ea,s)&&(Ta===ly||Ta===O1&&Hv(Ea)&&Ar()-lR<oM?hp(n,Me):D1=un(D1,s)),co(n,p)}function xM(n,a){a===Yr&&(a=E9(n));var s=Hi(),f=so(n,a);f!==null&&(zu(f,a,s),co(f,s))}function G9(n){var a=n.memoizedState,s=Yr;a!==null&&(s=a.retryLane),xM(n,s)}function Y9(n,a){var s=Yr,f;switch(n.tag){case j:f=n.stateNode;var p=n.memoizedState;p!==null&&(s=p.retryLane);break;case be:f=n.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),xM(n,s)}function q9(n){return n<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:x9(n/1960)*1960}function K9(){if(hy>C9)throw hy=0,dR=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.");ym>_9&&(ym=0,I1=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 X9(){sl.flushLegacyContextWarning(),sl.flushPendingUnsafeLifecycleWarnings()}function wM(n,a){er(n),U1(n,Gr,m9),a&&U1(n,fh,v9),U1(n,Gr,p9),a&&U1(n,fh,h9),Cr()}function U1(n,a,s){for(var f=n,p=null;f!==null;){var y=f.subtreeFlags&a;f!==p&&f.child!==null&&y!==kt?f=f.child:((f.flags&a)!==kt&&s(f),f.sibling!==null?f=f.sibling:f=p=f.return)}}var j1=null;function CM(n){{if((Rn&ni)!==_a||!(n.mode&yn))return;var a=n.tag;if(a!==S&&a!==x&&a!==v&&a!==m&&a!==z&&a!==K&&a!==X)return;var s=It(n)||"ReactComponent";if(j1!==null){if(j1.has(s))return;j1.add(s)}else j1=new Set([s]);var f=gr;try{er(n),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?er(n):Cr()}}}var yR;{var Z9=null;yR=function(n,a,s){var f=kM(Z9,a);try{return LP(n,a,s)}catch(y){if(cj()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(GS(),HD(),$P(n,a),kM(a,f),a.mode&Un&&DN(a),Pc(null,LP,null,n,a,s),L()){var p=Dl();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var _M=!1,bR;bR=new Set;function Q9(n){if(Ii&&!Wj())switch(n.tag){case m:case z:case X:{var a=Mr&&It(Mr)||"Unknown",s=a;if(!bR.has(s)){bR.add(s);var f=It(n)||"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:{_M||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),_M=!0);break}}}function gy(n,a){if(ya){var s=n.memoizedUpdaters;s.forEach(function(f){Nh(n,f,a)})}}var SR={};function xR(n,a){{var s=ml.current;return s!==null?(s.push(a),SR):Fi(n,a)}}function EM(n){if(n!==SR)return MC(n)}function TM(){return ml.current!==null}function J9(n){{if(n.mode&yn){if(!rM())return}else if(!S9()||Rn!==_a||n.tag!==m&&n.tag!==z&&n.tag!==X)return;if(ml.current===null){var a=gr;try{er(n),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`,It(n))}finally{a?er(n):Cr()}}}}function eV(n){n.tag!==of&&rM()&&ml.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 yy(n){uM=n}var As=null,bm=null,tV=function(n){As=n};function Sm(n){{if(As===null)return n;var a=As(n);return a===void 0?n:a.current}}function wR(n){return Sm(n)}function CR(n){{if(As===null)return n;var a=As(n);if(a===void 0){if(n!=null&&typeof n.render=="function"){var s=Sm(n.render);if(n.render!==s){var f={$$typeof:tt,render:s};return n.displayName!==void 0&&(f.displayName=n.displayName),f}}return n}return a.current}}function NM(n,a){{if(As===null)return!1;var s=n.elementType,f=a.type,p=!1,y=typeof f=="object"&&f!==null?f.$$typeof:null;switch(n.tag){case v:{typeof f=="function"&&(p=!0);break}case m:{(typeof f=="function"||y===an)&&(p=!0);break}case z:{(y===tt||y===an)&&(p=!0);break}case K:case X:{(y===In||y===an)&&(p=!0);break}default:return!1}if(p){var w=As(s);if(w!==void 0&&w===As(f))return!0}return!1}}function RM(n){{if(As===null||typeof WeakSet!="function")return;bm===null&&(bm=new WeakSet),bm.add(n)}}var nV=function(n,a){{if(As===null)return;var s=a.staleFamilies,f=a.updatedFamilies;nc(),tc(function(){_R(n.current,f,s)})}},rV=function(n,a){{if(n.context!==Uo)return;nc(),tc(function(){by(a,n,null,null)})}};function _R(n,a,s){{var f=n.alternate,p=n.child,y=n.sibling,w=n.tag,T=n.type,A=null;switch(w){case m:case X:case v:A=T;break;case z:A=T.render;break}if(As===null)throw new Error("Expected resolveFamily to be set during hot reload.");var F=!1,H=!1;if(A!==null){var te=As(A);te!==void 0&&(s.has(te)?H=!0:a.has(te)&&(w===v?H=!0:F=!0))}if(bm!==null&&(bm.has(n)||f!==null&&bm.has(f))&&(H=!0),H&&(n._debugNeedsRemount=!0),H||F){var ee=so(n,Ut);ee!==null&&Na(ee,n,Ut,Xn)}p!==null&&!H&&_R(p,a,s),y!==null&&_R(y,a,s)}}var aV=function(n,a){{var s=new Set,f=new Set(a.map(function(p){return p.current}));return ER(n.current,f,s),s}};function ER(n,a,s){{var f=n.child,p=n.sibling,y=n.tag,w=n.type,T=null;switch(y){case m:case X:case v:T=w;break;case z:T=w.render;break}var A=!1;T!==null&&a.has(T)&&(A=!0),A?iV(n,s):f!==null&&ER(f,a,s),p!==null&&ER(p,a,s)}}function iV(n,a){{var s=oV(n,a);if(s)return;for(var f=n;;){switch(f.tag){case _:a.add(f.stateNode);return;case C:a.add(f.stateNode.containerInfo);return;case x:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function oV(n,a){for(var s=n,f=!1;;){if(s.tag===_)f=!0,a.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)return f;for(;s.sibling===null;){if(s.return===null||s.return===n)return f;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var TR;{TR=!1;try{var AM=Object.preventExtensions({})}catch{TR=!0}}function sV(n,a,s,f){this.tag=n,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=f,this.flags=kt,this.subtreeFlags=kt,this.deletions=null,this.lanes=Me,this.childLanes=Me,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,!TR&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var jo=function(n,a,s,f){return new sV(n,a,s,f)};function NR(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function lV(n){return typeof n=="function"&&!NR(n)&&n.defaultProps===void 0}function uV(n){if(typeof n=="function")return NR(n)?v:m;if(n!=null){var a=n.$$typeof;if(a===tt)return z;if(a===In)return K}return S}function vp(n,a){var s=n.alternate;s===null?(s=jo(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s._debugSource=n._debugSource,s._debugOwner=n._debugOwner,s._debugHookTypes=n._debugHookTypes,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=kt,s.subtreeFlags=kt,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=n.flags&fs,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue;var f=n.dependencies;switch(s.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.selfBaseDuration=n.selfBaseDuration,s.treeBaseDuration=n.treeBaseDuration,s._debugNeedsRemount=n._debugNeedsRemount,s.tag){case S:case m:case X:s.type=Sm(n.type);break;case v:s.type=wR(n.type);break;case z:s.type=CR(n.type);break}return s}function cV(n,a){n.flags&=fs|zr;var s=n.alternate;if(s===null)n.childLanes=Me,n.lanes=a,n.child=null,n.subtreeFlags=kt,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0;else{n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=kt,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type;var f=s.dependencies;n.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},n.selfBaseDuration=s.selfBaseDuration,n.treeBaseDuration=s.treeBaseDuration}return n}function fV(n,a,s){var f;return n===zS?(f=yn,a===!0&&(f|=Pr,f|=ro)):f=Rt,ya&&(f|=Un),jo(x,null,null,f)}function RR(n,a,s,f,p,y){var w=S,T=n;if(typeof n=="function")NR(n)?(w=v,T=wR(T)):T=Sm(T);else if(typeof n=="string")w=_;else{e:switch(n){case Be:return bf(s.children,p,y,a);case qe:w=I,p|=Pr,(p&yn)!==Rt&&(p|=ro);break;case bt:return dV(s,p,y,a);case $t:return pV(s,p,y,a);case zn:return hV(s,p,y,a);case Eo:return OM(s,p,y,a);case da:case Lr:case Ji:case Su:case fi:default:{if(typeof n=="object"&&n!==null)switch(n.$$typeof){case nn:w=M;break e;case gn:w=V;break e;case tt:w=z,T=CR(T);break e;case In:w=K;break e;case an:w=fe,T=null;break e}var A="";{(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(A+=" 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 F=f?It(f):null;F&&(A+=`
Check the render method of \``+F+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(n==null?n:typeof n)+"."+A))}}}var H=jo(w,s,a,p);return H.elementType=n,H.type=T,H.lanes=y,H._debugOwner=f,H}function AR(n,a,s){var f=null;f=n._owner;var p=n.type,y=n.key,w=n.props,T=RR(p,y,w,f,a,s);return T._debugSource=n._source,T._debugOwner=n._owner,T}function bf(n,a,s,f){var p=jo(O,n,f,a);return p.lanes=s,p}function dV(n,a,s,f){typeof n.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id);var p=jo(B,n,f,a|Un);return p.elementType=bt,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function pV(n,a,s,f){var p=jo(j,n,f,a);return p.elementType=$t,p.lanes=s,p}function hV(n,a,s,f){var p=jo(be,n,f,a);return p.elementType=zn,p.lanes=s,p}function OM(n,a,s,f){var p=jo(J,n,f,a);p.elementType=Eo,p.lanes=s;var y={isHidden:!1};return p.stateNode=y,p}function OR(n,a,s){var f=jo(N,n,null,a);return f.lanes=s,f}function mV(){var n=jo(_,null,null,Rt);return n.elementType="DELETED",n}function vV(n){var a=jo(se,null,null,Rt);return a.stateNode=n,a}function kR(n,a,s){var f=n.children!==null?n.children:[],p=jo(C,f,n.key,a);return p.lanes=s,p.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},p}function kM(n,a){return n===null&&(n=jo(S,null,null,Rt)),n.tag=a.tag,n.key=a.key,n.elementType=a.elementType,n.type=a.type,n.stateNode=a.stateNode,n.return=a.return,n.child=a.child,n.sibling=a.sibling,n.index=a.index,n.ref=a.ref,n.pendingProps=a.pendingProps,n.memoizedProps=a.memoizedProps,n.updateQueue=a.updateQueue,n.memoizedState=a.memoizedState,n.dependencies=a.dependencies,n.mode=a.mode,n.flags=a.flags,n.subtreeFlags=a.subtreeFlags,n.deletions=a.deletions,n.lanes=a.lanes,n.childLanes=a.childLanes,n.alternate=a.alternate,n.actualDuration=a.actualDuration,n.actualStartTime=a.actualStartTime,n.selfBaseDuration=a.selfBaseDuration,n.treeBaseDuration=a.treeBaseDuration,n._debugSource=a._debugSource,n._debugOwner=a._debugOwner,n._debugNeedsRemount=a._debugNeedsRemount,n._debugHookTypes=a._debugHookTypes,n}function gV(n,a,s,f,p){this.tag=a,this.containerInfo=n,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Rg,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Yr,this.eventTimes=Rd(Me),this.expirationTimes=Rd(Xn),this.pendingLanes=Me,this.suspendedLanes=Me,this.pingedLanes=Me,this.expiredLanes=Me,this.mutableReadLanes=Me,this.finishedLanes=Me,this.entangledLanes=Me,this.entanglements=Rd(Me),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<Bv;w++)y.push(new Set)}switch(a){case zS:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case of:this._debugRootType=s?"hydrate()":"render()";break}}function DM(n,a,s,f,p,y,w,T,A,F){var H=new gV(n,a,s,T,A),te=fV(a,y);H.current=te,te.stateNode=H;{var ee={element:f,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};te.memoizedState=ee}return BT(te),H}var DR="18.2.0";function yV(n,a,s){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return ir(f),{$$typeof:q,key:f==null?null:""+f,children:n,containerInfo:a,implementation:s}}var PR,MR;PR=!1,MR={};function PM(n){if(!n)return Uo;var a=Ks(n),s=tj(a);if(a.tag===v){var f=a.type;if(Vl(f))return iD(a,f,s)}return s}function bV(n,a){{var s=Ks(n);if(s===void 0){if(typeof n.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(n).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var p=f0(s);if(p===null)return null;if(p.mode&Pr){var y=It(s)||"Component";if(!MR[y]){MR[y]=!0;var w=gr;try{er(p),s.mode&Pr?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,y):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,y)}finally{w?er(w):Cr()}}}return p.stateNode}}function MM(n,a,s,f,p,y,w,T){var A=!1,F=null;return DM(n,a,A,F,s,f,p,y,w)}function IM(n,a,s,f,p,y,w,T,A,F){var H=!0,te=DM(s,f,H,n,p,y,w,T,A);te.context=PM(null);var ee=te.current,he=Hi(),ve=gf(ee),_e=Zu(he,ve);return _e.callback=a??null,uf(ee,_e,ve),T9(te,ve,he),te}function by(n,a,s,f){Ha(a,n);var p=a.current,y=Hi(),w=gf(p);w0(w);var T=PM(s);a.context===null?a.context=T:a.pendingContext=T,Ii&&gr!==null&&!PR&&(PR=!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.`,It(gr)||"Unknown"));var A=Zu(y,w);A.payload={element:n},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),A.callback=f);var F=uf(p,A,w);return F!==null&&(Na(F,p,w,y),ZS(F,p,w)),w}function $1(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case _:return a.child.stateNode;default:return a.child.stateNode}}function SV(n){switch(n.tag){case x:{var a=n.stateNode;if(ia(a)){var s=WC(a);O9(a,s)}break}case j:{tc(function(){var p=so(n,Ut);if(p!==null){var y=Hi();Na(p,n,Ut,y)}});var f=Ut;IR(n,f);break}}}function LM(n,a){var s=n.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=nl(s.retryLane,a))}function IR(n,a){LM(n,a);var s=n.alternate;s&&LM(s,a)}function xV(n){if(n.tag===j){var a=$c,s=so(n,a);if(s!==null){var f=Hi();Na(s,n,a,f)}IR(n,a)}}function wV(n){if(n.tag===j){var a=gf(n),s=so(n,a);if(s!==null){var f=Hi();Na(s,n,a,f)}IR(n,a)}}function FM(n){var a=Nv(n);return a===null?null:a.stateNode}var zM=function(n){return null};function CV(n){return zM(n)}var BM=function(n){return!1};function _V(n){return BM(n)}var UM=null,jM=null,$M=null,VM=null,HM=null,WM=null,GM=null,YM=null,qM=null;{var KM=function(n,a,s){var f=a[s],p=Dt(n)?n.slice():Zt({},n);return s+1===a.length?(Dt(p)?p.splice(f,1):delete p[f],p):(p[f]=KM(n[f],a,s+1),p)},XM=function(n,a){return KM(n,a,0)},ZM=function(n,a,s,f){var p=a[f],y=Dt(n)?n.slice():Zt({},n);if(f+1===a.length){var w=s[f];y[w]=y[p],Dt(y)?y.splice(p,1):delete y[p]}else y[p]=ZM(n[p],a,s,f+1);return y},QM=function(n,a,s){if(a.length!==s.length){c("copyWithRename() expects paths of the same length");return}else for(var f=0;f<s.length-1;f++)if(a[f]!==s[f]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return ZM(n,a,s,0)},JM=function(n,a,s,f){if(s>=a.length)return f;var p=a[s],y=Dt(n)?n.slice():Zt({},n);return y[p]=JM(n[p],a,s+1,f),y},eI=function(n,a,s){return JM(n,a,0,s)},LR=function(n,a){for(var s=n.memoizedState;s!==null&&a>0;)s=s.next,a--;return s};UM=function(n,a,s,f){var p=LR(n,a);if(p!==null){var y=eI(p.memoizedState,s,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=so(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},jM=function(n,a,s){var f=LR(n,a);if(f!==null){var p=XM(f.memoizedState,s);f.memoizedState=p,f.baseState=p,n.memoizedProps=Zt({},n.memoizedProps);var y=so(n,Ut);y!==null&&Na(y,n,Ut,Xn)}},$M=function(n,a,s,f){var p=LR(n,a);if(p!==null){var y=QM(p.memoizedState,s,f);p.memoizedState=y,p.baseState=y,n.memoizedProps=Zt({},n.memoizedProps);var w=so(n,Ut);w!==null&&Na(w,n,Ut,Xn)}},VM=function(n,a,s){n.pendingProps=eI(n.memoizedProps,a,s),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=so(n,Ut);f!==null&&Na(f,n,Ut,Xn)},HM=function(n,a){n.pendingProps=XM(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var s=so(n,Ut);s!==null&&Na(s,n,Ut,Xn)},WM=function(n,a,s){n.pendingProps=QM(n.memoizedProps,a,s),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var f=so(n,Ut);f!==null&&Na(f,n,Ut,Xn)},GM=function(n){var a=so(n,Ut);a!==null&&Na(a,n,Ut,Xn)},YM=function(n){zM=n},qM=function(n){BM=n}}function EV(n){var a=f0(n);return a===null?null:a.stateNode}function TV(n){return null}function NV(){return gr}function RV(n){var a=n.findFiberByHostInstance,s=r.ReactCurrentDispatcher;return h0({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:UM,overrideHookStateDeletePath:jM,overrideHookStateRenamePath:$M,overrideProps:VM,overridePropsDeletePath:HM,overridePropsRenamePath:WM,setErrorHandler:YM,setSuspenseHandler:qM,scheduleUpdate:GM,currentDispatcherRef:s,findHostInstanceByFiber:EV,findFiberByHostInstance:a||TV,findHostInstancesForRefresh:aV,scheduleRefresh:nV,scheduleRoot:rV,setRefreshHandler:tV,getCurrentFiber:NV,reconcilerVersion:DR})}var tI=typeof reportError=="function"?reportError:function(n){console.error(n)};function FR(n){this._internalRoot=n}V1.prototype.render=FR.prototype.render=function(n){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()."):H1(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 s=a.containerInfo;if(s.nodeType!==Bn){var f=FM(a.current);f&&f.parentNode!==s&&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.")}}by(n,a,null,null)},V1.prototype.unmount=FR.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 n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;pM()&&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."),tc(function(){by(null,n,null,null)}),De(a)}};function AV(n,a){if(!H1(n))throw new Error("createRoot(...): Target container is not a DOM element.");nI(n);var s=!1,f=!1,p="",y=tI;a!=null&&(a.hydrate?c("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===ka&&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&&(s=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var w=MM(n,zS,null,s,f,p,y);ie(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return Gd(T),new FR(w)}function V1(n){this._internalRoot=n}function OV(n){n&&F0(n)}V1.prototype.unstable_scheduleHydration=OV;function kV(n,a,s){if(!H1(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");nI(n),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=s??null,p=s!=null&&s.hydratedSources||null,y=!1,w=!1,T="",A=tI;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(T=s.identifierPrefix),s.onRecoverableError!==void 0&&(A=s.onRecoverableError));var F=IM(a,null,n,zS,f,y,w,T,A);if(ie(F.current,n),Gd(n),p)for(var H=0;H<p.length;H++){var te=p[H];Bj(F,te)}return new V1(F)}function H1(n){return!!(n&&(n.nodeType===bi||n.nodeType===Io||n.nodeType===_u||!Ie))}function Sy(n){return!!(n&&(n.nodeType===bi||n.nodeType===Io||n.nodeType===_u||n.nodeType===Bn&&n.nodeValue===" react-mount-point-unstable "))}function nI(n){n.nodeType===bi&&n.tagName&&n.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."),Ae(n)&&(n._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 DV=r.ReactCurrentOwner,rI;rI=function(n){if(n._reactRootContainer&&n.nodeType!==Bn){var a=FM(n._reactRootContainer.current);a&&a.parentNode!==n&&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 s=!!n._reactRootContainer,f=zR(n),p=!!(f&&Xe(f));p&&!s&&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."),n.nodeType===bi&&n.tagName&&n.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 zR(n){return n?n.nodeType===Io?n.documentElement:n.firstChild:null}function aI(){}function PV(n,a,s,f,p){if(p){if(typeof f=="function"){var y=f;f=function(){var ee=$1(w);y.call(ee)}}var w=IM(a,f,n,of,null,!1,!1,"",aI);n._reactRootContainer=w,ie(w.current,n);var T=n.nodeType===Bn?n.parentNode:n;return Gd(T),tc(),w}else{for(var A;A=n.lastChild;)n.removeChild(A);if(typeof f=="function"){var F=f;f=function(){var ee=$1(H);F.call(ee)}}var H=MM(n,of,null,!1,!1,"",aI);n._reactRootContainer=H,ie(H.current,n);var te=n.nodeType===Bn?n.parentNode:n;return Gd(te),tc(function(){by(a,H,s,f)}),H}}function MV(n,a){n!==null&&typeof n!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function W1(n,a,s,f,p){rI(s),MV(p===void 0?null:p,"render");var y=s._reactRootContainer,w;if(!y)w=PV(s,a,n,p,f);else{if(w=y,typeof p=="function"){var T=p;p=function(){var A=$1(w);T.call(A)}}by(a,w,n,p)}return $1(w)}function IV(n){{var a=DV.current;if(a!==null&&a.stateNode!==null){var s=a.stateNode._warnedAboutRefsInRender;s||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.",on(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===bi?n:bV(n,"findDOMNode")}function LV(n,a,s){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"),!Sy(a))throw new Error("Target container is not a DOM element.");{var f=Ae(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 W1(null,n,a,!0,s)}function FV(n,a,s){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"),!Sy(a))throw new Error("Target container is not a DOM element.");{var f=Ae(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 W1(null,n,a,!1,s)}function zV(n,a,s,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"),!Sy(s))throw new Error("Target container is not a DOM element.");if(n==null||!no(n))throw new Error("parentComponent must be a valid React Component");return W1(n,a,s,!1,f)}function BV(n){if(!Sy(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Ae(n)&&n._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(n._reactRootContainer){{var s=zR(n),f=s&&!Xe(s);f&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return tc(function(){W1(null,null,n,!1,function(){n._reactRootContainer=null,De(n)})}),!0}else{{var p=zR(n),y=!!(p&&Xe(p)),w=n.nodeType===bi&&Sy(n.parentNode)&&!!n.parentNode._reactRootContainer;y&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}KC(SV),XC(xV),D0(wV),ZC(ao),QC(k0),(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"),yv(NS),i0(mR,k9,tc);function UV(n,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!H1(a))throw new Error("Target container is not a DOM element.");return yV(n,a,null,s)}function jV(n,a,s,f){return zV(n,a,s,f)}var BR={usingClientEntryPoint:!1,Events:[Xe,dt,Ot,e0,n0,mR]};function $V(n,a){return BR.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),AV(n,a)}function VV(n,a,s){return BR.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),kV(n,a,s)}function HV(n){return pM()&&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."),tc(n)}var WV=RV({findFiberByHostInstance:Pe,bundleType:1,version:DR,rendererPackageName:"react-dom"});if(!WV&&Yt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var iI=window.location.protocol;/^(https?|file):$/.test(iI)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(iI==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BR,Ho.createPortal=UV,Ho.createRoot=$V,Ho.findDOMNode=IV,Ho.flushSync=HV,Ho.hydrate=LV,Ho.hydrateRoot=VV,Ho.render=FV,Ho.unmountComponentAtNode=BV,Ho.unstable_batchedUpdates=mR,Ho.unstable_renderSubtreeIntoContainer=jV,Ho.version=DR,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=Ho})(_b);var UR=_b.exports;{var G1=UR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;DA.createRoot=function(e,t){G1.usingClientEntryPoint=!0;try{return UR.createRoot(e,t)}finally{G1.usingClientEntryPoint=!1}},DA.hydrateRoot=function(e,t,r){G1.usingClientEntryPoint=!0;try{return UR.hydrateRoot(e,t,r)}finally{G1.usingClientEntryPoint=!1}}}var hc=Boolean(globalThis?.document)?D.exports.useLayoutEffect:D.exports.useEffect,fk={exports:{}},PA={};/**
* @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=D.exports,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=Symbol.iterator,O="@@iterator";function I(q){if(q===null||typeof q!="object")return null;var Be=N&&q[N]||q[O];return typeof Be=="function"?Be:null}var V=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(q){{for(var Be=arguments.length,qe=new Array(Be>1?Be-1:0),bt=1;bt<Be;bt++)qe[bt-1]=arguments[bt];z("error",q,qe)}}function z(q,Be,qe){{var bt=V.ReactDebugCurrentFrame,nn=bt.getStackAddendum();nn!==""&&(Be+="%s",qe=qe.concat([nn]));var gn=qe.map(function(tt){return String(tt)});gn.unshift("Warning: "+Be),Function.prototype.apply.call(console[q],console,gn)}}var B=!1,j=!1,K=!1,X=!1,fe=!1,me;me=Symbol.for("react.module.reference");function se(q){return!!(typeof q=="string"||typeof q=="function"||q===i||q===c||fe||q===o||q===v||q===S||X||q===_||B||j||K||typeof q=="object"&&q!==null&&(q.$$typeof===C||q.$$typeof===x||q.$$typeof===u||q.$$typeof===h||q.$$typeof===m||q.$$typeof===me||q.getModuleId!==void 0))}function be(q,Be,qe){var bt=q.displayName;if(bt)return bt;var nn=Be.displayName||Be.name||"";return nn!==""?qe+"("+nn+")":qe}function Ke(q){return q.displayName||"Context"}function J(q){if(q==null)return null;if(typeof q.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case i:return"Fragment";case r:return"Portal";case c:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case S:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case h:var Be=q;return Ke(Be)+".Consumer";case u:var qe=q;return Ke(qe._context)+".Provider";case m:return be(q,q.render,"ForwardRef");case x:var bt=q.displayName||null;return bt!==null?bt:J(q.type)||"Memo";case C:{var nn=q,gn=nn._payload,tt=nn._init;try{return J(tt(gn))}catch{return null}}}return null}var ce=Object.assign,Re=0,Ce,oe,Se,Te,pe,we,Ie;function Le(){}Le.__reactDisabledLog=!0;function Ye(){{if(Re===0){Ce=console.log,oe=console.info,Se=console.warn,Te=console.error,pe=console.group,we=console.groupCollapsed,Ie=console.groupEnd;var q={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}Re++}}function st(){{if(Re--,Re===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},q,{value:Ce}),info:ce({},q,{value:oe}),warn:ce({},q,{value:Se}),error:ce({},q,{value:Te}),group:ce({},q,{value:pe}),groupCollapsed:ce({},q,{value:we}),groupEnd:ce({},q,{value:Ie})})}Re<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var mt=V.ReactCurrentDispatcher,Gt;function Qe(q,Be,qe){{if(Gt===void 0)try{throw Error()}catch(nn){var bt=nn.stack.trim().match(/\n( *(at )?)/);Gt=bt&&bt[1]||""}return`
`+Gt+q}}var vt=!1,Et;{var zt=typeof WeakMap=="function"?WeakMap:Map;Et=new zt}function We(q,Be){if(!q||vt)return"";{var qe=Et.get(q);if(qe!==void 0)return qe}var bt;vt=!0;var nn=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var gn;gn=mt.current,mt.current=null,Ye();try{if(Be){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(da){bt=da}Reflect.construct(q,[],tt)}else{try{tt.call()}catch(da){bt=da}q.call(tt.prototype)}}else{try{throw Error()}catch(da){bt=da}q()}}catch(da){if(da&&bt&&typeof da.stack=="string"){for(var $t=da.stack.split(`
`),zn=bt.stack.split(`
`),In=$t.length-1,an=zn.length-1;In>=1&&an>=0&&$t[In]!==zn[an];)an--;for(;In>=1&&an>=0;In--,an--)if($t[In]!==zn[an]){if(In!==1||an!==1)do if(In--,an--,an<0||$t[In]!==zn[an]){var Lr=`
`+$t[In].replace(" at new "," at ");return q.displayName&&Lr.includes("<anonymous>")&&(Lr=Lr.replace("<anonymous>",q.displayName)),typeof q=="function"&&Et.set(q,Lr),Lr}while(In>=1&&an>=0);break}}}finally{vt=!1,mt.current=gn,st(),Error.prepareStackTrace=nn}var fi=q?q.displayName||q.name:"",Eo=fi?Qe(fi):"";return typeof q=="function"&&Et.set(q,Eo),Eo}function Yt(q,Be,qe){return We(q,!1)}function ye(q){var Be=q.prototype;return!!(Be&&Be.isReactComponent)}function Mt(q,Be,qe){if(q==null)return"";if(typeof q=="function")return We(q,ye(q));if(typeof q=="string")return Qe(q);switch(q){case v:return Qe("Suspense");case S:return Qe("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case m:return Yt(q.render);case x:return Mt(q.type,Be,qe);case C:{var bt=q,nn=bt._payload,gn=bt._init;try{return Mt(gn(nn),Be,qe)}catch{}}}return""}var Kt=Object.prototype.hasOwnProperty,St={},ar=V.ReactDebugCurrentFrame;function ir(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ar.setExtraStackFrame(qe)}else ar.setExtraStackFrame(null)}function Bt(q,Be,qe,bt,nn){{var gn=Function.call.bind(Kt);for(var tt in q)if(gn(q,tt)){var $t=void 0;try{if(typeof q[tt]!="function"){var zn=Error((bt||"React class")+": "+qe+" type `"+tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw zn.name="Invariant Violation",zn}$t=q[tt](Be,tt,bt,qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(In){$t=In}$t&&!($t instanceof Error)&&(ir(nn),M("%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).",bt||"React class",qe,tt,typeof $t),ir(null)),$t instanceof Error&&!($t.message in St)&&(St[$t.message]=!0,ir(nn),M("Failed %s type: %s",qe,$t.message),ir(null))}}}var fn=Array.isArray;function kn(q){return fn(q)}function hn(q){{var Be=typeof Symbol=="function"&&Symbol.toStringTag,qe=Be&&q[Symbol.toStringTag]||q.constructor.name||"Object";return qe}}function Ve(q){try{return Ze(q),!1}catch{return!0}}function Ze(q){return""+q}function Jt(q){if(Ve(q))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(q)),Ze(q)}var Tt=V.ReactCurrentOwner,ke={key:!0,ref:!0,__self:!0,__source:!0},jt,xn,je;je={};function rt(q){if(Kt.call(q,"ref")){var Be=Object.getOwnPropertyDescriptor(q,"ref").get;if(Be&&Be.isReactWarning)return!1}return q.ref!==void 0}function xt(q){if(Kt.call(q,"key")){var Be=Object.getOwnPropertyDescriptor(q,"key").get;if(Be&&Be.isReactWarning)return!1}return q.key!==void 0}function dn(q,Be){if(typeof q.ref=="string"&&Tt.current&&Be&&Tt.current.stateNode!==Be){var qe=J(Tt.current.type);je[qe]||(M('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',J(Tt.current.type),q.ref),je[qe]=!0)}}function Xt(q,Be){{var qe=function(){jt||(jt=!0,M("%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)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"key",{get:qe,configurable:!0})}}function wn(q,Be){{var qe=function(){xn||(xn=!0,M("%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)",Be))};qe.isReactWarning=!0,Object.defineProperty(q,"ref",{get:qe,configurable:!0})}}var Dn=function(q,Be,qe,bt,nn,gn,tt){var $t={$$typeof:t,type:q,key:Be,ref:qe,props:tt,_owner:gn};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:bt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:nn}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function Rr(q,Be,qe,bt,nn){{var gn,tt={},$t=null,zn=null;qe!==void 0&&(Jt(qe),$t=""+qe),xt(Be)&&(Jt(Be.key),$t=""+Be.key),rt(Be)&&(zn=Be.ref,dn(Be,nn));for(gn in Be)Kt.call(Be,gn)&&!ke.hasOwnProperty(gn)&&(tt[gn]=Be[gn]);if(q&&q.defaultProps){var In=q.defaultProps;for(gn in In)tt[gn]===void 0&&(tt[gn]=In[gn])}if($t||zn){var an=typeof q=="function"?q.displayName||q.name||"Unknown":q;$t&&Xt(tt,an),zn&&wn(tt,an)}return Dn(q,$t,zn,nn,bt,Tt.current,tt)}}var Tn=V.ReactCurrentOwner,ca=V.ReactDebugCurrentFrame;function Fn(q){if(q){var Be=q._owner,qe=Mt(q.type,q._source,Be?Be.type:null);ca.setExtraStackFrame(qe)}else ca.setExtraStackFrame(null)}var Cn;Cn=!1;function fa(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function vr(){{if(Tn.current){var q=J(Tn.current.type);if(q)return`
Check the render method of \``+q+"`."}return""}}function wo(q){{if(q!==void 0){var Be=q.fileName.replace(/^.*[\\\/]/,""),qe=q.lineNumber;return`
Check your code at `+Be+":"+qe+"."}return""}}var Jo={};function es(q){{var Be=vr();if(!Be){var qe=typeof q=="string"?q:q.displayName||q.name;qe&&(Be=`
Check the top-level render call using <`+qe+">.")}return Be}}function Co(q,Be){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var qe=es(Be);if(Jo[qe])return;Jo[qe]=!0;var bt="";q&&q._owner&&q._owner!==Tn.current&&(bt=" It was passed a child from "+J(q._owner.type)+"."),Fn(q),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',qe,bt),Fn(null)}}function _o(q,Be){{if(typeof q!="object")return;if(kn(q))for(var qe=0;qe<q.length;qe++){var bt=q[qe];fa(bt)&&Co(bt,Be)}else if(fa(q))q._store&&(q._store.validated=!0);else if(q){var nn=I(q);if(typeof nn=="function"&&nn!==q.entries)for(var gn=nn.call(q),tt;!(tt=gn.next()).done;)fa(tt.value)&&Co(tt.value,Be)}}}function cr(q){{var Be=q.type;if(Be==null||typeof Be=="string")return;var qe;if(typeof Be=="function")qe=Be.propTypes;else if(typeof Be=="object"&&(Be.$$typeof===m||Be.$$typeof===x))qe=Be.propTypes;else return;if(qe){var bt=J(Be);Bt(qe,q.props,"prop",bt,q)}else if(Be.PropTypes!==void 0&&!Cn){Cn=!0;var nn=J(Be);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",nn||"Unknown")}typeof Be.getDefaultProps=="function"&&!Be.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Oa(q){{for(var Be=Object.keys(q.props),qe=0;qe<Be.length;qe++){var bt=Be[qe];if(bt!=="children"&&bt!=="key"){Fn(q),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",bt),Fn(null);break}}q.ref!==null&&(Fn(q),M("Invalid attribute `ref` supplied to `React.Fragment`."),Fn(null))}}function Di(q,Be,qe,bt,nn,gn){{var tt=se(q);if(!tt){var $t="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&($t+=" 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 zn=wo(nn);zn?$t+=zn:$t+=vr();var In;q===null?In="null":kn(q)?In="array":q!==void 0&&q.$$typeof===t?(In="<"+(J(q.type)||"Unknown")+" />",$t=" Did you accidentally export a JSX literal instead of a component?"):In=typeof q,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",In,$t)}var an=Rr(q,Be,qe,nn,gn);if(an==null)return an;if(tt){var Lr=Be.children;if(Lr!==void 0)if(bt)if(kn(Lr)){for(var fi=0;fi<Lr.length;fi++)_o(Lr[fi],q);Object.freeze&&Object.freeze(Lr)}else M("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 _o(Lr,q)}return q===i?Oa(an):cr(an),an}}var ka=Di;PA.Fragment=i,PA.jsxDEV=ka})();(function(e){e.exports=PA})(fk);const bo=fk.exports.Fragment,k=fk.exports.jsxDEV;var b3="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",dk=D.exports.createContext({});dk.displayName="ColorModeContext";function Pw(){const e=D.exports.useContext(dk);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function Ip(e,t){const{colorMode:r}=Pw();return r==="dark"?t:e}var Y1={light:"chakra-ui-light",dark:"chakra-ui-dark"};function XV(e={}){const{preventTransition:t=!0}=e,r={setDataset:i=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o?.()},setClassName(i){document.body.classList.add(i?Y1.dark:Y1.light),document.body.classList.remove(i?Y1.light:Y1.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),c=u=>{i(u.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(c):o.addEventListener("change",c),()=>{typeof o.removeListener=="function"?o.removeListener(c):o.removeEventListener("change",c)}},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 r}var ZV="chakra-ui-color-mode";function QV(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var JV=QV(ZV),sI=()=>{};function lI(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function S3(e){const{value:t,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:c}={},colorModeManager:u=JV}=e,h=o==="dark"?"dark":"light",[m,v]=D.exports.useState(()=>lI(u,h)),[S,x]=D.exports.useState(()=>lI(u)),{getSystemTheme:C,setClassName:_,setDataset:N,addListener:O}=D.exports.useMemo(()=>XV({preventTransition:c}),[c]),I=o==="system"&&!m?S:m,V=D.exports.useCallback(B=>{const j=B==="system"?C():B;v(j),_(j==="dark"),N(j),u.set(j)},[u,C,_,N]);hc(()=>{o==="system"&&x(C())},[]),D.exports.useEffect(()=>{const B=u.get();if(B){V(B);return}if(o==="system"){V("system");return}V(h)},[u,h,o,V]);const M=D.exports.useCallback(()=>{V(I==="dark"?"light":"dark")},[I,V]);D.exports.useEffect(()=>{if(!!i)return O(V)},[i,O,V]);const z=D.exports.useMemo(()=>({colorMode:t??I,toggleColorMode:t?sI:M,setColorMode:t?sI:V}),[I,M,V,t]);return k(dk.Provider,{value:z,children:r},void 0,!1,{fileName:b3,lineNumber:190,columnNumber:26},this)}S3.displayName="ColorModeProvider";var eH=new Set(["dark","light","system"]);function tH(e){let t=e;return eH.has(t)||(t="light"),t}function nH(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:i="chakra-ui-color-mode"}=e,o=tH(t),c=r==="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){}})();
`,h=`(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`!${c?u:h}`.trim()}function rH(e={}){return k("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:nH(e)}},void 0,!1,{fileName:b3,lineNumber:244,columnNumber:26},this)}var MA={exports:{}};(function(e,t){var r=200,i="__lodash_hash_undefined__",o=800,c=16,u=9007199254740991,h="[object Arguments]",m="[object Array]",v="[object AsyncFunction]",S="[object Boolean]",x="[object Date]",C="[object Error]",_="[object Function]",N="[object GeneratorFunction]",O="[object Map]",I="[object Number]",V="[object Null]",M="[object Object]",z="[object Proxy]",B="[object RegExp]",j="[object Set]",K="[object String]",X="[object Undefined]",fe="[object WeakMap]",me="[object ArrayBuffer]",se="[object DataView]",be="[object Float32Array]",Ke="[object Float64Array]",J="[object Int8Array]",ce="[object Int16Array]",Re="[object Int32Array]",Ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",Se="[object Uint16Array]",Te="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,Le={};Le[be]=Le[Ke]=Le[J]=Le[ce]=Le[Re]=Le[Ce]=Le[oe]=Le[Se]=Le[Te]=!0,Le[h]=Le[m]=Le[me]=Le[S]=Le[se]=Le[x]=Le[C]=Le[_]=Le[O]=Le[I]=Le[M]=Le[B]=Le[j]=Le[K]=Le[fe]=!1;var Ye=typeof cc=="object"&&cc&&cc.Object===Object&&cc,st=typeof self=="object"&&self&&self.Object===Object&&self,mt=Ye||st||Function("return this")(),Gt=t&&!t.nodeType&&t,Qe=Gt&&!0&&e&&!e.nodeType&&e,vt=Qe&&Qe.exports===Gt,Et=vt&&Ye.process,zt=function(){try{var W=Qe&&Qe.require&&Qe.require("util").types;return W||Et&&Et.binding&&Et.binding("util")}catch{}}(),We=zt&&zt.isTypedArray;function Yt(W,Q,de){switch(de.length){case 0:return W.call(Q);case 1:return W.call(Q,de[0]);case 2:return W.call(Q,de[0],de[1]);case 3:return W.call(Q,de[0],de[1],de[2])}return W.apply(Q,de)}function ye(W,Q){for(var de=-1,at=Array(W);++de<W;)at[de]=Q(de);return at}function Mt(W){return function(Q){return W(Q)}}function Kt(W,Q){return W?.[Q]}function St(W,Q){return function(de){return W(Q(de))}}var ar=Array.prototype,ir=Function.prototype,Bt=Object.prototype,fn=mt["__core-js_shared__"],kn=ir.toString,hn=Bt.hasOwnProperty,Ve=function(){var W=/[^.]+$/.exec(fn&&fn.keys&&fn.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),Ze=Bt.toString,Jt=kn.call(Object),Tt=RegExp("^"+kn.call(hn).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=vt?mt.Buffer:void 0,jt=mt.Symbol,xn=mt.Uint8Array,je=ke?ke.allocUnsafe:void 0,rt=St(Object.getPrototypeOf,Object),xt=Object.create,dn=Bt.propertyIsEnumerable,Xt=ar.splice,wn=jt?jt.toStringTag:void 0,Dn=function(){try{var W=Pa(Object,"defineProperty");return W({},"",{}),W}catch{}}(),Rr=ke?ke.isBuffer:void 0,Tn=Math.max,ca=Date.now,Fn=Pa(mt,"Map"),Cn=Pa(Object,"create"),fa=function(){function W(){}return function(Q){if(!ur(Q))return{};if(xt)return xt(Q);W.prototype=Q;var de=new W;return W.prototype=void 0,de}}();function vr(W){var Q=-1,de=W==null?0:W.length;for(this.clear();++Q<de;){var at=W[Q];this.set(at[0],at[1])}}function wo(){this.__data__=Cn?Cn(null):{},this.size=0}function Jo(W){var Q=this.has(W)&&delete this.__data__[W];return this.size-=Q?1:0,Q}function es(W){var Q=this.__data__;if(Cn){var de=Q[W];return de===i?void 0:de}return hn.call(Q,W)?Q[W]:void 0}function Co(W){var Q=this.__data__;return Cn?Q[W]!==void 0:hn.call(Q,W)}function _o(W,Q){var de=this.__data__;return this.size+=this.has(W)?0:1,de[W]=Cn&&Q===void 0?i:Q,this}vr.prototype.clear=wo,vr.prototype.delete=Jo,vr.prototype.get=es,vr.prototype.has=Co,vr.prototype.set=_o;function cr(W){var Q=-1,de=W==null?0:W.length;for(this.clear();++Q<de;){var at=W[Q];this.set(at[0],at[1])}}function Oa(){this.__data__=[],this.size=0}function Di(W){var Q=this.__data__,de=di(Q,W);if(de<0)return!1;var at=Q.length-1;return de==at?Q.pop():Xt.call(Q,de,1),--this.size,!0}function ka(W){var Q=this.__data__,de=di(Q,W);return de<0?void 0:Q[de][1]}function q(W){return di(this.__data__,W)>-1}function Be(W,Q){var de=this.__data__,at=di(de,W);return at<0?(++this.size,de.push([W,Q])):de[at][1]=Q,this}cr.prototype.clear=Oa,cr.prototype.delete=Di,cr.prototype.get=ka,cr.prototype.has=q,cr.prototype.set=Be;function qe(W){var Q=-1,de=W==null?0:W.length;for(this.clear();++Q<de;){var at=W[Q];this.set(at[0],at[1])}}function bt(){this.size=0,this.__data__={hash:new vr,map:new(Fn||cr),string:new vr}}function nn(W){var Q=ha(this,W).delete(W);return this.size-=Q?1:0,Q}function gn(W){return ha(this,W).get(W)}function tt(W){return ha(this,W).has(W)}function $t(W,Q){var de=ha(this,W),at=de.size;return de.set(W,Q),this.size+=de.size==at?0:1,this}qe.prototype.clear=bt,qe.prototype.delete=nn,qe.prototype.get=gn,qe.prototype.has=tt,qe.prototype.set=$t;function zn(W){var Q=this.__data__=new cr(W);this.size=Q.size}function In(){this.__data__=new cr,this.size=0}function an(W){var Q=this.__data__,de=Q.delete(W);return this.size=Q.size,de}function Lr(W){return this.__data__.get(W)}function fi(W){return this.__data__.has(W)}function Eo(W,Q){var de=this.__data__;if(de instanceof cr){var at=de.__data__;if(!Fn||at.length<r-1)return at.push([W,Q]),this.size=++de.size,this;de=this.__data__=new qe(at)}return de.set(W,Q),this.size=de.size,this}zn.prototype.clear=In,zn.prototype.delete=an,zn.prototype.get=Lr,zn.prototype.has=fi,zn.prototype.set=Eo;function da(W,Q){var de=ja(W),at=!de&&Ii(W),sn=!de&&!at&&er(W),Mn=!de&&!at&&!sn&&to(W),Vt=de||at||sn||Mn,b=Vt?ye(W.length,String):[],R=b.length;for(var $ in W)(Q||hn.call(W,$))&&!(Vt&&($=="length"||sn&&($=="offset"||$=="parent")||Mn&&($=="buffer"||$=="byteLength"||$=="byteOffset")||os($,R)))&&b.push($);return b}function Ji(W,Q,de){(de!==void 0&&!gr(W[Q],de)||de===void 0&&!(Q in W))&&Bs(W,Q,de)}function Su(W,Q,de){var at=W[Q];(!(hn.call(W,Q)&&gr(at,de))||de===void 0&&!(Q in W))&&Bs(W,Q,de)}function di(W,Q){for(var de=W.length;de--;)if(gr(W[de][0],Q))return de;return-1}function Bs(W,Q,de){Q=="__proto__"&&Dn?Dn(W,Q,{configurable:!0,enumerable:!0,value:de,writable:!0}):W[Q]=de}var Pi=Da();function Zt(W){return W==null?W===void 0?X:V:wn&&wn in Object(W)?is(W):$s(W)}function Mi(W){return ea(W)&&Zt(W)==h}function pa(W){if(!ur(W)||ko(W))return!1;var Q=Po(W)?Tt:we;return Q.test(Vs(W))}function To(W){return ea(W)&&Hr(W.length)&&!!Le[Zt(W)]}function ts(W){if(!ur(W))return hi(W);var Q=Ma(W),de=[];for(var at in W)at=="constructor"&&(Q||!hn.call(W,at))||de.push(at);return de}function No(W,Q,de,at,sn){W!==Q&&Pi(Q,function(Mn,Vt){if(sn||(sn=new zn),ur(Mn))ns(W,Q,Vt,de,No,at,sn);else{var b=at?at(mi(W,Vt),Mn,Vt+"",W,Q,sn):void 0;b===void 0&&(b=Mn),Ji(W,Vt,b)}},Hs)}function ns(W,Q,de,at,sn,Mn,Vt){var b=mi(W,de),R=mi(Q,de),$=Vt.get(R);if($){Ji(W,de,$);return}var G=Mn?Mn(b,R,de+"",W,Q,Vt):void 0,ne=G===void 0;if(ne){var Fe=ja(R),xe=!Fe&&er(R),$e=!Fe&&!xe&&to(R);G=R,Fe||xe||$e?ja(b)?G=b:Cr(b)?G=js(b):xe?(ne=!1,G=Ao(R,!0)):$e?(ne=!1,G=Us(R,!0)):G=[]:xu(R)||Ii(R)?(G=b,Ii(b)?G=vi(b):(!ur(b)||Po(b))&&(G=Oo(R))):ne=!1}ne&&(Vt.set(R,G),sn(G,R,at,Mn,Vt),Vt.delete(R)),Ji(W,de,G)}function rs(W,Q){return Do(on(W,Q,Al),W+"")}var Ro=Dn?function(W,Q){return Dn(W,"toString",{configurable:!0,enumerable:!1,value:Pn(Q),writable:!0})}:Al;function Ao(W,Q){if(Q)return W.slice();var de=W.length,at=je?je(de):new W.constructor(de);return W.copy(at),at}function as(W){var Q=new W.constructor(W.byteLength);return new xn(Q).set(new xn(W)),Q}function Us(W,Q){var de=Q?as(W.buffer):W.buffer;return new W.constructor(de,W.byteOffset,W.length)}function js(W,Q){var de=-1,at=W.length;for(Q||(Q=Array(at));++de<at;)Q[de]=W[de];return Q}function pi(W,Q,de,at){var sn=!de;de||(de={});for(var Mn=-1,Vt=Q.length;++Mn<Vt;){var b=Q[Mn],R=at?at(de[b],W[b],b,de,W):void 0;R===void 0&&(R=W[b]),sn?Bs(de,b,R):Su(de,b,R)}return de}function Dr(W){return rs(function(Q,de){var at=-1,sn=de.length,Mn=sn>1?de[sn-1]:void 0,Vt=sn>2?de[2]:void 0;for(Mn=W.length>3&&typeof Mn=="function"?(sn--,Mn):void 0,Vt&&Rl(de[0],de[1],Vt)&&(Mn=sn<3?void 0:Mn,sn=1),Q=Object(Q);++at<sn;){var b=de[at];b&&W(Q,b,at,Mn)}return Q})}function Da(W){return function(Q,de,at){for(var sn=-1,Mn=Object(Q),Vt=at(Q),b=Vt.length;b--;){var R=Vt[W?b:++sn];if(de(Mn[R],R,Mn)===!1)break}return Q}}function ha(W,Q){var de=W.__data__;return ma(Q)?de[typeof Q=="string"?"string":"hash"]:de.map}function Pa(W,Q){var de=Kt(W,Q);return pa(de)?de:void 0}function is(W){var Q=hn.call(W,wn),de=W[wn];try{W[wn]=void 0;var at=!0}catch{}var sn=Ze.call(W);return at&&(Q?W[wn]=de:delete W[wn]),sn}function Oo(W){return typeof W.constructor=="function"&&!Ma(W)?fa(rt(W)):{}}function os(W,Q){var de=typeof W;return Q=Q??u,!!Q&&(de=="number"||de!="symbol"&&Ie.test(W))&&W>-1&&W%1==0&&W<Q}function Rl(W,Q,de){if(!ur(de))return!1;var at=typeof Q;return(at=="number"?eo(de)&&os(Q,de.length):at=="string"&&Q in de)?gr(de[Q],W):!1}function ma(W){var Q=typeof W;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?W!=="__proto__":W===null}function ko(W){return!!Ve&&Ve in W}function Ma(W){var Q=W&&W.constructor,de=typeof Q=="function"&&Q.prototype||Bt;return W===de}function hi(W){var Q=[];if(W!=null)for(var de in Object(W))Q.push(de);return Q}function $s(W){return Ze.call(W)}function on(W,Q,de){return Q=Tn(Q===void 0?W.length-1:Q,0),function(){for(var at=arguments,sn=-1,Mn=Tn(at.length-Q,0),Vt=Array(Mn);++sn<Mn;)Vt[sn]=at[Q+sn];sn=-1;for(var b=Array(Q+1);++sn<Q;)b[sn]=at[sn];return b[Q]=de(Vt),Yt(W,this,b)}}function mi(W,Q){if(!(Q==="constructor"&&typeof W[Q]=="function")&&Q!="__proto__")return W[Q]}var Do=It(Ro);function It(W){var Q=0,de=0;return function(){var at=ca(),sn=c-(at-de);if(de=at,sn>0){if(++Q>=o)return arguments[0]}else Q=0;return W.apply(void 0,arguments)}}function Vs(W){if(W!=null){try{return kn.call(W)}catch{}try{return W+""}catch{}}return""}function gr(W,Q){return W===Q||W!==W&&Q!==Q}var Ii=Mi(function(){return arguments}())?Mi:function(W){return ea(W)&&hn.call(W,"callee")&&!dn.call(W,"callee")},ja=Array.isArray;function eo(W){return W!=null&&Hr(W.length)&&!Po(W)}function Cr(W){return ea(W)&&eo(W)}var er=Rr||Ia;function Po(W){if(!ur(W))return!1;var Q=Zt(W);return Q==_||Q==N||Q==v||Q==z}function Hr(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=u}function ur(W){var Q=typeof W;return W!=null&&(Q=="object"||Q=="function")}function ea(W){return W!=null&&typeof W=="object"}function xu(W){if(!ea(W)||Zt(W)!=M)return!1;var Q=rt(W);if(Q===null)return!0;var de=hn.call(Q,"constructor")&&Q.constructor;return typeof de=="function"&&de instanceof de&&kn.call(de)==Jt}var to=We?Mt(We):To;function vi(W){return pi(W,Hs(W))}function Hs(W){return eo(W)?da(W,!0):ts(W)}var pn=Dr(function(W,Q,de,at){No(W,Q,de,at)});function Pn(W){return function(){return W}}function Al(W){return W}function Ia(){return!1}e.exports=pn})(MA,MA.exports);const $f=MA.exports;function lu(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Dm(e,...t){return aH(e)?e(...t):e}var aH=e=>typeof e=="function",iH=e=>/!(important)?$/.test(e),uI=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,IA=(e,t)=>r=>{const i=String(t),o=iH(i),c=uI(i),u=e?`${e}.${c}`:c;let h=lu(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return h=uI(h),o?`${h} !important`:h};function Jy(e){const{scale:t,transform:r,compose:i}=e;return(c,u)=>{const h=IA(t,c)(u);let m=r?.(h,u)??h;return i&&(m=i(m,u)),m}}var q1=(...e)=>t=>e.reduce((r,i)=>i(r),t);function vl(e,t){return r=>{const i={property:r,scale:e};return i.transform=Jy({scale:e,transform:t}),i}}var oH=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function sH(e){const{property:t,scale:r,transform:i}=e;return{scale:r,property:oH(t),transform:r?Jy({scale:r,compose:i}):i}}var x3=["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 lH(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...x3].join(" ")}function uH(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...x3].join(" ")}var cH={"--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(" ")},fH={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 dH(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 pH={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},w3="& > :not(style) ~ :not(style)",hH={[w3]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},mH={[w3]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},LA={"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"},vH=new Set(Object.values(LA)),C3=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),gH=e=>e.trim();function yH(e,t){var r;if(e==null||C3.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:c}=((r=i.exec(e))==null?void 0:r.groups)??{};if(!o||!c)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[h,...m]=c.split(",").map(gH).filter(Boolean);if(m?.length===0)return e;const v=h in LA?LA[h]:h;m.unshift(v);const S=m.map(x=>{if(vH.has(x))return x;const C=x.indexOf(" "),[_,N]=C!==-1?[x.substr(0,C),x.substr(C+1)]:[x],O=_3(N)?N:N&&N.split(" "),I=`colors.${_}`,V=I in t.__cssMap?t.__cssMap[I].varRef:_;return O?[V,...Array.isArray(O)?O:[O]].join(" "):V});return`${u}(${S.join(", ")})`}var _3=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),bH=(e,t)=>yH(e,t??{});function SH(e){return/^var\(--.+\)$/.test(e)}var xH=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Ql=e=>t=>`${e}(${t})`,Wn={filter(e){return e!=="auto"?e:cH},backdropFilter(e){return e!=="auto"?e:fH},ring(e){return dH(Wn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?lH():e==="auto-gpu"?uH():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=xH(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(SH(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:bH,blur:Ql("blur"),opacity:Ql("opacity"),brightness:Ql("brightness"),contrast:Ql("contrast"),dropShadow:Ql("drop-shadow"),grayscale:Ql("grayscale"),hueRotate:Ql("hue-rotate"),invert:Ql("invert"),saturate:Ql("saturate"),sepia:Ql("sepia"),bgImage(e){return e==null||_3(e)||C3.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:r}=pH[e]??{},i={flexDirection:e};return t&&(i[t]=1),r&&(i[r]=1),i}},re={borderWidths:vl("borderWidths"),borderStyles:vl("borderStyles"),colors:vl("colors"),borders:vl("borders"),radii:vl("radii",Wn.px),space:vl("space",q1(Wn.vh,Wn.px)),spaceT:vl("space",q1(Wn.vh,Wn.px)),degreeT(e){return{property:e,transform:Wn.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:Jy({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:vl("sizes",q1(Wn.vh,Wn.px)),sizesT:vl("sizes",q1(Wn.vh,Wn.fraction)),shadows:vl("shadows"),logical:sH,blur:vl("blur",Wn.blur)},_x={background:re.colors("background"),backgroundColor:re.colors("backgroundColor"),backgroundImage:re.propT("backgroundImage",Wn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Wn.bgClip},bgSize:re.prop("backgroundSize"),bgPosition:re.prop("backgroundPosition"),bg:re.colors("background"),bgColor:re.colors("backgroundColor"),bgPos:re.prop("backgroundPosition"),bgRepeat:re.prop("backgroundRepeat"),bgAttachment:re.prop("backgroundAttachment"),bgGradient:re.propT("backgroundImage",Wn.gradient),bgClip:{transform:Wn.bgClip}};Object.assign(_x,{bgImage:_x.backgroundImage,bgImg:_x.backgroundImage});var Zn={border:re.borders("border"),borderWidth:re.borderWidths("borderWidth"),borderStyle:re.borderStyles("borderStyle"),borderColor:re.colors("borderColor"),borderRadius:re.radii("borderRadius"),borderTop:re.borders("borderTop"),borderBlockStart:re.borders("borderBlockStart"),borderTopLeftRadius:re.radii("borderTopLeftRadius"),borderStartStartRadius:re.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:re.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:re.radii("borderTopRightRadius"),borderStartEndRadius:re.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:re.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:re.borders("borderRight"),borderInlineEnd:re.borders("borderInlineEnd"),borderBottom:re.borders("borderBottom"),borderBlockEnd:re.borders("borderBlockEnd"),borderBottomLeftRadius:re.radii("borderBottomLeftRadius"),borderBottomRightRadius:re.radii("borderBottomRightRadius"),borderLeft:re.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:re.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:re.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:re.borders(["borderLeft","borderRight"]),borderInline:re.borders("borderInline"),borderY:re.borders(["borderTop","borderBottom"]),borderBlock:re.borders("borderBlock"),borderTopWidth:re.borderWidths("borderTopWidth"),borderBlockStartWidth:re.borderWidths("borderBlockStartWidth"),borderTopColor:re.colors("borderTopColor"),borderBlockStartColor:re.colors("borderBlockStartColor"),borderTopStyle:re.borderStyles("borderTopStyle"),borderBlockStartStyle:re.borderStyles("borderBlockStartStyle"),borderBottomWidth:re.borderWidths("borderBottomWidth"),borderBlockEndWidth:re.borderWidths("borderBlockEndWidth"),borderBottomColor:re.colors("borderBottomColor"),borderBlockEndColor:re.colors("borderBlockEndColor"),borderBottomStyle:re.borderStyles("borderBottomStyle"),borderBlockEndStyle:re.borderStyles("borderBlockEndStyle"),borderLeftWidth:re.borderWidths("borderLeftWidth"),borderInlineStartWidth:re.borderWidths("borderInlineStartWidth"),borderLeftColor:re.colors("borderLeftColor"),borderInlineStartColor:re.colors("borderInlineStartColor"),borderLeftStyle:re.borderStyles("borderLeftStyle"),borderInlineStartStyle:re.borderStyles("borderInlineStartStyle"),borderRightWidth:re.borderWidths("borderRightWidth"),borderInlineEndWidth:re.borderWidths("borderInlineEndWidth"),borderRightColor:re.colors("borderRightColor"),borderInlineEndColor:re.colors("borderInlineEndColor"),borderRightStyle:re.borderStyles("borderRightStyle"),borderInlineEndStyle:re.borderStyles("borderInlineEndStyle"),borderTopRadius:re.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:re.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:re.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:re.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Zn,{rounded:Zn.borderRadius,roundedTop:Zn.borderTopRadius,roundedTopLeft:Zn.borderTopLeftRadius,roundedTopRight:Zn.borderTopRightRadius,roundedTopStart:Zn.borderStartStartRadius,roundedTopEnd:Zn.borderStartEndRadius,roundedBottom:Zn.borderBottomRadius,roundedBottomLeft:Zn.borderBottomLeftRadius,roundedBottomRight:Zn.borderBottomRightRadius,roundedBottomStart:Zn.borderEndStartRadius,roundedBottomEnd:Zn.borderEndEndRadius,roundedLeft:Zn.borderLeftRadius,roundedRight:Zn.borderRightRadius,roundedStart:Zn.borderInlineStartRadius,roundedEnd:Zn.borderInlineEndRadius,borderStart:Zn.borderInlineStart,borderEnd:Zn.borderInlineEnd,borderTopStartRadius:Zn.borderStartStartRadius,borderTopEndRadius:Zn.borderStartEndRadius,borderBottomStartRadius:Zn.borderEndStartRadius,borderBottomEndRadius:Zn.borderEndEndRadius,borderStartRadius:Zn.borderInlineStartRadius,borderEndRadius:Zn.borderInlineEndRadius,borderStartWidth:Zn.borderInlineStartWidth,borderEndWidth:Zn.borderInlineEndWidth,borderStartColor:Zn.borderInlineStartColor,borderEndColor:Zn.borderInlineEndColor,borderStartStyle:Zn.borderInlineStartStyle,borderEndStyle:Zn.borderInlineEndStyle});var wH={color:re.colors("color"),textColor:re.colors("color"),fill:re.colors("fill"),stroke:re.colors("stroke")},FA={boxShadow:re.shadows("boxShadow"),mixBlendMode:!0,blendMode:re.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:re.prop("backgroundBlendMode"),opacity:!0};Object.assign(FA,{shadow:FA.boxShadow});var CH={filter:{transform:Wn.filter},blur:re.blur("--chakra-blur"),brightness:re.propT("--chakra-brightness",Wn.brightness),contrast:re.propT("--chakra-contrast",Wn.contrast),hueRotate:re.degreeT("--chakra-hue-rotate"),invert:re.propT("--chakra-invert",Wn.invert),saturate:re.propT("--chakra-saturate",Wn.saturate),dropShadow:re.propT("--chakra-drop-shadow",Wn.dropShadow),backdropFilter:{transform:Wn.backdropFilter},backdropBlur:re.blur("--chakra-backdrop-blur"),backdropBrightness:re.propT("--chakra-backdrop-brightness",Wn.brightness),backdropContrast:re.propT("--chakra-backdrop-contrast",Wn.contrast),backdropHueRotate:re.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:re.propT("--chakra-backdrop-invert",Wn.invert),backdropSaturate:re.propT("--chakra-backdrop-saturate",Wn.saturate)},Gx={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Wn.flexDirection},experimental_spaceX:{static:hH,transform:Jy({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:mH,transform:Jy({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:re.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:re.space("gap"),rowGap:re.space("rowGap"),columnGap:re.space("columnGap")};Object.assign(Gx,{flexDir:Gx.flexDirection});var E3={gridGap:re.space("gridGap"),gridColumnGap:re.space("gridColumnGap"),gridRowGap:re.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},_H={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Wn.outline},outlineOffset:!0,outlineColor:re.colors("outlineColor")},Ds={width:re.sizesT("width"),inlineSize:re.sizesT("inlineSize"),height:re.sizes("height"),blockSize:re.sizes("blockSize"),boxSize:re.sizes(["width","height"]),minWidth:re.sizes("minWidth"),minInlineSize:re.sizes("minInlineSize"),minHeight:re.sizes("minHeight"),minBlockSize:re.sizes("minBlockSize"),maxWidth:re.sizes("maxWidth"),maxInlineSize:re.sizes("maxInlineSize"),maxHeight:re.sizes("maxHeight"),maxBlockSize:re.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:re.propT("float",Wn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ds,{w:Ds.width,h:Ds.height,minW:Ds.minWidth,maxW:Ds.maxWidth,minH:Ds.minHeight,maxH:Ds.maxHeight,overscroll:Ds.overscrollBehavior,overscrollX:Ds.overscrollBehaviorX,overscrollY:Ds.overscrollBehaviorY});var EH={listStyleType:!0,listStylePosition:!0,listStylePos:re.prop("listStylePosition"),listStyleImage:!0,listStyleImg:re.prop("listStyleImage")};function TH(e,t,r,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?r:e}var NH=e=>{const t=new WeakMap;return(i,o,c,u)=>{if(typeof i>"u")return e(i,o,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(o))return h.get(o);const m=e(i,o,c,u);return h.set(o,m),m}},RH=NH(TH),AH={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},OH={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},jR=(e,t,r)=>{const i={},o=RH(e,t,{});for(const c in o)c in r&&r[c]!=null||(i[c]=o[c]);return i},kH={srOnly:{transform(e){return e===!0?AH:e==="focusable"?OH:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>jR(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>jR(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>jR(t,e,r)}},zy={position:!0,pos:re.prop("position"),zIndex:re.prop("zIndex","zIndices"),inset:re.spaceT("inset"),insetX:re.spaceT(["left","right"]),insetInline:re.spaceT("insetInline"),insetY:re.spaceT(["top","bottom"]),insetBlock:re.spaceT("insetBlock"),top:re.spaceT("top"),insetBlockStart:re.spaceT("insetBlockStart"),bottom:re.spaceT("bottom"),insetBlockEnd:re.spaceT("insetBlockEnd"),left:re.spaceT("left"),insetInlineStart:re.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:re.spaceT("right"),insetInlineEnd:re.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(zy,{insetStart:zy.insetInlineStart,insetEnd:zy.insetInlineEnd});var DH={ring:{transform:Wn.ring},ringColor:re.colors("--chakra-ring-color"),ringOffset:re.prop("--chakra-ring-offset-width"),ringOffsetColor:re.colors("--chakra-ring-offset-color"),ringInset:re.prop("--chakra-ring-inset")},Tr={margin:re.spaceT("margin"),marginTop:re.spaceT("marginTop"),marginBlockStart:re.spaceT("marginBlockStart"),marginRight:re.spaceT("marginRight"),marginInlineEnd:re.spaceT("marginInlineEnd"),marginBottom:re.spaceT("marginBottom"),marginBlockEnd:re.spaceT("marginBlockEnd"),marginLeft:re.spaceT("marginLeft"),marginInlineStart:re.spaceT("marginInlineStart"),marginX:re.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:re.spaceT("marginInline"),marginY:re.spaceT(["marginTop","marginBottom"]),marginBlock:re.spaceT("marginBlock"),padding:re.space("padding"),paddingTop:re.space("paddingTop"),paddingBlockStart:re.space("paddingBlockStart"),paddingRight:re.space("paddingRight"),paddingBottom:re.space("paddingBottom"),paddingBlockEnd:re.space("paddingBlockEnd"),paddingLeft:re.space("paddingLeft"),paddingInlineStart:re.space("paddingInlineStart"),paddingInlineEnd:re.space("paddingInlineEnd"),paddingX:re.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:re.space("paddingInline"),paddingY:re.space(["paddingTop","paddingBottom"]),paddingBlock:re.space("paddingBlock")};Object.assign(Tr,{m:Tr.margin,mt:Tr.marginTop,mr:Tr.marginRight,me:Tr.marginInlineEnd,marginEnd:Tr.marginInlineEnd,mb:Tr.marginBottom,ml:Tr.marginLeft,ms:Tr.marginInlineStart,marginStart:Tr.marginInlineStart,mx:Tr.marginX,my:Tr.marginY,p:Tr.padding,pt:Tr.paddingTop,py:Tr.paddingY,px:Tr.paddingX,pb:Tr.paddingBottom,pl:Tr.paddingLeft,ps:Tr.paddingInlineStart,paddingStart:Tr.paddingInlineStart,pr:Tr.paddingRight,pe:Tr.paddingInlineEnd,paddingEnd:Tr.paddingInlineEnd});var PH={textDecorationColor:re.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:re.shadows("textShadow")},MH={clipPath:!0,transform:re.propT("transform",Wn.transform),transformOrigin:!0,translateX:re.spaceT("--chakra-translate-x"),translateY:re.spaceT("--chakra-translate-y"),skewX:re.degreeT("--chakra-skew-x"),skewY:re.degreeT("--chakra-skew-y"),scaleX:re.prop("--chakra-scale-x"),scaleY:re.prop("--chakra-scale-y"),scale:re.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:re.degreeT("--chakra-rotate")},IH={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:re.prop("transitionDuration","transition.duration"),transitionProperty:re.prop("transitionProperty","transition.property"),transitionTimingFunction:re.prop("transitionTimingFunction","transition.easing")},LH={fontFamily:re.prop("fontFamily","fonts"),fontSize:re.prop("fontSize","fontSizes",Wn.px),fontWeight:re.prop("fontWeight","fontWeights"),lineHeight:re.prop("lineHeight","lineHeights"),letterSpacing:re.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"}},FH={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:re.spaceT("scrollMargin"),scrollMarginTop:re.spaceT("scrollMarginTop"),scrollMarginBottom:re.spaceT("scrollMarginBottom"),scrollMarginLeft:re.spaceT("scrollMarginLeft"),scrollMarginRight:re.spaceT("scrollMarginRight"),scrollMarginX:re.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:re.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:re.spaceT("scrollPadding"),scrollPaddingTop:re.spaceT("scrollPaddingTop"),scrollPaddingBottom:re.spaceT("scrollPaddingBottom"),scrollPaddingLeft:re.spaceT("scrollPaddingLeft"),scrollPaddingRight:re.spaceT("scrollPaddingRight"),scrollPaddingX:re.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:re.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function T3(e){return lu(e)&&e.reference?e.reference:String(e)}var Mw=(e,...t)=>t.map(T3).join(` ${e} `).replace(/calc/g,""),cI=(...e)=>`calc(${Mw("+",...e)})`,fI=(...e)=>`calc(${Mw("-",...e)})`,zA=(...e)=>`calc(${Mw("*",...e)})`,dI=(...e)=>`calc(${Mw("/",...e)})`,pI=e=>{const t=T3(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:zA(t,-1)},Ap=Object.assign(e=>({add:(...t)=>Ap(cI(e,...t)),subtract:(...t)=>Ap(fI(e,...t)),multiply:(...t)=>Ap(zA(e,...t)),divide:(...t)=>Ap(dI(e,...t)),negate:()=>Ap(pI(e)),toString:()=>e.toString()}),{add:cI,subtract:fI,multiply:zA,divide:dI,negate:pI});function zH(e,t="-"){return e.replace(/\s+/g,t)}function BH(e){const t=zH(e.toString());return jH(UH(t))}function UH(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function jH(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function $H(e,t=""){return[t,e].filter(Boolean).join("-")}function VH(e,t){return`var(${e}${t?`, ${t}`:""})`}function HH(e,t=""){return BH(`--${$H(e,t)}`)}function Xf(e,t,r){const i=HH(e,r);return{variable:i,reference:VH(i,t)}}function WH(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function GH(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function YH(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function BA(e){if(e==null)return e;const{unitless:t}=YH(e);return t||typeof e=="number"?`${e}px`:e}var N3=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,pk=e=>Object.fromEntries(Object.entries(e).sort(N3));function hI(e){const t=pk(e);return Object.assign(Object.values(t),t)}function qH(e){const t=Object.keys(pk(e));return new Set(t)}function mI(e){if(!e)return e;e=BA(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Py(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${BA(e)})`),t&&r.push("and",`(max-width: ${BA(t)})`),r.join(" ")}function KH(e){if(!e)return null;e.base=e.base??"0px";const t=hI(e),r=Object.entries(e).sort(N3).map(([c,u],h,m)=>{let[,v]=m[h+1]??[];return v=parseFloat(v)>0?mI(v):void 0,{_minW:mI(u),breakpoint:c,minW:u,maxW:v,maxWQuery:Py(null,v),minWQuery:Py(u),minMaxQuery:Py(u,v)}}),i=qH(e),o=Array.from(i.values());return{keys:i,normalized:t,isResponsive(c){const u=Object.keys(c);return u.length>0&&u.every(h=>i.has(h))},asObject:pk(e),asArray:hI(e),details:r,media:[null,...t.map(c=>Py(c)).slice(1)],toArrayValue(c){if(!WH(c))throw new Error("toArrayValue: value must be an object");const u=o.map(h=>c[h]??null);for(;GH(u)===null;)u.pop();return u},toObjectValue(c){if(!Array.isArray(c))throw new Error("toObjectValue: value must be an array");return c.reduce((u,h,m)=>{const v=o[m];return v!=null&&h!=null&&(u[v]=h),u},{})}}}var ai={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}`},Sf=e=>R3(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ac=e=>R3(t=>e(t,"~ &"),"[data-peer]",".peer"),R3=(e,...t)=>t.map(e).join(", "),Iw={_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:Sf(ai.hover),_peerHover:ac(ai.hover),_groupFocus:Sf(ai.focus),_peerFocus:ac(ai.focus),_groupFocusVisible:Sf(ai.focusVisible),_peerFocusVisible:ac(ai.focusVisible),_groupActive:Sf(ai.active),_peerActive:ac(ai.active),_groupDisabled:Sf(ai.disabled),_peerDisabled:ac(ai.disabled),_groupInvalid:Sf(ai.invalid),_peerInvalid:ac(ai.invalid),_groupChecked:Sf(ai.checked),_peerChecked:ac(ai.checked),_groupFocusWithin:Sf(ai.focusWithin),_peerFocusWithin:ac(ai.focusWithin),_peerPlaceholderShown:ac(ai.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]"},XH=Object.keys(Iw);function vI(e,t){return Xf(String(e).replace(/\./g,"-"),void 0,t)}function ZH(e,t){let r={};const i={};for(const[o,c]of Object.entries(e)){const{isSemantic:u,value:h}=c,{variable:m,reference:v}=vI(o,t?.cssVarPrefix);if(!u){if(o.startsWith("space")){const C=o.split("."),[_,...N]=C,O=`${_}.-${N.join(".")}`,I=Ap.negate(h),V=Ap.negate(v);i[O]={value:I,var:m,varRef:V}}r[m]=h,i[o]={value:h,var:m,varRef:v};continue}const S=C=>{const N=[String(o).split(".")[0],C].join(".");if(!e[N])return C;const{reference:I}=vI(N,t?.cssVarPrefix);return I},x=lu(h)?h:{default:h};r=$f(r,Object.entries(x).reduce((C,[_,N])=>{var O;const I=S(N);if(_==="default")return C[m]=I,C;const V=((O=Iw)==null?void 0:O[_])??_;return C[V]={[m]:I},C},{})),i[o]={value:v,var:m,varRef:v}}return{cssVars:r,cssMap:i}}function QH(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function JH(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var e8=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function t8(e){return JH(e,e8)}function n8(e){return e.semanticTokens}function r8(e){const{__cssMap:t,__cssVars:r,__breakpoints:i,...o}=e;return o}function a8({tokens:e,semanticTokens:t}){const r=Object.entries(UA(e)??{}).map(([o,c])=>[o,{isSemantic:!1,value:c}]),i=Object.entries(UA(t,1)??{}).map(([o,c])=>[o,{isSemantic:!0,value:c}]);return Object.fromEntries([...r,...i])}function UA(e,t=1/0){return!lu(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((r,[i,o])=>(lu(o)||Array.isArray(o)?Object.entries(UA(o,t-1)).forEach(([c,u])=>{r[`${i}.${c}`]=u}):r[i]=o,r),{})}function i8(e){var t;const r=r8(e),i=t8(r),o=n8(r),c=a8({tokens:i,semanticTokens:o}),u=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:h,cssVars:m}=ZH(c,{cssVarPrefix:u});return Object.assign(r,{__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:h,__breakpoints:KH(r.breakpoints)}),r}var hk=$f({},_x,Zn,wH,Gx,Ds,CH,DH,_H,E3,kH,zy,FA,Tr,FH,LH,PH,MH,EH,IH),o8=Object.assign({},Tr,Ds,Gx,E3,zy),s8=Object.keys(o8),l8=[...Object.keys(hk),...XH],u8={...hk,...Iw},c8=e=>e in u8;function f8(e){return/^var\(--.+\)$/.test(e)}var d8=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!f8(t),p8=(e,t)=>{if(t==null)return t;const r=h=>{var m,v;return(v=(m=e.__cssMap)==null?void 0:m[h])==null?void 0:v.varRef},i=h=>r(h)??h,o=t.split(",").map(h=>h.trim()),[c,u]=o;return t=r(c)??i(u)??i(t),t};function h8(e){const{configs:t={},pseudos:r={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:c,media:u}=i.__breakpoints,h=(m,v=!1)=>{var S;const x=Dm(m,i);let C={};for(let _ in x){let N=Dm(x[_],i);if(N==null)continue;if(Array.isArray(N)||lu(N)&&o(N)){let M=Array.isArray(N)?N:c(N);M=M.slice(0,u.length);for(let z=0;z<M.length;z++){const B=u[z],j=M[z];B?j==null?C[B]??(C[B]={}):C[B]=Object.assign({},C[B],h({[_]:j},!0)):C=Object.assign({},C,h({...x,[_]:j},!1))}continue}if(_ in r&&(_=r[_]),d8(_,N)&&(N=p8(i,N)),lu(N)){C[_]=Object.assign({},C[_],h(N,!0));continue}let O=t[_];if(O===!0&&(O={property:_}),!v&&O?.static){const M=Dm(O.static,i);C=Object.assign({},C,M)}let I=((S=O?.transform)==null?void 0:S.call(O,N,i,x))??N;if(I=O?.processResult?h(I,!0):I,lu(I)){C=Object.assign({},C,I);continue}const V=Dm(O?.property,i);if(V){if(Array.isArray(V)){for(const M of V)C[M]=I;continue}V==="&"&&lu(I)?C=Object.assign({},C,I):C[V]=I;continue}C[_]=I}return C};return h}var A3=e=>t=>h8({theme:t,pseudos:Iw,configs:hk})(e);function kr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function m8(e,t){if(Array.isArray(e))return e;if(lu(e))return t(e);if(e!=null)return[e]}function v8(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function g8(e){const t=e.__breakpoints;return function(i,o,c,u){var h,m;if(!t)return;const v={},S=m8(c,t.toArrayValue);if(!S)return v;const x=S.length,C=x===1,_=!!i.parts;for(let N=0;N<x;N++){const O=t.details[N],I=t.details[v8(S,N)],V=Py(O.minW,I?._minW),M=Dm((h=i[o])==null?void 0:h[S[N]],u);if(!!M){if(_){(m=i.parts)==null||m.forEach(z=>{$f(v,{[z]:C?M[z]:{[V]:M[z]}})});continue}if(!_){C?$f(v,M):v[V]=M;continue}v[V]=M}}return v}}function y8(e){return t=>{const{variant:r,size:i,theme:o}=t,c=g8(o);return $f({},Dm(e.baseStyle??{},t),c(e,"sizes",i,t),c(e,"variants",r,t))}}function b8(e,t,r){var i,o;return((o=(i=e.__cssMap)==null?void 0:i[`${t}.${r}`])==null?void 0:o.varRef)??r}function mr(e){return QH(e,["styleConfig","size","variant","colorScheme"])}function S8(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 x8(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 w8=function(){function e(r){var i=this;this._insertTag=function(o){var c;i.tags.length===0?i.insertionPoint?c=i.insertionPoint.nextSibling:i.prepend?c=i.container.firstChild:c=i.before:c=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,c),i.tags.push(o)},this.isSpeedy=r.speedy===void 0?!1:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.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(x8(this));var o=this.tags[this.tags.length-1];{var c=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;c&&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||!c}if(this.isSpeedy){var u=S8(o);try{u.insertRule(i,u.cssRules.length)}catch(h){/:(-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+'"',h)}}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}(),Oi="-ms-",Yx="-moz-",Qn="-webkit-",mk="comm",vk="rule",gk="decl",C8="@import",O3="@keyframes",_8=Math.abs,Lw=String.fromCharCode,E8=Object.assign;function T8(e,t){return(((t<<2^mo(e,0))<<2^mo(e,1))<<2^mo(e,2))<<2^mo(e,3)}function k3(e){return e.trim()}function N8(e,t){return(e=t.exec(e))?e[0]:e}function rr(e,t,r){return e.replace(t,r)}function jA(e,t){return e.indexOf(t)}function mo(e,t){return e.charCodeAt(t)|0}function eb(e,t,r){return e.slice(t,r)}function au(e){return e.length}function yk(e){return e.length}function K1(e,t){return t.push(e),e}function R8(e,t){return e.map(t).join("")}var Fw=1,Gm=1,D3=0,So=0,la=0,nv="";function zw(e,t,r,i,o,c,u){return{value:e,root:t,parent:r,type:i,props:o,children:c,line:Fw,column:Gm,length:u,return:""}}function wy(e,t){return E8(zw("",null,null,"",null,null,0),e,{length:-e.length},t)}function A8(){return la}function O8(){return la=So>0?mo(nv,--So):0,Gm--,la===10&&(Gm=1,Fw--),la}function Go(){return la=So<D3?mo(nv,So++):0,Gm++,la===10&&(Gm=1,Fw++),la}function uu(){return mo(nv,So)}function Ex(){return So}function Eb(e,t){return eb(nv,e,t)}function tb(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 P3(e){return Fw=Gm=1,D3=au(nv=e),So=0,[]}function M3(e){return nv="",e}function Tx(e){return k3(Eb(So-1,$A(e===91?e+2:e===40?e+1:e)))}function k8(e){for(;(la=uu())&&la<33;)Go();return tb(e)>2||tb(la)>3?"":" "}function D8(e,t){for(;--t&&Go()&&!(la<48||la>102||la>57&&la<65||la>70&&la<97););return Eb(e,Ex()+(t<6&&uu()==32&&Go()==32))}function $A(e){for(;Go();)switch(la){case e:return So;case 34:case 39:e!==34&&e!==39&&$A(la);break;case 40:e===41&&$A(e);break;case 92:Go();break}return So}function P8(e,t){for(;Go()&&e+la!==47+10;)if(e+la===42+42&&uu()===47)break;return"/*"+Eb(t,So-1)+"*"+Lw(e===47?e:Go())}function M8(e){for(;!tb(uu());)Go();return Eb(e,So)}function I8(e){return M3(Nx("",null,null,null,[""],e=P3(e),0,[0],e))}function Nx(e,t,r,i,o,c,u,h,m){for(var v=0,S=0,x=u,C=0,_=0,N=0,O=1,I=1,V=1,M=0,z="",B=o,j=c,K=i,X=z;I;)switch(N=M,M=Go()){case 40:if(N!=108&&X.charCodeAt(x-1)==58){jA(X+=rr(Tx(M),"&","&\f"),"&\f")!=-1&&(V=-1);break}case 34:case 39:case 91:X+=Tx(M);break;case 9:case 10:case 13:case 32:X+=k8(N);break;case 92:X+=D8(Ex()-1,7);continue;case 47:switch(uu()){case 42:case 47:K1(L8(P8(Go(),Ex()),t,r),m);break;default:X+="/"}break;case 123*O:h[v++]=au(X)*V;case 125*O:case 59:case 0:switch(M){case 0:case 125:I=0;case 59+S:_>0&&au(X)-x&&K1(_>32?yI(X+";",i,r,x-1):yI(rr(X," ","")+";",i,r,x-2),m);break;case 59:X+=";";default:if(K1(K=gI(X,t,r,v,S,o,h,z,B=[],j=[],x),c),M===123)if(S===0)Nx(X,t,K,K,B,c,x,h,j);else switch(C){case 100:case 109:case 115:Nx(e,K,K,i&&K1(gI(e,K,K,0,0,o,h,z,o,B=[],x),j),o,j,x,h,i?B:j);break;default:Nx(X,K,K,K,[""],j,0,h,j)}}v=S=_=0,O=V=1,z=X="",x=u;break;case 58:x=1+au(X),_=N;default:if(O<1){if(M==123)--O;else if(M==125&&O++==0&&O8()==125)continue}switch(X+=Lw(M),M*O){case 38:V=S>0?1:(X+="\f",-1);break;case 44:h[v++]=(au(X)-1)*V,V=1;break;case 64:uu()===45&&(X+=Tx(Go())),C=uu(),S=x=au(z=X+=M8(Ex())),M++;break;case 45:N===45&&au(X)==2&&(O=0)}}return c}function gI(e,t,r,i,o,c,u,h,m,v,S){for(var x=o-1,C=o===0?c:[""],_=yk(C),N=0,O=0,I=0;N<i;++N)for(var V=0,M=eb(e,x+1,x=_8(O=u[N])),z=e;V<_;++V)(z=k3(O>0?C[V]+" "+M:rr(M,/&\f/g,C[V])))&&(m[I++]=z);return zw(e,t,r,o===0?vk:h,m,v,S)}function L8(e,t,r){return zw(e,t,r,mk,Lw(A8()),eb(e,2,-2),0)}function yI(e,t,r,i){return zw(e,t,r,gk,eb(e,0,i),eb(e,i+1,-1),i)}function I3(e,t){switch(T8(e,t)){case 5103:return Qn+"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 Qn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qn+e+Yx+e+Oi+e+e;case 6828:case 4268:return Qn+e+Oi+e+e;case 6165:return Qn+e+Oi+"flex-"+e+e;case 5187:return Qn+e+rr(e,/(\w+).+(:[^]+)/,Qn+"box-$1$2"+Oi+"flex-$1$2")+e;case 5443:return Qn+e+Oi+"flex-item-"+rr(e,/flex-|-self/,"")+e;case 4675:return Qn+e+Oi+"flex-line-pack"+rr(e,/align-content|flex-|-self/,"")+e;case 5548:return Qn+e+Oi+rr(e,"shrink","negative")+e;case 5292:return Qn+e+Oi+rr(e,"basis","preferred-size")+e;case 6060:return Qn+"box-"+rr(e,"-grow","")+Qn+e+Oi+rr(e,"grow","positive")+e;case 4554:return Qn+rr(e,/([^-])(transform)/g,"$1"+Qn+"$2")+e;case 6187:return rr(rr(rr(e,/(zoom-|grab)/,Qn+"$1"),/(image-set)/,Qn+"$1"),e,"")+e;case 5495:case 3959:return rr(e,/(image-set\([^]*)/,Qn+"$1$`$1");case 4968:return rr(rr(e,/(.+:)(flex-)?(.*)/,Qn+"box-pack:$3"+Oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qn+e+e;case 4095:case 3583:case 4068:case 2532:return rr(e,/(.+)-inline(.+)/,Qn+"$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(au(e)-1-t>6)switch(mo(e,t+1)){case 109:if(mo(e,t+4)!==45)break;case 102:return rr(e,/(.+:)(.+)-([^]+)/,"$1"+Qn+"$2-$3$1"+Yx+(mo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~jA(e,"stretch")?I3(rr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mo(e,t+1)!==115)break;case 6444:switch(mo(e,au(e)-3-(~jA(e,"!important")&&10))){case 107:return rr(e,":",":"+Qn)+e;case 101:return rr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qn+(mo(e,14)===45?"inline-":"")+"box$3$1"+Qn+"$2$3$1"+Oi+"$2box$3")+e}break;case 5936:switch(mo(e,t+11)){case 114:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qn+e+Oi+rr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qn+e+Oi+e+e}return e}function Fm(e,t){for(var r="",i=yk(e),o=0;o<i;o++)r+=t(e[o],o,e,t)||"";return r}function F8(e,t,r,i){switch(e.type){case C8:case gk:return e.return=e.return||e.value;case mk:return"";case O3:return e.return=e.value+"{"+Fm(e.children,i)+"}";case vk:e.value=e.props.join(",")}return au(r=Fm(e.children,i))?e.return=e.value+"{"+r+"}":""}function z8(e){var t=yk(e);return function(r,i,o,c){for(var u="",h=0;h<t;h++)u+=e[h](r,i,o,c)||"";return u}}function B8(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case gk:e.return=I3(e.value,e.length);break;case O3:return Fm([wy(e,{value:rr(e.value,"@","@"+Qn)})],i);case vk:if(e.length)return R8(e.props,function(o){switch(N8(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fm([wy(e,{props:[rr(o,/:(read-\w+)/,":"+Yx+"$1")]})],i);case"::placeholder":return Fm([wy(e,{props:[rr(o,/:(plac\w+)/,":"+Qn+"input-$1")]}),wy(e,{props:[rr(o,/:(plac\w+)/,":"+Yx+"$1")]}),wy(e,{props:[rr(o,/:(plac\w+)/,Oi+"input-$1")]})],i)}return""})}}var bI=function(t){var r=new WeakMap;return function(i){if(r.has(i))return r.get(i);var o=t(i);return r.set(i,o),o}};function L3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var U8=function(t,r,i){for(var o=0,c=0;o=c,c=uu(),o===38&&c===12&&(r[i]=1),!tb(c);)Go();return Eb(t,So)},j8=function(t,r){var i=-1,o=44;do switch(tb(o)){case 0:o===38&&uu()===12&&(r[i]=1),t[i]+=U8(So-1,r,i);break;case 2:t[i]+=Tx(o);break;case 4:if(o===44){t[++i]=uu()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Lw(o)}while(o=Go());return t},$8=function(t,r){return M3(j8(P3(t),r))},SI=new WeakMap,V8=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=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&&r.charCodeAt(0)!==58&&!SI.get(i))&&!o){SI.set(t,!0);for(var c=[],u=$8(r,c),h=i.props,m=0,v=0;m<u.length;m++)for(var S=0;S<h.length;S++,v++)t.props[v]=c[m]?u[m].replace(/&\f/g,h[S]):h[S]+" "+u[m]}}},H8=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},W8="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",G8=function(t){return t.type==="comm"&&t.children.indexOf(W8)>-1},Y8=function(t){return function(r,i,o){if(!(r.type!=="rule"||t.compat)){var c=r.value.match(/(:first|:nth|:nth-last)-child/g);if(c){for(var u=r.parent===o[0],h=u?o[0].children:o,m=h.length-1;m>=0;m--){var v=h[m];if(v.line<r.line)break;if(v.column<r.column){if(G8(v))return;break}}c.forEach(function(S){console.error('The pseudo class "'+S+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+S.split("-child")[0]+'-of-type".')})}}}},F3=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},q8=function(t,r){for(var i=t-1;i>=0;i--)if(!F3(r[i]))return!0;return!1},xI=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},K8=function(t,r,i){!F3(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."),xI(t)):q8(r,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),xI(t)))},X8=[B8],Z8=function(t){var r=t.key;if(!r)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(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(O){var I=O.getAttribute("data-emotion");I.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var o=t.stylisPlugins||X8;if(/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var c={},u,h=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(O){for(var I=O.getAttribute("data-emotion").split(" "),V=1;V<I.length;V++)c[I[V]]=!0;h.push(O)});var m,v=[V8,H8];v.push(Y8({get compat(){return N.compat}}),K8);{var S,x=[F8,function(O){O.root||(O.return?S.insert(O.return):O.value&&O.type!==mk&&S.insert(O.value+"{}"))}],C=z8(v.concat(o,x)),_=function(I){return Fm(I8(I),C)};m=function(I,V,M,z){S=M,V.map!==void 0&&(S={insert:function(j){M.insert(j+V.map)}}),_(I?I+"{"+V.styles+"}":V.styles),z&&(N.inserted[V.name]=!0)}}var N={key:r,sheet:new w8({key:r,container:u,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:c,registered:{},insert:m};return N.sheet.hydrate(h),N};function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},nb.apply(this,arguments)}var Bw={exports:{}},or={};/** @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,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,S=e?Symbol.for("react.forward_ref"):60112,x=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,O=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,V=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function z(We){return typeof We=="string"||typeof We=="function"||We===i||We===v||We===c||We===o||We===x||We===C||typeof We=="object"&&We!==null&&(We.$$typeof===N||We.$$typeof===_||We.$$typeof===u||We.$$typeof===h||We.$$typeof===S||We.$$typeof===I||We.$$typeof===V||We.$$typeof===M||We.$$typeof===O)}function B(We){if(typeof We=="object"&&We!==null){var Yt=We.$$typeof;switch(Yt){case t:var ye=We.type;switch(ye){case m:case v:case i:case c:case o:case x:return ye;default:var Mt=ye&&ye.$$typeof;switch(Mt){case h:case S:case N:case _:case u:return Mt;default:return Yt}}case r:return Yt}}}var j=m,K=v,X=h,fe=u,me=t,se=S,be=i,Ke=N,J=_,ce=r,Re=c,Ce=o,oe=x,Se=!1;function Te(We){return Se||(Se=!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.")),pe(We)||B(We)===m}function pe(We){return B(We)===v}function we(We){return B(We)===h}function Ie(We){return B(We)===u}function Le(We){return typeof We=="object"&&We!==null&&We.$$typeof===t}function Ye(We){return B(We)===S}function st(We){return B(We)===i}function mt(We){return B(We)===N}function Gt(We){return B(We)===_}function Qe(We){return B(We)===r}function vt(We){return B(We)===c}function Et(We){return B(We)===o}function zt(We){return B(We)===x}or.AsyncMode=j,or.ConcurrentMode=K,or.ContextConsumer=X,or.ContextProvider=fe,or.Element=me,or.ForwardRef=se,or.Fragment=be,or.Lazy=Ke,or.Memo=J,or.Portal=ce,or.Profiler=Re,or.StrictMode=Ce,or.Suspense=oe,or.isAsyncMode=Te,or.isConcurrentMode=pe,or.isContextConsumer=we,or.isContextProvider=Ie,or.isElement=Le,or.isForwardRef=Ye,or.isFragment=st,or.isLazy=mt,or.isMemo=Gt,or.isPortal=Qe,or.isProfiler=vt,or.isStrictMode=Et,or.isSuspense=zt,or.isValidElementType=z,or.typeOf=B})();(function(e){e.exports=or})(Bw);var z3=Bw.exports,Q8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},J8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},B3={};B3[z3.ForwardRef]=Q8;B3[z3.Memo]=J8;var e7=!0;function bk(e,t,r){var i="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):i+=o+" "}),i}var Uw=function(t,r,i){var o=t.key+"-"+r.name;(i===!1||e7===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},jw=function(t,r,i){Uw(t,r,i);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var c=r;do t.insert(r===c?"."+o:"",c,t.sheet,!0),c=c.next;while(c!==void 0)}};function t7(e){for(var t=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>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 n7={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},wI=`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`,r7="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",a7=/[A-Z]|^ms/g,U3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sk=function(t){return t.charCodeAt(1)===45},CI=function(t){return t!=null&&typeof t!="boolean"},$R=L3(function(e){return Sk(e)?e:e.replace(a7,"-$&").toLowerCase()}),qx=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(U3,function(i,o,c){return iu={name:o,styles:c,next:iu},o})}return n7[t]!==1&&!Sk(t)&&typeof r=="number"&&r!==0?r+"px":r};{var i7=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o7=["normal","none","initial","inherit","unset"],s7=qx,l7=/^-ms-/,u7=/-(.)/g,_I={};qx=function(t,r){if(t==="content"&&(typeof r!="string"||o7.indexOf(r)===-1&&!i7.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=s7(t,r);return i!==""&&!Sk(t)&&t.indexOf("-")!==-1&&_I[t]===void 0&&(_I[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(l7,"ms-").replace(u7,function(o,c){return c.toUpperCase()})+"?")),i}}var j3="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rb(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(j3);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return iu={name:r.name,styles:r.styles,next:iu},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)iu={name:i.name,styles:i.styles,next:iu},i=i.next;var o=r.styles+";";return r.map!==void 0&&(o+=r.map),o}return c7(e,t,r)}case"function":{if(e!==void 0){var c=iu,u=r(e);return iu=c,rb(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 h=[],m=r.replace(U3,function(S,x,C){var _="animation"+h.length;return h.push("const "+_+" = keyframes`"+C.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+_+"}"});h.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(h,["`"+m+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+m+"`"))}break}if(t==null)return r;var v=t[r];return v!==void 0?v:r}function c7(e,t,r){var i="";if(Array.isArray(r))for(var o=0;o<r.length;o++)i+=rb(e,t,r[o])+";";else for(var c in r){var u=r[c];if(typeof u!="object")t!=null&&t[u]!==void 0?i+=c+"{"+t[u]+"}":CI(u)&&(i+=$R(c)+":"+qx(c,u)+";");else{if(c==="NO_COMPONENT_SELECTOR")throw new Error(j3);if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)CI(u[h])&&(i+=$R(c)+":"+qx(c,u[h])+";");else{var m=rb(e,t,u);switch(c){case"animation":case"animationName":{i+=$R(c)+":"+m+";";break}default:c==="undefined"&&console.error(r7),i+=c+"{"+m+"}"}}}}return i}var EI=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$3;$3=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var iu,Ym=function(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,c="";iu=void 0;var u=t[0];u==null||u.raw===void 0?(o=!1,c+=rb(i,r,u)):(u[0]===void 0&&console.error(wI),c+=u[0]);for(var h=1;h<t.length;h++)c+=rb(i,r,t[h]),o&&(u[h]===void 0&&console.error(wI),c+=u[h]);var m;c=c.replace($3,function(C){return m=C,""}),EI.lastIndex=0;for(var v="",S;(S=EI.exec(c))!==null;)v+="-"+S[1];var x=t7(c)+v;return{name:x,styles:c,map:m,next:iu,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)."}}},f7=function(t){return t()},V3=oI["useInsertionEffect"]?oI["useInsertionEffect"]:!1,xk=V3||f7,TI=V3||D.exports.useLayoutEffect,d7={}.hasOwnProperty,wk=D.exports.createContext(typeof HTMLElement<"u"?Z8({key:"css"}):null);wk.displayName="EmotionCacheContext";wk.Provider;var $w=function(t){return D.exports.forwardRef(function(r,i){var o=D.exports.useContext(wk);return t(r,o,i)})},Vf=D.exports.createContext({});Vf.displayName="EmotionThemeContext";var p7=function(t,r){if(typeof r=="function"){var i=r(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(r==null||typeof r!="object"||Array.isArray(r))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return nb({},t,r)},h7=bI(function(e){return bI(function(t){return p7(e,t)})}),m7=function(t){var r=D.exports.useContext(Vf);return t.theme!==r&&(r=h7(r)(t.theme)),D.exports.createElement(Vf.Provider,{value:r},t.children)},NI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",RI="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",v7=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Uw(r,i,o),xk(function(){return jw(r,i,o)}),null},g7=$w(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[NI],c=[i],u="";typeof e.className=="string"?u=bk(t.registered,c,e.className):e.className!=null&&(u=e.className+" ");var h=Ym(c,void 0,D.exports.useContext(Vf));if(h.name.indexOf("-")===-1){var m=e[RI];m&&(h=Ym([h,"label:"+m+";"]))}u+=t.key+"-"+h.name;var v={};for(var S in e)d7.call(e,S)&&S!=="css"&&S!==NI&&S!==RI&&(v[S]=e[S]);return v.ref=r,v.className=u,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(v7,{cache:t,serialized:h,isStringTag:typeof o=="string"}),D.exports.createElement(o,v))});g7.displayName="EmotionCssPropInternal";var y7={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"}}}},AI=!1,Tb=$w(function(e,t){!AI&&(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?"),AI=!0);var r=e.styles,i=Ym([r],void 0,D.exports.useContext(Vf)),o=D.exports.useRef();return TI(function(){var c=t.key+"-global",u=new t.sheet.constructor({key:c,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+c+" "+i.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",c),u.hydrate([m])),o.current=[u,h],function(){u.flush()}},[t]),TI(function(){var c=o.current,u=c[0],h=c[1];if(h){c[1]=!1;return}if(i.next!==void 0&&jw(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});Tb.displayName="EmotionGlobal";function b7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ym(t)}var Nb=function(){var t=b7.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},S7=function e(t){for(var r=t.length,i=0,o="";i<r;i++){var c=t[i];if(c!=null){var u=void 0;switch(typeof c){case"boolean":break;case"object":{if(Array.isArray(c))u=e(c);else{c.styles!==void 0&&c.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 h in c)c[h]&&h&&(u&&(u+=" "),u+=h)}break}default:u=c}u&&(o&&(o+=" "),o+=u)}}return o};function x7(e,t,r){var i=[],o=bk(e,i,r);return i.length<2?r:o+t(i)}var w7=function(t){var r=t.cache,i=t.serializedArr;return xk(function(){for(var o=0;o<i.length;o++)jw(r,i[o],!1)}),null},C7=$w(function(e,t){var r=!1,i=[],o=function(){if(r)throw new Error("css can only be used during render");for(var v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];var C=Ym(S,t.registered);return i.push(C),Uw(t,C,!1),t.key+"-"+C.name},c=function(){if(r)throw new Error("cx can only be used during render");for(var v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return x7(t.registered,o,S7(S))},u={css:o,cx:c,theme:D.exports.useContext(Vf)},h=e.children(u);return r=!0,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(w7,{cache:t,serializedArr:i}),h)});C7.displayName="EmotionClassNames";{var OI=!0,_7=typeof jest<"u";if(OI&&!_7){var kI=typeof globalThis<"u"?globalThis:OI?window:global,DI="__EMOTION_REACT_"+y7.version.split(".")[0]+"__";kI[DI]&&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."),kI[DI]=!0}}function Pm(e){return typeof e=="function"}function E7(e,t){const r={};return Object.keys(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),r}function T7(e,t,r,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?r:e}var N7=e=>{const t=new WeakMap;return(i,o,c,u)=>{if(typeof i>"u")return e(i,o,c);t.has(i)||t.set(i,new Map);const h=t.get(i);if(h.has(o))return h.get(o);const m=e(i,o,c,u);return h.set(o,m),m}},H3=N7(T7);function W3(e,t){const r={};return Object.keys(e).forEach(i=>{const o=e[i];t(o,i,e)&&(r[i]=o)}),r}var G3=e=>W3(e,t=>t!=null);function R7(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var A7=R7();function Y3(e,...t){return Pm(e)?e(...t):e}function O7(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var k7=(...e)=>t=>e.reduce((r,i)=>i(r),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function D7(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=D.exports.createContext(void 0);o.displayName=i;function c(){var u;const h=D.exports.useContext(o);if(!h&&t){const m=new Error(r);throw m.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,m,c),m}return h}return[o.Provider,c,o]}var P7=/^((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)-.*))$/,M7=L3(function(e){return P7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),I7=M7,L7=function(t){return t!=="theme"},PI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?I7:L7},MI=function(t,r,i){var o;if(r){var c=r.shouldForwardProp;o=t.__emotion_forwardProp&&c?function(u){return t.__emotion_forwardProp(u)&&c(u)}:c}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},II=`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`,F7=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Uw(r,i,o),xk(function(){return jw(r,i,o)}),null},z7=function e(t,r){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,c,u;r!==void 0&&(c=r.label,u=r.target);var h=MI(t,r,i),m=h||PI(o),v=!m("as");return function(){var S=arguments,x=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(c!==void 0&&x.push("label:"+c+";"),S[0]==null||S[0].raw===void 0)x.push.apply(x,S);else{S[0][0]===void 0&&console.error(II),x.push(S[0][0]);for(var C=S.length,_=1;_<C;_++)S[0][_]===void 0&&console.error(II),x.push(S[_],S[0][_])}var N=$w(function(O,I,V){var M=v&&O.as||o,z="",B=[],j=O;if(O.theme==null){j={};for(var K in O)j[K]=O[K];j.theme=D.exports.useContext(Vf)}typeof O.className=="string"?z=bk(I.registered,B,O.className):O.className!=null&&(z=O.className+" ");var X=Ym(x.concat(B),I.registered,j);z+=I.key+"-"+X.name,u!==void 0&&(z+=" "+u);var fe=v&&h===void 0?PI(M):m,me={};for(var se in O)v&&se==="as"||fe(se)&&(me[se]=O[se]);return me.className=z,me.ref=V,D.exports.createElement(D.exports.Fragment,null,D.exports.createElement(F7,{cache:I,serialized:X,isStringTag:typeof M=="string"}),D.exports.createElement(M,me))});return N.displayName=c!==void 0?c:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",N.defaultProps=t.defaultProps,N.__emotion_real=N,N.__emotion_base=o,N.__emotion_styles=x,N.__emotion_forwardProp=h,Object.defineProperty(N,"toString",{value:function(){return u===void 0?"NO_COMPONENT_SELECTOR":"."+u}}),N.withComponent=function(O,I){return e(O,nb({},r,I,{shouldForwardProp:MI(N,I,!0)})).apply(void 0,x)},N}},B7=["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"],VA=z7.bind();B7.forEach(function(e){VA[e]=VA(e)});var U7=typeof Element<"u",j7=typeof Map=="function",$7=typeof Set=="function",V7=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rx(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Rx(e[i],t[i]))return!1;return!0}var c;if(j7&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;for(c=e.entries();!(i=c.next()).done;)if(!Rx(i.value[1],t.get(i.value[0])))return!1;return!0}if($7&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(c=e.entries();!(i=c.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(V7&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;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),r=o.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(U7&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!Rx(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var H7=function(t,r){try{return Rx(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},Kx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function Ck(){const e=D.exports.useContext(Vf);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function q3(){const e=Pw(),t=Ck();return{...e,theme:t}}function W7(e,t,r){if(t==null)return t;const i=o=>{var c,u;return(u=(c=e.__breakpoints)==null?void 0:c.asArray)==null?void 0:u[o]};return i(t)??i(r)??r}function G7(e,t,r){if(t==null)return t;const i=o=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[o])==null?void 0:u.value};return i(t)??i(r)??r}function Y7(e,t,r){const i=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return c=>{const u=o.filter(Boolean),h=i.map((m,v)=>{if(e==="breakpoints")return W7(c,m,u[v]??m);const S=`${e}.${m}`;return G7(c,S,u[v]??m)});return Array.isArray(t)?h:h[0]}}function q7(e){const{cssVarsRoot:t,theme:r,children:i}=e,o=D.exports.useMemo(()=>i8(r),[r]);return k(m7,{theme:o,children:[k(K7,{root:t},void 0,!1,{fileName:Kx,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:Kx,lineNumber:80,columnNumber:26},this)}function K7({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k(Tb,{styles:r=>({[t]:r.__cssVars})},void 0,!1,{fileName:Kx,lineNumber:88,columnNumber:26},this)}D7({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function X7(){const{colorMode:e}=Pw();return k(Tb,{styles:t=>{const r=H3(t,"styles.global"),i=Y3(r,{theme:t,colorMode:e});return i?A3(i)(t):void 0}},void 0,!1,{fileName:Kx,lineNumber:104,columnNumber:26},this)}var Z7=new Set([...l8,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Q7=new Set(["htmlWidth","htmlHeight","htmlSize"]);function J7(e){return Q7.has(e)||!Z7.has(e)}var eW=({baseStyle:e})=>t=>{const{theme:r,css:i,__css:o,sx:c,...u}=t,h=W3(u,(x,C)=>c8(C)),m=Y3(e,t),v=Object.assign({},o,m,G3(h),c),S=A3(v)(t.theme);return i?[S,i]:S};function VR(e,t){const{baseStyle:r,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=J7);const o=eW({baseStyle:r});return VA(e,i)(o)}function et(e){return D.exports.forwardRef(e)}function K3(e,t={}){const{styleConfig:r,...i}=t,{theme:o,colorMode:c}=q3(),u=H3(o,`components.${e}`),h=r||u,m=$f({theme:o,colorMode:c},h?.defaultProps??{},G3(E7(i,["children"]))),v=D.exports.useRef({});if(h){const x=y8(h)(m);H7(v.current,x)||(v.current=x)}return v.current}function Qi(e,t={}){return K3(e,t)}function Zo(e,t={}){return K3(e,t)}function tW(){const e=new Map;return new Proxy(VR,{apply(t,r,i){return VR(...i)},get(t,r){return e.has(r)||e.set(r,VR(r)),e.get(r)}})}var Ge=tW();function nW(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Qr(e={}){const{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:c}=e,u=D.exports.createContext(void 0);u.displayName=t;function h(){var m;const v=D.exports.useContext(u);if(!v&&r){const S=new Error(c??nW(i,o));throw S.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,S,h),S}return v}return[u.Provider,h,u]}function rW(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 Zi(...e){return t=>{e.forEach(r=>{rW(r,t)})}}function aW(...e){return D.exports.useMemo(()=>Zi(...e),e)}function LI(e){return e.sort((t,r)=>{const i=t.compareDocumentPosition(r);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 iW=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function FI(e,t,r){let i=e+1;return r&&i>=t&&(i=0),i}function zI(e,t,r){let i=e-1;return r&&i<0&&(i=t),i}var HA=typeof window<"u"?D.exports.useLayoutEffect:D.exports.useEffect,Xx=e=>e,oW=class{descendants=new Map;register=e=>{if(e!=null)return iW(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=LI(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.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 r=FI(e,this.count(),t);return this.item(r)};nextEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),o=FI(i,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const r=zI(e,this.count()-1,t);return this.item(r)};prevEnabled=(e,t=!0)=>{const r=this.item(e);if(!r)return;const i=this.enabledIndexOf(r.node),o=zI(i,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),i=LI(r);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)}};function sW(){const e=D.exports.useRef(new oW);return HA(()=>()=>e.current.destroy()),e.current}var[lW,X3]=Qr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function uW(e){const t=X3(),[r,i]=D.exports.useState(-1),o=D.exports.useRef(null);HA(()=>()=>{!o.current||t.unregister(o.current)},[]),HA(()=>{if(!o.current)return;const u=Number(o.current.dataset.index);r!=u&&!Number.isNaN(u)&&i(u)});const c=Xx(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:Zi(c,o)}}function cW(){return[Xx(lW),()=>Xx(X3()),()=>sW(),o=>uW(o)]}var Jr=(...e)=>e.filter(Boolean).join(" "),X1="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",BI={path:k("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k("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:X1,lineNumber:14,columnNumber:22},globalThis),k("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:X1,lineNumber:18,columnNumber:23},globalThis),k("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:X1,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:X1,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},Tl=et((e,t)=>{const{as:r,viewBox:i,color:o="currentColor",focusable:c=!1,children:u,className:h,__css:m,...v}=e,S=Jr("chakra-icon",h),x={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},C={ref:t,focusable:c,className:S,__css:x},_=i??BI.viewBox;if(r&&typeof r!="string")return Ue.createElement(Ge.svg,{as:r,...C,...v});const N=u??BI.path;return Ue.createElement(Ge.svg,{verticalAlign:"middle",viewBox:_,...C,...v},N)});Tl.displayName="Icon";function ki(e,t=[]){const r=D.exports.useRef(e);return D.exports.useEffect(()=>{r.current=e}),D.exports.useCallback((...i)=>{var o;return(o=r.current)==null?void 0:o.call(r,...i)},t)}function fW(e){const{value:t,defaultValue:r,onChange:i,shouldUpdate:o=(C,_)=>C!==_}=e,c=ki(i),u=ki(o),[h,m]=D.exports.useState(r),v=t!==void 0,S=v?t:h,x=D.exports.useCallback(C=>{const N=typeof C=="function"?C(S):C;!u(S,N)||(v||m(N),c(N))},[v,c,S,u]);return[S,x]}const _k=D.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vw=D.exports.createContext({});function dW(){return D.exports.useContext(Vw).visualElement}const rv=D.exports.createContext(null),Gp=typeof document<"u",Zx=Gp?D.exports.useLayoutEffect:D.exports.useEffect,Z3=D.exports.createContext({strict:!1});function pW(e,t,r,i){const o=dW(),c=D.exports.useContext(Z3),u=D.exports.useContext(rv),h=D.exports.useContext(_k).reducedMotion,m=D.exports.useRef(void 0);i=i||c.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:o,props:r,presenceId:u?u.id:void 0,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:h}));const v=m.current;return Zx(()=>{v&&v.syncRender()}),D.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),Zx(()=>()=>v&&v.notifyUnmount(),[]),v}function Mm(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hW(e,t,r){return D.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),r&&(typeof r=="function"?r(i):Mm(r)&&(r.current=i))},[t])}function ab(e){return typeof e=="string"||Array.isArray(e)}function Hw(e){return typeof e=="object"&&typeof e.start=="function"}const mW=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ww(e){return Hw(e.animate)||mW.some(t=>ab(e[t]))}function Q3(e){return Boolean(Ww(e)||e.variants)}function vW(e,t){if(Ww(e)){const{initial:r,animate:i}=e;return{initial:r===!1||ab(r)?r:void 0,animate:ab(i)?i:void 0}}return e.inherit!==!1?t:{}}function gW(e){const{initial:t,animate:r}=vW(e,D.exports.useContext(Vw));return D.exports.useMemo(()=>({initial:t,animate:r}),[UI(t),UI(r)])}function UI(e){return Array.isArray(e)?e.join(" "):e}const ic=e=>({isEnabled:t=>e.some(r=>!!t[r])}),ib={measureLayout:ic(["layout","layoutId","drag"]),animation:ic(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:ic(["exit"]),drag:ic(["drag","dragControls"]),focus:ic(["whileFocus"]),hover:ic(["whileHover","onHoverStart","onHoverEnd"]),tap:ic(["whileTap","onTap","onTapStart","onTapCancel"]),pan:ic(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:ic(["whileInView","onViewportEnter","onViewportLeave"])};function yW(e){for(const t in e)t==="projectionNodeConstructor"?ib.projectionNodeConstructor=e[t]:ib[t].Component=e[t]}function Gw(e){const t=D.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const By={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let bW=1;function SW(){return Gw(()=>{if(By.hasEverUpdated)return bW++})}const Ek=D.exports.createContext({});class xW extends Ue.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}}const J3=D.exports.createContext({}),wW=Symbol.for("motionComponentSymbol");var jI="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function CW({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:i,useVisualState:o,Component:c}){e&&yW(e);function u(m,v){const S={...D.exports.useContext(_k),...m,layoutId:_W(m)},{isStatic:x}=S;let C=null;const _=gW(m),N=x?void 0:SW(),O=o(m,x);if(!x&&Gp){_.visualElement=pW(c,O,S,t);const I=D.exports.useContext(Z3).strict,V=D.exports.useContext(J3);_.visualElement&&(C=_.visualElement.loadFeatures(S,I,e,N,r||ib.projectionNodeConstructor,V))}return k(xW,{visualElement:_.visualElement,props:S,children:[C,k(Vw.Provider,{value:_,children:i(c,m,N,hW(O,_.visualElement,v),O,x,_.visualElement)},void 0,!1,{fileName:jI,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:jI,lineNumber:79,columnNumber:17},this)}const h=D.exports.forwardRef(u);return h[wW]=c,h}function _W({layoutId:e}){const t=D.exports.useContext(Ek).id;return t&&e!==void 0?t+"-"+e:e}function EW(e){function t(i,o={}){return CW(e(i,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(i,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const TW=["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 Tk(e){return typeof e!="string"||e.includes("-")?!1:!!(TW.indexOf(e)>-1||/[A-Z]/.test(e))}const Qx={};function NW(e){Object.assign(Qx,e)}const Jx=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rb=new Set(Jx);function e4(e,{layout:t,layoutId:r}){return Rb.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Qx[e]||e==="opacity")}const mu=e=>!!e?.getVelocity,RW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},AW=(e,t)=>Jx.indexOf(e)-Jx.indexOf(t);function OW({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:i=!0},o,c){let u="";t.sort(AW);for(const h of t)u+=`${RW[h]||h}(${e[h]}) `;return r&&!e.z&&(u+="translateZ(0)"),u=u.trim(),c?u=c(e,o?"":u):i&&o&&(u="none"),u}function t4(e){return e.startsWith("--")}const kW=(e,t)=>t&&typeof e=="number"?t.transform(e):e,n4=(e,t)=>r=>Math.max(Math.min(r,t),e),Uy=e=>e%1?Number(e.toFixed(5)):e,ob=/(-)?([\d]*\.?[\d])+/g,WA=/(#[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,DW=/^(#[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 Yp={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},jy=Object.assign(Object.assign({},Yp),{transform:n4(0,1)}),Z1=Object.assign(Object.assign({},Yp),{default:1}),Ob=e=>({test:t=>Ab(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ef=Ob("deg"),cu=Ob("%"),Wt=Ob("px"),PW=Ob("vh"),MW=Ob("vw"),$I=Object.assign(Object.assign({},cu),{parse:e=>cu.parse(e)/100,transform:e=>cu.transform(e*100)}),Nk=(e,t)=>r=>Boolean(Ab(r)&&DW.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),r4=(e,t,r)=>i=>{if(!Ab(i))return i;const[o,c,u,h]=i.match(ob);return{[e]:parseFloat(o),[t]:parseFloat(c),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},Dp={test:Nk("hsl","hue"),parse:r4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+cu.transform(Uy(t))+", "+cu.transform(Uy(r))+", "+Uy(jy.transform(i))+")"},IW=n4(0,255),HR=Object.assign(Object.assign({},Yp),{transform:e=>Math.round(IW(e))}),Pf={test:Nk("rgb","red"),parse:r4("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+HR.transform(e)+", "+HR.transform(t)+", "+HR.transform(r)+", "+Uy(jy.transform(i))+")"};function LW(e){let t="",r="",i="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),i=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),i=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const GA={test:Nk("#"),parse:LW,transform:Pf.transform},Xi={test:e=>Pf.test(e)||GA.test(e)||Dp.test(e),parse:e=>Pf.test(e)?Pf.parse(e):Dp.test(e)?Dp.parse(e):GA.parse(e),transform:e=>Ab(e)?e:e.hasOwnProperty("red")?Pf.transform(e):Dp.transform(e)},a4="${c}",i4="${n}";function FW(e){var t,r,i,o;return isNaN(e)&&Ab(e)&&((r=(t=e.match(ob))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(i=e.match(WA))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0)>0}function o4(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const i=e.match(WA);i&&(r=i.length,e=e.replace(WA,a4),t.push(...i.map(Xi.parse)));const o=e.match(ob);return o&&(e=e.replace(ob,i4),t.push(...o.map(Yp.parse))),{values:t,numColors:r,tokenised:e}}function s4(e){return o4(e).values}function l4(e){const{values:t,numColors:r,tokenised:i}=o4(e),o=t.length;return c=>{let u=i;for(let h=0;h<o;h++)u=u.replace(h<r?a4:i4,h<r?Xi.transform(c[h]):Uy(c[h]));return u}}const zW=e=>typeof e=="number"?0:e;function BW(e){const t=s4(e);return l4(e)(t.map(zW))}const mc={test:FW,parse:s4,createTransformer:l4,getAnimatableNone:BW},UW=new Set(["brightness","contrast","saturate","opacity"]);function jW(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(ob)||[];if(!i)return e;const o=r.replace(i,"");let c=UW.has(t)?1:0;return i!==r&&(c*=100),t+"("+c+o+")"}const $W=/([a-z-]*)\(.*?\)/g,YA=Object.assign(Object.assign({},mc),{getAnimatableNone:e=>{const t=e.match($W);return t?t.map(jW).join(" "):e}}),VI={...Yp,transform:Math.round},u4={borderWidth:Wt,borderTopWidth:Wt,borderRightWidth:Wt,borderBottomWidth:Wt,borderLeftWidth:Wt,borderRadius:Wt,radius:Wt,borderTopLeftRadius:Wt,borderTopRightRadius:Wt,borderBottomRightRadius:Wt,borderBottomLeftRadius:Wt,width:Wt,maxWidth:Wt,height:Wt,maxHeight:Wt,size:Wt,top:Wt,right:Wt,bottom:Wt,left:Wt,padding:Wt,paddingTop:Wt,paddingRight:Wt,paddingBottom:Wt,paddingLeft:Wt,margin:Wt,marginTop:Wt,marginRight:Wt,marginBottom:Wt,marginLeft:Wt,rotate:Ef,rotateX:Ef,rotateY:Ef,rotateZ:Ef,scale:Z1,scaleX:Z1,scaleY:Z1,scaleZ:Z1,skew:Ef,skewX:Ef,skewY:Ef,distance:Wt,translateX:Wt,translateY:Wt,translateZ:Wt,x:Wt,y:Wt,z:Wt,perspective:Wt,transformPerspective:Wt,opacity:jy,originX:$I,originY:$I,originZ:Wt,zIndex:VI,fillOpacity:jy,strokeOpacity:jy,numOctaves:VI};function Rk(e,t,r,i){const{style:o,vars:c,transform:u,transformKeys:h,transformOrigin:m}=e;h.length=0;let v=!1,S=!1,x=!0;for(const C in t){const _=t[C];if(t4(C)){c[C]=_;continue}const N=u4[C],O=kW(_,N);if(Rb.has(C)){if(v=!0,u[C]=O,h.push(C),!x)continue;_!==(N.default||0)&&(x=!1)}else C.startsWith("origin")?(S=!0,m[C]=O):o[C]=O}if(v||i?o.transform=OW(e,r,x,i):!t.transform&&o.transform&&(o.transform="none"),S){const{originX:C="50%",originY:_="50%",originZ:N=0}=m;o.transformOrigin=`${C} ${_} ${N}`}}const Ak=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function c4(e,t,r){for(const i in t)!mu(t[i])&&!e4(i,r)&&(e[i]=t[i])}function VW({transformTemplate:e},t,r){return D.exports.useMemo(()=>{const i=Ak();return Rk(i,t,{enableHardwareAcceleration:!r},e),Object.assign({},i.vars,i.style)},[t])}function HW(e,t,r){const i=e.style||{},o={};return c4(o,i,e),Object.assign(o,VW(e,t,r)),e.transformValues?e.transformValues(o):o}function WW(e,t,r){const i={},o=HW(e,t,r);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 GW=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],YW=["whileTap","onTap","onTapStart","onTapCancel"],qW=["onPan","onPanStart","onPanSessionStart","onPanEnd"],KW=["whileInView","onViewportEnter","onViewportLeave","viewport"],XW=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",...KW,...YW,...GW,...qW]);function ew(e){return XW.has(e)}let f4=e=>!ew(e);function ZW(e){!e||(f4=t=>t.startsWith("on")?!ew(t):e(t))}try{ZW(require("@emotion/is-prop-valid").default)}catch{}function QW(e,t,r){const i={};for(const o in e)(f4(o)||r===!0&&ew(o)||!t&&!ew(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function HI(e,t,r){return typeof e=="string"?e:Wt.transform(t+r*e)}function JW(e,t,r){const i=HI(t,e.x,e.width),o=HI(r,e.y,e.height);return`${i} ${o}`}const eG={offset:"stroke-dashoffset",array:"stroke-dasharray"},tG={offset:"strokeDashoffset",array:"strokeDasharray"};function nG(e,t,r=1,i=0,o=!0){e.pathLength=1;const c=o?eG:tG;e[c.offset]=Wt.transform(-i);const u=Wt.transform(t),h=Wt.transform(r);e[c.array]=`${u} ${h}`}function Ok(e,{attrX:t,attrY:r,originX:i,originY:o,pathLength:c,pathSpacing:u=1,pathOffset:h=0,...m},v,S){Rk(e,m,v,S),e.attrs=e.style,e.style={};const{attrs:x,style:C,dimensions:_}=e;x.transform&&(_&&(C.transform=x.transform),delete x.transform),_&&(i!==void 0||o!==void 0||C.transform)&&(C.transformOrigin=JW(_,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(x.x=t),r!==void 0&&(x.y=r),c!==void 0&&nG(x,c,u,h,!1)}const d4=()=>({...Ak(),attrs:{}});function rG(e,t){const r=D.exports.useMemo(()=>{const i=d4();return Ok(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};c4(i,e.style,e),r.style={...i,...r.style}}return r}function aG(e=!1){return(r,i,o,c,{latestValues:u},h)=>{const v=(Tk(r)?rG:WW)(i,u,h),x={...QW(i,typeof r=="string",e),...v,ref:c};return o&&(x["data-projection-id"]=o),D.exports.createElement(r,x)}}const p4=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function h4(e,{style:t,vars:r},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const c in r)e.style.setProperty(c,r[c])}const m4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function v4(e,t,r,i){h4(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(m4.has(o)?o:p4(o),t.attrs[o])}function kk(e){const{style:t}=e,r={};for(const i in t)(mu(t[i])||e4(i,e))&&(r[i]=t[i]);return r}function g4(e){const t=kk(e);for(const r in e)if(mu(e[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[i]=e[r]}return t}function y4(e,t,r,i={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,i,o)),t}const sb=e=>Array.isArray(e),iG=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),b4=e=>sb(e)?e[e.length-1]||0:e;function Ax(e){const t=mu(e)?e.get():e;return iG(t)?t.toValue():t}function oG({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},i,o,c){const u={latestValues:sG(i,o,c,e),renderState:t()};return r&&(u.mount=h=>r(i,h,u)),u}const S4=e=>(t,r)=>{const i=D.exports.useContext(Vw),o=D.exports.useContext(rv),c=()=>oG(e,t,i,o);return r?c():Gw(c)};function sG(e,t,r,i){const o={},c=i(e);for(const C in c)o[C]=Ax(c[C]);let{initial:u,animate:h}=e;const m=Ww(e),v=Q3(e);t&&v&&!m&&e.inherit!==!1&&(u===void 0&&(u=t.initial),h===void 0&&(h=t.animate));let S=r?r.initial===!1:!1;S=S||u===!1;const x=S?h:u;return x&&typeof x!="boolean"&&!Hw(x)&&(Array.isArray(x)?x:[x]).forEach(_=>{const N=y4(e,_);if(!N)return;const{transitionEnd:O,transition:I,...V}=N;for(const M in V){let z=V[M];if(Array.isArray(z)){const B=S?z.length-1:0;z=z[B]}z!==null&&(o[M]=z)}for(const M in O)o[M]=O[M]}),o}const lG={useVisualState:S4({scrapeMotionValuesFromProps:g4,createRenderState:d4,onMount:(e,t,{renderState:r,latestValues:i})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Ok(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),v4(t,r)}})},uG={useVisualState:S4({scrapeMotionValuesFromProps:kk,createRenderState:Ak})};function cG(e,{forwardMotionProps:t=!1},r,i,o){return{...Tk(e)?lG:uG,preloadedFeatures:r,useRender:aG(t),createVisualElement:i,projectionNodeConstructor:o,Component:e}}var xr;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(xr||(xr={}));function Yw(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function qA(e,t,r,i){D.exports.useEffect(()=>{const o=e.current;if(r&&o)return Yw(o,t,r,i)},[e,t,r,i])}function fG({whileFocus:e,visualElement:t}){const{animationState:r}=t,i=()=>{r&&r.setActive(xr.Focus,!0)},o=()=>{r&&r.setActive(xr.Focus,!1)};qA(t,"focus",e?i:void 0),qA(t,"blur",e?o:void 0)}function x4(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function w4(e){return!!e.touches}function dG(e){return t=>{const r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}const pG={pageX:0,pageY:0};function hG(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||pG;return{x:i[t+"X"],y:i[t+"Y"]}}function mG(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Dk(e,t="page"){return{point:w4(e)?hG(e,t):mG(e,t)}}const C4=(e,t=!1)=>{const r=i=>e(i,Dk(i));return t?dG(r):r},vG=()=>Gp&&window.onpointerdown===null,gG=()=>Gp&&window.ontouchstart===null,yG=()=>Gp&&window.onmousedown===null,bG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},SG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _4(e){return vG()?e:gG()?SG[e]:yG()?bG[e]:e}function zm(e,t,r,i){return Yw(e,_4(t),C4(r,t==="pointerdown"),i)}function tw(e,t,r,i){return qA(e,_4(t),r&&C4(r,t==="pointerdown"),i)}function E4(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const WI=E4("dragHorizontal"),GI=E4("dragVertical");function T4(e){let t=!1;if(e==="y")t=GI();else if(e==="x")t=WI();else{const r=WI(),i=GI();r&&i?t=()=>{r(),i()}:(r&&r(),i&&i())}return t}function N4(){const e=T4(!0);return e?(e(),!1):!0}function YI(e,t,r){return(i,o)=>{!x4(i)||N4()||(e.animationState&&e.animationState.setActive(xr.Hover,t),r&&r(i,o))}}function xG({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:i}){tw(i,"pointerenter",e||r?YI(i,!0,e):void 0,{passive:!e}),tw(i,"pointerleave",t||r?YI(i,!1,t):void 0,{passive:!t})}const R4=(e,t)=>t?e===t?!0:R4(e,t.parentElement):!1;function Pk(e){return D.exports.useEffect(()=>()=>e(),[])}var ou=function(){return ou=Object.assign||function(t){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(t[c]=r[c])}return t},ou.apply(this,arguments)};function qw(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[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])&&(r[i[o]]=e[i[o]]);return r}function av(e,t,r,i){function o(c){return c instanceof r?c:new r(function(u){u(c)})}return new(r||(r=Promise))(function(c,u){function h(S){try{v(i.next(S))}catch(x){u(x)}}function m(S){try{v(i.throw(S))}catch(x){u(x)}}function v(S){S.done?c(S.value):o(S.value).then(h,m)}v((i=i.apply(e,t||[])).next())})}function iv(e,t){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,o,c,u;return u={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function h(v){return function(S){return m([v,S])}}function m(v){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(c=v[0]&2?o.return:v[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,v[1])).done)return c;switch(o=0,c&&(v=[v[0]&2,c.value]),v[0]){case 0:case 1:c=v;break;case 4:return r.label++,{value:v[1],done:!1};case 5:r.label++,o=v[1],v=[0];continue;case 7:v=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(v[0]===6||v[0]===2)){r=0;continue}if(v[0]===3&&(!c||v[1]>c[0]&&v[1]<c[3])){r.label=v[1];break}if(v[0]===6&&r.label<c[1]){r.label=c[1],c=v;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(v);break}c[2]&&r.ops.pop(),r.trys.pop();continue}v=t.call(e,r)}catch(S){v=[6,S],o=0}finally{i=c=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function qI(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)c.push(o.value)}catch(h){u={error:h}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return c}function KA(e,t,r){if(r||arguments.length===2)for(var i=0,o=t.length,c;i<o;i++)(c||!(i in t))&&(c||(c=Array.prototype.slice.call(t,0,i)),c[i]=t[i]);return e.concat(c||Array.prototype.slice.call(t))}var kb=function(){},Ms=function(){};kb=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ms=function(e,t){if(!e)throw new Error(t)};const nw=(e,t,r)=>Math.min(Math.max(r,e),t),WR=.001,wG=.01,KI=10,CG=.05,_G=1;function EG({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let o,c;kb(e<=KI*1e3,"Spring duration must be 10 seconds or less");let u=1-t;u=nw(CG,_G,u),e=nw(wG,KI,e/1e3),u<1?(o=v=>{const S=v*u,x=S*e,C=S-r,_=XA(v,u),N=Math.exp(-x);return WR-C/_*N},c=v=>{const x=v*u*e,C=x*r+r,_=Math.pow(u,2)*Math.pow(v,2)*e,N=Math.exp(-x),O=XA(Math.pow(v,2),u);return(-o(v)+WR>0?-1:1)*((C-_)*N)/O}):(o=v=>{const S=Math.exp(-v*e),x=(v-r)*e+1;return-WR+S*x},c=v=>{const S=Math.exp(-v*e),x=(r-v)*(e*e);return S*x});const h=5/e,m=NG(o,c,h);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 TG=12;function NG(e,t,r){let i=r;for(let o=1;o<TG;o++)i=i-e(i)/t(i);return i}function XA(e,t){return e*Math.sqrt(1-t*t)}const RG=["duration","bounce"],AG=["stiffness","damping","mass"];function XI(e,t){return t.some(r=>e[r]!==void 0)}function OG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!XI(e,AG)&&XI(e,RG)){const r=EG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Mk(e){var{from:t=0,to:r=1,restSpeed:i=2,restDelta:o}=e,c=qw(e,["from","to","restSpeed","restDelta"]);const u={done:!1,value:t};let{stiffness:h,damping:m,mass:v,velocity:S,duration:x,isResolvedFromDuration:C}=OG(c),_=ZI,N=ZI;function O(){const I=S?-(S/1e3):0,V=r-t,M=m/(2*Math.sqrt(h*v)),z=Math.sqrt(h/v)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),M<1){const B=XA(z,M);_=j=>{const K=Math.exp(-M*z*j);return r-K*((I+M*z*V)/B*Math.sin(B*j)+V*Math.cos(B*j))},N=j=>{const K=Math.exp(-M*z*j);return M*z*K*(Math.sin(B*j)*(I+M*z*V)/B+V*Math.cos(B*j))-K*(Math.cos(B*j)*(I+M*z*V)-B*V*Math.sin(B*j))}}else if(M===1)_=B=>r-Math.exp(-z*B)*(V+(I+z*V)*B);else{const B=z*Math.sqrt(M*M-1);_=j=>{const K=Math.exp(-M*z*j),X=Math.min(B*j,300);return r-K*((I+M*z*V)*Math.sinh(X)+B*V*Math.cosh(X))/B}}}return O(),{next:I=>{const V=_(I);if(C)u.done=I>=x;else{const M=N(I)*1e3,z=Math.abs(M)<=i,B=Math.abs(r-V)<=o;u.done=z&&B}return u.value=u.done?r:V,u},flipTarget:()=>{S=-S,[t,r]=[r,t],O()}}}Mk.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const ZI=e=>0,lb=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i},jr=(e,t,r)=>-r*e+r*t+e;function GR(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function QI({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let o=0,c=0,u=0;if(!t)o=c=u=r;else{const h=r<.5?r*(1+t):r+t-r*t,m=2*r-h;o=GR(m,h,e+1/3),c=GR(m,h,e),u=GR(m,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:i}}const kG=(e,t,r)=>{const i=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-i)+i))},DG=[GA,Pf,Dp],JI=e=>DG.find(t=>t.test(e)),eL=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,A4=(e,t)=>{let r=JI(e),i=JI(t);Ms(!!r,eL(e)),Ms(!!i,eL(t));let o=r.parse(e),c=i.parse(t);r===Dp&&(o=QI(o),r=Pf),i===Dp&&(c=QI(c),i=Pf);const u=Object.assign({},o);return h=>{for(const m in u)m!=="alpha"&&(u[m]=kG(o[m],c[m],h));return u.alpha=jr(o.alpha,c.alpha,h),r.transform(u)}},ZA=e=>typeof e=="number",PG=(e,t)=>r=>t(e(r)),Kw=(...e)=>e.reduce(PG);function O4(e,t){return ZA(e)?r=>jr(e,t,r):Xi.test(e)?A4(e,t):D4(e,t)}const k4=(e,t)=>{const r=[...e],i=r.length,o=e.map((c,u)=>O4(c,t[u]));return c=>{for(let u=0;u<i;u++)r[u]=o[u](c);return r}},MG=(e,t)=>{const r=Object.assign(Object.assign({},e),t),i={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(i[o]=O4(e[o],t[o]));return o=>{for(const c in i)r[c]=i[c](o);return r}};function tL(e){const t=mc.parse(e),r=t.length;let i=0,o=0,c=0;for(let u=0;u<r;u++)i||typeof t[u]=="number"?i++:t[u].hue!==void 0?c++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:c}}const D4=(e,t)=>{const r=mc.createTransformer(t),i=tL(e),o=tL(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?Kw(k4(i.parsed,o.parsed),r):(kb(!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}`)},IG=(e,t)=>r=>jr(e,t,r);function LG(e){if(typeof e=="number")return IG;if(typeof e=="string")return Xi.test(e)?A4:D4;if(Array.isArray(e))return k4;if(typeof e=="object")return MG}function FG(e,t,r){const i=[],o=r||LG(e[0]),c=e.length-1;for(let u=0;u<c;u++){let h=o(e[u],e[u+1]);if(t){const m=Array.isArray(t)?t[u]:t;h=Kw(m,h)}i.push(h)}return i}function zG([e,t],[r]){return i=>r(lb(e,t,i))}function BG(e,t){const r=e.length,i=r-1;return o=>{let c=0,u=!1;if(o<=e[0]?u=!0:o>=e[i]&&(c=i-1,u=!0),!u){let m=1;for(;m<r&&!(e[m]>o||m===i);m++);c=m-1}const h=lb(e[c],e[c+1],o);return t[c](h)}}function P4(e,t,{clamp:r=!0,ease:i,mixer:o}={}){const c=e.length;Ms(c===t.length,"Both input and output ranges must be the same length"),Ms(!i||!Array.isArray(i)||i.length===c-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[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const u=FG(t,i,o),h=c===2?zG(e,u):BG(e,u);return r?m=>h(nw(e[0],e[c-1],m)):h}const Xw=e=>t=>1-e(1-t),Ik=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,UG=e=>t=>Math.pow(t,e),M4=e=>t=>t*t*((e+1)*t-e),jG=e=>{const t=M4(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},I4=1.525,$G=4/11,VG=8/11,HG=9/10,Lk=e=>e,Fk=UG(2),WG=Xw(Fk),L4=Ik(Fk),F4=e=>1-Math.sin(Math.acos(e)),zk=Xw(F4),GG=Ik(zk),Bk=M4(I4),YG=Xw(Bk),qG=Ik(Bk),KG=jG(I4),XG=4356/361,ZG=35442/1805,QG=16061/1805,rw=e=>{if(e===1||e===0)return e;const t=e*e;return e<$G?7.5625*t:e<VG?9.075*t-9.9*e+3.4:e<HG?XG*t-ZG*e+QG:10.8*e*e-20.52*e+10.72},JG=Xw(rw),eY=e=>e<.5?.5*(1-rw(1-e*2)):.5*rw(e*2-1)+.5;function tY(e,t){return e.map(()=>t||L4).splice(0,e.length-1)}function nY(e){const t=e.length;return e.map((r,i)=>i!==0?i/(t-1):0)}function rY(e,t){return e.map(r=>r*t)}function Ox({from:e=0,to:t=1,ease:r,offset:i,duration:o=300}){const c={done:!1,value:e},u=Array.isArray(t)?t:[e,t],h=rY(i&&i.length===u.length?i:nY(u),o);function m(){return P4(h,u,{ease:Array.isArray(r)?r:tY(u,r)})}let v=m();return{next:S=>(c.value=v(S),c.done=S>=o,c),flipTarget:()=>{u.reverse(),v=m()}}}function aY({velocity:e=0,from:t=0,power:r=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:c}){const u={done:!1,value:t};let h=r*e;const m=t+h,v=c===void 0?m:c(m);return v!==m&&(h=v-t),{next:S=>{const x=-h*Math.exp(-S/i);return u.done=!(x>o||x<-o),u.value=u.done?v:v+x,u},flipTarget:()=>{}}}const nL={keyframes:Ox,spring:Mk,decay:aY};function iY(e){if(Array.isArray(e.to))return Ox;if(nL[e.type])return nL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ox:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Mk:Ox}const z4=1/60*1e3,oY=typeof performance<"u"?()=>performance.now():()=>Date.now(),B4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(oY()),z4);function sY(e){let t=[],r=[],i=0,o=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,S=!1)=>{const x=S&&o,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&o&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(o){c=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const S=t[v];S(m),u.has(S)&&(h.schedule(S),e())}o=!1,c&&(c=!1,h.process(m))}};return h}const lY=40;let QA=!0,ub=!1,JA=!1;const Bm={delta:0,timestamp:0},Db=["read","update","preRender","render","postRender"],Zw=Db.reduce((e,t)=>(e[t]=sY(()=>ub=!0),e),{}),uY=Db.reduce((e,t)=>{const r=Zw[t];return e[t]=(i,o=!1,c=!1)=>(ub||dY(),r.schedule(i,o,c)),e},{}),cY=Db.reduce((e,t)=>(e[t]=Zw[t].cancel,e),{});Db.reduce((e,t)=>(e[t]=()=>Zw[t].process(Bm),e),{});const fY=e=>Zw[e].process(Bm),U4=e=>{ub=!1,Bm.delta=QA?z4:Math.max(Math.min(e-Bm.timestamp,lY),1),Bm.timestamp=e,JA=!0,Db.forEach(fY),JA=!1,ub&&(QA=!1,B4(U4))},dY=()=>{ub=!0,QA=!0,JA||B4(U4)},pY=()=>Bm;function j4(e,t,r=0){return e-t-r}function hY(e,t,r=0,i=!0){return i?j4(t+-e,t,r):t-(e-t)+r}function mY(e,t,r,i){return i?e>=t+r:e<=-r}const vY=e=>{const t=({delta:r})=>e(r);return{start:()=>uY.update(t,!0),stop:()=>cY.update(t)}};function $4(e){var t,r,{from:i,autoplay:o=!0,driver:c=vY,elapsed:u=0,repeat:h=0,repeatType:m="loop",repeatDelay:v=0,onPlay:S,onStop:x,onComplete:C,onRepeat:_,onUpdate:N}=e,O=qw(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:I}=O,V,M=0,z=O.duration,B,j=!1,K=!0,X;const fe=iY(O);!((r=(t=fe).needsInterpolation)===null||r===void 0)&&r.call(t,i,I)&&(X=P4([0,100],[i,I],{clamp:!1}),i=0,I=100);const me=fe(Object.assign(Object.assign({},O),{from:i,to:I}));function se(){M++,m==="reverse"?(K=M%2===0,u=hY(u,z,v,K)):(u=j4(u,z,v),m==="mirror"&&me.flipTarget()),j=!1,_&&_()}function be(){V.stop(),C&&C()}function Ke(ce){if(K||(ce=-ce),u+=ce,!j){const Re=me.next(Math.max(0,u));B=Re.value,X&&(B=X(B)),j=K?Re.done:u<=0}N?.(B),j&&(M===0&&(z??(z=u)),M<h?mY(u,z,v,K)&&se():be())}function J(){S?.(),V=c(Ke),V.start()}return o&&J(),{stop:()=>{x?.(),V.stop()}}}function V4(e,t){return t?e*(1e3/t):0}function gY({from:e=0,velocity:t=0,min:r,max:i,power:o=.8,timeConstant:c=750,bounceStiffness:u=500,bounceDamping:h=10,restDelta:m=1,modifyTarget:v,driver:S,onUpdate:x,onComplete:C,onStop:_}){let N;function O(z){return r!==void 0&&z<r||i!==void 0&&z>i}function I(z){return r===void 0?i:i===void 0||Math.abs(r-z)<Math.abs(i-z)?r:i}function V(z){N?.stop(),N=$4(Object.assign(Object.assign({},z),{driver:S,onUpdate:B=>{var j;x?.(B),(j=z.onUpdate)===null||j===void 0||j.call(z,B)},onComplete:C,onStop:_}))}function M(z){V(Object.assign({type:"spring",stiffness:u,damping:h,restDelta:m},z))}if(O(e))M({from:e,velocity:t,to:I(e)});else{let z=o*t+e;typeof v<"u"&&(z=v(z));const B=I(z),j=B===r?-1:1;let K,X;const fe=me=>{K=X,X=me,t=V4(me-K,pY().delta),(j===1&&me>B||j===-1&&me<B)&&M({from:me,to:B,velocity:t})};V({type:"decay",from:e,velocity:t,timeConstant:c,power:o,restDelta:m,modifyTarget:v,onUpdate:O(z)?fe:void 0})}return{stop:()=>N?.stop()}}const eO=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),rL=e=>eO(e)&&e.hasOwnProperty("z"),Q1=(e,t)=>Math.abs(e-t);function Uk(e,t){if(ZA(e)&&ZA(t))return Q1(e,t);if(eO(e)&&eO(t)){const r=Q1(e.x,t.x),i=Q1(e.y,t.y),o=rL(e)&&rL(t)?Q1(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2)+Math.pow(o,2))}}const H4=(e,t)=>1-3*t+3*e,W4=(e,t)=>3*t-6*e,G4=e=>3*e,aw=(e,t,r)=>((H4(t,r)*e+W4(t,r))*e+G4(t))*e,Y4=(e,t,r)=>3*H4(t,r)*e*e+2*W4(t,r)*e+G4(t),yY=1e-7,bY=10;function SY(e,t,r,i,o){let c,u,h=0;do u=t+(r-t)/2,c=aw(u,i,o)-e,c>0?r=u:t=u;while(Math.abs(c)>yY&&++h<bY);return u}const xY=8,wY=.001;function CY(e,t,r,i){for(let o=0;o<xY;++o){const c=Y4(t,r,i);if(c===0)return t;t-=(aw(t,r,i)-e)/c}return t}const kx=11,J1=1/(kx-1);function _Y(e,t,r,i){if(e===t&&r===i)return Lk;const o=new Float32Array(kx);for(let u=0;u<kx;++u)o[u]=aw(u*J1,e,r);function c(u){let h=0,m=1;const v=kx-1;for(;m!==v&&o[m]<=u;++m)h+=J1;--m;const S=(u-o[m])/(o[m+1]-o[m]),x=h+S*J1,C=Y4(x,e,r);return C>=wY?CY(u,x,e,r):C===0?x:SY(u,h,h+J1,e,r)}return u=>u===0||u===1?u:aw(c(u),t,i)}function EY({onTap:e,onTapStart:t,onTapCancel:r,whileTap:i,visualElement:o}){const c=e||t||r||i,u=D.exports.useRef(!1),h=D.exports.useRef(null),m={passive:!(t||e||r||_)};function v(){h.current&&h.current(),h.current=null}function S(){return v(),u.current=!1,o.animationState&&o.animationState.setActive(xr.Tap,!1),!N4()}function x(N,O){!S()||(R4(o.getInstance(),N.target)?e&&e(N,O):r&&r(N,O))}function C(N,O){!S()||r&&r(N,O)}function _(N,O){v(),!u.current&&(u.current=!0,h.current=Kw(zm(window,"pointerup",x,m),zm(window,"pointercancel",C,m)),o.animationState&&o.animationState.setActive(xr.Tap,!0),t&&t(N,O))}tw(o,"pointerdown",c?_:void 0,m),Pk(v)}const TY="production",jk=typeof process>"u"||process.env===void 0?TY:"development",aL=new Set;function $k(e,t,r){e||aL.has(t)||(console.warn(t),r&&console.warn(r),aL.add(t))}const tO=new WeakMap,YR=new WeakMap,NY=e=>{const t=tO.get(e.target);t&&t(e)},RY=e=>{e.forEach(NY)};function AY({root:e,...t}){const r=e||document;YR.has(r)||YR.set(r,{});const i=YR.get(r),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(RY,{root:e,...t})),i[o]}function OY(e,t,r){const i=AY(t);return tO.set(e,r),i.observe(e),()=>{tO.delete(e),i.unobserve(e)}}function kY({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:i,viewport:o={}}){const c=D.exports.useRef({hasEnteredView:!1,isInView:!1});let u=Boolean(t||r||i);o.once&&c.current.hasEnteredView&&(u=!1),(typeof IntersectionObserver>"u"?MY:PY)(u,c.current,e,o)}const DY={some:0,all:1};function PY(e,t,r,{root:i,margin:o,amount:c="some",once:u}){D.exports.useEffect(()=>{if(!e)return;const h={root:i?.current,rootMargin:o,threshold:typeof c=="number"?c:DY[c]},m=v=>{const{isIntersecting:S}=v;if(t.isInView===S||(t.isInView=S,u&&!S&&t.hasEnteredView))return;S&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(xr.InView,S);const x=r.getProps(),C=S?x.onViewportEnter:x.onViewportLeave;C&&C(v)};return OY(r.getInstance(),h,m)},[e,i,o,c])}function MY(e,t,r,{fallback:i=!0}){D.exports.useEffect(()=>{!e||!i||(jk!=="production"&&$k(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=r.getProps();o&&o(null),r.animationState&&r.animationState.setActive(xr.InView,!0)}))},[e])}const Mf=e=>t=>(e(t),null),IY={inView:Mf(kY),tap:Mf(EY),focus:Mf(fG),hover:Mf(xG)};function Vk(){const e=D.exports.useContext(rv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,o=D.exports.useId();return D.exports.useEffect(()=>i(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function LY(){return FY(D.exports.useContext(rv))}function FY(e){return e===null?!0:e.isPresent}function q4(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}const iw=e=>e*1e3,iL={linear:Lk,easeIn:Fk,easeInOut:L4,easeOut:WG,circIn:F4,circInOut:GG,circOut:zk,backIn:Bk,backInOut:qG,backOut:YG,anticipate:KG,bounceIn:JG,bounceInOut:eY,bounceOut:rw},oL=e=>{if(Array.isArray(e)){Ms(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,r,i,o]=e;return _Y(t,r,i,o)}else if(typeof e=="string")return Ms(iL[e]!==void 0,`Invalid easing type '${e}'`),iL[e];return e},zY=e=>Array.isArray(e)&&typeof e[0]!="number",sL=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&mc.test(t)&&!t.startsWith("url(")),gp=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ex=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qR=()=>({type:"keyframes",ease:"linear",duration:.3}),BY=e=>({type:"keyframes",duration:.8,values:e}),lL={x:gp,y:gp,z:gp,rotate:gp,rotateX:gp,rotateY:gp,rotateZ:gp,scaleX:ex,scaleY:ex,scale:ex,opacity:qR,backgroundColor:qR,color:qR,default:ex},UY=(e,t)=>{let r;return sb(t)?r=BY:r=lL[e]||lL.default,{to:t,...r(t)}},jY={...u4,color:Xi,backgroundColor:Xi,outlineColor:Xi,fill:Xi,stroke:Xi,borderColor:Xi,borderTopColor:Xi,borderRightColor:Xi,borderBottomColor:Xi,borderLeftColor:Xi,filter:YA,WebkitFilter:YA},Hk=e=>jY[e];function Wk(e,t){var r;let i=Hk(e);return i!==YA&&(i=mc),(r=i.getAnimatableNone)===null||r===void 0?void 0:r.call(i,t)}const $Y={current:!1};function VY({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:h,from:m,...v}){return!!Object.keys(v).length}let uL=!1;function HY({ease:e,times:t,yoyo:r,flip:i,loop:o,...c}){const u={...c};return t&&(u.offset=t),c.duration&&(u.duration=iw(c.duration)),c.repeatDelay&&(u.repeatDelay=iw(c.repeatDelay)),e&&(u.ease=zY(e)?e.map(oL):oL(e)),c.type==="tween"&&(u.type="keyframes"),(r||o||i)&&(kb(!uL,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),uL=!0,r?u.repeatType="reverse":o?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=o||r||i||c.repeat),c.type!=="spring"&&(u.type="keyframes"),u}function WY(e,t){var r,i;return(i=(r=(Gk(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&i!==void 0?i:0}function GY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function YY(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),GY(t),VY(e)||(e={...e,...UY(r,t.to)}),{...t,...HY(e)}}function qY(e,t,r,i,o){const c=Gk(i,e)||{};let u=c.from!==void 0?c.from:t.get();const h=sL(e,r);u==="none"&&h&&typeof r=="string"?u=Wk(e,r):cL(u)&&typeof r=="string"?u=fL(r):!Array.isArray(r)&&cL(r)&&typeof u=="string"&&(r=fL(u));const m=sL(e,u);kb(m===h,`You are trying to animate ${e} from "${u}" to "${r}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${r} via the \`style\` property.`);function v(){const x={from:u,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:C=>t.set(C)};return c.type==="inertia"||c.type==="decay"?gY({...x,...c}):$4({...YY(c,x,e),onUpdate:C=>{x.onUpdate(C),c.onUpdate&&c.onUpdate(C)},onComplete:()=>{x.onComplete(),c.onComplete&&c.onComplete()}})}function S(){const x=b4(r);return t.set(x),o(),c.onUpdate&&c.onUpdate(x),c.onComplete&&c.onComplete(),{stop:()=>{}}}return!m||!h||c.type===!1?S:v}function cL(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function fL(e){return typeof e=="number"?0:Wk("",e)}function Gk(e,t){return e[t]||e.default||e}function Yk(e,t,r,i={}){return $Y.current&&(i={type:!1}),t.start(o=>{let c,u;const h=qY(e,t,r,i,o),m=WY(i,e),v=()=>u=h();return m?c=window.setTimeout(v,iw(m)):v(),()=>{clearTimeout(c),u&&u.stop()}})}const KY=e=>/^\-?\d*\.?\d+$/.test(e),XY=e=>/^0[^.\s]+$/.test(e),K4=1/60*1e3,ZY=typeof performance<"u"?()=>performance.now():()=>Date.now(),X4=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ZY()),K4);function QY(e){let t=[],r=[],i=0,o=!1,c=!1;const u=new WeakSet,h={schedule:(m,v=!1,S=!1)=>{const x=S&&o,C=x?t:r;return v&&u.add(m),C.indexOf(m)===-1&&(C.push(m),x&&o&&(i=t.length)),m},cancel:m=>{const v=r.indexOf(m);v!==-1&&r.splice(v,1),u.delete(m)},process:m=>{if(o){c=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,i=t.length,i)for(let v=0;v<i;v++){const S=t[v];S(m),u.has(S)&&(h.schedule(S),e())}o=!1,c&&(c=!1,h.process(m))}};return h}const JY=40;let nO=!0,cb=!1,rO=!1;const Um={delta:0,timestamp:0},Pb=["read","update","preRender","render","postRender"],Qw=Pb.reduce((e,t)=>(e[t]=QY(()=>cb=!0),e),{}),fu=Pb.reduce((e,t)=>{const r=Qw[t];return e[t]=(i,o=!1,c=!1)=>(cb||tq(),r.schedule(i,o,c)),e},{}),fb=Pb.reduce((e,t)=>(e[t]=Qw[t].cancel,e),{}),KR=Pb.reduce((e,t)=>(e[t]=()=>Qw[t].process(Um),e),{}),eq=e=>Qw[e].process(Um),Z4=e=>{cb=!1,Um.delta=nO?K4:Math.max(Math.min(e-Um.timestamp,JY),1),Um.timestamp=e,rO=!0,Pb.forEach(eq),rO=!1,cb&&(nO=!1,X4(Z4))},tq=()=>{cb=!0,nO=!0,rO||X4(Z4)},aO=()=>Um;function qk(e,t){e.indexOf(t)===-1&&e.push(t)}function Kk(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class $y{constructor(){this.subscriptions=[]}add(t){return qk(this.subscriptions,t),()=>Kk(this.subscriptions,t)}notify(t,r,i){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,r,i);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nq=e=>!isNaN(parseFloat(e));class rq{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new $y,this.velocityUpdateSubscribers=new $y,this.renderSubscribers=new $y,this.canTrackVelocity=!1,this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:c}=aO();this.lastUpdated!==c&&(this.timeDelta=o,this.lastUpdated=c,fu.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=()=>fu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nq(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,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?V4(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).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 qm(e){return new rq(e)}const Q4=e=>t=>t.test(e),aq={test:e=>e==="auto",parse:e=>e},J4=[Yp,Wt,cu,Ef,MW,PW,aq],Cy=e=>J4.find(Q4(e)),iq=[...J4,Xi,mc],oq=e=>iq.find(Q4(e));function sq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.get()),t}function lq(e){const t={};return e.forEachValue((r,i)=>t[i]=r.getVelocity()),t}function Jw(e,t,r){const i=e.getProps();return y4(i,t,r!==void 0?r:i.custom,sq(e),lq(e))}function uq(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,qm(r))}function cq(e,t){const r=Jw(e,t);let{transitionEnd:i={},transition:o={},...c}=r?e.makeTargetAnimatable(r,!1):{};c={...c,...i};for(const u in c){const h=b4(c[u]);uq(e,u,h)}}function fq(e,t,r){var i,o;const c=Object.keys(t).filter(h=>!e.hasValue(h)),u=c.length;if(!!u)for(let h=0;h<u;h++){const m=c[h],v=t[m];let S=null;Array.isArray(v)&&(S=v[0]),S===null&&(S=(o=(i=r[m])!==null&&i!==void 0?i:e.readValue(m))!==null&&o!==void 0?o:t[m]),S!=null&&(typeof S=="string"&&(KY(S)||XY(S))?S=parseFloat(S):!oq(S)&&mc.test(v)&&(S=Wk(m,v)),e.addValue(m,qm(S)),r[m]===void 0&&(r[m]=S),e.setBaseTarget(m,S))}}function dq(e,t){return t?(t[e]||t.default||t).from:void 0}function pq(e,t,r){var i;const o={};for(const c in e){const u=dq(c,t);o[c]=u!==void 0?u:(i=r.getValue(c))===null||i===void 0?void 0:i.get()}return o}function ow(e){return Boolean(mu(e)&&e.add)}function hq(e,t,r={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const o=t.map(c=>iO(e,c,r));i=Promise.all(o)}else if(typeof t=="string")i=iO(e,t,r);else{const o=typeof t=="function"?Jw(e,t,r.custom):t;i=ez(e,o,r)}return i.then(()=>e.notifyAnimationComplete(t))}function iO(e,t,r={}){var i;const o=Jw(e,t,r.custom);let{transition:c=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(c=r.transitionOverride);const u=o?()=>ez(e,o,r):()=>Promise.resolve(),h=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:S=0,staggerChildren:x,staggerDirection:C}=c;return mq(e,t,S+v,x,C,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[v,S]=m==="beforeChildren"?[u,h]:[h,u];return v().then(S)}else return Promise.all([u(),h(r.delay)])}function ez(e,t,{delay:r=0,transitionOverride:i,type:o}={}){var c;let{transition:u=e.getDefaultTransition(),transitionEnd:h,...m}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(u=i);const S=[],x=o&&((c=e.animationState)===null||c===void 0?void 0:c.getState()[o]);for(const C in m){const _=e.getValue(C),N=m[C];if(!_||N===void 0||x&&gq(x,C))continue;let O={delay:r,...u};e.shouldReduceMotion&&Rb.has(C)&&(O={...O,type:!1,delay:0});let I=Yk(C,_,N,O);ow(v)&&(v.add(C),I=I.then(()=>v.remove(C))),S.push(I)}return Promise.all(S).then(()=>{h&&cq(e,h)})}function mq(e,t,r=0,i=0,o=1,c){const u=[],h=(e.variantChildren.size-1)*i,m=o===1?(v=0)=>v*i:(v=0)=>h-v*i;return Array.from(e.variantChildren).sort(vq).forEach((v,S)=>{u.push(iO(v,t,{...c,delay:r+m(S)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(u)}function vq(e,t){return e.sortNodePosition(t)}function gq({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}const Xk=[xr.Animate,xr.InView,xr.Focus,xr.Hover,xr.Tap,xr.Drag,xr.Exit],yq=[...Xk].reverse(),bq=Xk.length;function Sq(e){return t=>Promise.all(t.map(({animation:r,options:i})=>hq(e,r,i)))}function xq(e){let t=Sq(e);const r=Cq();let i=!0;const o=(m,v)=>{const S=Jw(e,v);if(S){const{transition:x,transitionEnd:C,..._}=S;m={...m,..._,...C}}return m};function c(m){t=m(e)}function u(m,v){var S;const x=e.getProps(),C=e.getVariantContext(!0)||{},_=[],N=new Set;let O={},I=1/0;for(let M=0;M<bq;M++){const z=yq[M],B=r[z],j=(S=x[z])!==null&&S!==void 0?S:C[z],K=ab(j),X=z===v?B.isActive:null;X===!1&&(I=M);let fe=j===C[z]&&j!==x[z]&&K;if(fe&&i&&e.manuallyAnimateOnMount&&(fe=!1),B.protectedKeys={...O},!B.isActive&&X===null||!j&&!B.prevProp||Hw(j)||typeof j=="boolean")continue;const me=wq(B.prevProp,j);let se=me||z===v&&B.isActive&&!fe&&K||M>I&&K;const be=Array.isArray(j)?j:[j];let Ke=be.reduce(o,{});X===!1&&(Ke={});const{prevResolvedValues:J={}}=B,ce={...J,...Ke},Re=Ce=>{se=!0,N.delete(Ce),B.needsAnimating[Ce]=!0};for(const Ce in ce){const oe=Ke[Ce],Se=J[Ce];O.hasOwnProperty(Ce)||(oe!==Se?sb(oe)&&sb(Se)?!q4(oe,Se)||me?Re(Ce):B.protectedKeys[Ce]=!0:oe!==void 0?Re(Ce):N.add(Ce):oe!==void 0&&N.has(Ce)?Re(Ce):B.protectedKeys[Ce]=!0)}B.prevProp=j,B.prevResolvedValues=Ke,B.isActive&&(O={...O,...Ke}),i&&e.blockInitialAnimation&&(se=!1),se&&!fe&&_.push(...be.map(Ce=>({animation:Ce,options:{type:z,...m}})))}if(N.size){const M={};N.forEach(z=>{const B=e.getBaseTarget(z);B!==void 0&&(M[z]=B)}),_.push({animation:M})}let V=Boolean(_.length);return i&&x.initial===!1&&!e.manuallyAnimateOnMount&&(V=!1),i=!1,V?t(_):Promise.resolve()}function h(m,v,S){var x;if(r[m].isActive===v)return Promise.resolve();(x=e.variantChildren)===null||x===void 0||x.forEach(_=>{var N;return(N=_.animationState)===null||N===void 0?void 0:N.setActive(m,v)}),r[m].isActive=v;const C=u(S,m);for(const _ in r)r[_].protectedKeys={};return C}return{animateChanges:u,setActive:h,setAnimateFunction:c,getState:()=>r}}function wq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!q4(t,e):!1}function yp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cq(){return{[xr.Animate]:yp(!0),[xr.InView]:yp(),[xr.Hover]:yp(),[xr.Tap]:yp(),[xr.Drag]:yp(),[xr.Focus]:yp(),[xr.Exit]:yp()}}const _q={animation:Mf(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=xq(e)),Hw(t)&&D.exports.useEffect(()=>t.subscribe(e),[t])}),exit:Mf(e=>{const{custom:t,visualElement:r}=e,[i,o]=Vk(),c=D.exports.useContext(rv);D.exports.useEffect(()=>{r.isPresent=i;const u=r.animationState&&r.animationState.setActive(xr.Exit,!i,{custom:c&&c.custom||t});u&&!i&&u.then(o)},[i])})};class tz{constructor(t,r,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ZR(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,x=Uk(v.offset,{x:0,y:0})>=3;if(!S&&!x)return;const{point:C}=v,{timestamp:_}=aO();this.history.push({...C,timestamp:_});const{onStart:N,onMove:O}=this.handlers;S||(N&&N(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,v)},this.handlePointerMove=(v,S)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=XR(S,this.transformPagePoint),x4(v)&&v.buttons===0){this.handlePointerUp(v,S);return}fu.update(this.updatePoint,!0)},this.handlePointerUp=(v,S)=>{this.end();const{onEnd:x,onSessionEnd:C}=this.handlers,_=ZR(XR(S,this.transformPagePoint),this.history);this.startEvent&&x&&x(v,_),C&&C(v,_)},w4(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=i;const o=Dk(t),c=XR(o,this.transformPagePoint),{point:u}=c,{timestamp:h}=aO();this.history=[{...u,timestamp:h}];const{onSessionStart:m}=r;m&&m(t,ZR(c,this.history)),this.removeListeners=Kw(zm(window,"pointermove",this.handlePointerMove),zm(window,"pointerup",this.handlePointerUp),zm(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),fb.update(this.updatePoint)}}function XR(e,t){return t?{point:t(e.point)}:e}function dL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ZR({point:e},t){return{point:e,delta:dL(e,nz(t)),offset:dL(e,Eq(t)),velocity:Tq(t,.1)}}function Eq(e){return e[0]}function nz(e){return e[e.length-1]}function Tq(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const o=nz(e);for(;r>=0&&(i=e[r],!(o.timestamp-i.timestamp>iw(t)));)r--;if(!i)return{x:0,y:0};const c=(o.timestamp-i.timestamp)/1e3;if(c===0)return{x:0,y:0};const u={x:(o.x-i.x)/c,y:(o.y-i.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function qo(e){return e.max-e.min}function pL(e,t=0,r=.01){return Uk(e,t)<r}function hL(e,t,r,i=.5){e.origin=i,e.originPoint=jr(t.min,t.max,e.origin),e.scale=qo(r)/qo(t),(pL(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jr(r.min,r.max,e.origin)-e.originPoint,(pL(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Vy(e,t,r,i){hL(e.x,t.x,r.x,i?.originX),hL(e.y,t.y,r.y,i?.originY)}function mL(e,t,r){e.min=r.min+t.min,e.max=e.min+qo(t)}function Nq(e,t,r){mL(e.x,t.x,r.x),mL(e.y,t.y,r.y)}function vL(e,t,r){e.min=t.min-r.min,e.max=e.min+qo(t)}function Hy(e,t,r){vL(e.x,t.x,r.x),vL(e.y,t.y,r.y)}function Rq(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?jr(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?jr(r,e,i.max):Math.min(e,r)),e}function gL(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Aq(e,{top:t,left:r,bottom:i,right:o}){return{x:gL(e.x,r,o),y:gL(e.y,t,i)}}function yL(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function Oq(e,t){return{x:yL(e.x,t.x),y:yL(e.y,t.y)}}function kq(e,t){let r=.5;const i=qo(e),o=qo(t);return o>i?r=lb(t.min,t.max-i,e.min):i>o&&(r=lb(e.min,e.max-o,t.min)),nw(0,1,r)}function Dq(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const oO=.35;function Pq(e=oO){return e===!1?e=0:e===!0&&(e=oO),{x:bL(e,"left","right"),y:bL(e,"top","bottom")}}function bL(e,t,r){return{min:SL(e,t),max:SL(e,r)}}function SL(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}const xL=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wy=()=>({x:xL(),y:xL()}),wL=()=>({min:0,max:0}),si=()=>({x:wL(),y:wL()});function tu(e){return[e("x"),e("y")]}function rz({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function Mq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Iq(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function QR(e){return e===void 0||e===1}function az({scale:e,scaleX:t,scaleY:r}){return!QR(e)||!QR(t)||!QR(r)}function Tf(e){return az(e)||CL(e.x)||CL(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function CL(e){return e&&e!=="0%"}function sw(e,t,r){const i=e-r,o=t*i;return r+o}function _L(e,t,r,i,o){return o!==void 0&&(e=sw(e,o,i)),sw(e,r,i)+t}function sO(e,t=0,r=1,i,o){e.min=_L(e.min,t,r,i,o),e.max=_L(e.max,t,r,i,o)}function iz(e,{x:t,y:r}){sO(e.x,t.translate,t.scale,t.originPoint),sO(e.y,r.translate,r.scale,r.originPoint)}function Lq(e,t,r,i=!1){var o,c;const u=r.length;if(!u)return;t.x=t.y=1;let h,m;for(let v=0;v<u;v++)h=r[v],m=h.projectionDelta,((c=(o=h.instance)===null||o===void 0?void 0:o.style)===null||c===void 0?void 0:c.display)!=="contents"&&(i&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Im(e,{x:-h.scroll.x,y:-h.scroll.y}),m&&(t.x*=m.x.scale,t.y*=m.y.scale,iz(e,m)),i&&Tf(h.latestValues)&&Im(e,h.latestValues))}function Af(e,t){e.min=e.min+t,e.max=e.max+t}function EL(e,t,[r,i,o]){const c=t[o]!==void 0?t[o]:.5,u=jr(e.min,e.max,c);sO(e,t[r],t[i],u,t.scale)}const Fq=["x","scaleX","originX"],zq=["y","scaleY","originY"];function Im(e,t){EL(e.x,t,Fq),EL(e.y,t,zq)}function oz(e,t){return rz(Iq(e.getBoundingClientRect(),t))}function Bq(e,t,r){const i=oz(e,r),{scroll:o}=t;return o&&(Af(i.x,o.x),Af(i.y,o.y)),i}const Uq=new WeakMap;class jq{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=si(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;const i=h=>{this.stopAnimation(),r&&this.snapToCursor(Dk(h,"page").point)},o=(h,m)=>{var v;const{drag:S,dragPropagation:x,onDragStart:C}=this.getProps();S&&!x&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=T4(S),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tu(_=>{var N,O;let I=this.getAxisMotionValue(_).get()||0;if(cu.test(I)){const V=(O=(N=this.visualElement.projection)===null||N===void 0?void 0:N.layout)===null||O===void 0?void 0:O.actual[_];V&&(I=qo(V)*(parseFloat(I)/100))}this.originPoint[_]=I}),C?.(h,m),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(xr.Drag,!0))},c=(h,m)=>{const{dragPropagation:v,dragDirectionLock:S,onDirectionLock:x,onDrag:C}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:_}=m;if(S&&this.currentDirection===null){this.currentDirection=$q(_),this.currentDirection!==null&&x?.(this.currentDirection);return}this.updateAxis("x",m.point,_),this.updateAxis("y",m.point,_),this.visualElement.syncRender(),C?.(h,m)},u=(h,m)=>this.stop(h,m);this.panSession=new tz(t,{onSessionStart:i,onStart:o,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c?.(t,r)}cancel(){var t,r;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),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(xr.Drag,!1)}updateAxis(t,r,i){const{drag:o}=this.getProps();if(!i||!tx(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=Rq(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:i}=this.visualElement.projection||{},o=this.constraints;t&&Mm(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Aq(i.actual,t):this.constraints=!1,this.elastic=Pq(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tu(c=>{this.getAxisMotionValue(c)&&(this.constraints[c]=Dq(i.actual[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Mm(t))return!1;const i=t.current;Ms(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 c=Bq(i,o.root,this.visualElement.getTransformPagePoint());let u=Oq(o.layout.actual,c);if(r){const h=r(Mq(u));this.hasMutatedConstraints=!!h,h&&(u=rz(h))}return u}startAnimation(t){const{drag:r,dragMomentum:i,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},v=tu(S=>{var x;if(!tx(S,r,this.currentDirection))return;let C=(x=m?.[S])!==null&&x!==void 0?x:{};u&&(C={min:0,max:0});const _=o?200:1e6,N=o?40:1e7,O={type:"inertia",velocity:i?t[S]:0,bounceStiffness:_,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...c,...C};return this.startAxisValueAnimation(S,O)});return Promise.all(v).then(h)}startAxisValueAnimation(t,r){const i=this.getAxisMotionValue(t);return Yk(t,i,0,r)}stopAnimation(){tu(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,i;const o="_drag"+t.toUpperCase(),c=this.visualElement.getProps()[o];return c||this.visualElement.getValue(t,(i=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&i!==void 0?i:0)}snapToCursor(t){tu(r=>{const{drag:i}=this.getProps();if(!tx(r,i,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(r);if(o&&o.layout){const{min:u,max:h}=o.layout.actual[r];c.set(t[r]-jr(u,h,.5))}})}scalePositionWithinConstraints(){var t;const{drag:r,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!Mm(i)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};tu(h=>{const m=this.getAxisMotionValue(h);if(m){const v=m.get();c[h]=kq({min:v,max:v},this.constraints[h])}});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(),tu(h=>{if(!tx(h,r,null))return;const m=this.getAxisMotionValue(h),{min:v,max:S}=this.constraints[h];m.set(jr(v,S,c[h]))})}addListeners(){var t;Uq.set(this.visualElement,this);const r=this.visualElement.getInstance(),i=zm(r,"pointerdown",v=>{const{drag:S,dragListener:x=!0}=this.getProps();S&&x&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();Mm(v)&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&((t=c.root)===null||t===void 0||t.updateScroll(),c.updateLayout()),o();const h=Yw(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S})=>{this.isDragging&&S&&(tu(x=>{const C=this.getAxisMotionValue(x);!C||(this.originPoint[x]+=v[x].translate,C.set(C.get()+v[x].translate))}),this.visualElement.syncRender())});return()=>{h(),i(),u(),m?.()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=oO,dragMomentum:h=!0}=t;return{...t,drag:r,dragDirectionLock:i,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function tx(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $q(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Vq(e){const{dragControls:t,visualElement:r}=e,i=Gw(()=>new jq(r));D.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),D.exports.useEffect(()=>i.addListeners(),[i])}function Hq({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:i,visualElement:o}){const c=e||t||r||i,u=D.exports.useRef(null),{transformPagePoint:h}=D.exports.useContext(_k),m={onSessionStart:i,onStart:t,onMove:e,onEnd:(S,x)=>{u.current=null,r&&r(S,x)}};D.exports.useEffect(()=>{u.current!==null&&u.current.updateHandlers(m)});function v(S){u.current=new tz(S,m,{transformPagePoint:h})}tw(o,"pointerdown",c&&v),Pk(()=>u.current&&u.current.end())}const Wq={pan:Mf(Hq),drag:Mf(Vq)},lO={current:null},sz={current:!1};function Gq(){if(sz.current=!0,!!Gp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>lO.current=e.matches;e.addListener(t),t()}else lO.current=!1}const nx=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Yq(){const e=nx.map(()=>new $y),t={},r={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{nx.forEach(o=>{var c;const u="on"+o,h=i[u];(c=t[o])===null||c===void 0||c.call(t),h&&(t[o]=r[u](h))})}};return e.forEach((i,o)=>{r["on"+nx[o]]=c=>i.add(c),r["notify"+nx[o]]=(...c)=>i.notify(...c)}),r}function qq(e,t,r){const{willChange:i}=t;for(const o in t){const c=t[o],u=r[o];if(mu(c))e.addValue(o,c),ow(i)&&i.add(o),$k(c.version==="7.3.5",`Attempting to mix Framer Motion versions ${c.version} with 7.3.5 may not work as expected.`);else if(mu(u))e.addValue(o,qm(c)),ow(i)&&i.remove(o);else if(u!==c)if(e.hasValue(o)){const h=e.getValue(o);!h.hasAnimated&&h.set(c)}else{const h=e.getStaticValue(o);e.addValue(o,qm(h!==void 0?h:c))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const lz=Object.keys(ib),Kq=lz.length,uz=({treeType:e="",build:t,getBaseTarget:r,makeTargetAnimatable:i,measureViewportBox:o,render:c,readValueFromInstance:u,removeValueFromRenderState:h,sortNodePosition:m,scrapeMotionValuesFromProps:v})=>({parent:S,props:x,presenceId:C,blockInitialAnimation:_,visualState:N,reducedMotionConfig:O},I={})=>{let V=!1;const{latestValues:M,renderState:z}=N;let B;const j=Yq(),K=new Map,X=new Map;let fe={};const me={...M};let se;function be(){!B||!V||(Ke(),c(B,z,x.style,Te.projection))}function Ke(){t(Te,z,M,I,x)}function J(){j.notifyUpdate(M)}function ce(pe,we){const Ie=we.onChange(Ye=>{M[pe]=Ye,x.onUpdate&&fu.update(J,!1,!0)}),Le=we.onRenderRequest(Te.scheduleRender);X.set(pe,()=>{Ie(),Le()})}const{willChange:Re,...Ce}=v(x);for(const pe in Ce){const we=Ce[pe];M[pe]!==void 0&&mu(we)&&(we.set(M[pe],!1),ow(Re)&&Re.add(pe))}const oe=Ww(x),Se=Q3(x),Te={treeType:e,current:null,depth:S?S.depth+1:0,parent:S,children:new Set,presenceId:C,shouldReduceMotion:null,variantChildren:Se?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(S?.isMounted()),blockInitialAnimation:_,isMounted:()=>Boolean(B),mount(pe){V=!0,B=Te.current=pe,Te.projection&&Te.projection.mount(pe),Se&&S&&!oe&&(se=S?.addVariantChild(Te)),K.forEach((we,Ie)=>ce(Ie,we)),sz.current||Gq(),Te.shouldReduceMotion=O==="never"?!1:O==="always"?!0:lO.current,S?.children.add(Te),Te.setProps(x)},unmount(){var pe;(pe=Te.projection)===null||pe===void 0||pe.unmount(),fb.update(J),fb.render(be),X.forEach(we=>we()),se?.(),S?.children.delete(Te),j.clearAllListeners(),B=void 0,V=!1},loadFeatures(pe,we,Ie,Le,Ye,st){const mt=[];jk!=="production"&&Ie&&we&&Ms(!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 Gt=0;Gt<Kq;Gt++){const Qe=lz[Gt],{isEnabled:vt,Component:Et}=ib[Qe];vt(pe)&&Et&&mt.push(D.exports.createElement(Et,{key:Qe,...pe,visualElement:Te}))}if(!Te.projection&&Ye){Te.projection=new Ye(Le,Te.getLatestValues(),S&&S.projection);const{layoutId:Gt,layout:Qe,drag:vt,dragConstraints:Et,layoutScroll:zt}=pe;Te.projection.setOptions({layoutId:Gt,layout:Qe,alwaysMeasureLayout:Boolean(vt)||Et&&Mm(Et),visualElement:Te,scheduleRender:()=>Te.scheduleRender(),animationType:typeof Qe=="string"?Qe:"both",initialPromotionConfig:st,layoutScroll:zt})}return mt},addVariantChild(pe){var we;const Ie=Te.getClosestVariantNode();if(Ie)return(we=Ie.variantChildren)===null||we===void 0||we.add(pe),()=>Ie.variantChildren.delete(pe)},sortNodePosition(pe){return!m||e!==pe.treeType?0:m(Te.getInstance(),pe.getInstance())},getClosestVariantNode:()=>Se?Te:S?.getClosestVariantNode(),getLayoutId:()=>x.layoutId,getInstance:()=>B,getStaticValue:pe=>M[pe],setStaticValue:(pe,we)=>M[pe]=we,getLatestValues:()=>M,setVisibility(pe){Te.isVisible!==pe&&(Te.isVisible=pe,Te.scheduleRender())},makeTargetAnimatable(pe,we=!0){return i(Te,pe,x,we)},measureViewportBox(){return o(B,x)},addValue(pe,we){Te.hasValue(pe)&&Te.removeValue(pe),K.set(pe,we),M[pe]=we.get(),ce(pe,we)},removeValue(pe){var we;K.delete(pe),(we=X.get(pe))===null||we===void 0||we(),X.delete(pe),delete M[pe],h(pe,z)},hasValue:pe=>K.has(pe),getValue(pe,we){let Ie=K.get(pe);return Ie===void 0&&we!==void 0&&(Ie=qm(we),Te.addValue(pe,Ie)),Ie},forEachValue:pe=>K.forEach(pe),readValue:pe=>M[pe]!==void 0?M[pe]:u(B,pe,I),setBaseTarget(pe,we){me[pe]=we},getBaseTarget(pe){if(r){const we=r(x,pe);if(we!==void 0&&!mu(we))return we}return me[pe]},...j,build(){return Ke(),z},scheduleRender(){fu.render(be,!1,!0)},syncRender:be,setProps(pe){(pe.transformTemplate||x.transformTemplate)&&Te.scheduleRender(),x=pe,j.updatePropListeners(pe),fe=qq(Te,v(x),fe)},getProps:()=>x,getVariant:pe=>{var we;return(we=x.variants)===null||we===void 0?void 0:we[pe]},getDefaultTransition:()=>x.transition,getTransformPagePoint:()=>x.transformPagePoint,getVariantContext(pe=!1){if(pe)return S?.getVariantContext();if(!oe){const Ie=S?.getVariantContext()||{};return x.initial!==void 0&&(Ie.initial=x.initial),Ie}const we={};for(let Ie=0;Ie<Xq;Ie++){const Le=cz[Ie],Ye=x[Le];(ab(Ye)||Ye===!1)&&(we[Le]=Ye)}return we}};return Te},cz=["initial",...Xk],Xq=cz.length;function uO(e){return typeof e=="string"&&e.startsWith("var(--")}const fz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zq(e){const t=fz.exec(e);if(!t)return[,];const[,r,i]=t;return[r,i]}const Qq=4;function cO(e,t,r=1){Ms(r<=Qq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=Zq(e);if(!i)return;const c=window.getComputedStyle(t).getPropertyValue(i);return c?c.trim():uO(o)?cO(o,t,r+1):o}function Jq(e,{...t},r){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.forEachValue(o=>{const c=o.get();if(!uO(c))return;const u=cO(c,i);u&&o.set(u)});for(const o in t){const c=t[o];if(!uO(c))continue;const u=cO(c,i);!u||(t[o]=u,r&&r[o]===void 0&&(r[o]=c))}return{target:t,transitionEnd:r}}const eK=new Set(["width","height","top","left","right","bottom","x","y"]),dz=e=>eK.has(e),tK=e=>Object.keys(e).some(dz),pz=(e,t)=>{e.set(t,!1),e.set(t)},rx=e=>e===Yp||e===Wt;var TL;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(TL||(TL={}));const NL=(e,t)=>parseFloat(e.split(", ")[t]),RL=(e,t)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return NL(o[1],t);{const c=i.match(/^matrix\((.+)\)$/);return c?NL(c[1],e):0}},nK=new Set(["x","y","z"]),rK=Jx.filter(e=>!nK.has(e));function aK(e){const t=[];return rK.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const AL={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:RL(4,13),y:RL(5,14)},iK=(e,t,r)=>{const i=t.measureViewportBox(),o=t.getInstance(),c=getComputedStyle(o),{display:u}=c,h={};u==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(v=>{h[v]=AL[v](i,c)}),t.syncRender();const m=t.measureViewportBox();return r.forEach(v=>{const S=t.getValue(v);pz(S,h[v]),e[v]=AL[v](m,c)}),e},oK=(e,t,r={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(dz);let c=[],u=!1;const h=[];if(o.forEach(m=>{const v=e.getValue(m);if(!e.hasValue(m))return;let S=r[m],x=Cy(S);const C=t[m];let _;if(sb(C)){const N=C.length,O=C[0]===null?1:0;S=C[O],x=Cy(S);for(let I=O;I<N;I++)_?Ms(Cy(C[I])===_,"All keyframes must be of the same type"):(_=Cy(C[I]),Ms(_===x||rx(x)&&rx(_),"Keyframes must be of the same dimension as the current value"))}else _=Cy(C);if(x!==_)if(rx(x)&&rx(_)){const N=v.get();typeof N=="string"&&v.set(parseFloat(N)),typeof C=="string"?t[m]=parseFloat(C):Array.isArray(C)&&_===Wt&&(t[m]=C.map(parseFloat))}else x?.transform&&_?.transform&&(S===0||C===0)?S===0?v.set(_.transform(S)):t[m]=x.transform(C):(u||(c=aK(e),u=!0),h.push(m),i[m]=i[m]!==void 0?i[m]:t[m],pz(v,C))}),h.length){const m=h.indexOf("height")>=0?window.pageYOffset:null,v=iK(t,e,h);return c.length&&c.forEach(([S,x])=>{e.getValue(S).set(x)}),e.syncRender(),Gp&&m!==null&&window.scrollTo({top:m}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function sK(e,t,r,i){return tK(t)?oK(e,t,r,i):{target:t,transitionEnd:i}}const lK=(e,t,r,i)=>{const o=Jq(e,t,i);return t=o.target,i=o.transitionEnd,sK(e,t,r,i)};function uK(e){return window.getComputedStyle(e)}const hz={treeType:"dom",readValueFromInstance(e,t){if(Rb.has(t)){const r=Hk(t);return r&&r.default||0}else{const r=uK(e),i=(t4(t)?r.getPropertyValue(t):r[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox(e,{transformPagePoint:t}){return oz(e,t)},resetTransform(e,t,r){const{transformTemplate:i}=r;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:r,...i},{transformValues:o},c=!0){let u=pq(i,t||{},e);if(o&&(r&&(r=o(r)),i&&(i=o(i)),u&&(u=o(u))),c){fq(e,i,u);const h=lK(e,i,u,r);r=h.transitionEnd,i=h.target}return{transition:t,transitionEnd:r,...i}},scrapeMotionValuesFromProps:kk,build(e,t,r,i,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Rk(t,r,i,o.transformTemplate)},render:h4},cK=uz(hz),fK=uz({...hz,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var r;return Rb.has(t)?((r=Hk(t))===null||r===void 0?void 0:r.default)||0:(t=m4.has(t)?t:p4(t),e.getAttribute(t))},scrapeMotionValuesFromProps:g4,build(e,t,r,i,o){Ok(t,r,i,o.transformTemplate)},render:v4}),dK=(e,t)=>Tk(e)?fK(t,{enableHardwareAcceleration:!1}):cK(t,{enableHardwareAcceleration:!0});function OL(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const _y={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Wt.test(e))e=parseFloat(e);else return e;const r=OL(e,t.target.x),i=OL(e,t.target.y);return`${r}% ${i}%`}},kL="_$css",pK={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,o=e.includes("var("),c=[];o&&(e=e.replace(fz,_=>(c.push(_),kL)));const u=mc.parse(e);if(u.length>5)return i;const h=mc.createTransformer(e),m=typeof u[0]!="number"?1:0,v=r.x.scale*t.x,S=r.y.scale*t.y;u[0+m]/=v,u[1+m]/=S;const x=jr(v,S,.5);typeof u[2+m]=="number"&&(u[2+m]/=x),typeof u[3+m]=="number"&&(u[3+m]/=x);let C=h(u);if(o){let _=0;C=C.replace(kL,()=>{const N=c[_];return _++,N})}return C}};var hK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class mK extends Ue.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i,layoutId:o}=this.props,{projection:c}=t;NW(gK),c&&(r.group&&r.group.add(c),i&&i.register&&o&&i.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),By.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:i,drag:o,isPresent:c}=this.props,u=i.projection;return u&&(u.isPresent=c,o||t.layoutDependency!==r||r===void 0?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||fu.postRender(()=>{var h;!((h=u.getStack())===null||h===void 0)&&h.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:r,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r?.group&&r.group.remove(o),i?.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function vK(e){const[t,r]=Vk(),i=D.exports.useContext(Ek);return k(mK,{...e,layoutGroup:i,switchLayoutGroup:D.exports.useContext(J3),isPresent:t,safeToRemove:r},void 0,!1,{fileName:hK,lineNumber:110,columnNumber:13},this)}const gK={borderRadius:{..._y,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_y,borderTopRightRadius:_y,borderBottomLeftRadius:_y,borderBottomRightRadius:_y,boxShadow:pK},yK={measureLayout:vK};function bK(e,t,r={}){const i=mu(e)?e:qm(e);return Yk("",i,t,r),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const mz=["TopLeft","TopRight","BottomLeft","BottomRight"],SK=mz.length,DL=e=>typeof e=="string"?parseFloat(e):e,PL=e=>typeof e=="number"||Wt.test(e);function xK(e,t,r,i,o,c){var u,h,m,v;o?(e.opacity=jr(0,(u=r.opacity)!==null&&u!==void 0?u:1,wK(i)),e.opacityExit=jr((h=t.opacity)!==null&&h!==void 0?h:1,0,CK(i))):c&&(e.opacity=jr((m=t.opacity)!==null&&m!==void 0?m:1,(v=r.opacity)!==null&&v!==void 0?v:1,i));for(let S=0;S<SK;S++){const x=`border${mz[S]}Radius`;let C=ML(t,x),_=ML(r,x);if(C===void 0&&_===void 0)continue;C||(C=0),_||(_=0),C===0||_===0||PL(C)===PL(_)?(e[x]=Math.max(jr(DL(C),DL(_),i),0),(cu.test(_)||cu.test(C))&&(e[x]+="%")):e[x]=_}(t.rotate||r.rotate)&&(e.rotate=jr(t.rotate||0,r.rotate||0,i))}function ML(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}const wK=vz(0,.5,zk),CK=vz(.5,.95,Lk);function vz(e,t,r){return i=>i<e?0:i>t?1:r(lb(e,t,i))}function IL(e,t){e.min=t.min,e.max=t.max}function gl(e,t){IL(e.x,t.x),IL(e.y,t.y)}function LL(e,t,r,i,o){return e-=t,e=sw(e,1/r,i),o!==void 0&&(e=sw(e,1/o,i)),e}function _K(e,t=0,r=1,i=.5,o,c=e,u=e){if(cu.test(t)&&(t=parseFloat(t),t=jr(u.min,u.max,t/100)-u.min),typeof t!="number")return;let h=jr(c.min,c.max,i);e===c&&(h-=t),e.min=LL(e.min,t,r,h,o),e.max=LL(e.max,t,r,h,o)}function FL(e,t,[r,i,o],c,u){_K(e,t[r],t[i],t[o],t.scale,c,u)}const EK=["x","scaleX","originX"],TK=["y","scaleY","originY"];function zL(e,t,r,i){FL(e.x,t,EK,r?.x,i?.x),FL(e.y,t,TK,r?.y,i?.y)}function BL(e){return e.translate===0&&e.scale===1}function gz(e){return BL(e.x)&&BL(e.y)}function yz(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 UL(e){return qo(e.x)/qo(e.y)}function NK(e,t,r=.01){return Uk(e,t)<=r}class RK{constructor(){this.members=[]}add(t){qk(this.members,t),t.scheduleRender()}remove(t){if(Kk(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let i;for(let o=r;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){i=c;break}}return i?(this.promote(i),!0):!1}promote(t,r){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,r&&(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:c}=t.options;c===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,i,o,c,u;(i=(r=t.options).onExitComplete)===null||i===void 0||i.call(r),(u=(o=t.resumingFrom)===null||o===void 0?void 0:(c=o.options).onExitComplete)===null||u===void 0||u.call(c)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const AK="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function jL(e,t,r){const i=e.x.translate/t.x,o=e.y.translate/t.y;let c=`translate3d(${i}px, ${o}px, 0) `;if(c+=`scale(${1/t.x}, ${1/t.y}) `,r){const{rotate:m,rotateX:v,rotateY:S}=r;m&&(c+=`rotate(${m}deg) `),v&&(c+=`rotateX(${v}deg) `),S&&(c+=`rotateY(${S}deg) `)}const u=e.x.scale*t.x,h=e.y.scale*t.y;return c+=`scale(${u}, ${h})`,c===AK?"none":c}const OK=(e,t)=>e.depth-t.depth;class kK{constructor(){this.children=[],this.isDirty=!1}add(t){qk(this.children,t),this.isDirty=!0}remove(t){Kk(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OK),this.isDirty=!1,this.children.forEach(t)}}const $L=["","X","Y","Z"],VL=1e3;function bz({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u,h={},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(FK),this.nodes.forEach(zK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=u,this.latestValues=h,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 kK)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new $y),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m?.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}registerPotentialNode(u,h){this.potentialNodes.set(u,h)}mount(u,h=!1){var m;if(this.instance)return;this.isSVG=u instanceof SVGElement&&u.tagName!=="svg",this.instance=u;const{layoutId:v,layout:S,visualElement:x}=this.options;if(x&&!x.getInstance()&&x.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),h&&(S||v)&&(this.isLayoutDirty=!0),e){let C;const _=()=>this.root.updateBlockedByResize=!1;e(u,()=>{this.root.updateBlockedByResize=!0,clearTimeout(C),C=window.setTimeout(_,250),By.hasAnimatedSinceResize&&(By.hasAnimatedSinceResize=!1,this.nodes.forEach(LK))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&x&&(v||S)&&this.addEventListener("didUpdate",({delta:C,hasLayoutChanged:_,hasRelativeTargetChanged:N,layout:O})=>{var I,V,M,z,B;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=(V=(I=this.options.transition)!==null&&I!==void 0?I:x.getDefaultTransition())!==null&&V!==void 0?V:VK,{onLayoutAnimationStart:K,onLayoutAnimationComplete:X}=x.getProps(),fe=!this.targetLayout||!yz(this.targetLayout,O)||N,me=!_&&N;if(((M=this.resumeFrom)===null||M===void 0?void 0:M.instance)||me||_&&(fe||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(C,me);const se={...Gk(j,"layout"),onPlay:K,onComplete:X};x.shouldReduceMotion&&(se.delay=0,se.type=!1),this.startAnimation(se)}else!_&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((B=(z=this.options).onExitComplete)===null||B===void 0||B.call(z));this.targetLayout=O})}unmount(){var u,h;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(u=this.getStack())===null||u===void 0||u.remove(this),(h=this.parent)===null||h===void 0||h.children.delete(this),this.instance=void 0,fb.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(BK))}willUpdate(u=!0){var h,m,v;if(this.root.isUpdateBlocked()){(m=(h=this.options).onExitComplete)===null||m===void 0||m.call(h);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let _=0;_<this.path.length;_++){const N=this.path[_];N.shouldResetTransform=!0,N.updateScroll()}const{layoutId:S,layout:x}=this.options;if(S===void 0&&!x)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(HL);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(HK),this.potentialNodes.clear()),this.nodes.forEach(IK),this.nodes.forEach(DK),this.nodes.forEach(PK),this.clearAllSnapshots(),KR.update(),KR.preRender(),KR.render())}clearAllSnapshots(){this.nodes.forEach(MK),this.sharedNodes.forEach(UK)}scheduleUpdateProjection(){fu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){fu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const u=this.measure(),h=this.removeTransform(this.removeElementScroll(u));qL(h),this.snapshot={measured:u,layout:h,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 h=this.measure();qL(h);const m=this.layout;this.layout={measured:h,actual:this.removeElementScroll(h)},this.layoutCorrected=si(),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=r(this.instance))}resetTransform(){var u;if(!o)return;const h=this.isLayoutDirty||this.shouldResetTransform,m=this.projectionDelta&&!gz(this.projectionDelta),v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate,S=v?.(this.latestValues,""),x=S!==this.prevTransformTemplateValue;h&&(m||Tf(this.latestValues)||x)&&(o(this.instance,S),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:u}=this.options;if(!u)return si();const h=u.measureViewportBox(),{scroll:m}=this.root;return m&&(Af(h.x,m.x),Af(h.y,m.y)),h}removeElementScroll(u){const h=si();gl(h,u);for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:S,options:x,isScrollRoot:C}=v;if(v!==this.root&&S&&x.layoutScroll){if(C){gl(h,u);const{scroll:_}=this.root;_&&(Af(h.x,-_.x),Af(h.y,-_.y))}Af(h.x,S.x),Af(h.y,S.y)}}return h}applyTransform(u,h=!1){const m=si();gl(m,u);for(let v=0;v<this.path.length;v++){const S=this.path[v];!h&&S.options.layoutScroll&&S.scroll&&S!==S.root&&Im(m,{x:-S.scroll.x,y:-S.scroll.y}),Tf(S.latestValues)&&Im(m,S.latestValues)}return Tf(this.latestValues)&&Im(m,this.latestValues),m}removeTransform(u){var h;const m=si();gl(m,u);for(let v=0;v<this.path.length;v++){const S=this.path[v];if(!S.instance||!Tf(S.latestValues))continue;az(S.latestValues)&&S.updateSnapshot();const x=si(),C=S.measure();gl(x,C),zL(m,S.latestValues,(h=S.snapshot)===null||h===void 0?void 0:h.layout,x)}return Tf(this.latestValues)&&zL(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:h,layoutId:m}=this.options;!this.layout||!(h||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=si(),this.relativeTargetOrigin=si(),Hy(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),gl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=si(),this.targetWithTransforms=si()),this.relativeTarget&&this.relativeTargetOrigin&&((u=this.relativeParent)===null||u===void 0?void 0:u.target)?Nq(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):gl(this.target,this.layout.actual),iz(this.target,this.targetDelta)):gl(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=si(),this.relativeTargetOrigin=si(),Hy(this.relativeTargetOrigin,this.target,this.relativeParent.target),gl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||Tf(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var u;const{layout:h,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||!(h||m))return;const v=this.getLead();gl(this.layoutCorrected,this.layout.actual),Lq(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:S}=v;if(!S)return;this.projectionDelta||(this.projectionDelta=Wy(),this.projectionDeltaWithTransform=Wy());const x=this.treeScale.x,C=this.treeScale.y,_=this.projectionTransform;Vy(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=jL(this.projectionDelta,this.treeScale),(this.projectionTransform!==_||this.treeScale.x!==x||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h,m,v;(m=(h=this.options).scheduleRender)===null||m===void 0||m.call(h),u&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,h=!1){var m;const v=this.snapshot,S=v?.latestValues||{},x={...this.latestValues},C=Wy();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!h;const _=si(),N=v?.isShared,O=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,I=Boolean(N&&!O&&this.options.crossfade===!0&&!this.path.some($K));this.animationProgress=0,this.mixTargetDelta=V=>{var M;const z=V/1e3;WL(C.x,u.x,z),WL(C.y,u.y,z),this.setTargetDelta(C),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((M=this.relativeParent)===null||M===void 0?void 0:M.layout)&&(Hy(_,this.layout.actual,this.relativeParent.layout.actual),jK(this.relativeTarget,this.relativeTargetOrigin,_,z)),N&&(this.animationValues=x,xK(x,S,this.latestValues,z,I,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(0)}startAnimation(u){var h,m;this.notifyListeners("animationStart"),(h=this.currentAnimation)===null||h===void 0||h.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(fb.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fu.update(()=>{By.hasAnimatedSinceResize=!0,this.currentAnimation=bK(0,VL,{...u,onUpdate:v=>{var S;this.mixTargetDelta(v),(S=u.onUpdate)===null||S===void 0||S.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,VL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:v,latestValues:S}=u;if(!(!h||!m||!v)){if(this!==u&&this.layout&&v&&Sz(this.options.animationType,this.layout.actual,v.actual)){m=this.target||si();const x=qo(this.layout.actual.x);m.x.min=u.target.x.min,m.x.max=m.x.min+x;const C=qo(this.layout.actual.y);m.y.min=u.target.y.min,m.y.max=m.y.min+C}gl(h,m),Im(h,S),Vy(this.projectionDeltaWithTransform,this.layoutCorrected,h,S)}}registerSharedNode(u,h){var m,v,S;this.sharedNodes.has(u)||this.sharedNodes.set(u,new RK),this.sharedNodes.get(u).add(h),h.promote({transition:(m=h.options.initialPromotionConfig)===null||m===void 0?void 0:m.transition,preserveFollowOpacity:(S=(v=h.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||S===void 0?void 0:S.call(v,h)})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:h}=this.options;return h?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:h}=this.options;return h?(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:h,preserveFollowOpacity:m}={}){const v=this.getStack();v&&v.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const m={};for(let v=0;v<$L.length;v++){const S=$L[v],x="rotate"+S;!u.getStaticValue(x)||(h=!0,m[x]=u.getStaticValue(x),u.setStaticValue(x,0))}if(!!h){u?.syncRender();for(const v in m)u.setStaticValue(v,m[v]);u.scheduleRender()}}getProjectionStyles(u={}){var h,m,v;const S={};if(!this.instance||this.isSVG)return S;if(this.isVisible)S.visibility="";else return{visibility:"hidden"};const x=(h=this.options.visualElement)===null||h===void 0?void 0:h.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,S.opacity="",S.pointerEvents=Ax(u.pointerEvents)||"",S.transform=x?x(this.latestValues,""):"none",S;const C=this.getLead();if(!this.projectionDelta||!this.layout||!C.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Ax(u.pointerEvents)||""),this.hasProjected&&!Tf(this.latestValues)&&(I.transform=x?x({},""):"none",this.hasProjected=!1),I}const _=C.animationValues||C.latestValues;this.applyTransformsToTarget(),S.transform=jL(this.projectionDeltaWithTransform,this.treeScale,_),x&&(S.transform=x(_,S.transform));const{x:N,y:O}=this.projectionDelta;S.transformOrigin=`${N.origin*100}% ${O.origin*100}% 0`,C.animationValues?S.opacity=C===this?(v=(m=_.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:_.opacityExit:S.opacity=C===this?_.opacity!==void 0?_.opacity:"":_.opacityExit!==void 0?_.opacityExit:0;for(const I in Qx){if(_[I]===void 0)continue;const{correct:V,applyTo:M}=Qx[I],z=V(_[I],C);if(M){const B=M.length;for(let j=0;j<B;j++)S[M[j]]=z}else S[I]=z}return this.options.layoutId&&(S.pointerEvents=C===this?Ax(u.pointerEvents)||"":"none"),S}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(HL),this.root.sharedNodes.clear()}}}function DK(e){e.updateLayout()}function PK(e){var t,r,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:c,measured:u}=e.layout,{animationType:h}=e.options;h==="size"?tu(C=>{const _=o.isShared?o.measured[C]:o.layout[C],N=qo(_);_.min=c[C].min,_.max=_.min+N}):Sz(h,o.layout,c)&&tu(C=>{const _=o.isShared?o.measured[C]:o.layout[C],N=qo(c[C]);_.max=_.min+N});const m=Wy();Vy(m,c,o.layout);const v=Wy();o.isShared?Vy(v,e.applyTransform(u,!0),o.measured):Vy(v,c,o.layout);const S=!gz(m);let x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:C,layout:_}=e.relativeParent;if(C&&_){const N=si();Hy(N,o.layout,C.layout);const O=si();Hy(O,c,_.actual),yz(N,O)||(x=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:o,delta:v,layoutDelta:m,hasLayoutChanged:S,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function MK(e){e.clearSnapshot()}function HL(e){e.clearMeasurements()}function IK(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function LK(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function FK(e){e.resolveTargetDelta()}function zK(e){e.calcProjection()}function BK(e){e.resetRotation()}function UK(e){e.removeLeadSnapshot()}function WL(e,t,r){e.translate=jr(t.translate,0,r),e.scale=jr(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function GL(e,t,r,i){e.min=jr(t.min,r.min,i),e.max=jr(t.max,r.max,i)}function jK(e,t,r,i){GL(e.x,t.x,r.x,i),GL(e.y,t.y,r.y,i)}function $K(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VK={duration:.45,ease:[.4,0,.1,1]};function HK(e,t){let r=e.root;for(let c=e.path.length-1;c>=0;c--)if(Boolean(e.path[c].instance)){r=e.path[c];break}const o=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function YL(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function qL(e){YL(e.x),YL(e.y)}function Sz(e,t,r){return e==="position"||e==="preserve-aspect"&&!NK(UL(t),UL(r))}const WK=bz({attachResizeListener:(e,t)=>Yw(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),JR={current:void 0},GK=bz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!JR.current){const e=new WK(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),JR.current=e}return JR.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),YK={..._q,...IY,...Wq,...yK},Nl=EW((e,t)=>cG(e,t,YK,dK,GK));function xz(){const e=D.exports.useRef(!1);return Zx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qK(){const e=xz(),[t,r]=D.exports.useState(0),i=D.exports.useCallback(()=>{e.current&&r(t+1)},[t]);return[D.exports.useCallback(()=>fu.postRender(i),[i]),t]}var KK="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class XK extends D.exports.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ZK({children:e,isPresent:t}){const r=D.exports.useId(),i=D.exports.useRef(null),o=D.exports.useRef({width:0,height:0,top:0,left:0});return D.exports.useInsertionEffect(()=>{const{width:c,height:u,top:h,left:m}=o.current;if(t||!i.current||!c||!u)return;i.current.dataset.motionPopId=r;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
[data-motion-pop-id="${r}"] {
position: absolute !important;
width: ${c}px !important;
height: ${u}px !important;
top: ${h}px !important;
left: ${m}px !important;
}
`),()=>{document.head.removeChild(v)}},[t]),k(XK,{isPresent:t,childRef:i,sizeRef:o,children:D.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:KK,lineNumber:68,columnNumber:13},this)}var KL="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const eA=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:c,mode:u})=>{const h=Gw(QK),m=D.exports.useId(),v=D.exports.useMemo(()=>({id:m,initial:t,isPresent:r,custom:o,onExitComplete:S=>{h.set(S,!0);for(const x of h.values())if(!x)return;i&&i()},register:S=>(h.set(S,!1),()=>h.delete(S))}),c?void 0:[r]);return D.exports.useMemo(()=>{h.forEach((S,x)=>h.set(x,!1))},[r]),D.exports.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),u==="popLayout"&&(e=k(ZK,{isPresent:r,children:e},void 0,!1,{fileName:KL,lineNumber:48,columnNumber:20},globalThis)),k(rv.Provider,{value:v,children:e},void 0,!1,{fileName:KL,lineNumber:50,columnNumber:13},globalThis)};function QK(){return new Map}var tA="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const Om=e=>e.key||"";function JK(e,t){e.forEach(r=>{const i=Om(r);t.set(i,r)})}function eX(e){const t=[];return D.exports.Children.forEach(e,r=>{D.exports.isValidElement(r)&&t.push(r)}),t}const bc=({children:e,custom:t,initial:r=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:c=!0,mode:u="sync"})=>{o&&(u="wait",$k(!1,"Replace exitBeforeEnter with mode='wait'"));let[h]=qK();const m=D.exports.useContext(Ek).forceRender;m&&(h=m);const v=xz(),S=eX(e);let x=S;const C=new Set,_=D.exports.useRef(x),N=D.exports.useRef(new Map).current,O=D.exports.useRef(!0);if(Zx(()=>{O.current=!1,JK(S,N),_.current=x}),Pk(()=>{O.current=!0,N.clear(),C.clear()}),O.current)return k(bo,{children:x.map(z=>k(eA,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:c,mode:u,children:z},Om(z),!1,{fileName:tA,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);x=[...x];const I=_.current.map(Om),V=S.map(Om),M=I.length;for(let z=0;z<M;z++){const B=I[z];V.indexOf(B)===-1&&C.add(B)}return u==="wait"&&C.size&&(x=[]),C.forEach(z=>{if(V.indexOf(z)!==-1)return;const B=N.get(z);if(!B)return;const j=I.indexOf(z),K=()=>{N.delete(z),C.delete(z);const X=_.current.findIndex(fe=>fe.key===z);if(_.current.splice(X,1),!C.size){if(_.current=S,v.current===!1)return;h(),i&&i()}};x.splice(j,0,k(eA,{isPresent:!1,onExitComplete:K,custom:t,presenceAffectsLayout:c,mode:u,children:B},Om(B),!1,{fileName:tA,lineNumber:143,columnNumber:52},globalThis))}),x=x.map(z=>{const B=z.key;return C.has(B)?z:k(eA,{isPresent:!0,presenceAffectsLayout:c,mode:u,children:z},Om(z),!1,{fileName:tA,lineNumber:149,columnNumber:46},globalThis)}),jk!=="production"&&u==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),k(bo,{children:C.size?x:x.map(z=>D.exports.cloneElement(z))},void 0,!1)};var Mb="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",Ib=(...e)=>e.filter(Boolean).join(" ");function tX(){return!0}var nX=e=>{const{condition:t,message:r}=e;t&&tX()&&console.warn(r)},Pp={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ey={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 fO(e){switch(e?.direction??"right"){case"right":return Ey.slideRight;case"left":return Ey.slideLeft;case"bottom":return Ey.slideDown;case"top":return Ey.slideUp;default:return Ey.slideRight}}var Lp={enter:{duration:.2,ease:Pp.easeOut},exit:{duration:.1,ease:Pp.easeIn}},Cl={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},rX=e=>e!=null&&parseInt(e.toString(),10)>0,XL={exit:{height:{duration:.2,ease:Pp.ease},opacity:{duration:.3,ease:Pp.ease}},enter:{height:{duration:.3,ease:Pp.ease},opacity:{duration:.4,ease:Pp.ease}}},aX={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:i,delay:o})=>({...e&&{opacity:rX(t)?1:0},height:t,transitionEnd:i?.exit,transition:r?.exit??Cl.exit(XL.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:i,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:r?.enter??Cl.enter(XL.enter,o)})},wz=D.exports.forwardRef((e,t)=>{const{in:r,unmountOnExit:i,animateOpacity:o=!0,startingHeight:c=0,endingHeight:u="auto",style:h,className:m,transition:v,transitionEnd:S,...x}=e,[C,_]=D.exports.useState(!1);D.exports.useEffect(()=>{const M=setTimeout(()=>{_(!0)});return()=>clearTimeout(M)},[]),nX({condition:Boolean(c>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const N=parseFloat(c.toString())>0,O={startingHeight:c,endingHeight:u,animateOpacity:o,transition:C?v:{enter:{duration:0}},transitionEnd:{enter:S?.enter,exit:i?S?.exit:{...S?.exit,display:N?"block":"none"}}},I=i?r:!0,V=r||i?"enter":"exit";return k(bc,{initial:!1,custom:O,children:I&&Ue.createElement(Nl.div,{ref:t,...x,className:Ib("chakra-collapse",m),style:{overflow:"hidden",display:"block",...h},custom:O,variants:aX,initial:i?"exit":!1,animate:V,exit:"exit"})},void 0,!1,{fileName:Mb,lineNumber:190,columnNumber:26},globalThis)});wz.displayName="Collapse";var iX={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:e?.enter??Cl.enter(Lp.enter,r),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:e?.exit??Cl.exit(Lp.exit,r),transitionEnd:t?.exit})},Cz={initial:"exit",animate:"enter",exit:"exit",variants:iX},oX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:o,className:c,transition:u,transitionEnd:h,delay:m,...v}=t,S=o||i?"enter":"exit",x=i?o&&i:!0,C={transition:u,transitionEnd:h,delay:m};return k(bc,{custom:C,children:x&&Ue.createElement(Nl.div,{ref:r,className:Ib("chakra-fade",c),custom:C,...Cz,animate:S,...v})},void 0,!1,{fileName:Mb,lineNumber:248,columnNumber:26},this)});oX.displayName="Fade";var sX={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:i,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:r?.exit??Cl.exit(Lp.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??Cl.enter(Lp.enter,r),transitionEnd:e?.enter})},_z={initial:"exit",animate:"enter",exit:"exit",variants:sX},lX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:o,reverse:c=!0,initialScale:u=.95,className:h,transition:m,transitionEnd:v,delay:S,...x}=t,C=i?o&&i:!0,_=o||i?"enter":"exit",N={initialScale:u,reverse:c,transition:m,transitionEnd:v,delay:S};return k(bc,{custom:N,children:C&&Ue.createElement(Nl.div,{ref:r,className:Ib("chakra-offset-slide",h),..._z,animate:_,custom:N,...x})},void 0,!1,{fileName:Mb,lineNumber:301,columnNumber:26},this)});lX.displayName="ScaleFade";var ZL={exit:{duration:.15,ease:Pp.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},uX={exit:({direction:e,transition:t,transitionEnd:r,delay:i})=>{const{exit:o}=fO({direction:e});return{...o,transition:t?.exit??Cl.exit(ZL.exit,i),transitionEnd:r?.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:i})=>{const{enter:o}=fO({direction:e});return{...o,transition:r?.enter??Cl.enter(ZL.enter,i),transitionEnd:t?.enter}}},Ez=D.exports.forwardRef(function(t,r){const{direction:i="right",style:o,unmountOnExit:c,in:u,className:h,transition:m,transitionEnd:v,delay:S,...x}=t,C=fO({direction:i}),_=Object.assign({position:"fixed"},C.position,o),N=c?u&&c:!0,O=u||c?"enter":"exit",I={transitionEnd:v,transition:m,direction:i,delay:S};return k(bc,{custom:I,children:N&&Ue.createElement(Nl.div,{...x,ref:r,initial:"exit",className:Ib("chakra-slide",h),animate:O,exit:"exit",custom:I,variants:uX,style:_})},void 0,!1,{fileName:Mb,lineNumber:366,columnNumber:26},this)});Ez.displayName="Slide";var cX={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:i,delay:o})=>({opacity:0,x:e,y:t,transition:r?.exit??Cl.exit(Lp.exit,o),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??Cl.enter(Lp.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:i,reverse:o,delay:c})=>{const u={x:t,y:e};return{opacity:0,transition:r?.exit??Cl.exit(Lp.exit,c),...o?{...u,transitionEnd:i?.exit}:{transitionEnd:{...u,...i?.exit}}}}},dO={initial:"initial",animate:"enter",exit:"exit",variants:cX},fX=D.exports.forwardRef(function(t,r){const{unmountOnExit:i,in:o,reverse:c=!0,className:u,offsetX:h=0,offsetY:m=8,transition:v,transitionEnd:S,delay:x,...C}=t,_=i?o&&i:!0,N=o||i?"enter":"exit",O={offsetX:h,offsetY:m,reverse:c,transition:v,transitionEnd:S,delay:x};return k(bc,{custom:O,children:_&&Ue.createElement(Nl.div,{ref:r,className:Ib("chakra-offset-slide",u),custom:O,...dO,animate:N,...C})},void 0,!1,{fileName:Mb,lineNumber:441,columnNumber:26},this)});fX.displayName="SlideFade";var pO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",Lb=(...e)=>e.filter(Boolean).join(" ");function dX(){return!0}var eC=e=>{const{condition:t,message:r}=e;t&&dX()&&console.warn(r)};function nA(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[pX,tC]=Qr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[hX,Zk]=Qr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[mX,Cme,vX,gX]=cW(),_p=et(function(t,r){const{getButtonProps:i}=Zk(),o=i(t,r),c=tC(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...c.button};return Ue.createElement(Ge.button,{...o,className:Lb("chakra-accordion__button",t.className),__css:u})});_p.displayName="AccordionButton";function yX(e){const{onChange:t,defaultIndex:r,index:i,allowMultiple:o,allowToggle:c,...u}=e;xX(e),wX(e);const h=vX(),[m,v]=D.exports.useState(-1);D.exports.useEffect(()=>()=>{v(-1)},[]);const[S,x]=fW({value:i,defaultValue(){return o?r??[]:r??-1},onChange:t});return{index:S,setIndex:x,htmlProps:u,getAccordionItemProps:_=>{let N=!1;return _!==null&&(N=Array.isArray(S)?S.includes(_):S===_),{isOpen:N,onChange:I=>{if(_!==null)if(o&&Array.isArray(S)){const V=I?S.concat(_):S.filter(M=>M!==_);x(V)}else I?x(_):c&&x(-1)}}},focusedIndex:m,setFocusedIndex:v,descendants:h}}var[bX,Qk]=Qr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function SX(e){const{isDisabled:t,isFocusable:r,id:i,...o}=e,{getAccordionItemProps:c,setFocusedIndex:u}=Qk(),h=D.exports.useRef(null),m=D.exports.useId(),v=i??m,S=`accordion-button-${v}`,x=`accordion-panel-${v}`;CX(e);const{register:C,index:_,descendants:N}=gX({disabled:t&&!r}),{isOpen:O,onChange:I}=c(_===-1?null:_);_X({isOpen:O,isDisabled:t});const V=()=>{I?.(!0)},M=()=>{I?.(!1)},z=D.exports.useCallback(()=>{I?.(!O),u(_)},[_,u,O,I]),B=D.exports.useCallback(fe=>{const se={ArrowDown:()=>{const be=N.nextEnabled(_);be?.node.focus()},ArrowUp:()=>{const be=N.prevEnabled(_);be?.node.focus()},Home:()=>{const be=N.firstEnabled();be?.node.focus()},End:()=>{const be=N.lastEnabled();be?.node.focus()}}[fe.key];se&&(fe.preventDefault(),se(fe))},[N,_]),j=D.exports.useCallback(()=>{u(_)},[u,_]),K=D.exports.useCallback(function(me={},se=null){return{...me,type:"button",ref:Zi(C,h,se),id:S,disabled:!!t,"aria-expanded":!!O,"aria-controls":x,onClick:nA(me.onClick,z),onFocus:nA(me.onFocus,j),onKeyDown:nA(me.onKeyDown,B)}},[S,t,O,z,j,B,x,C]),X=D.exports.useCallback(function(me={},se=null){return{...me,ref:se,role:"region",id:x,"aria-labelledby":S,hidden:!O}},[S,O,x]);return{isOpen:O,isDisabled:t,isFocusable:r,onOpen:V,onClose:M,getButtonProps:K,getPanelProps:X,htmlProps:o}}function xX(e){const t=e.index||e.defaultIndex,r=t==null&&!Array.isArray(t)&&e.allowMultiple;eC({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function wX(e){eC({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 CX(e){eC({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 _X(e){eC({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Ep(e){const{isOpen:t,isDisabled:r}=Zk(),{reduceMotion:i}=Qk(),o=Lb("chakra-accordion__icon",e.className),c=tC(),u={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...c.icon};return k(Tl,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:u,...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:pO,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:pO,lineNumber:276,columnNumber:26},this)}Ep.displayName="AccordionIcon";var Tp=et(function(t,r){const{children:i,className:o}=t,{htmlProps:c,...u}=SX(t),m={...tC().container,overflowAnchor:"none"},v=D.exports.useMemo(()=>u,[u]);return Ue.createElement(hX,{value:v},Ue.createElement(Ge.div,{ref:r,...c,className:Lb("chakra-accordion__item",o),__css:m},typeof i=="function"?i({isExpanded:!!u.isOpen,isDisabled:!!u.isDisabled}):i))});Tp.displayName="AccordionItem";var Np=et(function(t,r){const{reduceMotion:i}=Qk(),{getPanelProps:o,isOpen:c}=Zk(),u=o(t,r),h=Lb("chakra-accordion__panel",t.className),m=tC();i||delete u.hidden;const v=Ue.createElement(Ge.div,{...u,__css:m.panel,className:h});return i?v:k(wz,{in:c,children:v},void 0,!1,{fileName:pO,lineNumber:336,columnNumber:28},this)});Np.displayName="AccordionPanel";var Tz=et(function({children:t,reduceMotion:r,...i},o){const c=Zo("Accordion",i),u=mr(i),{htmlProps:h,descendants:m,...v}=yX(u),S=D.exports.useMemo(()=>({...v,reduceMotion:!!r}),[v,r]);return Ue.createElement(mX,{value:m},Ue.createElement(bX,{value:S},Ue.createElement(pX,{value:c},Ue.createElement(Ge.div,{ref:o,...h,className:Lb("chakra-accordion",i.className),__css:c.root},t))))});Tz.displayName="Accordion";var EX=(...e)=>e.filter(Boolean).join(" "),TX=Nb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),nC=et((e,t)=>{const r=Qi("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:c="0.45s",emptyColor:u="transparent",className:h,...m}=mr(e),v=EX("chakra-spinner",h),S={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:u,borderLeftColor:u,animation:`${TX} ${c} linear infinite`,...r};return Ue.createElement(Ge.div,{ref:t,__css:S,className:v,...m},i&&Ue.createElement(Ge.span,{srOnly:!0},i))});nC.displayName="Spinner";var $p="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",rC=(...e)=>e.filter(Boolean).join(" ");function NX(e){return k(Tl,{viewBox:"0 0 24 24",...e,children:k("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:$p,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:$p,lineNumber:21,columnNumber:26},this)}function RX(e){return k(Tl,{viewBox:"0 0 24 24",...e,children:k("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:$p,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:$p,lineNumber:30,columnNumber:26},this)}function QL(e){return k(Tl,{viewBox:"0 0 24 24",...e,children:k("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:$p,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:$p,lineNumber:39,columnNumber:26},this)}var[AX,OX]=Qr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[kX,Jk]=Qr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Nz={info:{icon:RX,colorScheme:"blue"},warning:{icon:QL,colorScheme:"orange"},success:{icon:NX,colorScheme:"green"},error:{icon:QL,colorScheme:"red"},loading:{icon:nC,colorScheme:"blue"}};function DX(e){return Nz[e].colorScheme}function PX(e){return Nz[e].icon}var Rz=et(function(t,r){const{status:i="info",addRole:o=!0,...c}=mr(t),u=t.colorScheme??DX(i),h=Zo("Alert",{...t,colorScheme:u}),m={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container};return Ue.createElement(AX,{value:{status:i}},Ue.createElement(kX,{value:h},Ue.createElement(Ge.div,{role:o?"alert":void 0,ref:r,...c,className:rC("chakra-alert",t.className),__css:m})))});Rz.displayName="Alert";var Az=et(function(t,r){const i=Jk(),o={display:"inline",...i.description};return Ue.createElement(Ge.div,{ref:r,...t,className:rC("chakra-alert__desc",t.className),__css:o})});Az.displayName="AlertDescription";function Oz(e){const{status:t}=OX(),r=PX(t),i=Jk(),o=t==="loading"?i.spinner:i.icon;return Ue.createElement(Ge.span,{display:"inherit",...e,className:rC("chakra-alert__icon",e.className),__css:o},e.children||k(r,{h:"100%",w:"100%"},void 0,!1,{fileName:$p,lineNumber:133,columnNumber:40},this))}Oz.displayName="AlertIcon";var kz=et(function(t,r){const i=Jk();return Ue.createElement(Ge.div,{ref:r,...t,className:rC("chakra-alert__title",t.className),__css:i.title})});kz.displayName="AlertTitle";var MX="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function IX(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function LX(e){const{loading:t,src:r,srcSet:i,onLoad:o,onError:c,crossOrigin:u,sizes:h,ignoreFallback:m}=e,[v,S]=D.exports.useState("pending");D.exports.useEffect(()=>{S(r?"loading":"pending")},[r]);const x=D.exports.useRef(),C=D.exports.useCallback(()=>{if(!r)return;_();const N=new Image;N.src=r,u&&(N.crossOrigin=u),i&&(N.srcset=i),h&&(N.sizes=h),t&&(N.loading=t),N.onload=O=>{_(),S("loaded"),o?.(O)},N.onerror=O=>{_(),S("failed"),c?.(O)},x.current=N},[r,u,i,h,o,c,t]),_=()=>{x.current&&(x.current.onload=null,x.current.onerror=null,x.current=null)};return hc(()=>{if(!m)return v==="loading"&&C(),()=>{_()}},[v,C,m]),m?"loaded":v}var FX=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",lw=et(function(t,r){const{htmlWidth:i,htmlHeight:o,alt:c,...u}=t;return k("img",{width:i,height:o,ref:r,alt:c,...u},void 0,!1,{fileName:MX,lineNumber:90,columnNumber:26},this)});lw.displayName="NativeImage";var db=et(function(t,r){const{fallbackSrc:i,fallback:o,src:c,srcSet:u,align:h,fit:m,loading:v,ignoreFallback:S,crossOrigin:x,fallbackStrategy:C="beforeLoadOrError",referrerPolicy:_,...N}=t,O=i!==void 0||o!==void 0,I=v!=null||S||!O,V=LX({...t,ignoreFallback:I}),M=FX(V,C),z={ref:r,objectFit:m,objectPosition:h,...I?N:IX(N,["onError","onLoad"])};return M?o||Ue.createElement(Ge.img,{as:lw,className:"chakra-image__placeholder",src:i,...z}):Ue.createElement(Ge.img,{as:lw,src:c,srcSet:u,crossOrigin:x,loading:v,referrerPolicy:_,className:"chakra-image",...z})});db.displayName="Image";et((e,t)=>Ue.createElement(Ge.img,{ref:t,as:lw,className:"chakra-image",...e}));var zX=Object.create,Dz=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,Pz=Object.getOwnPropertyNames,UX=Object.getPrototypeOf,jX=Object.prototype.hasOwnProperty,Mz=(e,t)=>function(){return t||(0,e[Pz(e)[0]])((t={exports:{}}).exports,t),t.exports},$X=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pz(t))!jX.call(e,o)&&o!==r&&Dz(e,o,{get:()=>t[o],enumerable:!(i=BX(t,o))||i.enumerable});return e},VX=(e,t,r)=>(r=e!=null?zX(UX(e)):{},$X(t||!e||!e.__esModule?Dz(r,"default",{value:e,enumerable:!0}):r,e)),HX=Mz({"../../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 r="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),I=Symbol.iterator,V="@@iterator";function M(b){if(b===null||typeof b!="object")return null;var R=I&&b[I]||b[V];return typeof R=="function"?R:null}var z={current:null},B={transition:null},j={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},fe=null;function me(b){fe=b}X.setExtraStackFrame=function(b){fe=b},X.getCurrentStack=null,X.getStackAddendum=function(){var b="";fe&&(b+=fe);var R=X.getCurrentStack;return R&&(b+=R()||""),b};var se=!1,be=!1,Ke=!1,J=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=j;function Ce(b){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("warn",b,$)}}function oe(b){{for(var R=arguments.length,$=new Array(R>1?R-1:0),G=1;G<R;G++)$[G-1]=arguments[G];Se("error",b,$)}}function Se(b,R,$){{var G=Re.ReactDebugCurrentFrame,ne=G.getStackAddendum();ne!==""&&(R+="%s",$=$.concat([ne]));var Fe=$.map(function(xe){return String(xe)});Fe.unshift("Warning: "+R),Function.prototype.apply.call(console[b],console,Fe)}}var Te={};function pe(b,R){{var $=b.constructor,G=$&&($.displayName||$.name)||"ReactClass",ne=G+"."+R;if(Te[ne])return;oe("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.",R,G),Te[ne]=!0}}var we={isMounted:function(b){return!1},enqueueForceUpdate:function(b,R,$){pe(b,"forceUpdate")},enqueueReplaceState:function(b,R,$,G){pe(b,"replaceState")},enqueueSetState:function(b,R,$,G){pe(b,"setState")}},Ie=Object.assign,Le={};Object.freeze(Le);function Ye(b,R,$){this.props=b,this.context=R,this.refs=Le,this.updater=$||we}Ye.prototype.isReactComponent={},Ye.prototype.setState=function(b,R){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,R,"setState")},Ye.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};{var st={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)."]},mt=function(b,R){Object.defineProperty(Ye.prototype,b,{get:function(){Ce("%s(...) is deprecated in plain JavaScript React classes. %s",R[0],R[1])}})};for(var Gt in st)st.hasOwnProperty(Gt)&&mt(Gt,st[Gt])}function Qe(){}Qe.prototype=Ye.prototype;function vt(b,R,$){this.props=b,this.context=R,this.refs=Le,this.updater=$||we}var Et=vt.prototype=new Qe;Et.constructor=vt,Ie(Et,Ye.prototype),Et.isPureReactComponent=!0;function zt(){var b={current:null};return Object.seal(b),b}var We=Array.isArray;function Yt(b){return We(b)}function ye(b){{var R=typeof Symbol=="function"&&Symbol.toStringTag,$=R&&b[Symbol.toStringTag]||b.constructor.name||"Object";return $}}function Mt(b){try{return Kt(b),!1}catch{return!0}}function Kt(b){return""+b}function St(b){if(Mt(b))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(b)),Kt(b)}function ar(b,R,$){var G=b.displayName;if(G)return G;var ne=R.displayName||R.name||"";return ne!==""?$+"("+ne+")":$}function ir(b){return b.displayName||"Context"}function Bt(b){if(b==null)return null;if(typeof b.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case c:return"Fragment";case o:return"Portal";case h:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case C:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case v:var R=b;return ir(R)+".Consumer";case m:var $=b;return ir($._context)+".Provider";case S:return ar(b,b.render,"ForwardRef");case _:var G=b.displayName||null;return G!==null?G:Bt(b.type)||"Memo";case N:{var ne=b,Fe=ne._payload,xe=ne._init;try{return Bt(xe(Fe))}catch{return null}}}return null}var fn=Object.prototype.hasOwnProperty,kn={key:!0,ref:!0,__self:!0,__source:!0},hn,Ve,Ze;Ze={};function Jt(b){if(fn.call(b,"ref")){var R=Object.getOwnPropertyDescriptor(b,"ref").get;if(R&&R.isReactWarning)return!1}return b.ref!==void 0}function Tt(b){if(fn.call(b,"key")){var R=Object.getOwnPropertyDescriptor(b,"key").get;if(R&&R.isReactWarning)return!1}return b.key!==void 0}function ke(b,R){var $=function(){hn||(hn=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};$.isReactWarning=!0,Object.defineProperty(b,"key",{get:$,configurable:!0})}function jt(b,R){var $=function(){Ve||(Ve=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};$.isReactWarning=!0,Object.defineProperty(b,"ref",{get:$,configurable:!0})}function xn(b){if(typeof b.ref=="string"&&K.current&&b.__self&&K.current.stateNode!==b.__self){var R=Bt(K.current.type);Ze[R]||(oe('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',R,b.ref),Ze[R]=!0)}}var je=function(b,R,$,G,ne,Fe,xe){var $e={$$typeof:i,type:b,key:R,ref:$,props:xe,_owner:Fe};return $e._store={},Object.defineProperty($e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty($e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function rt(b,R,$){var G,ne={},Fe=null,xe=null,$e=null,it=null;if(R!=null){Jt(R)&&(xe=R.ref,xn(R)),Tt(R)&&(St(R.key),Fe=""+R.key),$e=R.__self===void 0?null:R.__self,it=R.__source===void 0?null:R.__source;for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(ne[G]=R[G])}var gt=arguments.length-2;if(gt===1)ne.children=$;else if(gt>1){for(var Nt=Array(gt),pt=0;pt<gt;pt++)Nt[pt]=arguments[pt+2];Object.freeze&&Object.freeze(Nt),ne.children=Nt}if(b&&b.defaultProps){var Lt=b.defaultProps;for(G in Lt)ne[G]===void 0&&(ne[G]=Lt[G])}if(Fe||xe){var wt=typeof b=="function"?b.displayName||b.name||"Unknown":b;Fe&&ke(ne,wt),xe&&jt(ne,wt)}return je(b,Fe,xe,$e,it,K.current,ne)}function xt(b,R){var $=je(b.type,R,b.ref,b._self,b._source,b._owner,b.props);return $}function dn(b,R,$){if(b==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+b+".");var G,ne=Ie({},b.props),Fe=b.key,xe=b.ref,$e=b._self,it=b._source,gt=b._owner;if(R!=null){Jt(R)&&(xe=R.ref,gt=K.current),Tt(R)&&(St(R.key),Fe=""+R.key);var Nt;b.type&&b.type.defaultProps&&(Nt=b.type.defaultProps);for(G in R)fn.call(R,G)&&!kn.hasOwnProperty(G)&&(R[G]===void 0&&Nt!==void 0?ne[G]=Nt[G]:ne[G]=R[G])}var pt=arguments.length-2;if(pt===1)ne.children=$;else if(pt>1){for(var Lt=Array(pt),wt=0;wt<pt;wt++)Lt[wt]=arguments[wt+2];ne.children=Lt}return je(b.type,Fe,xe,$e,it,gt,ne)}function Xt(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}var wn=".",Dn=":";function Rr(b){var R=/[=:]/g,$={"=":"=0",":":"=2"},G=b.replace(R,function(ne){return $[ne]});return"$"+G}var Tn=!1,ca=/\/+/g;function Fn(b){return b.replace(ca,"$&/")}function Cn(b,R){return typeof b=="object"&&b!==null&&b.key!=null?(St(b.key),Rr(""+b.key)):R.toString(36)}function fa(b,R,$,G,ne){var Fe=typeof b;(Fe==="undefined"||Fe==="boolean")&&(b=null);var xe=!1;if(b===null)xe=!0;else switch(Fe){case"string":case"number":xe=!0;break;case"object":switch(b.$$typeof){case i:case o:xe=!0}}if(xe){var $e=b,it=ne($e),gt=G===""?wn+Cn($e,0):G;if(Yt(it)){var Nt="";gt!=null&&(Nt=Fn(gt)+"/"),fa(it,R,Nt,"",function(Qf){return Qf})}else it!=null&&(Xt(it)&&(it.key&&(!$e||$e.key!==it.key)&&St(it.key),it=xt(it,$+(it.key&&(!$e||$e.key!==it.key)?Fn(""+it.key)+"/":"")+gt)),R.push(it));return 1}var pt,Lt,wt=0,Dt=G===""?wn:G+Dn;if(Yt(b))for(var gi=0;gi<b.length;gi++)pt=b[gi],Lt=Dt+Cn(pt,gi),wt+=fa(pt,R,$,Lt,ne);else{var va=M(b);if(typeof va=="function"){var Mo=b;va===Mo.entries&&(Tn||Ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tn=!0);for(var wu=va.call(Mo),Nn,yi=0;!(Nn=wu.next()).done;)pt=Nn.value,Lt=Dt+Cn(pt,yi++),wt+=fa(pt,R,$,Lt,ne)}else if(Fe==="object"){var ss=String(b);throw new Error("Objects are not valid as a React child (found: "+(ss==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":ss)+"). If you meant to render a collection of children, use an array instead.")}}return wt}function vr(b,R,$){if(b==null)return b;var G=[],ne=0;return fa(b,G,"","",function(Fe){return R.call($,Fe,ne++)}),G}function wo(b){var R=0;return vr(b,function(){R++}),R}function Jo(b,R,$){vr(b,function(){R.apply(this,arguments)},$)}function es(b){return vr(b,function(R){return R})||[]}function Co(b){if(!Xt(b))throw new Error("React.Children.only expected to receive a single React element child.");return b}function _o(b){var R={$$typeof:v,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};R.Provider={$$typeof:m,_context:R};var $=!1,G=!1,ne=!1;{var Fe={$$typeof:v,_context:R};Object.defineProperties(Fe,{Provider:{get:function(){return G||(G=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),R.Provider},set:function(xe){R.Provider=xe}},_currentValue:{get:function(){return R._currentValue},set:function(xe){R._currentValue=xe}},_currentValue2:{get:function(){return R._currentValue2},set:function(xe){R._currentValue2=xe}},_threadCount:{get:function(){return R._threadCount},set:function(xe){R._threadCount=xe}},Consumer:{get:function(){return $||($=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),R.Consumer}},displayName:{get:function(){return R.displayName},set:function(xe){ne||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),ne=!0)}}}),R.Consumer=Fe}return R._currentRenderer=null,R._currentRenderer2=null,R}var cr=-1,Oa=0,Di=1,ka=2;function q(b){if(b._status===cr){var R=b._result,$=R();if($.then(function(Fe){if(b._status===Oa||b._status===cr){var xe=b;xe._status=Di,xe._result=Fe}},function(Fe){if(b._status===Oa||b._status===cr){var xe=b;xe._status=ka,xe._result=Fe}}),b._status===cr){var G=b;G._status=Oa,G._result=$}}if(b._status===Di){var ne=b._result;return ne===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,ne),"default"in ne||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,ne),ne.default}else throw b._result}function Be(b){var R={_status:cr,_result:b},$={$$typeof:N,_payload:R,_init:q};{var G,ne;Object.defineProperties($,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("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=Fe,Object.defineProperty($,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ne},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ne=Fe,Object.defineProperty($,"propTypes",{enumerable:!0})}}})}return $}function qe(b){b!=null&&b.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!="function"?oe("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&(b.defaultProps!=null||b.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var R={$$typeof:S,render:b};{var $;Object.defineProperty(R,"displayName",{enumerable:!1,configurable:!0,get:function(){return $},set:function(G){$=G,!b.name&&!b.displayName&&(b.displayName=G)}})}return R}var bt;bt=Symbol.for("react.module.reference");function nn(b){return!!(typeof b=="string"||typeof b=="function"||b===c||b===h||ce||b===u||b===x||b===C||J||b===O||se||be||Ke||typeof b=="object"&&b!==null&&(b.$$typeof===N||b.$$typeof===_||b.$$typeof===m||b.$$typeof===v||b.$$typeof===S||b.$$typeof===bt||b.getModuleId!==void 0))}function gn(b,R){nn(b)||oe("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b);var $={$$typeof:_,type:b,compare:R===void 0?null:R};{var G;Object.defineProperty($,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(ne){G=ne,!b.name&&!b.displayName&&(b.displayName=ne)}})}return $}function tt(){var b=z.current;return b===null&&oe(`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.`),b}function $t(b){var R=tt();if(b._context!==void 0){var $=b._context;$.Consumer===b?oe("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?"):$.Provider===b&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return R.useContext(b)}function zn(b){var R=tt();return R.useState(b)}function In(b,R,$){var G=tt();return G.useReducer(b,R,$)}function an(b){var R=tt();return R.useRef(b)}function Lr(b,R){var $=tt();return $.useEffect(b,R)}function fi(b,R){var $=tt();return $.useInsertionEffect(b,R)}function Eo(b,R){var $=tt();return $.useLayoutEffect(b,R)}function da(b,R){var $=tt();return $.useCallback(b,R)}function Ji(b,R){var $=tt();return $.useMemo(b,R)}function Su(b,R,$){var G=tt();return G.useImperativeHandle(b,R,$)}function di(b,R){{var $=tt();return $.useDebugValue(b,R)}}function Bs(){var b=tt();return b.useTransition()}function Pi(b){var R=tt();return R.useDeferredValue(b)}function Zt(){var b=tt();return b.useId()}function Mi(b,R,$){var G=tt();return G.useSyncExternalStore(b,R,$)}var pa=0,To,ts,No,ns,rs,Ro,Ao;function as(){}as.__reactDisabledLog=!0;function Us(){{if(pa===0){To=console.log,ts=console.info,No=console.warn,ns=console.error,rs=console.group,Ro=console.groupCollapsed,Ao=console.groupEnd;var b={configurable:!0,enumerable:!0,value:as,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}pa++}}function js(){{if(pa--,pa===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},b,{value:To}),info:Ie({},b,{value:ts}),warn:Ie({},b,{value:No}),error:Ie({},b,{value:ns}),group:Ie({},b,{value:rs}),groupCollapsed:Ie({},b,{value:Ro}),groupEnd:Ie({},b,{value:Ao})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pi=Re.ReactCurrentDispatcher,Dr;function Da(b,R,$){{if(Dr===void 0)try{throw Error()}catch(ne){var G=ne.stack.trim().match(/\n( *(at )?)/);Dr=G&&G[1]||""}return`
`+Dr+b}}var ha=!1,Pa;{var is=typeof WeakMap=="function"?WeakMap:Map;Pa=new is}function Oo(b,R){if(!b||ha)return"";{var $=Pa.get(b);if($!==void 0)return $}var G;ha=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=pi.current,pi.current=null,Us();try{if(R){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(b,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}b.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}b()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(`
`),it=G.stack.split(`
`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=`
`+$e[gt].replace(" at new "," at ");return b.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",b.displayName)),typeof b=="function"&&Pa.set(b,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,pi.current=Fe,js(),Error.prepareStackTrace=ne}var Lt=b?b.displayName||b.name:"",wt=Lt?Da(Lt):"";return typeof b=="function"&&Pa.set(b,wt),wt}function os(b,R,$){return Oo(b,!1)}function Rl(b){var R=b.prototype;return!!(R&&R.isReactComponent)}function ma(b,R,$){if(b==null)return"";if(typeof b=="function")return Oo(b,Rl(b));if(typeof b=="string")return Da(b);switch(b){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case S:return os(b.render);case _:return ma(b.type,R,$);case N:{var G=b,ne=G._payload,Fe=G._init;try{return ma(Fe(ne),R,$)}catch{}}}return""}var ko={},Ma=Re.ReactDebugCurrentFrame;function hi(b){if(b){var R=b._owner,$=ma(b.type,b._source,R?R.type:null);Ma.setExtraStackFrame($)}else Ma.setExtraStackFrame(null)}function $s(b,R,$,G,ne){{var Fe=Function.call.bind(fn);for(var xe in b)if(Fe(b,xe)){var $e=void 0;try{if(typeof b[xe]!="function"){var it=Error((G||"React class")+": "+$+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=b[xe](R,xe,G,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(hi(ne),oe("%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",$,xe,typeof $e),hi(null)),$e instanceof Error&&!($e.message in ko)&&(ko[$e.message]=!0,hi(ne),oe("Failed %s type: %s",$,$e.message),hi(null))}}}function on(b){if(b){var R=b._owner,$=ma(b.type,b._source,R?R.type:null);me($)}else me(null)}var mi;mi=!1;function Do(){if(K.current){var b=Bt(K.current.type);if(b)return`
Check the render method of \``+b+"`."}return""}function It(b){if(b!==void 0){var R=b.fileName.replace(/^.*[\\\/]/,""),$=b.lineNumber;return`
Check your code at `+R+":"+$+"."}return""}function Vs(b){return b!=null?It(b.__source):""}var gr={};function Ii(b){var R=Do();if(!R){var $=typeof b=="string"?b:b.displayName||b.name;$&&(R=`
Check the top-level render call using <`+$+">.")}return R}function ja(b,R){if(!(!b._store||b._store.validated||b.key!=null)){b._store.validated=!0;var $=Ii(R);if(!gr[$]){gr[$]=!0;var G="";b&&b._owner&&b._owner!==K.current&&(G=" It was passed a child from "+Bt(b._owner.type)+"."),on(b),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,G),on(null)}}}function eo(b,R){if(typeof b=="object"){if(Yt(b))for(var $=0;$<b.length;$++){var G=b[$];Xt(G)&&ja(G,R)}else if(Xt(b))b._store&&(b._store.validated=!0);else if(b){var ne=M(b);if(typeof ne=="function"&&ne!==b.entries)for(var Fe=ne.call(b),xe;!(xe=Fe.next()).done;)Xt(xe.value)&&ja(xe.value,R)}}}function Cr(b){{var R=b.type;if(R==null||typeof R=="string")return;var $;if(typeof R=="function")$=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===S||R.$$typeof===_))$=R.propTypes;else return;if($){var G=Bt(R);$s($,b.props,"prop",G,b)}else if(R.PropTypes!==void 0&&!mi){mi=!0;var ne=Bt(R);oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function er(b){{for(var R=Object.keys(b.props),$=0;$<R.length;$++){var G=R[$];if(G!=="children"&&G!=="key"){on(b),oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),on(null);break}}b.ref!==null&&(on(b),oe("Invalid attribute `ref` supplied to `React.Fragment`."),on(null))}}function Po(b,R,$){var G=nn(b);if(!G){var ne="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Fe=Vs(R);Fe?ne+=Fe:ne+=Do();var xe;b===null?xe="null":Yt(b)?xe="array":b!==void 0&&b.$$typeof===i?(xe="<"+(Bt(b.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof b,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,ne)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it<arguments.length;it++)eo(arguments[it],b);return b===c?er($e):Cr($e),$e}var Hr=!1;function ur(b){var R=Po.bind(null,b);return R.type=b,Hr||(Hr=!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(R,"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:b}),b}}),R}function ea(b,R,$){for(var G=dn.apply(this,arguments),ne=2;ne<arguments.length;ne++)eo(arguments[ne],G.type);return Cr(G),G}function xu(b,R){var $=B.transition;B.transition={};var G=B.transition;B.transition._updatedFibers=new Set;try{b()}finally{if(B.transition=$,$===null&&G._updatedFibers){var ne=G._updatedFibers.size;ne>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 to=!1,vi=null;function Hs(b){if(vi===null)try{var R=("require"+Math.random()).slice(0,7),$=t&&t[R];vi=$.call(t,"timers").setImmediate}catch{vi=function(ne){to===!1&&(to=!0,typeof MessageChannel>"u"&&oe("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 Fe=new MessageChannel;Fe.port1.onmessage=ne,Fe.port2.postMessage(void 0)}}return vi(b)}var pn=0,Pn=!1;function Al(b){{var R=pn;pn++,j.current===null&&(j.current=[]);var $=j.isBatchingLegacy,G;try{if(j.isBatchingLegacy=!0,G=b(),!$&&j.didScheduleLegacyUpdate){var ne=j.current;ne!==null&&(j.didScheduleLegacyUpdate=!1,de(ne))}}catch(Lt){throw Ia(R),Lt}finally{j.isBatchingLegacy=$}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(R),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(R),wt(Dt)})}};return!Pn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Pn=!0,oe("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 () => ...);"))}),$e}else{var it=G;if(Ia(R),pn===0){var gt=j.current;gt!==null&&(de(gt),j.current=null);var Nt={then:function(Lt,wt){j.current===null?(j.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(b){b!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=b}function W(b,R,$){{var G=j.current;if(G!==null)try{de(G),Hs(function(){G.length===0?(j.current=null,R(b)):W(b,R,$)})}catch(ne){$(ne)}else R(b)}}var Q=!1;function de(b){if(!Q){Q=!0;var R=0;try{for(;R<b.length;R++){var $=b[R];do $=$(!0);while($!==null)}b.length=0}catch(G){throw b=b.slice(R+1),G}finally{Q=!1}}}var at=Po,sn=ea,Mn=ur,Vt={map:vr,forEach:Jo,count:wo,toArray:es,only:Co};e.Children=Vt,e.Component=Ye,e.Fragment=c,e.Profiler=h,e.PureComponent=vt,e.StrictMode=u,e.Suspense=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,e.cloneElement=sn,e.createContext=_o,e.createElement=at,e.createFactory=Mn,e.createRef=zt,e.forwardRef=qe,e.isValidElement=Xt,e.lazy=Be,e.memo=gn,e.startTransition=xu,e.unstable_act=Al,e.useCallback=da,e.useContext=$t,e.useDebugValue=di,e.useDeferredValue=Pi,e.useEffect=Lr,e.useId=Zt,e.useImperativeHandle=Su,e.useInsertionEffect=fi,e.useLayoutEffect=Eo,e.useMemo=Ji,e.useReducer=In,e.useRef=an,e.useState=zn,e.useSyncExternalStore=Mi,e.useTransition=Bs,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),WX=Mz({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=HX()}}),JL=VX(WX());function e2(e){return JL.Children.toArray(e).filter(t=>(0,JL.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 If="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",aC=(...e)=>e.filter(Boolean).join(" "),e5=e=>e?"":void 0,[GX,YX]=Qr({strict:!1,name:"ButtonGroupContext"});function hO(e){const{children:t,className:r,...i}=e,o=D.exports.isValidElement(t)?D.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,c=aC("chakra-button__icon",r);return Ue.createElement(Ge.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:c},o)}hO.displayName="ButtonIcon";function mO(e){const{label:t,placement:r,spacing:i="0.5rem",children:o=k(nC,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:If,lineNumber:56,columnNumber:32},this),className:c,__css:u,...h}=e,m=aC("chakra-button__spinner",c),v=r==="start"?"marginEnd":"marginStart",S=D.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...u}),[u,t,v,i]);return Ue.createElement(Ge.div,{className:m,...h,__css:S},o)}mO.displayName="ButtonSpinner";function qX(e){const[t,r]=D.exports.useState(!e);return{ref:D.exports.useCallback(c=>{!c||r(c.tagName==="BUTTON")},[]),type:t?"button":void 0}}var vu=et((e,t)=>{const r=YX(),i=Qi("Button",{...r,...e}),{isDisabled:o=r?.isDisabled,isLoading:c,isActive:u,children:h,leftIcon:m,rightIcon:v,loadingText:S,iconSpacing:x="0.5rem",type:C,spinner:_,spinnerPlacement:N="start",className:O,as:I,...V}=mr(e),M=D.exports.useMemo(()=>{const K={...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,...!!r&&{_focus:K}}},[i,r]),{ref:z,type:B}=qX(I),j={rightIcon:v,leftIcon:m,iconSpacing:x,children:h};return Ue.createElement(Ge.button,{disabled:o||c,ref:aW(t,z),as:I,type:C??B,"data-active":e5(u),"data-loading":e5(c),__css:M,className:aC("chakra-button",O),...V},c&&N==="start"&&k(mO,{className:"chakra-button__spinner--start",label:S,placement:"start",spacing:x,children:_},void 0,!1,{fileName:If,lineNumber:145,columnNumber:67},globalThis),c?S||Ue.createElement(Ge.span,{opacity:0},k(t5,{...j},void 0,!1,{fileName:If,lineNumber:152,columnNumber:22},globalThis)):k(t5,{...j},void 0,!1,{fileName:If,lineNumber:154,columnNumber:25},globalThis),c&&N==="end"&&k(mO,{className:"chakra-button__spinner--end",label:S,placement:"end",spacing:x,children:_},void 0,!1,{fileName:If,lineNumber:156,columnNumber:66},globalThis))});vu.displayName="Button";function t5(e){const{leftIcon:t,rightIcon:r,children:i,iconSpacing:o}=e;return k(bo,{children:[t&&k(hO,{marginEnd:o,children:t},void 0,!1,{fileName:If,lineNumber:166,columnNumber:96},this),i,r&&k(hO,{marginStart:o,children:r},void 0,!1,{fileName:If,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var KX=et(function(t,r){const{size:i,colorScheme:o,variant:c,className:u,spacing:h="0.5rem",isAttached:m,isDisabled:v,...S}=t,x=aC("chakra-button__group",u),C=D.exports.useMemo(()=>({size:i,colorScheme:o,variant:c,isDisabled:v}),[i,o,c,v]);let _={display:"inline-flex"};return m?_={..._,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:_={..._,"& > *:not(style) ~ *:not(style)":{marginStart:h}},Ue.createElement(GX,{value:C},Ue.createElement(Ge.div,{ref:r,role:"group",__css:_,className:x,"data-attached":m?"":void 0,...S}))});KX.displayName="ButtonGroup";var Ps=et((e,t)=>{const{icon:r,children:i,isRound:o,"aria-label":c,...u}=e,h=r||i,m=D.exports.isValidElement(h)?D.exports.cloneElement(h,{"aria-hidden":!0,focusable:!1}):null;return k(vu,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":c,...u,children:m},void 0,!1,{fileName:If,lineNumber:231,columnNumber:26},globalThis)});Ps.displayName="IconButton";var vO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",ov=(...e)=>e.filter(Boolean).join(" "),ax=e=>e?"":void 0,rA=e=>e?!0:void 0;function n5(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var[XX,Iz]=Qr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[ZX,sv]=Qr({strict:!1,name:"FormControlContext"});function QX(e){const{id:t,isRequired:r,isInvalid:i,isDisabled:o,isReadOnly:c,...u}=e,h=D.exports.useId(),m=t||`field-${h}`,v=`${m}-label`,S=`${m}-feedback`,x=`${m}-helptext`,[C,_]=D.exports.useState(!1),[N,O]=D.exports.useState(!1),[I,V]=D.exports.useState(!1),M=D.exports.useCallback((X={},fe=null)=>({id:x,...X,ref:Zi(fe,me=>{!me||O(!0)})}),[x]),z=D.exports.useCallback((X={},fe=null)=>({...X,ref:fe,"data-focus":ax(I),"data-disabled":ax(o),"data-invalid":ax(i),"data-readonly":ax(c),id:X.id??v,htmlFor:X.htmlFor??m}),[m,o,I,i,c,v]),B=D.exports.useCallback((X={},fe=null)=>({id:S,...X,ref:Zi(fe,me=>{!me||_(!0)}),"aria-live":"polite"}),[S]),j=D.exports.useCallback((X={},fe=null)=>({...X,...u,ref:fe,role:"group"}),[u]),K=D.exports.useCallback((X={},fe=null)=>({...X,ref:fe,role:"presentation","aria-hidden":!0,children:X.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!i,isReadOnly:!!c,isDisabled:!!o,isFocused:!!I,onFocus:()=>V(!0),onBlur:()=>V(!1),hasFeedbackText:C,setHasFeedbackText:_,hasHelpText:N,setHasHelpText:O,id:m,labelId:v,feedbackId:S,helpTextId:x,htmlProps:u,getHelpTextProps:M,getErrorMessageProps:B,getRootProps:j,getLabelProps:z,getRequiredIndicatorProps:K}}var Hf=et(function(t,r){const i=Zo("Form",t),o=mr(t),{getRootProps:c,htmlProps:u,...h}=QX(o),m=ov("chakra-form-control",t.className);return Ue.createElement(ZX,{value:h},Ue.createElement(XX,{value:i},Ue.createElement(Ge.div,{...c({},r),className:m,__css:i.container})))});Hf.displayName="FormControl";var JX=et(function(t,r){const i=sv(),o=Iz(),c=ov("chakra-form__helper-text",t.className);return Ue.createElement(Ge.div,{...i?.getHelpTextProps(t,r),__css:o.helperText,className:c})});JX.displayName="FormHelperText";function t2(e){const{isDisabled:t,isInvalid:r,isReadOnly:i,isRequired:o,...c}=n2(e);return{...c,disabled:t,readOnly:i,required:o,"aria-invalid":rA(r),"aria-required":rA(o),"aria-readonly":rA(i)}}function n2(e){const t=sv(),{id:r,disabled:i,readOnly:o,required:c,isRequired:u,isInvalid:h,isReadOnly:m,isDisabled:v,onFocus:S,onBlur:x,...C}=e,_=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&_.push(t.feedbackId),t?.hasHelpText&&_.push(t.helpTextId),{...C,"aria-describedby":_.join(" ")||void 0,id:r??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:o??m??t?.isReadOnly,isRequired:c??u??t?.isRequired,isInvalid:h??t?.isInvalid,onFocus:n5(t?.onFocus,S),onBlur:n5(t?.onBlur,x)}}var[eZ,tZ]=Qr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),nZ=et((e,t)=>{const r=Zo("FormError",e),i=mr(e),o=sv();return o?.isInvalid?Ue.createElement(eZ,{value:r},Ue.createElement(Ge.div,{...o?.getErrorMessageProps(i,t),className:ov("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})):null});nZ.displayName="FormErrorMessage";var rZ=et((e,t)=>{const r=tZ(),i=sv();if(!i?.isInvalid)return null;const o=ov("chakra-form__error-icon",e.className);return k(Tl,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:k("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:vO,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:vO,lineNumber:238,columnNumber:26},globalThis)});rZ.displayName="FormErrorIcon";var Wf=et(function(t,r){const i=Qi("FormLabel",t),o=mr(t),{className:c,children:u,requiredIndicator:h=k(Lz,{},void 0,!1,{fileName:vO,lineNumber:264,columnNumber:41},this),optionalIndicator:m=null,...v}=o,S=sv(),x=S?.getLabelProps(v,r)??{ref:r,...v};return Ue.createElement(Ge.label,{...x,className:ov("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i}},u,S?.isRequired?h:m)});Wf.displayName="FormLabel";var Lz=et(function(t,r){const i=sv(),o=Iz();if(!i?.isRequired)return null;const c=ov("chakra-form__required-indicator",t.className);return Ue.createElement(Ge.span,{...i?.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:c})});Lz.displayName="RequiredIndicator";function uw(e,t){const r=D.exports.useRef(!1),i=D.exports.useRef(!1);D.exports.useEffect(()=>{if(r.current&&i.current)return e();i.current=!0},t),D.exports.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}var r2={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},aZ=Ge("span",{baseStyle:r2});aZ.displayName="VisuallyHidden";var iZ=Ge("input",{baseStyle:r2});iZ.displayName="VisuallyHiddenInput";var r5=!1,iC=null,Km=!1,gO=new Set,oZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function sZ(e){return!(e.metaKey||!oZ&&e.altKey||e.ctrlKey)}function a2(e,t){gO.forEach(r=>r(e,t))}function a5(e){Km=!0,sZ(e)&&(iC="keyboard",a2("keyboard",e))}function wm(e){iC="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Km=!0,a2("pointer",e))}function lZ(e){e.target===window||e.target===document||(Km||(iC="keyboard",a2("keyboard",e)),Km=!1)}function uZ(){Km=!1}function i5(){return iC!=="pointer"}function cZ(){if(typeof window>"u"||r5)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Km=!0,e.apply(this,r)},document.addEventListener("keydown",a5,!0),document.addEventListener("keyup",a5,!0),window.addEventListener("focus",lZ,!0),window.addEventListener("blur",uZ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",wm,!0),document.addEventListener("pointermove",wm,!0),document.addEventListener("pointerup",wm,!0)):(document.addEventListener("mousedown",wm,!0),document.addEventListener("mousemove",wm,!0),document.addEventListener("mouseup",wm,!0)),r5=!0}function fZ(e){cZ(),e(i5());const t=()=>e(i5());return gO.add(t),()=>{gO.delete(t)}}var wl="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[_me,dZ]=Qr({name:"CheckboxGroupContext",strict:!1}),pZ=(...e)=>e.filter(Boolean).join(" "),Yi=e=>e?"":void 0;function Os(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}function hZ(...e){return function(r){e.forEach(i=>{i?.(r)})}}function mZ(e){const t=Nl;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var Fz=mZ(Ge.svg);function vZ(e){return k(Fz,{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:k("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:wl,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:wl,lineNumber:116,columnNumber:26},this)}function gZ(e){return k(Fz,{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:k("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:wl,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:wl,lineNumber:142,columnNumber:26},this)}function yZ({open:e,children:t}){return k(bc,{initial:!1,children:e&&Ue.createElement(Nl.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:wl,lineNumber:169,columnNumber:26},this)}function bZ(e){const{isIndeterminate:t,isChecked:r,...i}=e;return k(yZ,{open:r||t,children:k(t?gZ:vZ,{...i},void 0,!1,{fileName:wl,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:wl,lineNumber:190,columnNumber:26},this)}function SZ(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function zz(e={}){const t=n2(e),{isDisabled:r,isReadOnly:i,isRequired:o,isInvalid:c,id:u,onBlur:h,onFocus:m,"aria-describedby":v}=t,{defaultChecked:S,isChecked:x,isFocusable:C,onChange:_,isIndeterminate:N,name:O,value:I,tabIndex:V=void 0,"aria-label":M,"aria-labelledby":z,"aria-invalid":B,...j}=e,K=SZ(j,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),X=ki(_),fe=ki(h),me=ki(m),[se,be]=D.exports.useState(!1),[Ke,J]=D.exports.useState(!1),[ce,Re]=D.exports.useState(!1),[Ce,oe]=D.exports.useState(!1);D.exports.useEffect(()=>fZ(be),[]);const Se=D.exports.useRef(null),[Te,pe]=D.exports.useState(!0),[we,Ie]=D.exports.useState(!!S),Le=x!==void 0,Ye=Le?x:we,st=D.exports.useCallback(ye=>{if(i||r){ye.preventDefault();return}Le||Ie(Ye?ye.target.checked:N?!0:ye.target.checked),X?.(ye)},[i,r,Ye,Le,N,X]);hc(()=>{Se.current&&(Se.current.indeterminate=Boolean(N))},[N]),uw(()=>{r&&J(!1)},[r,J]),hc(()=>{const ye=Se.current;!ye?.form||(ye.form.onreset=()=>{Ie(!!S)})},[]);const mt=r&&!C,Gt=D.exports.useCallback(ye=>{ye.key===" "&&oe(!0)},[oe]),Qe=D.exports.useCallback(ye=>{ye.key===" "&&oe(!1)},[oe]);hc(()=>{if(!Se.current)return;Se.current.checked!==Ye&&Ie(Se.current.checked)},[Se.current]);const vt=D.exports.useCallback((ye={},Mt=null)=>{const Kt=St=>{Ke&&St.preventDefault(),oe(!0)};return{...ye,ref:Mt,"data-active":Yi(Ce),"data-hover":Yi(ce),"data-checked":Yi(Ye),"data-focus":Yi(Ke),"data-focus-visible":Yi(Ke&&se),"data-indeterminate":Yi(N),"data-disabled":Yi(r),"data-invalid":Yi(c),"data-readonly":Yi(i),"aria-hidden":!0,onMouseDown:Os(ye.onMouseDown,Kt),onMouseUp:Os(ye.onMouseUp,()=>oe(!1)),onMouseEnter:Os(ye.onMouseEnter,()=>Re(!0)),onMouseLeave:Os(ye.onMouseLeave,()=>Re(!1))}},[Ce,Ye,r,Ke,se,ce,N,c,i]),Et=D.exports.useCallback((ye={},Mt=null)=>({...K,...ye,ref:Zi(Mt,Kt=>{!Kt||pe(Kt.tagName==="LABEL")}),onClick:Os(ye.onClick,()=>{var Kt;Te||((Kt=Se.current)==null||Kt.click(),requestAnimationFrame(()=>{var St;(St=Se.current)==null||St.focus()}))}),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[K,r,Ye,c,Te]),zt=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Zi(Se,Mt),type:"checkbox",name:O,value:I,id:u,tabIndex:V,onChange:Os(ye.onChange,st),onBlur:Os(ye.onBlur,fe,()=>J(!1)),onFocus:Os(ye.onFocus,me,()=>J(!0)),onKeyDown:Os(ye.onKeyDown,Gt),onKeyUp:Os(ye.onKeyUp,Qe),required:o,checked:Ye,disabled:mt,readOnly:i,"aria-label":M,"aria-labelledby":z,"aria-invalid":B?Boolean(B):c,"aria-describedby":v,"aria-disabled":r,style:r2}),[O,I,u,st,fe,me,Gt,Qe,o,Ye,mt,i,M,z,B,c,v,r,V]),We=D.exports.useCallback((ye={},Mt=null)=>({...ye,ref:Mt,onMouseDown:Os(ye.onMouseDown,o5),onTouchStart:Os(ye.onTouchStart,o5),"data-disabled":Yi(r),"data-checked":Yi(Ye),"data-invalid":Yi(c)}),[Ye,r,c]);return{state:{isInvalid:c,isFocused:Ke,isChecked:Ye,isActive:Ce,isHovered:ce,isIndeterminate:N,isDisabled:r,isReadOnly:i,isRequired:o},getRootProps:Et,getCheckboxProps:vt,getInputProps:zt,getLabelProps:We,htmlProps:K}}function o5(e){e.preventDefault(),e.stopPropagation()}var xZ=Ge("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),wZ=Ge("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),CZ=et(function(t,r){const i=dZ(),o={...i,...t},c=Zo("Checkbox",o),u=mr(t),{spacing:h="0.5rem",className:m,children:v,iconColor:S,iconSize:x,icon:C=k(bZ,{},void 0,!1,{fileName:wl,lineNumber:505,columnNumber:28},this),isChecked:_,isDisabled:N=i?.isDisabled,onChange:O,inputProps:I,...V}=u;let M=_;i?.value&&u.value&&(M=i.value.includes(u.value));let z=O;i?.onChange&&u.value&&(z=hZ(i.onChange,O));const{state:B,getInputProps:j,getCheckboxProps:K,getLabelProps:X,getRootProps:fe}=zz({...V,isDisabled:N,isChecked:M,onChange:z}),me=D.exports.useMemo(()=>({opacity:B.isChecked||B.isIndeterminate?1:0,transform:B.isChecked||B.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:x,color:S,...c.icon}),[S,x,B.isChecked,B.isIndeterminate,c.icon]),se=D.exports.cloneElement(C,{__css:me,isIndeterminate:B.isIndeterminate,isChecked:B.isChecked});return k(wZ,{__css:c.container,className:pZ("chakra-checkbox",m),...fe(),children:[k("input",{className:"chakra-checkbox__input",...j(I,r)},void 0,!1,{fileName:wl,lineNumber:548,columnNumber:22},this),k(xZ,{__css:c.control,className:"chakra-checkbox__control",...K(),children:se},void 0,!1,{fileName:wl,lineNumber:551,columnNumber:23},this),v&&Ue.createElement(Ge.span,{className:"chakra-checkbox__label",...X(),__css:{marginStart:h,...c.label}},v)]},void 0,!0,{fileName:wl,lineNumber:544,columnNumber:26},this)});CZ.displayName="Checkbox";var yO="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function _Z(e){return k(Tl,{focusable:"false","aria-hidden":!0,...e,children:k("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:yO,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:yO,lineNumber:13,columnNumber:26},this)}var i2=et(function(t,r){const i=Qi("CloseButton",t),{children:o,isDisabled:c,__css:u,...h}=mr(t),m={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Ue.createElement(Ge.button,{type:"button","aria-label":"Close",ref:r,disabled:c,__css:{...m,...i,...u},...h},o||k(_Z,{width:"1em",height:"1em"},void 0,!1,{fileName:yO,lineNumber:43,columnNumber:34},this))});i2.displayName="CloseButton";function EZ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function Bz(e,t){let r=EZ(e);const i=10**(t??10);return r=Math.round(r*i)/i,t?r.toFixed(t):r.toString()}function s5(e){if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r}function TZ(e,t,r){return e==null?e:(r<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),r))}function NZ(e={}){const{onChange:t,precision:r,defaultValue:i,value:o,step:c=1,min:u=Number.MIN_SAFE_INTEGER,max:h=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,v=ki(t),[S,x]=D.exports.useState(()=>i==null?"":aA(i,c,r)??""),C=typeof o<"u",_=C?o:S,N=Uz(Nf(_),c),O=r??N,I=D.exports.useCallback(se=>{se!==_&&(C||x(se.toString()),v?.(se.toString(),Nf(se)))},[v,C,_]),V=D.exports.useCallback(se=>{let be=se;return m&&(be=TZ(be,u,h)),Bz(be,O)},[O,m,h,u]),M=D.exports.useCallback((se=c)=>{let be;_===""?be=Nf(se):be=Nf(_)+se,be=V(be),I(be)},[V,c,I,_]),z=D.exports.useCallback((se=c)=>{let be;_===""?be=Nf(-se):be=Nf(_)-se,be=V(be),I(be)},[V,c,I,_]),B=D.exports.useCallback(()=>{let se;i==null?se="":se=aA(i,c,r)??u,I(se)},[i,r,c,I,u]),j=D.exports.useCallback(se=>{const be=aA(se,c,O)??u;I(be)},[O,c,I,u]),K=Nf(_);return{isOutOfRange:K>h||K<u,isAtMax:K===h,isAtMin:K===u,precision:O,value:_,valueAsNumber:K,update:I,reset:B,increment:M,decrement:z,clamp:V,cast:j,setValue:x}}function Nf(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function Uz(e,t){return Math.max(s5(t),s5(e))}function aA(e,t,r){const i=Nf(e);if(Number.isNaN(i))return;const o=Uz(i,t);return Bz(i,r??o)}var jz="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",$z=`
: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;
}
}
`,RZ=()=>k(Tb,{styles:$z},void 0,!1,{fileName:jz,lineNumber:29,columnNumber:41},globalThis),AZ=()=>k(Tb,{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;
}
${$z}
`},void 0,!1,{fileName:jz,lineNumber:32,columnNumber:38},globalThis);function bO(e,t,r,i){const o=ki(r);return D.exports.useEffect(()=>{const c=typeof e=="function"?e():e??document;if(!(!r||!c))return c.addEventListener(t,o,i),()=>{c.removeEventListener(t,o,i)}},[t,e,i,o,r]),()=>{const c=typeof e=="function"?e():e??document;c?.removeEventListener(t,o,i)}}var OZ=A7?D.exports.useLayoutEffect:D.exports.useEffect;function l5(e,t=[]){const r=D.exports.useRef(e);return OZ(()=>{r.current=e}),D.exports.useCallback((...i)=>{var o;return(o=r.current)==null?void 0:o.call(r,...i)},t)}function kZ(e,t){const r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}function DZ(e,t){const r=D.exports.useId();return D.exports.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function SO(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,c=l5(r),u=l5(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),[v,S]=kZ(i,h),x=DZ(o,"disclosure"),C=D.exports.useCallback(()=>{v||m(!1),u?.()},[v,u]),_=D.exports.useCallback(()=>{v||m(!0),c?.()},[v,c]),N=D.exports.useCallback(()=>{(S?C:_)()},[S,_,C]);return{isOpen:!!S,onOpen:_,onClose:C,onToggle:N,isControlled:v,getButtonProps:(O={})=>({...O,"aria-expanded":S,"aria-controls":x,onClick:O7(O.onClick,N)}),getDisclosureProps:(O={})=>({...O,hidden:!S,id:x})}}function o2(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var qp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",s2=et(function(t,r){const{htmlSize:i,...o}=t,c=Zo("Input",o),u=mr(o),h=t2(u),m=Jr("chakra-input",t.className);return Ue.createElement(Ge.input,{size:i,...h,__css:c.field,ref:r,className:m})});s2.displayName="Input";s2.id="Input";var[PZ,Vz]=Qr({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),MZ=et(function(t,r){const i=Zo("Input",t),{children:o,className:c,...u}=mr(t),h=Jr("chakra-input__group",c),m={},v=e2(o),S=i.field;v.forEach(C=>{!i||(S&&C.type.id==="InputLeftElement"&&(m.paddingStart=S.height??S.h),S&&C.type.id==="InputRightElement"&&(m.paddingEnd=S.height??S.h),C.type.id==="InputRightAddon"&&(m.borderEndRadius=0),C.type.id==="InputLeftAddon"&&(m.borderStartRadius=0))});const x=v.map(C=>{var _,N;const O=o2({size:((_=C.props)==null?void 0:_.size)||t.size,variant:((N=C.props)==null?void 0:N.variant)||t.variant});return C.type.id!=="Input"?D.exports.cloneElement(C,O):D.exports.cloneElement(C,Object.assign(O,m,C.props))});return Ue.createElement(Ge.div,{className:h,ref:r,__css:{width:"100%",display:"flex",position:"relative"},...u},k(PZ,{value:i,children:x},void 0,!1,{fileName:qp,lineNumber:90,columnNumber:22},this))});MZ.displayName="InputGroup";var IZ={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},LZ=Ge("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),l2=et(function(t,r){const{placement:i="left",...o}=t,c=IZ[i]??{},u=Vz();return k(LZ,{ref:r,...o,__css:{...u.addon,...c}},void 0,!1,{fileName:qp,lineNumber:122,columnNumber:26},this)});l2.displayName="InputAddon";var Hz=et(function(t,r){return k(l2,{ref:r,placement:"left",...t,className:Jr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:qp,lineNumber:133,columnNumber:26},this)});Hz.displayName="InputLeftAddon";Hz.id="InputLeftAddon";var Wz=et(function(t,r){return k(l2,{ref:r,placement:"right",...t,className:Jr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:qp,lineNumber:143,columnNumber:26},this)});Wz.displayName="InputRightAddon";Wz.id="InputRightAddon";var FZ=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),oC=et(function(t,r){const{placement:i="left",...o}=t,c=Vz(),u=c.field,m={[i==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...c.element};return k(FZ,{ref:r,__css:m,...o},void 0,!1,{fileName:qp,lineNumber:181,columnNumber:26},this)});oC.id="InputElement";oC.displayName="InputElement";var Gz=et(function(t,r){const{className:i,...o}=t,c=Jr("chakra-input__left-element",i);return k(oC,{ref:r,placement:"left",className:c,...o},void 0,!1,{fileName:qp,lineNumber:192,columnNumber:26},this)});Gz.id="InputLeftElement";Gz.displayName="InputLeftElement";var Yz=et(function(t,r){const{className:i,...o}=t,c=Jr("chakra-input__right-element",i);return k(oC,{ref:r,placement:"right",className:c,...o},void 0,!1,{fileName:qp,lineNumber:204,columnNumber:26},this)});Yz.id="InputRightElement";Yz.displayName="InputRightElement";function zZ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Gf(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):zZ(e)?Object.keys(e).reduce((r,i)=>(r[i]=t(e[i]),r),{}):e!=null?t(e):null}var Is="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",BZ=et(function(e,t){const{ratio:r=4/3,children:i,className:o,...c}=e,u=D.exports.Children.only(i),h=Jr("chakra-aspect-ratio",o);return Ue.createElement(Ge.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:Gf(r,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"}},...c},u)});BZ.displayName="AspectRatio";var UZ=et(function(t,r){const i=Qi("Badge",t),{className:o,...c}=mr(t);return Ue.createElement(Ge.span,{ref:r,className:Jr("chakra-badge",t.className),...c,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});UZ.displayName="Badge";var Fp=Ge("div");Fp.displayName="Box";var qz=et(function(t,r){const{size:i,centerContent:o=!0,...c}=t;return k(Fp,{ref:r,boxSize:i,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...c},void 0,!1,{fileName:Is,lineNumber:84,columnNumber:26},this)});qz.displayName="Square";var jZ=et(function(t,r){const{size:i,...o}=t;return k(qz,{size:i,ref:r,borderRadius:"9999px",...o},void 0,!1,{fileName:Is,lineNumber:98,columnNumber:26},this)});jZ.displayName="Circle";var pb=Ge("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});pb.displayName="Center";var $Z={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};et(function(t,r){const{axis:i="both",...o}=t;return Ue.createElement(Ge.div,{ref:r,__css:$Z[i],...o,position:"absolute"})});var VZ=et(function(t,r){const i=Qi("Code",t),{className:o,...c}=mr(t);return Ue.createElement(Ge.code,{ref:r,className:Jr("chakra-code",t.className),...c,__css:{display:"inline-block",...i}})});VZ.displayName="Code";var HZ=et(function(t,r){const{className:i,centerContent:o,...c}=mr(t),u=Qi("Container",t);return Ue.createElement(Ge.div,{ref:r,className:Jr("chakra-container",i),...c,__css:{...u,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});HZ.displayName="Container";var WZ=et(function(t,r){const{borderLeftWidth:i,borderBottomWidth:o,borderTopWidth:c,borderRightWidth:u,borderWidth:h,borderStyle:m,borderColor:v,...S}=Qi("Divider",t),{className:x,orientation:C="horizontal",__css:_,...N}=mr(t),O={vertical:{borderLeftWidth:i||u||h||"1px",height:"100%"},horizontal:{borderBottomWidth:o||c||h||"1px",width:"100%"}};return Ue.createElement(Ge.hr,{ref:r,"aria-orientation":C,...N,__css:{...S,border:"0",borderColor:v,borderStyle:m,...O[C],..._},className:Jr("chakra-divider",x)})});WZ.displayName="Divider";var On=et(function(t,r){const{direction:i,align:o,justify:c,wrap:u,basis:h,grow:m,shrink:v,...S}=t,x={display:"flex",flexDirection:i,alignItems:o,justifyContent:c,flexWrap:u,flexBasis:h,flexGrow:m,flexShrink:v};return Ue.createElement(Ge.div,{ref:r,__css:x,...S})});On.displayName="Flex";var u2=et(function(t,r){const{templateAreas:i,gap:o,rowGap:c,columnGap:u,column:h,row:m,autoFlow:v,autoRows:S,templateRows:x,autoColumns:C,templateColumns:_,...N}=t,O={display:"grid",gridTemplateAreas:i,gridGap:o,gridRowGap:c,gridColumnGap:u,gridAutoColumns:C,gridColumn:h,gridRow:m,gridAutoFlow:v,gridAutoRows:S,gridTemplateRows:x,gridTemplateColumns:_};return Ue.createElement(Ge.div,{ref:r,__css:O,...N})});u2.displayName="Grid";function u5(e){return Gf(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Rf=et(function(t,r){const{area:i,colSpan:o,colStart:c,colEnd:u,rowEnd:h,rowSpan:m,rowStart:v,...S}=t,x=o2({gridArea:i,gridColumn:u5(o),gridRow:u5(m),gridColumnStart:c,gridColumnEnd:u,gridRowStart:v,gridRowEnd:h});return Ue.createElement(Ge.div,{ref:r,__css:x,...S})});Rf.displayName="GridItem";var c2=et(function(t,r){const i=Qi("Heading",t),{className:o,...c}=mr(t);return Ue.createElement(Ge.h2,{ref:r,className:Jr("chakra-heading",t.className),...c,__css:i})});c2.displayName="Heading";et(function(t,r){const i=Qi("Mark",t),o=mr(t);return k(Fp,{ref:r,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:Is,lineNumber:399,columnNumber:26},this)});var GZ=et(function(t,r){const i=Qi("Kbd",t),{className:o,...c}=mr(t);return Ue.createElement(Ge.kbd,{ref:r,className:Jr("chakra-kbd",o),...c,__css:{fontFamily:"mono",...i}})});GZ.displayName="Kbd";var cw=et(function(t,r){const i=Qi("Link",t),{className:o,isExternal:c,...u}=mr(t);return Ue.createElement(Ge.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:r,className:Jr("chakra-link",o),...u,__css:i})});cw.displayName="Link";et(function(t,r){const{isExternal:i,target:o,rel:c,className:u,...h}=t;return Ue.createElement(Ge.a,{...h,ref:r,className:Jr("chakra-linkbox__overlay",u),rel:i?"noopener noreferrer":c,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%"}}})});et(function(t,r){const{className:i,...o}=t;return Ue.createElement(Ge.div,{ref:r,position:"relative",...o,className:Jr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[YZ,Kz]=Qr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),sC=et(function(t,r){const i=Zo("List",t),{children:o,styleType:c="none",stylePosition:u,spacing:h,...m}=mr(t),v=e2(o),x=h?{["& > *:not(style) ~ *:not(style)"]:{mt:h}}:{};return Ue.createElement(YZ,{value:i},Ue.createElement(Ge.ul,{ref:r,listStyleType:c,listStylePosition:u,role:"list",__css:{...i.container,...x},...m},v))});sC.displayName="List";var qZ=et((e,t)=>{const{as:r,...i}=e;return k(sC,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:Is,lineNumber:550,columnNumber:26},globalThis)});qZ.displayName="OrderedList";var KZ=et(function(t,r){const{as:i,...o}=t;return k(sC,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...o},void 0,!1,{fileName:Is,lineNumber:561,columnNumber:26},this)});KZ.displayName="UnorderedList";var Xz=et(function(t,r){const i=Kz();return Ue.createElement(Ge.li,{ref:r,...t,__css:i.item})});Xz.displayName="ListItem";var XZ=et(function(t,r){const i=Kz();return k(Tl,{ref:r,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:Is,lineNumber:581,columnNumber:26},this)});XZ.displayName="ListIcon";var ZZ=et(function(t,r){const{columns:i,spacingX:o,spacingY:c,spacing:u,minChildWidth:h,...m}=t,v=Ck(),S=h?JZ(h,v):eQ(i);return k(u2,{ref:r,gap:u,columnGap:o,rowGap:c,templateColumns:S,...m},void 0,!1,{fileName:Is,lineNumber:601,columnNumber:26},this)});ZZ.displayName="SimpleGrid";function QZ(e){return typeof e=="number"?`${e}px`:e}function JZ(e,t){return Gf(e,r=>{const i=Y7("sizes",r,QZ(r))(t);return r===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function eQ(e){return Gf(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Zz=Ge("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Zz.displayName="Spacer";var xO="& > *:not(style) ~ *:not(style)";function tQ(e){const{spacing:t,direction:r}=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:r,[xO]:Gf(r,o=>i[o])}}function nQ(e){const{spacing:t,direction:r}=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{"&":Gf(r,o=>i[o])}}var Qz=e=>Ue.createElement(Ge.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Qz.displayName="StackItem";var f2=et((e,t)=>{const{isInline:r,direction:i,align:o,justify:c,spacing:u="0.5rem",wrap:h,children:m,divider:v,className:S,shouldWrapChildren:x,...C}=e,_=r?"row":i??"column",N=D.exports.useMemo(()=>tQ({direction:_,spacing:u}),[_,u]),O=D.exports.useMemo(()=>nQ({spacing:u,direction:_}),[u,_]),I=!!v,V=!x&&!I,M=e2(m),z=V?M:M.map((j,K)=>{const X=typeof j.key<"u"?j.key:K,fe=K+1===M.length,se=x?k(Qz,{children:j},X,!1,{fileName:Is,lineNumber:749,columnNumber:42},globalThis):j;if(!I)return se;const be=D.exports.cloneElement(v,{__css:O}),Ke=fe?null:be;return k(D.exports.Fragment,{children:[se,Ke]},X,!0,{fileName:Is,lineNumber:759,columnNumber:28},globalThis)}),B=Jr("chakra-stack",S);return Ue.createElement(Ge.div,{ref:t,display:"flex",alignItems:o,justifyContent:c,flexDirection:N.flexDirection,flexWrap:h,className:B,__css:I?{}:{[xO]:N[xO]},...C},z)});f2.displayName="Stack";var fw=et((e,t)=>k(f2,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:Is,lineNumber:779,columnNumber:59},globalThis));fw.displayName="HStack";var rQ=et((e,t)=>k(f2,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:Is,lineNumber:805,columnNumber:59},globalThis));rQ.displayName="VStack";var Nr=et(function(t,r){const i=Qi("Text",t),{className:o,align:c,decoration:u,casing:h,...m}=mr(t),v=o2({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Ue.createElement(Ge.p,{ref:r,className:Jr("chakra-text",t.className),...v,...m,__css:i})});Nr.displayName="Text";function c5(e){return typeof e=="number"?`${e}px`:e}var aQ=et(function(t,r){const{spacing:i="0.5rem",spacingX:o,spacingY:c,children:u,justify:h,direction:m,align:v,className:S,shouldWrapChildren:x,...C}=t,_=D.exports.useMemo(()=>{const{spacingX:O=i,spacingY:I=i}={spacingX:o,spacingY:c};return{"--chakra-wrap-x-spacing":V=>Gf(O,M=>c5(IA("space",M)(V))),"--chakra-wrap-y-spacing":V=>Gf(I,M=>c5(IA("space",M)(V))),"--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:h,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,c,h,v,m]),N=x?D.exports.Children.map(u,(O,I)=>k(Jz,{children:O},I,!1,{fileName:Is,lineNumber:888,columnNumber:107},this)):u;return Ue.createElement(Ge.div,{ref:r,className:Jr("chakra-wrap",S),overflow:"hidden",...C},Ue.createElement(Ge.ul,{className:"chakra-wrap__list",__css:_},N))});aQ.displayName="Wrap";var Jz=et(function(t,r){const{className:i,...o}=t;return Ue.createElement(Ge.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:Jr("chakra-wrap__listitem",i),...o})});Jz.displayName="WrapItem";var f5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",iQ={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[]}}}},eB=iQ,Cm=()=>{},oQ={document:eB,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Cm,removeEventListener:Cm,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:Cm,removeListener:Cm}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:Cm,setInterval:()=>0,clearInterval:Cm},sQ=oQ,lQ={window:sQ,document:eB},tB=typeof window<"u"?{window,document}:lQ,nB=D.exports.createContext(tB);nB.displayName="EnvironmentContext";function rB(e){const{children:t,environment:r}=e,[i,o]=D.exports.useState(null),[c,u]=D.exports.useState(!1);D.exports.useEffect(()=>u(!0),[]);const h=D.exports.useMemo(()=>{if(r)return r;const m=i?.ownerDocument,v=i?.ownerDocument.defaultView;return m?{document:m,window:v}:tB},[i,r]);return k(nB.Provider,{value:h,children:[t,!r&&c&&k("span",{id:"__chakra_env",hidden:!0,ref:m=>{D.exports.startTransition(()=>{m&&o(m)})}},void 0,!1,{fileName:f5,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:f5,lineNumber:134,columnNumber:26},this)}rB.displayName="EnvironmentProvider";function uQ(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function cQ(e){if(!uQ(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var fQ=e=>e.hasAttribute("tabindex");function dQ(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function aB(e){return e.parentElement&&aB(e.parentElement)?!0:e.hidden}function pQ(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function hQ(e){if(!cQ(e)||aB(e)||dQ(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]():pQ(e)?!0:fQ(e)}var mQ=["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]"],vQ=mQ.join(),gQ=e=>e.offsetWidth>0&&e.offsetHeight>0;function yQ(e){const t=Array.from(e.querySelectorAll(vQ));return t.unshift(e),t.filter(r=>hQ(r)&&gQ(r))}var go="top",Ls="bottom",Fs="right",yo="left",lC="auto",Fb=[go,Ls,Fs,yo],Xm="start",hb="end",bQ="clippingParents",iB="viewport",Ty="popper",SQ="reference",d5=Fb.reduce(function(e,t){return e.concat([t+"-"+Xm,t+"-"+hb])},[]),oB=[].concat(Fb,[lC]).reduce(function(e,t){return e.concat([t,t+"-"+Xm,t+"-"+hb])},[]),xQ="beforeRead",wQ="read",CQ="afterRead",_Q="beforeMain",EQ="main",TQ="afterMain",NQ="beforeWrite",RQ="write",AQ="afterWrite",wO=[xQ,wQ,CQ,_Q,EQ,TQ,NQ,RQ,AQ];function gu(e){return e?(e.nodeName||"").toLowerCase():null}function zs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vp(e){var t=zs(e).Element;return e instanceof t||e instanceof Element}function Yo(e){var t=zs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function d2(e){if(typeof ShadowRoot>"u")return!1;var t=zs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OQ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},o=t.attributes[r]||{},c=t.elements[r];!Yo(c)||!gu(c)||(Object.assign(c.style,i),Object.keys(o).forEach(function(u){var h=o[u];h===!1?c.removeAttribute(u):c.setAttribute(u,h===!0?"":h)}))})}function kQ(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],c=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),h=u.reduce(function(m,v){return m[v]="",m},{});!Yo(o)||!gu(o)||(Object.assign(o.style,h),Object.keys(c).forEach(function(m){o.removeAttribute(m)}))})}}const DQ={name:"applyStyles",enabled:!0,phase:"write",fn:OQ,effect:kQ,requires:["computeStyles"]};function _l(e){return e.split("-")[0]}var zp=Math.max,dw=Math.min,Zm=Math.round;function CO(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sB(){return!/^((?!chrome|android).)*safari/i.test(CO())}function Qm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),o=1,c=1;t&&Yo(e)&&(o=e.offsetWidth>0&&Zm(i.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Zm(i.height)/e.offsetHeight||1);var u=Vp(e)?zs(e):window,h=u.visualViewport,m=!sB()&&r,v=(i.left+(m&&h?h.offsetLeft:0))/o,S=(i.top+(m&&h?h.offsetTop:0))/c,x=i.width/o,C=i.height/c;return{width:x,height:C,top:S,right:v+x,bottom:S+C,left:v,x:v,y:S}}function p2(e){var t=Qm(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function lB(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&d2(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function El(e){return zs(e).getComputedStyle(e)}function PQ(e){return["table","td","th"].indexOf(gu(e))>=0}function Zf(e){return((Vp(e)?e.ownerDocument:e.document)||window.document).documentElement}function uC(e){return gu(e)==="html"?e:e.assignedSlot||e.parentNode||(d2(e)?e.host:null)||Zf(e)}function p5(e){return!Yo(e)||El(e).position==="fixed"?null:e.offsetParent}function MQ(e){var t=/firefox/i.test(CO()),r=/Trident/i.test(CO());if(r&&Yo(e)){var i=El(e);if(i.position==="fixed")return null}var o=uC(e);for(d2(o)&&(o=o.host);Yo(o)&&["html","body"].indexOf(gu(o))<0;){var c=El(o);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||t&&c.willChange==="filter"||t&&c.filter&&c.filter!=="none")return o;o=o.parentNode}return null}function zb(e){for(var t=zs(e),r=p5(e);r&&PQ(r)&&El(r).position==="static";)r=p5(r);return r&&(gu(r)==="html"||gu(r)==="body"&&El(r).position==="static")?t:r||MQ(e)||t}function h2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gy(e,t,r){return zp(e,dw(t,r))}function IQ(e,t,r){var i=Gy(e,t,r);return i>r?r:i}function uB(){return{top:0,right:0,bottom:0,left:0}}function cB(e){return Object.assign({},uB(),e)}function fB(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var LQ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cB(typeof t!="number"?t:fB(t,Fb))};function FQ(e){var t,r=e.state,i=e.name,o=e.options,c=r.elements.arrow,u=r.modifiersData.popperOffsets,h=_l(r.placement),m=h2(h),v=[yo,Fs].indexOf(h)>=0,S=v?"height":"width";if(!(!c||!u)){var x=LQ(o.padding,r),C=p2(c),_=m==="y"?go:yo,N=m==="y"?Ls:Fs,O=r.rects.reference[S]+r.rects.reference[m]-u[m]-r.rects.popper[S],I=u[m]-r.rects.reference[m],V=zb(c),M=V?m==="y"?V.clientHeight||0:V.clientWidth||0:0,z=O/2-I/2,B=x[_],j=M-C[S]-x[N],K=M/2-C[S]/2+z,X=Gy(B,K,j),fe=m;r.modifiersData[i]=(t={},t[fe]=X,t.centerOffset=X-K,t)}}function zQ(e){var t=e.state,r=e.options,i=r.element,o=i===void 0?"[data-popper-arrow]":i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(Yo(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(" ")),!lB(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 BQ={name:"arrow",enabled:!0,phase:"main",fn:FQ,effect:zQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jm(e){return e.split("-")[1]}var UQ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jQ(e){var t=e.x,r=e.y,i=window,o=i.devicePixelRatio||1;return{x:Zm(t*o)/o||0,y:Zm(r*o)/o||0}}function h5(e){var t,r=e.popper,i=e.popperRect,o=e.placement,c=e.variation,u=e.offsets,h=e.position,m=e.gpuAcceleration,v=e.adaptive,S=e.roundOffsets,x=e.isFixed,C=u.x,_=C===void 0?0:C,N=u.y,O=N===void 0?0:N,I=typeof S=="function"?S({x:_,y:O}):{x:_,y:O};_=I.x,O=I.y;var V=u.hasOwnProperty("x"),M=u.hasOwnProperty("y"),z=yo,B=go,j=window;if(v){var K=zb(r),X="clientHeight",fe="clientWidth";if(K===zs(r)&&(K=Zf(r),El(K).position!=="static"&&h==="absolute"&&(X="scrollHeight",fe="scrollWidth")),K=K,o===go||(o===yo||o===Fs)&&c===hb){B=Ls;var me=x&&K===j&&j.visualViewport?j.visualViewport.height:K[X];O-=me-i.height,O*=m?1:-1}if(o===yo||(o===go||o===Ls)&&c===hb){z=Fs;var se=x&&K===j&&j.visualViewport?j.visualViewport.width:K[fe];_-=se-i.width,_*=m?1:-1}}var be=Object.assign({position:h},v&&UQ),Ke=S===!0?jQ({x:_,y:O}):{x:_,y:O};if(_=Ke.x,O=Ke.y,m){var J;return Object.assign({},be,(J={},J[B]=M?"0":"",J[z]=V?"0":"",J.transform=(j.devicePixelRatio||1)<=1?"translate("+_+"px, "+O+"px)":"translate3d("+_+"px, "+O+"px, 0)",J))}return Object.assign({},be,(t={},t[B]=M?O+"px":"",t[z]=V?_+"px":"",t.transform="",t))}function $Q(e){var t=e.state,r=e.options,i=r.gpuAcceleration,o=i===void 0?!0:i,c=r.adaptive,u=c===void 0?!0:c,h=r.roundOffsets,m=h===void 0?!0:h;{var v=El(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(x){return v.indexOf(x)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var S={placement:_l(t.placement),variation:Jm(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,h5(Object.assign({},S,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h5(Object.assign({},S,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const VQ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$Q,data:{}};var ix={passive:!0};function HQ(e){var t=e.state,r=e.instance,i=e.options,o=i.scroll,c=o===void 0?!0:o,u=i.resize,h=u===void 0?!0:u,m=zs(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return c&&v.forEach(function(S){S.addEventListener("scroll",r.update,ix)}),h&&m.addEventListener("resize",r.update,ix),function(){c&&v.forEach(function(S){S.removeEventListener("scroll",r.update,ix)}),h&&m.removeEventListener("resize",r.update,ix)}}const WQ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HQ,data:{}};var GQ={left:"right",right:"left",bottom:"top",top:"bottom"};function Dx(e){return e.replace(/left|right|bottom|top/g,function(t){return GQ[t]})}var YQ={start:"end",end:"start"};function m5(e){return e.replace(/start|end/g,function(t){return YQ[t]})}function m2(e){var t=zs(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function v2(e){return Qm(Zf(e)).left+m2(e).scrollLeft}function qQ(e,t){var r=zs(e),i=Zf(e),o=r.visualViewport,c=i.clientWidth,u=i.clientHeight,h=0,m=0;if(o){c=o.width,u=o.height;var v=sB();(v||!v&&t==="fixed")&&(h=o.offsetLeft,m=o.offsetTop)}return{width:c,height:u,x:h+v2(e),y:m}}function KQ(e){var t,r=Zf(e),i=m2(e),o=(t=e.ownerDocument)==null?void 0:t.body,c=zp(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=zp(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),h=-i.scrollLeft+v2(e),m=-i.scrollTop;return El(o||r).direction==="rtl"&&(h+=zp(r.clientWidth,o?o.clientWidth:0)-c),{width:c,height:u,x:h,y:m}}function g2(e){var t=El(e),r=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function dB(e){return["html","body","#document"].indexOf(gu(e))>=0?e.ownerDocument.body:Yo(e)&&g2(e)?e:dB(uC(e))}function Yy(e,t){var r;t===void 0&&(t=[]);var i=dB(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),c=zs(i),u=o?[c].concat(c.visualViewport||[],g2(i)?i:[]):i,h=t.concat(u);return o?h:h.concat(Yy(uC(u)))}function _O(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function XQ(e,t){var r=Qm(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function v5(e,t,r){return t===iB?_O(qQ(e,r)):Vp(t)?XQ(t,r):_O(KQ(Zf(e)))}function ZQ(e){var t=Yy(uC(e)),r=["absolute","fixed"].indexOf(El(e).position)>=0,i=r&&Yo(e)?zb(e):e;return Vp(i)?t.filter(function(o){return Vp(o)&&lB(o,i)&&gu(o)!=="body"}):[]}function QQ(e,t,r,i){var o=t==="clippingParents"?ZQ(e):[].concat(t),c=[].concat(o,[r]),u=c[0],h=c.reduce(function(m,v){var S=v5(e,v,i);return m.top=zp(S.top,m.top),m.right=dw(S.right,m.right),m.bottom=dw(S.bottom,m.bottom),m.left=zp(S.left,m.left),m},v5(e,u,i));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function pB(e){var t=e.reference,r=e.element,i=e.placement,o=i?_l(i):null,c=i?Jm(i):null,u=t.x+t.width/2-r.width/2,h=t.y+t.height/2-r.height/2,m;switch(o){case go:m={x:u,y:t.y-r.height};break;case Ls:m={x:u,y:t.y+t.height};break;case Fs:m={x:t.x+t.width,y:h};break;case yo:m={x:t.x-r.width,y:h};break;default:m={x:t.x,y:t.y}}var v=o?h2(o):null;if(v!=null){var S=v==="y"?"height":"width";switch(c){case Xm:m[v]=m[v]-(t[S]/2-r[S]/2);break;case hb:m[v]=m[v]+(t[S]/2-r[S]/2);break}}return m}function mb(e,t){t===void 0&&(t={});var r=t,i=r.placement,o=i===void 0?e.placement:i,c=r.strategy,u=c===void 0?e.strategy:c,h=r.boundary,m=h===void 0?bQ:h,v=r.rootBoundary,S=v===void 0?iB:v,x=r.elementContext,C=x===void 0?Ty:x,_=r.altBoundary,N=_===void 0?!1:_,O=r.padding,I=O===void 0?0:O,V=cB(typeof I!="number"?I:fB(I,Fb)),M=C===Ty?SQ:Ty,z=e.rects.popper,B=e.elements[N?M:C],j=QQ(Vp(B)?B:B.contextElement||Zf(e.elements.popper),m,S,u),K=Qm(e.elements.reference),X=pB({reference:K,element:z,strategy:"absolute",placement:o}),fe=_O(Object.assign({},z,X)),me=C===Ty?fe:K,se={top:j.top-me.top+V.top,bottom:me.bottom-j.bottom+V.bottom,left:j.left-me.left+V.left,right:me.right-j.right+V.right},be=e.modifiersData.offset;if(C===Ty&&be){var Ke=be[o];Object.keys(se).forEach(function(J){var ce=[Fs,Ls].indexOf(J)>=0?1:-1,Re=[go,Ls].indexOf(J)>=0?"y":"x";se[J]+=Ke[Re]*ce})}return se}function JQ(e,t){t===void 0&&(t={});var r=t,i=r.placement,o=r.boundary,c=r.rootBoundary,u=r.padding,h=r.flipVariations,m=r.allowedAutoPlacements,v=m===void 0?oB:m,S=Jm(i),x=S?h?d5:d5.filter(function(N){return Jm(N)===S}):Fb,C=x.filter(function(N){return v.indexOf(N)>=0});C.length===0&&(C=x,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var _=C.reduce(function(N,O){return N[O]=mb(e,{placement:O,boundary:o,rootBoundary:c,padding:u})[_l(O)],N},{});return Object.keys(_).sort(function(N,O){return _[N]-_[O]})}function eJ(e){if(_l(e)===lC)return[];var t=Dx(e);return[m5(e),t,m5(t)]}function tJ(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=r.mainAxis,c=o===void 0?!0:o,u=r.altAxis,h=u===void 0?!0:u,m=r.fallbackPlacements,v=r.padding,S=r.boundary,x=r.rootBoundary,C=r.altBoundary,_=r.flipVariations,N=_===void 0?!0:_,O=r.allowedAutoPlacements,I=t.options.placement,V=_l(I),M=V===I,z=m||(M||!N?[Dx(I)]:eJ(I)),B=[I].concat(z).reduce(function(Ye,st){return Ye.concat(_l(st)===lC?JQ(t,{placement:st,boundary:S,rootBoundary:x,padding:v,flipVariations:N,allowedAutoPlacements:O}):st)},[]),j=t.rects.reference,K=t.rects.popper,X=new Map,fe=!0,me=B[0],se=0;se<B.length;se++){var be=B[se],Ke=_l(be),J=Jm(be)===Xm,ce=[go,Ls].indexOf(Ke)>=0,Re=ce?"width":"height",Ce=mb(t,{placement:be,boundary:S,rootBoundary:x,altBoundary:C,padding:v}),oe=ce?J?Fs:yo:J?Ls:go;j[Re]>K[Re]&&(oe=Dx(oe));var Se=Dx(oe),Te=[];if(c&&Te.push(Ce[Ke]<=0),h&&Te.push(Ce[oe]<=0,Ce[Se]<=0),Te.every(function(Ye){return Ye})){me=be,fe=!1;break}X.set(be,Te)}if(fe)for(var pe=N?3:1,we=function(st){var mt=B.find(function(Gt){var Qe=X.get(Gt);if(Qe)return Qe.slice(0,st).every(function(vt){return vt})});if(mt)return me=mt,"break"},Ie=pe;Ie>0;Ie--){var Le=we(Ie);if(Le==="break")break}t.placement!==me&&(t.modifiersData[i]._skip=!0,t.placement=me,t.reset=!0)}}const nJ={name:"flip",enabled:!0,phase:"main",fn:tJ,requiresIfExists:["offset"],data:{_skip:!1}};function g5(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function y5(e){return[go,Fs,Ls,yo].some(function(t){return e[t]>=0})}function rJ(e){var t=e.state,r=e.name,i=t.rects.reference,o=t.rects.popper,c=t.modifiersData.preventOverflow,u=mb(t,{elementContext:"reference"}),h=mb(t,{altBoundary:!0}),m=g5(u,i),v=g5(h,o,c),S=y5(m),x=y5(v);t.modifiersData[r]={referenceClippingOffsets:m,popperEscapeOffsets:v,isReferenceHidden:S,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":S,"data-popper-escaped":x})}const aJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rJ};function iJ(e,t,r){var i=_l(e),o=[yo,go].indexOf(i)>=0?-1:1,c=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=c[0],h=c[1];return u=u||0,h=(h||0)*o,[yo,Fs].indexOf(i)>=0?{x:h,y:u}:{x:u,y:h}}function oJ(e){var t=e.state,r=e.options,i=e.name,o=r.offset,c=o===void 0?[0,0]:o,u=oB.reduce(function(S,x){return S[x]=iJ(x,t.rects,c),S},{}),h=u[t.placement],m=h.x,v=h.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=u}const sJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oJ};function lJ(e){var t=e.state,r=e.name;t.modifiersData[r]=pB({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uJ={name:"popperOffsets",enabled:!0,phase:"read",fn:lJ,data:{}};function cJ(e){return e==="x"?"y":"x"}function fJ(e){var t=e.state,r=e.options,i=e.name,o=r.mainAxis,c=o===void 0?!0:o,u=r.altAxis,h=u===void 0?!1:u,m=r.boundary,v=r.rootBoundary,S=r.altBoundary,x=r.padding,C=r.tether,_=C===void 0?!0:C,N=r.tetherOffset,O=N===void 0?0:N,I=mb(t,{boundary:m,rootBoundary:v,padding:x,altBoundary:S}),V=_l(t.placement),M=Jm(t.placement),z=!M,B=h2(V),j=cJ(B),K=t.modifiersData.popperOffsets,X=t.rects.reference,fe=t.rects.popper,me=typeof O=="function"?O(Object.assign({},t.rects,{placement:t.placement})):O,se=typeof me=="number"?{mainAxis:me,altAxis:me}:Object.assign({mainAxis:0,altAxis:0},me),be=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Ke={x:0,y:0};if(!!K){if(c){var J,ce=B==="y"?go:yo,Re=B==="y"?Ls:Fs,Ce=B==="y"?"height":"width",oe=K[B],Se=oe+I[ce],Te=oe-I[Re],pe=_?-fe[Ce]/2:0,we=M===Xm?X[Ce]:fe[Ce],Ie=M===Xm?-fe[Ce]:-X[Ce],Le=t.elements.arrow,Ye=_&&Le?p2(Le):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uB(),mt=st[ce],Gt=st[Re],Qe=Gy(0,X[Ce],Ye[Ce]),vt=z?X[Ce]/2-pe-Qe-mt-se.mainAxis:we-Qe-mt-se.mainAxis,Et=z?-X[Ce]/2+pe+Qe+Gt+se.mainAxis:Ie+Qe+Gt+se.mainAxis,zt=t.elements.arrow&&zb(t.elements.arrow),We=zt?B==="y"?zt.clientTop||0:zt.clientLeft||0:0,Yt=(J=be?.[B])!=null?J:0,ye=oe+vt-Yt-We,Mt=oe+Et-Yt,Kt=Gy(_?dw(Se,ye):Se,oe,_?zp(Te,Mt):Te);K[B]=Kt,Ke[B]=Kt-oe}if(h){var St,ar=B==="x"?go:yo,ir=B==="x"?Ls:Fs,Bt=K[j],fn=j==="y"?"height":"width",kn=Bt+I[ar],hn=Bt-I[ir],Ve=[go,yo].indexOf(V)!==-1,Ze=(St=be?.[j])!=null?St:0,Jt=Ve?kn:Bt-X[fn]-fe[fn]-Ze+se.altAxis,Tt=Ve?Bt+X[fn]+fe[fn]-Ze-se.altAxis:hn,ke=_&&Ve?IQ(Jt,Bt,Tt):Gy(_?Jt:kn,Bt,_?Tt:hn);K[j]=ke,Ke[j]=ke-Bt}t.modifiersData[i]=Ke}}const dJ={name:"preventOverflow",enabled:!0,phase:"main",fn:fJ,requiresIfExists:["offset"]};function pJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hJ(e){return e===zs(e)||!Yo(e)?m2(e):pJ(e)}function mJ(e){var t=e.getBoundingClientRect(),r=Zm(t.width)/e.offsetWidth||1,i=Zm(t.height)/e.offsetHeight||1;return r!==1||i!==1}function vJ(e,t,r){r===void 0&&(r=!1);var i=Yo(t),o=Yo(t)&&mJ(t),c=Zf(t),u=Qm(e,o,r),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!r)&&((gu(t)!=="body"||g2(c))&&(h=hJ(t)),Yo(t)?(m=Qm(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):c&&(m.x=v2(c))),{x:u.left+h.scrollLeft-m.x,y:u.top+h.scrollTop-m.y,width:u.width,height:u.height}}function gJ(e){var t=new Map,r=new Set,i=[];e.forEach(function(c){t.set(c.name,c)});function o(c){r.add(c.name);var u=[].concat(c.requires||[],c.requiresIfExists||[]);u.forEach(function(h){if(!r.has(h)){var m=t.get(h);m&&o(m)}}),i.push(c)}return e.forEach(function(c){r.has(c.name)||o(c)}),i}function yJ(e){var t=gJ(e);return wO.reduce(function(r,i){return r.concat(t.filter(function(o){return o.phase===i}))},[])}function bJ(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function xf(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return[].concat(r).reduce(function(o,c){return o.replace(/%s/,c)},e)}var bp='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',SJ='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',b5=["name","enabled","phase","fn","effect","requires","options"];function xJ(e){e.forEach(function(t){[].concat(Object.keys(t),b5).filter(function(r,i,o){return o.indexOf(r)===i}).forEach(function(r){switch(r){case"name":typeof t.name!="string"&&console.error(xf(bp,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(xf(bp,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":wO.indexOf(t.phase)<0&&console.error(xf(bp,t.name,'"phase"',"either "+wO.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(xf(bp,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(xf(bp,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(xf(bp,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(xf(bp,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 '+b5.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(xf(SJ,String(t.name),i,i))})})})}function wJ(e,t){var r=new Set;return e.filter(function(i){var o=t(i);if(!r.has(o))return r.add(o),!0})}function CJ(e){var t=e.reduce(function(r,i){var o=r[i.name];return r[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var S5="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",_J="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",x5={placement:"bottom",modifiers:[],strategy:"absolute"};function w5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function EJ(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,o=t.defaultOptions,c=o===void 0?x5:o;return function(h,m,v){v===void 0&&(v=c);var S={placement:"bottom",orderedModifiers:[],options:Object.assign({},x5,c),modifiersData:{},elements:{reference:h,popper:m},attributes:{},styles:{}},x=[],C=!1,_={state:S,setOptions:function(V){var M=typeof V=="function"?V(S.options):V;O(),S.options=Object.assign({},c,S.options,M),S.scrollParents={reference:Vp(h)?Yy(h):h.contextElement?Yy(h.contextElement):[],popper:Yy(m)};var z=yJ(CJ([].concat(i,S.options.modifiers)));S.orderedModifiers=z.filter(function(be){return be.enabled});{var B=wJ([].concat(z,S.options.modifiers),function(be){var Ke=be.name;return Ke});if(xJ(B),_l(S.options.placement)===lC){var j=S.orderedModifiers.find(function(be){var Ke=be.name;return Ke==="flip"});j||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var K=El(m),X=K.marginTop,fe=K.marginRight,me=K.marginBottom,se=K.marginLeft;[X,fe,me,se].some(function(be){return parseFloat(be)})&&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 N(),_.update()},forceUpdate:function(){if(!C){var V=S.elements,M=V.reference,z=V.popper;if(!w5(M,z)){console.error(S5);return}S.rects={reference:vJ(M,zb(z),S.options.strategy==="fixed"),popper:p2(z)},S.reset=!1,S.placement=S.options.placement,S.orderedModifiers.forEach(function(be){return S.modifiersData[be.name]=Object.assign({},be.data)});for(var B=0,j=0;j<S.orderedModifiers.length;j++){if(B+=1,B>100){console.error(_J);break}if(S.reset===!0){S.reset=!1,j=-1;continue}var K=S.orderedModifiers[j],X=K.fn,fe=K.options,me=fe===void 0?{}:fe,se=K.name;typeof X=="function"&&(S=X({state:S,options:me,name:se,instance:_})||S)}}},update:bJ(function(){return new Promise(function(I){_.forceUpdate(),I(S)})}),destroy:function(){O(),C=!0}};if(!w5(h,m))return console.error(S5),_;_.setOptions(v).then(function(I){!C&&v.onFirstUpdate&&v.onFirstUpdate(I)});function N(){S.orderedModifiers.forEach(function(I){var V=I.name,M=I.options,z=M===void 0?{}:M,B=I.effect;if(typeof B=="function"){var j=B({state:S,name:V,instance:_,options:z}),K=function(){};x.push(j||K)}})}function O(){x.forEach(function(I){return I()}),x=[]}return _}}var TJ=[WQ,uJ,VQ,DQ,sJ,nJ,dJ,BQ,aJ],NJ=EJ({defaultModifiers:TJ}),_m=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),li={arrowShadowColor:_m("--popper-arrow-shadow-color"),arrowSize:_m("--popper-arrow-size","8px"),arrowSizeHalf:_m("--popper-arrow-size-half"),arrowBg:_m("--popper-arrow-bg"),transformOrigin:_m("--popper-transform-origin"),arrowOffset:_m("--popper-arrow-offset")};function RJ(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 AJ={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"},OJ=e=>AJ[e],C5={scroll:!0,resize:!0};function kJ(e){let t;return typeof e=="object"?t={enabled:!0,options:{...C5,...e}}:t={enabled:e,options:C5},t}var DJ={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`}},PJ={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{_5(e)},effect:({state:e})=>()=>{_5(e)}},_5=e=>{e.elements.popper.style.setProperty(li.transformOrigin.var,OJ(e.placement))},MJ={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{IJ(e)}},IJ=e=>{var t;if(!e.placement)return;const r=LJ(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:li.arrowSize.varRef,height:li.arrowSize.varRef,zIndex:-1});const i={[li.arrowSizeHalf.var]:`calc(${li.arrowSize.varRef} / 2)`,[li.arrowOffset.var]:`calc(${li.arrowSizeHalf.varRef} * -1)`};for(const o in i)e.elements.arrow.style.setProperty(o,i[o])}},LJ=e=>{if(e.startsWith("top"))return{property:"bottom",value:li.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:li.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:li.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:li.arrowOffset.varRef}},FJ={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{E5(e)},effect:({state:e})=>()=>{E5(e)}},E5=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:li.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:RJ(e.placement)})},zJ={"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"}},BJ={"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 UJ(e,t="ltr"){var r;const i=((r=zJ[e])==null?void 0:r[t])||e;return t==="ltr"?i:BJ[e]??i}function jJ(e={}){const{enabled:t=!0,modifiers:r,placement:i="bottom",strategy:o="absolute",arrowPadding:c=8,eventListeners:u=!0,offset:h,gutter:m=8,flip:v=!0,boundary:S="clippingParents",preventOverflow:x=!0,matchWidth:C,direction:_="ltr"}=e,N=D.exports.useRef(null),O=D.exports.useRef(null),I=D.exports.useRef(null),V=UJ(i,_),M=D.exports.useRef(()=>{}),z=D.exports.useCallback(()=>{var se;!t||!N.current||!O.current||((se=M.current)==null||se.call(M),I.current=NJ(N.current,O.current,{placement:V,modifiers:[FJ,MJ,PJ,{...DJ,enabled:!!C},{name:"eventListeners",...kJ(u)},{name:"arrow",options:{padding:c}},{name:"offset",options:{offset:h??[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:S}},...r??[]],strategy:o}),I.current.forceUpdate(),M.current=I.current.destroy)},[V,t,r,C,u,c,h,m,v,x,S,o]);D.exports.useEffect(()=>()=>{var se;!N.current&&!O.current&&((se=I.current)==null||se.destroy(),I.current=null)},[]);const B=D.exports.useCallback(se=>{N.current=se,z()},[z]),j=D.exports.useCallback((se={},be=null)=>({...se,ref:Zi(B,be)}),[B]),K=D.exports.useCallback(se=>{O.current=se,z()},[z]),X=D.exports.useCallback((se={},be=null)=>({...se,ref:Zi(K,be),style:{...se.style,position:o,minWidth:C?void 0:"max-content",inset:"0 auto auto 0"}}),[o,K,C]),fe=D.exports.useCallback((se={},be=null)=>{const{size:Ke,shadowColor:J,bg:ce,style:Re,...Ce}=se;return{...Ce,ref:be,"data-popper-arrow":"",style:$J(se)}},[]),me=D.exports.useCallback((se={},be=null)=>({...se,ref:be,"data-popper-arrow-inner":""}),[]);return{update(){var se;(se=I.current)==null||se.update()},forceUpdate(){var se;(se=I.current)==null||se.forceUpdate()},transformOrigin:li.transformOrigin.varRef,referenceRef:B,popperRef:K,getPopperProps:X,getArrowProps:fe,getArrowInnerProps:me,getReferenceProps:j}}function $J(e){const{size:t,shadowColor:r,bg:i,style:o}=e,c={...o,position:"absolute"};return t&&(c["--popper-arrow-size"]=t),r&&(c["--popper-arrow-shadow-color"]=r),i&&(c["--popper-arrow-bg"]=i),c}function VJ(e={}){const{onClose:t,onOpen:r,isOpen:i,id:o}=e,c=ki(r),u=ki(t),[h,m]=D.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:h,S=i!==void 0,x=o??`disclosure-${D.exports.useId()}`,C=D.exports.useCallback(()=>{S||m(!1),u?.()},[S,u]),_=D.exports.useCallback(()=>{S||m(!0),c?.()},[S,c]),N=D.exports.useCallback(()=>{v?C():_()},[v,_,C]);function O(V={}){return{...V,"aria-expanded":v,"aria-controls":x,onClick(M){var z;(z=V.onClick)==null||z.call(V,M),N()}}}function I(V={}){return{...V,hidden:!v,id:x}}return{isOpen:v,onOpen:_,onClose:C,onToggle:N,isControlled:S,getButtonProps:O,getDisclosureProps:I}}var zf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[HJ,WJ]=Qr({strict:!1,name:"PortalManagerContext"});function hB(e){const{children:t,zIndex:r}=e;return k(HJ,{value:{zIndex:r},children:t},void 0,!1,{fileName:zf,lineNumber:12,columnNumber:26},this)}hB.displayName="PortalManager";var[mB,GJ]=Qr({strict:!1,name:"PortalContext"}),y2="chakra-portal",YJ=".chakra-portal",qJ=e=>k("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:zf,lineNumber:29,columnNumber:44},globalThis),KJ=e=>{const{appendToParentPortal:t,children:r}=e,[i,o]=D.exports.useState(null),c=D.exports.useRef(null),[,u]=D.exports.useState({});D.exports.useEffect(()=>u({}),[]);const h=GJ(),m=WJ();hc(()=>{if(!i)return;const S=i.ownerDocument,x=t?h??S.body:S.body;if(!x)return;c.current=S.createElement("div"),c.current.className=y2,x.appendChild(c.current),u({});const C=c.current;return()=>{x.contains(C)&&x.removeChild(C)}},[i]);const v=m?.zIndex?k(qJ,{zIndex:m?.zIndex,children:r},void 0,!1,{fileName:zf,lineNumber:65,columnNumber:83},globalThis):r;return c.current?_b.exports.createPortal(k(mB,{value:c.current,children:v},void 0,!1,{fileName:zf,lineNumber:68,columnNumber:56},globalThis),c.current):k("span",{ref:S=>{S&&o(S)}},void 0,!1,{fileName:zf,lineNumber:70,columnNumber:52},globalThis)},XJ=e=>{const{children:t,containerRef:r,appendToParentPortal:i}=e,o=r.current,c=o??(typeof window<"u"?document.body:void 0),u=D.exports.useMemo(()=>{const m=o?.ownerDocument.createElement("div");return m&&(m.className=y2),m},[o]),[,h]=D.exports.useState({});return hc(()=>h({}),[]),hc(()=>{if(!(!u||!c))return c.appendChild(u),()=>{c.removeChild(u)}},[u,c]),c&&u?_b.exports.createPortal(k(mB,{value:i?u:null,children:t},void 0,!1,{fileName:zf,lineNumber:98,columnNumber:41},globalThis),u):null};function Kp(e){const{containerRef:t,...r}=e;return t?k(XJ,{containerRef:t,...r},void 0,!1,{fileName:zf,lineNumber:106,columnNumber:41},this):k(KJ,{...r},void 0,!1,{fileName:zf,lineNumber:109,columnNumber:24},this)}Kp.defaultProps={appendToParentPortal:!0};Kp.className=y2;Kp.selector=YJ;Kp.displayName="Portal";var ZJ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Em=new WeakMap,ox=new WeakMap,sx={},iA=0,QJ=function(e,t,r,i){var o=Array.isArray(e)?e:[e];sx[r]||(sx[r]=new WeakMap);var c=sx[r],u=[],h=new Set,m=new Set(o),v=function(x){!x||h.has(x)||(h.add(x),v(x.parentNode))};o.forEach(v);var S=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(C){if(h.has(C))S(C);else{var _=C.getAttribute(i),N=_!==null&&_!=="false",O=(Em.get(C)||0)+1,I=(c.get(C)||0)+1;Em.set(C,O),c.set(C,I),u.push(C),O===1&&N&&ox.set(C,!0),I===1&&C.setAttribute(r,"true"),N||C.setAttribute(i,"true")}})};return S(t),h.clear(),iA++,function(){u.forEach(function(x){var C=Em.get(x)-1,_=c.get(x)-1;Em.set(x,C),c.set(x,_),C||(ox.has(x)||x.removeAttribute(i),ox.delete(x)),_||x.removeAttribute(r)}),iA--,iA||(Em=new WeakMap,Em=new WeakMap,ox=new WeakMap,sx={})}},JJ=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||ZJ(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),QJ(i,o,r,"aria-hidden")):function(){return null}};function eee(e,t){if(e==null)return{};var r={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var _t={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var T5=Object.getOwnPropertySymbols,tee=Object.prototype.hasOwnProperty,nee=Object.prototype.propertyIsEnumerable;function ree(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function aee(){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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(c){return t[c]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(c){o[c]=c}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var iee=aee()?Object.assign:function(e,t){for(var r,i=ree(e),o,c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var u in r)tee.call(r,u)&&(i[u]=r[u]);if(T5){o=T5(r);for(var h=0;h<o.length;h++)nee.call(r,o[h])&&(i[o[h]]=r[o[h]])}}return i},oee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vB=oee,gB=Function.call.bind(Object.prototype.hasOwnProperty),EO=function(){};{var see=vB,TO={},lee=gB;EO=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function yB(e,t,r,i,o){for(var c in e)if(lee(e,c)){var u;try{if(typeof e[c]!="function"){var h=Error((i||"React class")+": "+r+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=e[c](t,c,i,r,null,see)}catch(v){u=v}if(u&&!(u instanceof Error)&&EO((i||"React class")+": type specification of "+r+" `"+c+"` 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 TO)){TO[u.message]=!0;var m=o?o():"";EO("Failed "+r+" type: "+u.message+(m??""))}}}yB.resetWarningCache=function(){TO={}};var uee=yB,cee=Bw.exports,fee=iee,Tm=vB,oA=gB,N5=uee,km=function(){};km=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function lx(){return null}var dee=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function o(J){var ce=J&&(r&&J[r]||J[i]);if(typeof ce=="function")return ce}var c="<<anonymous>>",u={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:x(),arrayOf:C,element:_(),elementType:N(),instanceOf:O,node:z(),objectOf:V,oneOf:I,oneOfType:M,shape:j,exact:K};function h(J,ce){return J===ce?J!==0||1/J===1/ce:J!==J&&ce!==ce}function m(J,ce){this.message=J,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}m.prototype=Error.prototype;function v(J){var ce={},Re=0;function Ce(Se,Te,pe,we,Ie,Le,Ye){if(we=we||c,Le=Le||pe,Ye!==Tm){if(t){var st=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 st.name="Invariant Violation",st}else if(typeof console<"u"){var mt=we+":"+pe;!ce[mt]&&Re<3&&(km("You are manually calling a React.PropTypes validation function for the `"+Le+"` 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."),ce[mt]=!0,Re++)}}return Te[pe]==null?Se?Te[pe]===null?new m("The "+Ie+" `"+Le+"` is marked as required "+("in `"+we+"`, but its value is `null`.")):new m("The "+Ie+" `"+Le+"` is marked as required in "+("`"+we+"`, but its value is `undefined`.")):null:J(Te,pe,we,Ie,Le)}var oe=Ce.bind(null,!1);return oe.isRequired=Ce.bind(null,!0),oe}function S(J){function ce(Re,Ce,oe,Se,Te,pe){var we=Re[Ce],Ie=me(we);if(Ie!==J){var Le=se(we);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+Le+"` supplied to `"+oe+"`, expected ")+("`"+J+"`."),{expectedType:J})}return null}return v(ce)}function x(){return v(lx)}function C(J){function ce(Re,Ce,oe,Se,Te){if(typeof J!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var pe=Re[Ce];if(!Array.isArray(pe)){var we=me(pe);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an array."))}for(var Ie=0;Ie<pe.length;Ie++){var Le=J(pe,Ie,oe,Se,Te+"["+Ie+"]",Tm);if(Le instanceof Error)return Le}return null}return v(ce)}function _(){function J(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!e(Te)){var pe=me(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement."))}return null}return v(J)}function N(){function J(ce,Re,Ce,oe,Se){var Te=ce[Re];if(!cee.isValidElementType(Te)){var pe=me(Te);return new m("Invalid "+oe+" `"+Se+"` of type "+("`"+pe+"` supplied to `"+Ce+"`, expected a single ReactElement type."))}return null}return v(J)}function O(J){function ce(Re,Ce,oe,Se,Te){if(!(Re[Ce]instanceof J)){var pe=J.name||c,we=Ke(Re[Ce]);return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected ")+("instance of `"+pe+"`."))}return null}return v(ce)}function I(J){if(!Array.isArray(J))return arguments.length>1?km("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])."):km("Invalid argument supplied to oneOf, expected an array."),lx;function ce(Re,Ce,oe,Se,Te){for(var pe=Re[Ce],we=0;we<J.length;we++)if(h(pe,J[we]))return null;var Ie=JSON.stringify(J,function(Ye,st){var mt=se(st);return mt==="symbol"?String(st):st});return new m("Invalid "+Se+" `"+Te+"` of value `"+String(pe)+"` "+("supplied to `"+oe+"`, expected one of "+Ie+"."))}return v(ce)}function V(J){function ce(Re,Ce,oe,Se,Te){if(typeof J!="function")return new m("Property `"+Te+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var pe=Re[Ce],we=me(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected an object."));for(var Ie in pe)if(oA(pe,Ie)){var Le=J(pe,Ie,oe,Se,Te+"."+Ie,Tm);if(Le instanceof Error)return Le}return null}return v(ce)}function M(J){if(!Array.isArray(J))return km("Invalid argument supplied to oneOfType, expected an instance of array."),lx;for(var ce=0;ce<J.length;ce++){var Re=J[ce];if(typeof Re!="function")return km("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+be(Re)+" at index "+ce+"."),lx}function Ce(oe,Se,Te,pe,we){for(var Ie=[],Le=0;Le<J.length;Le++){var Ye=J[Le],st=Ye(oe,Se,Te,pe,we,Tm);if(st==null)return null;st.data&&oA(st.data,"expectedType")&&Ie.push(st.data.expectedType)}var mt=Ie.length>0?", expected one of type ["+Ie.join(", ")+"]":"";return new m("Invalid "+pe+" `"+we+"` supplied to "+("`"+Te+"`"+mt+"."))}return v(Ce)}function z(){function J(ce,Re,Ce,oe,Se){return X(ce[Re])?null:new m("Invalid "+oe+" `"+Se+"` supplied to "+("`"+Ce+"`, expected a ReactNode."))}return v(J)}function B(J,ce,Re,Ce,oe){return new m((J||"React class")+": "+ce+" type `"+Re+"."+Ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function j(J){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=me(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));for(var Ie in J){var Le=J[Ie];if(typeof Le!="function")return B(oe,Se,Te,Ie,se(Le));var Ye=Le(pe,Ie,oe,Se,Te+"."+Ie,Tm);if(Ye)return Ye}return null}return v(ce)}function K(J){function ce(Re,Ce,oe,Se,Te){var pe=Re[Ce],we=me(pe);if(we!=="object")return new m("Invalid "+Se+" `"+Te+"` of type `"+we+"` "+("supplied to `"+oe+"`, expected `object`."));var Ie=fee({},Re[Ce],J);for(var Le in Ie){var Ye=J[Le];if(oA(J,Le)&&typeof Ye!="function")return B(oe,Se,Te,Le,se(Ye));if(!Ye)return new m("Invalid "+Se+" `"+Te+"` key `"+Le+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Re[Ce],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(J),null," "));var st=Ye(pe,Le,oe,Se,Te+"."+Le,Tm);if(st)return st}return null}return v(ce)}function X(J){switch(typeof J){case"number":case"string":case"undefined":return!0;case"boolean":return!J;case"object":if(Array.isArray(J))return J.every(X);if(J===null||e(J))return!0;var ce=o(J);if(ce){var Re=ce.call(J),Ce;if(ce!==J.entries){for(;!(Ce=Re.next()).done;)if(!X(Ce.value))return!1}else for(;!(Ce=Re.next()).done;){var oe=Ce.value;if(oe&&!X(oe[1]))return!1}}else return!1;return!0;default:return!1}}function fe(J,ce){return J==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function me(J){var ce=typeof J;return Array.isArray(J)?"array":J instanceof RegExp?"object":fe(ce,J)?"symbol":ce}function se(J){if(typeof J>"u"||J===null)return""+J;var ce=me(J);if(ce==="object"){if(J instanceof Date)return"date";if(J instanceof RegExp)return"regexp"}return ce}function be(J){var ce=se(J);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Ke(J){return!J.constructor||!J.constructor.name?c:J.constructor.name}return u.checkPropTypes=N5,u.resetWarningCache=N5.resetWarningCache,u.PropTypes=u,u};{var pee=Bw.exports,hee=!0;_t.exports=dee(pee.isElement,hee)}var NO="data-focus-lock",bB="data-focus-lock-disabled",mee="data-no-focus-lock",vee="data-autofocus-inside",gee="data-no-autofocus";function yee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bee(e,t){var r=D.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=t,r.facade}function SB(e,t){return bee(t||null,function(r){return e.forEach(function(i){return yee(i,r)})})}var sA={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};_t.exports.node;function xB(e){return e}function wB(e,t){t===void 0&&(t=xB);var r=[],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 r.length?r[r.length-1]:e},useMedium:function(c){var u=t(c,i);return r.push(u),function(){r=r.filter(function(h){return h!==u})}},assignSyncMedium:function(c){for(i=!0;r.length;){var u=r;r=[],u.forEach(c)}r={push:function(h){return c(h)},filter:function(){return r}}},assignMedium:function(c){i=!0;var u=[];if(r.length){var h=r;r=[],h.forEach(c),u=r}var m=function(){var S=u;u=[],S.forEach(c)},v=function(){return Promise.resolve().then(m)};v(),r={push:function(S){u.push(S),v()},filter:function(S){return u=u.filter(S),r}}}};return o}function b2(e,t){return t===void 0&&(t=xB),wB(e,t)}function CB(e){e===void 0&&(e={});var t=wB(null);return t.options=ou({async:!0,ssr:!1},e),t}var See="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",_B=function(e){var t=e.sideCar,r=qw(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 k(i,{...ou({},r)},void 0,!1,{fileName:See,lineNumber:12,columnNumber:12},this)};_B.isSideCarExport=!0;function xee(e,t){return e.useMedium(t),_B}var EB=b2({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),TB=b2(),wee=b2(),Cee=CB({async:!0}),Ny="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",_ee=[],S2=D.exports.forwardRef(function(t,r){var i,o=D.exports.useState(),c=o[0],u=o[1],h=D.exports.useRef(),m=D.exports.useRef(!1),v=D.exports.useRef(null),S=t.children,x=t.disabled,C=t.noFocusGuards,_=t.persistentFocus,N=t.crossFrame,O=t.autoFocus,I=t.allowTextSelection,V=t.group,M=t.className,z=t.whiteList,B=t.hasPositiveIndices,j=t.shards,K=j===void 0?_ee:j,X=t.as,fe=X===void 0?"div":X,me=t.lockProps,se=me===void 0?{}:me,be=t.sideCar,Ke=t.returnFocus,J=t.focusOptions,ce=t.onActivation,Re=t.onDeactivation,Ce=D.exports.useState({}),oe=Ce[0],Se=D.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,h.current&&ce&&ce(h.current),m.current=!0},[ce]),Te=D.exports.useCallback(function(){m.current=!1,Re&&Re(h.current)},[Re]);D.exports.useEffect(function(){x||(v.current=null)},[]);var pe=D.exports.useCallback(function(Qe){var vt=v.current;if(vt&&vt.focus){var Et=typeof Ke=="function"?Ke(vt):Ke;if(Et){var zt=typeof Et=="object"?Et:void 0;v.current=null,Qe?Promise.resolve().then(function(){return vt.focus(zt)}):vt.focus(zt)}}},[Ke]),we=D.exports.useCallback(function(Qe){m.current&&EB.useMedium(Qe)},[]),Ie=TB.useMedium,Le=D.exports.useCallback(function(Qe){h.current!==Qe&&(h.current=Qe,u(Qe))},[]);typeof I<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),D.exports.useEffect(function(){h.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Ye=nb((i={},i[bB]=x&&"disabled",i[NO]=V,i),se),st=C!==!0,mt=st&&C!=="tail",Gt=SB([r,Le]);return k(bo,{children:[st&&[k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:sA},"guard-first",!1,{fileName:Ny,lineNumber:130,columnNumber:3},this),B?k("div",{"data-focus-guard":!0,tabIndex:x?-1:1,style:sA},"guard-nearest",!1,{fileName:Ny,lineNumber:136,columnNumber:37},this):null],!x&&k(be,{id:oe,sideCar:Cee,observed:c,disabled:x,persistentFocus:_,crossFrame:N,autoFocus:O,whiteList:z,shards:K,onActivation:Se,onDeactivation:Te,returnFocus:pe,focusOptions:J},void 0,!1,{fileName:Ny,lineNumber:141,columnNumber:41},this),k(fe,{ref:Gt,...Ye,className:M,onBlur:Ie,onFocus:we,children:S},void 0,!1,{fileName:Ny,lineNumber:155,columnNumber:20},this),mt&&k("div",{"data-focus-guard":!0,tabIndex:x?-1:0,style:sA},void 0,!1,{fileName:Ny,lineNumber:161,columnNumber:51},this)]},void 0,!0)});S2.propTypes={children:_t.exports.node,disabled:_t.exports.bool,returnFocus:_t.exports.oneOfType([_t.exports.bool,_t.exports.object,_t.exports.func]),focusOptions:_t.exports.object,noFocusGuards:_t.exports.bool,hasPositiveIndices:_t.exports.bool,allowTextSelection:_t.exports.bool,autoFocus:_t.exports.bool,persistentFocus:_t.exports.bool,crossFrame:_t.exports.bool,group:_t.exports.string,className:_t.exports.string,whiteList:_t.exports.func,shards:_t.exports.arrayOf(_t.exports.any),as:_t.exports.oneOfType([_t.exports.string,_t.exports.func,_t.exports.object]),lockProps:_t.exports.object,onActivation:_t.exports.func,onDeactivation:_t.exports.func,sideCar:_t.exports.any.isRequired};S2.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 NB=S2;function RO(e,t){return RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},RO(e,t)}function Eee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,RO(e,t)}function RB(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tee="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function Nee(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 r(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 c=[],u;function h(){u=e(c.map(function(v){return v.props})),t(u)}var m=function(v){Eee(S,v);function S(){return v.apply(this,arguments)||this}S.peek=function(){return u};var x=S.prototype;return x.componentDidMount=function(){c.push(this),h()},x.componentDidUpdate=function(){h()},x.componentWillUnmount=function(){var _=c.indexOf(this);c.splice(_,1),h()},x.render=function(){return k(o,{...this.props},void 0,!1,{fileName:Tee,lineNumber:67,columnNumber:29},this)},S}(D.exports.PureComponent);return RB(m,"displayName","SideEffect("+r(o)+")"),m}}var bu=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},AO=function(e){return Array.isArray(e)?e:[e]},Ree=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"},AB=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},OB=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Aee=function(e,t){return!e||OB(e)||!Ree(e)&&t(AB(e))},kB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=Aee(t,kB.bind(void 0,e));return e.set(t,i),i},Oee=function(e,t){return e&&!OB(e)?Pee(e)?t(AB(e)):!1:!0},DB=function(e,t){var r=e.get(t);if(r!==void 0)return r;var i=Oee(t,DB.bind(void 0,e));return e.set(t,i),i},PB=function(e){return e.dataset},kee=function(e){return e.tagName==="BUTTON"},MB=function(e){return e.tagName==="INPUT"},IB=function(e){return MB(e)&&e.type==="radio"},Dee=function(e){return!((MB(e)||kee(e))&&(e.type==="hidden"||e.disabled))},Pee=function(e){var t=e.getAttribute(gee);return![!0,"true",""].includes(t)},x2=function(e){var t;return Boolean(e&&((t=PB(e))===null||t===void 0?void 0:t.focusGuard))},pw=function(e){return!x2(e)},Mee=function(e){return Boolean(e)},Iee=function(e,t){var r=e.tabIndex-t.tabIndex,i=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return r||i},LB=function(e,t,r){return bu(e).map(function(i,o){return{node:i,index:o,tabIndex:r&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort(Iee)},Lee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],w2=Lee.join(","),Fee="".concat(w2,", [data-focus-guard]"),FB=function(e,t){var r;return bu(((r=e.shadowRoot)===null||r===void 0?void 0:r.children)||e.children).reduce(function(i,o){return i.concat(o.matches(t?Fee:w2)?[o]:[],FB(o))},[])},C2=function(e,t){return e.reduce(function(r,i){return r.concat(FB(i,t),i.parentNode?bu(i.parentNode.querySelectorAll(w2)).filter(function(o){return o===i}):[])},[])},zee=function(e){var t=e.querySelectorAll("[".concat(vee,"]"));return bu(t).map(function(r){return C2([r])}).reduce(function(r,i){return r.concat(i)},[])},_2=function(e,t){return bu(e).filter(function(r){return kB(t,r)}).filter(function(r){return Dee(r)})},R5=function(e,t){return t===void 0&&(t=new Map),bu(e).filter(function(r){return DB(t,r)})},OO=function(e,t,r){return LB(_2(C2(e,r),t),!0,r)},A5=function(e,t){return LB(_2(C2(e),t),!1)},Bee=function(e,t){return _2(zee(e),t)},vb=function(e,t){return(e.shadowRoot?vb(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||bu(e.children).some(function(r){return vb(r,t)})},Uee=function(e){for(var t=new Set,r=e.length,i=0;i<r;i+=1)for(var o=i+1;o<r;o+=1){var c=e[i].compareDocumentPosition(e[o]);(c&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(c&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(u,h){return!t.has(h)})},zB=function(e){return e.parentNode?zB(e.parentNode):e},E2=function(e){var t=AO(e);return t.filter(Boolean).reduce(function(r,i){var o=i.getAttribute(NO);return r.push.apply(r,o?Uee(bu(zB(i).querySelectorAll("[".concat(NO,'="').concat(o,'"]:not([').concat(bB,'="disabled"])')))):[i]),r},[])},BB=function(e){return e.activeElement?e.activeElement.shadowRoot?BB(e.activeElement.shadowRoot):e.activeElement:void 0},T2=function(){return document.activeElement?document.activeElement.shadowRoot?BB(document.activeElement.shadowRoot):document.activeElement:void 0},jee=function(e){return e===document.activeElement},$ee=function(e){return Boolean(bu(e.querySelectorAll("iframe")).some(function(t){return jee(t)}))},UB=function(e){var t=document&&T2();return!t||t.dataset&&t.dataset.focusGuard?!1:E2(e).some(function(r){return vb(r,t)||$ee(r)})},Vee=function(){var e=document&&T2();return e?bu(document.querySelectorAll("[".concat(mee,"]"))).some(function(t){return vb(t,e)}):!1},Hee=function(e,t){return t.filter(IB).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},N2=function(e,t){return IB(e)&&e.name?Hee(e,t):e},Wee=function(e){var t=new Set;return e.forEach(function(r){return t.add(N2(r,e))}),e.filter(function(r){return t.has(r)})},O5=function(e){return e[0]&&e.length>1?N2(e[0],e):e[0]},k5=function(e,t){return e.length>1?e.indexOf(N2(e[t],e)):t},jB="NEW_FOCUS",Gee=function(e,t,r,i){var o=e.length,c=e[0],u=e[o-1],h=x2(r);if(!(r&&e.indexOf(r)>=0)){var m=r!==void 0?t.indexOf(r):-1,v=i?t.indexOf(i):m,S=i?e.indexOf(i):-1,x=m-v,C=t.indexOf(c),_=t.indexOf(u),N=Wee(t),O=r!==void 0?N.indexOf(r):-1,I=O-(i?N.indexOf(i):m),V=k5(e,0),M=k5(e,o-1);if(m===-1||S===-1)return jB;if(!x&&S>=0)return S;if(m<=C&&h&&Math.abs(x)>1)return M;if(m>=_&&h&&Math.abs(x)>1)return V;if(x&&Math.abs(I)>1)return S;if(m<=C)return M;if(m>_)return V;if(x)return Math.abs(x)>1?S:(o+S+x)%o}},kO=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&kO(e.parentNode.host||e.parentNode,t),t},lA=function(e,t){for(var r=kO(e),i=kO(t),o=0;o<r.length;o+=1){var c=r[o];if(i.indexOf(c)>=0)return c}return!1},$B=function(e,t,r){var i=AO(e),o=AO(t),c=i[0],u=!1;return o.filter(Boolean).forEach(function(h){u=lA(u||h,h)||u,r.filter(Boolean).forEach(function(m){var v=lA(c,m);v&&(!u||vb(v,u)?u=v:u=lA(v,u))})}),u},Yee=function(e,t){return e.reduce(function(r,i){return r.concat(Bee(i,t))},[])},qee=function(e){return function(t){var r;return t.autofocus||!!(!((r=PB(t))===null||r===void 0)&&r.autofocus)||e.indexOf(t)>=0}},Kee=function(e,t){var r=new Map;return t.forEach(function(i){return r.set(i.node,i)}),e.map(function(i){return r.get(i)}).filter(Mee)},Xee=function(e,t){var r=document&&T2(),i=E2(e).filter(pw),o=$B(r||e,e,i),c=new Map,u=A5(i,c),h=OO(i,c).filter(function(_){var N=_.node;return pw(N)});if(!(!h[0]&&(h=u,!h[0]))){var m=A5([o],c).map(function(_){var N=_.node;return N}),v=Kee(m,h),S=v.map(function(_){var N=_.node;return N}),x=Gee(S,m,r,t);if(x===jB){var C=R5(u.map(function(_){var N=_.node;return N})).filter(qee(Yee(i,c)));return{node:C&&C.length?O5(C):O5(R5(S))}}return x===void 0?x:v[x]}},Zee=function(e){var t=E2(e).filter(pw),r=$B(e,e,t),i=new Map,o=OO([r],i,!0),c=OO(t,i).filter(function(u){var h=u.node;return pw(h)}).map(function(u){var h=u.node;return h});return o.map(function(u){var h=u.node,m=u.index;return{node:h,index:m,lockItem:c.indexOf(h)>=0,guard:x2(h)}})},Qee=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},uA=0,cA=!1,Jee=function(e,t,r){r===void 0&&(r={});var i=Xee(e,t);if(!cA&&i){if(uA>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),cA=!0,setTimeout(function(){cA=!1},1);return}uA++,Qee(i.node,r.focusOptions),uA--}};const VB=Jee;function HB(e){var t=window,r=t.setImmediate;typeof r<"u"?r(e):setTimeout(e,1)}var ete=function(){return document&&document.activeElement===document.body},tte=function(){return ete()||Vee()},jm=null,Lm=null,$m=null,gb=!1,nte=function(){return!0},rte=function(t){return(jm.whiteList||nte)(t)},ate=function(t,r){$m={observerNode:t,portaledElement:r}},ite=function(t){return $m&&$m.portaledElement===t};function D5(e,t,r,i){var o=null,c=e;do{var u=i[c];if(u.guard)u.node.dataset.focusAutoGuard&&(o=u);else if(u.lockItem){if(c!==e)return;o=null}else break}while((c+=r)!==t);o&&(o.node.tabIndex=0)}var ote=function(t){return t&&"current"in t?t.current:t},ste=function(t){return t?Boolean(gb):gb==="meanwhile"},lte=function e(t,r,i){return r&&(r.host===t&&(!r.activeElement||i.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,i))},ute=function(t,r){return r.some(function(i){return lte(t,i,i)})},hw=function(){var t=!1;if(jm){var r=jm,i=r.observed,o=r.persistentFocus,c=r.autoFocus,u=r.shards,h=r.crossFrame,m=r.focusOptions,v=i||$m&&$m.portaledElement,S=document&&document.activeElement;if(v){var x=[v].concat(u.map(ote).filter(Boolean));if((!S||rte(S))&&(o||ste(h)||!tte()||!Lm&&c)&&(v&&!(UB(x)||S&&ute(S,x)||ite(S))&&(document&&!Lm&&S&&!c?(S.blur&&S.blur(),document.body.focus()):(t=VB(x,Lm,{focusOptions:m}),$m={})),gb=!1,Lm=document&&document.activeElement),document){var C=document&&document.activeElement,_=Zee(x),N=_.map(function(O){var I=O.node;return I}).indexOf(C);N>-1&&(_.filter(function(O){var I=O.guard,V=O.node;return I&&V.dataset.focusAutoGuard}).forEach(function(O){var I=O.node;return I.removeAttribute("tabIndex")}),D5(N,_.length,1,_),D5(N,-1,-1,_))}}}return t},WB=function(t){hw()&&t&&(t.stopPropagation(),t.preventDefault())},R2=function(){return HB(hw)},cte=function(t){var r=t.target,i=t.currentTarget;i.contains(r)||ate(i,r)},fte=function(){return null};_t.exports.node.isRequired;var GB=function(){gb="just",setTimeout(function(){gb="meanwhile"},0)},dte=function(){document.addEventListener("focusin",WB),document.addEventListener("focusout",R2),window.addEventListener("blur",GB)},pte=function(){document.removeEventListener("focusin",WB),document.removeEventListener("focusout",R2),window.removeEventListener("blur",GB)};function hte(e){return e.filter(function(t){var r=t.disabled;return!r})}function mte(e){var t=e.slice(-1)[0];t&&!jm&&dte();var r=jm,i=r&&t&&t.id===r.id;jm=t,r&&!i&&(r.onDeactivation(),e.filter(function(o){var c=o.id;return c===r.id}).length||r.returnFocus(!t)),t?(Lm=null,(!i||r.observed!==t.observed)&&t.onActivation(),hw(),HB(hw)):(pte(),Lm=null)}EB.assignSyncMedium(cte);TB.assignMedium(R2);wee.assignMedium(function(e){return e({moveFocusInside:VB,focusInside:UB})});const vte=Nee(hte,mte)(fte);var gte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",YB=D.exports.forwardRef(function(t,r){return k(NB,{sideCar:vte,ref:r,...t},void 0,!1,{fileName:gte,lineNumber:16,columnNumber:23},this)}),qB=NB.propTypes||{};qB.sideCar;var yte=eee(qB,["sideCar"]);YB.propTypes=yte;const bte=YB;var Ste="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",KB=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:i,restoreFocus:o,children:c,isDisabled:u,autoFocus:h,persistentFocus:m,lockFocusAcrossFrames:v}=e,S=D.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&yQ(i.current).length===0&&requestAnimationFrame(()=>{var N;(N=i.current)==null||N.focus()})},[t,i]),x=D.exports.useCallback(()=>{var _;(_=r?.current)==null||_.focus()},[r]);return k(bte,{crossFrame:v,persistentFocus:m,autoFocus:h,disabled:u,onActivation:S,onDeactivation:x,returnFocus:o&&!r,children:c},void 0,!1,{fileName:Ste,lineNumber:38,columnNumber:26},globalThis)};KB.displayName="FocusLock";var Px="right-scroll-bar-position",Mx="width-before-scroll-bar",xte="with-scroll-bars-hidden",wte="--removed-body-scroll-bar-size",XB=CB(),P5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",fA=function(){},cC=D.exports.forwardRef(function(e,t){var r=D.exports.useRef(null),i=D.exports.useState({onScrollCapture:fA,onWheelCapture:fA,onTouchMoveCapture:fA}),o=i[0],c=i[1],u=e.forwardProps,h=e.children,m=e.className,v=e.removeScrollBar,S=e.enabled,x=e.shards,C=e.sideCar,_=e.noIsolation,N=e.inert,O=e.allowPinchZoom,I=e.as,V=I===void 0?"div":I,M=qw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),z=C,B=SB([r,t]),j=ou(ou({},M),o);return k(bo,{children:[S&&k(z,{sideCar:XB,removeScrollBar:v,shards:x,noIsolation:_,inert:N,setCallbacks:c,allowPinchZoom:!!O,lockRef:r},void 0,!1,{fileName:P5,lineNumber:24,columnNumber:21},this),u?D.exports.cloneElement(D.exports.Children.only(h),ou(ou({},j),{ref:B})):k(V,{...ou({},j,{className:m,ref:B}),children:h},void 0,!1,{fileName:P5,lineNumber:25,columnNumber:142},this)]},void 0,!0)});cC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cC.classNames={fullWidth:Mx,zeroRight:Px};var Cte=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _te(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cte();return t&&e.setAttribute("nonce",t),e}function Ete(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tte(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Nte=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_te())&&(Ete(t,r),Tte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Rte=function(){var e=Nte();return function(t,r){D.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ZB=function(){var e=Rte(),t=function(r){var i=r.styles,o=r.dynamic;return e(i,o),null};return t},Ate={left:0,top:0,right:0,gap:0},dA=function(e){return parseInt(e||"",10)||0},Ote=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 r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[dA(r),dA(i),dA(o)]},kte=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ate;var t=Ote(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Dte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",Pte=ZB(),Mte=function(e,t,r,i){var o=e.left,c=e.top,u=e.right,h=e.gap;return r===void 0&&(r="margin"),`
.`.concat(xte,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(h,"px ").concat(i,`;
}
body {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(c,`px;
padding-right: `).concat(u,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(h,"px ").concat(i,`;
`),r==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(Px,` {
right: `).concat(h,"px ").concat(i,`;
}
.`).concat(Mx,` {
margin-right: `).concat(h,"px ").concat(i,`;
}
.`).concat(Px," .").concat(Px,` {
right: 0 `).concat(i,`;
}
.`).concat(Mx," .").concat(Mx,` {
margin-right: 0 `).concat(i,`;
}
body {
`).concat(wte,": ").concat(h,`px;
}
`)},Ite=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i,c=D.exports.useMemo(function(){return kte(o)},[o]);return k(Pte,{styles:Mte(c,!t,o,r?"":"!important")},void 0,!1,{fileName:Dte,lineNumber:27,columnNumber:12},this)},DO=!1;if(typeof window<"u")try{var ux=Object.defineProperty({},"passive",{get:function(){return DO=!0,!0}});window.addEventListener("test",ux,ux),window.removeEventListener("test",ux,ux)}catch{DO=!1}var Nm=DO?{passive:!1}:!1,Lte=function(e){return e.tagName==="TEXTAREA"},QB=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Lte(e)&&r[t]==="visible")},Fte=function(e){return QB(e,"overflowY")},zte=function(e){return QB(e,"overflowX")},M5=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=JB(e,r);if(i){var o=e6(e,r),c=o[1],u=o[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Bte=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},Ute=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},JB=function(e,t){return e==="v"?Fte(t):zte(t)},e6=function(e,t){return e==="v"?Bte(t):Ute(t)},jte=function(e,t){return e==="h"&&t==="rtl"?-1:1},$te=function(e,t,r,i,o){var c=jte(e,window.getComputedStyle(t).direction),u=c*i,h=r.target,m=t.contains(h),v=!1,S=u>0,x=0,C=0;do{var _=e6(e,h),N=_[0],O=_[1],I=_[2],V=O-I-c*N;(N||V)&&JB(e,h)&&(x+=V,C+=N),h=h.parentNode}while(!m&&h!==document.body||m&&(t.contains(h)||t===h));return(S&&(o&&x===0||!o&&u>x)||!S&&(o&&C===0||!o&&-u>C))&&(v=!0),v},I5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",cx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L5=function(e){return[e.deltaX,e.deltaY]},F5=function(e){return e&&"current"in e?e.current:e},Vte=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hte=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Wte=0,Rm=[];function Gte(e){var t=D.exports.useRef([]),r=D.exports.useRef([0,0]),i=D.exports.useRef(),o=D.exports.useState(Wte++)[0],c=D.exports.useState(function(){return ZB()})[0],u=D.exports.useRef(e);D.exports.useEffect(function(){u.current=e},[e]),D.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var O=KA([e.lockRef.current],(e.shards||[]).map(F5),!0).filter(Boolean);return O.forEach(function(I){return I.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),O.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var h=D.exports.useCallback(function(O,I){if("touches"in O&&O.touches.length===2)return!u.current.allowPinchZoom;var V=cx(O),M=r.current,z="deltaX"in O?O.deltaX:M[0]-V[0],B="deltaY"in O?O.deltaY:M[1]-V[1],j,K=O.target,X=Math.abs(z)>Math.abs(B)?"h":"v";if("touches"in O&&X==="h"&&K.type==="range")return!1;var fe=M5(X,K);if(!fe)return!0;if(fe?j=X:(j=X==="v"?"h":"v",fe=M5(X,K)),!fe)return!1;if(!i.current&&"changedTouches"in O&&(z||B)&&(i.current=j),!j)return!0;var me=i.current||j;return $te(me,I,O,me==="h"?z:B,!0)},[]),m=D.exports.useCallback(function(O){var I=O;if(!(!Rm.length||Rm[Rm.length-1]!==c)){var V="deltaY"in I?L5(I):cx(I),M=t.current.filter(function(j){return j.name===I.type&&j.target===I.target&&Vte(j.delta,V)})[0];if(M&&M.should){I.cancelable&&I.preventDefault();return}if(!M){var z=(u.current.shards||[]).map(F5).filter(Boolean).filter(function(j){return j.contains(I.target)}),B=z.length>0?h(I,z[0]):!u.current.noIsolation;B&&I.cancelable&&I.preventDefault()}}},[]),v=D.exports.useCallback(function(O,I,V,M){var z={name:O,delta:I,target:V,should:M};t.current.push(z),setTimeout(function(){t.current=t.current.filter(function(B){return B!==z})},1)},[]),S=D.exports.useCallback(function(O){r.current=cx(O),i.current=void 0},[]),x=D.exports.useCallback(function(O){v(O.type,L5(O),O.target,h(O,e.lockRef.current))},[]),C=D.exports.useCallback(function(O){v(O.type,cx(O),O.target,h(O,e.lockRef.current))},[]);D.exports.useEffect(function(){return Rm.push(c),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",m,Nm),document.addEventListener("touchmove",m,Nm),document.addEventListener("touchstart",S,Nm),function(){Rm=Rm.filter(function(O){return O!==c}),document.removeEventListener("wheel",m,Nm),document.removeEventListener("touchmove",m,Nm),document.removeEventListener("touchstart",S,Nm)}},[]);var _=e.removeScrollBar,N=e.inert;return k(bo,{children:[N?k(c,{styles:Hte(o)},void 0,!1,{fileName:I5,lineNumber:144,columnNumber:17},this):null,_?k(Ite,{gapMode:"margin"},void 0,!1,{fileName:I5,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Yte=xee(XB,Gte);var qte="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",t6=D.exports.forwardRef(function(e,t){return k(cC,{...ou({},e,{ref:t,sideCar:Yte})},void 0,!1,{fileName:qte,lineNumber:5,columnNumber:74},this)});t6.classNames=cC.classNames;const Kte=t6;var vo="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",Xp=(...e)=>e.filter(Boolean).join(" ");function My(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var Xte=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}},PO=new Xte;function Zte(e,t){D.exports.useEffect(()=>(t&&PO.add(e),()=>{PO.remove(e)}),[t,e])}function Qte(e){const{isOpen:t,onClose:r,id:i,closeOnOverlayClick:o=!0,closeOnEsc:c=!0,useInert:u=!0,onOverlayClick:h,onEsc:m}=e,v=D.exports.useRef(null),S=D.exports.useRef(null),[x,C,_]=ene(i,"chakra-modal","chakra-modal--header","chakra-modal--body");Jte(v,t&&u),Zte(v,t);const N=D.exports.useRef(null),O=D.exports.useCallback(fe=>{N.current=fe.target},[]),I=D.exports.useCallback(fe=>{fe.key==="Escape"&&(fe.stopPropagation(),c&&r?.(),m?.())},[c,r,m]),[V,M]=D.exports.useState(!1),[z,B]=D.exports.useState(!1),j=D.exports.useCallback((fe={},me=null)=>({role:"dialog",...fe,ref:Zi(me,v),id:x,tabIndex:-1,"aria-modal":!0,"aria-labelledby":V?C:void 0,"aria-describedby":z?_:void 0,onClick:My(fe.onClick,se=>se.stopPropagation())}),[_,z,x,C,V]),K=D.exports.useCallback(fe=>{fe.stopPropagation(),N.current===fe.target&&(!PO.isTopModal(v)||(o&&r?.(),h?.()))},[r,o,h]),X=D.exports.useCallback((fe={},me=null)=>({...fe,ref:Zi(me,S),onClick:My(fe.onClick,K),onKeyDown:My(fe.onKeyDown,I),onMouseDown:My(fe.onMouseDown,O)}),[I,O,K]);return{isOpen:t,onClose:r,headerId:C,bodyId:_,setBodyMounted:B,setHeaderMounted:M,dialogRef:v,overlayRef:S,getDialogProps:j,getDialogContainerProps:X}}function Jte(e,t){const r=e.current;D.exports.useEffect(()=>{if(!(!e.current||!t))return JJ(e.current)},[t,e,r])}function ene(e,...t){const r=D.exports.useId(),i=e||r;return D.exports.useMemo(()=>t.map(o=>`${o}-${i}`),[i,t])}var[tne,Zp]=Qr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[nne,Yf]=Qr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),yb=e=>{const{portalProps:t,children:r,autoFocus:i,trapFocus:o,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:S,motionPreset:x,lockFocusAcrossFrames:C,onCloseComplete:_}=e,N=Zo("Modal",e),I={...Qte(e),autoFocus:i,trapFocus:o,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:h,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:S,motionPreset:x,lockFocusAcrossFrames:C};return k(nne,{value:I,children:k(tne,{value:N,children:k(bc,{onExitComplete:_,children:I.isOpen&&k(Kp,{...t,children:r},void 0,!1,{fileName:vo,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:vo,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:vo,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:vo,lineNumber:189,columnNumber:26},globalThis)};yb.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};yb.displayName="Modal";var mw=et((e,t)=>{const{className:r,...i}=e,{bodyId:o,setBodyMounted:c}=Yf();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=Xp("chakra-modal__body",r),h=Zp();return Ue.createElement(Ge.div,{ref:t,className:u,id:o,...i,__css:h.body})});mw.displayName="ModalBody";var n6=et((e,t)=>{const{onClick:r,className:i,...o}=e,{onClose:c}=Yf(),u=Xp("chakra-modal__close-btn",i),h=Zp();return k(i2,{ref:t,__css:h.closeButton,className:u,onClick:My(r,m=>{m.stopPropagation(),c()}),...o},void 0,!1,{fileName:vo,lineNumber:241,columnNumber:26},globalThis)});n6.displayName="ModalCloseButton";function r6(e){const{autoFocus:t,trapFocus:r,dialogRef:i,initialFocusRef:o,blockScrollOnMount:c,allowPinchZoom:u,finalFocusRef:h,returnFocusOnClose:m,preserveScrollBarGap:v,lockFocusAcrossFrames:S}=Yf(),[x,C]=Vk();return D.exports.useEffect(()=>{!x&&C&&setTimeout(C)},[x,C]),k(KB,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:h,restoreFocus:m,contentRef:i,lockFocusAcrossFrames:S,children:k(Kte,{removeScrollBar:!v,allowPinchZoom:u,enabled:c,forwardProps:!0,children:e.children},void 0,!1,{fileName:vo,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:vo,lineNumber:284,columnNumber:26},this)}var rne={slideInBottom:{...dO,custom:{offsetY:16,reverse:!0}},slideInRight:{...dO,custom:{offsetX:16,reverse:!0}},scale:{..._z,custom:{initialScale:.95,reverse:!0}},none:{}},ane=Ge(Nl.section),a6=D.exports.forwardRef((e,t)=>{const{preset:r,...i}=e,o=rne[r];return k(ane,{ref:t,...o,...i},void 0,!1,{fileName:vo,lineNumber:324,columnNumber:26},globalThis)});a6.displayName="ModalTransition";var vw=et((e,t)=>{const{className:r,children:i,containerProps:o,...c}=e,{getDialogProps:u,getDialogContainerProps:h}=Yf(),m=u(c,t),v=h(o),S=Xp("chakra-modal__content",r),x=Zp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...x.dialogContainer},{motionPreset:N}=Yf();return Ue.createElement(r6,null,Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:_},k(a6,{preset:N,className:S,...m,__css:C,children:i},void 0,!1,{fileName:vo,lineNumber:366,columnNumber:22},globalThis)))});vw.displayName="ModalContent";var A2=et((e,t)=>{const{className:r,...i}=e,o=Xp("chakra-modal__footer",r),c=Zp(),u={display:"flex",alignItems:"center",justifyContent:"flex-end",...c.footer};return Ue.createElement(Ge.footer,{ref:t,...i,__css:u,className:o})});A2.displayName="ModalFooter";var O2=et((e,t)=>{const{className:r,...i}=e,{headerId:o,setHeaderMounted:c}=Yf();D.exports.useEffect(()=>(c(!0),()=>c(!1)),[c]);const u=Xp("chakra-modal__header",r),h=Zp(),m={flex:0,...h.header};return Ue.createElement(Ge.header,{ref:t,className:u,id:o,...i,__css:m})});O2.displayName="ModalHeader";var ine=Ge(Nl.div),gw=et((e,t)=>{const{className:r,transition:i,...o}=e,c=Xp("chakra-modal__overlay",r),u=Zp(),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...u.overlay},{motionPreset:m}=Yf();return k(ine,{...m==="none"?{}:Cz,__css:h,ref:t,className:c,...o},void 0,!1,{fileName:vo,lineNumber:450,columnNumber:26},globalThis)});gw.displayName="ModalOverlay";function one(e){const{leastDestructiveRef:t,...r}=e;return k(yb,{...r,initialFocusRef:t},void 0,!1,{fileName:vo,lineNumber:464,columnNumber:26},this)}var sne=et((e,t)=>k(vw,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:vo,lineNumber:469,columnNumber:70},globalThis)),[Eme,lne]=Qr(),une=Ge(Ez),cne=et((e,t)=>{const{className:r,children:i,...o}=e,{getDialogProps:c,getDialogContainerProps:u,isOpen:h}=Yf(),m=c(o,t),v=u(),S=Xp("chakra-modal__content",r),x=Zp(),C={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog},_={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...x.dialogContainer},{placement:N}=lne();return Ue.createElement(Ge.div,{...v,className:"chakra-modal__content-container",__css:_},k(r6,{children:k(une,{direction:N,in:h,className:S,...m,__css:C,children:i},void 0,!1,{fileName:vo,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:vo,lineNumber:547,columnNumber:22},globalThis))});cne.displayName="DrawerContent";function fne(e,t){const r=ki(e);D.exports.useEffect(()=>{let i=null;const o=()=>r();return t!==null&&(i=window.setInterval(o,t)),()=>{i&&window.clearInterval(i)}},[t,r])}var qf="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",i6=(...e)=>e.filter(Boolean).join(" "),pA=e=>e?!0:void 0;function Jl(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var dne=e=>k(Tl,{viewBox:"0 0 24 24",...e,children:k("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:qf,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:qf,lineNumber:31,columnNumber:51},globalThis),pne=e=>k(Tl,{viewBox:"0 0 24 24",...e,children:k("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:qf,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:qf,lineNumber:38,columnNumber:49},globalThis);function z5(e,t,r,i){D.exports.useEffect(()=>{if(!e.current||!i)return;const o=e.current.ownerDocument.defaultView??window,c=Array.isArray(t)?t:[t],u=new o.MutationObserver(h=>{for(const m of h)m.type==="attributes"&&m.attributeName&&c.includes(m.attributeName)&&r(m)});return u.observe(e.current,{attributes:!0,attributeFilter:c}),()=>u.disconnect()})}var hne=50,B5=300;function mne(e,t){const[r,i]=D.exports.useState(!1),[o,c]=D.exports.useState(null),[u,h]=D.exports.useState(!0),m=D.exports.useRef(null),v=()=>clearTimeout(m.current);fne(()=>{o==="increment"&&e(),o==="decrement"&&t()},r?hne:null);const S=D.exports.useCallback(()=>{u&&e(),m.current=setTimeout(()=>{h(!1),i(!0),c("increment")},B5)},[e,u]),x=D.exports.useCallback(()=>{u&&t(),m.current=setTimeout(()=>{h(!1),i(!0),c("decrement")},B5)},[t,u]),C=D.exports.useCallback(()=>{h(!0),i(!1),v()},[]);return D.exports.useEffect(()=>()=>v(),[]),{up:S,down:x,stop:C,isSpinning:r}}var vne=/^[Ee0-9+\-.]$/;function gne(e){return vne.test(e)}function yne(e,t){if(e.key==null)return!0;const r=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||r?!0:t(e.key)}function bne(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:r=!0,keepWithinRange:i=!0,min:o=Number.MIN_SAFE_INTEGER,max:c=Number.MAX_SAFE_INTEGER,step:u=1,isReadOnly:h,isDisabled:m,isRequired:v,isInvalid:S,pattern:x="[0-9]*(.[0-9]+)?",inputMode:C="decimal",allowMouseWheel:_,id:N,onChange:O,precision:I,name:V,"aria-describedby":M,"aria-label":z,"aria-labelledby":B,onFocus:j,onBlur:K,onInvalid:X,getAriaValueText:fe,isValidCharacter:me,format:se,parse:be,...Ke}=e,J=ki(j),ce=ki(K),Re=ki(X),Ce=ki(me??gne),oe=ki(fe),Se=NZ(e),{update:Te,increment:pe,decrement:we}=Se,[Ie,Le]=D.exports.useState(!1),Ye=!(h||m),st=D.exports.useRef(null),mt=D.exports.useRef(null),Gt=D.exports.useRef(null),Qe=D.exports.useRef(null),vt=D.exports.useCallback(ke=>ke.split("").filter(Ce).join(""),[Ce]),Et=D.exports.useCallback(ke=>be?.(ke)??ke,[be]),zt=D.exports.useCallback(ke=>(se?.(ke)??ke).toString(),[se]);uw(()=>{(Se.valueAsNumber>c||Se.valueAsNumber<o)&&Re?.("rangeOverflow",zt(Se.value),Se.valueAsNumber)},[Se.valueAsNumber,Se.value,zt,Re]),hc(()=>{if(!st.current)return;if(st.current.value!=Se.value){const jt=Et(st.current.value);Se.setValue(vt(jt))}},[Et,vt]);const We=D.exports.useCallback((ke=u)=>{Ye&&pe(ke)},[pe,Ye,u]),Yt=D.exports.useCallback((ke=u)=>{Ye&&we(ke)},[we,Ye,u]),ye=mne(We,Yt);z5(Gt,"disabled",ye.stop,ye.isSpinning),z5(Qe,"disabled",ye.stop,ye.isSpinning);const Mt=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;const xn=Et(ke.currentTarget.value);Te(vt(xn)),mt.current={start:ke.currentTarget.selectionStart,end:ke.currentTarget.selectionEnd}},[Te,vt,Et]),Kt=D.exports.useCallback(ke=>{var jt;J?.(ke),mt.current&&(ke.target.selectionStart=mt.current.start??((jt=ke.currentTarget.value)==null?void 0:jt.length),ke.currentTarget.selectionEnd=mt.current.end??ke.currentTarget.selectionStart)},[J]),St=D.exports.useCallback(ke=>{if(ke.nativeEvent.isComposing)return;yne(ke,Ce)||ke.preventDefault();const jt=ar(ke)*u,xn=ke.key,rt={ArrowUp:()=>We(jt),ArrowDown:()=>Yt(jt),Home:()=>Te(o),End:()=>Te(c)}[xn];rt&&(ke.preventDefault(),rt(ke))},[Ce,u,We,Yt,Te,o,c]),ar=ke=>{let jt=1;return(ke.metaKey||ke.ctrlKey)&&(jt=.1),ke.shiftKey&&(jt=10),jt},ir=D.exports.useMemo(()=>{const ke=oe?.(Se.value);if(ke!=null)return ke;const jt=Se.value.toString();return jt||void 0},[Se.value,oe]),Bt=D.exports.useCallback(()=>{let ke=Se.value;ke!==""&&(Se.valueAsNumber<o&&(ke=o),Se.valueAsNumber>c&&(ke=c),Se.cast(ke))},[Se,c,o]),fn=D.exports.useCallback(()=>{Le(!1),r&&Bt()},[r,Le,Bt]),kn=D.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ke;(ke=st.current)==null||ke.focus()})},[t]),hn=D.exports.useCallback(ke=>{ke.preventDefault(),ye.up(),kn()},[kn,ye]),Ve=D.exports.useCallback(ke=>{ke.preventDefault(),ye.down(),kn()},[kn,ye]);bO(()=>st.current,"wheel",ke=>{var jt;const je=(((jt=st.current)==null?void 0:jt.ownerDocument)??document).activeElement===st.current;if(!_||!je)return;ke.preventDefault();const rt=ar(ke)*u,xt=Math.sign(ke.deltaY);xt===-1?We(rt):xt===1&&Yt(rt)},{passive:!1});const Ze=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMax;return{...ke,ref:Zi(jt,Gt),role:"button",tabIndex:-1,onPointerDown:Jl(ke.onPointerDown,je=>{xn||hn(je)}),onPointerLeave:Jl(ke.onPointerLeave,ye.stop),onPointerUp:Jl(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":pA(xn)}},[Se.isAtMax,i,hn,ye.stop,m]),Jt=D.exports.useCallback((ke={},jt=null)=>{const xn=m||i&&Se.isAtMin;return{...ke,ref:Zi(jt,Qe),role:"button",tabIndex:-1,onPointerDown:Jl(ke.onPointerDown,je=>{xn||Ve(je)}),onPointerLeave:Jl(ke.onPointerLeave,ye.stop),onPointerUp:Jl(ke.onPointerUp,ye.stop),disabled:xn,"aria-disabled":pA(xn)}},[Se.isAtMin,i,Ve,ye.stop,m]),Tt=D.exports.useCallback((ke={},jt=null)=>({name:V,inputMode:C,type:"text",pattern:x,"aria-labelledby":B,"aria-label":z,"aria-describedby":M,id:N,disabled:m,...ke,readOnly:ke.readOnly??h,"aria-readonly":ke.readOnly??h,"aria-required":ke.required??v,required:ke.required??v,ref:Zi(st,jt),value:zt(Se.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":c,"aria-valuenow":Number.isNaN(Se.valueAsNumber)?void 0:Se.valueAsNumber,"aria-invalid":pA(S??Se.isOutOfRange),"aria-valuetext":ir,autoComplete:"off",autoCorrect:"off",onChange:Jl(ke.onChange,Mt),onKeyDown:Jl(ke.onKeyDown,St),onFocus:Jl(ke.onFocus,Kt,()=>Le(!0)),onBlur:Jl(ke.onBlur,ce,fn)}),[V,C,x,B,z,zt,M,N,m,v,h,S,Se.value,Se.valueAsNumber,Se.isOutOfRange,o,c,ir,Mt,St,Kt,ce,fn]);return{value:zt(Se.value),valueAsNumber:Se.valueAsNumber,isFocused:Ie,isDisabled:m,isReadOnly:h,getIncrementButtonProps:Ze,getDecrementButtonProps:Jt,getInputProps:Tt,htmlProps:Ke}}var[Sne,fC]=Qr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[xne,k2]=Qr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),o6=et(function(t,r){const i=Zo("NumberInput",t),o=mr(t),c=n2(o),{htmlProps:u,...h}=bne(c),m=D.exports.useMemo(()=>h,[h]);return Ue.createElement(xne,{value:m},Ue.createElement(Sne,{value:i},Ue.createElement(Ge.div,{...u,ref:r,className:i6("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});o6.displayName="NumberInput";var s6=et(function(t,r){const i=fC();return Ue.createElement(Ge.div,{"aria-hidden":!0,ref:r,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});s6.displayName="NumberInputStepper";var l6=et(function(t,r){const{getInputProps:i}=k2(),o=i(t,r),c=fC();return Ue.createElement(Ge.input,{...o,className:i6("chakra-numberinput__field",t.className),__css:{width:"100%",...c.field}})});l6.displayName="NumberInputField";var u6=Ge("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),c6=et(function(t,r){const i=fC(),{getDecrementButtonProps:o}=k2(),c=o(t,r);return k(u6,{...c,__css:i.stepper,children:t.children??k(dne,{},void 0,!1,{fileName:qf,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:qf,lineNumber:509,columnNumber:26},this)});c6.displayName="NumberDecrementStepper";var f6=et(function(t,r){const{getIncrementButtonProps:i}=k2(),o=i(t,r),c=fC();return k(u6,{...o,__css:c.stepper,children:t.children??k(pne,{},void 0,!1,{fileName:qf,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:qf,lineNumber:519,columnNumber:26},this)});f6.displayName="NumberIncrementStepper";var U5="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function wne(e,t,r){return(e-t)*100/(r-t)}Nb({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Nb({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var Cne=Nb({"0%":{left:"-40%"},"100%":{left:"100%"}}),_ne=Nb({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Ene(e){const{value:t=0,min:r,max:i,valueText:o,getValueText:c,isIndeterminate:u}=e,h=wne(t,r,i);return{bind:{"data-indeterminate":u?"":void 0,"aria-valuemax":i,"aria-valuemin":r,"aria-valuenow":u?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof c=="function"?c(t,h):o})(),role:"progressbar"},percent:h,value:t}}var[Tne,Nne]=Qr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Rne=e=>{const{min:t,max:r,value:i,isIndeterminate:o,...c}=e,u=Ene({value:i,min:t,max:r,isIndeterminate:o}),h=Nne(),m={height:"100%",...h.filledTrack};return Ue.createElement(Ge.div,{style:{width:`${u.percent}%`,...c.style},...u.bind,...c,__css:m})},d6=e=>{var t;const{value:r,min:i=0,max:o=100,hasStripe:c,isAnimated:u,children:h,borderRadius:m,isIndeterminate:v,"aria-label":S,"aria-labelledby":x,...C}=mr(e),_=Zo("Progress",e),N=m??((t=_.track)==null?void 0:t.borderRadius),O={animation:`${_ne} 1s linear infinite`},M={...!v&&c&&u&&O,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${Cne} 1s ease infinite normal none running`}},z={overflow:"hidden",position:"relative",..._.track};return Ue.createElement(Ge.div,{borderRadius:N,__css:z,...C},k(Tne,{value:_,children:[k(Rne,{"aria-label":S,"aria-labelledby":x,min:i,max:o,value:r,isIndeterminate:v,css:M,borderRadius:N},void 0,!1,{fileName:U5,lineNumber:232,columnNumber:22},globalThis),h]},void 0,!0,{fileName:U5,lineNumber:230,columnNumber:22},globalThis))};d6.displayName="Progress";var Ane=Ge("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Ane.displayName="CircularProgressLabel";var Hp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",One=(...e)=>e.filter(Boolean).join(" "),kne=e=>e?"":void 0;function Dne(e,t){const r={},i={};for(const[o,c]of Object.entries(e))t.includes(o)?r[o]=c:i[o]=c;return[r,i]}var p6=et(function(t,r){const{children:i,placeholder:o,className:c,...u}=t;return Ue.createElement(Ge.select,{...u,ref:r,className:One("chakra-select",c)},o&&k("option",{value:"",children:o},void 0,!1,{fileName:Hp,lineNumber:42,columnNumber:37},this),i)});p6.displayName="SelectField";var h6=et((e,t)=>{var r;const i=Zo("Select",e),{rootProps:o,placeholder:c,icon:u,color:h,height:m,h:v,minH:S,minHeight:x,iconColor:C,iconSize:_,...N}=mr(e),[O,I]=Dne(N,s8),V=t2(I),M={width:"100%",height:"fit-content",position:"relative",color:h},z={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(r=i.field)==null?void 0:r._focus}};return Ue.createElement(Ge.div,{className:"chakra-select__wrapper",__css:M,...O,...o},k(p6,{ref:t,height:v??m,minH:S??x,placeholder:c,...V,__css:z,children:e.children},void 0,!1,{fileName:Hp,lineNumber:86,columnNumber:22},globalThis),k(m6,{"data-disabled":kne(V.disabled),...(C||h)&&{color:C||h},__css:i.icon,..._&&{fontSize:_},children:u},void 0,!1,{fileName:Hp,lineNumber:93,columnNumber:39},globalThis))});h6.displayName="Select";var Pne=e=>k("svg",{viewBox:"0 0 24 24",...e,children:k("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:Hp,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:Hp,lineNumber:101,columnNumber:46},globalThis),Mne=Ge("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),m6=e=>{const{children:t=k(Pne,{},void 0,!1,{fileName:Hp,lineNumber:120,columnNumber:38},globalThis),...r}=e,i=D.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return k(Mne,{...r,className:"chakra-select__icon-wrapper",children:D.exports.isValidElement(t)?i:null},void 0,!1,{fileName:Hp,lineNumber:132,columnNumber:26},globalThis)};m6.displayName="SelectIcon";var Ine="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",Lne=(...e)=>e.filter(Boolean).join(" "),j5=e=>e?"":void 0,Bf=et(function(t,r){const i=Zo("Switch",t),{spacing:o="0.5rem",children:c,...u}=mr(t),{state:h,getInputProps:m,getCheckboxProps:v,getRootProps:S,getLabelProps:x}=zz(u),C=D.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),_=D.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),N=D.exports.useMemo(()=>({userSelect:"none",marginStart:o,...i.label}),[o,i.label]);return Ue.createElement(Ge.label,{...S(),className:Lne("chakra-switch",t.className),__css:C},k("input",{className:"chakra-switch__input",...m({},r)},void 0,!1,{fileName:Ine,lineNumber:53,columnNumber:22},this),Ue.createElement(Ge.span,{...v(),className:"chakra-switch__track",__css:_},Ue.createElement(Ge.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":j5(h.isChecked),"data-hover":j5(h.isHovered)})),c&&Ue.createElement(Ge.span,{className:"chakra-switch__label",...x(),__css:N},c))});Bf.displayName="Switch";var Fne=(...e)=>e.filter(Boolean).join(" ");function zne(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}var Bne=["h","minH","height","minHeight"],v6=et((e,t)=>{const r=Qi("Textarea",e),{className:i,rows:o,...c}=mr(e),u=t2(c),h=o?zne(r,Bne):r;return Ue.createElement(Ge.textarea,{ref:t,rows:o,...u,className:Fne("chakra-textarea",i),__css:h})});v6.displayName="Textarea";function lr(e,t={}){let r=!1;function i(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...S){i();for(const x of S)t[x]=m(x);return lr(e,t)}function c(...S){for(const x of S)x in t||(t[x]=m(x));return lr(e,t)}function u(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.selector]))}function h(){return Object.fromEntries(Object.entries(t).map(([x,C])=>[x,C.className]))}function m(S){const _=`chakra-${(["container","root"].includes(S??"")?[e]:[e,S]).filter(Boolean).join("__")}`;return{className:_,selector:`.${_}`,toString:()=>S}}return{parts:o,toPart:m,extend:c,selectors:u,classnames:h,get keys(){return Object.keys(t)},__type:{}}}var Une=lr("accordion").parts("root","container","button","panel").extend("icon"),jne=lr("alert").parts("title","description","container").extend("icon","spinner"),$ne=lr("avatar").parts("label","badge","container").extend("excessLabel","group"),Vne=lr("breadcrumb").parts("link","item","container").extend("separator");lr("button").parts();var Hne=lr("checkbox").parts("control","icon","container").extend("label");lr("progress").parts("track","filledTrack").extend("label");var Wne=lr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Gne=lr("editable").parts("preview","input","textarea"),Yne=lr("form").parts("container","requiredIndicator","helperText"),qne=lr("formError").parts("text","icon"),Kne=lr("input").parts("addon","field","element"),Xne=lr("list").parts("container","item","icon"),Zne=lr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Qne=lr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Jne=lr("numberinput").parts("root","field","stepperGroup","stepper");lr("pininput").parts("field");var ere=lr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tre=lr("progress").parts("label","filledTrack","track"),nre=lr("radio").parts("container","control","label"),rre=lr("select").parts("field","icon"),are=lr("slider").parts("container","track","thumb","filledTrack","mark"),ire=lr("stat").parts("container","label","helpText","number","icon"),ore=lr("switch").parts("container","track","thumb"),sre=lr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),lre=lr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),ure=lr("tag").parts("container","label","closeButton");function ui(e,t){cre(e)&&(e="100%");var r=fre(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 fx(e){return Math.min(1,Math.max(0,e))}function cre(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fre(e){return typeof e=="string"&&e.indexOf("%")!==-1}function g6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dx(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Mp(e){return e.length===1?"0"+e:String(e)}function dre(e,t,r){return{r:ui(e,255)*255,g:ui(t,255)*255,b:ui(r,255)*255}}function $5(e,t,r){e=ui(e,255),t=ui(t,255),r=ui(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),c=0,u=0,h=(i+o)/2;if(i===o)u=0,c=0;else{var m=i-o;switch(u=h>.5?m/(2-i-o):m/(i+o),i){case e:c=(t-r)/m+(t<r?6:0);break;case t:c=(r-e)/m+2;break;case r:c=(e-t)/m+4;break}c/=6}return{h:c,s:u,l:h}}function hA(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function pre(e,t,r){var i,o,c;if(e=ui(e,360),t=ui(t,100),r=ui(r,100),t===0)o=r,c=r,i=r;else{var u=r<.5?r*(1+t):r+t-r*t,h=2*r-u;i=hA(h,u,e+1/3),o=hA(h,u,e),c=hA(h,u,e-1/3)}return{r:i*255,g:o*255,b:c*255}}function V5(e,t,r){e=ui(e,255),t=ui(t,255),r=ui(r,255);var i=Math.max(e,t,r),o=Math.min(e,t,r),c=0,u=i,h=i-o,m=i===0?0:h/i;if(i===o)c=0;else{switch(i){case e:c=(t-r)/h+(t<r?6:0);break;case t:c=(r-e)/h+2;break;case r:c=(e-t)/h+4;break}c/=6}return{h:c,s:m,v:u}}function hre(e,t,r){e=ui(e,360)*6,t=ui(t,100),r=ui(r,100);var i=Math.floor(e),o=e-i,c=r*(1-t),u=r*(1-o*t),h=r*(1-(1-o)*t),m=i%6,v=[r,u,c,c,h,r][m],S=[h,r,r,u,c,c][m],x=[c,c,h,r,r,u][m];return{r:v*255,g:S*255,b:x*255}}function H5(e,t,r,i){var o=[Mp(Math.round(e).toString(16)),Mp(Math.round(t).toString(16)),Mp(Math.round(r).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 mre(e,t,r,i,o){var c=[Mp(Math.round(e).toString(16)),Mp(Math.round(t).toString(16)),Mp(Math.round(r).toString(16)),Mp(vre(i))];return o&&c[0].startsWith(c[0].charAt(1))&&c[1].startsWith(c[1].charAt(1))&&c[2].startsWith(c[2].charAt(1))&&c[3].startsWith(c[3].charAt(1))?c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0):c.join("")}function vre(e){return Math.round(parseFloat(e)*255).toString(16)}function W5(e){return Wo(e)/255}function Wo(e){return parseInt(e,16)}function gre(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var MO={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 yre(e){var t={r:0,g:0,b:0},r=1,i=null,o=null,c=null,u=!1,h=!1;return typeof e=="string"&&(e=xre(e)),typeof e=="object"&&(oc(e.r)&&oc(e.g)&&oc(e.b)?(t=dre(e.r,e.g,e.b),u=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oc(e.h)&&oc(e.s)&&oc(e.v)?(i=dx(e.s),o=dx(e.v),t=hre(e.h,i,o),u=!0,h="hsv"):oc(e.h)&&oc(e.s)&&oc(e.l)&&(i=dx(e.s),c=dx(e.l),t=pre(e.h,i,c),u=!0,h="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=g6(r),{ok:u,format:e.format||h,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:r}}var bre="[-\\+]?\\d+%?",Sre="[-\\+]?\\d*\\.\\d+%?",Lf="(?:".concat(Sre,")|(?:").concat(bre,")"),mA="[\\s|\\(]+(".concat(Lf,")[,|\\s]+(").concat(Lf,")[,|\\s]+(").concat(Lf,")\\s*\\)?"),vA="[\\s|\\(]+(".concat(Lf,")[,|\\s]+(").concat(Lf,")[,|\\s]+(").concat(Lf,")[,|\\s]+(").concat(Lf,")\\s*\\)?"),Sl={CSS_UNIT:new RegExp(Lf),rgb:new RegExp("rgb"+mA),rgba:new RegExp("rgba"+vA),hsl:new RegExp("hsl"+mA),hsla:new RegExp("hsla"+vA),hsv:new RegExp("hsv"+mA),hsva:new RegExp("hsva"+vA),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 xre(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(MO[e])e=MO[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Sl.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Sl.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Sl.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Sl.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Sl.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Sl.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Sl.hex8.exec(e),r?{r:Wo(r[1]),g:Wo(r[2]),b:Wo(r[3]),a:W5(r[4]),format:t?"name":"hex8"}:(r=Sl.hex6.exec(e),r?{r:Wo(r[1]),g:Wo(r[2]),b:Wo(r[3]),format:t?"name":"hex"}:(r=Sl.hex4.exec(e),r?{r:Wo(r[1]+r[1]),g:Wo(r[2]+r[2]),b:Wo(r[3]+r[3]),a:W5(r[4]+r[4]),format:t?"name":"hex8"}:(r=Sl.hex3.exec(e),r?{r:Wo(r[1]+r[1]),g:Wo(r[2]+r[2]),b:Wo(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function oc(e){return Boolean(Sl.CSS_UNIT.exec(String(e)))}var Bb=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=gre(t)),this.originalInput=t;var o=yre(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=r.format)!==null&&i!==void 0?i:o.format,this.gradientType=r.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(),r,i,o,c=t.r/255,u=t.g/255,h=t.b/255;return c<=.03928?r=c/12.92:r=Math.pow((c+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),h<=.03928?o=h/12.92:o=Math.pow((h+.055)/1.055,2.4),.2126*r+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=g6(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=V5(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=V5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$5(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=$5(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),H5(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),mre(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),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ui(r,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(r){return Math.round(ui(r,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="#"+H5(this.r,this.g,this.b,!1),r=0,i=Object.entries(MO);r<i.length;r++){var o=i[r],c=o[0],u=o[1];if(t===u)return c}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var i=!1,o=this.a<1&&this.a>=0,c=!r&&o&&(t.startsWith("hex")||t==="name");return c?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 r=this.toHsl();return r.l+=t/100,r.l=fx(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=fx(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=fx(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=fx(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),o=new e(t).toRgb(),c=r/100,u={r:(o.r-i.r)*c+i.r,g:(o.g-i.g)*c+i.g,b:(o.b-i.b)*c+i.b,a:(o.a-i.a)*c+i.a};return new e(u)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),o=360/r,c=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,c.push(new e(i));return c},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 r=this.toHsv(),i=r.h,o=r.s,c=r.v,u=[],h=1/t;t--;)u.push(new e({h:i,s:o,v:c})),c=(c+h)%1;return u},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(r.r-i.r)*r.a,g:i.g+(r.g-i.g)*r.a,b:i.b+(r.b-i.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,o=[this],c=360/t,u=1;u<t;u++)o.push(new e({h:(i+u*c)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function y6(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(y6(e));return e.count=t,r}var i=wre(e.hue,e.seed),o=Cre(i,e),c=_re(i,o,e),u={h:i,s:o,v:c};return e.alpha!==void 0&&(u.a=e.alpha),new Bb(u)}function wre(e,t){var r=Tre(e),i=yw(r,t);return i<0&&(i=360+i),i}function Cre(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return yw([0,100],t.seed);var r=b6(e).saturationRange,i=r[0],o=r[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=o-10;break;case"light":o=55;break}return yw([i,o],t.seed)}function _re(e,t,r){var i=Ere(e,t),o=100;switch(r.luminosity){case"dark":o=i+20;break;case"light":i=(o+i)/2;break;case"random":i=0,o=100;break}return yw([i,o],r.seed)}function Ere(e,t){for(var r=b6(e).lowerBounds,i=0;i<r.length-1;i++){var o=r[i][0],c=r[i][1],u=r[i+1][0],h=r[i+1][1];if(t>=o&&t<=u){var m=(h-c)/(u-o),v=c-m*o;return m*t+v}}return 0}function Tre(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=x6.find(function(u){return u.name===e});if(r){var i=S6(r);if(i.hueRange)return i.hueRange}var o=new Bb(e);if(o.isValid){var c=o.toHsv().h;return[c,c]}}return[0,360]}function b6(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=x6;t<r.length;t++){var i=r[t],o=S6(i);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function yw(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(i+o*(r-i))}function S6(e){var t=e.lowerBounds[0][0],r=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,r],brightnessRange:[i,o]}}var x6=[{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 Nre(e,t,r,i,o){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:o;return e===o?r:e}var Rre=e=>Object.keys(e).length===0,Aa=(e,t,r)=>{const i=Nre(e,`colors.${t}`,t),{isValid:o}=new Bb(i);return o?i:r},Are=e=>t=>{const r=Aa(t,e);return new Bb(r).isDark()?"dark":"light"},Ore=e=>t=>Are(e)(t)==="dark",ev=(e,t)=>r=>{const i=Aa(r,e);return new Bb(i).setAlpha(t).toRgbString()};function G5(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 kre(e){const t=y6().toHexString();return!e||Rre(e)?t:e.string&&e.colors?Pre(e.string,e.colors):e.string&&!e.colors?Dre(e.string):e.colors&&!e.string?Mre(e.colors):t}function Dre(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 r="#";for(let i=0;i<3;i+=1)r+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return r}function Pre(e,t){let r=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)r=e.charCodeAt(i)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function Mre(e){return e[Math.floor(Math.random()*e.length)]}function ze(e,t){return r=>r.colorMode==="dark"?t:e}function D2(e){const{orientation:t,vertical:r,horizontal:i}=e;return t?t==="vertical"?r:i:{}}function Ire(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function w6(e){return Ire(e)&&e.reference?e.reference:String(e)}var dC=(e,...t)=>t.map(w6).join(` ${e} `).replace(/calc/g,""),Y5=(...e)=>`calc(${dC("+",...e)})`,q5=(...e)=>`calc(${dC("-",...e)})`,IO=(...e)=>`calc(${dC("*",...e)})`,K5=(...e)=>`calc(${dC("/",...e)})`,X5=e=>{const t=w6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:IO(t,-1)},fc=Object.assign(e=>({add:(...t)=>fc(Y5(e,...t)),subtract:(...t)=>fc(q5(e,...t)),multiply:(...t)=>fc(IO(e,...t)),divide:(...t)=>fc(K5(e,...t)),negate:()=>fc(X5(e)),toString:()=>e.toString()}),{add:Y5,subtract:q5,multiply:IO,divide:K5,negate:X5});function Lre(e){return!Number.isInteger(parseFloat(e.toString()))}function Fre(e,t="-"){return e.replace(/\s+/g,t)}function C6(e){const t=Fre(e.toString());return t.includes("\\.")?e:Lre(e)?t.replace(".","\\."):e}function zre(e,t=""){return[t,C6(e)].filter(Boolean).join("-")}function Bre(e,t){return`var(${C6(e)}${t?`, ${t}`:""})`}function Ure(e,t=""){return`--${zre(e,t)}`}function xo(e,t){const r=Ure(e,t?.prefix);return{variable:r,reference:Bre(r,jre(t?.fallback))}}function jre(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:$re,defineMultiStyleConfig:Vre}=kr(Une.keys),Hre={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Wre={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Gre={pt:"2",px:"4",pb:"5"},Yre={fontSize:"1.25em"},qre=$re({container:Hre,button:Wre,panel:Gre,icon:Yre}),Kre=Vre({baseStyle:qre}),{definePartsStyle:Ub,defineMultiStyleConfig:Xre}=kr(jne.keys),vc=Xf("alert-fg"),jb=Xf("alert-bg"),Zre=Ub({container:{bg:jb.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:vc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:vc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function P2(e){const{theme:t,colorScheme:r}=e,i=Aa(t,`${r}.100`,r),o=ev(`${r}.200`,.16)(t);return ze(i,o)(e)}var Qre=Ub(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[jb.variable]:P2(e),[vc.variable]:`colors.${r}`}}}),Jre=Ub(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[jb.variable]:P2(e),[vc.variable]:`colors.${r}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:vc.reference}}}),eae=Ub(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e);return{container:{[jb.variable]:P2(e),[vc.variable]:`colors.${r}`,pt:"2",borderTopWidth:"4px",borderTopColor:vc.reference}}}),tae=Ub(e=>{const{colorScheme:t}=e,r=ze(`${t}.500`,`${t}.200`)(e),i=ze("white","gray.900")(e);return{container:{[jb.variable]:`colors.${r}`,[vc.variable]:`colors.${i}`,color:vc.reference}}}),nae={subtle:Qre,"left-accent":Jre,"top-accent":eae,solid:tae},rae=Xre({baseStyle:Zre,variants:nae,defaultProps:{variant:"subtle",colorScheme:"blue"}}),_6={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"},aae={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"},iae={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},oae={..._6,...aae,container:iae},E6=oae,sae=e=>typeof e=="function";function Zr(e,...t){return sae(e)?e(...t):e}var{definePartsStyle:T6,defineMultiStyleConfig:lae}=kr($ne.keys),uae=e=>({borderRadius:"full",border:"0.2em solid",borderColor:ze("white","gray.800")(e)}),cae=e=>({bg:ze("gray.200","whiteAlpha.400")(e)}),fae=e=>{const{name:t,theme:r}=e,i=t?kre({string:t}):"gray.400",o=Ore(i)(r);let c="white";o||(c="gray.800");const u=ze("white","gray.800")(e);return{bg:i,color:c,borderColor:u,verticalAlign:"top"}},dae=T6(e=>({badge:Zr(uae,e),excessLabel:Zr(cae,e),container:Zr(fae,e)}));function wf(e){const t=e!=="100%"?E6[e]:void 0;return T6({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 pae={"2xs":wf(4),xs:wf(6),sm:wf(8),md:wf(12),lg:wf(16),xl:wf(24),"2xl":wf(32),full:wf("100%")},hae=lae({baseStyle:dae,sizes:pae,defaultProps:{size:"md"}}),mae={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},vae=e=>{const{colorScheme:t,theme:r}=e,i=ev(`${t}.500`,.6)(r);return{bg:ze(`${t}.500`,i)(e),color:ze("white","whiteAlpha.800")(e)}},gae=e=>{const{colorScheme:t,theme:r}=e,i=ev(`${t}.200`,.16)(r);return{bg:ze(`${t}.100`,i)(e),color:ze(`${t}.800`,`${t}.200`)(e)}},yae=e=>{const{colorScheme:t,theme:r}=e,i=ev(`${t}.200`,.8)(r),o=Aa(r,`${t}.500`),c=ze(o,i)(e);return{color:c,boxShadow:`inset 0 0 0px 1px ${c}`}},bae={solid:vae,subtle:gae,outline:yae},qy={baseStyle:mae,variants:bae,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Sae,definePartsStyle:xae}=kr(Vne.keys),wae={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Cae=xae({link:wae}),_ae=Sae({baseStyle:Cae}),Eae={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"}}},N6=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:ze("inherit","whiteAlpha.900")(e),_hover:{bg:ze("gray.100","whiteAlpha.200")(e)},_active:{bg:ze("gray.200","whiteAlpha.300")(e)}};const i=ev(`${t}.200`,.12)(r),o=ev(`${t}.200`,.24)(r);return{color:ze(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ze(`${t}.50`,i)(e)},_active:{bg:ze(`${t}.100`,o)(e)}}},Tae=e=>{const{colorScheme:t}=e,r=ze("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...Zr(N6,e)}},Nae={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Rae=e=>{const{colorScheme:t}=e;if(t==="gray"){const h=ze("gray.100","whiteAlpha.200")(e);return{bg:h,_hover:{bg:ze("gray.200","whiteAlpha.300")(e),_disabled:{bg:h}},_active:{bg:ze("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:i="white",hoverBg:o=`${t}.600`,activeBg:c=`${t}.700`}=Nae[t]??{},u=ze(r,`${t}.200`)(e);return{bg:u,color:ze(i,"gray.800")(e),_hover:{bg:ze(o,`${t}.300`)(e),_disabled:{bg:u}},_active:{bg:ze(c,`${t}.400`)(e)}}},Aae=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ze(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ze(`${t}.700`,`${t}.500`)(e)}}},Oae={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},kae={ghost:N6,outline:Tae,solid:Rae,link:Aae,unstyled:Oae},Dae={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"}},Pae={baseStyle:Eae,variants:kae,sizes:Dae,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ix,defineMultiStyleConfig:Mae}=kr(Hne.keys),Ky=Xf("checkbox-size"),Iae=e=>{const{colorScheme:t}=e;return{w:Ky.reference,h:Ky.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e),_hover:{bg:ze(`${t}.600`,`${t}.300`)(e),borderColor:ze(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ze("gray.200","transparent")(e),bg:ze("gray.200","whiteAlpha.300")(e),color:ze("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ze(`${t}.500`,`${t}.200`)(e),borderColor:ze(`${t}.500`,`${t}.200`)(e),color:ze("white","gray.900")(e)},_disabled:{bg:ze("gray.100","whiteAlpha.100")(e),borderColor:ze("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ze("red.500","red.300")(e)}}},Lae={_disabled:{cursor:"not-allowed"}},Fae={userSelect:"none",_disabled:{opacity:.4}},zae={transitionProperty:"transform",transitionDuration:"normal"},Bae=Ix(e=>({icon:zae,container:Lae,control:Zr(Iae,e),label:Fae})),Uae={sm:Ix({control:{[Ky.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Ix({control:{[Ky.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Ix({control:{[Ky.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bw=Mae({baseStyle:Bae,sizes:Uae,defaultProps:{size:"md",colorScheme:"blue"}}),Xy=xo("close-button-size"),jae=e=>{const t=ze("blackAlpha.100","whiteAlpha.100")(e),r=ze("blackAlpha.200","whiteAlpha.200")(e);return{w:[Xy.reference],h:[Xy.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:r},_focusVisible:{boxShadow:"outline"}}},$ae={lg:{[Xy.variable]:"sizes.10",fontSize:"md"},md:{[Xy.variable]:"sizes.8",fontSize:"xs"},sm:{[Xy.variable]:"sizes.6",fontSize:"2xs"}},Vae={baseStyle:jae,sizes:$ae,defaultProps:{size:"md"}},{variants:Hae,defaultProps:Wae}=qy,Gae={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Yae={baseStyle:Gae,variants:Hae,defaultProps:Wae},qae={w:"100%",mx:"auto",maxW:"prose",px:"4"},Kae={baseStyle:qae},Xae={opacity:.6,borderColor:"inherit"},Zae={borderStyle:"solid"},Qae={borderStyle:"dashed"},Jae={solid:Zae,dashed:Qae},eie={baseStyle:Xae,variants:Jae,defaultProps:{variant:"solid"}},{definePartsStyle:LO,defineMultiStyleConfig:tie}=kr(Wne.keys);function Am(e){return LO(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var nie={bg:"blackAlpha.600",zIndex:"overlay"},rie={display:"flex",zIndex:"modal",justifyContent:"center"},aie=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:ze("white","gray.700")(e),color:"inherit",boxShadow:ze("lg","dark-lg")(e)}},iie={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},oie={position:"absolute",top:"2",insetEnd:"3"},sie={px:"6",py:"2",flex:"1",overflow:"auto"},lie={px:"6",py:"4"},uie=LO(e=>({overlay:nie,dialogContainer:rie,dialog:Zr(aie,e),header:iie,closeButton:oie,body:sie,footer:lie})),cie={xs:Am("xs"),sm:Am("md"),md:Am("lg"),lg:Am("2xl"),xl:Am("4xl"),full:Am("full")},fie=tie({baseStyle:uie,sizes:cie,defaultProps:{size:"xs"}}),{definePartsStyle:die,defineMultiStyleConfig:pie}=kr(Gne.keys),hie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},mie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},vie={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},gie=die({preview:hie,input:mie,textarea:vie}),yie=pie({baseStyle:gie}),{definePartsStyle:bie,defineMultiStyleConfig:Sie}=kr(Yne.keys),xie=e=>({marginStart:"1",color:ze("red.500","red.300")(e)}),wie=e=>({mt:"2",color:ze("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Cie=bie(e=>({container:{width:"100%",position:"relative"},requiredIndicator:Zr(xie,e),helperText:Zr(wie,e)})),_ie=Sie({baseStyle:Cie}),{definePartsStyle:Eie,defineMultiStyleConfig:Tie}=kr(qne.keys),Nie=e=>({color:ze("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Rie=e=>({marginEnd:"0.5em",color:ze("red.500","red.300")(e)}),Aie=Eie(e=>({text:Zr(Nie,e),icon:Zr(Rie,e)})),Oie=Tie({baseStyle:Aie}),kie={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Die={baseStyle:kie},Pie={fontFamily:"heading",fontWeight:"bold"},Mie={"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}},Iie={baseStyle:Pie,sizes:Mie,defaultProps:{size:"xl"}},{definePartsStyle:dc,defineMultiStyleConfig:Lie}=kr(Kne.keys),Fie=dc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Cf={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"}},zie={lg:dc({field:Cf.lg,addon:Cf.lg}),md:dc({field:Cf.md,addon:Cf.md}),sm:dc({field:Cf.sm,addon:Cf.sm}),xs:dc({field:Cf.xs,addon:Cf.xs})};function M2(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||ze("blue.500","blue.300")(e),errorBorderColor:r||ze("red.500","red.300")(e)}}var Bie=dc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ze("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i),boxShadow:`0 0 0 1px ${Aa(t,i)}`},_focusVisible:{zIndex:1,borderColor:Aa(t,r),boxShadow:`0 0 0 1px ${Aa(t,r)}`}},addon:{border:"1px solid",borderColor:ze("inherit","whiteAlpha.50")(e),bg:ze("gray.100","whiteAlpha.300")(e)}}}),Uie=dc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e),_hover:{bg:ze("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i)},_focusVisible:{bg:"transparent",borderColor:Aa(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:ze("gray.100","whiteAlpha.50")(e)}}}),jie=dc(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:i}=M2(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Aa(t,i),boxShadow:`0px 1px 0px 0px ${Aa(t,i)}`},_focusVisible:{borderColor:Aa(t,r),boxShadow:`0px 1px 0px 0px ${Aa(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),$ie=dc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Vie={outline:Bie,filled:Uie,flushed:jie,unstyled:$ie},Jn=Lie({baseStyle:Fie,sizes:zie,variants:Vie,defaultProps:{size:"md",variant:"outline"}}),Hie=e=>({bg:ze("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Wie={baseStyle:Hie},Gie={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Yie={baseStyle:Gie},{defineMultiStyleConfig:qie,definePartsStyle:Kie}=kr(Xne.keys),Xie={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Zie=Kie({icon:Xie}),Qie=qie({baseStyle:Zie}),{defineMultiStyleConfig:Jie,definePartsStyle:eoe}=kr(Zne.keys),toe=e=>({bg:ze("#fff","gray.700")(e),boxShadow:ze("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),noe=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:ze("gray.100","whiteAlpha.100")(e)},_active:{bg:ze("gray.200","whiteAlpha.200")(e)},_expanded:{bg:ze("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),roe={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},aoe={opacity:.6},ioe={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},ooe={transitionProperty:"common",transitionDuration:"normal"},soe=eoe(e=>({button:ooe,list:Zr(toe,e),item:Zr(noe,e),groupTitle:roe,command:aoe,divider:ioe})),loe=Jie({baseStyle:soe}),{defineMultiStyleConfig:uoe,definePartsStyle:FO}=kr(Qne.keys),coe={bg:"blackAlpha.600",zIndex:"modal"},foe=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto"}},doe=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:ze("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:ze("lg","dark-lg")(e)}},poe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hoe={position:"absolute",top:"2",insetEnd:"3"},moe=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},voe={px:"6",py:"4"},goe=FO(e=>({overlay:coe,dialogContainer:Zr(foe,e),dialog:Zr(doe,e),header:poe,closeButton:hoe,body:Zr(moe,e),footer:voe}));function yl(e){return FO(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var yoe={xs:yl("xs"),sm:yl("sm"),md:yl("md"),lg:yl("lg"),xl:yl("xl"),"2xl":yl("2xl"),"3xl":yl("3xl"),"4xl":yl("4xl"),"5xl":yl("5xl"),"6xl":yl("6xl"),full:yl("full")},boe=uoe({baseStyle:goe,sizes:yoe,defaultProps:{size:"md"}}),Soe={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"}},R6=Soe,{defineMultiStyleConfig:xoe,definePartsStyle:A6}=kr(Jne.keys),I2=xo("number-input-stepper-width"),O6=xo("number-input-input-padding"),woe=fc(I2).add("0.5rem").toString(),Coe={[I2.variable]:"sizes.6",[O6.variable]:woe},_oe=e=>{var t;return((t=Zr(Jn.baseStyle,e))==null?void 0:t.field)??{}},Eoe={width:[I2.reference]},Toe=e=>({borderStart:"1px solid",borderStartColor:ze("inherit","whiteAlpha.300")(e),color:ze("inherit","whiteAlpha.800")(e),_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Noe=A6(e=>({root:Coe,field:_oe,stepperGroup:Eoe,stepper:Zr(Toe,e)??{}}));function px(e){var t,r;const i=(t=Jn.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},c=((r=i.field)==null?void 0:r.fontSize)??"md",u=R6.fontSizes[c];return A6({field:{...i.field,paddingInlineEnd:O6.reference,verticalAlign:"top"},stepper:{fontSize:fc(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Roe={xs:px("xs"),sm:px("sm"),md:px("md"),lg:px("lg")},Aoe=xoe({baseStyle:Noe,sizes:Roe,variants:Jn.variants,defaultProps:Jn.defaultProps}),Z5,Ooe={...(Z5=Jn.baseStyle)==null?void 0:Z5.field,textAlign:"center"},koe={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"}},Q5,Doe={outline:e=>{var t,r;return((r=Zr((t=Jn.variants)==null?void 0:t.outline,e))==null?void 0:r.field)??{}},flushed:e=>{var t,r;return((r=Zr((t=Jn.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)??{}},filled:e=>{var t,r;return((r=Zr((t=Jn.variants)==null?void 0:t.filled,e))==null?void 0:r.field)??{}},unstyled:((Q5=Jn.variants)==null?void 0:Q5.unstyled.field)??{}},Poe={baseStyle:Ooe,sizes:koe,variants:Doe,defaultProps:Jn.defaultProps},{defineMultiStyleConfig:Moe,definePartsStyle:Ioe}=kr(ere.keys),gA=xo("popper-bg"),Loe=xo("popper-arrow-bg"),Foe=xo("popper-arrow-shadow-color"),zoe={zIndex:10},Boe=e=>{const t=ze("white","gray.700")(e),r=ze("gray.200","whiteAlpha.300")(e);return{[gA.variable]:`colors.${t}`,bg:gA.reference,[Loe.variable]:gA.reference,[Foe.variable]:`colors.${r}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Uoe={px:3,py:2,borderBottomWidth:"1px"},joe={px:3,py:2},$oe={px:3,py:2,borderTopWidth:"1px"},Voe={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Hoe=Ioe(e=>({popper:zoe,content:Boe(e),header:Uoe,body:joe,footer:$oe,closeButton:Voe})),Woe=Moe({baseStyle:Hoe}),{defineMultiStyleConfig:Goe,definePartsStyle:Iy}=kr(tre.keys),Yoe=e=>{const{colorScheme:t,theme:r,isIndeterminate:i,hasStripe:o}=e,c=ze(G5(),G5("1rem","rgba(0,0,0,0.1)"))(e),u=ze(`${t}.500`,`${t}.200`)(e),h=`linear-gradient(
to right,
transparent 0%,
${Aa(r,u)} 50%,
transparent 100%
)`;return{...!i&&o&&c,...i?{bgImage:h}:{bgColor:u}}},qoe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Koe=e=>({bg:ze("gray.100","whiteAlpha.300")(e)}),Xoe=e=>({transitionProperty:"common",transitionDuration:"slow",...Yoe(e)}),Zoe=Iy(e=>({label:qoe,filledTrack:Xoe(e),track:Koe(e)})),Qoe={xs:Iy({track:{h:"1"}}),sm:Iy({track:{h:"2"}}),md:Iy({track:{h:"3"}}),lg:Iy({track:{h:"4"}})},Joe=Goe({sizes:Qoe,baseStyle:Zoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ese,definePartsStyle:Lx}=kr(nre.keys),tse=e=>{var t;const r=(t=Zr(bw.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},nse=Lx(e=>{var t,r,i,o;return{label:(r=(t=bw).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(i=bw).baseStyle)==null?void 0:o.call(i,e).container,control:tse(e)}}),rse={md:Lx({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Lx({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Lx({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ase=ese({baseStyle:nse,sizes:rse,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ise,definePartsStyle:ose}=kr(rre.keys),sse=e=>{var t;return{...(t=Jn.baseStyle)==null?void 0:t.field,bg:ze("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:ze("white","gray.700")(e)}}},lse={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},use=ose(e=>({field:sse(e),icon:lse})),hx={paddingInlineEnd:"8"},J5,eF,tF,nF,rF,aF,iF,oF,cse={lg:{...(J5=Jn.sizes)==null?void 0:J5.lg,field:{...(eF=Jn.sizes)==null?void 0:eF.lg.field,...hx}},md:{...(tF=Jn.sizes)==null?void 0:tF.md,field:{...(nF=Jn.sizes)==null?void 0:nF.md.field,...hx}},sm:{...(rF=Jn.sizes)==null?void 0:rF.sm,field:{...(aF=Jn.sizes)==null?void 0:aF.sm.field,...hx}},xs:{...(iF=Jn.sizes)==null?void 0:iF.xs,field:{...(oF=Jn.sizes)==null?void 0:oF.sm.field,...hx},icon:{insetEnd:"1"}}},fse=ise({baseStyle:use,sizes:cse,variants:Jn.variants,defaultProps:Jn.defaultProps}),dse=Xf("skeleton-start-color"),pse=Xf("skeleton-end-color"),hse=e=>{const t=ze("gray.100","gray.800")(e),r=ze("gray.400","gray.600")(e),{startColor:i=t,endColor:o=r,theme:c}=e,u=Aa(c,i),h=Aa(c,o);return{[dse.variable]:u,[pse.variable]:h,opacity:.7,borderRadius:"2px",borderColor:u,background:h}},mse={baseStyle:hse},vse=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:ze("white","gray.700")(e)}}),gse={baseStyle:vse},{defineMultiStyleConfig:yse,definePartsStyle:pC}=kr(are.keys),bb=Xf("slider-thumb-size"),Sb=Xf("slider-track-size"),bse=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...D2({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Sse=e=>({...D2({orientation:e.orientation,horizontal:{h:Sb.reference},vertical:{w:Sb.reference}}),overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}),xse=e=>{const{orientation:t}=e;return{...D2({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:bb.reference,h:bb.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"}}},wse=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:ze(`${t}.500`,`${t}.200`)(e)}},Cse=pC(e=>({container:bse(e),track:Sse(e),thumb:xse(e),filledTrack:wse(e)})),_se=pC({container:{[bb.variable]:"sizes.4",[Sb.variable]:"sizes.1"}}),Ese=pC({container:{[bb.variable]:"sizes.3.5",[Sb.variable]:"sizes.1"}}),Tse=pC({container:{[bb.variable]:"sizes.2.5",[Sb.variable]:"sizes.0.5"}}),Nse={lg:_se,md:Ese,sm:Tse},Rse=yse({baseStyle:Cse,sizes:Nse,defaultProps:{size:"md",colorScheme:"blue"}}),Op=xo("spinner-size"),Ase={width:[Op.reference],height:[Op.reference]},Ose={xs:{[Op.variable]:"sizes.3"},sm:{[Op.variable]:"sizes.4"},md:{[Op.variable]:"sizes.6"},lg:{[Op.variable]:"sizes.8"},xl:{[Op.variable]:"sizes.12"}},kse={baseStyle:Ase,sizes:Ose,defaultProps:{size:"md"}},{defineMultiStyleConfig:Dse,definePartsStyle:k6}=kr(ire.keys),Pse={fontWeight:"medium"},Mse={opacity:.8,marginBottom:"2"},Ise={verticalAlign:"baseline",fontWeight:"semibold"},Lse={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Fse=k6({container:{},label:Pse,helpText:Mse,number:Ise,icon:Lse}),zse={md:k6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Bse=Dse({baseStyle:Fse,sizes:zse,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Use,definePartsStyle:Fx}=kr(ore.keys),Zy=xo("switch-track-width"),Bp=xo("switch-track-height"),yA=xo("switch-track-diff"),jse=fc.subtract(Zy,Bp),zO=xo("switch-thumb-x"),$se=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Zy.reference],height:[Bp.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(`${t}.500`,`${t}.200`)(e)}}},Vse={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Bp.reference],height:[Bp.reference],_checked:{transform:`translateX(${zO.reference})`}},Hse=Fx(e=>({container:{[yA.variable]:jse,[zO.variable]:yA.reference,_rtl:{[zO.variable]:fc(yA).negate().toString()}},track:$se(e),thumb:Vse})),Wse={sm:Fx({container:{[Zy.variable]:"1.375rem",[Bp.variable]:"sizes.3"}}),md:Fx({container:{[Zy.variable]:"1.875rem",[Bp.variable]:"sizes.4"}}),lg:Fx({container:{[Zy.variable]:"2.875rem",[Bp.variable]:"sizes.6"}})},Gse=Use({baseStyle:Hse,sizes:Wse,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Yse,definePartsStyle:Vm}=kr(sre.keys),qse=Vm({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"}}),Sw={"&[data-is-numeric=true]":{textAlign:"end"}},Kse=Vm(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...Sw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...Sw},caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Xse=Vm(e=>{const{colorScheme:t}=e;return{th:{color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...Sw},td:{borderBottom:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e),...Sw},caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(`${t}.100`,`${t}.700`)(e)},td:{background:ze(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Zse={simple:Kse,striped:Xse,unstyled:{}},Qse={sm:Vm({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:Vm({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Vm({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Jse=Yse({baseStyle:qse,variants:Zse,sizes:Qse,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:ele,definePartsStyle:du}=kr(lre.keys),tle=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},nle=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}}},rle=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},ale={p:4},ile=du(e=>({root:tle(e),tab:nle(e),tablist:rle(e),tabpanel:ale})),ole={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}})},sle=du(e=>{const{colorScheme:t,orientation:r}=e,i=r==="vertical",o=r==="vertical"?"borderStart":"borderBottom",c=i?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[c]:"-2px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:ze("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),lle=du(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),ule=du(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),cle=du(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Aa(r,`${t}.700`),bg:Aa(r,`${t}.100`)}}}}),fle=du(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(`${t}.600`,`${t}.300`)(e)}}}}),dle=du({}),ple={line:sle,enclosed:lle,"enclosed-colored":ule,"soft-rounded":cle,"solid-rounded":fle,unstyled:dle},hle=ele({baseStyle:ile,sizes:ole,variants:ple,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:mle,definePartsStyle:Up}=kr(ure.keys),vle={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},gle={lineHeight:1.2,overflow:"visible"},yle={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}},ble=Up({container:vle,label:gle,closeButton:yle}),Sle={sm:Up({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Up({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Up({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},xle={subtle:Up(e=>{var t;return{container:(t=qy.variants)==null?void 0:t.subtle(e)}}),solid:Up(e=>{var t;return{container:(t=qy.variants)==null?void 0:t.solid(e)}}),outline:Up(e=>{var t;return{container:(t=qy.variants)==null?void 0:t.outline(e)}})},wle=mle({variants:xle,baseStyle:ble,sizes:Sle,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),sF,Cle={...(sF=Jn.baseStyle)==null?void 0:sF.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},lF,_le={outline:e=>{var t;return((t=Jn.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Jn.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Jn.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((lF=Jn.variants)==null?void 0:lF.unstyled.field)??{}},uF,cF,fF,dF,Ele={xs:((uF=Jn.sizes)==null?void 0:uF.xs.field)??{},sm:((cF=Jn.sizes)==null?void 0:cF.sm.field)??{},md:((fF=Jn.sizes)==null?void 0:fF.md.field)??{},lg:((dF=Jn.sizes)==null?void 0:dF.lg.field)??{}},Tle={baseStyle:Cle,sizes:Ele,variants:_le,defaultProps:{size:"md",variant:"outline"}},bA=xo("tooltip-bg"),pF=xo("tooltip-fg"),Nle=xo("popper-arrow-bg"),Rle=e=>{const t=ze("gray.700","gray.300")(e),r=ze("whiteAlpha.900","gray.900")(e);return{bg:bA.reference,color:pF.reference,[bA.variable]:`colors.${t}`,[pF.variable]:`colors.${r}`,[Nle.variable]:bA.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Ale={baseStyle:Rle},Ole={Accordion:Kre,Alert:rae,Avatar:hae,Badge:qy,Breadcrumb:_ae,Button:Pae,Checkbox:bw,CloseButton:Vae,Code:Yae,Container:Kae,Divider:eie,Drawer:fie,Editable:yie,Form:_ie,FormError:Oie,FormLabel:Die,Heading:Iie,Input:Jn,Kbd:Wie,Link:Yie,List:Qie,Menu:loe,Modal:boe,NumberInput:Aoe,PinInput:Poe,Popover:Woe,Progress:Joe,Radio:ase,Select:fse,Skeleton:mse,SkipLink:gse,Slider:Rse,Spinner:kse,Stat:Bse,Switch:Gse,Table:Jse,Tabs:hle,Tag:wle,Textarea:Tle,Tooltip:Ale},kle={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Dle=kle,Ple={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Mle=Ple,Ile={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"}},Lle=Ile,Fle={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},zle=Fle,Ble={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"},Ule=Ble,jle={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"},$le={"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)"},Vle={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Hle={property:jle,easing:$le,duration:Vle},Wle=Hle,Gle={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},Yle=Gle,qle={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Kle=qle,Xle={breakpoints:Mle,zIndices:Yle,radii:zle,blur:Kle,colors:Lle,...R6,sizes:E6,shadows:Ule,space:_6,borders:Dle,transition:Wle},Zle={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"}}},Qle={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 Jle(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var eue=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function tue(e){return Jle(e)?eue.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var nue="ltr",rue={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},D6={semanticTokens:Zle,direction:nue,...Xle,components:Ole,styles:Qle,config:rue};function aue(e,t){const r=ki(e);D.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{r()},t),()=>{i&&window.clearTimeout(i)}},[t,r])}var pc="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function BO(e,...t){return iue(e)?e(...t):e}var iue=e=>typeof e=="function";function oue(e,t){const r=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"}}[r];return o?.[t]??r}var sue=(e,t)=>e.find(r=>r.id===t);function hF(e,t){const r=P6(e,t),i=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:i}}function P6(e,t){for(const[r,i]of Object.entries(e))if(sue(i,t))return r}function lue(e){const t=e.includes("right"),r=e.includes("left");let i="center";return t&&(i="flex-end"),r&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function uue(e){const r=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,c=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:r,top:i,bottom:o,right:c,left:u}}var cue={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},su=fue(cue);function fue(e){let t=e;const r=new Set,i=o=>{t=o(t),r.forEach(c=>c())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{i(()=>e),r.delete(o)}),removeToast:(o,c)=>{i(u=>({...u,[c]:u[c].filter(h=>h.id!=o)}))},notify:(o,c)=>{const u=due(o,c),{position:h,id:m}=u;return i(v=>{const x=h.includes("top")?[u,...v[h]??[]]:[...v[h]??[],u];return{...v,[h]:x}}),m},update:(o,c)=>{!o||i(u=>{const h={...u},{position:m,index:v}=hF(h,o);return m&&v!==-1&&(h[m][v]={...h[m][v],...c,message:M6(c)}),h})},closeAll:({positions:o}={})=>{i(c=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((m,v)=>(m[v]=c[v].map(S=>({...S,requestClose:!0})),m),{...c}))},close:o=>{i(c=>{const u=P6(c,o);return u?{...c,[u]:c[u].map(h=>h.id==o?{...h,requestClose:!0}:h)}:c})},isActive:o=>Boolean(hF(su.getState(),o).position)}}var mF=0;function due(e,t={}){mF+=1;const r=t.id??mF,i=t.position??"bottom";return{id:r,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>su.removeToast(String(r),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var pue=e=>{const{status:t,variant:r="solid",id:i,title:o,isClosable:c,onClose:u,description:h,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Ue.createElement(Rz,{addRole:!1,status:t,variant:r,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},k(Oz,{children:m},void 0,!1,{fileName:pc,lineNumber:237,columnNumber:22},globalThis),Ue.createElement(Ge.div,{flex:"1",maxWidth:"100%"},o&&k(kz,{id:v?.title,children:o},void 0,!1,{fileName:pc,lineNumber:240,columnNumber:31},globalThis),h&&k(Az,{id:v?.description,display:"block",children:h},void 0,!1,{fileName:pc,lineNumber:242,columnNumber:45},globalThis)),c&&k(i2,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:pc,lineNumber:245,columnNumber:51},globalThis))};function M6(e={}){const{render:t,toastComponent:r=pue}=e;return o=>typeof t=="function"?t(o):k(r,{...o,...e},void 0,!1,{fileName:pc,lineNumber:259,columnNumber:28},this)}function hue(e,t){const r=o=>({...t,...o,position:oue(o?.position??t?.position,e)}),i=o=>{const c=r(o),u=M6(c);return su.notify(u,c)};return i.update=(o,c)=>{su.update(o,r(c))},i.promise=(o,c)=>{const u=i({...c.loading,status:"loading",duration:null});o.then(h=>i.update(u,{status:"success",duration:5e3,...BO(c.success,h)})).catch(h=>i.update(u,{status:"error",duration:5e3,...BO(c.error,h)}))},i.closeAll=su.closeAll,i.close=su.close,i.isActive=su.isActive,i}function mue(e){const{theme:t}=q3();return D.exports.useMemo(()=>hue(t.direction,e),[e,t.direction])}var vue={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[r]: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]}}},I6=D.exports.memo(e=>{const{id:t,message:r,onCloseComplete:i,onRequestRemove:o,requestClose:c=!1,position:u="bottom",duration:h=5e3,containerStyle:m,motionVariants:v=vue,toastSpacing:S="0.5rem"}=e,[x,C]=D.exports.useState(h),_=LY();uw(()=>{_||i?.()},[_]),uw(()=>{C(h)},[h]);const N=()=>C(null),O=()=>C(h),I=()=>{_&&o()};D.exports.useEffect(()=>{_&&c&&o()},[_,c,o]),aue(I,x);const V=D.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:S,...m}),[m,S]),M=D.exports.useMemo(()=>lue(u),[u]);return Ue.createElement(Nl.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:N,onHoverEnd:O,custom:{position:u},style:M},Ue.createElement(Ge.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:V},BO(r,{id:t,onClose:I})))});I6.displayName="ToastComponent";var gue=e=>{const t=D.exports.useSyncExternalStore(su.subscribe,su.getState,su.getState),{children:r,motionVariants:i,component:o=I6,portalProps:c}=e,h=Object.keys(t).map(m=>{const v=t[m];return k("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${m}`,style:uue(m),children:k(bc,{initial:!1,children:v.map(S=>k(o,{motionVariants:i,...S},S.id,!1,{fileName:pc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:pc,lineNumber:432,columnNumber:24},globalThis)},m,!1,{fileName:pc,lineNumber:426,columnNumber:28},globalThis)});return k(bo,{children:[r,k(Kp,{...c,children:h},void 0,!1,{fileName:pc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},vF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function yue(e,t=[]){const r=Object.assign({},e);for(const i of t)i in r&&delete r[i];return r}function bue(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}var Sue={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 Ry(...e){return function(r){e.some(i=>(i?.(r),r?.defaultPrevented))}}var UO=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},jO=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function xue(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnEsc:c=!0,onOpen:u,onClose:h,placement:m,id:v,isOpen:S,defaultIsOpen:x,arrowSize:C=10,arrowShadowColor:_,arrowPadding:N,modifiers:O,isDisabled:I,gutter:V,offset:M,direction:z,...B}=e,{isOpen:j,onOpen:K,onClose:X}=VJ({isOpen:S,defaultIsOpen:x,onOpen:u,onClose:h}),{referenceRef:fe,getPopperProps:me,getArrowInnerProps:se,getArrowProps:be}=jJ({enabled:j,placement:m,arrowPadding:N,modifiers:O,gutter:V,offset:M,direction:z}),Ke=D.exports.useId(),ce=`tooltip-${v??Ke}`,Re=D.exports.useRef(null),Ce=D.exports.useRef(),oe=D.exports.useRef(),Se=D.exports.useCallback(()=>{oe.current&&(clearTimeout(oe.current),oe.current=void 0),X()},[X]),Te=wue(Re,Se),pe=D.exports.useCallback(()=>{if(!I&&!Ce.current){Te();const Qe=jO(Re);Ce.current=Qe.setTimeout(K,t)}},[Te,I,K,t]),we=D.exports.useCallback(()=>{Ce.current&&(clearTimeout(Ce.current),Ce.current=void 0);const Qe=jO(Re);oe.current=Qe.setTimeout(Se,r)},[r,Se]),Ie=D.exports.useCallback(()=>{j&&i&&we()},[i,we,j]),Le=D.exports.useCallback(()=>{j&&o&&we()},[o,we,j]),Ye=D.exports.useCallback(Qe=>{j&&Qe.key==="Escape"&&we()},[j,we]);bO(()=>UO(Re),"keydown",c?Ye:void 0),D.exports.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(oe.current)},[]),bO(()=>Re.current,"mouseleave",we);const st=D.exports.useCallback((Qe={},vt=null)=>({...Qe,ref:Zi(Re,vt,fe),onMouseEnter:Ry(Qe.onMouseEnter,pe),onClick:Ry(Qe.onClick,Ie),onMouseDown:Ry(Qe.onMouseDown,Le),onFocus:Ry(Qe.onFocus,pe),onBlur:Ry(Qe.onBlur,we),"aria-describedby":j?ce:void 0}),[pe,we,Le,j,ce,Ie,fe]),mt=D.exports.useCallback((Qe={},vt=null)=>me({...Qe,style:{...Qe.style,[li.arrowSize.var]:C?`${C}px`:void 0,[li.arrowShadowColor.var]:_}},vt),[me,C,_]),Gt=D.exports.useCallback((Qe={},vt=null)=>{const Et={...Qe.style,position:"relative",transformOrigin:li.transformOrigin.varRef};return{ref:vt,...B,...Qe,id:ce,role:"tooltip",style:Et}},[B,ce]);return{isOpen:j,show:pe,hide:we,getTriggerProps:st,getTooltipProps:Gt,getTooltipPositionerProps:mt,getArrowProps:be,getArrowInnerProps:se}}var SA="chakra-ui:close-tooltip";function wue(e,t){return D.exports.useEffect(()=>{const r=UO(e);return r.addEventListener(SA,t),()=>r.removeEventListener(SA,t)},[t,e]),()=>{const r=UO(e),i=jO(e);r.dispatchEvent(new i.CustomEvent(SA))}}var Cue=Ge(Nl.div),$O=et((e,t)=>{const r=Qi("Tooltip",e),i=mr(e),o=Ck(),{children:c,label:u,shouldWrapChildren:h,"aria-label":m,hasArrow:v,bg:S,portalProps:x,background:C,backgroundColor:_,bgColor:N,...O}=i,I=C??_??S??N;if(I){r.bg=I;const fe=b8(o,"colors",I);r[li.arrowBg.var]=fe}const V=xue({...O,direction:o.direction}),M=typeof c=="string"||h;let z;if(M)z=Ue.createElement(Ge.span,{tabIndex:0,...V.getTriggerProps()},c);else{const fe=D.exports.Children.only(c);z=D.exports.cloneElement(fe,V.getTriggerProps(fe.props,fe.ref))}const B=!!m,j=V.getTooltipProps({},t),K=B?yue(j,["role","id"]):j,X=bue(j,["role","id"]);return u?k(bo,{children:[z,k(bc,{children:V.isOpen&&Ue.createElement(Kp,{...x},Ue.createElement(Ge.div,{...V.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"}},k(Cue,{variants:Sue,...K,initial:"exit",animate:"enter",exit:"exit",__css:r,children:[u,B&&Ue.createElement(Ge.span,{srOnly:!0,...X},m),v&&Ue.createElement(Ge.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Ue.createElement(Ge.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}}))]},void 0,!0,{fileName:vF,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:vF,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):k(bo,{children:c},void 0,!1)});$O.displayName="Tooltip";var Sp="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",_ue=e=>{const{children:t,colorModeManager:r,portalZIndex:i,resetCSS:o=!0,theme:c={},environment:u,cssVarsRoot:h}=e,m=k(rB,{environment:u,children:t},void 0,!1,{fileName:Sp,lineNumber:25,columnNumber:37},globalThis);return k(q7,{theme:c,cssVarsRoot:h,children:k(S3,{colorModeManager:r,options:c.config,children:[o?k(AZ,{},void 0,!1,{fileName:Sp,lineNumber:34,columnNumber:33},globalThis):k(RZ,{},void 0,!1,{fileName:Sp,lineNumber:34,columnNumber:87},globalThis),k(X7,{},void 0,!1,{fileName:Sp,lineNumber:34,columnNumber:143},globalThis),i?k(hB,{zIndex:i,children:m},void 0,!1,{fileName:Sp,lineNumber:34,columnNumber:214},globalThis):m]},void 0,!0,{fileName:Sp,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:Sp,lineNumber:28,columnNumber:26},globalThis)},gF="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function Eue({children:e,theme:t=D6,toastOptions:r,...i}){return k(_ue,{theme:t,...i,children:[e,k(gue,{...r},void 0,!1,{fileName:gF,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:gF,lineNumber:62,columnNumber:26},this)}function Tue(...e){let t=[...e],r=e[e.length-1];return tue(r)&&t.length>1?t=t.slice(0,t.length-1):r=D6,k7(...t.map(i=>o=>Pm(i)?i(o):Nue(o,i)))(r)}function Nue(...e){return $f({},...e,L6)}function L6(e,t,r,i){if((Pm(e)||Pm(t))&&Object.prototype.hasOwnProperty.call(i,r))return(...o)=>{const c=Pm(e)?e(...o):e,u=Pm(t)?t(...o):t;return $f({},c,u,L6)}}function Ua(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];{var o=Lue[e],c=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+c)}}function Kf(e){return!!e&&!!e[Or]}function gc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Fue}(e)||Array.isArray(e)||!!e[_F]||!!e.constructor[_F]||L2(e)||F2(e))}function Wp(e,t,r){r===void 0&&(r=!1),lv(e)===0?(r?Object.keys:Wm)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,o){return t(o,i,e)})}function lv(e){var t=e[Or];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:L2(e)?2:F2(e)?3:0}function Hm(e,t){return lv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rue(e,t){return lv(e)===2?e.get(t):e[t]}function F6(e,t,r){var i=lv(e);i===2?e.set(t,r):i===3?(e.delete(t),e.add(r)):e[t]=r}function z6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function L2(e){return Mue&&e instanceof Map}function F2(e){return Iue&&e instanceof Set}function Of(e){return e.o||e.t}function z2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=U6(e);delete t[Or];for(var r=Wm(t),i=0;i<r.length;i++){var o=r[i],c=t[o];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(t[o]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function B2(e,t){return t===void 0&&(t=!1),U2(e)||Kf(e)||!gc(e)||(lv(e)>1&&(e.set=e.add=e.clear=e.delete=Aue),Object.freeze(e),t&&Wp(e,function(r,i){return B2(i,!0)},!0)),e}function Aue(){Ua(2)}function U2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pu(e){var t=GO[e];return t||Ua(18,e),t}function Oue(e,t){GO[e]||(GO[e]=t)}function VO(){return tv||Ua(0),tv}function xA(e,t){t&&(pu("Patches"),e.u=[],e.s=[],e.v=t)}function xw(e){HO(e),e.p.forEach(kue),e.p=null}function HO(e){e===tv&&(tv=e.l)}function yF(e){return tv={p:[],l:tv,h:e,m:!0,_:0}}function kue(e){var t=e[Or];t.i===0||t.i===1?t.j():t.O=!0}function wA(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.g||pu("ES5").S(t,e,i),i?(r[Or].P&&(xw(t),Ua(4)),gc(e)&&(e=ww(t,e),t.l||Cw(t,e)),t.u&&pu("Patches").M(r[Or].t,e,t.u,t.s)):e=ww(t,r,[]),xw(t),t.u&&t.v(t.u,t.s),e!==B6?e:void 0}function ww(e,t,r){if(U2(t))return t;var i=t[Or];if(!i)return Wp(t,function(c,u){return bF(e,i,t,c,u,r)},!0),t;if(i.A!==e)return t;if(!i.P)return Cw(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=z2(i.k):i.o;Wp(i.i===3?new Set(o):o,function(c,u){return bF(e,i,o,c,u,r)}),Cw(e,o,!1),r&&e.u&&pu("Patches").R(i,r,e.u,e.s)}return i.o}function bF(e,t,r,i,o,c){if(o===r&&Ua(5),Kf(o)){var u=ww(e,o,c&&t&&t.i!==3&&!Hm(t.D,i)?c.concat(i):void 0);if(F6(r,i,u),!Kf(u))return;e.m=!1}if(gc(o)&&!U2(o)){if(!e.h.F&&e._<1)return;ww(e,o),t&&t.A.l||Cw(e,o)}}function Cw(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&B2(t,r)}function CA(e,t){var r=e[Or];return(r?Of(r):e)[t]}function SF(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function kf(e){e.P||(e.P=!0,e.l&&kf(e.l))}function _A(e){e.o||(e.o=z2(e.t))}function WO(e,t,r){var i=L2(t)?pu("MapSet").N(t,r):F2(t)?pu("MapSet").T(t,r):e.g?function(o,c){var u=Array.isArray(o),h={i:u?1:0,A:c?c.A:VO(),P:!1,I:!1,D:{},l:c,t:o,k:null,o:null,j:null,C:!1},m=h,v=xb;u&&(m=[h],v=Ly);var S=Proxy.revocable(m,v),x=S.revoke,C=S.proxy;return h.k=C,h.j=x,C}(t,r):pu("ES5").J(t,r);return(r?r.A:VO()).p.push(i),i}function Due(e){return Kf(e)||Ua(22,e),function t(r){if(!gc(r))return r;var i,o=r[Or],c=lv(r);if(o){if(!o.P&&(o.i<4||!pu("ES5").K(o)))return o.t;o.I=!0,i=xF(r,c),o.I=!1}else i=xF(r,c);return Wp(i,function(u,h){o&&Rue(o.t,u)===h||F6(i,u,t(h))}),c===3?new Set(i):i}(e)}function xF(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return z2(e)}function Pue(){function e(u,h){var m=c[u];return m?m.enumerable=h:c[u]=m={configurable:!0,enumerable:h,get:function(){var v=this[Or];return o(v),xb.get(v,u)},set:function(v){var S=this[Or];o(S),xb.set(S,u,v)}},m}function t(u){for(var h=u.length-1;h>=0;h--){var m=u[h][Or];if(!m.P)switch(m.i){case 5:i(m)&&kf(m);break;case 4:r(m)&&kf(m)}}}function r(u){for(var h=u.t,m=u.k,v=Wm(m),S=v.length-1;S>=0;S--){var x=v[S];if(x!==Or){var C=h[x];if(C===void 0&&!Hm(h,x))return!0;var _=m[x],N=_&&_[Or];if(N?N.t!==C:!z6(_,C))return!0}}var O=!!h[Or];return v.length!==Wm(h).length+(O?0:1)}function i(u){var h=u.k;if(h.length!==u.t.length)return!0;var m=Object.getOwnPropertyDescriptor(h,h.length-1);if(m&&!m.get)return!0;for(var v=0;v<h.length;v++)if(!h.hasOwnProperty(v))return!0;return!1}function o(u){u.O&&Ua(3,JSON.stringify(Of(u)))}var c={};Oue("ES5",{J:function(u,h){var m=Array.isArray(u),v=function(x,C){if(x){for(var _=Array(C.length),N=0;N<C.length;N++)Object.defineProperty(_,""+N,e(N,!0));return _}var O=U6(C);delete O[Or];for(var I=Wm(O),V=0;V<I.length;V++){var M=I[V];O[M]=e(M,x||!!O[M].enumerable)}return Object.create(Object.getPrototypeOf(C),O)}(m,u),S={i:m?5:4,A:h?h.A:VO(),P:!1,I:!1,D:{},l:h,t:u,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Or,{value:S,writable:!0}),v},S:function(u,h,m){m?Kf(h)&&h[Or].A===u&&t(u.p):(u.u&&function v(S){if(S&&typeof S=="object"){var x=S[Or];if(x){var C=x.t,_=x.k,N=x.D,O=x.i;if(O===4)Wp(_,function(B){B!==Or&&(C[B]!==void 0||Hm(C,B)?N[B]||v(_[B]):(N[B]=!0,kf(x)))}),Wp(C,function(B){_[B]!==void 0||Hm(_,B)||(N[B]=!1,kf(x))});else if(O===5){if(i(x)&&(kf(x),N.length=!0),_.length<C.length)for(var I=_.length;I<C.length;I++)N[I]=!1;else for(var V=C.length;V<_.length;V++)N[V]=!0;for(var M=Math.min(_.length,C.length),z=0;z<M;z++)_.hasOwnProperty(z)||(N[z]=!0),N[z]===void 0&&v(_[z])}}}}(u.p[0]),t(u.p))},K:function(u){return u.i===4?r(u):i(u)}})}var wF,tv,j2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mue=typeof Map<"u",Iue=typeof Set<"u",CF=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",B6=j2?Symbol.for("immer-nothing"):((wF={})["immer-nothing"]=!0,wF),_F=j2?Symbol.for("immer-draftable"):"__$immer_draftable",Or=j2?Symbol.for("immer-state"):"__$immer_state",Lue={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"},Fue=""+Object.prototype.constructor,Wm=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,U6=Object.getOwnPropertyDescriptors||function(e){var t={};return Wm(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},GO={},xb={get:function(e,t){if(t===Or)return e;var r=Of(e);if(!Hm(r,t))return function(o,c,u){var h,m=SF(c,u);return m?"value"in m?m.value:(h=m.get)===null||h===void 0?void 0:h.call(o.k):void 0}(e,r,t);var i=r[t];return e.I||!gc(i)?i:i===CA(e.t,t)?(_A(e),e.o[t]=WO(e.A.h,i,e)):i},has:function(e,t){return t in Of(e)},ownKeys:function(e){return Reflect.ownKeys(Of(e))},set:function(e,t,r){var i=SF(Of(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var o=CA(Of(e),t),c=o?.[Or];if(c&&c.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(z6(r,o)&&(r!==void 0||Hm(e.t,t)))return!0;_A(e),kf(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return CA(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,_A(e),kf(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Of(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Ua(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ua(12)}},Ly={};Wp(xb,function(e,t){Ly[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ly.deleteProperty=function(e,t){return isNaN(parseInt(t))&&Ua(13),Ly.set.call(this,e,t,void 0)},Ly.set=function(e,t,r){return t!=="length"&&isNaN(parseInt(t))&&Ua(14),xb.set.call(this,e[0],t,r,e[0])};var zue=function(){function e(r){var i=this;this.g=CF,this.F=!0,this.produce=function(o,c,u){if(typeof o=="function"&&typeof c!="function"){var h=c;c=o;var m=i;return function(O){var I=this;O===void 0&&(O=h);for(var V=arguments.length,M=Array(V>1?V-1:0),z=1;z<V;z++)M[z-1]=arguments[z];return m.produce(O,function(B){var j;return(j=c).call.apply(j,[I,B].concat(M))})}}var v;if(typeof c!="function"&&Ua(6),u!==void 0&&typeof u!="function"&&Ua(7),gc(o)){var S=yF(i),x=WO(i,o,void 0),C=!0;try{v=c(x),C=!1}finally{C?xw(S):HO(S)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(O){return xA(S,u),wA(O,S)},function(O){throw xw(S),O}):(xA(S,u),wA(v,S))}if(!o||typeof o!="object"){if((v=c(o))===void 0&&(v=o),v===B6&&(v=void 0),i.F&&B2(v,!0),u){var _=[],N=[];pu("Patches").M(o,v,_,N),u(_,N)}return v}Ua(21,o)},this.produceWithPatches=function(o,c){if(typeof o=="function")return function(v){for(var S=arguments.length,x=Array(S>1?S-1:0),C=1;C<S;C++)x[C-1]=arguments[C];return i.produceWithPatches(v,function(_){return o.apply(void 0,[_].concat(x))})};var u,h,m=i.produce(o,c,function(v,S){u=v,h=S});return typeof Promise<"u"&&m instanceof Promise?m.then(function(v){return[v,u,h]}):[m,u,h]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){gc(r)||Ua(8),Kf(r)&&(r=Due(r));var i=yF(this),o=WO(this,r,void 0);return o[Or].C=!0,HO(i),o},t.finishDraft=function(r,i){var o=r&&r[Or];o&&o.C||Ua(9),o.I&&Ua(10);var c=o.A;return xA(c,i),wA(void 0,c)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!CF&&Ua(20),this.g=r},t.applyPatches=function(r,i){var o;for(o=i.length-1;o>=0;o--){var c=i[o];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}o>-1&&(i=i.slice(o+1));var u=pu("Patches").$;return Kf(r)?u(r,i):this.produce(r,function(h){return u(h,i)})},e}(),Ko=new zue,j6=Ko.produce;Ko.produceWithPatches.bind(Ko);Ko.setAutoFreeze.bind(Ko);Ko.setUseProxies.bind(Ko);Ko.applyPatches.bind(Ko);Ko.createDraft.bind(Ko);Ko.finishDraft.bind(Ko);function EF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function TF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EF(Object(r),!0).forEach(function(i){RB(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var NF=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),EA=function(){return Math.random().toString(36).substring(7).split("").join(".")},jp={INIT:"@@redux/INIT"+EA(),REPLACE:"@@redux/REPLACE"+EA(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+EA()}};function $6(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 Bue(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($ue(e))return"date";if(jue(e))return"error";var r=Uue(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Uue(e){return typeof e.constructor=="function"?e.constructor.name:null}function jue(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function $ue(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Rp(e){var t=typeof e;return t=Bue(e),t}function $2(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+Rp(r)+"'");return r($2)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+Rp(e)+"'");var o=e,c=t,u=[],h=u,m=!1;function v(){h===u&&(h=u.slice())}function S(){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 c}function x(O){if(typeof O!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+Rp(O)+"'");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 I=!0;return v(),h.push(O),function(){if(!!I){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.");I=!1,v();var M=h.indexOf(O);h.splice(M,1),u=null}}}function C(O){if(!$6(O))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+Rp(O)+"'. 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 O.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,c=o(c,O)}finally{m=!1}for(var I=u=h,V=0;V<I.length;V++){var M=I[V];M()}return O}function _(O){if(typeof O!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+Rp(O));o=O,C({type:jp.REPLACE})}function N(){var O,I=x;return O={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error("Expected the observer to be an object. Instead, received: '"+Rp(M)+"'");function z(){M.next&&M.next(S())}z();var B=I(z);return{unsubscribe:B}}},O[NF]=function(){return this},O}return C({type:jp.INIT}),i={dispatch:C,subscribe:x,getState:S,replaceReducer:_},i[NF]=N,i}function YO(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Vue(e,t,r,i){var o=Object.keys(t),c=r&&r.type===jp.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(!$6(e))return"The "+c+' has unexpected type of "'+Rp(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var u=Object.keys(e).filter(function(h){return!t.hasOwnProperty(h)&&!i[h]});if(u.forEach(function(h){i[h]=!0}),!(r&&r.type===jp.REPLACE)&&u.length>0)return"Unexpected "+(u.length>1?"keys":"key")+" "+('"'+u.join('", "')+'" found in '+c+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function Hue(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:jp.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 r(void 0,{type:jp.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 '"+jp.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 V6(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var o=t[i];typeof e[o]>"u"&&YO('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(r[o]=e[o])}var c=Object.keys(r),u;u={};var h;try{Hue(r)}catch(m){h=m}return function(v,S){if(v===void 0&&(v={}),h)throw h;{var x=Vue(v,r,S,u);x&&YO(x)}for(var C=!1,_={},N=0;N<c.length;N++){var O=c[N],I=r[O],V=v[O],M=I(V,S);if(typeof M>"u"){var z=S&&S.type;throw new Error("When called with an action of type "+(z?'"'+String(z)+'"':"(unknown type)")+', the slice reducer for key "'+O+'" 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.')}_[O]=M,C=C||M!==V}return C=C||c.length!==Object.keys(v).length,C?_:v}}function _w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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 Wue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var o=i.apply(void 0,arguments),c=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 c.apply(void 0,arguments)}},h=t.map(function(m){return m(u)});return c=_w.apply(void 0,h)(o.dispatch),TF(TF({},o),{},{dispatch:c})}}}function RF(){}typeof RF.name=="string"&&RF.name!=="isCrushed"&&YO('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 Ew="NOT_FOUND";function Gue(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:Ew},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Yue(e,t){var r=[];function i(h){var m=r.findIndex(function(S){return t(h,S.key)});if(m>-1){var v=r[m];return m>0&&(r.splice(m,1),r.unshift(v)),v.value}return Ew}function o(h,m){i(h)===Ew&&(r.unshift({key:h,value:m}),r.length>e&&r.pop())}function c(){return r}function u(){r=[]}return{get:i,put:o,getEntries:c,clear:u}}var que=function(t,r){return t===r};function Kue(e){return function(r,i){if(r===null||i===null||r.length!==i.length)return!1;for(var o=r.length,c=0;c<o;c++)if(!e(r[c],i[c]))return!1;return!0}}function Xue(e,t){var r=typeof t=="object"?t:{equalityCheck:t},i=r.equalityCheck,o=i===void 0?que:i,c=r.maxSize,u=c===void 0?1:c,h=r.resultEqualityCheck,m=Kue(o),v=u===1?Gue(m):Yue(u,m);function S(){var x=v.get(arguments);if(x===Ew){if(x=e.apply(null,arguments),h){var C=v.getEntries(),_=C.find(function(N){return h(N.value,x)});_&&(x=_.value)}v.put(arguments,x)}return x}return S.clearCache=function(){return v.clear()},S}function Zue(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var r=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: ["+r+"]")}return t}function Que(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=function(){for(var u=arguments.length,h=new Array(u),m=0;m<u;m++)h[m]=arguments[m];var v=0,S,x={memoizeOptions:void 0},C=h.pop();if(typeof C=="object"&&(x=C,C=h.pop()),typeof C!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof C+"]");var _=x,N=_.memoizeOptions,O=N===void 0?r:N,I=Array.isArray(O)?O:[O],V=Zue(h),M=e.apply(void 0,[function(){return v++,C.apply(null,arguments)}].concat(I)),z=e(function(){for(var j=[],K=V.length,X=0;X<K;X++)j.push(V[X].apply(null,arguments));return S=M.apply(null,j),S});return Object.assign(z,{resultFunc:C,memoizedResultFunc:M,dependencies:V,lastResult:function(){return S},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),z};return o}var Vr=Que(Xue);function H6(e){var t=function(i){var o=i.dispatch,c=i.getState;return function(u){return function(h){return typeof h=="function"?h(o,c,e):u(h)}}};return t}var W6=H6();W6.withExtraArgument=H6;const AF=W6;var Jue=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();globalThis&&globalThis.__generator;var Tw=globalThis&&globalThis.__spreadArray||function(e,t){for(var r=0,i=t.length,o=e.length;r<i;r++,o++)e[o]=t[r];return e},ece=Object.defineProperty,OF=Object.getOwnPropertySymbols,tce=Object.prototype.hasOwnProperty,nce=Object.prototype.propertyIsEnumerable,kF=function(e,t,r){return t in e?ece(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},wb=function(e,t){for(var r in t||(t={}))tce.call(t,r)&&kF(e,r,t[r]);if(OF)for(var i=0,o=OF(t);i<o.length;i++){var r=o[i];nce.call(t,r)&&kF(e,r,t[r])}return e},rce=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_w:_w.apply(null,arguments)};function G6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Y6(e,t){var r=0;return{measureTime:function(i){var o=Date.now();try{return i()}finally{var c=Date.now();r+=c-o}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"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 ace=function(e){Jue(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e.apply(this,r)||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 r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Tw([void 0],r[0].concat(this)))):new(t.bind.apply(t,Tw([void 0],r.concat(this))))},t}(Array);function qO(e){return gc(e)?j6(e,function(){}):e}var ice="Invariant failed";function DF(e,t){if(!e)throw new Error(ice+": "+(t||""))}function oce(e,t,r,i){return JSON.stringify(e,sce(t,i),r)}function sce(e,t){var r=[],i=[];return t||(t=function(o,c){return r[0]===c?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(c)).join(".")+"]"}),function(o,c){if(r.length>0){var u=r.indexOf(this);~u?r.splice(u+1):r.push(this),~u?i.splice(u,1/0,o):i.push(o),~r.indexOf(c)&&(c=t.call(this,o,c))}else r.push(c);return e==null?c:e.call(this,o,c)}}function lce(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function uce(e,t,r){var i=q6(e,t,r);return{detectMutations:function(){return K6(e,t,i,r)}}}function q6(e,t,r,i){t===void 0&&(t=[]),i===void 0&&(i="");var o={value:r};if(!e(r)){o.children={};for(var c in r){var u=i?i+"."+c:c;t.length&&t.indexOf(u)!==-1||(o.children[c]=q6(e,t,r[c],u))}}return o}function K6(e,t,r,i,o,c){t===void 0&&(t=[]),o===void 0&&(o=!1),c===void 0&&(c="");var u=r?r.value:void 0,h=u===i;if(o&&!h&&!Number.isNaN(i))return{wasMutated:!0,path:c};if(e(u)||e(i))return{wasMutated:!1};var m={};for(var v in r.children)m[v]=!0;for(var v in i)m[v]=!0;for(var v in m){var S=c?c+"."+v:v;if(!(t.length&&t.indexOf(S)!==-1)){var x=K6(e,t,r.children[v],i[v],h,S);if(x.wasMutated)return x}}return{wasMutated:!1}}function cce(e){e===void 0&&(e={});var t=e.isImmutable,r=t===void 0?lce:t,i=e.ignoredPaths,o=e.warnAfter,c=o===void 0?32:o,u=e.ignore;i=i||u;var h=uce.bind(null,r,i);return function(m){var v=m.getState,S=v(),x=h(S),C;return function(_){return function(N){var O=Y6(c,"ImmutableStateInvariantMiddleware");O.measureTime(function(){S=v(),C=x.detectMutations(),x=h(S),DF(!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 I=_(N);return O.measureTime(function(){S=v(),C=x.detectMutations(),x=h(S),C.wasMutated&&DF(!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 "+oce(N)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),O.warnIfExceeded(),I}}}}function X6(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||G6(e)}function KO(e,t,r,i,o){t===void 0&&(t=""),r===void 0&&(r=X6),o===void 0&&(o=[]);var c;if(!r(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),h=o.length>0,m=0,v=u;m<v.length;m++){var S=v[m],x=S[0],C=S[1],_=t?t+"."+x:x;if(!(h&&o.indexOf(_)>=0)){if(!r(C))return{keyPath:_,value:C};if(typeof C=="object"&&(c=KO(C,_,r,i,o),c))return c}}return!1}function fce(e){e===void 0&&(e={});var t=e.isSerializable,r=t===void 0?X6:t,i=e.getEntries,o=e.ignoredActions,c=o===void 0?[]:o,u=e.ignoredActionPaths,h=u===void 0?["meta.arg","meta.baseQueryMeta"]:u,m=e.ignoredPaths,v=m===void 0?[]:m,S=e.warnAfter,x=S===void 0?32:S,C=e.ignoreState,_=C===void 0?!1:C,N=e.ignoreActions,O=N===void 0?!1:N;return function(I){return function(V){return function(M){var z=V(M),B=Y6(x,"SerializableStateInvariantMiddleware");return!O&&!(c.length&&c.indexOf(M.type)!==-1)&&B.measureTime(function(){var j=KO(M,"",r,i,h);if(j){var K=j.keyPath,X=j.value;console.error("A non-serializable value was detected in an action, in the path: `"+K+"`. Value:",X,`
Take a look at the logic that dispatched this action: `,M,`
(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)`)}}),_||(B.measureTime(function(){var j=I.getState(),K=KO(j,"",r,i,v);if(K){var X=K.keyPath,fe=K.value;console.error("A non-serializable value was detected in the state, in the path: `"+X+"`. Value:",fe,`
Take a look at the reducer(s) handling this action type: `+M.type+`.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),B.warnIfExceeded()),z}}}}function TA(e){return typeof e=="boolean"}function dce(){return function(t){return pce(t)}}function pce(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,o=i===void 0?!0:i,c=e.serializableCheck,u=c===void 0?!0:c,h=new ace;r&&(TA(r)?h.push(AF):h.push(AF.withExtraArgument(r.extraArgument)));{if(o){var m={};TA(o)||(m=o),h.unshift(cce(m))}if(u){var v={};TA(u)||(v=u),h.push(fce(v))}}return h}var hce=!1;function mce(e){var t=dce(),r=e||{},i=r.reducer,o=i===void 0?void 0:i,c=r.middleware,u=c===void 0?t():c,h=r.devTools,m=h===void 0?!0:h,v=r.preloadedState,S=v===void 0?void 0:v,x=r.enhancers,C=x===void 0?void 0:x,_;if(typeof o=="function")_=o;else if(G6(o))_=V6(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 N=u;if(typeof N=="function"&&(N=N(t),!Array.isArray(N)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(N.some(function(z){return typeof z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Wue.apply(void 0,N),I=_w;m&&(I=rce(wb({trace:!hce},typeof m=="object"&&m)));var V=[O];Array.isArray(C)?V=Tw([O],C):typeof C=="function"&&(V=C(V));var M=I.apply(void 0,V);return $2(_,S,M)}function Xo(e,t){function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var c=t.apply(void 0,i);if(!c)throw new Error("prepareAction did not return an object");return wb(wb({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function Z6(e){var t={},r=[],i,o={addCase:function(c,u){{if(r.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 h=typeof c=="string"?c:c.type;if(h in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[h]=u,o},addMatcher:function(c,u){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:c,reducer:u}),o},addDefaultCase:function(c){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=c,o}};return e(o),[t,r,i]}function vce(e){return typeof e=="function"}function gce(e,t,r,i){r===void 0&&(r=[]);var o=typeof t=="function"?Z6(t):[t,r,i],c=o[0],u=o[1],h=o[2],m;if(vce(e))m=function(){return qO(e())};else{var v=qO(e);m=function(){return v}}function S(x,C){x===void 0&&(x=m());var _=Tw([c[C.type]],u.filter(function(N){var O=N.matcher;return O(C)}).map(function(N){var O=N.reducer;return O}));return _.filter(function(N){return!!N}).length===0&&(_=[h]),_.reduce(function(N,O){if(O)if(Kf(N)){var I=N,V=O(I,C);return V===void 0?N:V}else{if(gc(N))return j6(N,function(M){return O(M,C)});var V=O(N,C);if(V===void 0){if(N===null)return N;throw Error("A case reducer on a non-draftable value must not return undefined")}return V}return N},x)}return S.getInitialState=m,S}function yce(e,t){return e+"/"+t}function V2(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 r=typeof e.initialState=="function"?e.initialState:qO(e.initialState),i=e.reducers||{},o=Object.keys(i),c={},u={},h={};o.forEach(function(S){var x=i[S],C=yce(t,S),_,N;"reducer"in x?(_=x.reducer,N=x.prepare):_=x,c[S]=_,u[C]=_,h[S]=N?Xo(C,N):Xo(C)});function m(){var S=typeof e.extraReducers=="function"?Z6(e.extraReducers):[e.extraReducers],x=S[0],C=x===void 0?{}:x,_=S[1],N=_===void 0?[]:_,O=S[2],I=O===void 0?void 0:O,V=wb(wb({},C),u);return gce(r,V,N,I)}var v;return{name:t,reducer:function(S,x){return v||(v=m()),v(S,x)},actions:h,caseReducers:c,getInitialState:function(){return v||(v=m()),v.getInitialState()}}}var H2="listenerMiddleware";Xo(H2+"/add");Xo(H2+"/removeAll");Xo(H2+"/remove");Pue();var Q6={exports:{}},J6={};/**
* @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=D.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(z){{for(var B=arguments.length,j=new Array(B>1?B-1:0),K=1;K<B;K++)j[K-1]=arguments[K];i("error",z,j)}}function i(z,B,j){{var K=t.ReactDebugCurrentFrame,X=K.getStackAddendum();X!==""&&(B+="%s",j=j.concat([X]));var fe=j.map(function(me){return String(me)});fe.unshift("Warning: "+B),Function.prototype.apply.call(console[z],console,fe)}}function o(z,B){return z===B&&(z!==0||1/z===1/B)||z!==z&&B!==B}var c=typeof Object.is=="function"?Object.is:o,u=e.useState,h=e.useEffect,m=e.useLayoutEffect,v=e.useDebugValue,S=!1,x=!1;function C(z,B,j){S||e.startTransition!==void 0&&(S=!0,r("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 K=B();if(!x){var X=B();c(K,X)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}var fe=u({inst:{value:K,getSnapshot:B}}),me=fe[0].inst,se=fe[1];return m(function(){me.value=K,me.getSnapshot=B,_(me)&&se({inst:me})},[z,K,B]),h(function(){_(me)&&se({inst:me});var be=function(){_(me)&&se({inst:me})};return z(be)},[z]),v(K),K}function _(z){var B=z.getSnapshot,j=z.value;try{var K=B();return!c(j,K)}catch{return!0}}function N(z,B,j){return B()}var O=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I=!O,V=I?N:C,M=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:V;J6.useSyncExternalStore=M,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=J6})(Q6);var eU={exports:{}},tU={};/**
* @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=D.exports,t=Q6.exports;function r(S,x){return S===x&&(S!==0||1/S===1/x)||S!==S&&x!==x}var i=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,c=e.useRef,u=e.useEffect,h=e.useMemo,m=e.useDebugValue;function v(S,x,C,_,N){var O=c(null),I;O.current===null?(I={hasValue:!1,value:null},O.current=I):I=O.current;var V=h(function(){var j=!1,K,X,fe=function(Ke){if(!j){j=!0,K=Ke;var J=_(Ke);if(N!==void 0&&I.hasValue){var ce=I.value;if(N(ce,J))return X=ce,ce}return X=J,J}var Re=K,Ce=X;if(i(Re,Ke))return Ce;var oe=_(Ke);return N!==void 0&&N(Ce,oe)?Ce:(K=Ke,X=oe,oe)},me=C===void 0?null:C,se=function(){return fe(x())},be=me===null?void 0:function(){return fe(me())};return[se,be]},[x,C,_,N]),M=V[0],z=V[1],B=o(S,M,z);return u(function(){I.hasValue=!0,I.value=B},[B]),m(B),B}tU.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=tU})(eU);function bce(e){e()}let nU=bce;const Sce=e=>nU=e,xce=()=>nU,yc=Ue.createContext(null);yc.displayName="ReactRedux";function rU(){const e=D.exports.useContext(yc);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const wce=()=>{throw new Error("uSES not initialized!")};let aU=wce;const Cce=e=>{aU=e},_ce=(e,t)=>e===t;function Ece(e=yc){const t=e===yc?rU:()=>D.exports.useContext(e);return function(i,o=_ce){{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:c,subscription:u,getServerState:h}=t(),m=aU(u.addNestedSub,c.getState,h||c.getState,i,o);return D.exports.useDebugValue(m),m}}const Tce=Ece();var Nce={exports:{}},sr={};/**
* @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"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),N=!1,O=!1,I=!1,V=!1,M=!1,z;z=Symbol.for("react.module.reference");function B(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===r||ye===o||M||ye===i||ye===v||ye===S||V||ye===_||N||O||I||typeof ye=="object"&&ye!==null&&(ye.$$typeof===C||ye.$$typeof===x||ye.$$typeof===c||ye.$$typeof===u||ye.$$typeof===m||ye.$$typeof===z||ye.getModuleId!==void 0))}function j(ye){if(typeof ye=="object"&&ye!==null){var Mt=ye.$$typeof;switch(Mt){case e:var Kt=ye.type;switch(Kt){case r:case o:case i:case v:case S:return Kt;default:var St=Kt&&Kt.$$typeof;switch(St){case h:case u:case m:case C:case x:case c:return St;default:return Mt}}case t:return Mt}}}var K=u,X=c,fe=e,me=m,se=r,be=C,Ke=x,J=t,ce=o,Re=i,Ce=v,oe=S,Se=!1,Te=!1;function pe(ye){return Se||(Se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function we(ye){return Te||(Te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ie(ye){return j(ye)===u}function Le(ye){return j(ye)===c}function Ye(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===e}function st(ye){return j(ye)===m}function mt(ye){return j(ye)===r}function Gt(ye){return j(ye)===C}function Qe(ye){return j(ye)===x}function vt(ye){return j(ye)===t}function Et(ye){return j(ye)===o}function zt(ye){return j(ye)===i}function We(ye){return j(ye)===v}function Yt(ye){return j(ye)===S}sr.ContextConsumer=K,sr.ContextProvider=X,sr.Element=fe,sr.ForwardRef=me,sr.Fragment=se,sr.Lazy=be,sr.Memo=Ke,sr.Portal=J,sr.Profiler=ce,sr.StrictMode=Re,sr.Suspense=Ce,sr.SuspenseList=oe,sr.isAsyncMode=pe,sr.isConcurrentMode=we,sr.isContextConsumer=Ie,sr.isContextProvider=Le,sr.isElement=Ye,sr.isForwardRef=st,sr.isFragment=mt,sr.isLazy=Gt,sr.isMemo=Qe,sr.isPortal=vt,sr.isProfiler=Et,sr.isStrictMode=zt,sr.isSuspense=We,sr.isSuspenseList=Yt,sr.isValidElementType=B,sr.typeOf=j})();(function(e){e.exports=sr})(Nce);function Rce(){const e=xce();let t=null,r=null;return{clear(){t=null,r=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,c=r={callback:i,next:null,prev:r};return c.prev?c.prev.next=c:t=c,function(){!o||t===null||(o=!1,c.next?c.next.prev=c.prev:r=c.prev,c.prev?c.prev.next=c.next:t=c.next)}}}}const PF={notify(){},get:()=>[]};function Ace(e,t){let r,i=PF;function o(x){return m(),i.subscribe(x)}function c(){i.notify()}function u(){S.onStateChange&&S.onStateChange()}function h(){return Boolean(r)}function m(){r||(r=t?t.addNestedSub(u):e.subscribe(u),i=Rce())}function v(){r&&(r(),r=void 0,i.clear(),i=PF)}const S={addNestedSub:o,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:h,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>i};return S}const Oce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kce=Oce?D.exports.useLayoutEffect:D.exports.useEffect;var Dce="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function Pce({store:e,context:t,children:r,serverState:i}){const o=D.exports.useMemo(()=>{const h=Ace(e);return{store:e,subscription:h,getServerState:i?()=>i:void 0}},[e,i]),c=D.exports.useMemo(()=>e.getState(),[e]);return kce(()=>{const{subscription:h}=o;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==e.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[o,c]),k((t||yc).Provider,{value:o,children:r},void 0,!1,{fileName:Dce,lineNumber:39,columnNumber:23},this)}function iU(e=yc){const t=e===yc?rU:()=>D.exports.useContext(e);return function(){const{store:i}=t();return i}}const Mce=iU();function Ice(e=yc){const t=e===yc?Mce:iU(e);return function(){return t().dispatch}}const Lce=Ice();Cce(eU.exports.useSyncExternalStoreWithSelector);Sce(_b.exports.unstable_batchedUpdates);var W2="persist:",oU="persist/FLUSH",G2="persist/REHYDRATE",sU="persist/PAUSE",lU="persist/PERSIST",uU="persist/PURGE",cU="persist/REGISTER",Fce=-1;function Qy(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qy=function(r){return typeof r}:Qy=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qy(e)}function MF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function zce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MF(r,!0).forEach(function(i){Bce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Bce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uce(e,t,r,i){var o=i.debug,c=zce({},r);return e&&Qy(e)==="object"&&Object.keys(e).forEach(function(u){if(u!=="_persist"){if(t[u]!==r[u]){o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",u);return}c[u]=e[u]}}),o&&e&&Qy(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),c}function jce(e){var t=e.blacklist||null,r=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,c="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key),u=e.storage,h;e.serialize===!1?h=function(j){return j}:typeof e.serialize=="function"?h=e.serialize:h=$ce;var m=e.writeFailHandler||null,v={},S={},x=[],C=null,_=null,N=function(j){Object.keys(j).forEach(function(K){!V(K)||v[K]!==j[K]&&x.indexOf(K)===-1&&x.push(K)}),Object.keys(v).forEach(function(K){j[K]===void 0&&V(K)&&x.indexOf(K)===-1&&v[K]!==void 0&&x.push(K)}),C===null&&(C=setInterval(O,o)),v=j};function O(){if(x.length===0){C&&clearInterval(C),C=null;return}var B=x.shift(),j=i.reduce(function(K,X){return X.in(K,B,v)},v[B]);if(j!==void 0)try{S[B]=h(j)}catch(K){console.error("redux-persist/createPersistoid: error serializing state",K)}else delete S[B];x.length===0&&I()}function I(){Object.keys(S).forEach(function(B){v[B]===void 0&&delete S[B]}),_=u.setItem(c,h(S)).catch(M)}function V(B){return!(r&&r.indexOf(B)===-1&&B!=="_persist"||t&&t.indexOf(B)!==-1)}function M(B){m&&m(B),B&&console.error("Error storing data",B)}var z=function(){for(;x.length!==0;)O();return _||Promise.resolve()};return{update:N,flush:z}}function $ce(e){return JSON.stringify(e)}function Vce(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key),i=e.storage,o=e.debug,c;return e.deserialize===!1?c=function(h){return h}:typeof e.deserialize=="function"?c=e.deserialize:c=Hce,i.getItem(r).then(function(u){if(u)try{var h={},m=c(u);return Object.keys(m).forEach(function(v){h[v]=t.reduceRight(function(S,x){return x.out(S,v,m)},c(m[v]))}),h}catch(v){throw o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(u),v),v}else return})}function Hce(e){return JSON.parse(e)}function Wce(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:W2).concat(e.key);return t.removeItem(r,Gce)}function Gce(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function IF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function sc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IF(r,!0).forEach(function(i){Yce(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Yce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qce(e,t){if(e==null)return{};var r=Kce(e,t),i,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)i=c[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function Kce(e,t){if(e==null)return{};var r={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Xce=5e3;function fU(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 r=e.version!==void 0?e.version:Fce;e.debug;var i=e.stateReconciler===void 0?Uce:e.stateReconciler,o=e.getStoredState||Vce,c=e.timeout!==void 0?e.timeout:Xce,u=null,h=!1,m=!0,v=function(x){return x._persist.rehydrated&&u&&!m&&u.update(x),x};return function(S,x){var C=S||{},_=C._persist,N=qce(C,["_persist"]),O=N;if(x.type===lU){var I=!1,V=function(fe,me){I&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),fe,me),I||(x.rehydrate(e.key,fe,me),I=!0)};if(c&&setTimeout(function(){!I&&V(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},c),m=!1,u||(u=jce(e)),_)return sc({},t(O,x),{_persist:_});if(typeof x.rehydrate!="function"||typeof x.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return x.register(e.key),o(e).then(function(X){var fe=e.migrate||function(me,se){return Promise.resolve(me)};fe(X,r).then(function(me){V(me)},function(me){me&&console.error("redux-persist: migration error",me),V(void 0,me)})},function(X){V(void 0,X)}),sc({},t(O,x),{_persist:{version:r,rehydrated:!1}})}else{if(x.type===uU)return h=!0,x.result(Wce(e)),sc({},t(O,x),{_persist:_});if(x.type===oU)return x.result(u&&u.flush()),sc({},t(O,x),{_persist:_});if(x.type===sU)m=!0;else if(x.type===G2){if(h)return sc({},O,{_persist:sc({},_,{rehydrated:!0})});if(x.key===e.key){var M=t(O,x),z=x.payload,B=i!==!1&&z!==void 0?i(z,S,M,e):M,j=sc({},B,{_persist:sc({},_,{rehydrated:!0})});return v(j)}}}if(!_)return t(S,x);var K=t(O,x);return K===O?S:v(sc({},K,{_persist:_}))}}function LF(e){return Jce(e)||Qce(e)||Zce()}function Zce(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Qce(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Jce(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function FF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function XO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FF(r,!0).forEach(function(i){efe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FF(r).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function efe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dU={registry:[],bootstrapped:!1},tfe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dU,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case cU:return XO({},t,{registry:[].concat(LF(t.registry),[r.key])});case G2:var i=t.registry.indexOf(r.key),o=LF(t.registry);return o.splice(i,1),XO({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function nfe(e,t,r){{var i=t||{},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(S){i[S]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(S,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var c=r||!1,u=$2(tfe,dU,t&&t.enhancer?t.enhancer:void 0),h=function(x){u.dispatch({type:cU,key:x})},m=function(x,C,_){var N={type:G2,payload:C,err:_,key:x};e.dispatch(N),u.dispatch(N),c&&v.getState().bootstrapped&&(c(),c=!1)},v=XO({},u,{purge:function(){var x=[];return e.dispatch({type:uU,result:function(_){x.push(_)}}),Promise.all(x)},flush:function(){var x=[];return e.dispatch({type:oU,result:function(_){x.push(_)}}),Promise.all(x)},pause:function(){e.dispatch({type:sU})},persist:function(){e.dispatch({type:lU,register:h,rehydrate:m})}});return t&&t.manualPersist||v.persist(),v}var Y2={},q2={};q2.__esModule=!0;q2.default=ife;function zx(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zx=function(r){return typeof r}:zx=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zx(e)}function NA(){}var rfe={getItem:NA,setItem:NA,removeItem:NA};function afe(e){if((typeof self>"u"?"undefined":zx(self))!=="object"||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function ife(e){var t="".concat(e,"Storage");return afe(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),rfe)}Y2.__esModule=!0;Y2.default=lfe;var ofe=sfe(q2);function sfe(e){return e&&e.__esModule?e:{default:e}}function lfe(e){var t=(0,ofe.default)(e);return{getItem:function(i){return new Promise(function(o,c){o(t.getItem(i))})},setItem:function(i,o){return new Promise(function(c,u){c(t.setItem(i,o))})},removeItem:function(i){return new Promise(function(o,c){o(t.removeItem(i))})}}}var K2=void 0,ufe=cfe(Y2);function cfe(e){return e&&e.__esModule?e:{default:e}}var ffe=(0,ufe.default)("local");K2=ffe;const pU={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},dfe=pU,hU=V2({name:"sd",initialState:dfe,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=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},setGfpganStrength:(e,t)=>{e.gfpganStrength=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 r=t.payload;e.shouldUseInitImage=!!r,e.initialImagePath=r},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:r,value:i}=t.payload,o={...e,[r]:i};return r==="seed"&&(o.shouldRandomizeSeed=!1),r==="initialImagePath"&&i===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{prompt:r,steps:i,cfgScale:o,height:c,width:u,sampler:h,seed:m,img2imgStrength:v,gfpganStrength:S,upscalingLevel:x,upscalingStrength:C,initialImagePath:_,maskPath:N,seamless:O,shouldFitToWidthHeight:I}=t.payload;e.prompt=r??e.prompt,e.steps=i||e.steps,e.cfgScale=o||e.cfgScale,e.width=u||e.width,e.height=c||e.height,e.sampler=h||e.sampler,e.seed=m??e.seed,e.seamless=O??e.seamless,e.shouldFitToWidthHeight=I??e.shouldFitToWidthHeight,e.img2imgStrength=v??e.img2imgStrength,e.gfpganStrength=S??e.gfpganStrength,e.upscalingLevel=x??e.upscalingLevel,e.upscalingStrength=C??e.upscalingStrength,e.initialImagePath=_??e.initialImagePath,e.maskPath=N??e.maskPath,m&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!S,e.shouldRunESRGAN=!!x,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!_},resetSDState:e=>({...e,...pU}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:pfe,setIterations:hfe,setSteps:mfe,setCfgScale:vfe,setHeight:gfe,setWidth:yfe,setSampler:bfe,setSeed:Nw,setSeamless:Sfe,setImg2imgStrength:xfe,setGfpganStrength:wfe,setUpscalingLevel:Cfe,setUpscalingStrength:_fe,setShouldUseInitImage:Efe,setInitialImagePath:X2,setMaskPath:mU,resetSeed:Tme,resetSDState:Nme,setShouldFitToWidthHeight:Tfe,setParameter:Nfe,setShouldGenerateVariations:Rfe,setSeedWeights:Afe,setVariationAmount:Ofe,setAllParameters:Z2,setShouldRunGFPGAN:kfe,setShouldRunESRGAN:Dfe,setShouldRandomizeSeed:Pfe}=hU.actions,Mfe=hU.reducer;var $r={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 r,i="4.17.21",o=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",h="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",v=500,S="__lodash_placeholder__",x=1,C=2,_=4,N=1,O=2,I=1,V=2,M=4,z=8,B=16,j=32,K=64,X=128,fe=256,me=512,se=30,be="...",Ke=800,J=16,ce=1,Re=2,Ce=3,oe=1/0,Se=9007199254740991,Te=17976931348623157e292,pe=0/0,we=4294967295,Ie=we-1,Le=we>>>1,Ye=[["ary",X],["bind",I],["bindKey",V],["curry",z],["curryRight",B],["flip",me],["partial",j],["partialRight",K],["rearg",fe]],st="[object Arguments]",mt="[object Array]",Gt="[object AsyncFunction]",Qe="[object Boolean]",vt="[object Date]",Et="[object DOMException]",zt="[object Error]",We="[object Function]",Yt="[object GeneratorFunction]",ye="[object Map]",Mt="[object Number]",Kt="[object Null]",St="[object Object]",ar="[object Promise]",ir="[object Proxy]",Bt="[object RegExp]",fn="[object Set]",kn="[object String]",hn="[object Symbol]",Ve="[object Undefined]",Ze="[object WeakMap]",Jt="[object WeakSet]",Tt="[object ArrayBuffer]",ke="[object DataView]",jt="[object Float32Array]",xn="[object Float64Array]",je="[object Int8Array]",rt="[object Int16Array]",xt="[object Int32Array]",dn="[object Uint8Array]",Xt="[object Uint8ClampedArray]",wn="[object Uint16Array]",Dn="[object Uint32Array]",Rr=/\b__p \+= '';/g,Tn=/\b(__p \+=) '' \+/g,ca=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fn=/&(?:amp|lt|gt|quot|#39);/g,Cn=/[&<>"']/g,fa=RegExp(Fn.source),vr=RegExp(Cn.source),wo=/<%-([\s\S]+?)%>/g,Jo=/<%([\s\S]+?)%>/g,es=/<%=([\s\S]+?)%>/g,Co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_o=/^\w*$/,cr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oa=/[\\^$.*+?()[\]{}|]/g,Di=RegExp(Oa.source),ka=/^\s+/,q=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,bt=/,? & /,nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gn=/[()=,{}\[\]\/\s]/,tt=/\\(\\)?/g,$t=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zn=/\w*$/,In=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,Lr=/^\[object .+?Constructor\]$/,fi=/^0o[0-7]+$/i,Eo=/^(?:0|[1-9]\d*)$/,da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ji=/($^)/,Su=/['\n\r\u2028\u2029\\]/g,di="\\ud800-\\udfff",Bs="\\u0300-\\u036f",Pi="\\ufe20-\\ufe2f",Zt="\\u20d0-\\u20ff",Mi=Bs+Pi+Zt,pa="\\u2700-\\u27bf",To="a-z\\xdf-\\xf6\\xf8-\\xff",ts="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ns="\\u2000-\\u206f",rs=" \\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",Ro="A-Z\\xc0-\\xd6\\xd8-\\xde",Ao="\\ufe0e\\ufe0f",as=ts+No+ns+rs,Us="['\u2019]",js="["+di+"]",pi="["+as+"]",Dr="["+Mi+"]",Da="\\d+",ha="["+pa+"]",Pa="["+To+"]",is="[^"+di+as+Da+pa+To+Ro+"]",Oo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Dr+"|"+Oo+")",Rl="[^"+di+"]",ma="(?:\\ud83c[\\udde6-\\uddff]){2}",ko="[\\ud800-\\udbff][\\udc00-\\udfff]",Ma="["+Ro+"]",hi="\\u200d",$s="(?:"+Pa+"|"+is+")",on="(?:"+Ma+"|"+is+")",mi="(?:"+Us+"(?:d|ll|m|re|s|t|ve))?",Do="(?:"+Us+"(?:D|LL|M|RE|S|T|VE))?",It=os+"?",Vs="["+Ao+"]?",gr="(?:"+hi+"(?:"+[Rl,ma,ko].join("|")+")"+Vs+It+")*",Ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ja="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eo=Vs+It+gr,Cr="(?:"+[ha,ma,ko].join("|")+")"+eo,er="(?:"+[Rl+Dr+"?",Dr,ma,ko,js].join("|")+")",Po=RegExp(Us,"g"),Hr=RegExp(Dr,"g"),ur=RegExp(Oo+"(?="+Oo+")|"+er+eo,"g"),ea=RegExp([Ma+"?"+Pa+"+"+mi+"(?="+[pi,Ma,"$"].join("|")+")",on+"+"+Do+"(?="+[pi,Ma+$s,"$"].join("|")+")",Ma+"?"+$s+"+"+mi,Ma+"+"+Do,ja,Ii,Da,Cr].join("|"),"g"),xu=RegExp("["+hi+di+Mi+Ao+"]"),to=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vi=["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"],Hs=-1,pn={};pn[jt]=pn[xn]=pn[je]=pn[rt]=pn[xt]=pn[dn]=pn[Xt]=pn[wn]=pn[Dn]=!0,pn[st]=pn[mt]=pn[Tt]=pn[Qe]=pn[ke]=pn[vt]=pn[zt]=pn[We]=pn[ye]=pn[Mt]=pn[St]=pn[Bt]=pn[fn]=pn[kn]=pn[Ze]=!1;var Pn={};Pn[st]=Pn[mt]=Pn[Tt]=Pn[ke]=Pn[Qe]=Pn[vt]=Pn[jt]=Pn[xn]=Pn[je]=Pn[rt]=Pn[xt]=Pn[ye]=Pn[Mt]=Pn[St]=Pn[Bt]=Pn[fn]=Pn[kn]=Pn[hn]=Pn[dn]=Pn[Xt]=Pn[wn]=Pn[Dn]=!0,Pn[zt]=Pn[We]=Pn[Ze]=!1;var Al={\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"},Ia={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Q={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},de=parseFloat,at=parseInt,sn=typeof cc=="object"&&cc&&cc.Object===Object&&cc,Mn=typeof self=="object"&&self&&self.Object===Object&&self,Vt=sn||Mn||Function("return this")(),b=t&&!t.nodeType&&t,R=b&&!0&&e&&!e.nodeType&&e,$=R&&R.exports===b,G=$&&sn.process,ne=function(){try{var ae=R&&R.require&&R.require("util").types;return ae||G&&G.binding&&G.binding("util")}catch{}}(),Fe=ne&&ne.isArrayBuffer,xe=ne&&ne.isDate,$e=ne&&ne.isMap,it=ne&&ne.isRegExp,gt=ne&&ne.isSet,Nt=ne&&ne.isTypedArray;function pt(ae,Ne,ge){switch(ge.length){case 0:return ae.call(Ne);case 1:return ae.call(Ne,ge[0]);case 2:return ae.call(Ne,ge[0],ge[1]);case 3:return ae.call(Ne,ge[0],ge[1],ge[2])}return ae.apply(Ne,ge)}function Lt(ae,Ne,ge,ft){for(var en=-1,Hn=ae==null?0:ae.length;++en<Hn;){var Wr=ae[en];Ne(ft,Wr,ge(Wr),ae)}return ft}function wt(ae,Ne){for(var ge=-1,ft=ae==null?0:ae.length;++ge<ft&&Ne(ae[ge],ge,ae)!==!1;);return ae}function Dt(ae,Ne){for(var ge=ae==null?0:ae.length;ge--&&Ne(ae[ge],ge,ae)!==!1;);return ae}function gi(ae,Ne){for(var ge=-1,ft=ae==null?0:ae.length;++ge<ft;)if(!Ne(ae[ge],ge,ae))return!1;return!0}function va(ae,Ne){for(var ge=-1,ft=ae==null?0:ae.length,en=0,Hn=[];++ge<ft;){var Wr=ae[ge];Ne(Wr,ge,ae)&&(Hn[en++]=Wr)}return Hn}function Mo(ae,Ne){var ge=ae==null?0:ae.length;return!!ge&&Cu(ae,Ne,0)>-1}function wu(ae,Ne,ge){for(var ft=-1,en=ae==null?0:ae.length;++ft<en;)if(ge(Ne,ae[ft]))return!0;return!1}function Nn(ae,Ne){for(var ge=-1,ft=ae==null?0:ae.length,en=Array(ft);++ge<ft;)en[ge]=Ne(ae[ge],ge,ae);return en}function yi(ae,Ne){for(var ge=-1,ft=Ne.length,en=ae.length;++ge<ft;)ae[en+ge]=Ne[ge];return ae}function ss(ae,Ne,ge,ft){var en=-1,Hn=ae==null?0:ae.length;for(ft&&Hn&&(ge=ae[++en]);++en<Hn;)ge=Ne(ge,ae[en],en,ae);return ge}function Qf(ae,Ne,ge,ft){var en=ae==null?0:ae.length;for(ft&&en&&(ge=ae[--en]);en--;)ge=Ne(ge,ae[en],en,ae);return ge}function cv(ae,Ne){for(var ge=-1,ft=ae==null?0:ae.length;++ge<ft;)if(Ne(ae[ge],ge,ae))return!0;return!1}var vC=ed("length");function Vb(ae){return ae.split("")}function fv(ae){return ae.match(nn)||[]}function dv(ae,Ne,ge){var ft;return ge(ae,function(en,Hn,Wr){if(Ne(en,Hn,Wr))return ft=Hn,!1}),ft}function Jf(ae,Ne,ge,ft){for(var en=ae.length,Hn=ge+(ft?1:-1);ft?Hn--:++Hn<en;)if(Ne(ae[Hn],Hn,ae))return Hn;return-1}function Cu(ae,Ne,ge){return Ne===Ne?mv(ae,Ne,ge):Jf(ae,ls,ge)}function gC(ae,Ne,ge,ft){for(var en=ge-1,Hn=ae.length;++en<Hn;)if(ft(ae[en],Ne))return en;return-1}function ls(ae){return ae!==ae}function Hb(ae,Ne){var ge=ae==null?0:ae.length;return ge?Sc(ae,Ne)/ge:pe}function ed(ae){return function(Ne){return Ne==null?r:Ne[ae]}}function td(ae){return function(Ne){return ae==null?r:ae[Ne]}}function Qp(ae,Ne,ge,ft,en){return en(ae,function(Hn,Wr,qn){ge=ft?(ft=!1,Hn):Ne(ge,Hn,Wr,qn)}),ge}function yC(ae,Ne){var ge=ae.length;for(ae.sort(Ne);ge--;)ae[ge]=ae[ge].value;return ae}function Sc(ae,Ne){for(var ge,ft=-1,en=ae.length;++ft<en;){var Hn=Ne(ae[ft]);Hn!==r&&(ge=ge===r?Hn:ge+Hn)}return ge}function Jp(ae,Ne){for(var ge=-1,ft=Array(ae);++ge<ae;)ft[ge]=Ne(ge);return ft}function bi(ae,Ne){return Nn(Ne,function(ge){return[ge,ae[ge]]})}function us(ae){return ae&&ae.slice(0,Kb(ae)+1).replace(ka,"")}function Bn(ae){return function(Ne){return ae(Ne)}}function Io(ae,Ne){return Nn(Ne,function(ge){return ae[ge]})}function _u(ae,Ne){return ae.has(Ne)}function nd(ae,Ne){for(var ge=-1,ft=ae.length;++ge<ft&&Cu(Ne,ae[ge],0)>-1;);return ge}function Wb(ae,Ne){for(var ge=ae.length;ge--&&Cu(Ne,ae[ge],0)>-1;);return ge}function rd(ae,Ne){for(var ge=ae.length,ft=0;ge--;)ae[ge]===Ne&&++ft;return ft}var bC=td(Al),SC=td(Ia);function pv(ae){return"\\"+Q[ae]}function xC(ae,Ne){return ae==null?r:ae[Ne]}function xc(ae){return xu.test(ae)}function wC(ae){return to.test(ae)}function Gb(ae){for(var Ne,ge=[];!(Ne=ae.next()).done;)ge.push(Ne.value);return ge}function hv(ae){var Ne=-1,ge=Array(ae.size);return ae.forEach(function(ft,en){ge[++Ne]=[en,ft]}),ge}function Yb(ae,Ne){return function(ge){return ae(Ne(ge))}}function Ol(ae,Ne){for(var ge=-1,ft=ae.length,en=0,Hn=[];++ge<ft;){var Wr=ae[ge];(Wr===Ne||Wr===S)&&(ae[ge]=S,Hn[en++]=ge)}return Hn}function ad(ae){var Ne=-1,ge=Array(ae.size);return ae.forEach(function(ft){ge[++Ne]=ft}),ge}function wc(ae){var Ne=-1,ge=Array(ae.size);return ae.forEach(function(ft){ge[++Ne]=[ft,ft]}),ge}function mv(ae,Ne,ge){for(var ft=ge-1,en=ae.length;++ft<en;)if(ae[ft]===Ne)return ft;return-1}function qb(ae,Ne,ge){for(var ft=ge+1;ft--;)if(ae[ft]===Ne)return ft;return ft}function Eu(ae){return xc(ae)?_C(ae):vC(ae)}function Lo(ae){return xc(ae)?EC(ae):Vb(ae)}function Kb(ae){for(var Ne=ae.length;Ne--&&q.test(ae.charAt(Ne)););return Ne}var CC=td(W);function _C(ae){for(var Ne=ur.lastIndex=0;ur.test(ae);)++Ne;return Ne}function EC(ae){return ae.match(ur)||[]}function TC(ae){return ae.match(ea)||[]}var NC=function ae(Ne){Ne=Ne==null?Vt:Cc.defaults(Vt.Object(),Ne,Cc.pick(Vt,vi));var ge=Ne.Array,ft=Ne.Date,en=Ne.Error,Hn=Ne.Function,Wr=Ne.Math,qn=Ne.Object,Ws=Ne.RegExp,eh=Ne.String,Li=Ne.TypeError,Gs=ge.prototype,RC=Hn.prototype,_c=qn.prototype,th=Ne["__core-js_shared__"],nh=RC.toString,Kn=_c.hasOwnProperty,Xb=0,Zb=function(){var l=/[^.]+$/.exec(th&&th.keys&&th.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),id=_c.toString,$a=nh.call(qn),Qb=Vt._,AC=Ws("^"+nh.call(Kn).replace(Oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rh=$?Ne.Buffer:r,kl=Ne.Symbol,ah=Ne.Uint8Array,Jb=rh?rh.allocUnsafe:r,od=Yb(qn.getPrototypeOf,qn),ih=qn.create,Ec=_c.propertyIsEnumerable,oh=Gs.splice,Tc=kl?kl.isConcatSpreadable:r,sd=kl?kl.iterator:r,Tu=kl?kl.toStringTag:r,sh=function(){try{var l=Ll(qn,"defineProperty");return l({},"",{}),l}catch{}}(),vv=Ne.clearTimeout!==Vt.clearTimeout&&Ne.clearTimeout,gv=ft&&ft.now!==Vt.Date.now&&ft.now,Nc=Ne.setTimeout!==Vt.setTimeout&&Ne.setTimeout,Ys=Wr.ceil,ld=Wr.floor,yv=qn.getOwnPropertySymbols,e0=rh?rh.isBuffer:r,t0=Ne.isFinite,n0=Gs.join,r0=Yb(qn.keys,qn),Fr=Wr.max,ta=Wr.min,OC=ft.now,a0=Ne.parseInt,i0=Wr.random,kC=Gs.reverse,bv=Ll(Ne,"DataView"),qs=Ll(Ne,"Map"),ud=Ll(Ne,"Promise"),cs=Ll(Ne,"Set"),Rc=Ll(Ne,"WeakMap"),Ac=Ll(qn,"create"),Oc=Rc&&new Rc,kc={},Dc=Bu(bv),lh=Bu(qs),uh=Bu(ud),Sv=Bu(cs),DC=Bu(Rc),Pc=kl?kl.prototype:r,cd=Pc?Pc.valueOf:r,o0=Pc?Pc.toString:r;function L(l){if(Er(l)&&!rn(l)&&!(l instanceof _n)){if(l instanceof no)return l;if(Kn.call(l,"__wrapped__"))return F0(l)}return new no(l)}var Dl=function(){function l(){}return function(d){if(!br(d))return{};if(ih)return ih(d);l.prototype=d;var g=new l;return l.prototype=r,g}}();function Ks(){}function no(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}L.templateSettings={escape:wo,evaluate:Jo,interpolate:es,variable:"",imports:{_:L}},L.prototype=Ks.prototype,L.prototype.constructor=L,no.prototype=Dl(Ks.prototype),no.prototype.constructor=no;function _n(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function kt(){var l=new _n(this.__wrapped__);return l.__actions__=ra(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=ra(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=ra(this.__views__),l}function Mc(){if(this.__filtered__){var l=new _n(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function zr(){var l=this.__wrapped__.value(),d=this.__dir__,g=rn(l),E=d<0,P=g?l.length:0,U=Rh(0,P,this.__views__),Y=U.start,Z=U.end,ie=Z-Y,De=E?Z:Y-1,Ae=this.__iteratees__,Pe=Ae.length,Xe=0,dt=ta(ie,this.__takeCount__);if(!g||!E&&P==ie&&dt==ie)return gh(l,this.__actions__);var Ot=[];e:for(;ie--&&Xe<dt;){De+=d;for(var cn=-1,Pt=l[De];++cn<Pe;){var vn=Ae[cn],En=vn.iteratee,za=vn.type,dr=En(Pt);if(za==Re)Pt=dr;else if(!dr){if(za==ce)continue e;break e}}Ot[Xe++]=Pt}return Ot}_n.prototype=Dl(Ks.prototype),_n.prototype.constructor=_n;function ln(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Nu(){this.__data__=Ac?Ac(null):{},this.size=0}function fd(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function xv(l){var d=this.__data__;if(Ac){var g=d[l];return g===m?r:g}return Kn.call(d,l)?d[l]:r}function Ln(l){var d=this.__data__;return Ac?d[l]!==r:Kn.call(d,l)}function Xs(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Ac&&d===r?m:d,this}ln.prototype.clear=Nu,ln.prototype.delete=fd,ln.prototype.get=xv,ln.prototype.has=Ln,ln.prototype.set=Xs;function La(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function Ru(){this.__data__=[],this.size=0}function Fo(l){var d=this.__data__,g=ph(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():oh.call(d,g,1),--this.size,!0}function Zs(l){var d=this.__data__,g=ph(d,l);return g<0?r:d[g][1]}function Au(l){return ph(this.__data__,l)>-1}function ch(l,d){var g=this.__data__,E=ph(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}La.prototype.clear=Ru,La.prototype.delete=Fo,La.prototype.get=Zs,La.prototype.has=Au,La.prototype.set=ch;function Qs(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function PC(){this.size=0,this.__data__={hash:new ln,map:new(qs||La),string:new ln}}function dd(l){var d=Th(this,l).delete(l);return this.size-=d?1:0,d}function Va(l){return Th(this,l).get(l)}function wv(l){return Th(this,l).has(l)}function s0(l,d){var g=Th(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}Qs.prototype.clear=PC,Qs.prototype.delete=dd,Qs.prototype.get=Va,Qs.prototype.has=wv,Qs.prototype.set=s0;function Js(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new Qs;++d<g;)this.add(l[d])}function Ou(l){return this.__data__.set(l,m),this}function Cv(l){return this.__data__.has(l)}Js.prototype.add=Js.prototype.push=Ou,Js.prototype.has=Cv;function Gr(l){var d=this.__data__=new La(l);this.size=d.size}function fh(){this.__data__=new La,this.size=0}function _v(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function Ev(l){return this.__data__.get(l)}function pd(l){return this.__data__.has(l)}function Ic(l,d){var g=this.__data__;if(g instanceof La){var E=g.__data__;if(!qs||E.length<o-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new Qs(E)}return g.set(l,d),this.size=g.size,this}Gr.prototype.clear=fh,Gr.prototype.delete=_v,Gr.prototype.get=Ev,Gr.prototype.has=pd,Gr.prototype.set=Ic;function fs(l,d){var g=rn(l),E=!g&&ju(l),P=!g&&!E&&xs(l),U=!g&&!E&&!P&&Ul(l),Y=g||E||P||U,Z=Y?Jp(l.length,eh):[],ie=Z.length;for(var De in l)(d||Kn.call(l,De))&&!(Y&&(De=="length"||P&&(De=="offset"||De=="parent")||U&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||ys(De,ie)))&&Z.push(De);return Z}function l0(l){var d=l.length;return d?l[ro(0,d-1)]:r}function ku(l,d){return Oh(ra(l),Pl(d,0,l.length))}function u0(l){return Oh(ra(l))}function dh(l,d,g){(g!==r&&!Bo(l[d],g)||g===r&&!(d in l))&&ds(l,d,g)}function hd(l,d,g){var E=l[d];(!(Kn.call(l,d)&&Bo(E,g))||g===r&&!(d in l))&&ds(l,d,g)}function ph(l,d){for(var g=l.length;g--;)if(Bo(l[g][0],d))return g;return-1}function c0(l,d,g,E){return Ml(l,function(P,U,Y){d(E,P,g(P),Y)}),E}function Tv(l,d){return l&&Fa(d,oa(d),l)}function f0(l,d){return l&&Fa(d,Ci(d),l)}function ds(l,d,g){d=="__proto__"&&sh?sh(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function Nv(l,d){for(var g=-1,E=d.length,P=ge(E),U=l==null;++g<E;)P[g]=U?r:Sg(l,d[g]);return P}function Pl(l,d,g){return l===l&&(g!==r&&(l=l<=g?l:g),d!==r&&(l=l>=d?l:d)),l}function Fi(l,d,g,E,P,U){var Y,Z=d&x,ie=d&C,De=d&_;if(g&&(Y=P?g(l,E,P,U):g(l)),Y!==r)return Y;if(!br(l))return l;var Ae=rn(l);if(Ae){if(Y=aa(l),!Z)return ra(l,Y)}else{var Pe=yr(l),Xe=Pe==We||Pe==Yt;if(xs(l))return Sh(l,Z);if(Pe==St||Pe==st||Xe&&!P){if(Y=ie||Xe?{}:k0(l),!Z)return ie?HC(l,f0(Y,l)):Ui(l,Tv(Y,l))}else{if(!Pn[Pe])return P?l:{};Y=YC(l,Pe,Z)}}U||(U=new Gr);var dt=U.get(l);if(dt)return dt;U.set(l,Y),vg(l)?l.forEach(function(Pt){Y.add(Fi(Pt,d,g,Pt,l,U))}):mg(l)&&l.forEach(function(Pt,vn){Y.set(vn,Fi(Pt,d,g,vn,l,U))});var Ot=De?ie?zu:Rd:ie?Ci:oa,cn=Ae?r:Ot(l);return wt(cn||l,function(Pt,vn){cn&&(vn=Pt,Pt=l[vn]),hd(Y,vn,Fi(Pt,d,g,vn,l,U))}),Y}function MC(l){var d=oa(l);return function(g){return d0(g,l,d)}}function d0(l,d,g){var E=g.length;if(l==null)return!E;for(l=qn(l);E--;){var P=g[E],U=d[P],Y=l[P];if(Y===r&&!(P in l)||!U(Y))return!1}return!0}function p0(l,d,g){if(typeof l!="function")throw new Li(u);return al(function(){l.apply(r,g)},d)}function Ar(l,d,g,E){var P=-1,U=Mo,Y=!0,Z=l.length,ie=[],De=d.length;if(!Z)return ie;g&&(d=Nn(d,Bn(g))),E?(U=wu,Y=!1):d.length>=o&&(U=_u,Y=!1,d=new Js(d));e:for(;++P<Z;){var Ae=l[P],Pe=g==null?Ae:g(Ae);if(Ae=E||Ae!==0?Ae:0,Y&&Pe===Pe){for(var Xe=De;Xe--;)if(d[Xe]===Pe)continue e;ie.push(Ae)}else U(d,Pe,E)||ie.push(Ae)}return ie}var Ml=Cd(fr),md=Cd(nt,!0);function Rv(l,d){var g=!0;return Ml(l,function(E,P,U){return g=!!d(E,P,U),g}),g}function ps(l,d,g){for(var E=-1,P=l.length;++E<P;){var U=l[E],Y=d(U);if(Y!=null&&(Z===r?Y===Y&&!bn(Y):g(Y,Z)))var Z=Y,ie=U}return ie}function IC(l,d,g,E){var P=l.length;for(g=tn(g),g<0&&(g=-g>P?0:P+g),E=E===r||E>P?P:tn(E),E<0&&(E+=P),E=g>E?0:Vu(E);g<E;)l[g++]=d;return l}function hh(l,d){var g=[];return Ml(l,function(E,P,U){d(E,P,U)&&g.push(E)}),g}function ga(l,d,g,E,P){var U=-1,Y=l.length;for(g||(g=qv),P||(P=[]);++U<Y;){var Z=l[U];d>0&&g(Z)?d>1?ga(Z,d-1,g,E,P):yi(P,Z):E||(P[P.length]=Z)}return P}var Av=Vc(),Du=Vc(!0);function fr(l,d){return l&&Av(l,d,oa)}function nt(l,d){return l&&Du(l,d,oa)}function zi(l,d){return va(d,function(g){return ws(l[g])})}function ya(l,d){d=ms(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[xi(d[g++])];return g&&g==E?l:r}function h0(l,d,g){var E=d(l);return rn(l)?E:yi(E,g(l))}function Ha(l){return l==null?l===r?Ve:Kt:Tu&&Tu in qn(l)?O0(l):Qv(l)}function Ov(l,d){return l>d}function LC(l,d){return l!=null&&Kn.call(l,d)}function FC(l,d){return l!=null&&d in qn(l)}function na(l,d,g){return l>=ta(d,g)&&l<Fr(d,g)}function kv(l,d,g){for(var E=g?wu:Mo,P=l[0].length,U=l.length,Y=U,Z=ge(U),ie=1/0,De=[];Y--;){var Ae=l[Y];Y&&d&&(Ae=Nn(Ae,Bn(d))),ie=ta(Ae.length,ie),Z[Y]=!g&&(d||P>=120&&Ae.length>=120)?new Js(Y&&Ae):r}Ae=l[0];var Pe=-1,Xe=Z[0];e:for(;++Pe<P&&De.length<ie;){var dt=Ae[Pe],Ot=d?d(dt):dt;if(dt=g||dt!==0?dt:0,!(Xe?_u(Xe,Ot):E(De,Ot,g))){for(Y=U;--Y;){var cn=Z[Y];if(!(cn?_u(cn,Ot):E(l[Y],Ot,g)))continue e}Xe&&Xe.push(Ot),De.push(dt)}}return De}function zC(l,d,g,E){return fr(l,function(P,U,Y){d(E,g(P),U,Y)}),E}function vd(l,d,g){d=ms(d,l),l=rl(l,d);var E=l==null?l:l[xi(io(d))];return E==null?r:pt(E,l,g)}function Dv(l){return Er(l)&&Ha(l)==st}function gd(l){return Er(l)&&Ha(l)==Tt}function Lc(l){return Er(l)&&Ha(l)==vt}function yd(l,d,g,E,P){return l===d?!0:l==null||d==null||!Er(l)&&!Er(d)?l!==l&&d!==d:BC(l,d,g,E,yd,P)}function BC(l,d,g,E,P,U){var Y=rn(l),Z=rn(d),ie=Y?mt:yr(l),De=Z?mt:yr(d);ie=ie==st?St:ie,De=De==st?St:De;var Ae=ie==St,Pe=De==St,Xe=ie==De;if(Xe&&xs(l)){if(!xs(d))return!1;Y=!0,Ae=!1}if(Xe&&!Ae)return U||(U=new Gr),Y||Ul(l)?Nd(l,d,g,E,P,U):A0(l,d,ie,g,E,P,U);if(!(g&N)){var dt=Ae&&Kn.call(l,"__wrapped__"),Ot=Pe&&Kn.call(d,"__wrapped__");if(dt||Ot){var cn=dt?l.value():l,Pt=Ot?d.value():d;return U||(U=new Gr),P(cn,Pt,g,E,U)}}return Xe?(U||(U=new Gr),tD(l,d,g,E,P,U)):!1}function UC(l){return Er(l)&&yr(l)==ye}function Pv(l,d,g,E){var P=g.length,U=P,Y=!E;if(l==null)return!U;for(l=qn(l);P--;){var Z=g[P];if(Y&&Z[2]?Z[1]!==l[Z[0]]:!(Z[0]in l))return!1}for(;++P<U;){Z=g[P];var ie=Z[0],De=l[ie],Ae=Z[1];if(Y&&Z[2]){if(De===r&&!(ie in l))return!1}else{var Pe=new Gr;if(E)var Xe=E(De,Ae,ie,l,d,Pe);if(!(Xe===r?yd(Ae,De,N|O,E,Pe):Xe))return!1}}return!0}function m0(l){if(!br(l)||Xv(l))return!1;var d=ws(l)?AC:Lr;return d.test(Bu(l))}function jC(l){return Er(l)&&Ha(l)==Bt}function v0(l){return Er(l)&&yr(l)==fn}function g0(l){return Er(l)&&Wd(l.length)&&!!pn[Ha(l)]}function y0(l){return typeof l=="function"?l:l==null?_i:typeof l=="object"?rn(l)?Lv(l[0],l[1]):S0(l):ep(l)}function Mv(l){if(!Yc(l))return r0(l);var d=[];for(var g in qn(l))Kn.call(l,g)&&g!="constructor"&&d.push(g);return d}function $C(l){if(!br(l))return QC(l);var d=Yc(l),g=[];for(var E in l)E=="constructor"&&(d||!Kn.call(l,E))||g.push(E);return g}function Iv(l,d){return l<d}function b0(l,d){var g=-1,E=qr(l)?ge(l.length):[];return Ml(l,function(P,U,Y){E[++g]=d(P,U,Y)}),E}function S0(l){var d=Nh(l);return d.length==1&&d[0][2]?Zv(d[0][0],d[0][1]):function(g){return g===l||Pv(g,l,d)}}function Lv(l,d){return Ah(l)&&D0(d)?Zv(xi(l),d):function(g){var E=Sg(g,l);return E===r&&E===d?nf(g,l):yd(d,E,N|O)}}function mh(l,d,g,E,P){l!==d&&Av(d,function(U,Y){if(P||(P=new Gr),br(U))x0(l,d,Y,g,mh,E,P);else{var Z=E?E(bs(l,Y),U,Y+"",l,d,P):r;Z===r&&(Z=U),dh(l,Y,Z)}},Ci)}function x0(l,d,g,E,P,U,Y){var Z=bs(l,g),ie=bs(d,g),De=Y.get(ie);if(De){dh(l,g,De);return}var Ae=U?U(Z,ie,g+"",l,d,Y):r,Pe=Ae===r;if(Pe){var Xe=rn(ie),dt=!Xe&&xs(ie),Ot=!Xe&&!dt&&Ul(ie);Ae=ie,Xe||dt||Ot?rn(Z)?Ae=Z:_r(Z)?Ae=ra(Z):dt?(Pe=!1,Ae=Sh(ie,!0)):Ot?(Pe=!1,Ae=xh(ie,!0)):Ae=[]:$u(ie)||ju(ie)?(Ae=Z,ju(Z)?Ae=yg(Z):(!br(Z)||ws(Z))&&(Ae=k0(ie))):Pe=!1}Pe&&(Y.set(ie,Ae),P(Ae,ie,E,U,Y),Y.delete(ie)),dh(l,g,Ae)}function w0(l,d){var g=l.length;if(!!g)return d+=d<0?g:0,ys(d,g)?l[d]:r}function C0(l,d,g){d.length?d=Nn(d,function(U){return rn(U)?function(Y){return ya(Y,U.length===1?U[0]:U)}:U}):d=[_i];var E=-1;d=Nn(d,Bn(At()));var P=b0(l,function(U,Y,Z){var ie=Nn(d,function(De){return De(U)});return{criteria:ie,index:++E,value:U}});return yC(P,function(U,Y){return E0(U,Y,g)})}function Fv(l,d){return Rt(l,d,function(g,E){return nf(l,E)})}function Rt(l,d,g){for(var E=-1,P=d.length,U={};++E<P;){var Y=d[E],Z=ya(l,Y);g(Z,Y)&&Me(U,ms(Y,l),Z)}return U}function yn(l){return function(d){return ya(d,l)}}function Un(l,d,g,E){var P=E?gC:Cu,U=-1,Y=d.length,Z=l;for(l===d&&(d=ra(d)),g&&(Z=Nn(l,Bn(g)));++U<Y;)for(var ie=0,De=d[U],Ae=g?g(De):De;(ie=P(Z,Ae,ie,E))>-1;)Z!==l&&oh.call(Z,ie,1),oh.call(l,ie,1);return l}function Pr(l,d){for(var g=l?d.length:0,E=g-1;g--;){var P=d[g];if(g==E||P!==U){var U=P;ys(P)?oh.call(l,P,1):bd(l,P)}}return l}function ro(l,d){return l+ld(i0()*(d-l+1))}function _0(l,d,g,E){for(var P=-1,U=Fr(Ys((d-l)/(g||1)),0),Y=ge(U);U--;)Y[E?U:++P]=l,l+=g;return Y}function zv(l,d){var g="";if(!l||d<1||d>Se)return g;do d%2&&(g+=l),d=ld(d/2),d&&(l+=l);while(d);return g}function mn(l,d){return Ss(kd(l,d,_i),l+"")}function VC(l){return l0(rf(l))}function Bv(l,d){var g=rf(l);return Oh(g,Pl(d,0,g.length))}function Me(l,d,g,E){if(!br(l))return l;d=ms(d,l);for(var P=-1,U=d.length,Y=U-1,Z=l;Z!=null&&++P<U;){var ie=xi(d[P]),De=g;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return l;if(P!=Y){var Ae=Z[ie];De=E?E(Ae,ie,Z):r,De===r&&(De=br(Ae)?Ae:ys(d[P+1])?[]:{})}hd(Z,ie,De),Z=Z[ie]}return l}var Yr=Oc?function(l,d){return Oc.set(l,d),l}:_i,Ut=sh?function(l,d){return sh(l,"toString",{configurable:!0,enumerable:!1,value:kg(d),writable:!0})}:_i;function Fc(l){return Oh(rf(l))}function Br(l,d,g){var E=-1,P=l.length;d<0&&(d=-d>P?0:P+d),g=g>P?P:g,g<0&&(g+=P),P=d>g?0:g-d>>>0,d>>>=0;for(var U=ge(P);++E<P;)U[E]=l[E+d];return U}function Pu(l,d){var g;return Ml(l,function(E,P,U){return g=d(E,P,U),!g}),!!g}function Bi(l,d,g){var E=0,P=l==null?E:l.length;if(typeof d=="number"&&d===d&&P<=Le){for(;E<P;){var U=E+P>>>1,Y=l[U];Y!==null&&!bn(Y)&&(g?Y<=d:Y<d)?E=U+1:P=U}return P}return Mu(l,d,_i,g)}function Mu(l,d,g,E){var P=0,U=l==null?0:l.length;if(U===0)return 0;d=g(d);for(var Y=d!==d,Z=d===null,ie=bn(d),De=d===r;P<U;){var Ae=ld((P+U)/2),Pe=g(l[Ae]),Xe=Pe!==r,dt=Pe===null,Ot=Pe===Pe,cn=bn(Pe);if(Y)var Pt=E||Ot;else De?Pt=Ot&&(E||Xe):Z?Pt=Ot&&Xe&&(E||!dt):ie?Pt=Ot&&Xe&&!dt&&(E||!cn):dt||cn?Pt=!1:Pt=E?Pe<=d:Pe<d;Pt?P=Ae+1:U=Ae}return ta(U,Ie)}function Iu(l,d){for(var g=-1,E=l.length,P=0,U=[];++g<E;){var Y=l[g],Z=d?d(Y):Y;if(!g||!Bo(Z,ie)){var ie=Z;U[P++]=Y===0?0:Y}}return U}function zc(l){return typeof l=="number"?l:bn(l)?pe:+l}function Wa(l){if(typeof l=="string")return l;if(rn(l))return Nn(l,Wa)+"";if(bn(l))return o0?o0.call(l):"";var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function hs(l,d,g){var E=-1,P=Mo,U=l.length,Y=!0,Z=[],ie=Z;if(g)Y=!1,P=wu;else if(U>=o){var De=d?null:Td(l);if(De)return ad(De);Y=!1,P=_u,ie=new Js}else ie=d?[]:Z;e:for(;++E<U;){var Ae=l[E],Pe=d?d(Ae):Ae;if(Ae=g||Ae!==0?Ae:0,Y&&Pe===Pe){for(var Xe=ie.length;Xe--;)if(ie[Xe]===Pe)continue e;d&&ie.push(Pe),Z.push(Ae)}else P(ie,Pe,g)||(ie!==Z&&ie.push(Pe),Z.push(Ae))}return Z}function bd(l,d){return d=ms(d,l),l=rl(l,d),l==null||delete l[xi(io(d))]}function vh(l,d,g,E){return Me(l,d,g(ya(l,d)),E)}function Bc(l,d,g,E){for(var P=l.length,U=E?P:-1;(E?U--:++U<P)&&d(l[U],U,l););return g?Br(l,E?0:U,E?U+1:P):Br(l,E?U+1:0,E?P:U)}function gh(l,d){var g=l;return g instanceof _n&&(g=g.value()),ss(d,function(E,P){return P.func.apply(P.thisArg,yi([E],P.args))},g)}function Sd(l,d,g){var E=l.length;if(E<2)return E?hs(l[0]):[];for(var P=-1,U=ge(E);++P<E;)for(var Y=l[P],Z=-1;++Z<E;)Z!=P&&(U[P]=Ar(U[P]||Y,l[Z],d,g));return hs(ga(U,1),d,g)}function yh(l,d,g){for(var E=-1,P=l.length,U=d.length,Y={};++E<P;){var Z=E<U?d[E]:r;g(Y,l[E],Z)}return Y}function xd(l){return _r(l)?l:[]}function wd(l){return typeof l=="function"?l:_i}function ms(l,d){return rn(l)?l:Ah(l,d)?[l]:Jv(Gn(l))}var Uv=mn;function vs(l,d,g){var E=l.length;return g=g===r?E:g,!d&&g>=E?l:Br(l,d,g)}var bh=vv||function(l){return Vt.clearTimeout(l)};function Sh(l,d){if(d)return l.slice();var g=l.length,E=Jb?Jb(g):new l.constructor(g);return l.copy(E),E}function Uc(l){var d=new l.constructor(l.byteLength);return new ah(d).set(new ah(l)),d}function jc(l,d){var g=d?Uc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function jv(l){var d=new l.constructor(l.source,zn.exec(l));return d.lastIndex=l.lastIndex,d}function $v(l){return cd?qn(cd.call(l)):{}}function xh(l,d){var g=d?Uc(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function wh(l,d){if(l!==d){var g=l!==r,E=l===null,P=l===l,U=bn(l),Y=d!==r,Z=d===null,ie=d===d,De=bn(d);if(!Z&&!De&&!U&&l>d||U&&Y&&ie&&!Z&&!De||E&&Y&&ie||!g&&ie||!P)return 1;if(!E&&!U&&!De&&l<d||De&&g&&P&&!E&&!U||Z&&g&&P||!Y&&P||!ie)return-1}return 0}function E0(l,d,g){for(var E=-1,P=l.criteria,U=d.criteria,Y=P.length,Z=g.length;++E<Y;){var ie=wh(P[E],U[E]);if(ie){if(E>=Z)return ie;var De=g[E];return ie*(De=="desc"?-1:1)}}return l.index-d.index}function $c(l,d,g,E){for(var P=-1,U=l.length,Y=g.length,Z=-1,ie=d.length,De=Fr(U-Y,0),Ae=ge(ie+De),Pe=!E;++Z<ie;)Ae[Z]=d[Z];for(;++P<Y;)(Pe||P<U)&&(Ae[g[P]]=l[P]);for(;De--;)Ae[Z++]=l[P++];return Ae}function Vv(l,d,g,E){for(var P=-1,U=l.length,Y=-1,Z=g.length,ie=-1,De=d.length,Ae=Fr(U-Z,0),Pe=ge(Ae+De),Xe=!E;++P<Ae;)Pe[P]=l[P];for(var dt=P;++ie<De;)Pe[dt+ie]=d[ie];for(;++Y<Z;)(Xe||P<U)&&(Pe[dt+g[Y]]=l[P++]);return Pe}function ra(l,d){var g=-1,E=l.length;for(d||(d=ge(E));++g<E;)d[g]=l[g];return d}function Fa(l,d,g,E){var P=!g;g||(g={});for(var U=-1,Y=d.length;++U<Y;){var Z=d[U],ie=E?E(g[Z],l[Z],Z,g,l):r;ie===r&&(ie=l[Z]),P?ds(g,Z,ie):hd(g,Z,ie)}return g}function Ui(l,d){return Fa(l,Ga(l),d)}function HC(l,d){return Fa(l,gs(l),d)}function Xn(l,d){return function(g,E){var P=rn(g)?Lt:c0,U=d?d():{};return P(g,l,At(E,2),U)}}function el(l){return mn(function(d,g){var E=-1,P=g.length,U=P>1?g[P-1]:r,Y=P>2?g[2]:r;for(U=l.length>3&&typeof U=="function"?(P--,U):r,Y&&ia(g[0],g[1],Y)&&(U=P<3?r:U,P=1),d=qn(d);++E<P;){var Z=g[E];Z&&l(d,Z,E,U)}return d})}function Cd(l,d){return function(g,E){if(g==null)return g;if(!qr(g))return l(g,E);for(var P=g.length,U=d?P:-1,Y=qn(g);(d?U--:++U<P)&&E(Y[U],U,Y)!==!1;);return g}}function Vc(l){return function(d,g,E){for(var P=-1,U=qn(d),Y=E(d),Z=Y.length;Z--;){var ie=Y[l?Z:++P];if(g(U[ie],ie,U)===!1)break}return d}}function Ch(l,d,g){var E=d&I,P=_d(l);function U(){var Y=this&&this!==Vt&&this instanceof U?P:l;return Y.apply(E?g:this,arguments)}return U}function T0(l){return function(d){d=Gn(d);var g=xc(d)?Lo(d):r,E=g?g[0]:d.charAt(0),P=g?vs(g,1).join(""):d.slice(1);return E[l]()+P}}function Hc(l){return function(d){return ss(Og(Zd(d).replace(Po,"")),l,"")}}function _d(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=Dl(l.prototype),E=l.apply(g,d);return br(E)?E:g}}function WC(l,d,g){var E=_d(l);function P(){for(var U=arguments.length,Y=ge(U),Z=U,ie=Gc(P);Z--;)Y[Z]=arguments[Z];var De=U<3&&Y[0]!==ie&&Y[U-1]!==ie?[]:Ol(Y,ie);if(U-=De.length,U<g)return R0(l,d,Wc,P.placeholder,r,Y,De,r,r,g-U);var Ae=this&&this!==Vt&&this instanceof P?E:l;return pt(Ae,this,Y)}return P}function _h(l){return function(d,g,E){var P=qn(d);if(!qr(d)){var U=At(g,3);d=oa(d),g=function(Z){return U(P[Z],Z,P)}}var Y=l(d,g,E);return Y>-1?P[U?d[Y]:Y]:r}}function N0(l){return nl(function(d){var g=d.length,E=g,P=no.prototype.thru;for(l&&d.reverse();E--;){var U=d[E];if(typeof U!="function")throw new Li(u);if(P&&!Y&&Ad(U)=="wrapper")var Y=new no([],!0)}for(E=Y?E:g;++E<g;){U=d[E];var Z=Ad(U),ie=Z=="wrapper"?Yv(U):r;ie&&Kv(ie[0])&&ie[1]==(X|z|j|fe)&&!ie[4].length&&ie[9]==1?Y=Y[Ad(ie[0])].apply(Y,ie[3]):Y=U.length==1&&Kv(U)?Y[Z]():Y.thru(U)}return function(){var De=arguments,Ae=De[0];if(Y&&De.length==1&&rn(Ae))return Y.plant(Ae).value();for(var Pe=0,Xe=g?d[Pe].apply(this,De):Ae;++Pe<g;)Xe=d[Pe].call(this,Xe);return Xe}})}function Wc(l,d,g,E,P,U,Y,Z,ie,De){var Ae=d&X,Pe=d&I,Xe=d&V,dt=d&(z|B),Ot=d&me,cn=Xe?r:_d(l);function Pt(){for(var vn=arguments.length,En=ge(vn),za=vn;za--;)En[za]=arguments[za];if(dt)var dr=Gc(Pt),qa=rd(En,dr);if(E&&(En=$c(En,E,P,dt)),U&&(En=Vv(En,U,Y,dt)),vn-=qa,dt&&vn<De){var Sr=Ol(En,dr);return R0(l,d,Wc,Pt.placeholder,g,En,Sr,Z,ie,De-vn)}var Kr=Pe?g:this,Ba=Xe?Kr[l]:l;return vn=En.length,Z?En=Fl(En,Z):Ot&&vn>1&&En.reverse(),Ae&&ie<vn&&(En.length=ie),this&&this!==Vt&&this instanceof Pt&&(Ba=cn||_d(Ba)),Ba.apply(Kr,En)}return Pt}function Hv(l,d){return function(g,E){return zC(g,l,d(E),{})}}function Eh(l,d){return function(g,E){var P;if(g===r&&E===r)return d;if(g!==r&&(P=g),E!==r){if(P===r)return E;typeof g=="string"||typeof E=="string"?(g=Wa(g),E=Wa(E)):(g=zc(g),E=zc(E)),P=l(g,E)}return P}}function Wv(l){return nl(function(d){return d=Nn(d,Bn(At())),mn(function(g){var E=this;return l(d,function(P){return pt(P,E,g)})})})}function Lu(l,d){d=d===r?" ":Wa(d);var g=d.length;if(g<2)return g?zv(d,l):d;var E=zv(d,Ys(l/Eu(d)));return xc(d)?vs(Lo(E),0,l).join(""):E.slice(0,l)}function GC(l,d,g,E){var P=d&I,U=_d(l);function Y(){for(var Z=-1,ie=arguments.length,De=-1,Ae=E.length,Pe=ge(Ae+ie),Xe=this&&this!==Vt&&this instanceof Y?U:l;++De<Ae;)Pe[De]=E[De];for(;ie--;)Pe[De++]=arguments[++Z];return pt(Xe,P?g:this,Pe)}return Y}function Gv(l){return function(d,g,E){return E&&typeof E!="number"&&ia(d,g,E)&&(g=E=r),d=il(d),g===r?(g=d,d=0):g=il(g),E=E===r?d<g?1:-1:il(E),_0(d,g,E,l)}}function Ed(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=oo(d),g=oo(g)),l(d,g)}}function R0(l,d,g,E,P,U,Y,Z,ie,De){var Ae=d&z,Pe=Ae?Y:r,Xe=Ae?r:Y,dt=Ae?U:r,Ot=Ae?r:U;d|=Ae?j:K,d&=~(Ae?K:j),d&M||(d&=~(I|V));var cn=[l,d,P,dt,Pe,Ot,Xe,Z,ie,De],Pt=g.apply(r,cn);return Kv(l)&&qc(Pt,cn),Pt.placeholder=E,M0(Pt,l,d)}function tl(l){var d=Wr[l];return function(g,E){if(g=oo(g),E=E==null?0:ta(tn(E),292),E&&t0(g)){var P=(Gn(g)+"e").split("e"),U=d(P[0]+"e"+(+P[1]+E));return P=(Gn(U)+"e").split("e"),+(P[0]+"e"+(+P[1]-E))}return d(g)}}var Td=cs&&1/ad(new cs([,-0]))[1]==oe?function(l){return new cs(l)}:Ig;function Il(l){return function(d){var g=yr(d);return g==ye?hv(d):g==fn?wc(d):bi(d,l(d))}}function zo(l,d,g,E,P,U,Y,Z){var ie=d&V;if(!ie&&typeof l!="function")throw new Li(u);var De=E?E.length:0;if(De||(d&=~(j|K),E=P=r),Y=Y===r?Y:Fr(tn(Y),0),Z=Z===r?Z:tn(Z),De-=P?P.length:0,d&K){var Ae=E,Pe=P;E=P=r}var Xe=ie?r:Yv(l),dt=[l,d,g,E,P,Ae,Pe,U,Y,Z];if(Xe&&P0(dt,Xe),l=dt[0],d=dt[1],g=dt[2],E=dt[3],P=dt[4],Z=dt[9]=dt[9]===r?ie?0:l.length:Fr(dt[9]-De,0),!Z&&d&(z|B)&&(d&=~(z|B)),!d||d==I)var Ot=Ch(l,d,g);else d==z||d==B?Ot=WC(l,d,Z):(d==j||d==(I|j))&&!P.length?Ot=GC(l,d,g,E):Ot=Wc.apply(r,dt);var cn=Xe?Yr:qc;return M0(cn(Ot,dt),l,d)}function Si(l,d,g,E){return l===r||Bo(l,_c[g])&&!Kn.call(E,g)?d:l}function Fu(l,d,g,E,P,U){return br(l)&&br(d)&&(U.set(d,l),mh(l,d,r,Fu,U),U.delete(d)),l}function un(l){return $u(l)?r:l}function Nd(l,d,g,E,P,U){var Y=g&N,Z=l.length,ie=d.length;if(Z!=ie&&!(Y&&ie>Z))return!1;var De=U.get(l),Ae=U.get(d);if(De&&Ae)return De==d&&Ae==l;var Pe=-1,Xe=!0,dt=g&O?new Js:r;for(U.set(l,d),U.set(d,l);++Pe<Z;){var Ot=l[Pe],cn=d[Pe];if(E)var Pt=Y?E(cn,Ot,Pe,d,l,U):E(Ot,cn,Pe,l,d,U);if(Pt!==r){if(Pt)continue;Xe=!1;break}if(dt){if(!cv(d,function(vn,En){if(!_u(dt,En)&&(Ot===vn||P(Ot,vn,g,E,U)))return dt.push(En)})){Xe=!1;break}}else if(!(Ot===cn||P(Ot,cn,g,E,U))){Xe=!1;break}}return U.delete(l),U.delete(d),Xe}function A0(l,d,g,E,P,U,Y){switch(g){case ke:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case Tt:return!(l.byteLength!=d.byteLength||!U(new ah(l),new ah(d)));case Qe:case vt:case Mt:return Bo(+l,+d);case zt:return l.name==d.name&&l.message==d.message;case Bt:case kn:return l==d+"";case ye:var Z=hv;case fn:var ie=E&N;if(Z||(Z=ad),l.size!=d.size&&!ie)return!1;var De=Y.get(l);if(De)return De==d;E|=O,Y.set(l,d);var Ae=Nd(Z(l),Z(d),E,P,U,Y);return Y.delete(l),Ae;case hn:if(cd)return cd.call(l)==cd.call(d)}return!1}function tD(l,d,g,E,P,U){var Y=g&N,Z=Rd(l),ie=Z.length,De=Rd(d),Ae=De.length;if(ie!=Ae&&!Y)return!1;for(var Pe=ie;Pe--;){var Xe=Z[Pe];if(!(Y?Xe in d:Kn.call(d,Xe)))return!1}var dt=U.get(l),Ot=U.get(d);if(dt&&Ot)return dt==d&&Ot==l;var cn=!0;U.set(l,d),U.set(d,l);for(var Pt=Y;++Pe<ie;){Xe=Z[Pe];var vn=l[Xe],En=d[Xe];if(E)var za=Y?E(En,vn,Xe,d,l,U):E(vn,En,Xe,l,d,U);if(!(za===r?vn===En||P(vn,En,g,E,U):za)){cn=!1;break}Pt||(Pt=Xe=="constructor")}if(cn&&!Pt){var dr=l.constructor,qa=d.constructor;dr!=qa&&"constructor"in l&&"constructor"in d&&!(typeof dr=="function"&&dr instanceof dr&&typeof qa=="function"&&qa instanceof qa)&&(cn=!1)}return U.delete(l),U.delete(d),cn}function nl(l){return Ss(kd(l,r,j0),l+"")}function Rd(l){return h0(l,oa,Ga)}function zu(l){return h0(l,Ci,gs)}var Yv=Oc?function(l){return Oc.get(l)}:Ig;function Ad(l){for(var d=l.name+"",g=kc[d],E=Kn.call(kc,d)?g.length:0;E--;){var P=g[E],U=P.func;if(U==null||U==l)return P.name}return d}function Gc(l){var d=Kn.call(L,"placeholder")?L:l;return d.placeholder}function At(){var l=L.iteratee||Pg;return l=l===Pg?y0:l,arguments.length?l(arguments[0],arguments[1]):l}function Th(l,d){var g=l.__data__;return KC(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Nh(l){for(var d=oa(l),g=d.length;g--;){var E=d[g],P=l[E];d[g]=[E,P,D0(P)]}return d}function Ll(l,d){var g=xC(l,d);return m0(g)?g:r}function O0(l){var d=Kn.call(l,Tu),g=l[Tu];try{l[Tu]=r;var E=!0}catch{}var P=id.call(l);return E&&(d?l[Tu]=g:delete l[Tu]),P}var Ga=yv?function(l){return l==null?[]:(l=qn(l),va(yv(l),function(d){return Ec.call(l,d)}))}:Fg,gs=yv?function(l){for(var d=[];l;)yi(d,Ga(l)),l=od(l);return d}:Fg,yr=Ha;(bv&&yr(new bv(new ArrayBuffer(1)))!=ke||qs&&yr(new qs)!=ye||ud&&yr(ud.resolve())!=ar||cs&&yr(new cs)!=fn||Rc&&yr(new Rc)!=Ze)&&(yr=function(l){var d=Ha(l),g=d==St?l.constructor:r,E=g?Bu(g):"";if(E)switch(E){case Dc:return ke;case lh:return ye;case uh:return ar;case Sv:return fn;case DC:return Ze}return d});function Rh(l,d,g){for(var E=-1,P=g.length;++E<P;){var U=g[E],Y=U.size;switch(U.type){case"drop":l+=Y;break;case"dropRight":d-=Y;break;case"take":d=ta(d,l+Y);break;case"takeRight":l=Fr(l,d-Y);break}}return{start:l,end:d}}function Od(l){var d=l.match(qe);return d?d[1].split(bt):[]}function ao(l,d,g){d=ms(d,l);for(var E=-1,P=d.length,U=!1;++E<P;){var Y=xi(d[E]);if(!(U=l!=null&&g(l,Y)))break;l=l[Y]}return U||++E!=P?U:(P=l==null?0:l.length,!!P&&Wd(P)&&ys(Y,P)&&(rn(l)||ju(l)))}function aa(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&Kn.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function k0(l){return typeof l.constructor=="function"&&!Yc(l)?Dl(od(l)):{}}function YC(l,d,g){var E=l.constructor;switch(d){case Tt:return Uc(l);case Qe:case vt:return new E(+l);case ke:return jc(l,g);case jt:case xn:case je:case rt:case xt:case dn:case Xt:case wn:case Dn:return xh(l,g);case ye:return new E;case Mt:case kn:return new E(l);case Bt:return jv(l);case fn:return new E;case hn:return $v(l)}}function qC(l,d){var g=d.length;if(!g)return l;var E=g-1;return d[E]=(g>1?"& ":"")+d[E],d=d.join(g>2?", ":" "),l.replace(Be,`{
/* [wrapped with `+d+`] */
`)}function qv(l){return rn(l)||ju(l)||!!(Tc&&l&&l[Tc])}function ys(l,d){var g=typeof l;return d=d??Se,!!d&&(g=="number"||g!="symbol"&&Eo.test(l))&&l>-1&&l%1==0&&l<d}function ia(l,d,g){if(!br(g))return!1;var E=typeof d;return(E=="number"?qr(g)&&ys(d,g.length):E=="string"&&d in g)?Bo(g[d],l):!1}function Ah(l,d){if(rn(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||bn(l)?!0:_o.test(l)||!Co.test(l)||d!=null&&l in qn(d)}function KC(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Kv(l){var d=Ad(l),g=L[d];if(typeof g!="function"||!(d in _n.prototype))return!1;if(l===g)return!0;var E=Yv(g);return!!E&&l===E[0]}function Xv(l){return!!Zb&&Zb in l}var XC=th?ws:zg;function Yc(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||_c;return l===g}function D0(l){return l===l&&!br(l)}function Zv(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==r||l in qn(g))}}function ZC(l){var d=Bh(l,function(E){return g.size===v&&g.clear(),E}),g=d.cache;return d}function P0(l,d){var g=l[1],E=d[1],P=g|E,U=P<(I|V|X),Y=E==X&&g==z||E==X&&g==fe&&l[7].length<=d[8]||E==(X|fe)&&d[7].length<=d[8]&&g==z;if(!(U||Y))return l;E&I&&(l[2]=d[2],P|=g&I?0:M);var Z=d[3];if(Z){var ie=l[3];l[3]=ie?$c(ie,Z,d[4]):Z,l[4]=ie?Ol(l[3],S):d[4]}return Z=d[5],Z&&(ie=l[5],l[5]=ie?Vv(ie,Z,d[6]):Z,l[6]=ie?Ol(l[5],S):d[6]),Z=d[7],Z&&(l[7]=Z),E&X&&(l[8]=l[8]==null?d[8]:ta(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=P,l}function QC(l){var d=[];if(l!=null)for(var g in qn(l))d.push(g);return d}function Qv(l){return id.call(l)}function kd(l,d,g){return d=Fr(d===r?l.length-1:d,0),function(){for(var E=arguments,P=-1,U=Fr(E.length-d,0),Y=ge(U);++P<U;)Y[P]=E[d+P];P=-1;for(var Z=ge(d+1);++P<d;)Z[P]=E[P];return Z[d]=g(Y),pt(l,this,Z)}}function rl(l,d){return d.length<2?l:ya(l,Br(d,0,-1))}function Fl(l,d){for(var g=l.length,E=ta(d.length,g),P=ra(l);E--;){var U=d[E];l[E]=ys(U,g)?P[U]:r}return l}function bs(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var qc=I0(Yr),al=Nc||function(l,d){return Vt.setTimeout(l,d)},Ss=I0(Ut);function M0(l,d,g){var E=d+"";return Ss(l,qC(E,L0(Od(E),g)))}function I0(l){var d=0,g=0;return function(){var E=OC(),P=J-(E-g);if(g=E,P>0){if(++d>=Ke)return arguments[0]}else d=0;return l.apply(r,arguments)}}function Oh(l,d){var g=-1,E=l.length,P=E-1;for(d=d===r?E:d;++g<d;){var U=ro(g,P),Y=l[U];l[U]=l[g],l[g]=Y}return l.length=d,l}var Jv=ZC(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(cr,function(g,E,P,U){d.push(P?U.replace(tt,"$1"):E||g)}),d});function xi(l){if(typeof l=="string"||bn(l))return l;var d=l+"";return d=="0"&&1/l==-oe?"-0":d}function Bu(l){if(l!=null){try{return nh.call(l)}catch{}try{return l+""}catch{}}return""}function L0(l,d){return wt(Ye,function(g){var E="_."+g[0];d&g[1]&&!Mo(l,E)&&l.push(E)}),l.sort()}function F0(l){if(l instanceof _n)return l.clone();var d=new no(l.__wrapped__,l.__chain__);return d.__actions__=ra(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function kh(l,d,g){(g?ia(l,d,g):d===r)?d=1:d=Fr(tn(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var P=0,U=0,Y=ge(Ys(E/d));P<E;)Y[U++]=Br(l,P,P+=d);return Y}function z0(l){for(var d=-1,g=l==null?0:l.length,E=0,P=[];++d<g;){var U=l[d];U&&(P[E++]=U)}return P}function JC(){var l=arguments.length;if(!l)return[];for(var d=ge(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return yi(rn(g)?ra(g):[g],ga(d,1))}var Dd=mn(function(l,d){return _r(l)?Ar(l,ga(d,1,_r,!0)):[]}),Pd=mn(function(l,d){var g=io(d);return _r(g)&&(g=r),_r(l)?Ar(l,ga(d,1,_r,!0),At(g,2)):[]}),Kc=mn(function(l,d){var g=io(d);return _r(g)&&(g=r),_r(l)?Ar(l,ga(d,1,_r,!0),r,g):[]});function eg(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),Br(l,d<0?0:d,E)):[]}function B0(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,0,d<0?0:d)):[]}function e_(l,d){return l&&l.length?Bc(l,At(d,3),!0,!0):[]}function t_(l,d){return l&&l.length?Bc(l,At(d,3),!0):[]}function n_(l,d,g,E){var P=l==null?0:l.length;return P?(g&&typeof g!="number"&&ia(l,d,g)&&(g=0,E=P),IC(l,d,g,E)):[]}function U0(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),Jf(l,At(d,3),P)}function Dh(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E-1;return g!==r&&(P=tn(g),P=g<0?Fr(E+P,0):ta(P,E-1)),Jf(l,At(d,3),P,!0)}function j0(l){var d=l==null?0:l.length;return d?ga(l,1):[]}function Ph(l){var d=l==null?0:l.length;return d?ga(l,oe):[]}function tg(l,d){var g=l==null?0:l.length;return g?(d=d===r?1:tn(d),ga(l,d)):[]}function $0(l){for(var d=-1,g=l==null?0:l.length,E={};++d<g;){var P=l[d];E[P[0]]=P[1]}return E}function V0(l){return l&&l.length?l[0]:r}function r_(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=g==null?0:tn(g);return P<0&&(P=Fr(E+P,0)),Cu(l,d,P)}function a_(l){var d=l==null?0:l.length;return d?Br(l,0,-1):[]}var i_=mn(function(l){var d=Nn(l,xd);return d.length&&d[0]===l[0]?kv(d):[]}),Md=mn(function(l){var d=io(l),g=Nn(l,xd);return d===io(g)?d=r:g.pop(),g.length&&g[0]===l[0]?kv(g,At(d,2)):[]}),ng=mn(function(l){var d=io(l),g=Nn(l,xd);return d=typeof d=="function"?d:r,d&&g.pop(),g.length&&g[0]===l[0]?kv(g,r,d):[]});function Id(l,d){return l==null?"":n0.call(l,d)}function io(l){var d=l==null?0:l.length;return d?l[d-1]:r}function o_(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var P=E;return g!==r&&(P=tn(g),P=P<0?Fr(E+P,0):ta(P,E-1)),d===d?qb(l,d,P):Jf(l,ls,P,!0)}function H0(l,d){return l&&l.length?w0(l,tn(d)):r}var W0=mn(Ld);function Ld(l,d){return l&&l.length&&d&&d.length?Un(l,d):l}function Mh(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,At(g,2)):l}function G0(l,d,g){return l&&l.length&&d&&d.length?Un(l,d,r,g):l}var ji=nl(function(l,d){var g=l==null?0:l.length,E=Nv(l,d);return Pr(l,Nn(d,function(P){return ys(P,g)?+P:P}).sort(wh)),E});function Xc(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,P=[],U=l.length;for(d=At(d,3);++E<U;){var Y=l[E];d(Y,E,l)&&(g.push(Y),P.push(E))}return Pr(l,P),g}function Fd(l){return l==null?l:kC.call(l)}function zd(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&ia(l,d,g)?(d=0,g=E):(d=d==null?0:tn(d),g=g===r?E:tn(g)),Br(l,d,g)):[]}function s_(l,d){return Bi(l,d)}function rg(l,d,g){return Mu(l,d,At(g,2))}function ag(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d);if(E<g&&Bo(l[E],d))return E}return-1}function Bd(l,d){return Bi(l,d,!0)}function l_(l,d,g){return Mu(l,d,At(g,2),!0)}function Ih(l,d){var g=l==null?0:l.length;if(g){var E=Bi(l,d,!0)-1;if(Bo(l[E],d))return E}return-1}function Y0(l){return l&&l.length?Iu(l):[]}function u_(l,d){return l&&l.length?Iu(l,At(d,2)):[]}function c_(l){var d=l==null?0:l.length;return d?Br(l,1,d):[]}function f_(l,d,g){return l&&l.length?(d=g||d===r?1:tn(d),Br(l,0,d<0?0:d)):[]}function ig(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===r?1:tn(d),d=E-d,Br(l,d<0?0:d,E)):[]}function d_(l,d){return l&&l.length?Bc(l,At(d,3),!1,!0):[]}function p_(l,d){return l&&l.length?Bc(l,At(d,3)):[]}var h_=mn(function(l){return hs(ga(l,1,_r,!0))}),m_=mn(function(l){var d=io(l);return _r(d)&&(d=r),hs(ga(l,1,_r,!0),At(d,2))}),v_=mn(function(l){var d=io(l);return d=typeof d=="function"?d:r,hs(ga(l,1,_r,!0),r,d)});function q0(l){return l&&l.length?hs(l):[]}function g_(l,d){return l&&l.length?hs(l,At(d,2)):[]}function y_(l,d){return d=typeof d=="function"?d:r,l&&l.length?hs(l,r,d):[]}function og(l){if(!(l&&l.length))return[];var d=0;return l=va(l,function(g){if(_r(g))return d=Fr(g.length,d),!0}),Jp(d,function(g){return Nn(l,ed(g))})}function K0(l,d){if(!(l&&l.length))return[];var g=og(l);return d==null?g:Nn(g,function(E){return pt(d,r,E)})}var b_=mn(function(l,d){return _r(l)?Ar(l,d):[]}),S_=mn(function(l){return Sd(va(l,_r))}),sg=mn(function(l){var d=io(l);return _r(d)&&(d=r),Sd(va(l,_r),At(d,2))}),x_=mn(function(l){var d=io(l);return d=typeof d=="function"?d:r,Sd(va(l,_r),r,d)}),w_=mn(og);function C_(l,d){return yh(l||[],d||[],hd)}function X0(l,d){return yh(l||[],d||[],Me)}var __=mn(function(l){var d=l.length,g=d>1?l[d-1]:r;return g=typeof g=="function"?(l.pop(),g):r,K0(l,g)});function Z0(l){var d=L(l);return d.__chain__=!0,d}function E_(l,d){return d(l),l}function Lh(l,d){return d(l)}var T_=nl(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,P=function(U){return Nv(U,l)};return d>1||this.__actions__.length||!(E instanceof _n)||!ys(g)?this.thru(P):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:Lh,args:[P],thisArg:r}),new no(E,this.__chain__).thru(function(U){return d&&!U.length&&U.push(r),U}))});function N_(){return Z0(this)}function R_(){return new no(this.value(),this.__chain__)}function Q0(){this.__values__===r&&(this.__values__=ef(this.value()));var l=this.__index__>=this.__values__.length,d=l?r:this.__values__[this.__index__++];return{done:l,value:d}}function lg(){return this}function Ud(l){for(var d,g=this;g instanceof Ks;){var E=F0(g);E.__index__=0,E.__values__=r,d?P.__wrapped__=E:d=E;var P=E;g=g.__wrapped__}return P.__wrapped__=l,d}function A_(){var l=this.__wrapped__;if(l instanceof _n){var d=l;return this.__actions__.length&&(d=new _n(this)),d=d.reverse(),d.__actions__.push({func:Lh,args:[Fd],thisArg:r}),new no(d,this.__chain__)}return this.thru(Fd)}function J0(){return gh(this.__wrapped__,this.__actions__)}var eS=Xn(function(l,d,g){Kn.call(l,g)?++l[g]:ds(l,g,1)});function tS(l,d,g){var E=rn(l)?gi:Rv;return g&&ia(l,d,g)&&(d=r),E(l,At(d,3))}function O_(l,d){var g=rn(l)?va:hh;return g(l,At(d,3))}var nS=_h(U0),k_=_h(Dh);function D_(l,d){return ga(Fh(l,d),1)}function P_(l,d){return ga(Fh(l,d),oe)}function rS(l,d,g){return g=g===r?1:tn(g),ga(Fh(l,d),g)}function ug(l,d){var g=rn(l)?wt:Ml;return g(l,At(d,3))}function cg(l,d){var g=rn(l)?Dt:md;return g(l,At(d,3))}var Zc=Xn(function(l,d,g){Kn.call(l,g)?l[g].push(d):ds(l,g,[d])});function M_(l,d,g,E){l=qr(l)?l:rf(l),g=g&&!E?tn(g):0;var P=l.length;return g<0&&(g=Fr(P+g,0)),Vh(l)?g<=P&&l.indexOf(d,g)>-1:!!P&&Cu(l,d,g)>-1}var I_=mn(function(l,d,g){var E=-1,P=typeof d=="function",U=qr(l)?ge(l.length):[];return Ml(l,function(Y){U[++E]=P?pt(d,Y,g):vd(Y,d,g)}),U}),L_=Xn(function(l,d,g){ds(l,g,d)});function Fh(l,d){var g=rn(l)?Nn:b0;return g(l,At(d,3))}function F_(l,d,g,E){return l==null?[]:(rn(d)||(d=d==null?[]:[d]),g=E?r:g,rn(g)||(g=g==null?[]:[g]),C0(l,d,g))}var z_=Xn(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function aS(l,d,g){var E=rn(l)?ss:Qp,P=arguments.length<3;return E(l,At(d,4),g,P,Ml)}function B_(l,d,g){var E=rn(l)?Qf:Qp,P=arguments.length<3;return E(l,At(d,4),g,P,md)}function U_(l,d){var g=rn(l)?va:hh;return g(l,Uh(At(d,3)))}function iS(l){var d=rn(l)?l0:VC;return d(l)}function jd(l,d,g){(g?ia(l,d,g):d===r)?d=1:d=tn(d);var E=rn(l)?ku:Bv;return E(l,d)}function $d(l){var d=rn(l)?u0:Fc;return d(l)}function j_(l){if(l==null)return 0;if(qr(l))return Vh(l)?Eu(l):l.length;var d=yr(l);return d==ye||d==fn?l.size:Mv(l).length}function $_(l,d,g){var E=rn(l)?cv:Pu;return g&&ia(l,d,g)&&(d=r),E(l,At(d,3))}var V_=mn(function(l,d){if(l==null)return[];var g=d.length;return g>1&&ia(l,d[0],d[1])?d=[]:g>2&&ia(d[0],d[1],d[2])&&(d=[d[0]]),C0(l,ga(d,1),[])}),Uu=gv||function(){return Vt.Date.now()};function H_(l,d){if(typeof d!="function")throw new Li(u);return l=tn(l),function(){if(--l<1)return d.apply(this,arguments)}}function fg(l,d,g){return d=g?r:d,d=l&&d==null?l.length:d,zo(l,X,r,r,r,r,d)}function oS(l,d){var g;if(typeof d!="function")throw new Li(u);return l=tn(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=r),g}}var zh=mn(function(l,d,g){var E=I;if(g.length){var P=Ol(g,Gc(zh));E|=j}return zo(l,E,d,g,P)}),dg=mn(function(l,d,g){var E=I|V;if(g.length){var P=Ol(g,Gc(dg));E|=j}return zo(d,E,l,g,P)});function sS(l,d,g){d=g?r:d;var E=zo(l,z,r,r,r,r,r,d);return E.placeholder=sS.placeholder,E}function lS(l,d,g){d=g?r:d;var E=zo(l,B,r,r,r,r,r,d);return E.placeholder=lS.placeholder,E}function uS(l,d,g){var E,P,U,Y,Z,ie,De=0,Ae=!1,Pe=!1,Xe=!0;if(typeof l!="function")throw new Li(u);d=oo(d)||0,br(g)&&(Ae=!!g.leading,Pe="maxWait"in g,U=Pe?Fr(oo(g.maxWait)||0,d):U,Xe="trailing"in g?!!g.trailing:Xe);function dt(Sr){var Kr=E,Ba=P;return E=P=r,De=Sr,Y=l.apply(Ba,Kr),Y}function Ot(Sr){return De=Sr,Z=al(vn,d),Ae?dt(Sr):Y}function cn(Sr){var Kr=Sr-ie,Ba=Sr-De,ba=d-Kr;return Pe?ta(ba,U-Ba):ba}function Pt(Sr){var Kr=Sr-ie,Ba=Sr-De;return ie===r||Kr>=d||Kr<0||Pe&&Ba>=U}function vn(){var Sr=Uu();if(Pt(Sr))return En(Sr);Z=al(vn,cn(Sr))}function En(Sr){return Z=r,Xe&&E?dt(Sr):(E=P=r,Y)}function za(){Z!==r&&bh(Z),De=0,E=ie=P=Z=r}function dr(){return Z===r?Y:En(Uu())}function qa(){var Sr=Uu(),Kr=Pt(Sr);if(E=arguments,P=this,ie=Sr,Kr){if(Z===r)return Ot(ie);if(Pe)return bh(Z),Z=al(vn,d),dt(ie)}return Z===r&&(Z=al(vn,d)),Y}return qa.cancel=za,qa.flush=dr,qa}var W_=mn(function(l,d){return p0(l,1,d)}),G_=mn(function(l,d,g){return p0(l,oo(d)||0,g)});function Y_(l){return zo(l,me)}function Bh(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new Li(u);var g=function(){var E=arguments,P=d?d.apply(this,E):E[0],U=g.cache;if(U.has(P))return U.get(P);var Y=l.apply(this,E);return g.cache=U.set(P,Y)||U,Y};return g.cache=new(Bh.Cache||Qs),g}Bh.Cache=Qs;function Uh(l){if(typeof l!="function")throw new Li(u);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function q_(l){return oS(2,l)}var K_=Uv(function(l,d){d=d.length==1&&rn(d[0])?Nn(d[0],Bn(At())):Nn(ga(d,1),Bn(At()));var g=d.length;return mn(function(E){for(var P=-1,U=ta(E.length,g);++P<U;)E[P]=d[P].call(this,E[P]);return pt(l,this,E)})}),Ya=mn(function(l,d){var g=Ol(d,Gc(Ya));return zo(l,j,r,d,g)}),Qc=mn(function(l,d){var g=Ol(d,Gc(Qc));return zo(l,K,r,d,g)}),cS=nl(function(l,d){return zo(l,fe,r,r,r,d)});function X_(l,d){if(typeof l!="function")throw new Li(u);return d=d===r?d:tn(d),mn(l,d)}function fS(l,d){if(typeof l!="function")throw new Li(u);return d=d==null?0:Fr(tn(d),0),mn(function(g){var E=g[d],P=vs(g,0,d);return E&&yi(P,E),pt(l,this,P)})}function Z_(l,d,g){var E=!0,P=!0;if(typeof l!="function")throw new Li(u);return br(g)&&(E="leading"in g?!!g.leading:E,P="trailing"in g?!!g.trailing:P),uS(l,d,{leading:E,maxWait:d,trailing:P})}function Q_(l){return fg(l,1)}function J_(l,d){return Ya(wd(d),l)}function dS(){if(!arguments.length)return[];var l=arguments[0];return rn(l)?l:[l]}function pS(l){return Fi(l,_)}function eE(l,d){return d=typeof d=="function"?d:r,Fi(l,_,d)}function tE(l){return Fi(l,x|_)}function hS(l,d){return d=typeof d=="function"?d:r,Fi(l,x|_,d)}function pg(l,d){return d==null||d0(l,d,oa(d))}function Bo(l,d){return l===d||l!==l&&d!==d}var nE=Ed(Ov),rE=Ed(function(l,d){return l>=d}),ju=Dv(function(){return arguments}())?Dv:function(l){return Er(l)&&Kn.call(l,"callee")&&!Ec.call(l,"callee")},rn=ge.isArray,aE=Fe?Bn(Fe):gd;function qr(l){return l!=null&&Wd(l.length)&&!ws(l)}function _r(l){return Er(l)&&qr(l)}function Vd(l){return l===!0||l===!1||Er(l)&&Ha(l)==Qe}var xs=e0||zg,iE=xe?Bn(xe):Lc;function oE(l){return Er(l)&&l.nodeType===1&&!$u(l)}function mS(l){if(l==null)return!0;if(qr(l)&&(rn(l)||typeof l=="string"||typeof l.splice=="function"||xs(l)||Ul(l)||ju(l)))return!l.length;var d=yr(l);if(d==ye||d==fn)return!l.size;if(Yc(l))return!Mv(l).length;for(var g in l)if(Kn.call(l,g))return!1;return!0}function sE(l,d){return yd(l,d)}function jh(l,d,g){g=typeof g=="function"?g:r;var E=g?g(l,d):r;return E===r?yd(l,d,r,g):!!E}function zl(l){if(!Er(l))return!1;var d=Ha(l);return d==zt||d==Et||typeof l.message=="string"&&typeof l.name=="string"&&!$u(l)}function hg(l){return typeof l=="number"&&t0(l)}function ws(l){if(!br(l))return!1;var d=Ha(l);return d==We||d==Yt||d==Gt||d==ir}function Hd(l){return typeof l=="number"&&l==tn(l)}function Wd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=Se}function br(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Er(l){return l!=null&&typeof l=="object"}var mg=$e?Bn($e):UC;function vS(l,d){return l===d||Pv(l,d,Nh(d))}function gS(l,d,g){return g=typeof g=="function"?g:r,Pv(l,d,Nh(d),g)}function Bl(l){return Jc(l)&&l!=+l}function lE(l){if(XC(l))throw new en(c);return m0(l)}function uE(l){return l===null}function cE(l){return l==null}function Jc(l){return typeof l=="number"||Er(l)&&Ha(l)==Mt}function $u(l){if(!Er(l)||Ha(l)!=St)return!1;var d=od(l);if(d===null)return!0;var g=Kn.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&nh.call(g)==$a}var $h=it?Bn(it):jC;function fE(l){return Hd(l)&&l>=-Se&&l<=Se}var vg=gt?Bn(gt):v0;function Vh(l){return typeof l=="string"||!rn(l)&&Er(l)&&Ha(l)==kn}function bn(l){return typeof l=="symbol"||Er(l)&&Ha(l)==hn}var Ul=Nt?Bn(Nt):g0;function Hh(l){return l===r}function Gd(l){return Er(l)&&yr(l)==Ze}function yS(l){return Er(l)&&Ha(l)==Jt}var bS=Ed(Iv),gg=Ed(function(l,d){return l<=d});function ef(l){if(!l)return[];if(qr(l))return Vh(l)?Lo(l):ra(l);if(sd&&l[sd])return Gb(l[sd]());var d=yr(l),g=d==ye?hv:d==fn?ad:rf;return g(l)}function il(l){if(!l)return l===0?l:0;if(l=oo(l),l===oe||l===-oe){var d=l<0?-1:1;return d*Te}return l===l?l:0}function tn(l){var d=il(l),g=d%1;return d===d?g?d-g:d:0}function Vu(l){return l?Pl(tn(l),0,we):0}function oo(l){if(typeof l=="number")return l;if(bn(l))return pe;if(br(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=br(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=us(l);var g=an.test(l);return g||fi.test(l)?at(l.slice(2),g?2:8):In.test(l)?pe:+l}function yg(l){return Fa(l,Ci(l))}function dE(l){return l?Pl(tn(l),-Se,Se):l===0?l:0}function Gn(l){return l==null?"":Wa(l)}var wi=el(function(l,d){if(Yc(d)||qr(d)){Fa(d,oa(d),l);return}for(var g in d)Kn.call(d,g)&&hd(l,g,d[g])}),tf=el(function(l,d){Fa(d,Ci(d),l)}),Hu=el(function(l,d,g,E){Fa(d,Ci(d),l,E)}),jl=el(function(l,d,g,E){Fa(d,oa(d),l,E)}),SS=nl(Nv);function Wu(l,d){var g=Dl(l);return d==null?g:Tv(g,d)}var Gu=mn(function(l,d){l=qn(l);var g=-1,E=d.length,P=E>2?d[2]:r;for(P&&ia(d[0],d[1],P)&&(E=1);++g<E;)for(var U=d[g],Y=Ci(U),Z=-1,ie=Y.length;++Z<ie;){var De=Y[Z],Ae=l[De];(Ae===r||Bo(Ae,_c[De])&&!Kn.call(l,De))&&(l[De]=U[De])}return l}),Wh=mn(function(l){return l.push(r,Fu),pt(ES,r,l)});function bg(l,d){return dv(l,At(d,3),fr)}function Gh(l,d){return dv(l,At(d,3),nt)}function Yd(l,d){return l==null?l:Av(l,At(d,3),Ci)}function xS(l,d){return l==null?l:Du(l,At(d,3),Ci)}function Yh(l,d){return l&&fr(l,At(d,3))}function wS(l,d){return l&&nt(l,At(d,3))}function CS(l){return l==null?[]:zi(l,oa(l))}function pE(l){return l==null?[]:zi(l,Ci(l))}function Sg(l,d,g){var E=l==null?r:ya(l,d);return E===r?g:E}function qh(l,d){return l!=null&&ao(l,d,LC)}function nf(l,d){return l!=null&&ao(l,d,FC)}var _S=Hv(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=id.call(d)),l[d]=g},kg(_i)),hE=Hv(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=id.call(d)),Kn.call(l,d)?l[d].push(g):l[d]=[g]},At),Kh=mn(vd);function oa(l){return qr(l)?fs(l):Mv(l)}function Ci(l){return qr(l)?fs(l,!0):$C(l)}function mE(l,d){var g={};return d=At(d,3),fr(l,function(E,P,U){ds(g,d(E,P,U),E)}),g}function vE(l,d){var g={};return d=At(d,3),fr(l,function(E,P,U){ds(g,P,d(E,P,U))}),g}var gE=el(function(l,d,g){mh(l,d,g)}),ES=el(function(l,d,g,E){mh(l,d,g,E)}),yE=nl(function(l,d){var g={};if(l==null)return g;var E=!1;d=Nn(d,function(U){return U=ms(U,l),E||(E=U.length>1),U}),Fa(l,zu(l),g),E&&(g=Fi(g,x|C|_,un));for(var P=d.length;P--;)bd(g,d[P]);return g});function bE(l,d){return TS(l,Uh(At(d)))}var SE=nl(function(l,d){return l==null?{}:Fv(l,d)});function TS(l,d){if(l==null)return{};var g=Nn(zu(l),function(E){return[E]});return d=At(d),Rt(l,g,function(E,P){return d(E,P[0])})}function xg(l,d,g){d=ms(d,l);var E=-1,P=d.length;for(P||(P=1,l=r);++E<P;){var U=l==null?r:l[xi(d[E])];U===r&&(E=P,U=g),l=ws(U)?U.call(l):U}return l}function wg(l,d,g){return l==null?l:Me(l,d,g)}function Cg(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:Me(l,d,g,E)}var Xh=Il(oa),NS=Il(Ci);function qd(l,d,g){var E=rn(l),P=E||xs(l)||Ul(l);if(d=At(d,4),g==null){var U=l&&l.constructor;P?g=E?new U:[]:br(l)?g=ws(U)?Dl(od(l)):{}:g={}}return(P?wt:fr)(l,function(Y,Z,ie){return d(g,Y,Z,ie)}),g}function Kd(l,d){return l==null?!0:bd(l,d)}function xE(l,d,g){return l==null?l:vh(l,d,wd(g))}function RS(l,d,g,E){return E=typeof E=="function"?E:r,l==null?l:vh(l,d,wd(g),E)}function rf(l){return l==null?[]:Io(l,oa(l))}function wE(l){return l==null?[]:Io(l,Ci(l))}function AS(l,d,g){return g===r&&(g=d,d=r),g!==r&&(g=oo(g),g=g===g?g:0),d!==r&&(d=oo(d),d=d===d?d:0),Pl(oo(l),d,g)}function CE(l,d,g){return d=il(d),g===r?(g=d,d=0):g=il(g),l=oo(l),na(l,d,g)}function _E(l,d,g){if(g&&typeof g!="boolean"&&ia(l,d,g)&&(d=g=r),g===r&&(typeof d=="boolean"?(g=d,d=r):typeof l=="boolean"&&(g=l,l=r)),l===r&&d===r?(l=0,d=1):(l=il(l),d===r?(d=l,l=0):d=il(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var P=i0();return ta(l+P*(d-l+de("1e-"+((P+"").length-1))),d)}return ro(l,d)}var OS=Hc(function(l,d,g){return d=d.toLowerCase(),l+(g?Xd(d):d)});function Xd(l){return Ag(Gn(l).toLowerCase())}function Zd(l){return l=Gn(l),l&&l.replace(da,bC).replace(Hr,"")}function Zh(l,d,g){l=Gn(l),d=Wa(d);var E=l.length;g=g===r?E:Pl(tn(g),0,E);var P=g;return g-=d.length,g>=0&&l.slice(g,P)==d}function Qd(l){return l=Gn(l),l&&vr.test(l)?l.replace(Cn,SC):l}function Jd(l){return l=Gn(l),l&&Di.test(l)?l.replace(Oa,"\\$&"):l}var EE=Hc(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),_g=Hc(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),Eg=T0("toLowerCase");function TE(l,d,g){l=Gn(l),d=tn(d);var E=d?Eu(l):0;if(!d||E>=d)return l;var P=(d-E)/2;return Lu(ld(P),g)+l+Lu(Ys(P),g)}function NE(l,d,g){l=Gn(l),d=tn(d);var E=d?Eu(l):0;return d&&E<d?l+Lu(d-E,g):l}function nD(l,d,g){l=Gn(l),d=tn(d);var E=d?Eu(l):0;return d&&E<d?Lu(d-E,g)+l:l}function RE(l,d,g){return g||d==null?d=0:d&&(d=+d),a0(Gn(l).replace(ka,""),d||0)}function AE(l,d,g){return(g?ia(l,d,g):d===r)?d=1:d=tn(d),zv(Gn(l),d)}function OE(){var l=arguments,d=Gn(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var kE=Hc(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function DE(l,d,g){return g&&typeof g!="number"&&ia(l,d,g)&&(d=g=r),g=g===r?we:g>>>0,g?(l=Gn(l),l&&(typeof d=="string"||d!=null&&!$h(d))&&(d=Wa(d),!d&&xc(l))?vs(Lo(l),0,g):l.split(d,g)):[]}var PE=Hc(function(l,d,g){return l+(g?" ":"")+Ag(d)});function Tg(l,d,g){return l=Gn(l),g=g==null?0:Pl(tn(g),0,l.length),d=Wa(d),l.slice(g,g+d.length)==d}function ME(l,d,g){var E=L.templateSettings;g&&ia(l,d,g)&&(d=r),l=Gn(l),d=Hu({},d,E,Si);var P=Hu({},d.imports,E.imports,Si),U=oa(P),Y=Io(P,U),Z,ie,De=0,Ae=d.interpolate||Ji,Pe="__p += '",Xe=Ws((d.escape||Ji).source+"|"+Ae.source+"|"+(Ae===es?$t:Ji).source+"|"+(d.evaluate||Ji).source+"|$","g"),dt="//# sourceURL="+(Kn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Hs+"]")+`
`;l.replace(Xe,function(Pt,vn,En,za,dr,qa){return En||(En=za),Pe+=l.slice(De,qa).replace(Su,pv),vn&&(Z=!0,Pe+=`' +
__e(`+vn+`) +
'`),dr&&(ie=!0,Pe+=`';
`+dr+`;
__p += '`),En&&(Pe+=`' +
((__t = (`+En+`)) == null ? '' : __t) +
'`),De=qa+Pt.length,Pt}),Pe+=`';
`;var Ot=Kn.call(d,"variable")&&d.variable;if(!Ot)Pe=`with (obj) {
`+Pe+`
}
`;else if(gn.test(Ot))throw new en(h);Pe=(ie?Pe.replace(Rr,""):Pe).replace(Tn,"$1").replace(ca,"$1;"),Pe="function("+(Ot||"obj")+`) {
`+(Ot?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Pe+`return __p
}`;var cn=DS(function(){return Hn(U,dt+"return "+Pe).apply(r,Y)});if(cn.source=Pe,zl(cn))throw cn;return cn}function IE(l){return Gn(l).toLowerCase()}function Ng(l){return Gn(l).toUpperCase()}function LE(l,d,g){if(l=Gn(l),l&&(g||d===r))return us(l);if(!l||!(d=Wa(d)))return l;var E=Lo(l),P=Lo(d),U=nd(E,P),Y=Wb(E,P)+1;return vs(E,U,Y).join("")}function Rg(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.slice(0,Kb(l)+1);if(!l||!(d=Wa(d)))return l;var E=Lo(l),P=Wb(E,Lo(d))+1;return vs(E,0,P).join("")}function kS(l,d,g){if(l=Gn(l),l&&(g||d===r))return l.replace(ka,"");if(!l||!(d=Wa(d)))return l;var E=Lo(l),P=nd(E,Lo(d));return vs(E,P).join("")}function FE(l,d){var g=se,E=be;if(br(d)){var P="separator"in d?d.separator:P;g="length"in d?tn(d.length):g,E="omission"in d?Wa(d.omission):E}l=Gn(l);var U=l.length;if(xc(l)){var Y=Lo(l);U=Y.length}if(g>=U)return l;var Z=g-Eu(E);if(Z<1)return E;var ie=Y?vs(Y,0,Z).join(""):l.slice(0,Z);if(P===r)return ie+E;if(Y&&(Z+=ie.length-Z),$h(P)){if(l.slice(Z).search(P)){var De,Ae=ie;for(P.global||(P=Ws(P.source,Gn(zn.exec(P))+"g")),P.lastIndex=0;De=P.exec(Ae);)var Pe=De.index;ie=ie.slice(0,Pe===r?Z:Pe)}}else if(l.indexOf(Wa(P),Z)!=Z){var Xe=ie.lastIndexOf(P);Xe>-1&&(ie=ie.slice(0,Xe))}return ie+E}function zE(l){return l=Gn(l),l&&fa.test(l)?l.replace(Fn,CC):l}var BE=Hc(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),Ag=T0("toUpperCase");function Og(l,d,g){return l=Gn(l),d=g?r:d,d===r?wC(l)?TC(l):fv(l):l.match(d)||[]}var DS=mn(function(l,d){try{return pt(l,r,d)}catch(g){return zl(g)?g:new en(g)}}),UE=nl(function(l,d){return wt(d,function(g){g=xi(g),ds(l,g,zh(l[g],l))}),l});function jE(l){var d=l==null?0:l.length,g=At();return l=d?Nn(l,function(E){if(typeof E[1]!="function")throw new Li(u);return[g(E[0]),E[1]]}):[],mn(function(E){for(var P=-1;++P<d;){var U=l[P];if(pt(U[0],this,E))return pt(U[1],this,E)}})}function $E(l){return MC(Fi(l,x))}function kg(l){return function(){return l}}function VE(l,d){return l==null||l!==l?d:l}var HE=N0(),Dg=N0(!0);function _i(l){return l}function Pg(l){return y0(typeof l=="function"?l:Fi(l,x))}function WE(l){return S0(Fi(l,x))}function GE(l,d){return Lv(l,Fi(d,x))}var YE=mn(function(l,d){return function(g){return vd(g,l,d)}}),qE=mn(function(l,d){return function(g){return vd(l,g,d)}});function Mg(l,d,g){var E=oa(d),P=zi(d,E);g==null&&!(br(d)&&(P.length||!E.length))&&(g=d,d=l,l=this,P=zi(d,oa(d)));var U=!(br(g)&&"chain"in g)||!!g.chain,Y=ws(l);return wt(P,function(Z){var ie=d[Z];l[Z]=ie,Y&&(l.prototype[Z]=function(){var De=this.__chain__;if(U||De){var Ae=l(this.__wrapped__),Pe=Ae.__actions__=ra(this.__actions__);return Pe.push({func:ie,args:arguments,thisArg:l}),Ae.__chain__=De,Ae}return ie.apply(l,yi([this.value()],arguments))})}),l}function KE(){return Vt._===this&&(Vt._=Qb),this}function Ig(){}function PS(l){return l=tn(l),mn(function(d){return w0(d,l)})}var Lg=Wv(Nn),XE=Wv(gi),ZE=Wv(cv);function ep(l){return Ah(l)?ed(xi(l)):yn(l)}function tp(l){return function(d){return l==null?r:ya(l,d)}}var QE=Gv(),JE=Gv(!0);function Fg(){return[]}function zg(){return!1}function eT(){return{}}function tT(){return""}function nT(){return!0}function MS(l,d){if(l=tn(l),l<1||l>Se)return[];var g=we,E=ta(l,we);d=At(d),l-=we;for(var P=Jp(E,d);++g<l;)d(g);return P}function rT(l){return rn(l)?Nn(l,xi):bn(l)?[l]:ra(Jv(Gn(l)))}function aT(l){var d=++Xb;return Gn(l)+d}var iT=Eh(function(l,d){return l+d},0),oT=tl("ceil"),sT=Eh(function(l,d){return l/d},1),lT=tl("floor");function uT(l){return l&&l.length?ps(l,_i,Ov):r}function cT(l,d){return l&&l.length?ps(l,At(d,2),Ov):r}function fT(l){return Hb(l,_i)}function dT(l,d){return Hb(l,At(d,2))}function pT(l){return l&&l.length?ps(l,_i,Iv):r}function hT(l,d){return l&&l.length?ps(l,At(d,2),Iv):r}var mT=Eh(function(l,d){return l*d},1),vT=tl("round"),gT=Eh(function(l,d){return l-d},0);function yT(l){return l&&l.length?Sc(l,_i):0}function af(l,d){return l&&l.length?Sc(l,At(d,2)):0}return L.after=H_,L.ary=fg,L.assign=wi,L.assignIn=tf,L.assignInWith=Hu,L.assignWith=jl,L.at=SS,L.before=oS,L.bind=zh,L.bindAll=UE,L.bindKey=dg,L.castArray=dS,L.chain=Z0,L.chunk=kh,L.compact=z0,L.concat=JC,L.cond=jE,L.conforms=$E,L.constant=kg,L.countBy=eS,L.create=Wu,L.curry=sS,L.curryRight=lS,L.debounce=uS,L.defaults=Gu,L.defaultsDeep=Wh,L.defer=W_,L.delay=G_,L.difference=Dd,L.differenceBy=Pd,L.differenceWith=Kc,L.drop=eg,L.dropRight=B0,L.dropRightWhile=e_,L.dropWhile=t_,L.fill=n_,L.filter=O_,L.flatMap=D_,L.flatMapDeep=P_,L.flatMapDepth=rS,L.flatten=j0,L.flattenDeep=Ph,L.flattenDepth=tg,L.flip=Y_,L.flow=HE,L.flowRight=Dg,L.fromPairs=$0,L.functions=CS,L.functionsIn=pE,L.groupBy=Zc,L.initial=a_,L.intersection=i_,L.intersectionBy=Md,L.intersectionWith=ng,L.invert=_S,L.invertBy=hE,L.invokeMap=I_,L.iteratee=Pg,L.keyBy=L_,L.keys=oa,L.keysIn=Ci,L.map=Fh,L.mapKeys=mE,L.mapValues=vE,L.matches=WE,L.matchesProperty=GE,L.memoize=Bh,L.merge=gE,L.mergeWith=ES,L.method=YE,L.methodOf=qE,L.mixin=Mg,L.negate=Uh,L.nthArg=PS,L.omit=yE,L.omitBy=bE,L.once=q_,L.orderBy=F_,L.over=Lg,L.overArgs=K_,L.overEvery=XE,L.overSome=ZE,L.partial=Ya,L.partialRight=Qc,L.partition=z_,L.pick=SE,L.pickBy=TS,L.property=ep,L.propertyOf=tp,L.pull=W0,L.pullAll=Ld,L.pullAllBy=Mh,L.pullAllWith=G0,L.pullAt=ji,L.range=QE,L.rangeRight=JE,L.rearg=cS,L.reject=U_,L.remove=Xc,L.rest=X_,L.reverse=Fd,L.sampleSize=jd,L.set=wg,L.setWith=Cg,L.shuffle=$d,L.slice=zd,L.sortBy=V_,L.sortedUniq=Y0,L.sortedUniqBy=u_,L.split=DE,L.spread=fS,L.tail=c_,L.take=f_,L.takeRight=ig,L.takeRightWhile=d_,L.takeWhile=p_,L.tap=E_,L.throttle=Z_,L.thru=Lh,L.toArray=ef,L.toPairs=Xh,L.toPairsIn=NS,L.toPath=rT,L.toPlainObject=yg,L.transform=qd,L.unary=Q_,L.union=h_,L.unionBy=m_,L.unionWith=v_,L.uniq=q0,L.uniqBy=g_,L.uniqWith=y_,L.unset=Kd,L.unzip=og,L.unzipWith=K0,L.update=xE,L.updateWith=RS,L.values=rf,L.valuesIn=wE,L.without=b_,L.words=Og,L.wrap=J_,L.xor=S_,L.xorBy=sg,L.xorWith=x_,L.zip=w_,L.zipObject=C_,L.zipObjectDeep=X0,L.zipWith=__,L.entries=Xh,L.entriesIn=NS,L.extend=tf,L.extendWith=Hu,Mg(L,L),L.add=iT,L.attempt=DS,L.camelCase=OS,L.capitalize=Xd,L.ceil=oT,L.clamp=AS,L.clone=pS,L.cloneDeep=tE,L.cloneDeepWith=hS,L.cloneWith=eE,L.conformsTo=pg,L.deburr=Zd,L.defaultTo=VE,L.divide=sT,L.endsWith=Zh,L.eq=Bo,L.escape=Qd,L.escapeRegExp=Jd,L.every=tS,L.find=nS,L.findIndex=U0,L.findKey=bg,L.findLast=k_,L.findLastIndex=Dh,L.findLastKey=Gh,L.floor=lT,L.forEach=ug,L.forEachRight=cg,L.forIn=Yd,L.forInRight=xS,L.forOwn=Yh,L.forOwnRight=wS,L.get=Sg,L.gt=nE,L.gte=rE,L.has=qh,L.hasIn=nf,L.head=V0,L.identity=_i,L.includes=M_,L.indexOf=r_,L.inRange=CE,L.invoke=Kh,L.isArguments=ju,L.isArray=rn,L.isArrayBuffer=aE,L.isArrayLike=qr,L.isArrayLikeObject=_r,L.isBoolean=Vd,L.isBuffer=xs,L.isDate=iE,L.isElement=oE,L.isEmpty=mS,L.isEqual=sE,L.isEqualWith=jh,L.isError=zl,L.isFinite=hg,L.isFunction=ws,L.isInteger=Hd,L.isLength=Wd,L.isMap=mg,L.isMatch=vS,L.isMatchWith=gS,L.isNaN=Bl,L.isNative=lE,L.isNil=cE,L.isNull=uE,L.isNumber=Jc,L.isObject=br,L.isObjectLike=Er,L.isPlainObject=$u,L.isRegExp=$h,L.isSafeInteger=fE,L.isSet=vg,L.isString=Vh,L.isSymbol=bn,L.isTypedArray=Ul,L.isUndefined=Hh,L.isWeakMap=Gd,L.isWeakSet=yS,L.join=Id,L.kebabCase=EE,L.last=io,L.lastIndexOf=o_,L.lowerCase=_g,L.lowerFirst=Eg,L.lt=bS,L.lte=gg,L.max=uT,L.maxBy=cT,L.mean=fT,L.meanBy=dT,L.min=pT,L.minBy=hT,L.stubArray=Fg,L.stubFalse=zg,L.stubObject=eT,L.stubString=tT,L.stubTrue=nT,L.multiply=mT,L.nth=H0,L.noConflict=KE,L.noop=Ig,L.now=Uu,L.pad=TE,L.padEnd=NE,L.padStart=nD,L.parseInt=RE,L.random=_E,L.reduce=aS,L.reduceRight=B_,L.repeat=AE,L.replace=OE,L.result=xg,L.round=vT,L.runInContext=ae,L.sample=iS,L.size=j_,L.snakeCase=kE,L.some=$_,L.sortedIndex=s_,L.sortedIndexBy=rg,L.sortedIndexOf=ag,L.sortedLastIndex=Bd,L.sortedLastIndexBy=l_,L.sortedLastIndexOf=Ih,L.startCase=PE,L.startsWith=Tg,L.subtract=gT,L.sum=yT,L.sumBy=af,L.template=ME,L.times=MS,L.toFinite=il,L.toInteger=tn,L.toLength=Vu,L.toLower=IE,L.toNumber=oo,L.toSafeInteger=dE,L.toString=Gn,L.toUpper=Ng,L.trim=LE,L.trimEnd=Rg,L.trimStart=kS,L.truncate=FE,L.unescape=zE,L.uniqueId=aT,L.upperCase=BE,L.upperFirst=Ag,L.each=ug,L.eachRight=cg,L.first=V0,Mg(L,function(){var l={};return fr(L,function(d,g){Kn.call(L.prototype,g)||(l[g]=d)}),l}(),{chain:!1}),L.VERSION=i,wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){L[l].placeholder=L}),wt(["drop","take"],function(l,d){_n.prototype[l]=function(g){g=g===r?1:Fr(tn(g),0);var E=this.__filtered__&&!d?new _n(this):this.clone();return E.__filtered__?E.__takeCount__=ta(g,E.__takeCount__):E.__views__.push({size:ta(g,we),type:l+(E.__dir__<0?"Right":"")}),E},_n.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),wt(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==ce||g==Ce;_n.prototype[l]=function(P){var U=this.clone();return U.__iteratees__.push({iteratee:At(P,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),wt(["head","last"],function(l,d){var g="take"+(d?"Right":"");_n.prototype[l]=function(){return this[g](1).value()[0]}}),wt(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");_n.prototype[l]=function(){return this.__filtered__?new _n(this):this[g](1)}}),_n.prototype.compact=function(){return this.filter(_i)},_n.prototype.find=function(l){return this.filter(l).head()},_n.prototype.findLast=function(l){return this.reverse().find(l)},_n.prototype.invokeMap=mn(function(l,d){return typeof l=="function"?new _n(this):this.map(function(g){return vd(g,l,d)})}),_n.prototype.reject=function(l){return this.filter(Uh(At(l)))},_n.prototype.slice=function(l,d){l=tn(l);var g=this;return g.__filtered__&&(l>0||d<0)?new _n(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==r&&(d=tn(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},_n.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},_n.prototype.toArray=function(){return this.take(we)},fr(_n.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),P=L[E?"take"+(d=="last"?"Right":""):d],U=E||/^find/.test(d);!P||(L.prototype[d]=function(){var Y=this.__wrapped__,Z=E?[1]:arguments,ie=Y instanceof _n,De=Z[0],Ae=ie||rn(Y),Pe=function(vn){var En=P.apply(L,yi([vn],Z));return E&&Xe?En[0]:En};Ae&&g&&typeof De=="function"&&De.length!=1&&(ie=Ae=!1);var Xe=this.__chain__,dt=!!this.__actions__.length,Ot=U&&!Xe,cn=ie&&!dt;if(!U&&Ae){Y=cn?Y:new _n(this);var Pt=l.apply(Y,Z);return Pt.__actions__.push({func:Lh,args:[Pe],thisArg:r}),new no(Pt,Xe)}return Ot&&cn?l.apply(this,Z):(Pt=this.thru(Pe),Ot?E?Pt.value()[0]:Pt.value():Pt)})}),wt(["pop","push","shift","sort","splice","unshift"],function(l){var d=Gs[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);L.prototype[l]=function(){var P=arguments;if(E&&!this.__chain__){var U=this.value();return d.apply(rn(U)?U:[],P)}return this[g](function(Y){return d.apply(rn(Y)?Y:[],P)})}}),fr(_n.prototype,function(l,d){var g=L[d];if(g){var E=g.name+"";Kn.call(kc,E)||(kc[E]=[]),kc[E].push({name:d,func:g})}}),kc[Wc(r,V).name]=[{name:"wrapper",func:r}],_n.prototype.clone=kt,_n.prototype.reverse=Mc,_n.prototype.value=zr,L.prototype.at=T_,L.prototype.chain=N_,L.prototype.commit=R_,L.prototype.next=Q0,L.prototype.plant=Ud,L.prototype.reverse=A_,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=J0,L.prototype.first=L.prototype.head,sd&&(L.prototype[sd]=lg),L},Cc=NC();R?((R.exports=Cc)._=Cc,b._=Cc):Vt._=Cc}).call(cc)})($r,$r.exports);const Ife={currentImageUuid:"",images:[]},vU=V2({name:"gallery",initialState:Ife,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const r=t.payload,i=e.images.filter(o=>o.uuid!==r);if(r===e.currentImageUuid){const o=e.images.findIndex(u=>u.uuid===r),c=$r.exports.clamp(o-1,0,i.length-1);e.currentImage=i.length?i[c]:void 0,e.currentImageUuid=i.length?i[c].uuid:""}e.images=i},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{const r=t.payload;if(r.length){const i=r[r.length-1];e.images=r,e.currentImage=i,e.currentImageUuid=i.uuid}}}}),{setCurrentImage:Lfe,removeImage:Ffe,addImage:mx,setGalleryImages:zfe,setIntermediateImage:Bfe,clearIntermediateImage:zF}=vU.actions,Ufe=vU.reducer,jfe={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"",currentStatusHasSteps:!1},$fe=jfe,gU=V2({name:"system",initialState:$fe,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)=>{const r=!t.payload.isProcessing&&e.isConnected?"Connected":t.payload.currentStatus;return{...e,...t.payload,currentStatus:r}},addLogEntry:(e,t)=>{const{timestamp:r,message:i,level:o}=t.payload,u={timestamp:r,message:i,level:o||"info"};e.log.push(u)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:Vfe,setIsProcessing:nu,addLogEntry:qi,setShouldShowLogViewer:Hfe,setIsConnected:BF,setSocketId:Rme,setShouldConfirmOnDelete:yU,setOpenAccordions:Wfe,setSystemStatus:Gfe,setCurrentStatus:UF}=gU.actions,Yfe=gU.reducer,yu=Object.create(null);yu.open="0";yu.close="1";yu.ping="2";yu.pong="3";yu.message="4";yu.upgrade="5";yu.noop="6";const Bx=Object.create(null);Object.keys(yu).forEach(e=>{Bx[yu[e]]=e});const qfe={type:"error",data:"parser error"},Kfe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xfe=typeof ArrayBuffer=="function",Zfe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,bU=({type:e,data:t},r,i)=>Kfe&&t instanceof Blob?r?i(t):jF(t,i):Xfe&&(t instanceof ArrayBuffer||Zfe(t))?r?i(t):jF(new Blob([t]),i):i(yu[e]+(t||"")),jF=(e,t)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];t("b"+i)},r.readAsDataURL(e)},$F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fy=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<$F.length;e++)Fy[$F.charCodeAt(e)]=e;const Qfe=e=>{let t=e.length*.75,r=e.length,i,o=0,c,u,h,m;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),S=new Uint8Array(v);for(i=0;i<r;i+=4)c=Fy[e.charCodeAt(i)],u=Fy[e.charCodeAt(i+1)],h=Fy[e.charCodeAt(i+2)],m=Fy[e.charCodeAt(i+3)],S[o++]=c<<2|u>>4,S[o++]=(u&15)<<4|h>>2,S[o++]=(h&3)<<6|m&63;return v},Jfe=typeof ArrayBuffer=="function",SU=(e,t)=>{if(typeof e!="string")return{type:"message",data:xU(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:ede(e.substring(1),t)}:Bx[r]?e.length>1?{type:Bx[r],data:e.substring(1)}:{type:Bx[r]}:qfe},ede=(e,t)=>{if(Jfe){const r=Qfe(e);return xU(r,t)}else return{base64:!0,data:e}},xU=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},wU=String.fromCharCode(30),tde=(e,t)=>{const r=e.length,i=new Array(r);let o=0;e.forEach((c,u)=>{bU(c,!1,h=>{i[u]=h,++o===r&&t(i.join(wU))})})},nde=(e,t)=>{const r=e.split(wU),i=[];for(let o=0;o<r.length;o++){const c=SU(r[o],t);if(i.push(c),c.type==="error")break}return i},CU=4;function ua(e){if(e)return rde(e)}function rde(e){for(var t in ua.prototype)e[t]=ua.prototype[t];return e}ua.prototype.on=ua.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ua.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ua.prototype.off=ua.prototype.removeListener=ua.prototype.removeAllListeners=ua.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<r.length;o++)if(i=r[o],i===t||i.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ua.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,o=r.length;i<o;++i)r[i].apply(this,t)}return this};ua.prototype.emitReserved=ua.prototype.emit;ua.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ua.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ff=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function _U(e,...t){return t.reduce((r,i)=>(e.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}const ade=setTimeout,ide=clearTimeout;function hC(e,t){t.useNativeTimers?(e.setTimeoutFn=ade.bind(Ff),e.clearTimeoutFn=ide.bind(Ff)):(e.setTimeoutFn=setTimeout.bind(Ff),e.clearTimeoutFn=clearTimeout.bind(Ff))}const ode=1.33;function sde(e){return typeof e=="string"?lde(e):Math.ceil((e.byteLength||e.size)*ode)}function lde(e){let t=0,r=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}class ude extends Error{constructor(t,r,i){super(t),this.description=r,this.context=i,this.type="TransportError"}}class EU extends ua{constructor(t){super(),this.writable=!1,hC(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,r,i){return super.emitReserved("error",new ude(t,r,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 r=SU(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const TU="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ZO=64,cde={};let VF=0,vx=0,HF;function WF(e){let t="";do t=TU[e%ZO]+t,e=Math.floor(e/ZO);while(e>0);return t}function NU(){const e=WF(+new Date);return e!==HF?(VF=0,HF=e):e+"."+WF(VF++)}for(;vx<ZO;vx++)cde[TU[vx]]=vx;function RU(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function fde(e){let t={},r=e.split("&");for(let i=0,o=r.length;i<o;i++){let c=r[i].split("=");t[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return t}let AU=!1;try{AU=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const dde=AU;function OU(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||dde))return new XMLHttpRequest}catch{}if(!t)try{return new Ff[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function pde(){}const hde=function(){return new OU({xdomain:!1}).responseType!=null}();class mde extends EU{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 r=t&&t.forceBase64;this.supportsBinary=hde&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=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)};nde(t,this.socket.binaryType).forEach(r),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,tde(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=NU()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const o=RU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+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 hu(this.uri(),t)}doWrite(t,r){const i=this.request({method:"POST",data:t});i.on("success",r),i.on("error",(o,c)=>{this.onError("xhr post error",o,c)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=t}}class hu extends ua{constructor(t,r){super(),hC(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=_U(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new OU(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=hu.requestsCount++,hu.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=pde,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete hu.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()}}hu.requestsCount=0;hu.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",GF);else if(typeof addEventListener=="function"){const e="onpagehide"in Ff?"pagehide":"unload";addEventListener(e,GF,!1)}}function GF(){for(let e in hu.requests)hu.requests.hasOwnProperty(e)&&hu.requests[e].abort()}const vde=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),gx=Ff.WebSocket||Ff.MozWebSocket,YF=!0,gde="arraybuffer",qF=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class yde extends EU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,i=qF?{}:_U(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=YF&&!qF?r?new gx(t,r):new gx(t):new gx(t,r,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||gde,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 r=0;r<t.length;r++){const i=t[r],o=r===t.length-1;bU(i,this.supportsBinary,c=>{const u={};try{YF&&this.ws.send(c)}catch{}o&&vde(()=>{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 r=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=NU()),this.supportsBinary||(t.b64=1);const o=RU(t),c=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(c?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}check(){return!!gx}}const bde={websocket:yde,polling:mde},Sde=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,xde=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function QO(e){const t=e,r=e.indexOf("["),i=e.indexOf("]");r!=-1&&i!=-1&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let o=Sde.exec(e||""),c={},u=14;for(;u--;)c[xde[u]]=o[u]||"";return r!=-1&&i!=-1&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=wde(c,c.path),c.queryKey=Cde(c,c.query),c}function wde(e,t){const r=/\/{2,9}/g,i=t.replace(r,"/").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 Cde(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,c){o&&(r[o]=c)}),r}class Df extends ua{constructor(t,r={}){super(),t&&typeof t=="object"&&(r=t,t=null),t?(t=QO(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=QO(r.host).host),hC(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.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},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=fde(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 r=Object.assign({},this.opts.query);r.EIO=CU,r.transport=t,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new bde[t](i)}open(){let t;if(this.opts.rememberUpgrade&&Df.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",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),i=!1;Df.priorWebsocketSuccess=!1;const o=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",x=>{if(!i)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Df.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(S(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const C=new Error("probe error");C.transport=r.name,this.emitReserved("upgradeError",C)}}))};function c(){i||(i=!0,S(),r.close(),r=null)}const u=x=>{const C=new Error("probe error: "+x);C.transport=r.name,c(),this.emitReserved("upgradeError",C)};function h(){u("transport closed")}function m(){u("socket closed")}function v(x){r&&x.name!==r.name&&c()}const S=()=>{r.removeListener("open",o),r.removeListener("error",u),r.removeListener("close",h),this.off("close",m),this.off("upgrading",v)};r.once("open",o),r.once("error",u),r.once("close",h),this.once("close",m),this.once("upgrading",v),r.open()}onOpen(){if(this.readyState="open",Df.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const r=this.upgrades.length;for(;t<r;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 r=new Error("server error");r.code=t.data,this.onError(r);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 r=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(r+=sde(o)),i>0&&r>this.maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}write(t,r,i){return this.sendPacket("message",t,r,i),this}send(t,r,i){return this.sendPacket("message",t,r,i),this}sendPacket(t,r,i,o){if(typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const c={type:t,data:r,options:i};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};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){Df.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(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,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let i=0;const o=t.length;for(;i<o;i++)~this.transports.indexOf(t[i])&&r.push(t[i]);return r}}Df.protocol=CU;function _de(e,t="",r){let i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),i=QO(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 c=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+c+":"+i.port+t,i.href=i.protocol+"://"+c+(r&&r.port===i.port?"":":"+i.port),i}const Ede=typeof ArrayBuffer=="function",Tde=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,kU=Object.prototype.toString,Nde=typeof Blob=="function"||typeof Blob<"u"&&kU.call(Blob)==="[object BlobConstructor]",Rde=typeof File=="function"||typeof File<"u"&&kU.call(File)==="[object FileConstructor]";function Q2(e){return Ede&&(e instanceof ArrayBuffer||Tde(e))||Nde&&e instanceof Blob||Rde&&e instanceof File}function Ux(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,i=e.length;r<i;r++)if(Ux(e[r]))return!0;return!1}if(Q2(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ux(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ux(e[r]))return!0;return!1}function Ade(e){const t=[],r=e.data,i=e;return i.data=JO(r,t),i.attachments=t.length,{packet:i,buffers:t}}function JO(e,t){if(!e)return e;if(Q2(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=JO(e[i],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=JO(e[i],t));return r}return e}function Ode(e,t){return e.data=ek(e.data,t),e.attachments=void 0,e}function ek(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 r=0;r<e.length;r++)e[r]=ek(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=ek(e[r],t));return e}const kde=5;var Vn;(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"})(Vn||(Vn={}));class Dde{constructor(t){this.replacer=t}encode(t){return(t.type===Vn.EVENT||t.type===Vn.ACK)&&Ux(t)?(t.type=t.type===Vn.EVENT?Vn.BINARY_EVENT:Vn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Vn.BINARY_EVENT||t.type===Vn.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=Ade(t),i=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(i),o}}class J2 extends ua{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t),r.type===Vn.BINARY_EVENT||r.type===Vn.BINARY_ACK?(this.reconstructor=new Pde(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Q2(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const i={type:Number(t.charAt(0))};if(Vn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Vn.BINARY_EVENT||i.type===Vn.BINARY_ACK){const c=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const u=t.substring(c,r);if(u!=Number(u)||t.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(u)}if(t.charAt(r+1)==="/"){const c=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););i.nsp=t.substring(c,r)}else i.nsp="/";const o=t.charAt(r+1);if(o!==""&&Number(o)==o){const c=r+1;for(;++r;){const u=t.charAt(r);if(u==null||Number(u)!=u){--r;break}if(r===t.length)break}i.id=Number(t.substring(c,r+1))}if(t.charAt(++r)){const c=this.tryParse(t.substr(r));if(J2.isPayloadValid(i.type,c))i.data=c;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Vn.CONNECT:return typeof r=="object";case Vn.DISCONNECT:return r===void 0;case Vn.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case Vn.EVENT:case Vn.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case Vn.ACK:case Vn.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Pde{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=Ode(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Mde=Object.freeze(Object.defineProperty({__proto__:null,protocol:kde,get PacketType(){return Vn},Encoder:Dde,Decoder:J2},Symbol.toStringTag,{value:"Module"}));function xl(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const Ide=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class DU extends ua{constructor(t,r,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,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=[xl(t,"open",this.onopen.bind(this)),xl(t,"packet",this.onpacket.bind(this)),xl(t,"error",this.onerror.bind(this)),xl(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,...r){if(Ide.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');r.unshift(t);const i={type:Vn.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const u=this.ids++,h=r.pop();this._registerAckCallback(u,h),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,r){const i=this.flags.timeout;if(i===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...c)=>{this.io.clearTimeoutFn(o),r.apply(this,[null,...c])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Vn.CONNECT,data:t})}):this.packet({type:Vn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Vn.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 Vn.EVENT:case Vn.BINARY_EVENT:this.onevent(t);break;case Vn.ACK:case Vn.BINARY_ACK:this.onack(t);break;case Vn.DISCONNECT:this.ondisconnect();break;case Vn.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 r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const r=this;let i=!1;return function(...o){i||(i=!0,r.packet({type:Vn.ACK,id:t,data:o}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.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:Vn.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 r=this._anyListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.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 r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(t===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,t.data)}}}function uv(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}uv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};uv.prototype.reset=function(){this.attempts=0};uv.prototype.setMin=function(e){this.ms=e};uv.prototype.setMax=function(e){this.max=e};uv.prototype.setJitter=function(e){this.jitter=e};class tk extends ua{constructor(t,r){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,hC(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new uv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const o=r.parser||Mde;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.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 Df(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=xl(r,"open",function(){i.onopen(),t&&t()}),c=xl(r,"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 h=this.setTimeoutFn(()=>{o(),r.close(),r.emit("error",new Error("timeout"))},u);this.opts.autoUnref&&h.unref(),this.subs.push(function(){clearTimeout(h)})}return this.subs.push(o),this.subs.push(c),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(xl(t,"ping",this.onping.bind(this)),xl(t,"data",this.ondata.bind(this)),xl(t,"error",this.onerror.bind(this)),xl(t,"close",this.onclose.bind(this)),xl(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,r){let i=this.nsps[t];return i||(i=new DU(this,t,r),this.nsps[t]=i),i}_destroy(t){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let i=0;i<r.length;i++)this.engine.write(r[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,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),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 r=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()}))},r);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 Ay={};function jx(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=_de(e,t.path||"/socket.io"),i=r.source,o=r.id,c=r.path,u=Ay[o]&&c in Ay[o].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let m;return h?m=new tk(i,t):(Ay[o]||(Ay[o]=new tk(i,t)),m=Ay[o]),r.query&&!t.query&&(t.query=r.queryKey),m.socket(r.path,t)}Object.assign(jx,{Manager:tk,Socket:DU,io:jx,connect:jx});let yx;const Lde=new Uint8Array(16);function Fde(){if(!yx&&(yx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!yx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yx(Lde)}const oi=[];for(let e=0;e<256;++e)oi.push((e+256).toString(16).slice(1));function zde(e,t=0){return(oi[e[t+0]]+oi[e[t+1]]+oi[e[t+2]]+oi[e[t+3]]+"-"+oi[e[t+4]]+oi[e[t+5]]+"-"+oi[e[t+6]]+oi[e[t+7]]+"-"+oi[e[t+8]]+oi[e[t+9]]+"-"+oi[e[t+10]]+oi[e[t+11]]+oi[e[t+12]]+oi[e[t+13]]+oi[e[t+14]]+oi[e[t+15]]).toLowerCase()}const Bde=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),KF={randomUUID:Bde};function Oy(e,t,r){if(KF.randomUUID&&!t&&!e)return KF.randomUUID();e=e||{};const i=e.random||(e.rng||Fde)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=i[o];return t}return zde(i)}var Ude=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,jde=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,$de=/[^-+\dA-Z]/g;function Ki(e,t,r,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(XF[t]||t||XF.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),r=!0,o==="GMT:"&&(i=!0));var c=function(){return r?"getUTC":"get"},u=function(){return e[c()+"Date"]()},h=function(){return e[c()+"Day"]()},m=function(){return e[c()+"Month"]()},v=function(){return e[c()+"FullYear"]()},S=function(){return e[c()+"Hours"]()},x=function(){return e[c()+"Minutes"]()},C=function(){return e[c()+"Seconds"]()},_=function(){return e[c()+"Milliseconds"]()},N=function(){return r?0:e.getTimezoneOffset()},O=function(){return Vde(e)},I=function(){return Hde(e)},V={d:function(){return u()},dd:function(){return Vo(u())},ddd:function(){return fo.dayNames[h()]},DDD:function(){return ZF({y:v(),m:m(),d:u(),_:c(),dayName:fo.dayNames[h()],short:!0})},dddd:function(){return fo.dayNames[h()+7]},DDDD:function(){return ZF({y:v(),m:m(),d:u(),_:c(),dayName:fo.dayNames[h()+7]})},m:function(){return m()+1},mm:function(){return Vo(m()+1)},mmm:function(){return fo.monthNames[m()]},mmmm:function(){return fo.monthNames[m()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return Vo(v(),4)},h:function(){return S()%12||12},hh:function(){return Vo(S()%12||12)},H:function(){return S()},HH:function(){return Vo(S())},M:function(){return x()},MM:function(){return Vo(x())},s:function(){return C()},ss:function(){return Vo(C())},l:function(){return Vo(_(),3)},L:function(){return Vo(Math.floor(_()/10))},t:function(){return S()<12?fo.timeNames[0]:fo.timeNames[1]},tt:function(){return S()<12?fo.timeNames[2]:fo.timeNames[3]},T:function(){return S()<12?fo.timeNames[4]:fo.timeNames[5]},TT:function(){return S()<12?fo.timeNames[6]:fo.timeNames[7]},Z:function(){return i?"GMT":r?"UTC":Wde(e)},o:function(){return(N()>0?"-":"+")+Vo(Math.floor(Math.abs(N())/60)*100+Math.abs(N())%60,4)},p:function(){return(N()>0?"-":"+")+Vo(Math.floor(Math.abs(N())/60),2)+":"+Vo(Math.floor(Math.abs(N())%60),2)},S:function(){return["th","st","nd","rd"][u()%10>3?0:(u()%100-u()%10!=10)*u()%10]},W:function(){return O()},WW:function(){return Vo(O())},N:function(){return I()}};return t.replace(Ude,function(M){return M in V?V[M]():M.slice(1,M.length-1)})}var XF={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"},fo={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"]},Vo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(r,"0")},ZF=function(t){var r=t.y,i=t.m,o=t.d,c=t._,u=t.dayName,h=t.short,m=h===void 0?!1:h,v=new Date,S=new Date;S.setDate(S[c+"Date"]()-1);var x=new Date;x.setDate(x[c+"Date"]()+1);var C=function(){return v[c+"Date"]()},_=function(){return v[c+"Month"]()},N=function(){return v[c+"FullYear"]()},O=function(){return S[c+"Date"]()},I=function(){return S[c+"Month"]()},V=function(){return S[c+"FullYear"]()},M=function(){return x[c+"Date"]()},z=function(){return x[c+"Month"]()},B=function(){return x[c+"FullYear"]()};return N()===r&&_()===i&&C()===o?m?"Tdy":"Today":V()===r&&I()===i&&O()===o?m?"Ysd":"Yesterday":B()===r&&z()===i&&M()===o?m?"Tmw":"Tomorrow":u},Vde=function(t){var r=new Date(t.getFullYear(),t.getMonth(),t.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=new Date(r.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var o=r.getTimezoneOffset()-i.getTimezoneOffset();r.setHours(r.getHours()-o);var c=(r-i)/(864e5*7);return 1+Math.floor(c)},Hde=function(t){var r=t.getDay();return r===0&&(r=7),r},Wde=function(t){return(String(t).match(jde)||[""]).pop().replace($de,"").replace(/GMT\+0000/g,"UTC")};const Gde=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],Yde=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],qde=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Kde=[{key:"2x",value:2},{key:"4x",value:4}],QF={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},nk=0,rk=4294967295,PU=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),MU=e=>{const i=e.split(",").map(o=>o.split(":")).map(o=>[parseInt(o[0]),parseFloat(o[1])]);return mC(i)?i:!1},mC=e=>Boolean(typeof e=="string"?MU(e):e.length&&!e.some(t=>{const[r,i]=t,o=!isNaN(parseInt(r.toString(),10)),c=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(o&&c)})),Xde=e=>mC(e)?e.reduce((t,r,i,o)=>{const[c,u]=r;return t+=`${c}:${u}`,i!==o.length-1&&(t+=","),t},""):!1,Zde=(e,t)=>{const{prompt:r,iterations:i,steps:o,cfgScale:c,height:u,width:h,sampler:m,seed:v,seamless:S,shouldUseInitImage:x,img2imgStrength:C,initialImagePath:_,maskPath:N,shouldFitToWidthHeight:O,shouldGenerateVariations:I,variationAmount:V,seedWeights:M,shouldRunESRGAN:z,upscalingLevel:B,upscalingStrength:j,shouldRunGFPGAN:K,gfpganStrength:X,shouldRandomizeSeed:fe}=e,{shouldDisplayInProgress:me}=t,se={prompt:r,iterations:i,steps:o,cfg_scale:c,height:u,width:h,sampler_name:m,seed:v,seamless:S,progress_images:me};se.seed=fe?PU(nk,rk):v,x&&(se.init_img=_,se.strength=C,se.fit=O,N&&(se.init_mask=N)),I?(se.variation_amount=V,M&&(se.with_variations=MU(M))):se.variation_amount=0;let be=!1,Ke=!1;return z&&(be={level:B,strength:j}),K&&(Ke={strength:X}),console.log(se),{generationParameters:se,esrganParameters:be,gfpganParameters:Ke}},JF=e=>{const{prompt:t,iterations:r,steps:i,cfg_scale:o,height:c,width:u,sampler_name:h,seed:m,seamless:v,progress_images:S,variation_amount:x,with_variations:C,gfpgan_strength:_,upscale:N,init_img:O,init_mask:I,strength:V}=e,M={shouldDisplayInProgress:S,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return x>0&&(M.shouldGenerateVariations=!0,M.variationAmount=x,C&&(M.seedWeights=Xde(C))),_>0&&(M.shouldRunGFPGAN=!0,M.gfpganStrength=_),N&&(M.shouldRunESRGAN=!0,M.upscalingLevel=N[0],M.upscalingStrength=N[1]),O&&(M.shouldUseInitImage=!0,M.initialImagePath=O,M.strength=V,I&&(M.maskPath=I)),t&&(M.prompt=t,M.iterations=r,M.steps=i,M.cfgScale=o,M.height=c,M.width=u,M.sampler=h,M.seed=m,M.seamless=v),M},Qde=e=>{const{dispatch:t,getState:r}=e;return{onConnect:()=>{try{t(BF(!0)),t(UF("Connected"))}catch(i){console.error(i)}},onDisconnect:()=>{try{t(BF(!1)),t(nu(!1)),t(UF("Disconnected")),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(i){console.error(i)}},onGenerationResult:i=>{try{const{url:o,metadata:c}=i,u=Oy(),h=JF(c);t(mx({uuid:u,url:o,metadata:h})),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Image generated: ${o}`})),t(nu(!1))}catch(o){console.error(o)}},onIntermediateResult:i=>{try{const o=Oy(),{url:c,metadata:u}=i;t(Bfe({uuid:o,url:c,metadata:u})),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Intermediate image generated: ${c}`})),t(nu(!1))}catch(o){console.error(o)}},onESRGANResult:i=>{try{const{url:o,uuid:c,metadata:u}=i,h=Oy(),v={...r().gallery.images.find(S=>S.uuid===c).metadata};v.shouldRunESRGAN=!0,v.upscalingLevel=u.upscale[0],v.upscalingStrength=u.upscale[1],t(mx({uuid:h,url:o,metadata:v})),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Upscaled: ${o}`})),t(nu(!1))}catch(o){console.error(o)}},onGFPGANResult:i=>{try{const{url:o,uuid:c,metadata:u}=i,h=Oy(),v={...r().gallery.images.find(S=>S.uuid===c).metadata};v.shouldRunGFPGAN=!0,v.gfpganStrength=u.gfpgan_strength,t(mx({uuid:h,url:o,metadata:v})),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Fixed faces: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:i=>{try{t(nu(!0)),t(Gfe(i))}catch(o){console.error(o)}},onError:i=>{const{message:o,additionalData:c}=i;try{t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(nu(!1)),t(zF())}catch(u){console.error(u)}},onGalleryImages:i=>{const{images:o}=i,c=o.map(u=>({uuid:Oy(),url:u.path,metadata:JF(u.metadata)}));t(zfe(c)),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(nu(!1));const{intermediateImage:i}=r().gallery;i&&(t(mx(i)),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Intermediate image saved: ${i.url}`})),t(zF())),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:i=>{const{url:o,uuid:c}=i;t(Ffe(c)),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:i=>{const{url:o}=i;t(X2(o)),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:i=>{const{url:o}=i;t(mU(o)),t(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))}}},Jde=(e,t)=>{const{dispatch:r,getState:i}=e;return{emitGenerateImage:()=>{r(nu(!0));const{generationParameters:o,esrganParameters:c,gfpganParameters:u}=Zde(i().sd,i().system);t.emit("generateImage",o,c,u),r(qi({timestamp:Ki(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...o,...c,...u})}`}))},emitRunESRGAN:o=>{r(nu(!0));const{upscalingLevel:c,upscalingStrength:u}=i().sd,h={upscale:[c,u]};t.emit("runESRGAN",o,h),r(qi({timestamp:Ki(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...h})}`}))},emitRunGFPGAN:o=>{r(nu(!0));const{gfpganStrength:c}=i().sd,u={gfpgan_strength:c};t.emit("runGFPGAN",o,u),r(qi({timestamp:Ki(new Date,"isoDateTime"),message:`GFPGAN fix faces requested: ${JSON.stringify({file:o.url,...u})}`}))},emitDeleteImage:o=>{const{url:c,uuid:u}=o;t.emit("deleteImage",c,u)},emitRequestAllImages:()=>{t.emit("requestAllImages")},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)}}},epe=()=>{const{hostname:e,port:t}=new URL(window.location.href),r=jx(`http://${e}:9090`);let i=!1;return c=>u=>h=>{const{onConnect:m,onDisconnect:v,onError:S,onESRGANResult:x,onGFPGANResult:C,onGenerationResult:_,onIntermediateResult:N,onProgressUpdate:O,onGalleryImages:I,onProcessingCanceled:V,onImageDeleted:M,onInitialImageUploaded:z,onMaskImageUploaded:B}=Qde(c),{emitGenerateImage:j,emitRunESRGAN:K,emitRunGFPGAN:X,emitDeleteImage:fe,emitRequestAllImages:me,emitCancelProcessing:se,emitUploadInitialImage:be,emitUploadMaskImage:Ke}=Jde(c,r);switch(i||(r.on("connect",()=>m()),r.on("disconnect",()=>v()),r.on("error",J=>S(J)),r.on("generationResult",J=>_(J)),r.on("esrganResult",J=>x(J)),r.on("gfpganResult",J=>C(J)),r.on("intermediateResult",J=>N(J)),r.on("progressUpdate",J=>O(J)),r.on("galleryImages",J=>I(J)),r.on("processingCanceled",()=>{V()}),r.on("imageDeleted",J=>{M(J)}),r.on("initialImageUploaded",J=>{z(J)}),r.on("maskImageUploaded",J=>{B(J)}),i=!0),h.type){case"socketio/generateImage":{j();break}case"socketio/runESRGAN":{K(h.payload);break}case"socketio/runGFPGAN":{X(h.payload);break}case"socketio/deleteImage":{fe(h.payload);break}case"socketio/requestAllImages":{me();break}case"socketio/cancelProcessing":{se();break}case"socketio/uploadInitialImage":{be(h.payload);break}case"socketio/uploadMaskImage":{Ke(h.payload);break}}u(h)}},tpe={key:"root",storage:K2,blacklist:["gallery","system"]},npe={key:"system",storage:K2,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},rpe=V6({sd:Mfe,gallery:Ufe,system:fU(npe,Yfe)}),ape=fU(tpe,rpe),IU=mce({reducer:ape,middleware:e=>e({serializableCheck:!1}).concat(epe())}),ci=Lce,wr=Tce;function $x(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$x=function(r){return typeof r}:$x=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$x(e)}function ipe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ope(e,t,r){return t&&e3(e.prototype,t),r&&e3(e,r),e}function spe(e,t){return t&&($x(t)==="object"||typeof t=="function")?t:Vx(e)}function ak(e){return ak=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ak(e)}function Vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lpe(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&&ik(e,t)}function ik(e,t){return ik=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},ik(e,t)}function Hx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var LU=function(e){lpe(t,e);function t(){var r,i;ipe(this,t);for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];return i=spe(this,(r=ak(t)).call.apply(r,[this].concat(c))),Hx(Vx(i),"state",{bootstrapped:!1}),Hx(Vx(i),"_unsubscribe",void 0),Hx(Vx(i),"handlePersistorState",function(){var h=i.props.persistor,m=h.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 ope(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}(D.exports.PureComponent);Hx(LU,"defaultProps",{children:null,loading:null});const t3=Tue({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"}}}});var n3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/Loading.tsx";const FU=()=>k(On,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:k(nC,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:n3,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:n3,lineNumber:5,columnNumber:9},void 0);var zU={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r3=Ue.createContext&&Ue.createContext(zU),Wx="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",Uf=globalThis&&globalThis.__assign||function(){return Uf=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Uf.apply(this,arguments)},upe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[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])&&(r[i[o]]=e[i[o]]);return r};function BU(e){return e&&e.map(function(t,r){return Ue.createElement(t.tag,Uf({key:r},t.attr),BU(t.child))})}function Qo(e){return function(t){return k(cpe,{...Uf({attr:Uf({},e.attr)},t),children:BU(e.child)},void 0,!1,{fileName:Wx,lineNumber:39,columnNumber:12},this)}}function cpe(e){var t=function(r){var i=e.attr,o=e.size,c=e.title,u=upe(e,["attr","size","title"]),h=o||r.size||"1em",m;return r.className&&(m=r.className),e.className&&(m=(m?m+" ":"")+e.className),k("svg",{...Uf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,u,{className:m,style:Uf(Uf({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),children:[c&&k("title",{children:c},void 0,!1,{fileName:Wx,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:Wx,lineNumber:55,columnNumber:12},this)};return r3!==void 0?k(r3.Consumer,{children:function(r){return t(r)}},void 0,!1,{fileName:Wx,lineNumber:70,columnNumber:38},this):t(zU)}function fpe(e){return Qo({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 dpe(e){return Qo({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 ppe(e){return Qo({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 hpe(e){return Qo({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 mpe(e){return Qo({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 vpe(e){return Qo({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 gpe(e){return Qo({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 ype(e){return Qo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function bpe(e){return Qo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function Spe(e){return Qo({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 UU(e){return Qo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 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-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}var xpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDButton.tsx";const ru=e=>{const{label:t,size:r="sm",...i}=e;return k(vu,{size:r,...i,children:t},void 0,!1,{fileName:xpe,lineNumber:15,columnNumber:5},void 0)};var Ra="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageMetadataViewer.tsx";const wpe=(e,t)=>e.image.uuid===t.image.uuid,Cpe=D.exports.memo(({image:e})=>{const t=ci(),r=Object.keys(QF),i=[];return r.forEach(o=>{const c=e.metadata[o];c!==void 0&&i.push({label:QF[o],key:o,value:c})}),k(On,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[k(ru,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:i.length===0,onClick:()=>t(Z2(e.metadata))},void 0,!1,{fileName:Ra,lineNumber:63,columnNumber:7},void 0),k(On,{gap:2,children:[k(Nr,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:Ra,lineNumber:71,columnNumber:9},void 0),k(cw,{href:e.url,isExternal:!0,children:k(Nr,{children:e.url},void 0,!1,{fileName:Ra,lineNumber:73,columnNumber:11},void 0)},void 0,!1,{fileName:Ra,lineNumber:72,columnNumber:9},void 0)]},void 0,!0,{fileName:Ra,lineNumber:70,columnNumber:7},void 0),i.length?k(bo,{children:[k(sC,{children:i.map((o,c)=>{const{label:u,key:h,value:m}=o;return k(Xz,{pb:1,children:k(On,{gap:2,children:[k(Ps,{"aria-label":"Use this parameter",icon:k(ype,{},void 0,!1,{fileName:Ra,lineNumber:86,columnNumber:29},void 0),size:"xs",onClick:()=>t(Nfe({key:h,value:m}))},void 0,!1,{fileName:Ra,lineNumber:84,columnNumber:21},void 0),k(Nr,{fontWeight:"semibold",children:[u,":"]},void 0,!0,{fileName:Ra,lineNumber:97,columnNumber:21},void 0),m==null||m===""||m===0?k(Nr,{maxHeight:100,fontStyle:"italic",children:"None"},void 0,!1,{fileName:Ra,lineNumber:103,columnNumber:23},void 0):k(Nr,{maxHeight:100,overflowY:"scroll",children:m.toString()},void 0,!1,{fileName:Ra,lineNumber:107,columnNumber:23},void 0)]},void 0,!0,{fileName:Ra,lineNumber:83,columnNumber:19},void 0)},c,!1,{fileName:Ra,lineNumber:82,columnNumber:17},void 0)})},void 0,!1,{fileName:Ra,lineNumber:78,columnNumber:11},void 0),k(On,{gap:2,children:[k(Nr,{fontWeight:"semibold",children:"Raw:"},void 0,!1,{fileName:Ra,lineNumber:117,columnNumber:13},void 0),k(Nr,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)},void 0,!1,{fileName:Ra,lineNumber:118,columnNumber:13},void 0)]},void 0,!0,{fileName:Ra,lineNumber:116,columnNumber:11},void 0)]},void 0,!0):k(pb,{width:"100%",pt:10,children:k(Nr,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:Ra,lineNumber:125,columnNumber:11},void 0)},void 0,!1,{fileName:Ra,lineNumber:124,columnNumber:9},void 0)]},void 0,!0,{fileName:Ra,lineNumber:62,columnNumber:5},void 0)},wpe),jU=Xo("socketio/generateImage"),_pe=Xo("socketio/runESRGAN"),Epe=Xo("socketio/runGFPGAN"),Tpe=Xo("socketio/deleteImage"),Npe=Xo("socketio/requestAllImages"),Rpe=Xo("socketio/cancelProcessing"),Ape=Xo("socketio/uploadInitialImage"),Ope=Xo("socketio/uploadMaskImage");var po="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const kpe=Vr(e=>e.system,e=>e.shouldConfirmOnDelete),$U=({image:e,children:t})=>{const{isOpen:r,onOpen:i,onClose:o}=SO(),c=ci(),u=wr(kpe),h=D.exports.useRef(null),m=x=>{x.stopPropagation(),u?i():v()},v=()=>{c(Tpe(e)),o()},S=x=>c(yU(!x.target.checked));return k(bo,{children:[D.exports.cloneElement(t,{onClick:m}),k(one,{isOpen:r,leastDestructiveRef:h,onClose:o,children:k(gw,{children:k(sne,{children:[k(O2,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:po,lineNumber:86,columnNumber:13},void 0),k(mw,{children:k(On,{direction:"column",gap:5,children:[k(Nr,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:po,lineNumber:92,columnNumber:17},void 0),k(Hf,{children:k(On,{alignItems:"center",children:[k(Wf,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:po,lineNumber:97,columnNumber:21},void 0),k(Bf,{checked:!u,onChange:S},void 0,!1,{fileName:po,lineNumber:98,columnNumber:21},void 0)]},void 0,!0,{fileName:po,lineNumber:96,columnNumber:19},void 0)},void 0,!1,{fileName:po,lineNumber:95,columnNumber:17},void 0)]},void 0,!0,{fileName:po,lineNumber:91,columnNumber:15},void 0)},void 0,!1,{fileName:po,lineNumber:90,columnNumber:13},void 0),k(A2,{children:[k(vu,{ref:h,onClick:o,children:"Cancel"},void 0,!1,{fileName:po,lineNumber:107,columnNumber:15},void 0),k(vu,{colorScheme:"red",onClick:v,ml:3,children:"Delete"},void 0,!1,{fileName:po,lineNumber:110,columnNumber:15},void 0)]},void 0,!0,{fileName:po,lineNumber:106,columnNumber:13},void 0)]},void 0,!0,{fileName:po,lineNumber:85,columnNumber:11},void 0)},void 0,!1,{fileName:po,lineNumber:84,columnNumber:9},void 0)},void 0,!1,{fileName:po,lineNumber:79,columnNumber:7},void 0)]},void 0,!0)};var lc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Dpe=Vr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Ppe=({image:e,shouldShowImageDetails:t,setShouldShowImageDetails:r})=>{const i=ci(),{intermediateImage:o}=wr(O=>O.gallery),{isProcessing:c,isConnected:u,isGFPGANAvailable:h,isESRGANAvailable:m}=wr(Dpe),v=()=>i(X2(e.url)),S=()=>i(Z2(e.metadata)),x=()=>i(Nw(e.metadata.seed)),C=()=>i(_pe(e)),_=()=>i(Epe(e)),N=()=>r(!t);return k(On,{gap:2,children:[k(ru,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:v},void 0,!1,{fileName:lc,lineNumber:71,columnNumber:7},void 0),k(ru,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:S},void 0,!1,{fileName:lc,lineNumber:79,columnNumber:7},void 0),k(ru,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!e.metadata.seed,onClick:x},void 0,!1,{fileName:lc,lineNumber:87,columnNumber:7},void 0),k(ru,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!m||Boolean(o)||!(u&&!c),onClick:C},void 0,!1,{fileName:lc,lineNumber:96,columnNumber:7},void 0),k(ru,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!h||Boolean(o)||!(u&&!c),onClick:_},void 0,!1,{fileName:lc,lineNumber:108,columnNumber:7},void 0),k(ru,{label:"Details",colorScheme:"gray",variant:t?"solid":"outline",borderWidth:1,flexGrow:1,onClick:N},void 0,!1,{fileName:lc,lineNumber:120,columnNumber:7},void 0),k($U,{image:e,children:k(ru,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(o)},void 0,!1,{fileName:lc,lineNumber:129,columnNumber:9},void 0)},void 0,!1,{fileName:lc,lineNumber:128,columnNumber:7},void 0)]},void 0,!0,{fileName:lc,lineNumber:70,columnNumber:5},void 0)};var _f="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const Mpe="calc(100vh - 238px)",Ipe=()=>{const{currentImage:e,intermediateImage:t}=wr(u=>u.gallery),r=Ip("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[i,o]=D.exports.useState(!1),c=t||e;return c?k(On,{direction:"column",borderWidth:1,rounded:"md",p:2,gap:2,children:[k(Ppe,{image:c,shouldShowImageDetails:i,setShouldShowImageDetails:o},void 0,!1,{fileName:_f,lineNumber:31,columnNumber:7},void 0),k(pb,{height:Mpe,position:"relative",children:[k(db,{src:c.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:_f,lineNumber:37,columnNumber:9},void 0),i&&k(On,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:r,overflow:"scroll",children:k(Cpe,{image:c},void 0,!1,{fileName:_f,lineNumber:55,columnNumber:13},void 0)},void 0,!1,{fileName:_f,lineNumber:44,columnNumber:11},void 0)]},void 0,!0,{fileName:_f,lineNumber:36,columnNumber:7},void 0)]},void 0,!0,{fileName:_f,lineNumber:30,columnNumber:5},void 0):k(pb,{height:"100%",position:"relative",children:k(Nr,{size:"xl",children:"No image selected"},void 0,!1,{fileName:_f,lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:_f,lineNumber:61,columnNumber:5},void 0)};var ks="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const Lpe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,Fpe=D.exports.memo(e=>{const[t,r]=D.exports.useState(!1),i=ci(),o=Ip("green.600","green.300"),c=Ip("gray.200","gray.700"),u=Ip("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:h,isSelected:m}=e,{url:v,uuid:S,metadata:x}=h,C=()=>r(!0),_=()=>r(!1),N=V=>{V.stopPropagation(),i(Z2(x))},O=V=>{V.stopPropagation(),i(Nw(h.metadata.seed))};return k(Fp,{position:"relative",children:[k(db,{width:120,height:120,objectFit:"cover",rounded:"md",src:v,loading:"lazy",backgroundColor:c},void 0,!1,{fileName:ks,lineNumber:62,columnNumber:7},void 0),k(On,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:m?u:void 0,onClick:()=>i(Lfe(h)),onMouseOver:C,onMouseOut:_,children:[m&&k(Tl,{fill:o,width:"50%",height:"50%",as:ppe},void 0,!1,{fileName:ks,lineNumber:87,columnNumber:11},void 0),t&&k(On,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[k($U,{image:h,children:k(Ps,{colorScheme:"red","aria-label":"Delete image",icon:k(UU,{},void 0,!1,{fileName:ks,lineNumber:101,columnNumber:23},void 0),size:"xs",fontSize:15},void 0,!1,{fileName:ks,lineNumber:98,columnNumber:15},void 0)},void 0,!1,{fileName:ks,lineNumber:97,columnNumber:13},void 0),k(Ps,{"aria-label":"Use all parameters",colorScheme:"blue",icon:k(mpe,{},void 0,!1,{fileName:ks,lineNumber:109,columnNumber:21},void 0),size:"xs",fontSize:15,onClickCapture:N},void 0,!1,{fileName:ks,lineNumber:106,columnNumber:13},void 0),h.metadata.seed&&k(Ps,{"aria-label":"Use seed",colorScheme:"blue",icon:k(bpe,{},void 0,!1,{fileName:ks,lineNumber:118,columnNumber:23},void 0),size:"xs",fontSize:16,onClickCapture:O},void 0,!1,{fileName:ks,lineNumber:115,columnNumber:15},void 0)]},void 0,!0,{fileName:ks,lineNumber:90,columnNumber:11},void 0)]},void 0,!0,{fileName:ks,lineNumber:71,columnNumber:7},void 0)]},S,!0,{fileName:ks,lineNumber:61,columnNumber:5},void 0)},Lpe);var bx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";const zpe=()=>{const{images:e,currentImageUuid:t}=wr(r=>r.gallery);return e.length?k(On,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(r=>{const{uuid:i}=r;return k(Fpe,{image:r,isSelected:t===i},i,!1,{fileName:bx,lineNumber:28,columnNumber:11},void 0)})},void 0,!1,{fileName:bx,lineNumber:23,columnNumber:5},void 0):k(pb,{height:"100%",position:"relative",children:k(Nr,{size:"xl",children:"No images in gallery"},void 0,!1,{fileName:bx,lineNumber:34,columnNumber:7},void 0)},void 0,!1,{fileName:bx,lineNumber:33,columnNumber:5},void 0)};var Bpe="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/ProgressBar.tsx";const Upe=Vr(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),jpe=()=>{const{isProcessing:e,currentStep:t,totalSteps:r,currentStatusHasSteps:i}=wr(Upe),o=t?Math.round(t*100/r):0;return k(d6,{height:"10px",value:o,isIndeterminate:e&&!i},void 0,!1,{fileName:Bpe,lineNumber:30,columnNumber:5},void 0)};function $pe(e){return Qo({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 Vpe(e){return Qo({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)}var hr="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/SettingsModal.tsx";const Hpe=Vr(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:r}},{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Wpe=({children:e})=>{const{isOpen:t,onOpen:r,onClose:i}=SO(),{isOpen:o,onOpen:c,onClose:u}=SO(),{shouldDisplayInProgress:h,shouldConfirmOnDelete:m}=wr(Hpe),v=ci(),S=()=>{ej.purge().then(()=>{i(),c()})};return k(bo,{children:[D.exports.cloneElement(e,{onClick:r}),k(yb,{isOpen:t,onClose:i,children:[k(gw,{},void 0,!1,{fileName:hr,lineNumber:89,columnNumber:9},void 0),k(vw,{children:[k(O2,{children:"Settings"},void 0,!1,{fileName:hr,lineNumber:91,columnNumber:11},void 0),k(n6,{},void 0,!1,{fileName:hr,lineNumber:92,columnNumber:11},void 0),k(mw,{children:k(On,{gap:5,direction:"column",children:[k(Hf,{children:k(fw,{children:[k(Wf,{marginBottom:1,children:"Display in-progress images (slower)"},void 0,!1,{fileName:hr,lineNumber:97,columnNumber:19},void 0),k(Bf,{isChecked:h,onChange:x=>v(Vfe(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:100,columnNumber:19},void 0)]},void 0,!0,{fileName:hr,lineNumber:96,columnNumber:17},void 0)},void 0,!1,{fileName:hr,lineNumber:95,columnNumber:15},void 0),k(Hf,{children:k(fw,{children:[k(Wf,{marginBottom:1,children:"Confirm on delete"},void 0,!1,{fileName:hr,lineNumber:110,columnNumber:19},void 0),k(Bf,{isChecked:m,onChange:x=>v(yU(x.target.checked))},void 0,!1,{fileName:hr,lineNumber:111,columnNumber:19},void 0)]},void 0,!0,{fileName:hr,lineNumber:109,columnNumber:17},void 0)},void 0,!1,{fileName:hr,lineNumber:108,columnNumber:15},void 0),k(c2,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:hr,lineNumber:120,columnNumber:15},void 0),k(Nr,{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:hr,lineNumber:121,columnNumber:15},void 0),k(Nr,{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:hr,lineNumber:126,columnNumber:15},void 0),k(vu,{colorScheme:"red",onClick:S,children:"Reset Web UI"},void 0,!1,{fileName:hr,lineNumber:131,columnNumber:15},void 0)]},void 0,!0,{fileName:hr,lineNumber:94,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:93,columnNumber:11},void 0),k(A2,{children:k(vu,{onClick:i,children:"Close"},void 0,!1,{fileName:hr,lineNumber:138,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:137,columnNumber:11},void 0)]},void 0,!0,{fileName:hr,lineNumber:90,columnNumber:9},void 0)]},void 0,!0,{fileName:hr,lineNumber:88,columnNumber:7},void 0),k(yb,{closeOnOverlayClick:!1,isOpen:o,onClose:u,isCentered:!0,children:[k(gw,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:hr,lineNumber:149,columnNumber:9},void 0),k(vw,{children:k(mw,{pb:6,pt:6,children:k(On,{justifyContent:"center",children:k(Nr,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:hr,lineNumber:153,columnNumber:15},void 0)},void 0,!1,{fileName:hr,lineNumber:152,columnNumber:13},void 0)},void 0,!1,{fileName:hr,lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:hr,lineNumber:150,columnNumber:9},void 0)]},void 0,!0,{fileName:hr,lineNumber:143,columnNumber:7},void 0)]},void 0,!0)};var Ai="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/header/SiteHeader.tsx";const Gpe=Vr(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Ype=()=>{const{colorMode:e,toggleColorMode:t}=Pw(),{isConnected:r,isProcessing:i,currentIteration:o,totalIterations:c,currentStatus:u}=wr(Gpe),h=r?"green.500":"red.500",m=e=="light"?k(gpe,{},void 0,!1,{fileName:Ai,lineNumber:50,columnNumber:48},void 0):k(Spe,{},void 0,!1,{fileName:Ai,lineNumber:50,columnNumber:61},void 0),v=e=="light"?18:20;let S=u;return i&&c>1&&(S+=` [${o}/${c}]`),k(On,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[k(c2,{size:"lg",children:"Stable Diffusion Dream Server"},void 0,!1,{fileName:Ai,lineNumber:65,columnNumber:7},void 0),k(Zz,{},void 0,!1,{fileName:Ai,lineNumber:67,columnNumber:7},void 0),k(Nr,{textColor:h,children:S},void 0,!1,{fileName:Ai,lineNumber:69,columnNumber:7},void 0),k(Wpe,{children:k(Ps,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:k(Vpe,{},void 0,!1,{fileName:Ai,lineNumber:77,columnNumber:17},void 0)},void 0,!1,{fileName:Ai,lineNumber:72,columnNumber:9},void 0)},void 0,!1,{fileName:Ai,lineNumber:71,columnNumber:7},void 0),k(Ps,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:k(cw,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:k($pe,{},void 0,!1,{fileName:Ai,lineNumber:91,columnNumber:13},void 0)},void 0,!1,{fileName:Ai,lineNumber:87,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:81,columnNumber:7},void 0),k(Ps,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:k(cw,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:k(fpe,{},void 0,!1,{fileName:Ai,lineNumber:103,columnNumber:13},void 0)},void 0,!1,{fileName:Ai,lineNumber:102,columnNumber:11},void 0)},void 0,!1,{fileName:Ai,lineNumber:96,columnNumber:7},void 0),k(Ps,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:v,icon:m},void 0,!1,{fileName:Ai,lineNumber:108,columnNumber:7},void 0)]},void 0,!0,{fileName:Ai,lineNumber:64,columnNumber:5},void 0)};var uc="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDNumberInput.tsx";const jf=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:o="sm",width:c,isInvalid:u,...h}=e;return k(Hf,{isDisabled:r,width:c,isInvalid:u,children:k(On,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&k(Wf,{marginBottom:1,children:k(Nr,{fontSize:i,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:uc,lineNumber:37,columnNumber:13},void 0)},void 0,!1,{fileName:uc,lineNumber:36,columnNumber:11},void 0),k(o6,{size:o,...h,keepWithinRange:!1,clampValueOnBlur:!0,children:[k(l6,{fontSize:"md"},void 0,!1,{fileName:uc,lineNumber:48,columnNumber:11},void 0),k(s6,{children:[k(f6,{},void 0,!1,{fileName:uc,lineNumber:50,columnNumber:13},void 0),k(c6,{},void 0,!1,{fileName:uc,lineNumber:51,columnNumber:13},void 0)]},void 0,!0,{fileName:uc,lineNumber:49,columnNumber:11},void 0)]},void 0,!0,{fileName:uc,lineNumber:42,columnNumber:9},void 0)]},void 0,!0,{fileName:uc,lineNumber:34,columnNumber:7},void 0)},void 0,!1,{fileName:uc,lineNumber:33,columnNumber:5},void 0)};var Sx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDSwitch.tsx";const Rw=e=>{const{label:t,isDisabled:r=!1,fontSize:i="md",size:o="md",width:c,...u}=e;return k(Hf,{isDisabled:r,width:c,children:k(On,{justifyContent:"space-between",alignItems:"center",children:[t&&k(Wf,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:Sx,lineNumber:30,columnNumber:11},void 0),k(Bf,{size:o,...u},void 0,!1,{fileName:Sx,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:Sx,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:Sx,lineNumber:27,columnNumber:5},void 0)};var ho="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SeedVariationOptions.tsx";const qpe=Vr(e=>e.sd,e=>({variationAmount:e.variationAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Kpe=()=>{const{shouldGenerateVariations:e,variationAmount:t,seedWeights:r,shouldRandomizeSeed:i,seed:o,iterations:c}=wr(qpe),u=ci(),h=N=>u(hfe(Number(N))),m=N=>u(Pfe(N.target.checked)),v=N=>u(Nw(Number(N))),S=()=>u(Nw(PU(nk,rk))),x=N=>u(Rfe(N.target.checked)),C=N=>u(Ofe(Number(N))),_=N=>u(Afe(N.target.value));return k(On,{gap:2,direction:"column",children:[k(jf,{label:"Images to generate",step:1,min:1,precision:0,onChange:h,value:c},void 0,!1,{fileName:ho,lineNumber:87,columnNumber:7},void 0),k(Rw,{label:"Randomize seed on generation",isChecked:i,onChange:m},void 0,!1,{fileName:ho,lineNumber:95,columnNumber:7},void 0),k(On,{gap:2,children:[k(jf,{label:"Seed",step:1,precision:0,flexGrow:1,min:nk,max:rk,isDisabled:i,isInvalid:o<0&&e,onChange:v,value:o},void 0,!1,{fileName:ho,lineNumber:101,columnNumber:9},void 0),k(vu,{size:"sm",isDisabled:i,onClick:S,children:k(Nr,{pl:2,pr:2,children:"Shuffle"},void 0,!1,{fileName:ho,lineNumber:118,columnNumber:11},void 0)},void 0,!1,{fileName:ho,lineNumber:113,columnNumber:9},void 0)]},void 0,!0,{fileName:ho,lineNumber:100,columnNumber:7},void 0),k(Rw,{label:"Generate variations",isChecked:e,width:"auto",onChange:x},void 0,!1,{fileName:ho,lineNumber:123,columnNumber:7},void 0),k(jf,{label:"Variation amount",value:t,step:.01,min:0,max:1,onChange:C},void 0,!1,{fileName:ho,lineNumber:129,columnNumber:7},void 0),k(Hf,{isInvalid:e&&!(mC(r)||r===""),flexGrow:1,children:k(fw,{children:[k(Wf,{marginInlineEnd:0,marginBottom:1,children:k(Nr,{whiteSpace:"nowrap",children:"Seed Weights"},void 0,!1,{fileName:ho,lineNumber:146,columnNumber:13},void 0)},void 0,!1,{fileName:ho,lineNumber:145,columnNumber:11},void 0),k(s2,{size:"sm",value:r,onChange:_},void 0,!1,{fileName:ho,lineNumber:148,columnNumber:11},void 0)]},void 0,!0,{fileName:ho,lineNumber:144,columnNumber:9},void 0)},void 0,!1,{fileName:ho,lineNumber:137,columnNumber:7},void 0)]},void 0,!0,{fileName:ho,lineNumber:86,columnNumber:5},void 0)};var xp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/common/components/SDSelect.tsx";const Aw=e=>{const{label:t,isDisabled:r,validValues:i,size:o="sm",fontSize:c="md",marginBottom:u=1,whiteSpace:h="nowrap",...m}=e;return k(Hf,{isDisabled:r,children:k(On,{justifyContent:"space-between",alignItems:"center",children:[k(Wf,{marginBottom:u,children:k(Nr,{fontSize:c,whiteSpace:h,children:t},void 0,!1,{fileName:xp,lineNumber:34,columnNumber:11},void 0)},void 0,!1,{fileName:xp,lineNumber:33,columnNumber:9},void 0),k(h6,{fontSize:c,size:o,...m,children:i.map(v=>typeof v=="string"||typeof v=="number"?k("option",{value:v,children:v},v,!1,{fileName:xp,lineNumber:41,columnNumber:15},void 0):k("option",{value:v.value,children:v.key},v.value,!1,{fileName:xp,lineNumber:45,columnNumber:15},void 0))},void 0,!1,{fileName:xp,lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:xp,lineNumber:32,columnNumber:7},void 0)},void 0,!1,{fileName:xp,lineNumber:31,columnNumber:5},void 0)};var xx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/SamplerOptions.tsx";const Xpe=Vr(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Zpe=()=>{const e=ci(),{steps:t,cfgScale:r,sampler:i}=wr(Xpe);return k(On,{gap:2,direction:"column",children:[k(jf,{label:"Steps",min:1,step:1,precision:0,onChange:h=>e(mfe(Number(h))),value:t},void 0,!1,{fileName:xx,lineNumber:50,columnNumber:7},void 0),k(jf,{label:"CFG scale",step:.5,onChange:h=>e(vfe(Number(h))),value:r},void 0,!1,{fileName:xx,lineNumber:58,columnNumber:7},void 0),k(Aw,{label:"Sampler",value:i,onChange:h=>e(bfe(h.target.value)),validValues:Gde},void 0,!1,{fileName:xx,lineNumber:64,columnNumber:7},void 0)]},void 0,!0,{fileName:xx,lineNumber:49,columnNumber:5},void 0)};var RA="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ESRGANOptions.tsx";const Qpe=Vr(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),Jpe=Vr(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),ehe=()=>{const e=ci(),{upscalingLevel:t,upscalingStrength:r}=wr(Qpe),{isESRGANAvailable:i}=wr(Jpe);return k(On,{direction:"column",gap:2,children:[k(Aw,{isDisabled:!i,label:"Scale",value:t,onChange:u=>e(Cfe(Number(u.target.value))),validValues:Kde},void 0,!1,{fileName:RA,lineNumber:67,columnNumber:7},void 0),k(jf,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:u=>e(_fe(Number(u))),value:r},void 0,!1,{fileName:RA,lineNumber:74,columnNumber:7},void 0)]},void 0,!0,{fileName:RA,lineNumber:66,columnNumber:5},void 0)};var a3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/GFPGANOptions.tsx";const the=Vr(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),nhe=Vr(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),rhe=()=>{const e=ci(),{gfpganStrength:t}=wr(the),{isGFPGANAvailable:r}=wr(nhe);return k(On,{direction:"column",gap:2,children:k(jf,{isDisabled:!r,label:"Strength",step:.05,min:0,max:1,onChange:o=>e(wfe(Number(o))),value:t},void 0,!1,{fileName:a3,lineNumber:55,columnNumber:7},void 0)},void 0,!1,{fileName:a3,lineNumber:54,columnNumber:5},void 0)};var ky="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OutputOptions.tsx";const ahe=Vr(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),ihe=()=>{const e=ci(),{height:t,width:r,seamless:i}=wr(ahe);return k(On,{gap:2,direction:"column",children:[k(On,{gap:2,children:[k(Aw,{label:"Width",value:r,flexGrow:1,onChange:h=>e(yfe(Number(h.target.value))),validValues:Yde},void 0,!1,{fileName:ky,lineNumber:51,columnNumber:9},void 0),k(Aw,{label:"Height",value:t,flexGrow:1,onChange:h=>e(gfe(Number(h.target.value))),validValues:qde},void 0,!1,{fileName:ky,lineNumber:58,columnNumber:9},void 0)]},void 0,!0,{fileName:ky,lineNumber:50,columnNumber:7},void 0),k(Rw,{label:"Seamless tiling",fontSize:"md",isChecked:i,onChange:h=>e(Sfe(h.target.checked))},void 0,!1,{fileName:ky,lineNumber:66,columnNumber:7},void 0)]},void 0,!0,{fileName:ky,lineNumber:49,columnNumber:5},void 0)};var ohe=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 $b(e,t){var r=she(e);if(typeof r.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function she(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var i=t.split(".").pop().toLowerCase(),o=ohe.get(i);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var lhe=[".DS_Store","Thumbs.db"];function uhe(e){return av(this,void 0,void 0,function(){return iv(this,function(t){return Ow(e)&&che(e.dataTransfer)?[2,hhe(e.dataTransfer,e.type)]:fhe(e)?[2,dhe(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,phe(e)]:[2,[]]})})}function che(e){return Ow(e)}function fhe(e){return Ow(e)&&Ow(e.target)}function Ow(e){return typeof e=="object"&&e!==null}function dhe(e){return ok(e.target.files).map(function(t){return $b(t)})}function phe(e){return av(this,void 0,void 0,function(){var t;return iv(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(i){return $b(i)})]}})})}function hhe(e,t){return av(this,void 0,void 0,function(){var r,i;return iv(this,function(o){switch(o.label){case 0:return e.items?(r=ok(e.items).filter(function(c){return c.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(mhe))]):[3,2];case 1:return i=o.sent(),[2,i3(VU(i))];case 2:return[2,i3(ok(e.files).map(function(c){return $b(c)}))]}})})}function i3(e){return e.filter(function(t){return lhe.indexOf(t.name)===-1})}function ok(e){if(e===null)return[];for(var t=[],r=0;r<e.length;r++){var i=e[r];t.push(i)}return t}function mhe(e){if(typeof e.webkitGetAsEntry!="function")return o3(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?HU(t):o3(e)}function VU(e){return e.reduce(function(t,r){return KA(KA([],qI(t),!1),qI(Array.isArray(r)?VU(r):[r]),!1)},[])}function o3(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var r=$b(t);return Promise.resolve(r)}function vhe(e){return av(this,void 0,void 0,function(){return iv(this,function(t){return[2,e.isDirectory?HU(e):ghe(e)]})})}function HU(e){var t=e.createReader();return new Promise(function(r,i){var o=[];function c(){var u=this;t.readEntries(function(h){return av(u,void 0,void 0,function(){var m,v,S;return iv(this,function(x){switch(x.label){case 0:if(h.length)return[3,5];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return m=x.sent(),r(m),[3,4];case 3:return v=x.sent(),i(v),[3,4];case 4:return[3,6];case 5:S=Promise.all(h.map(vhe)),o.push(S),c(),x.label=6;case 6:return[2]}})})},function(h){i(h)})}c()})}function ghe(e){return av(this,void 0,void 0,function(){return iv(this,function(t){return[2,new Promise(function(r,i){e.file(function(o){var c=$b(o,e.fullPath);r(c)},function(o){i(o)})})]})})}var yhe=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),i=e.name||"",o=(e.type||"").toLowerCase(),c=o.replace(/\/.*$/,"");return r.some(function(u){var h=u.trim().toLowerCase();return h.charAt(0)==="."?i.toLowerCase().endsWith(h):h.endsWith("/*")?c===h.replace(/\/.*$/,""):o===h})}return!0};function s3(e){return xhe(e)||She(e)||GU(e)||bhe()}function bhe(){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 She(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xhe(e){if(Array.isArray(e))return sk(e)}function l3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function u3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l3(Object(r),!0).forEach(function(i){WU(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l3(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function WU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cb(e,t){return _he(e)||Che(e,t)||GU(e,t)||whe()}function whe(){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 GU(e,t){if(!!e){if(typeof e=="string")return sk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sk(e,t)}}function sk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Che(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],o=!0,c=!1,u,h;try{for(r=r.call(e);!(o=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(m){c=!0,h=m}finally{try{!o&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function _he(e){if(Array.isArray(e))return e}var Ehe="file-invalid-type",The="file-too-large",Nhe="file-too-small",Rhe="too-many-files",Ahe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var r=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Ehe,message:"File type must be ".concat(r)}},c3=function(t){return{code:The,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},f3=function(t){return{code:Nhe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ohe={code:Rhe,message:"Too many files"};function YU(e,t){var r=e.type==="application/x-moz-file"||yhe(e,t);return[r,r?null:Ahe(t)]}function qU(e,t,r){if(kp(e.size))if(kp(t)&&kp(r)){if(e.size>r)return[!1,c3(r)];if(e.size<t)return[!1,f3(t)]}else{if(kp(t)&&e.size<t)return[!1,f3(t)];if(kp(r)&&e.size>r)return[!1,c3(r)]}return[!0,null]}function kp(e){return e!=null}function khe(e){var t=e.files,r=e.accept,i=e.minSize,o=e.maxSize,c=e.multiple,u=e.maxFiles,h=e.validator;return!c&&t.length>1||c&&u>=1&&t.length>u?!1:t.every(function(m){var v=YU(m,r),S=Cb(v,1),x=S[0],C=qU(m,i,o),_=Cb(C,1),N=_[0],O=h?h(m):null;return x&&N&&!O})}function kw(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function wx(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 d3(e){e.preventDefault()}function Dhe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Phe(e){return e.indexOf("Edge/")!==-1}function Mhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Dhe(e)||Phe(e)}function eu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){for(var o=arguments.length,c=new Array(o>1?o-1:0),u=1;u<o;u++)c[u-1]=arguments[u];return t.some(function(h){return!kw(i)&&h&&h.apply(void 0,[i].concat(c)),kw(i)})}}function Ihe(){return"showOpenFilePicker"in window}function Lhe(e){if(kp(e)){var t=Object.entries(e).filter(function(r){var i=Cb(r,2),o=i[0],c=i[1],u=!0;return KU(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(c)||!c.every(XU))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(r,i){var o=Cb(i,2),c=o[0],u=o[1];return u3(u3({},r),{},WU({},c,u))},{});return[{accept:t}]}return e}function Fhe(e){if(kp(e))return Object.entries(e).reduce(function(t,r){var i=Cb(r,2),o=i[0],c=i[1];return[].concat(s3(t),[o],s3(c))},[]).filter(function(t){return KU(t)||XU(t)}).join(",")}function zhe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Bhe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function KU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function XU(e){return/^.*\.[\w]+$/.test(e)}var Uhe="/Users/spencer/Documents/Code/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",jhe=["children"],$he=["open"],Vhe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Hhe=["refKey","onChange","onClick"];function Whe(e){return qhe(e)||Yhe(e)||ZU(e)||Ghe()}function Ghe(){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 Yhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qhe(e){if(Array.isArray(e))return lk(e)}function AA(e,t){return Zhe(e)||Xhe(e,t)||ZU(e,t)||Khe()}function Khe(){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 ZU(e,t){if(!!e){if(typeof e=="string")return lk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lk(e,t)}}function lk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function Xhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],o=!0,c=!1,u,h;try{for(r=r.call(e);!(o=(u=r.next()).done)&&(i.push(u.value),!(t&&i.length===t));o=!0);}catch(m){c=!0,h=m}finally{try{!o&&r.return!=null&&r.return()}finally{if(c)throw h}}return i}}function Zhe(e){if(Array.isArray(e))return e}function p3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p3(Object(r),!0).forEach(function(i){uk(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p3(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function uk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dw(e,t){if(e==null)return{};var r=Qhe(e,t),i,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)i=c[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(r[i]=e[i]))}return r}function Qhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),o,c;for(c=0;c<i.length;c++)o=i[c],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var eD=D.exports.forwardRef(function(e,t){var r=e.children,i=Dw(e,jhe),o=JU(i),c=o.open,u=Dw(o,$he);return D.exports.useImperativeHandle(t,function(){return{open:c}},[c]),k(D.exports.Fragment,{children:r(Ir(Ir({},u),{},{open:c}))},void 0,!1,{fileName:Uhe,lineNumber:70,columnNumber:23},this)});eD.displayName="Dropzone";var QU={disabled:!1,getFilesFromEvent:uhe,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};eD.defaultProps=QU;eD.propTypes={children:_t.exports.func,accept:_t.exports.objectOf(_t.exports.arrayOf(_t.exports.string)),multiple:_t.exports.bool,preventDropOnDocument:_t.exports.bool,noClick:_t.exports.bool,noKeyboard:_t.exports.bool,noDrag:_t.exports.bool,noDragEventsBubbling:_t.exports.bool,minSize:_t.exports.number,maxSize:_t.exports.number,maxFiles:_t.exports.number,disabled:_t.exports.bool,getFilesFromEvent:_t.exports.func,onFileDialogCancel:_t.exports.func,onFileDialogOpen:_t.exports.func,useFsAccessApi:_t.exports.bool,autoFocus:_t.exports.bool,onDragEnter:_t.exports.func,onDragLeave:_t.exports.func,onDragOver:_t.exports.func,onDrop:_t.exports.func,onDropAccepted:_t.exports.func,onDropRejected:_t.exports.func,onError:_t.exports.func,validator:_t.exports.func};var ck={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function JU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ir(Ir({},QU),e),r=t.accept,i=t.disabled,o=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,h=t.multiple,m=t.maxFiles,v=t.onDragEnter,S=t.onDragLeave,x=t.onDragOver,C=t.onDrop,_=t.onDropAccepted,N=t.onDropRejected,O=t.onFileDialogCancel,I=t.onFileDialogOpen,V=t.useFsAccessApi,M=t.autoFocus,z=t.preventDropOnDocument,B=t.noClick,j=t.noKeyboard,K=t.noDrag,X=t.noDragEventsBubbling,fe=t.onError,me=t.validator,se=D.exports.useMemo(function(){return Fhe(r)},[r]),be=D.exports.useMemo(function(){return Lhe(r)},[r]),Ke=D.exports.useMemo(function(){return typeof I=="function"?I:h3},[I]),J=D.exports.useMemo(function(){return typeof O=="function"?O:h3},[O]),ce=D.exports.useRef(null),Re=D.exports.useRef(null),Ce=D.exports.useReducer(Jhe,ck),oe=AA(Ce,2),Se=oe[0],Te=oe[1],pe=Se.isFocused,we=Se.isFileDialogActive,Ie=D.exports.useRef(typeof window<"u"&&window.isSecureContext&&V&&Ihe()),Le=function(){!Ie.current&&we&&setTimeout(function(){if(Re.current){var Ze=Re.current.files;Ze.length||(Te({type:"closeDialog"}),J())}},300)};D.exports.useEffect(function(){return window.addEventListener("focus",Le,!1),function(){window.removeEventListener("focus",Le,!1)}},[Re,we,J,Ie]);var Ye=D.exports.useRef([]),st=function(Ze){ce.current&&ce.current.contains(Ze.target)||(Ze.preventDefault(),Ye.current=[])};D.exports.useEffect(function(){return z&&(document.addEventListener("dragover",d3,!1),document.addEventListener("drop",st,!1)),function(){z&&(document.removeEventListener("dragover",d3),document.removeEventListener("drop",st))}},[ce,z]),D.exports.useEffect(function(){return!i&&M&&ce.current&&ce.current.focus(),function(){}},[ce,M,i]);var mt=D.exports.useCallback(function(Ve){fe?fe(Ve):console.error(Ve)},[fe]),Gt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[].concat(Whe(Ye.current),[Ve.target]),wx(Ve)&&Promise.resolve(o(Ve)).then(function(Ze){if(!(kw(Ve)&&!X)){var Jt=Ze.length,Tt=Jt>0&&khe({files:Ze,accept:se,minSize:u,maxSize:c,multiple:h,maxFiles:m,validator:me}),ke=Jt>0&&!Tt;Te({isDragAccept:Tt,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),v&&v(Ve)}}).catch(function(Ze){return mt(Ze)})},[o,v,mt,X,se,u,c,h,m,me]),Qe=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=wx(Ve);if(Ze&&Ve.dataTransfer)try{Ve.dataTransfer.dropEffect="copy"}catch{}return Ze&&x&&x(Ve),!1},[x,X]),vt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve);var Ze=Ye.current.filter(function(Tt){return ce.current&&ce.current.contains(Tt)}),Jt=Ze.indexOf(Ve.target);Jt!==-1&&Ze.splice(Jt,1),Ye.current=Ze,!(Ze.length>0)&&(Te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),wx(Ve)&&S&&S(Ve))},[ce,S,X]),Et=D.exports.useCallback(function(Ve,Ze){var Jt=[],Tt=[];Ve.forEach(function(ke){var jt=YU(ke,se),xn=AA(jt,2),je=xn[0],rt=xn[1],xt=qU(ke,u,c),dn=AA(xt,2),Xt=dn[0],wn=dn[1],Dn=me?me(ke):null;if(je&&Xt&&!Dn)Jt.push(ke);else{var Rr=[rt,wn];Dn&&(Rr=Rr.concat(Dn)),Tt.push({file:ke,errors:Rr.filter(function(Tn){return Tn})})}}),(!h&&Jt.length>1||h&&m>=1&&Jt.length>m)&&(Jt.forEach(function(ke){Tt.push({file:ke,errors:[Ohe]})}),Jt.splice(0)),Te({acceptedFiles:Jt,fileRejections:Tt,type:"setFiles"}),C&&C(Jt,Tt,Ze),Tt.length>0&&N&&N(Tt,Ze),Jt.length>0&&_&&_(Jt,Ze)},[Te,h,se,u,c,m,C,_,N,me]),zt=D.exports.useCallback(function(Ve){Ve.preventDefault(),Ve.persist(),Bt(Ve),Ye.current=[],wx(Ve)&&Promise.resolve(o(Ve)).then(function(Ze){kw(Ve)&&!X||Et(Ze,Ve)}).catch(function(Ze){return mt(Ze)}),Te({type:"reset"})},[o,Et,mt,X]),We=D.exports.useCallback(function(){if(Ie.current){Te({type:"openDialog"}),Ke();var Ve={multiple:h,types:be};window.showOpenFilePicker(Ve).then(function(Ze){return o(Ze)}).then(function(Ze){Et(Ze,null),Te({type:"closeDialog"})}).catch(function(Ze){zhe(Ze)?(J(Ze),Te({type:"closeDialog"})):Bhe(Ze)?(Ie.current=!1,Re.current?(Re.current.value=null,Re.current.click()):mt(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."))):mt(Ze)});return}Re.current&&(Te({type:"openDialog"}),Ke(),Re.current.value=null,Re.current.click())},[Te,Ke,J,V,Et,mt,be,h]),Yt=D.exports.useCallback(function(Ve){!ce.current||!ce.current.isEqualNode(Ve.target)||(Ve.key===" "||Ve.key==="Enter"||Ve.keyCode===32||Ve.keyCode===13)&&(Ve.preventDefault(),We())},[ce,We]),ye=D.exports.useCallback(function(){Te({type:"focus"})},[]),Mt=D.exports.useCallback(function(){Te({type:"blur"})},[]),Kt=D.exports.useCallback(function(){B||(Mhe()?setTimeout(We,0):We())},[B,We]),St=function(Ze){return i?null:Ze},ar=function(Ze){return j?null:St(Ze)},ir=function(Ze){return K?null:St(Ze)},Bt=function(Ze){X&&Ze.stopPropagation()},fn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.role,ke=Ve.onKeyDown,jt=Ve.onFocus,xn=Ve.onBlur,je=Ve.onClick,rt=Ve.onDragEnter,xt=Ve.onDragOver,dn=Ve.onDragLeave,Xt=Ve.onDrop,wn=Dw(Ve,Vhe);return Ir(Ir(uk({onKeyDown:ar(eu(ke,Yt)),onFocus:ar(eu(jt,ye)),onBlur:ar(eu(xn,Mt)),onClick:St(eu(je,Kt)),onDragEnter:ir(eu(rt,Gt)),onDragOver:ir(eu(xt,Qe)),onDragLeave:ir(eu(dn,vt)),onDrop:ir(eu(Xt,zt)),role:typeof Tt=="string"&&Tt!==""?Tt:"presentation"},Jt,ce),!i&&!j?{tabIndex:0}:{}),wn)}},[ce,Yt,ye,Mt,Kt,Gt,Qe,vt,zt,j,K,i]),kn=D.exports.useCallback(function(Ve){Ve.stopPropagation()},[]),hn=D.exports.useMemo(function(){return function(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Ve.refKey,Jt=Ze===void 0?"ref":Ze,Tt=Ve.onChange,ke=Ve.onClick,jt=Dw(Ve,Hhe),xn=uk({accept:se,multiple:h,type:"file",style:{display:"none"},onChange:St(eu(Tt,zt)),onClick:St(eu(ke,kn)),tabIndex:-1},Jt,Re);return Ir(Ir({},xn),jt)}},[Re,r,h,zt,i]);return Ir(Ir({},Se),{},{isFocused:pe&&!i,getRootProps:fn,getInputProps:hn,rootRef:ce,inputRef:Re,open:St(We)})}function Jhe(e,t){switch(t.type){case"focus":return Ir(Ir({},e),{},{isFocused:!0});case"blur":return Ir(Ir({},e),{},{isFocused:!1});case"openDialog":return Ir(Ir({},ck),{},{isFileDialogActive:!0});case"closeDialog":return Ir(Ir({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ir(Ir({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ir(Ir({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ir({},ck);default:return e}}function h3(){}var m3="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ImageUploader.tsx";const v3=({children:e,fileAcceptedCallback:t,fileRejectionCallback:r})=>{const i=D.exports.useCallback((m,v)=>{v.forEach(S=>{r(S)}),m.forEach(S=>{t(S)})},[t,r]),{getRootProps:o,getInputProps:c,open:u}=JU({onDrop:i,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),h=m=>{m.stopPropagation(),u()};return k("div",{...o(),children:[k("input",{...c({multiple:!1})},void 0,!1,{fileName:m3,lineNumber:55,columnNumber:7},void 0),D.exports.cloneElement(e,{onClick:h})]},void 0,!0,{fileName:m3,lineNumber:54,columnNumber:5},void 0)};var wp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/InitAndMaskUploadButtons.tsx";const eme=Vr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),tme=({setShouldShowMask:e})=>{const t=ci(),{initialImagePath:r}=wr(eme),i=mue(),o=C=>{C.stopPropagation(),t(X2("")),t(mU(""))},c=()=>e(!1),u=()=>e(!0),h=()=>e(!0),m=()=>e(!0),v=D.exports.useCallback(C=>t(Ape(C)),[t]),S=D.exports.useCallback(C=>t(Ope(C)),[t]),x=D.exports.useCallback(C=>{const _=C.errors.reduce((N,O)=>N+`
`+O.message,"");i({title:"Upload failed",description:_,status:"error",isClosable:!0})},[i]);return k(On,{gap:2,justifyContent:"space-between",width:"100%",children:[k(v3,{fileAcceptedCallback:v,fileRejectionCallback:x,children:k(vu,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:c,onMouseOut:u,children:"Upload Image"},void 0,!1,{fileName:wp,lineNumber:93,columnNumber:9},void 0)},void 0,!1,{fileName:wp,lineNumber:89,columnNumber:7},void 0),k(v3,{fileAcceptedCallback:S,fileRejectionCallback:x,children:k(vu,{isDisabled:!r,size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:h,onMouseOut:m,children:"Upload Mask"},void 0,!1,{fileName:wp,lineNumber:108,columnNumber:9},void 0)},void 0,!1,{fileName:wp,lineNumber:104,columnNumber:7},void 0),k(Ps,{isDisabled:!r,size:"sm","aria-label":"Reset initial image and mask",onClick:o,icon:k(UU,{},void 0,!1,{fileName:wp,lineNumber:125,columnNumber:15},void 0)},void 0,!1,{fileName:wp,lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:wp,lineNumber:88,columnNumber:5},void 0)};var Dy="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/InitAndMaskImage.tsx";const nme=Vr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),rme=()=>{const{initialImagePath:e,maskPath:t}=wr(nme),[r,i]=D.exports.useState(!1);return k(On,{direction:"column",alignItems:"center",gap:2,children:[k(tme,{setShouldShowMask:i},void 0,!1,{fileName:Dy,lineNumber:31,columnNumber:7},void 0),e&&k(On,{position:"relative",width:"100%",children:[k(db,{fit:"contain",src:e,rounded:"md",className:"checkerboard"},void 0,!1,{fileName:Dy,lineNumber:34,columnNumber:11},void 0),r&&t&&k(db,{position:"absolute",top:0,left:0,fit:"contain",src:t,rounded:"md",zIndex:1},void 0,!1,{fileName:Dy,lineNumber:41,columnNumber:13},void 0)]},void 0,!0,{fileName:Dy,lineNumber:33,columnNumber:9},void 0)]},void 0,!0,{fileName:Dy,lineNumber:30,columnNumber:5},void 0)};var Cx="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ImageToImageOptions.tsx";const ame=Vr(e=>e.sd,e=>({img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),ime=()=>{const e=ci(),{img2imgStrength:t,shouldFitToWidthHeight:r}=wr(ame);return k(On,{direction:"column",gap:2,children:[k(jf,{label:"Strength",step:.01,min:0,max:1,onChange:c=>e(xfe(Number(c))),value:t},void 0,!1,{fileName:Cx,lineNumber:41,columnNumber:7},void 0),k(Rw,{label:"Fit initial image to output size",isChecked:r,onChange:c=>e(Tfe(c.target.checked))},void 0,!1,{fileName:Cx,lineNumber:49,columnNumber:7},void 0),k(rme,{},void 0,!1,{fileName:Cx,lineNumber:54,columnNumber:7},void 0)]},void 0,!0,{fileName:Cx,lineNumber:40,columnNumber:5},void 0)};var Ht="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/OptionsAccordion.tsx";const ome=Vr(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),sme=Vr(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),lme=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:r,initialImagePath:i}=wr(ome),{isGFPGANAvailable:o,isESRGANAvailable:c,openAccordions:u}=wr(sme),h=ci();return k(Tz,{defaultIndex:u,allowMultiple:!0,reduceMotion:!0,onChange:C=>h(Wfe(C)),children:[k(Tp,{children:[k("h2",{children:k(_p,{children:[k(Fp,{flex:"1",textAlign:"left",children:"Seed & Variation"},void 0,!1,{fileName:Ht,lineNumber:108,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:111,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:107,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:106,columnNumber:9},void 0),k(Np,{children:k(Kpe,{},void 0,!1,{fileName:Ht,lineNumber:115,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:114,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:105,columnNumber:7},void 0),k(Tp,{children:[k("h2",{children:k(_p,{children:[k(Fp,{flex:"1",textAlign:"left",children:"Sampler"},void 0,!1,{fileName:Ht,lineNumber:121,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:124,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:120,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:119,columnNumber:9},void 0),k(Np,{children:k(Zpe,{},void 0,!1,{fileName:Ht,lineNumber:128,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:127,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:118,columnNumber:7},void 0),k(Tp,{children:[k("h2",{children:k(_p,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Nr,{children:"Upscale (ESRGAN)"},void 0,!1,{fileName:Ht,lineNumber:140,columnNumber:15},void 0),k(Bf,{isDisabled:!c,isChecked:e,onChange:C=>h(Dfe(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:141,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:134,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:147,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:133,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:132,columnNumber:9},void 0),k(Np,{children:k(ehe,{},void 0,!1,{fileName:Ht,lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:150,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:131,columnNumber:7},void 0),k(Tp,{children:[k("h2",{children:k(_p,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Nr,{children:"Fix Faces (GFPGAN)"},void 0,!1,{fileName:Ht,lineNumber:163,columnNumber:15},void 0),k(Bf,{isDisabled:!o,isChecked:t,onChange:C=>h(kfe(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:164,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:157,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:170,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:156,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:155,columnNumber:9},void 0),k(Np,{children:k(rhe,{},void 0,!1,{fileName:Ht,lineNumber:174,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:173,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:154,columnNumber:7},void 0),k(Tp,{children:[k("h2",{children:k(_p,{children:[k(On,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[k(Nr,{children:"Image to Image"},void 0,!1,{fileName:Ht,lineNumber:186,columnNumber:15},void 0),k(Bf,{isDisabled:!i,isChecked:r,onChange:C=>h(Efe(C.target.checked))},void 0,!1,{fileName:Ht,lineNumber:187,columnNumber:15},void 0)]},void 0,!0,{fileName:Ht,lineNumber:180,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:193,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:179,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:178,columnNumber:9},void 0),k(Np,{children:k(ime,{},void 0,!1,{fileName:Ht,lineNumber:197,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:196,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:177,columnNumber:7},void 0),k(Tp,{children:[k("h2",{children:k(_p,{children:[k(Fp,{flex:"1",textAlign:"left",children:"Output"},void 0,!1,{fileName:Ht,lineNumber:203,columnNumber:13},void 0),k(Ep,{},void 0,!1,{fileName:Ht,lineNumber:206,columnNumber:13},void 0)]},void 0,!0,{fileName:Ht,lineNumber:202,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:201,columnNumber:9},void 0),k(Np,{children:k(ihe,{},void 0,!1,{fileName:Ht,lineNumber:210,columnNumber:11},void 0)},void 0,!1,{fileName:Ht,lineNumber:209,columnNumber:9},void 0)]},void 0,!0,{fileName:Ht,lineNumber:200,columnNumber:7},void 0)]},void 0,!0,{fileName:Ht,lineNumber:99,columnNumber:5},void 0)},ume=Vr(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),cme=Vr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),fme=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:r,maskPath:i,initialImagePath:o,seed:c}=wr(ume),{isProcessing:u,isConnected:h}=wr(cme);return D.exports.useMemo(()=>!(!e||i&&!o||u||!h||t&&(!(mC(r)||r==="")||c===-1)),[e,i,o,u,h,t,r,c])};var OA="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/ProcessButtons.tsx";const dme=Vr(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),pme=()=>{const e=ci(),{isProcessing:t,isConnected:r}=wr(dme),i=fme();return k(On,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[k(ru,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!i,fontSize:"md",size:"md",onClick:()=>e(jU())},void 0,!1,{fileName:OA,lineNumber:45,columnNumber:7},void 0),k(ru,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!r||!t,onClick:()=>e(Rpe())},void 0,!1,{fileName:OA,lineNumber:55,columnNumber:7},void 0)]},void 0,!0,{fileName:OA,lineNumber:39,columnNumber:5},void 0)};var hme="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/sd/PromptInput.tsx";const mme=()=>{const{prompt:e}=wr(o=>o.sd),t=ci(),r=o=>t(pfe(o.target.value)),i=o=>{o.key==="Enter"&&o.shiftKey===!1&&(o.preventDefault(),t(jU()))};return k(v6,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:r,onKeyDown:i,value:e,placeholder:"I'm dreaming of..."},void 0,!1,{fileName:hme,lineNumber:29,columnNumber:5},void 0)};var bl="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/features/system/LogViewer.tsx";const vme=Vr(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),gme=Vr(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:$r.exports.isEqual}}),yme=()=>{const e=ci(),t=wr(vme),{shouldShowLogViewer:r}=wr(gme),i=Ip("gray.50","gray.900"),o=Ip("gray.500","gray.500"),c=Ip({info:void 0,warning:"yellow.500",error:"red.500"},{info:void 0,warning:"yellow.300",error:"red.300"}),[u,h]=D.exports.useState(!0),m=D.exports.useRef(null);D.exports.useLayoutEffect(()=>{m.current!==null&&u&&(m.current.scrollTop=m.current.scrollHeight)},[u,t,r]);const v=()=>{e(Hfe(!r))};return k(bo,{children:[r&&k(On,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:o,background:i,ref:m,children:t.map((S,x)=>{const{timestamp:C,message:_,level:N}=S;return k(On,{gap:2,textColor:c[N],children:[k(Nr,{fontSize:"sm",fontWeight:"semibold",children:[C,":"]},void 0,!0,{fileName:bl,lineNumber:109,columnNumber:17},void 0),k(Nr,{fontSize:"sm",wordBreak:"break-all",children:_},void 0,!1,{fileName:bl,lineNumber:112,columnNumber:17},void 0)]},x,!0,{fileName:bl,lineNumber:108,columnNumber:15},void 0)})},void 0,!1,{fileName:bl,lineNumber:87,columnNumber:9},void 0),r&&k($O,{label:u?"Autoscroll on":"Autoscroll off",children:k(Ps,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:u?"blue":"gray",icon:k(dpe,{},void 0,!1,{fileName:bl,lineNumber:130,columnNumber:19},void 0),onClick:()=>h(!u)},void 0,!1,{fileName:bl,lineNumber:122,columnNumber:11},void 0)},void 0,!1,{fileName:bl,lineNumber:121,columnNumber:9},void 0),k($O,{label:r?"Hide logs":"Show logs",children:k(Ps,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:r?k(vpe,{},void 0,!1,{fileName:bl,lineNumber:143,columnNumber:39},void 0):k(hpe,{},void 0,!1,{fileName:bl,lineNumber:143,columnNumber:53},void 0),onClick:v},void 0,!1,{fileName:bl,lineNumber:136,columnNumber:9},void 0)},void 0,!1,{fileName:bl,lineNumber:135,columnNumber:7},void 0)]},void 0,!0)};var ii="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/app/App.tsx";const bme=()=>{const e=ci(),[t,r]=D.exports.useState(!1);return D.exports.useEffect(()=>{e(Npe()),r(!0)},[e]),t?k(bo,{children:[k(u2,{width:"100vw",height:"100vh",templateAreas:`
"header header header header"
"progressBar progressBar progressBar progressBar"
"menu prompt processButtons imageRoll"
"menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[k(Rf,{area:"header",pt:1,children:k(Ype,{},void 0,!1,{fileName:ii,lineNumber:40,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:39,columnNumber:9},void 0),k(Rf,{area:"progressBar",children:k(jpe,{},void 0,!1,{fileName:ii,lineNumber:43,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:42,columnNumber:9},void 0),k(Rf,{pl:"2",area:"menu",overflowY:"scroll",children:k(lme,{},void 0,!1,{fileName:ii,lineNumber:46,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:45,columnNumber:9},void 0),k(Rf,{area:"prompt",children:k(mme,{},void 0,!1,{fileName:ii,lineNumber:49,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:48,columnNumber:9},void 0),k(Rf,{area:"processButtons",children:k(pme,{},void 0,!1,{fileName:ii,lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:51,columnNumber:9},void 0),k(Rf,{area:"currentImage",children:k(Ipe,{},void 0,!1,{fileName:ii,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:54,columnNumber:9},void 0),k(Rf,{pr:"2",area:"imageRoll",overflowY:"scroll",children:k(zpe,{},void 0,!1,{fileName:ii,lineNumber:58,columnNumber:11},void 0)},void 0,!1,{fileName:ii,lineNumber:57,columnNumber:9},void 0)]},void 0,!0,{fileName:ii,lineNumber:27,columnNumber:7},void 0),k(yme,{},void 0,!1,{fileName:ii,lineNumber:61,columnNumber:7},void 0)]},void 0,!0):k(FU,{},void 0,!1,{fileName:ii,lineNumber:64,columnNumber:5},void 0)};var Cp="/Users/spencer/Documents/Code/stable-diffusion/frontend/src/main.tsx";const ej=nfe(IU);DA.createRoot(document.getElementById("root")).render(k(Ue.StrictMode,{children:k(Pce,{store:IU,children:k(LU,{loading:k(FU,{},void 0,!1,{fileName:Cp,lineNumber:18,columnNumber:29},void 0),persistor:ej,children:k(Eue,{theme:t3,children:[k(rH,{initialColorMode:t3.config.initialColorMode},void 0,!1,{fileName:Cp,lineNumber:20,columnNumber:11},void 0),k(bme,{},void 0,!1,{fileName:Cp,lineNumber:21,columnNumber:11},void 0)]},void 0,!0,{fileName:Cp,lineNumber:19,columnNumber:9},void 0)},void 0,!1,{fileName:Cp,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:Cp,lineNumber:17,columnNumber:5},void 0)},void 0,!1,{fileName:Cp,lineNumber:16,columnNumber:3},void 0));