mediacms/static/video_editor/video-editor.js
2025-05-19 03:23:33 +03:00

204 lines
398 KiB
JavaScript

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},Zo={exports:{}};Zo.exports;var vm;function z0(){return vm||(vm=1,function(T,M){/**
* @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(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var he="18.3.1",xe=Symbol.for("react.element"),pe=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),se=Symbol.for("react.context"),it=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),Et=Symbol.iterator,kt="@@iterator";function We(s){if(s===null||typeof s!="object")return null;var m=Et&&s[Et]||s[kt];return typeof m=="function"?m:null}var J={current:null},mt={transition:null},_e={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Me={current:null},V={},nt=null;function K(s){nt=s}V.setExtraStackFrame=function(s){nt=s},V.getCurrentStack=null,V.getStackAddendum=function(){var s="";nt&&(s+=nt);var m=V.getCurrentStack;return m&&(s+=m()||""),s};var Bt=!1,He=!1,ce=!1,le=!1,ht=!1,yt={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:mt,ReactCurrentOwner:Me};yt.ReactDebugCurrentFrame=V,yt.ReactCurrentActQueue=_e;function ze(s){{for(var m=arguments.length,L=new Array(m>1?m-1:0),A=1;A<m;A++)L[A-1]=arguments[A];Ae("warn",s,L)}}function q(s){{for(var m=arguments.length,L=new Array(m>1?m-1:0),A=1;A<m;A++)L[A-1]=arguments[A];Ae("error",s,L)}}function Ae(s,m,L){{var A=yt.ReactDebugCurrentFrame,Q=A.getStackAddendum();Q!==""&&(m+="%s",L=L.concat([Q]));var Ne=L.map(function(Te){return String(Te)});Ne.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ne)}}var we={};function Le(s,m){{var L=s.constructor,A=L&&(L.displayName||L.name)||"ReactClass",Q=A+"."+m;if(we[Q])return;q("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.",m,A),we[Q]=!0}}var Qe={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,L){Le(s,"forceUpdate")},enqueueReplaceState:function(s,m,L,A){Le(s,"replaceState")},enqueueSetState:function(s,m,L,A){Le(s,"setState")}},Qt=Object.assign,ot={};Object.freeze(ot);function Kt(s,m,L){this.props=s,this.context=m,this.refs=ot,this.updater=L||Qe}Kt.prototype.isReactComponent={},Kt.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Kt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ot={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)."]},lt=function(s,m){Object.defineProperty(Kt.prototype,s,{get:function(){ze("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var rn in Ot)Ot.hasOwnProperty(rn)&&lt(rn,Ot[rn])}function Yn(){}Yn.prototype=Kt.prototype;function on(s,m,L){this.props=s,this.context=m,this.refs=ot,this.updater=L||Qe}var mn=on.prototype=new Yn;mn.constructor=on,Qt(mn,Kt.prototype),mn.isPureReactComponent=!0;function H(){var s={current:null};return Object.seal(s),s}var te=Array.isArray;function ye(s){return te(s)}function Re(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,L=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return L}}function ge(s){try{return qe(s),!1}catch{return!0}}function qe(s){return""+s}function ut(s){if(ge(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Re(s)),qe(s)}function Je(s,m,L){var A=s.displayName;if(A)return A;var Q=m.displayName||m.name||"";return Q!==""?L+"("+Q+")":L}function Ke(s){return s.displayName||"Context"}function Wt(s){if(s==null)return null;if(typeof s.tag=="number"&&q("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case Oe:return"Fragment";case pe:return"Portal";case Z:return"Profiler";case f:return"StrictMode";case W:return"Suspense";case D:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case se:var m=s;return Ke(m)+".Consumer";case Se:var L=s;return Ke(L._context)+".Provider";case it:return Je(s,s.render,"ForwardRef");case oe:var A=s.displayName||null;return A!==null?A:Wt(s.type)||"Memo";case Be:{var Q=s,Ne=Q._payload,Te=Q._init;try{return Wt(Te(Ne))}catch{return null}}}return null}var $t=Object.prototype.hasOwnProperty,tn={key:!0,ref:!0,__self:!0,__source:!0},gt,fn,Zt;Zt={};function dn(s){if($t.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function Zn(s){if($t.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function sa(s,m){var L=function(){gt||(gt=!0,q("%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)",m))};L.isReactWarning=!0,Object.defineProperty(s,"key",{get:L,configurable:!0})}function Na(s,m){var L=function(){fn||(fn=!0,q("%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)",m))};L.isReactWarning=!0,Object.defineProperty(s,"ref",{get:L,configurable:!0})}function ie(s){if(typeof s.ref=="string"&&Me.current&&s.__self&&Me.current.stateNode!==s.__self){var m=Wt(Me.current.type);Zt[m]||(q('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',m,s.ref),Zt[m]=!0)}}var De=function(s,m,L,A,Q,Ne,Te){var Ye={$$typeof:xe,type:s,key:m,ref:L,props:Te,_owner:Ne};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Ze(s,m,L){var A,Q={},Ne=null,Te=null,Ye=null,ft=null;if(m!=null){dn(m)&&(Te=m.ref,ie(m)),Zn(m)&&(ut(m.key),Ne=""+m.key),Ye=m.__self===void 0?null:m.__self,ft=m.__source===void 0?null:m.__source;for(A in m)$t.call(m,A)&&!tn.hasOwnProperty(A)&&(Q[A]=m[A])}var jt=arguments.length-2;if(jt===1)Q.children=L;else if(jt>1){for(var qt=Array(jt),Gt=0;Gt<jt;Gt++)qt[Gt]=arguments[Gt+2];Object.freeze&&Object.freeze(qt),Q.children=qt}if(s&&s.defaultProps){var at=s.defaultProps;for(A in at)Q[A]===void 0&&(Q[A]=at[A])}if(Ne||Te){var an=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ne&&sa(Q,an),Te&&Na(Q,an)}return De(s,Ne,Te,Ye,ft,Me.current,Q)}function Rt(s,m){var L=De(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return L}function Yt(s,m,L){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var A,Q=Qt({},s.props),Ne=s.key,Te=s.ref,Ye=s._self,ft=s._source,jt=s._owner;if(m!=null){dn(m)&&(Te=m.ref,jt=Me.current),Zn(m)&&(ut(m.key),Ne=""+m.key);var qt;s.type&&s.type.defaultProps&&(qt=s.type.defaultProps);for(A in m)$t.call(m,A)&&!tn.hasOwnProperty(A)&&(m[A]===void 0&&qt!==void 0?Q[A]=qt[A]:Q[A]=m[A])}var Gt=arguments.length-2;if(Gt===1)Q.children=L;else if(Gt>1){for(var at=Array(Gt),an=0;an<Gt;an++)at[an]=arguments[an+2];Q.children=at}return De(s.type,Ne,Te,Ye,ft,jt,Q)}function Jt(s){return typeof s=="object"&&s!==null&&s.$$typeof===xe}var Dt=".",_n=":";function Pt(s){var m=/[=:]/g,L={"=":"=0",":":"=2"},A=s.replace(m,function(Q){return L[Q]});return"$"+A}var Vt=!1,Ft=/\/+/g;function Za(s){return s.replace(Ft,"$&/")}function ha(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(ut(s.key),Pt(""+s.key)):m.toString(36)}function In(s,m,L,A,Q){var Ne=typeof s;(Ne==="undefined"||Ne==="boolean")&&(s=null);var Te=!1;if(s===null)Te=!0;else switch(Ne){case"string":case"number":Te=!0;break;case"object":switch(s.$$typeof){case xe:case pe:Te=!0}}if(Te){var Ye=s,ft=Q(Ye),jt=A===""?Dt+ha(Ye,0):A;if(ye(ft)){var qt="";jt!=null&&(qt=Za(jt)+"/"),In(ft,m,qt,"",function(cf){return cf})}else ft!=null&&(Jt(ft)&&(ft.key&&(!Ye||Ye.key!==ft.key)&&ut(ft.key),ft=Rt(ft,L+(ft.key&&(!Ye||Ye.key!==ft.key)?Za(""+ft.key)+"/":"")+jt)),m.push(ft));return 1}var Gt,at,an=0,yn=A===""?Dt:A+_n;if(ye(s))for(var yi=0;yi<s.length;yi++)Gt=s[yi],at=yn+ha(Gt,yi),an+=In(Gt,m,L,at,Q);else{var dl=We(s);if(typeof dl=="function"){var hr=s;dl===hr.entries&&(Vt||ze("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Vt=!0);for(var vl=dl.call(hr),pl,sf=0;!(pl=vl.next()).done;)Gt=pl.value,at=yn+ha(Gt,sf++),an+=In(Gt,m,L,at,Q)}else if(Ne==="object"){var Ku=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ku==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ku)+"). If you meant to render a collection of children, use an array instead.")}}return an}function ya(s,m,L){if(s==null)return s;var A=[],Q=0;return In(s,A,"","",function(Ne){return m.call(L,Ne,Q++)}),A}function Ur(s){var m=0;return ya(s,function(){m++}),m}function Hr(s,m,L){ya(s,function(){m.apply(this,arguments)},L)}function S(s){return ya(s,function(m){return m})||[]}function U(s){if(!Jt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function C(s){var m={$$typeof:se,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:Se,_context:m};var L=!1,A=!1,Q=!1;{var Ne={$$typeof:se,_context:m};Object.defineProperties(Ne,{Provider:{get:function(){return A||(A=!0,q("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(Te){m.Provider=Te}},_currentValue:{get:function(){return m._currentValue},set:function(Te){m._currentValue=Te}},_currentValue2:{get:function(){return m._currentValue2},set:function(Te){m._currentValue2=Te}},_threadCount:{get:function(){return m._threadCount},set:function(Te){m._threadCount=Te}},Consumer:{get:function(){return L||(L=!0,q("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(Te){Q||(ze("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Te),Q=!0)}}}),m.Consumer=Ne}return m._currentRenderer=null,m._currentRenderer2=null,m}var E=-1,b=0,O=1,x=2;function X(s){if(s._status===E){var m=s._result,L=m();if(L.then(function(Ne){if(s._status===b||s._status===E){var Te=s;Te._status=O,Te._result=Ne}},function(Ne){if(s._status===b||s._status===E){var Te=s;Te._status=x,Te._result=Ne}}),s._status===E){var A=s;A._status=b,A._result=L}}if(s._status===O){var Q=s._result;return Q===void 0&&q(`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?`,Q),"default"in Q||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,Q),Q.default}else throw s._result}function F(s){var m={_status:E,_result:s},L={$$typeof:Be,_payload:m,_init:X};{var A,Q;Object.defineProperties(L,{defaultProps:{configurable:!0,get:function(){return A},set:function(Ne){q("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."),A=Ne,Object.defineProperty(L,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Q},set:function(Ne){q("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."),Q=Ne,Object.defineProperty(L,"propTypes",{enumerable:!0})}}})}return L}function I(s){s!=null&&s.$$typeof===oe?q("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?q("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&q("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&q("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:it,render:s};{var L;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return L},set:function(A){L=A,!s.name&&!s.displayName&&(s.displayName=A)}})}return m}var p;p=Symbol.for("react.module.reference");function g(s){return!!(typeof s=="string"||typeof s=="function"||s===Oe||s===Z||ht||s===f||s===W||s===D||le||s===zt||Bt||He||ce||typeof s=="object"&&s!==null&&(s.$$typeof===Be||s.$$typeof===oe||s.$$typeof===Se||s.$$typeof===se||s.$$typeof===it||s.$$typeof===p||s.getModuleId!==void 0))}function P(s,m){g(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var L={$$typeof:oe,type:s,compare:m===void 0?null:m};{var A;Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(Q){A=Q,!s.name&&!s.displayName&&(s.displayName=Q)}})}return L}function G(){var s=J.current;return s===null&&q(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function ee(s){var m=G();if(s._context!==void 0){var L=s._context;L.Consumer===s?q("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?"):L.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function Ee(s){var m=G();return m.useState(s)}function et(s,m,L){var A=G();return A.useReducer(s,m,L)}function $e(s){var m=G();return m.useRef(s)}function Ct(s,m){var L=G();return L.useEffect(s,m)}function At(s,m){var L=G();return L.useInsertionEffect(s,m)}function st(s,m){var L=G();return L.useLayoutEffect(s,m)}function ct(s,m){var L=G();return L.useCallback(s,m)}function vn(s,m){var L=G();return L.useMemo(s,m)}function un(s,m,L){var A=G();return A.useImperativeHandle(s,m,L)}function bt(s,m){{var L=G();return L.useDebugValue(s,m)}}function Xe(){var s=G();return s.useTransition()}function Ua(s){var m=G();return m.useDeferredValue(s)}function hn(){var s=G();return s.useId()}function _t(s,m,L){var A=G();return A.useSyncExternalStore(s,m,L)}var Jn=0,ga,vr,el,tl,nl,Bu,$u;function Qi(){}Qi.__reactDisabledLog=!0;function al(){{if(Jn===0){ga=console.log,vr=console.info,el=console.warn,tl=console.error,nl=console.group,Bu=console.groupCollapsed,$u=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qi,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Jn++}}function Ja(){{if(Jn--,Jn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Qt({},s,{value:ga}),info:Qt({},s,{value:vr}),warn:Qt({},s,{value:el}),error:Qt({},s,{value:tl}),group:Qt({},s,{value:nl}),groupCollapsed:Qt({},s,{value:Bu}),groupEnd:Qt({},s,{value:$u})})}Jn<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=yt.ReactCurrentDispatcher,zr;function Ki(s,m,L){{if(zr===void 0)try{throw Error()}catch(Q){var A=Q.stack.trim().match(/\n( *(at )?)/);zr=A&&A[1]||""}return`
`+zr+s}}var vi=!1,Zi;{var rl=typeof WeakMap=="function"?WeakMap:Map;Zi=new rl}function Yu(s,m){if(!s||vi)return"";{var L=Zi.get(s);if(L!==void 0)return L}var A;vi=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=di.current,di.current=null,al();try{if(m){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(yn){A=yn}Reflect.construct(s,[],Te)}else{try{Te.call()}catch(yn){A=yn}s.call(Te.prototype)}}else{try{throw Error()}catch(yn){A=yn}s()}}catch(yn){if(yn&&A&&typeof yn.stack=="string"){for(var Ye=yn.stack.split(`
`),ft=A.stack.split(`
`),jt=Ye.length-1,qt=ft.length-1;jt>=1&&qt>=0&&Ye[jt]!==ft[qt];)qt--;for(;jt>=1&&qt>=0;jt--,qt--)if(Ye[jt]!==ft[qt]){if(jt!==1||qt!==1)do if(jt--,qt--,qt<0||Ye[jt]!==ft[qt]){var Gt=`
`+Ye[jt].replace(" at new "," at ");return s.displayName&&Gt.includes("<anonymous>")&&(Gt=Gt.replace("<anonymous>",s.displayName)),typeof s=="function"&&Zi.set(s,Gt),Gt}while(jt>=1&&qt>=0);break}}}finally{vi=!1,di.current=Ne,Ja(),Error.prepareStackTrace=Q}var at=s?s.displayName||s.name:"",an=at?Ki(at):"";return typeof s=="function"&&Zi.set(s,an),an}function il(s,m,L){return Yu(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function pi(s,m,L){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return Ki(s);switch(s){case W:return Ki("Suspense");case D:return Ki("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case it:return il(s.render);case oe:return pi(s.type,m,L);case Be:{var A=s,Q=A._payload,Ne=A._init;try{return pi(Ne(Q),m,L)}catch{}}}return""}var Iu={},ol=yt.ReactDebugCurrentFrame;function xt(s){if(s){var m=s._owner,L=pi(s.type,s._source,m?m.type:null);ol.setExtraStackFrame(L)}else ol.setExtraStackFrame(null)}function rf(s,m,L,A,Q){{var Ne=Function.call.bind($t);for(var Te in s)if(Ne(s,Te)){var Ye=void 0;try{if(typeof s[Te]!="function"){var ft=Error((A||"React class")+": "+L+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}Ye=s[Te](m,Te,A,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jt){Ye=jt}Ye&&!(Ye instanceof Error)&&(xt(Q),q("%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).",A||"React class",L,Te,typeof Ye),xt(null)),Ye instanceof Error&&!(Ye.message in Iu)&&(Iu[Ye.message]=!0,xt(Q),q("Failed %s type: %s",L,Ye.message),xt(null))}}}function pr(s){if(s){var m=s._owner,L=pi(s.type,s._source,m?m.type:null);K(L)}else K(null)}var Ge;Ge=!1;function ll(){if(Me.current){var s=Wt(Me.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function ea(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),L=s.lineNumber;return`
Check your code at `+m+":"+L+"."}return""}function mi(s){return s!=null?ea(s.__source):""}var Pr={};function of(s){var m=ll();if(!m){var L=typeof s=="string"?s:s.displayName||s.name;L&&(m=`
Check the top-level render call using <`+L+">.")}return m}function Mn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var L=of(m);if(!Pr[L]){Pr[L]=!0;var A="";s&&s._owner&&s._owner!==Me.current&&(A=" It was passed a child from "+Wt(s._owner.type)+"."),pr(s),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,A),pr(null)}}}function nn(s,m){if(typeof s=="object"){if(ye(s))for(var L=0;L<s.length;L++){var A=s[L];Jt(A)&&Mn(A,m)}else if(Jt(s))s._store&&(s._store.validated=!0);else if(s){var Q=We(s);if(typeof Q=="function"&&Q!==s.entries)for(var Ne=Q.call(s),Te;!(Te=Ne.next()).done;)Jt(Te.value)&&Mn(Te.value,m)}}}function Wu(s){{var m=s.type;if(m==null||typeof m=="string")return;var L;if(typeof m=="function")L=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===it||m.$$typeof===oe))L=m.propTypes;else return;if(L){var A=Wt(m);rf(L,s.props,"prop",A,s)}else if(m.PropTypes!==void 0&&!Ge){Ge=!0;var Q=Wt(m);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ra(s){{for(var m=Object.keys(s.props),L=0;L<m.length;L++){var A=m[L];if(A!=="children"&&A!=="key"){pr(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),pr(null);break}}s.ref!==null&&(pr(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),pr(null))}}function ta(s,m,L){var A=g(s);if(!A){var Q="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(Q+=" 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 Ne=mi(m);Ne?Q+=Ne:Q+=ll();var Te;s===null?Te="null":ye(s)?Te="array":s!==void 0&&s.$$typeof===xe?(Te="<"+(Wt(s.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof s,q("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,Q)}var Ye=Ze.apply(this,arguments);if(Ye==null)return Ye;if(A)for(var ft=2;ft<arguments.length;ft++)nn(arguments[ft],s);return s===Oe?Ra(Ye):Wu(Ye),Ye}var Ha=!1;function lf(s){var m=ta.bind(null,s);return m.type=s,Ha||(Ha=!0,ze("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return ze("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function ul(s,m,L){for(var A=Yt.apply(this,arguments),Q=2;Q<arguments.length;Q++)nn(arguments[Q],A.type);return Wu(A),A}function qu(s,m){var L=mt.transition;mt.transition={};var A=mt.transition;mt.transition._updatedFibers=new Set;try{s()}finally{if(mt.transition=L,L===null&&A._updatedFibers){var Q=A._updatedFibers.size;Q>10&&ze("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."),A._updatedFibers.clear()}}}var sl=!1,Ji=null;function uf(s){if(Ji===null)try{var m=("require"+Math.random()).slice(0,7),L=T&&T[m];Ji=L.call(T,"timers").setImmediate}catch{Ji=function(Q){sl===!1&&(sl=!0,typeof MessageChannel>"u"&&q("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 Ne=new MessageChannel;Ne.port1.onmessage=Q,Ne.port2.postMessage(void 0)}}return Ji(s)}var Vr=0,hi=!1;function cl(s){{var m=Vr;Vr++,_e.current===null&&(_e.current=[]);var L=_e.isBatchingLegacy,A;try{if(_e.isBatchingLegacy=!0,A=s(),!L&&_e.didScheduleLegacyUpdate){var Q=_e.current;Q!==null&&(_e.didScheduleLegacyUpdate=!1,no(Q))}}catch(at){throw mr(m),at}finally{_e.isBatchingLegacy=L}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var Ne=A,Te=!1,Ye={then:function(at,an){Te=!0,Ne.then(function(yn){mr(m),Vr===0?eo(yn,at,an):at(yn)},function(yn){mr(m),an(yn)})}};return!hi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Te||(hi=!0,q("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 () => ...);"))}),Ye}else{var ft=A;if(mr(m),Vr===0){var jt=_e.current;jt!==null&&(no(jt),_e.current=null);var qt={then:function(at,an){_e.current===null?(_e.current=[],eo(ft,at,an)):at(ft)}};return qt}else{var Gt={then:function(at,an){at(ft)}};return Gt}}}}function mr(s){s!==Vr-1&&q("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Vr=s}function eo(s,m,L){{var A=_e.current;if(A!==null)try{no(A),uf(function(){A.length===0?(_e.current=null,m(s)):eo(s,m,L)})}catch(Q){L(Q)}else m(s)}}var to=!1;function no(s){if(!to){to=!0;var m=0;try{for(;m<s.length;m++){var L=s[m];do L=L(!0);while(L!==null)}s.length=0}catch(A){throw s=s.slice(m+1),A}finally{to=!1}}}var Gu=ta,Xu=ul,fl=lf,Qu={map:ya,forEach:Hr,count:Ur,toArray:S,only:U};M.Children=Qu,M.Component=Kt,M.Fragment=Oe,M.Profiler=Z,M.PureComponent=on,M.StrictMode=f,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yt,M.act=cl,M.cloneElement=Xu,M.createContext=C,M.createElement=Gu,M.createFactory=fl,M.createRef=H,M.forwardRef=I,M.isValidElement=Jt,M.lazy=F,M.memo=P,M.startTransition=qu,M.unstable_act=cl,M.useCallback=ct,M.useContext=ee,M.useDebugValue=bt,M.useDeferredValue=Ua,M.useEffect=Ct,M.useId=hn,M.useImperativeHandle=un,M.useInsertionEffect=At,M.useLayoutEffect=st,M.useMemo=vn,M.useReducer=et,M.useRef=$e,M.useState=Ee,M.useSyncExternalStore=_t,M.useTransition=Xe,M.version=he,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(Zo,Zo.exports)),Zo.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=z0()),Kc.exports}var Jo={},mm;function P0(){if(mm)return Jo;mm=1;/**
* @license React
* react-jsx-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.
*/return function(){var T=Zc(),M=Symbol.for("react.element"),he=Symbol.for("react.portal"),xe=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),Oe=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),Z=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),Be=Symbol.iterator,zt="@@iterator";function Et(p){if(p===null||typeof p!="object")return null;var g=Be&&p[Be]||p[zt];return typeof g=="function"?g:null}var kt=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function We(p){{for(var g=arguments.length,P=new Array(g>1?g-1:0),G=1;G<g;G++)P[G-1]=arguments[G];J("error",p,P)}}function J(p,g,P){{var G=kt.ReactDebugCurrentFrame,ee=G.getStackAddendum();ee!==""&&(g+="%s",P=P.concat([ee]));var Ee=P.map(function(et){return String(et)});Ee.unshift("Warning: "+g),Function.prototype.apply.call(console[p],console,Ee)}}var mt=!1,_e=!1,Me=!1,V=!1,nt=!1,K;K=Symbol.for("react.module.reference");function Bt(p){return!!(typeof p=="string"||typeof p=="function"||p===xe||p===Oe||nt||p===pe||p===se||p===it||V||p===oe||mt||_e||Me||typeof p=="object"&&p!==null&&(p.$$typeof===D||p.$$typeof===W||p.$$typeof===f||p.$$typeof===Z||p.$$typeof===Se||p.$$typeof===K||p.getModuleId!==void 0))}function He(p,g,P){var G=p.displayName;if(G)return G;var ee=g.displayName||g.name||"";return ee!==""?P+"("+ee+")":P}function ce(p){return p.displayName||"Context"}function le(p){if(p==null)return null;if(typeof p.tag=="number"&&We("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case xe:return"Fragment";case he:return"Portal";case Oe:return"Profiler";case pe:return"StrictMode";case se:return"Suspense";case it:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case Z:var g=p;return ce(g)+".Consumer";case f:var P=p;return ce(P._context)+".Provider";case Se:return He(p,p.render,"ForwardRef");case W:var G=p.displayName||null;return G!==null?G:le(p.type)||"Memo";case D:{var ee=p,Ee=ee._payload,et=ee._init;try{return le(et(Ee))}catch{return null}}}return null}var ht=Object.assign,yt=0,ze,q,Ae,we,Le,Qe,Qt;function ot(){}ot.__reactDisabledLog=!0;function Kt(){{if(yt===0){ze=console.log,q=console.info,Ae=console.warn,we=console.error,Le=console.group,Qe=console.groupCollapsed,Qt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:ot,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}yt++}}function Ot(){{if(yt--,yt===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ht({},p,{value:ze}),info:ht({},p,{value:q}),warn:ht({},p,{value:Ae}),error:ht({},p,{value:we}),group:ht({},p,{value:Le}),groupCollapsed:ht({},p,{value:Qe}),groupEnd:ht({},p,{value:Qt})})}yt<0&&We("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=kt.ReactCurrentDispatcher,rn;function Yn(p,g,P){{if(rn===void 0)try{throw Error()}catch(ee){var G=ee.stack.trim().match(/\n( *(at )?)/);rn=G&&G[1]||""}return`
`+rn+p}}var on=!1,mn;{var H=typeof WeakMap=="function"?WeakMap:Map;mn=new H}function te(p,g){if(!p||on)return"";{var P=mn.get(p);if(P!==void 0)return P}var G;on=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ee;Ee=lt.current,lt.current=null,Kt();try{if(g){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(bt){G=bt}Reflect.construct(p,[],et)}else{try{et.call()}catch(bt){G=bt}p.call(et.prototype)}}else{try{throw Error()}catch(bt){G=bt}p()}}catch(bt){if(bt&&G&&typeof bt.stack=="string"){for(var $e=bt.stack.split(`
`),Ct=G.stack.split(`
`),At=$e.length-1,st=Ct.length-1;At>=1&&st>=0&&$e[At]!==Ct[st];)st--;for(;At>=1&&st>=0;At--,st--)if($e[At]!==Ct[st]){if(At!==1||st!==1)do if(At--,st--,st<0||$e[At]!==Ct[st]){var ct=`
`+$e[At].replace(" at new "," at ");return p.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",p.displayName)),typeof p=="function"&&mn.set(p,ct),ct}while(At>=1&&st>=0);break}}}finally{on=!1,lt.current=Ee,Ot(),Error.prepareStackTrace=ee}var vn=p?p.displayName||p.name:"",un=vn?Yn(vn):"";return typeof p=="function"&&mn.set(p,un),un}function ye(p,g,P){return te(p,!1)}function Re(p){var g=p.prototype;return!!(g&&g.isReactComponent)}function ge(p,g,P){if(p==null)return"";if(typeof p=="function")return te(p,Re(p));if(typeof p=="string")return Yn(p);switch(p){case se:return Yn("Suspense");case it:return Yn("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case Se:return ye(p.render);case W:return ge(p.type,g,P);case D:{var G=p,ee=G._payload,Ee=G._init;try{return ge(Ee(ee),g,P)}catch{}}}return""}var qe=Object.prototype.hasOwnProperty,ut={},Je=kt.ReactDebugCurrentFrame;function Ke(p){if(p){var g=p._owner,P=ge(p.type,p._source,g?g.type:null);Je.setExtraStackFrame(P)}else Je.setExtraStackFrame(null)}function Wt(p,g,P,G,ee){{var Ee=Function.call.bind(qe);for(var et in p)if(Ee(p,et)){var $e=void 0;try{if(typeof p[et]!="function"){var Ct=Error((G||"React class")+": "+P+" type `"+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ct.name="Invariant Violation",Ct}$e=p[et](g,et,G,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){$e=At}$e&&!($e instanceof Error)&&(Ke(ee),We("%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",P,et,typeof $e),Ke(null)),$e instanceof Error&&!($e.message in ut)&&(ut[$e.message]=!0,Ke(ee),We("Failed %s type: %s",P,$e.message),Ke(null))}}}var $t=Array.isArray;function tn(p){return $t(p)}function gt(p){{var g=typeof Symbol=="function"&&Symbol.toStringTag,P=g&&p[Symbol.toStringTag]||p.constructor.name||"Object";return P}}function fn(p){try{return Zt(p),!1}catch{return!0}}function Zt(p){return""+p}function dn(p){if(fn(p))return We("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gt(p)),Zt(p)}var Zn=kt.ReactCurrentOwner,sa={key:!0,ref:!0,__self:!0,__source:!0},Na,ie;function De(p){if(qe.call(p,"ref")){var g=Object.getOwnPropertyDescriptor(p,"ref").get;if(g&&g.isReactWarning)return!1}return p.ref!==void 0}function Ze(p){if(qe.call(p,"key")){var g=Object.getOwnPropertyDescriptor(p,"key").get;if(g&&g.isReactWarning)return!1}return p.key!==void 0}function Rt(p,g){typeof p.ref=="string"&&Zn.current}function Yt(p,g){{var P=function(){Na||(Na=!0,We("%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)",g))};P.isReactWarning=!0,Object.defineProperty(p,"key",{get:P,configurable:!0})}}function Jt(p,g){{var P=function(){ie||(ie=!0,We("%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)",g))};P.isReactWarning=!0,Object.defineProperty(p,"ref",{get:P,configurable:!0})}}var Dt=function(p,g,P,G,ee,Ee,et){var $e={$$typeof:M,type:p,key:g,ref:P,props:et,_owner:Ee};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:ee}),Object.freeze&&(Object.freeze($e.props),Object.freeze($e)),$e};function _n(p,g,P,G,ee){{var Ee,et={},$e=null,Ct=null;P!==void 0&&(dn(P),$e=""+P),Ze(g)&&(dn(g.key),$e=""+g.key),De(g)&&(Ct=g.ref,Rt(g,ee));for(Ee in g)qe.call(g,Ee)&&!sa.hasOwnProperty(Ee)&&(et[Ee]=g[Ee]);if(p&&p.defaultProps){var At=p.defaultProps;for(Ee in At)et[Ee]===void 0&&(et[Ee]=At[Ee])}if($e||Ct){var st=typeof p=="function"?p.displayName||p.name||"Unknown":p;$e&&Yt(et,st),Ct&&Jt(et,st)}return Dt(p,$e,Ct,ee,G,Zn.current,et)}}var Pt=kt.ReactCurrentOwner,Vt=kt.ReactDebugCurrentFrame;function Ft(p){if(p){var g=p._owner,P=ge(p.type,p._source,g?g.type:null);Vt.setExtraStackFrame(P)}else Vt.setExtraStackFrame(null)}var Za;Za=!1;function ha(p){return typeof p=="object"&&p!==null&&p.$$typeof===M}function In(){{if(Pt.current){var p=le(Pt.current.type);if(p)return`
Check the render method of \``+p+"`."}return""}}function ya(p){return""}var Ur={};function Hr(p){{var g=In();if(!g){var P=typeof p=="string"?p:p.displayName||p.name;P&&(g=`
Check the top-level render call using <`+P+">.")}return g}}function S(p,g){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var P=Hr(g);if(Ur[P])return;Ur[P]=!0;var G="";p&&p._owner&&p._owner!==Pt.current&&(G=" It was passed a child from "+le(p._owner.type)+"."),Ft(p),We('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,G),Ft(null)}}function U(p,g){{if(typeof p!="object")return;if(tn(p))for(var P=0;P<p.length;P++){var G=p[P];ha(G)&&S(G,g)}else if(ha(p))p._store&&(p._store.validated=!0);else if(p){var ee=Et(p);if(typeof ee=="function"&&ee!==p.entries)for(var Ee=ee.call(p),et;!(et=Ee.next()).done;)ha(et.value)&&S(et.value,g)}}}function C(p){{var g=p.type;if(g==null||typeof g=="string")return;var P;if(typeof g=="function")P=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===Se||g.$$typeof===W))P=g.propTypes;else return;if(P){var G=le(g);Wt(P,p.props,"prop",G,p)}else if(g.PropTypes!==void 0&&!Za){Za=!0;var ee=le(g);We("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&We("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function E(p){{for(var g=Object.keys(p.props),P=0;P<g.length;P++){var G=g[P];if(G!=="children"&&G!=="key"){Ft(p),We("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),Ft(null);break}}p.ref!==null&&(Ft(p),We("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var b={};function O(p,g,P,G,ee,Ee){{var et=Bt(p);if(!et){var $e="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&($e+=" 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 Ct=ya();Ct?$e+=Ct:$e+=In();var At;p===null?At="null":tn(p)?At="array":p!==void 0&&p.$$typeof===M?(At="<"+(le(p.type)||"Unknown")+" />",$e=" Did you accidentally export a JSX literal instead of a component?"):At=typeof p,We("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",At,$e)}var st=_n(p,g,P,ee,Ee);if(st==null)return st;if(et){var ct=g.children;if(ct!==void 0)if(G)if(tn(ct)){for(var vn=0;vn<ct.length;vn++)U(ct[vn],p);Object.freeze&&Object.freeze(ct)}else We("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 U(ct,p)}if(qe.call(g,"key")){var un=le(p),bt=Object.keys(g).filter(function(hn){return hn!=="key"}),Xe=bt.length>0?"{key: someKey, "+bt.join(": ..., ")+": ...}":"{key: someKey}";if(!b[un+Xe]){var Ua=bt.length>0?"{"+bt.join(": ..., ")+": ...}":"{}";We(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,Xe,un,Ua,un),b[un+Xe]=!0}}return p===xe?E(st):C(st),st}}function x(p,g,P){return O(p,g,P,!0)}function X(p,g,P){return O(p,g,P,!1)}var F=X,I=x;Jo.Fragment=xe,Jo.jsx=F,Jo.jsxs=I}(),Jo}dm.exports=P0();var v=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function V0(){return ym||(ym=1,function(T){/**
* @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(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var M=!1,he=5;function xe(ie,De){var Ze=ie.length;ie.push(De),f(ie,De,Ze)}function pe(ie){return ie.length===0?null:ie[0]}function Oe(ie){if(ie.length===0)return null;var De=ie[0],Ze=ie.pop();return Ze!==De&&(ie[0]=Ze,Z(ie,Ze,0)),De}function f(ie,De,Ze){for(var Rt=Ze;Rt>0;){var Yt=Rt-1>>>1,Jt=ie[Yt];if(Se(Jt,De)>0)ie[Yt]=De,ie[Rt]=Jt,Rt=Yt;else return}}function Z(ie,De,Ze){for(var Rt=Ze,Yt=ie.length,Jt=Yt>>>1;Rt<Jt;){var Dt=(Rt+1)*2-1,_n=ie[Dt],Pt=Dt+1,Vt=ie[Pt];if(Se(_n,De)<0)Pt<Yt&&Se(Vt,_n)<0?(ie[Rt]=Vt,ie[Pt]=De,Rt=Pt):(ie[Rt]=_n,ie[Dt]=De,Rt=Dt);else if(Pt<Yt&&Se(Vt,De)<0)ie[Rt]=Vt,ie[Pt]=De,Rt=Pt;else return}}function Se(ie,De){var Ze=ie.sortIndex-De.sortIndex;return Ze!==0?Ze:ie.id-De.id}var se=1,it=2,W=3,D=4,oe=5;function Be(ie,De){}var zt=typeof performance=="object"&&typeof performance.now=="function";if(zt){var Et=performance;T.unstable_now=function(){return Et.now()}}else{var kt=Date,We=kt.now();T.unstable_now=function(){return kt.now()-We}}var J=1073741823,mt=-1,_e=250,Me=5e3,V=1e4,nt=J,K=[],Bt=[],He=1,ce=null,le=W,ht=!1,yt=!1,ze=!1,q=typeof setTimeout=="function"?setTimeout:null,Ae=typeof clearTimeout=="function"?clearTimeout:null,we=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Le(ie){for(var De=pe(Bt);De!==null;){if(De.callback===null)Oe(Bt);else if(De.startTime<=ie)Oe(Bt),De.sortIndex=De.expirationTime,xe(K,De);else return;De=pe(Bt)}}function Qe(ie){if(ze=!1,Le(ie),!yt)if(pe(K)!==null)yt=!0,Zt(Qt);else{var De=pe(Bt);De!==null&&dn(Qe,De.startTime-ie)}}function Qt(ie,De){yt=!1,ze&&(ze=!1,Zn()),ht=!0;var Ze=le;try{var Rt;if(!M)return ot(ie,De)}finally{ce=null,le=Ze,ht=!1}}function ot(ie,De){var Ze=De;for(Le(Ze),ce=pe(K);ce!==null&&!(ce.expirationTime>Ze&&(!ie||Je()));){var Rt=ce.callback;if(typeof Rt=="function"){ce.callback=null,le=ce.priorityLevel;var Yt=ce.expirationTime<=Ze,Jt=Rt(Yt);Ze=T.unstable_now(),typeof Jt=="function"?ce.callback=Jt:ce===pe(K)&&Oe(K),Le(Ze)}else Oe(K);ce=pe(K)}if(ce!==null)return!0;var Dt=pe(Bt);return Dt!==null&&dn(Qe,Dt.startTime-Ze),!1}function Kt(ie,De){switch(ie){case se:case it:case W:case D:case oe:break;default:ie=W}var Ze=le;le=ie;try{return De()}finally{le=Ze}}function Ot(ie){var De;switch(le){case se:case it:case W:De=W;break;default:De=le;break}var Ze=le;le=De;try{return ie()}finally{le=Ze}}function lt(ie){var De=le;return function(){var Ze=le;le=De;try{return ie.apply(this,arguments)}finally{le=Ze}}}function rn(ie,De,Ze){var Rt=T.unstable_now(),Yt;if(typeof Ze=="object"&&Ze!==null){var Jt=Ze.delay;typeof Jt=="number"&&Jt>0?Yt=Rt+Jt:Yt=Rt}else Yt=Rt;var Dt;switch(ie){case se:Dt=mt;break;case it:Dt=_e;break;case oe:Dt=nt;break;case D:Dt=V;break;case W:default:Dt=Me;break}var _n=Yt+Dt,Pt={id:He++,callback:De,priorityLevel:ie,startTime:Yt,expirationTime:_n,sortIndex:-1};return Yt>Rt?(Pt.sortIndex=Yt,xe(Bt,Pt),pe(K)===null&&Pt===pe(Bt)&&(ze?Zn():ze=!0,dn(Qe,Yt-Rt))):(Pt.sortIndex=_n,xe(K,Pt),!yt&&!ht&&(yt=!0,Zt(Qt))),Pt}function Yn(){}function on(){!yt&&!ht&&(yt=!0,Zt(Qt))}function mn(){return pe(K)}function H(ie){ie.callback=null}function te(){return le}var ye=!1,Re=null,ge=-1,qe=he,ut=-1;function Je(){var ie=T.unstable_now()-ut;return!(ie<qe)}function Ke(){}function Wt(ie){if(ie<0||ie>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}ie>0?qe=Math.floor(1e3/ie):qe=he}var $t=function(){if(Re!==null){var ie=T.unstable_now();ut=ie;var De=!0,Ze=!0;try{Ze=Re(De,ie)}finally{Ze?tn():(ye=!1,Re=null)}}else ye=!1},tn;if(typeof we=="function")tn=function(){we($t)};else if(typeof MessageChannel<"u"){var gt=new MessageChannel,fn=gt.port2;gt.port1.onmessage=$t,tn=function(){fn.postMessage(null)}}else tn=function(){q($t,0)};function Zt(ie){Re=ie,ye||(ye=!0,tn())}function dn(ie,De){ge=q(function(){ie(T.unstable_now())},De)}function Zn(){Ae(ge),ge=-1}var sa=Ke,Na=null;T.unstable_IdlePriority=oe,T.unstable_ImmediatePriority=se,T.unstable_LowPriority=D,T.unstable_NormalPriority=W,T.unstable_Profiling=Na,T.unstable_UserBlockingPriority=it,T.unstable_cancelCallback=H,T.unstable_continueExecution=on,T.unstable_forceFrameRate=Wt,T.unstable_getCurrentPriorityLevel=te,T.unstable_getFirstCallbackNode=mn,T.unstable_next=Ot,T.unstable_pauseExecution=Yn,T.unstable_requestPaint=sa,T.unstable_runWithPriority=Kt,T.unstable_scheduleCallback=rn,T.unstable_shouldYield=Je,T.unstable_wrapCallback=lt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ef)),ef}var gm;function F0(){return gm||(gm=1,Jc.exports=V0()),Jc.exports}var ua={},bm;function B0(){if(bm)return ua;bm=1;/**
* @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.
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var T=Zc(),M=F0(),he=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xe=!1;function pe(e){xe=e}function Oe(e){if(!xe){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("warn",e,n)}}function f(e){if(!xe){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("error",e,n)}}function Z(e,t,n){{var a=he.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var Se=0,se=1,it=2,W=3,D=4,oe=5,Be=6,zt=7,Et=8,kt=9,We=10,J=11,mt=12,_e=13,Me=14,V=15,nt=16,K=17,Bt=18,He=19,ce=21,le=22,ht=23,yt=24,ze=25,q=!0,Ae=!1,we=!1,Le=!1,Qe=!1,Qt=!0,ot=!0,Kt=!0,Ot=!0,lt=new Set,rn={},Yn={};function on(e,t){mn(e,t),mn(e+"Capture",t)}function mn(e,t){rn[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),rn[e]=t;{var n=e.toLowerCase();Yn[n]=e,e==="onDoubleClick"&&(Yn.ondblclick=e)}for(var a=0;a<t.length;a++)lt.add(t[a])}var H=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",te=Object.prototype.hasOwnProperty;function ye(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Re(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function qe(e,t){if(Re(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,ye(e)),ge(e)}function ut(e){if(Re(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ye(e)),ge(e)}function Je(e,t){if(Re(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,ye(e)),ge(e)}function Ke(e,t){if(Re(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,ye(e)),ge(e)}function Wt(e){if(Re(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",ye(e)),ge(e)}function $t(e){if(Re(e))return f("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.",ye(e)),ge(e)}var tn=0,gt=1,fn=2,Zt=3,dn=4,Zn=5,sa=6,Na=":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",ie=Na+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",De=new RegExp("^["+Na+"]["+ie+"]*$"),Ze={},Rt={};function Yt(e){return te.call(Rt,e)?!0:te.call(Ze,e)?!1:De.test(e)?(Rt[e]=!0,!0):(Ze[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function Jt(e,t,n){return t!==null?t.type===tn:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Dt(e,t,n,a){if(n!==null&&n.type===tn)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function _n(e,t,n,a){if(t===null||typeof t>"u"||Dt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Zt:return!t;case dn:return t===!1;case Zn:return isNaN(t);case sa:return isNaN(t)||t<1}return!1}function Pt(e){return Ft.hasOwnProperty(e)?Ft[e]:null}function Vt(e,t,n,a,r,i,o){this.acceptsBooleans=t===fn||t===Zt||t===dn,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ft={},Za=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Za.forEach(function(e){Ft[e]=new Vt(e,tn,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Ft[t]=new Vt(t,gt,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new Vt(e,fn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new Vt(e,fn,!1,e,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(e){Ft[e]=new Vt(e,Zt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new Vt(e,Zt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ft[e]=new Vt(e,dn,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ft[e]=new Vt(e,sa,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ft[e]=new Vt(e,Zn,!1,e.toLowerCase(),null,!1,!1)});var ha=/[\-\:]([a-z])/g,In=function(e){return e[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(e){var t=e.replace(ha,In);Ft[t]=new Vt(t,gt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ha,In);Ft[t]=new Vt(t,gt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ha,In);Ft[t]=new Vt(t,gt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new Vt(e,gt,!1,e.toLowerCase(),null,!1,!1)});var ya="xlinkHref";Ft[ya]=new Vt("xlinkHref",gt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ft[e]=new Vt(e,gt,!1,e.toLowerCase(),null,!0,!0)});var Ur=/^[\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,Hr=!1;function S(e){!Hr&&Ur.test(e)&&(Hr=!0,f("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(e)))}function U(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{qe(n,t),a.sanitizeURL&&S(""+n);var i=a.attributeName,o=null;if(a.type===dn){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:_n(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(_n(t,n,a,!1))return e.getAttribute(i);if(a.type===Zt)return n;o=e.getAttribute(i)}return _n(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function C(e,t,n,a){{if(!Yt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return qe(n,t),r===""+n?n:r}}function E(e,t,n,a){var r=Pt(t);if(!Jt(t,r,a)){if(_n(t,n,r,a)&&(n=null),a||r===null){if(Yt(t)){var i=t;n===null?e.removeAttribute(i):(qe(n,t),e.setAttribute(i,""+n))}return}var o=r.mustUseProperty;if(o){var l=r.propertyName;if(n===null){var u=r.type;e[l]=u===Zt?!1:""}else e[l]=n;return}var c=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var y=r.type,h;y===Zt||y===dn&&n===!0?h="":(qe(n,c),h=""+n,r.sanitizeURL&&S(h.toString())),d?e.setAttributeNS(d,c,h):e.setAttribute(c,h)}}}var b=Symbol.for("react.element"),O=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),et=Symbol.for("react.scope"),$e=Symbol.for("react.debug_trace_mode"),Ct=Symbol.for("react.offscreen"),At=Symbol.for("react.legacy_hidden"),st=Symbol.for("react.cache"),ct=Symbol.for("react.tracing_marker"),vn=Symbol.iterator,un="@@iterator";function bt(e){if(e===null||typeof e!="object")return null;var t=vn&&e[vn]||e[un];return typeof t=="function"?t:null}var Xe=Object.assign,Ua=0,hn,_t,Jn,ga,vr,el,tl;function nl(){}nl.__reactDisabledLog=!0;function Bu(){{if(Ua===0){hn=console.log,_t=console.info,Jn=console.warn,ga=console.error,vr=console.group,el=console.groupCollapsed,tl=console.groupEnd;var e={configurable:!0,enumerable:!0,value:nl,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ua++}}function $u(){{if(Ua--,Ua===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Xe({},e,{value:hn}),info:Xe({},e,{value:_t}),warn:Xe({},e,{value:Jn}),error:Xe({},e,{value:ga}),group:Xe({},e,{value:vr}),groupCollapsed:Xe({},e,{value:el}),groupEnd:Xe({},e,{value:tl})})}Ua<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Qi=he.ReactCurrentDispatcher,al;function Ja(e,t,n){{if(al===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);al=a&&a[1]||""}return`
`+al+e}}var di=!1,zr;{var Ki=typeof WeakMap=="function"?WeakMap:Map;zr=new Ki}function vi(e,t){if(!e||di)return"";{var n=zr.get(e);if(n!==void 0)return n}var a;di=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Qi.current,Qi.current=null,Bu();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(k){a=k}Reflect.construct(e,[],o)}else{try{o.call()}catch(k){a=k}e.call(o.prototype)}}else{try{throw Error()}catch(k){a=k}e()}}catch(k){if(k&&a&&typeof k.stack=="string"){for(var l=k.stack.split(`
`),u=a.stack.split(`
`),c=l.length-1,d=u.length-1;c>=1&&d>=0&&l[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,d<0||l[c]!==u[d]){var y=`
`+l[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&zr.set(e,y),y}while(c>=1&&d>=0);break}}}finally{di=!1,Qi.current=i,$u(),Error.prepareStackTrace=r}var h=e?e.displayName||e.name:"",_=h?Ja(h):"";return typeof e=="function"&&zr.set(e,_),_}function Zi(e,t,n){return vi(e,!0)}function rl(e,t,n){return vi(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function il(e,t,n){if(e==null)return"";if(typeof e=="function")return vi(e,Yu(e));if(typeof e=="string")return Ja(e);switch(e){case P:return Ja("Suspense");case G:return Ja("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return rl(e.render);case ee:return il(e.type,t,n);case Ee:{var a=e,r=a._payload,i=a._init;try{return il(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case oe:return Ja(e.type);case nt:return Ja("Lazy");case _e:return Ja("Suspense");case He:return Ja("SuspenseList");case Se:case it:case V:return rl(e.type);case J:return rl(e.type.render);case se:return Zi(e.type);default:return""}}function pi(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Iu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ol(e){return e.displayName||"Context"}function xt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case O:return"Portal";case F:return"Profiler";case X:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var t=e;return ol(t)+".Consumer";case I:var n=e;return ol(n._context)+".Provider";case g:return Iu(e,e.render,"ForwardRef");case ee:var a=e.displayName||null;return a!==null?a:xt(e.type)||"Memo";case Ee:{var r=e,i=r._payload,o=r._init;try{return xt(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function pr(e){return e.displayName||"Context"}function Ge(e){var t=e.tag,n=e.type;switch(t){case yt:return"Cache";case kt:var a=n;return pr(a)+".Consumer";case We:var r=n;return pr(r._context)+".Provider";case Bt:return"DehydratedFragment";case J:return rf(n,n.render,"ForwardRef");case zt:return"Fragment";case oe:return n;case D:return"Portal";case W:return"Root";case Be:return"Text";case nt:return xt(n);case Et:return n===X?"StrictMode":"Mode";case le:return"Offscreen";case mt:return"Profiler";case ce:return"Scope";case _e:return"Suspense";case He:return"SuspenseList";case ze:return"TracingMarker";case se:case Se:case K:case it:case Me:case V:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var ll=he.ReactDebugCurrentFrame,ea=null,mi=!1;function Pr(){{if(ea===null)return null;var e=ea._debugOwner;if(e!==null&&typeof e<"u")return Ge(e)}return null}function of(){return ea===null?"":pi(ea)}function Mn(){ll.getCurrentStack=null,ea=null,mi=!1}function nn(e){ll.getCurrentStack=e===null?null:of,ea=e,mi=!1}function Wu(){return ea}function Ra(e){mi=e}function ta(e){return""+e}function Ha(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return $t(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function ul(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("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`."),t.onChange||t.readOnly||t.disabled||t.checked==null||f("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 qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sl(e){return e._valueTracker}function Ji(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Vr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);$t(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var r=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){$t(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){$t(l),a=""+l},stopTracking:function(){Ji(e),delete e[t]}};return o}}function hi(e){sl(e)||(e._valueTracker=Vr(e))}function cl(e){if(!e)return!1;var t=sl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var eo=!1,to=!1,no=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function fl(e,t){var n=e,a=t.checked,r=Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){ul("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!to&&(f("%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",Pr()||"A component",t.type),to=!0),t.value!==void 0&&t.defaultValue!==void 0&&!eo&&(f("%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",Pr()||"A component",t.type),eo=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Ha(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&E(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(f("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"),Gu=!0),n._wrapperState.controlled&&!a&&!no&&(f("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"),no=!0)}s(e,t);var r=Ha(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ta(r)):n.value!==ta(r)&&(n.value=ta(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ne(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ne(n,t.type,Ha(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function L(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type,i=r==="submit"||r==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=ta(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function A(e,t){var n=e;m(n,t),Q(n,t)}function Q(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;qe(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(!(o===e||o.form!==e.form)){var l=Hs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");cl(o),m(o,l)}}}}function Ne(e,t,n){(t!=="number"||mr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ta(e._wrapperState.initialValue):e.defaultValue!==ta(n)&&(e.defaultValue=ta(n)))}var Te=!1,Ye=!1,ft=!1;function jt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?T.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ye||(Ye=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(ft||(ft=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Te&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Te=!0)}function qt(e,t){t.value!=null&&e.setAttribute("value",ta(Ha(t.value)))}var Gt=Array.isArray;function at(e){return Gt(e)}var an;an=!1;function yn(){var e=Pr();return e?`
Check the render method of \``+e+"`.":""}var yi=["value","defaultValue"];function dl(e){{ul("select",e);for(var t=0;t<yi.length;t++){var n=yi[t];if(e[n]!=null){var a=at(e[n]);e.multiple&&!a?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,yn()):!e.multiple&&a&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,yn())}}}}function hr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var c=o.hasOwnProperty("$"+r[u].value);r[u].selected!==c&&(r[u].selected=c),c&&a&&(r[u].defaultSelected=!0)}}else{for(var d=ta(Ha(n)),y=null,h=0;h<r.length;h++){if(r[h].value===d){r[h].selected=!0,a&&(r[h].defaultSelected=!0);return}y===null&&!r[h].disabled&&(y=r[h])}y!==null&&(y.selected=!0)}}function vl(e,t){return Xe({},t,{value:void 0})}function pl(e,t){var n=e;dl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!an&&(f("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"),an=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?hr(n,!!t.multiple,a,!1):t.defaultValue!=null&&hr(n,!!t.multiple,t.defaultValue,!0)}function Ku(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?hr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?hr(n,!!t.multiple,t.defaultValue,!0):hr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&hr(n,!!t.multiple,a,!1)}var Lm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Xe({},t,{value:void 0,defaultValue:void 0,children:ta(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;ul("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Lm&&(f("%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",Pr()||"A component"),Lm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){f("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(at(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Ha(a)}}function Om(e,t){var n=e,a=Ha(t.value),r=Ha(t.defaultValue);if(a!=null){var i=ta(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ta(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function nS(e,t){Om(e,t)}var yr="http://www.w3.org/1999/xhtml",aS="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return aS;default:return yr}}function pf(e,t){return e==null||e===yr?vf(t):e===df&&t==="foreignObject"?yr:e}var rS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,jm=rS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ca=1,gr=3,gn=8,br=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===gr){n.nodeValue=t;return}}e.textContent=t},iS={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"]},ml={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 oS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var lS=["Webkit","ms","Moz","O"];Object.keys(ml).forEach(function(e){lS.forEach(function(t){ml[oS(t,e)]=ml[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(ml.hasOwnProperty(e)&&ml[e])?t+"px":(Ke(t,e),(""+t).trim())}var uS=/([A-Z])/g,sS=/^ms-/;function cS(e){return e.replace(uS,"-$1").toLowerCase().replace(sS,"-ms-")}var Nm=function(){};{var fS=/^(?:webkit|moz|o)[A-Z]/,dS=/^-ms-/,vS=/-(.)/g,Um=/;\s*$/,ao={},yf={},Hm=!1,zm=!1,pS=function(e){return e.replace(vS,function(t,n){return n.toUpperCase()})},mS=function(e){ao.hasOwnProperty(e)&&ao[e]||(ao[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,pS(e.replace(dS,"ms-"))))},hS=function(e){ao.hasOwnProperty(e)&&ao[e]||(ao[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},yS=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Um,"")))},gS=function(e,t){Hm||(Hm=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},bS=function(e,t){zm||(zm=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};Nm=function(e,t){e.indexOf("-")>-1?mS(e):fS.test(e)?hS(e):Um.test(t)&&yS(e,t),typeof t=="number"&&(isNaN(t)?gS(e,t):isFinite(t)||bS(e,t))}}var SS=Nm;function TS(e){{var t="",n="";for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];if(r!=null){var i=a.indexOf("--")===0;t+=n+(i?a:cS(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Pm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||SS(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function ES(e){return e==null||typeof e=="boolean"||e===""}function Vm(e){var t={};for(var n in e)for(var a=iS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function CS(e,t){{if(!t)return;var n=Vm(e),a=Vm(t),r={};for(var i in n){var o=n[i],l=a[i];if(l&&o!==l){var u=o+","+l;if(r[u])continue;r[u]=!0,f("%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.",ES(e[o])?"Removing":"Updating",o,l)}}}}var xS={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},wS=Xe({menuitem:!0},xS),RS="__html";function gf(e,t){if(t){if(wS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(RS in t.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(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&f("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."),t.style!=null&&typeof t.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 gi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 es={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"},Fm={"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},ro={},DS=new RegExp("^(aria)-["+ie+"]*$"),_S=new RegExp("^(aria)[A-Z]["+ie+"]*$");function MS(e,t){{if(te.call(ro,t)&&ro[t])return!0;if(_S.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Fm.hasOwnProperty(n)?n:null;if(a==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),ro[t]=!0,!0;if(t!==a)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),ro[t]=!0,!0}if(DS.test(t)){var r=t.toLowerCase(),i=Fm.hasOwnProperty(r)?r:null;if(i==null)return ro[t]=!0,!1;if(t!==i)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),ro[t]=!0,!0}}return!0}function LS(e,t){{var n=[];for(var a in t){var r=MS(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function kS(e,t){gi(e,t)||LS(e,t)}var Bm=!1;function OS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Bm&&(Bm=!0,e==="select"&&t.multiple?f("`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.",e):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var $m=function(){};{var na={},Ym=/^on./,AS=/^on[^A-Z]/,jS=new RegExp("^(aria)-["+ie+"]*$"),NS=new RegExp("^(aria)[A-Z]["+ie+"]*$");$m=function(e,t,n,a){if(te.call(na,t)&&na[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return f("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),na[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return f("Invalid event handler property `%s`. Did you mean `%s`?",t,l),na[t]=!0,!0;if(Ym.test(t))return f("Unknown event handler property `%s`. It will be ignored.",t),na[t]=!0,!0}else if(Ym.test(t))return AS.test(t)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),na[t]=!0,!0;if(jS.test(t)||NS.test(t))return!0;if(r==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[t]=!0,!0;if(r==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),na[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),na[t]=!0,!0;var u=Pt(t),c=u!==null&&u.type===tn;if(es.hasOwnProperty(r)){var d=es[r];if(d!==t)return f("Invalid DOM property `%s`. Did you mean `%s`?",t,d),na[t]=!0,!0}else if(!c&&t!==r)return f("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.",t,r),na[t]=!0,!0;return typeof n=="boolean"&&Dt(t,n,u,!1)?(n?f('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,t,t,n,t):f('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.',n,t,t,n,t,t,t),na[t]=!0,!0):c?!0:Dt(t,n,u,!1)?(na[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Zt&&(f("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="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".',t,n),na[t]=!0),!0)}}var US=function(e,t,n){{var a=[];for(var r in t){var i=$m(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?f("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 ",o,e):a.length>1&&f("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 ",o,e)}};function HS(e,t,n){gi(e,t)||US(e,t,n)}var Im=1,bf=2,hl=4,zS=Im|bf|hl,yl=null;function PS(e){yl!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),yl=e}function VS(){yl===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),yl=null}function FS(e){return e===yl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===gr?t.parentNode:t}var Tf=null,io=null,oo=null;function Wm(e){var t=Xr(e);if(t){if(typeof Tf!="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 n=t.stateNode;if(n){var a=Hs(n);Tf(t.stateNode,t.type,a)}}}function BS(e){Tf=e}function qm(e){io?oo?oo.push(e):oo=[e]:io=e}function $S(){return io!==null||oo!==null}function Gm(){if(io){var e=io,t=oo;if(io=null,oo=null,Wm(e),t)for(var n=0;n<t.length;n++)Wm(t[n])}}var Xm=function(e,t){return e(t)},Qm=function(){},Ef=!1;function YS(){var e=$S();e&&(Qm(),Gm())}function Km(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return Xm(e,t,n)}finally{Ef=!1,YS()}}function IS(e,t,n){Xm=e,Qm=n}function WS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function qS(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(n.disabled&&WS(t));default:return!1}}function gl(e,t){var n=e.stateNode;if(n===null)return null;var a=Hs(n);if(a===null)return null;var r=a[t];if(qS(t,e.type,a))return null;if(r&&typeof r!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}var Cf=!1;if(H)try{var bl={};Object.defineProperty(bl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{Cf=!1}function Zm(e,t,n,a,r,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Jm=Zm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Jm=function(t,n,a,r,i,o,l,u,c){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 d=document.createEvent("Event"),y=!1,h=!0,_=window.event,k=Object.getOwnPropertyDescriptor(window,"event");function j(){xf.removeEventListener(N,ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_)}var ue=Array.prototype.slice.call(arguments,3);function ke(){y=!0,j(),n.apply(a,ue),h=!1}var Ce,pt=!1,rt=!1;function w(R){if(Ce=R.error,pt=!0,Ce===null&&R.colno===0&&R.lineno===0&&(rt=!0),R.defaultPrevented&&Ce!=null&&typeof Ce=="object")try{Ce._suppressLogging=!0}catch{}}var N="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",w),xf.addEventListener(N,ke,!1),d.initEvent(N,!1,!1),xf.dispatchEvent(d),k&&Object.defineProperty(window,"event",k),y&&h&&(pt?rt&&(Ce=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.")):Ce=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(Ce)),window.removeEventListener("error",w),!y)return j(),Zm.apply(this,arguments)}}var GS=Jm,lo=!1,ts=null,ns=!1,wf=null,XS={onError:function(e){lo=!0,ts=e}};function Rf(e,t,n,a,r,i,o,l,u){lo=!1,ts=null,GS.apply(XS,arguments)}function QS(e,t,n,a,r,i,o,l,u){if(Rf.apply(this,arguments),lo){var c=Df();ns||(ns=!0,wf=c)}}function KS(){if(ns){var e=wf;throw ns=!1,wf=null,e}}function ZS(){return lo}function Df(){if(lo){var e=ts;return lo=!1,ts=null,e}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 uo(e){return e._reactInternals}function JS(e){return e._reactInternals!==void 0}function eT(e,t){e._reactInternals=t}var Ue=0,so=1,Ln=2,wt=4,bi=16,as=32,eh=64,Mt=128,Si=256,Ti=512,co=1024,Fr=2048,Ei=4096,Ci=8192,_f=16384,tT=32767,rs=32768,za=65536,Mf=131072,th=1048576,Lf=2097152,xi=4194304,kf=8388608,Br=16777216,Of=33554432,Af=wt|co|0,jf=Ln|wt|bi|as|Ti|Ei|Ci,Sl=wt|eh|Ti|Ci,fo=Fr|bi,Sr=xi|kf|Lf,nT=he.ReactCurrentOwner;function wi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(Ln|Ei))!==Ue&&(n=t.return),a=t.return;while(a)}return t.tag===W?n:null}function nh(e){if(e.tag===_e){var t=e.memoizedState;if(t===null){var n=e.alternate;n!==null&&(t=n.memoizedState)}if(t!==null)return t.dehydrated}return null}function ah(e){return e.tag===W?e.stateNode.containerInfo:null}function aT(e){return wi(e)===e}function rT(e){{var t=nT.current;if(t!==null&&t.tag===se){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||f("%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.",Ge(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=uo(e);return r?wi(r)===r:!1}function rh(e){if(wi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ih(e){var t=e.alternate;if(!t){var n=wi(e);if(n===null)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var a=e,r=t;;){var i=a.return;if(i===null)break;var o=i.alternate;if(o===null){var l=i.return;if(l!==null){a=r=l;continue}break}if(i.child===o.child){for(var u=i.child;u;){if(u===a)return rh(i),e;if(u===r)return rh(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var c=!1,d=i.child;d;){if(d===a){c=!0,a=i,r=o;break}if(d===r){c=!0,r=i,a=o;break}d=d.sibling}if(!c){for(d=o.child;d;){if(d===a){c=!0,a=o,r=i;break}if(d===r){c=!0,r=o,a=i;break}d=d.sibling}if(!c)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(a.alternate!==r)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(a.tag!==W)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function oh(e){var t=ih(e);return t!==null?lh(t):null}function lh(e){if(e.tag===oe||e.tag===Be)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function iT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===oe||e.tag===Be)return e;for(var t=e.child;t!==null;){if(t.tag!==D){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=M.unstable_scheduleCallback,oT=M.unstable_cancelCallback,lT=M.unstable_shouldYield,uT=M.unstable_requestPaint,kn=M.unstable_now,sT=M.unstable_getCurrentPriorityLevel,is=M.unstable_ImmediatePriority,Nf=M.unstable_UserBlockingPriority,Ri=M.unstable_NormalPriority,cT=M.unstable_LowPriority,Uf=M.unstable_IdlePriority,fT=M.unstable_yieldValue,dT=M.unstable_setDisableYieldValue,vo=null,Wn=null,de=null,er=!1,Pa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return f("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{ot&&(e=Xe({},e,{getLaneLabelMap:bT,injectProfilingHooks:gT})),vo=t.inject(e),Wn=t}catch(n){f("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function pT(e,t){if(Wn&&typeof Wn.onScheduleFiberRoot=="function")try{Wn.onScheduleFiberRoot(vo,e,t)}catch(n){er||(er=!0,f("React instrumentation encountered an error: %s",n))}}function mT(e,t){if(Wn&&typeof Wn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Mt)===Mt;if(Kt){var a;switch(t){case Sa:a=is;break;case Er:a=Nf;break;case Cr:a=Ri;break;case ds:a=Uf;break;default:a=Ri;break}Wn.onCommitFiberRoot(vo,e,a,n)}}catch(r){er||(er=!0,f("React instrumentation encountered an error: %s",r))}}function hT(e){if(Wn&&typeof Wn.onPostCommitFiberRoot=="function")try{Wn.onPostCommitFiberRoot(vo,e)}catch(t){er||(er=!0,f("React instrumentation encountered an error: %s",t))}}function yT(e){if(Wn&&typeof Wn.onCommitFiberUnmount=="function")try{Wn.onCommitFiberUnmount(vo,e)}catch(t){er||(er=!0,f("React instrumentation encountered an error: %s",t))}}function On(e){if(typeof fT=="function"&&(dT(e),pe(e)),Wn&&typeof Wn.setStrictMode=="function")try{Wn.setStrictMode(vo,e)}catch(t){er||(er=!0,f("React instrumentation encountered an error: %s",t))}}function gT(e){de=e}function bT(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=PT(t);e.set(t,a),t*=2}return e}}function ST(e){de!==null&&typeof de.markCommitStarted=="function"&&de.markCommitStarted(e)}function ch(){de!==null&&typeof de.markCommitStopped=="function"&&de.markCommitStopped()}function Tl(e){de!==null&&typeof de.markComponentRenderStarted=="function"&&de.markComponentRenderStarted(e)}function po(){de!==null&&typeof de.markComponentRenderStopped=="function"&&de.markComponentRenderStopped()}function TT(e){de!==null&&typeof de.markComponentPassiveEffectMountStarted=="function"&&de.markComponentPassiveEffectMountStarted(e)}function ET(){de!==null&&typeof de.markComponentPassiveEffectMountStopped=="function"&&de.markComponentPassiveEffectMountStopped()}function CT(e){de!==null&&typeof de.markComponentPassiveEffectUnmountStarted=="function"&&de.markComponentPassiveEffectUnmountStarted(e)}function xT(){de!==null&&typeof de.markComponentPassiveEffectUnmountStopped=="function"&&de.markComponentPassiveEffectUnmountStopped()}function wT(e){de!==null&&typeof de.markComponentLayoutEffectMountStarted=="function"&&de.markComponentLayoutEffectMountStarted(e)}function RT(){de!==null&&typeof de.markComponentLayoutEffectMountStopped=="function"&&de.markComponentLayoutEffectMountStopped()}function fh(e){de!==null&&typeof de.markComponentLayoutEffectUnmountStarted=="function"&&de.markComponentLayoutEffectUnmountStarted(e)}function dh(){de!==null&&typeof de.markComponentLayoutEffectUnmountStopped=="function"&&de.markComponentLayoutEffectUnmountStopped()}function DT(e,t,n){de!==null&&typeof de.markComponentErrored=="function"&&de.markComponentErrored(e,t,n)}function _T(e,t,n){de!==null&&typeof de.markComponentSuspended=="function"&&de.markComponentSuspended(e,t,n)}function MT(e){de!==null&&typeof de.markLayoutEffectsStarted=="function"&&de.markLayoutEffectsStarted(e)}function LT(){de!==null&&typeof de.markLayoutEffectsStopped=="function"&&de.markLayoutEffectsStopped()}function kT(e){de!==null&&typeof de.markPassiveEffectsStarted=="function"&&de.markPassiveEffectsStarted(e)}function OT(){de!==null&&typeof de.markPassiveEffectsStopped=="function"&&de.markPassiveEffectsStopped()}function vh(e){de!==null&&typeof de.markRenderStarted=="function"&&de.markRenderStarted(e)}function AT(){de!==null&&typeof de.markRenderYielded=="function"&&de.markRenderYielded()}function ph(){de!==null&&typeof de.markRenderStopped=="function"&&de.markRenderStopped()}function jT(e){de!==null&&typeof de.markRenderScheduled=="function"&&de.markRenderScheduled(e)}function NT(e,t){de!==null&&typeof de.markForceUpdateScheduled=="function"&&de.markForceUpdateScheduled(e,t)}function Hf(e,t){de!==null&&typeof de.markStateUpdateScheduled=="function"&&de.markStateUpdateScheduled(e,t)}var je=0,dt=1,Nt=2,sn=8,tr=16,mh=Math.clz32?Math.clz32:zT,UT=Math.log,HT=Math.LN2;function zT(e){var t=e>>>0;return t===0?32:31-(UT(t)/HT|0)|0}var zf=31,B=0,An=0,Ve=1,mo=2,Tr=4,Di=8,nr=16,El=32,ho=4194240,Cl=64,Pf=128,Vf=256,Ff=512,Bf=1024,$f=2048,Yf=4096,If=8192,Wf=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Zf=1048576,Jf=2097152,os=130023424,yo=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=yo,xl=134217728,yh=268435455,wl=268435456,_i=536870912,Da=1073741824;function PT(e){{if(e&Ve)return"Sync";if(e&mo)return"InputContinuousHydration";if(e&Tr)return"InputContinuous";if(e&Di)return"DefaultHydration";if(e&nr)return"Default";if(e&El)return"TransitionHydration";if(e&ho)return"Transition";if(e&os)return"Retry";if(e&xl)return"SelectiveHydration";if(e&wl)return"IdleHydration";if(e&_i)return"Idle";if(e&Da)return"Offscreen"}}var Xt=-1,ls=Cl,us=yo;function Rl(e){switch(Mi(e)){case Ve:return Ve;case mo:return mo;case Tr:return Tr;case Di:return Di;case nr:return nr;case El:return El;case Cl:case Pf:case Vf:case Ff:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return e&ho;case yo:case ed:case td:case nd:case ad:return e&os;case xl:return xl;case wl:return wl;case _i:return _i;case Da:return Da;default:return f("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===B)return B;var a=B,r=e.suspendedLanes,i=e.pingedLanes,o=n&yh;if(o!==B){var l=o&~r;if(l!==B)a=Rl(l);else{var u=o&i;u!==B&&(a=Rl(u))}}else{var c=n&~r;c!==B?a=Rl(c):i!==B&&(a=Rl(i))}if(a===B)return B;if(t!==B&&t!==a&&(t&r)===B){var d=Mi(a),y=Mi(t);if(d>=y||d===nr&&(y&ho)!==B)return t}(a&Tr)!==B&&(a|=n&nr);var h=e.entangledLanes;if(h!==B)for(var _=e.entanglements,k=a&h;k>0;){var j=Li(k),ue=1<<j;a|=_[j],k&=~ue}return a}function VT(e,t){for(var n=e.eventTimes,a=Xt;t>0;){var r=Li(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function FT(e,t){switch(e){case Ve:case mo:case Tr:return t+250;case Di:case nr:case El:case Cl:case Pf:case Vf:case Ff:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return t+5e3;case yo:case ed:case td:case nd:case ad:return Xt;case xl:case wl:case _i:case Da:return Xt;default:return f("Should have found matching lanes. This is a bug in React."),Xt}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Li(o),u=1<<l,c=i[l];c===Xt?((u&a)===B||(u&r)!==B)&&(i[l]=FT(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Rl(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==B?t:t&Da?Da:B}function YT(e){return(e&Ve)!==B}function id(e){return(e&yh)!==B}function gh(e){return(e&os)===e}function IT(e){var t=Ve|Tr|nr;return(e&t)===B}function WT(e){return(e&ho)===e}function cs(e,t){var n=mo|Tr|Di|nr;return(t&n)!==B}function qT(e,t){return(t&e.expiredLanes)!==B}function bh(e){return(e&ho)!==B}function Sh(){var e=ls;return ls<<=1,(ls&ho)===B&&(ls=Cl),e}function GT(){var e=us;return us<<=1,(us&os)===B&&(us=yo),e}function Mi(e){return e&-e}function Dl(e){return Mi(e)}function Li(e){return 31-mh(e)}function od(e){return Li(e)}function ba(e,t){return(e&t)!==B}function go(e,t){return(e&t)===t}function tt(e,t){return e|t}function fs(e,t){return e&~t}function Th(e,t){return e&t}function m_(e){return e}function XT(e,t){return e!==An&&e<t?e:t}function ld(e){for(var t=[],n=0;n<zf;n++)t.push(e);return t}function _l(e,t,n){e.pendingLanes|=t,t!==_i&&(e.suspendedLanes=B,e.pingedLanes=B);var a=e.eventTimes,r=od(t);a[r]=n}function QT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Li(a),i=1<<r;n[r]=Xt,a&=~i}}function Eh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function KT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=B,e.pingedLanes=B,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var a=e.entanglements,r=e.eventTimes,i=e.expirationTimes,o=n;o>0;){var l=Li(o),u=1<<l;a[l]=B,r[l]=Xt,i[l]=Xt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Li(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function ZT(e,t){var n=Mi(t),a;switch(n){case Tr:a=mo;break;case nr:a=Di;break;case Cl:case Pf:case Vf:case Ff:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:case yo:case ed:case td:case nd:case ad:a=El;break;case _i:a=wl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function Ch(e,t,n){if(Pa)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function xh(e,t){if(Pa)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function wh(e,t){return null}var Sa=Ve,Er=Tr,Cr=nr,ds=_i,Ml=An;function Va(){return Ml}function jn(e){Ml=e}function JT(e,t){var n=Ml;try{return Ml=e,t()}finally{Ml=n}}function eE(e,t){return e!==0&&e<t?e:t}function tE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function Rh(e){var t=Mi(e);return sd(Sa,t)?sd(Er,t)?id(t)?Cr:ds:Er:Sa}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function nE(e){Dh=e}function aE(e){Dh(e)}var cd;function rE(e){cd=e}var _h;function iE(e){_h=e}var Mh;function oE(e){Mh=e}var Lh;function lE(e){Lh=e}var fd=!1,ps=[],$r=null,Yr=null,Ir=null,Ll=new Map,kl=new Map,Wr=[],uE=["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 sE(e){return uE.indexOf(e)>-1}function cE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function kh(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Yr=null;break;case"mouseover":case"mouseout":Ir=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ll.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;kl.delete(a);break}}}function Ol(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=cE(t,n,a,r,i);if(t!==null){var l=Xr(t);l!==null&&cd(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function fE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return $r=Ol($r,e,t,n,a,i),!0}case"dragenter":{var o=r;return Yr=Ol(Yr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Ir=Ol(Ir,e,t,n,a,l),!0}case"pointerover":{var u=r,c=u.pointerId;return Ll.set(c,Ol(Ll.get(c)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,y=d.pointerId;return kl.set(y,Ol(kl.get(y)||null,e,t,n,a,d)),!0}}return!1}function Oh(e){var t=Ai(e.target);if(t!==null){var n=wi(t);if(n!==null){var a=n.tag;if(a===_e){var r=nh(n);if(r!==null){e.blockedOn=r,Lh(e.priority,function(){_h(n)});return}}else if(a===W){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function dE(e){for(var t=Mh(),n={blockedOn:null,target:e,priority:t},a=0;a<Wr.length&&sd(t,Wr[a].priority);a++);Wr.splice(a,0,n),a===0&&Oh(n)}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=pd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);PS(i),r.target.dispatchEvent(i),VS()}else{var o=Xr(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Ah(e,t,n){ms(e)&&n.delete(t)}function vE(){fd=!1,$r!==null&&ms($r)&&($r=null),Yr!==null&&ms(Yr)&&(Yr=null),Ir!==null&&ms(Ir)&&(Ir=null),Ll.forEach(Ah),kl.forEach(Ah)}function Al(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,M.unstable_scheduleCallback(M.unstable_NormalPriority,vE)))}function jl(e){if(ps.length>0){Al(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}$r!==null&&Al($r,e),Yr!==null&&Al(Yr,e),Ir!==null&&Al(Ir,e);var a=function(l){return Al(l,e)};Ll.forEach(a),kl.forEach(a);for(var r=0;r<Wr.length;r++){var i=Wr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Wr.length>0;){var o=Wr[0];if(o.blockedOn!==null)break;Oh(o),o.blockedOn===null&&Wr.shift()}}var bo=he.ReactCurrentBatchConfig,dd=!0;function jh(e){dd=!!e}function pE(){return dd}function mE(e,t,n){var a=Nh(t),r;switch(a){case Sa:r=hE;break;case Er:r=yE;break;case Cr:default:r=vd;break}return r.bind(null,t,n,e)}function hE(e,t,n,a){var r=Va(),i=bo.transition;bo.transition=null;try{jn(Sa),vd(e,t,n,a)}finally{jn(r),bo.transition=i}}function yE(e,t,n,a){var r=Va(),i=bo.transition;bo.transition=null;try{jn(Er),vd(e,t,n,a)}finally{jn(r),bo.transition=i}}function vd(e,t,n,a){dd&&gE(e,t,n,a)}function gE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),kh(e,a);return}if(fE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&hl&&sE(e)){for(;r!==null;){var i=Xr(r);i!==null&&aE(i);var o=pd(e,t,n,a);if(o===null&&_d(e,t,a,hs,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}_d(e,t,a,null,n)}var hs=null;function pd(e,t,n,a){hs=null;var r=Sf(a),i=Ai(r);if(i!==null){var o=wi(i);if(o===null)i=null;else{var l=o.tag;if(l===_e){var u=nh(o);if(u!==null)return u;i=null}else if(l===W){var c=o.stateNode;if(vs(c))return ah(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function Nh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Sa;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Er;case"message":{var t=sT();switch(t){case is:return Sa;case Nf:return Er;case Ri:case cT:return Cr;case Uf:return ds;default:return Cr}}default:return Cr}}function bE(e,t,n){return e.addEventListener(t,n,!1),n}function SE(e,t,n){return e.addEventListener(t,n,!0),n}function TE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function EE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Nl=null,md=null,Ul=null;function CE(e){return Nl=e,md=Hh(),!0}function xE(){Nl=null,md=null,Ul=null}function Uh(){if(Ul)return Ul;var e,t=md,n=t.length,a,r=Hh(),i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===r[i-a];a++);var l=a>1?1-a:void 0;return Ul=r.slice(e,l),Ul}function Hh(){return"value"in Nl?Nl.value:Nl.textContent}function ys(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),t>=32||t===13?t:0}function gs(){return!0}function zh(){return!1}function Ta(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var c=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return c?this.isDefaultPrevented=gs:this.isDefaultPrevented=zh,this.isPropagationStopped=zh,this}return Xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=Ta(So),Hl=Xe({},So,{view:0,detail:0}),wE=Ta(Hl),yd,gd,zl;function RE(e){e!==zl&&(zl&&e.type==="mousemove"?(yd=e.screenX-zl.screenX,gd=e.screenY-zl.screenY):(yd=0,gd=0),zl=e)}var bs=Xe({},Hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(RE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Ph=Ta(bs),DE=Xe({},bs,{dataTransfer:0}),_E=Ta(DE),ME=Xe({},Hl,{relatedTarget:0}),bd=Ta(ME),LE=Xe({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),kE=Ta(LE),OE=Xe({},So,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AE=Ta(OE),jE=Xe({},So,{data:0}),Vh=Ta(jE),NE=Vh,UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HE={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 zE(e){if(e.key){var t=UE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=ys(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?HE[e.keyCode]||"Unidentified":""}var PE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=PE[e];return a?!!n[a]:!1}function Sd(e){return VE}var FE=Xe({},Hl,{key:zE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=Ta(FE),$E=Xe({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=Ta($E),YE=Xe({},Hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),IE=Ta(YE),WE=Xe({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),qE=Ta(WE),GE=Xe({},bs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),XE=Ta(GE),QE=[9,13,27,32],Bh=229,Td=H&&"CompositionEvent"in window,Pl=null;H&&"documentMode"in document&&(Pl=document.documentMode);var KE=H&&"TextEvent"in window&&!Pl,$h=H&&(!Td||Pl&&Pl>8&&Pl<=11),Yh=32,Ih=String.fromCharCode(Yh);function ZE(){on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),on("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),on("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Wh=!1;function JE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function eC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function tC(e,t){return e==="keydown"&&t.keyCode===Bh}function qh(e,t){switch(e){case"keyup":return QE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Bh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Xh(e){return e.locale==="ko"}var To=!1;function nC(e,t,n,a,r){var i,o;if(Td?i=eC(t):To?qh(t,a)&&(i="onCompositionEnd"):tC(t,a)&&(i="onCompositionStart"),!i)return null;$h&&!Xh(a)&&(!To&&i==="onCompositionStart"?To=CE(r):i==="onCompositionEnd"&&To&&(o=Uh()));var l=xs(n,i);if(l.length>0){var u=new Vh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var c=Gh(a);c!==null&&(u.data=c)}}}function aC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":var n=t.which;return n!==Yh?null:(Wh=!0,Ih);case"textInput":var a=t.data;return a===Ih&&Wh?null:a;default:return null}}function rC(e,t){if(To){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return xE(),To=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!JE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $h&&!Xh(t)?null:t.data;default:return null}}function iC(e,t,n,a,r){var i;if(KE?i=aC(t,a):i=rC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new NE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function oC(e,t,n,a,r,i,o){nC(e,t,n,a,r),iC(e,t,n,a,r)}var lC={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lC[e.type]:t==="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 uC(e){if(!H)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function sC(){on("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Kh(e,t,n,a){qm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Vl=null,Fl=null;function cC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function fC(e){var t=[];Kh(t,Fl,e,Sf(e)),Km(dC,t)}function dC(e){my(e,0)}function Ss(e){var t=Do(e);if(cl(t))return e}function vC(e,t){if(e==="change")return t}var Zh=!1;H&&(Zh=uC("input")&&(!document.documentMode||document.documentMode>9));function pC(e,t){Vl=e,Fl=t,Vl.attachEvent("onpropertychange",ey)}function Jh(){Vl&&(Vl.detachEvent("onpropertychange",ey),Vl=null,Fl=null)}function ey(e){e.propertyName==="value"&&Ss(Fl)&&fC(e)}function mC(e,t,n){e==="focusin"?(Jh(),pC(t,n)):e==="focusout"&&Jh()}function hC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(Fl)}function yC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function gC(e,t){if(e==="click")return Ss(t)}function bC(e,t){if(e==="input"||e==="change")return Ss(t)}function SC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ne(e,"number",e.value)}function TC(e,t,n,a,r,i,o){var l=n?Do(n):window,u,c;if(cC(l)?u=vC:Qh(l)?Zh?u=bC:(u=hC,c=mC):yC(l)&&(u=gC),u){var d=u(t,n);if(d){Kh(e,d,a,r);return}}c&&c(t,l,n),t==="focusout"&&SC(l)}function EC(){mn("onMouseEnter",["mouseout","mouseover"]),mn("onMouseLeave",["mouseout","mouseover"]),mn("onPointerEnter",["pointerout","pointerover"]),mn("onPointerLeave",["pointerout","pointerover"])}function CC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!FS(a)){var c=a.relatedTarget||a.fromElement;if(c&&(Ai(c)||nu(c)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var y=r.ownerDocument;y?d=y.defaultView||y.parentWindow:d=window}var h,_;if(u){var k=a.relatedTarget||a.toElement;if(h=n,_=k?Ai(k):null,_!==null){var j=wi(_);(_!==j||_.tag!==oe&&_.tag!==Be)&&(_=null)}}else h=null,_=n;if(h!==_){var ue=Ph,ke="onMouseLeave",Ce="onMouseEnter",pt="mouse";(t==="pointerout"||t==="pointerover")&&(ue=Fh,ke="onPointerLeave",Ce="onPointerEnter",pt="pointer");var rt=h==null?d:Do(h),w=_==null?d:Do(_),N=new ue(ke,pt+"leave",h,a,r);N.target=rt,N.relatedTarget=w;var R=null,$=Ai(r);if($===n){var me=new ue(Ce,pt+"enter",_,a,r);me.target=w,me.relatedTarget=rt,R=me}qC(e,N,R,h,_)}}}function xC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ea=typeof Object.is=="function"?Object.is:xC;function Bl(e,t){if(Ea(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!te.call(t,i)||!Ea(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ny(e,t){for(var n=ty(e),a=0,r=0;n;){if(n.nodeType===gr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(wC(n))}}function RC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return DC(e,r,i,o,l)}function DC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,c=0,d=e,y=null;e:for(;;){for(var h=null;d===t&&(n===0||d.nodeType===gr)&&(o=i+n),d===a&&(r===0||d.nodeType===gr)&&(l=i+r),d.nodeType===gr&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)y=d,d=h;for(;;){if(d===e)break e;if(y===t&&++u===n&&(o=i),y===a&&++c===r&&(l=i),(h=d.nextSibling)!==null)break;d=y,y=d.parentNode}d=h}return o===-1||l===-1?null:{start:o,end:l}}function _C(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var c=ny(e,o),d=ny(e,l);if(c&&d){if(r.rangeCount===1&&r.anchorNode===c.node&&r.anchorOffset===c.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var y=n.createRange();y.setStart(c.node,c.offset),r.removeAllRanges(),o>l?(r.addRange(y),r.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),r.addRange(y))}}}function ay(e){return e&&e.nodeType===gr}function ry(e,t){return!e||!t?!1:e===t?!0:ay(e)?!1:ay(t)?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function MC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function LC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=mr();t instanceof e.HTMLIFrameElement;){if(LC(t))e=t.contentWindow;else return t;t=mr(e.document)}return t}function Ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kC(){var e=iy();return{focusedElem:e,selectionRange:Ed(e)?AC(e):null}}function OC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&MC(n)){a!==null&&Ed(n)&&jC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ca&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function AC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=RC(e),t||{start:0,end:0}}function jC(e,t){var n=t.start,a=t.end;a===void 0&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):_C(e,t)}var NC=H&&"documentMode"in document&&document.documentMode<=11;function UC(){on("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Eo=null,Cd=null,$l=null,xd=!1;function HC(e){if("selectionStart"in e&&Ed(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function zC(e){return e.window===e?e.document:e.nodeType===br?e:e.ownerDocument}function oy(e,t,n){var a=zC(n);if(!(xd||Eo==null||Eo!==mr(a))){var r=HC(Eo);if(!$l||!Bl($l,r)){$l=r;var i=xs(Cd,"onSelect");if(i.length>0){var o=new hd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Eo}}}}function PC(e,t,n,a,r,i,o){var l=n?Do(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(Eo=l,Cd=n,$l=null);break;case"focusout":Eo=null,Cd=null,$l=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,oy(e,a,r);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":oy(e,a,r)}}function Ts(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Co={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},wd={},ly={};H&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete Co.animationend.animation,delete Co.animationiteration.animation,delete Co.animationstart.animation),"TransitionEvent"in window||delete Co.transitionend.transition);function Es(e){if(wd[e])return wd[e];if(!Co[e])return e;var t=Co[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ly)return wd[e]=t[n];return e}var uy=Es("animationend"),sy=Es("animationiteration"),cy=Es("animationstart"),fy=Es("transitionend"),dy=new Map,vy=["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 qr(e,t){dy.set(e,t),on(t,[e])}function VC(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);qr(n,"on"+a)}qr(uy,"onAnimationEnd"),qr(sy,"onAnimationIteration"),qr(cy,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(fy,"onTransitionEnd")}function FC(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,c=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":c="focus",u=bd;break;case"focusout":c="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Ph;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=_E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=IE;break;case uy:case sy:case cy:u=kE;break;case fy:u=qE;break;case"scroll":u=wE;break;case"wheel":u=XE;break;case"copy":case"cut":case"paste":u=AE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fh;break}var d=(i&hl)!==0;{var y=!d&&t==="scroll",h=IC(n,l,a.type,d,y);if(h.length>0){var _=new u(l,c,null,a,r);e.push({event:_,listeners:h})}}}}VC(),EC(),sC(),UC(),ZE();function BC(e,t,n,a,r,i,o){FC(e,t,n,a,r,i);var l=(i&zS)===0;l&&(CC(e,t,n,a,r),TC(e,t,n,a,r),PC(e,t,n,a,r),oC(e,t,n,a,r))}var Yl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Rd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Yl));function py(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,QS(a,t,void 0,e),e.currentTarget=null}function $C(e,t,n){var a;if(n)for(var r=t.length-1;r>=0;r--){var i=t[r],o=i.instance,l=i.currentTarget,u=i.listener;if(o!==a&&e.isPropagationStopped())return;py(e,u,l),a=o}else for(var c=0;c<t.length;c++){var d=t[c],y=d.instance,h=d.currentTarget,_=d.listener;if(y!==a&&e.isPropagationStopped())return;py(e,_,h),a=y}}function my(e,t){for(var n=(t&hl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}KS()}function YC(e,t,n,a,r){var i=Sf(n),o=[];BC(o,e,a,n,i,t),my(o,t)}function en(e,t){Rd.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=S1(t),r=GC(e);a.has(r)||(hy(t,e,bf,n),a.add(r))}function Dd(e,t,n){Rd.has(e)&&!t&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=hl),hy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Il(e){if(!e[Cs]){e[Cs]=!0,lt.forEach(function(n){n!=="selectionchange"&&(Rd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===br?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=mE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?TE(e,t,i,o):SE(e,t,i):o!==void 0?EE(e,t,i,o):bE(e,t,i)}function yy(e,t){return e===t||e.nodeType===gn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Im)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===W||u===D){var c=l.stateNode.containerInfo;if(yy(c,o))break;if(u===D)for(var d=l.return;d!==null;){var y=d.tag;if(y===W||y===D){var h=d.stateNode.containerInfo;if(yy(h,o))return}d=d.return}for(;c!==null;){var _=Ai(c);if(_===null)return;var k=_.tag;if(k===oe||k===Be){l=i=_;continue e}c=c.parentNode}}l=l.return}}}Km(function(){return YC(e,t,n,i)})}function Wl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],c=e,d=null;c!==null;){var y=c,h=y.stateNode,_=y.tag;if(_===oe&&h!==null&&(d=h,l!==null)){var k=gl(c,l);k!=null&&u.push(Wl(c,k,d))}if(r)break;c=c.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===oe&&o!==null){var u=o,c=gl(r,n);c!=null&&a.unshift(Wl(r,c,u));var d=gl(r,t);d!=null&&a.push(Wl(r,d,u))}r=r.return}return a}function xo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==oe);return e||null}function WC(e,t){for(var n=e,a=t,r=0,i=n;i;i=xo(i))r++;for(var o=0,l=a;l;l=xo(l))o++;for(;r-o>0;)n=xo(n),r--;for(;o-r>0;)a=xo(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=xo(n),a=xo(a)}return null}function gy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,c=u.alternate,d=u.stateNode,y=u.tag;if(c!==null&&c===a)break;if(y===oe&&d!==null){var h=d;if(r){var _=gl(l,i);_!=null&&o.unshift(Wl(l,_,h))}else if(!r){var k=gl(l,i);k!=null&&o.push(Wl(l,k,h))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function qC(e,t,n,a,r){var i=a&&r?WC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function GC(e,t){return e+"__bubble"}var fa=!1,ql="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",Gr="suppressHydrationWarning",by="autoFocus",ki="children",Oi="style",Rs="__html",Md,Ds,Gl,Sy,_s,Ty,Ey;Md={dialog:!0,webview:!0},Ds=function(e,t){kS(e,t),OS(e,t),HS(e,t,{registrationNameDependencies:rn,possibleRegistrationNames:Yn})},Ty=H&&!document.documentMode,Gl=function(e,t,n){if(!fa){var a=Ms(n),r=Ms(t);r!==a&&(fa=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!fa){fa=!0;var t=[];e.forEach(function(n){t.push(n)}),f("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?f("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.",e,e,e):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Ey=function(e,t){var n=e.namespaceURI===yr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var XC=/\r\n?/g,QC=/\u0000|\uFFFD/g;function Ms(e){Wt(e);var t=typeof e=="string"?e:""+e;return t.replace(XC,`
`).replace(QC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(fa||(fa=!0,f('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===br?e:e.ownerDocument}function KC(){}function ks(e){e.onclick=KC}function ZC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Oi)o&&Object.freeze(o),Pm(t,o);else if(i===ql){var l=o?o[Rs]:void 0;l!=null&&jm(t,l)}else if(i===ki)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===ws||i===Gr||i===by||(rn.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&en("scroll",t)):o!=null&&E(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Oi?Pm(e,o):i===ql?jm(e,o):i===ki?Ju(e,o):E(e,i,o,a)}}function ex(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===yr&&(l=vf(e)),l===yr){if(r=gi(e,t),!r&&e!==e.toLowerCase()&&f("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;o=u.removeChild(c)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===yr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!te.call(Md,e)&&(Md[e]=!0,f("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function tx(e,t){return Cy(t).createTextNode(e)}function nx(e,t,n,a){var r=gi(t,n);Ds(t,n);var i;switch(t){case"dialog":en("cancel",e),en("close",e),i=n;break;case"iframe":case"object":case"embed":en("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Yl.length;o++)en(Yl[o],e);i=n;break;case"source":en("error",e),i=n;break;case"img":case"image":case"link":en("error",e),en("load",e),i=n;break;case"details":en("toggle",e),i=n;break;case"input":Qu(e,n),i=fl(e,n),en("invalid",e);break;case"option":jt(e,n),i=n;break;case"select":pl(e,n),i=vl(e,n),en("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),en("invalid",e);break;default:i=n}switch(gf(t,i),ZC(t,e,a,i,r),t){case"input":hi(e),L(e,n,!1);break;case"textarea":hi(e),Am(e);break;case"option":qt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&ks(e);break}}function ax(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=fl(e,n),l=fl(e,a),i=[];break;case"select":o=vl(e,n),l=vl(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&ks(e);break}gf(t,l);var u,c,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Oi){var y=o[u];for(c in y)y.hasOwnProperty(c)&&(d||(d={}),d[c]="")}else u===ql||u===ki||u===ws||u===Gr||u===by||(rn.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var h=l[u],_=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||h===_||h==null&&_==null))if(u===Oi)if(h&&Object.freeze(h),_){for(c in _)_.hasOwnProperty(c)&&(!h||!h.hasOwnProperty(c))&&(d||(d={}),d[c]="");for(c in h)h.hasOwnProperty(c)&&_[c]!==h[c]&&(d||(d={}),d[c]=h[c])}else d||(i||(i=[]),i.push(u,d)),d=h;else if(u===ql){var k=h?h[Rs]:void 0,j=_?_[Rs]:void 0;k!=null&&j!==k&&(i=i||[]).push(u,k)}else u===ki?(typeof h=="string"||typeof h=="number")&&(i=i||[]).push(u,""+h):u===ws||u===Gr||(rn.hasOwnProperty(u)?(h!=null&&(typeof h!="function"&&_s(u,h),u==="onScroll"&&en("scroll",e)),!i&&_!==h&&(i=[])):(i=i||[]).push(u,h))}return d&&(CS(d,l[Oi]),(i=i||[]).push(Oi,d)),i}function rx(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=gi(n,a),o=gi(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function ix(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ox(e,t,n,a,r,i,o){var l,u;switch(l=gi(t,n),Ds(t,n),t){case"dialog":en("cancel",e),en("close",e);break;case"iframe":case"object":case"embed":en("load",e);break;case"video":case"audio":for(var c=0;c<Yl.length;c++)en(Yl[c],e);break;case"source":en("error",e);break;case"img":case"image":case"link":en("error",e),en("load",e);break;case"details":en("toggle",e);break;case"input":Qu(e,n),en("invalid",e);break;case"option":jt(e,n);break;case"select":pl(e,n),en("invalid",e);break;case"textarea":km(e,n),en("invalid",e);break}gf(t,n);{u=new Set;for(var d=e.attributes,y=0;y<d.length;y++){var h=d[y].name.toLowerCase();switch(h){case"value":break;case"checked":break;case"selected":break;default:u.add(d[y].name)}}}var _=null;for(var k in n)if(n.hasOwnProperty(k)){var j=n[k];if(k===ki)typeof j=="string"?e.textContent!==j&&(n[Gr]!==!0&&Ls(e.textContent,j,i,o),_=[ki,j]):typeof j=="number"&&e.textContent!==""+j&&(n[Gr]!==!0&&Ls(e.textContent,j,i,o),_=[ki,""+j]);else if(rn.hasOwnProperty(k))j!=null&&(typeof j!="function"&&_s(k,j),k==="onScroll"&&en("scroll",e));else if(o&&typeof l=="boolean"){var ue=void 0,ke=Pt(k);if(n[Gr]!==!0){if(!(k===ws||k===Gr||k==="value"||k==="checked"||k==="selected")){if(k===ql){var Ce=e.innerHTML,pt=j?j[Rs]:void 0;if(pt!=null){var rt=Ey(e,pt);rt!==Ce&&Gl(k,Ce,rt)}}else if(k===Oi){if(u.delete(k),Ty){var w=TS(j);ue=e.getAttribute("style"),w!==ue&&Gl(k,ue,w)}}else if(l)u.delete(k.toLowerCase()),ue=C(e,k,j),j!==ue&&Gl(k,ue,j);else if(!Jt(k,ke,l)&&!_n(k,j,ke,l)){var N=!1;if(ke!==null)u.delete(ke.attributeName),ue=U(e,k,j,ke);else{var R=a;if(R===yr&&(R=vf(t)),R===yr)u.delete(k.toLowerCase());else{var $=ix(k);$!==null&&$!==k&&(N=!0,u.delete($)),u.delete(k)}ue=C(e,k,j)}var me=Qe;!me&&j!==ue&&!N&&Gl(k,ue,j)}}}}}switch(o&&u.size>0&&n[Gr]!==!0&&Sy(u),t){case"input":hi(e),L(e,n,!0);break;case"textarea":hi(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&ks(e);break}return _}function lx(e,t,n){var a=e.nodeValue!==t;return a}function Ld(e,t){{if(fa)return;fa=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(fa)return;fa=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(fa)return;fa=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||fa)return;fa=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function ux(e,t,n){switch(t){case"input":A(e,n);return;case"textarea":nS(e,n);return;case"select":cf(e,n);return}}var Xl=function(){},Ql=function(){};{var sx=["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"],xy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],cx=xy.concat(["button"]),fx=["dd","dt","li","option","optgroup","p","rp","rt"],wy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Ql=function(e,t){var n=Xe({},e||wy),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),cx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),sx.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),n};var dx=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return fx.indexOf(t)===-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 t==null}return!0},vx=function(e,t){switch(e){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},Ry={};Xl=function(e,t,n){n=n||wy;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=dx(e,r)?null:a,o=i?null:vx(e,n),l=i||o;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!Ry[c]){Ry[c]=!0;var d=e,y="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",y=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var h="";u==="table"&&e==="tr"&&(h+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,y,h)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var Os="suppressHydrationWarning",As="$",js="/$",Kl="$?",Zl="$!",px="style",jd=null,Nd=null;function mx(e){var t,n,a=e.nodeType;switch(a){case br:case mf:{t=a===br?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===gn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Ql(null,l);return{namespace:n,ancestorInfo:u}}}function hx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Ql(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function h_(e){return e}function yx(e){jd=pE(),Nd=kC();var t=null;return jh(!1),t}function gx(e){OC(Nd),jh(jd),jd=null,Nd=null}function bx(e,t,n,a,r){var i;{var o=a;if(Xl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Ql(o.ancestorInfo,e);Xl(null,l,u)}i=o.namespace}var c=ex(e,t,n,i);return tu(r,c),$d(c,t),c}function Sx(e,t){e.appendChild(t)}function Tx(e,t,n,a,r){switch(nx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Ex(e,t,n,a,r,i){{var o=i;if(typeof a.children!=typeof n.children&&(typeof a.children=="string"||typeof a.children=="number")){var l=""+a.children,u=Ql(o.ancestorInfo,t);Xl(null,l,u)}}return ax(e,t,n,a)}function Ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Cx(e,t,n,a){{var r=n;Xl(null,e,r.ancestorInfo)}var i=tx(e,t);return tu(a,i),i}function xx(){var e=window.event;return e===void 0?Cr:Nh(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Dy=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(Dx)}:Hd;function Dx(e){setTimeout(function(){throw e})}function _x(e,t,n,a){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function Mx(e,t,n,a,r,i){rx(e,t,n,a,r),$d(e,r)}function _y(e){Ju(e,"")}function Lx(e,t,n){e.nodeValue=n}function kx(e,t){e.appendChild(t)}function Ox(e,t){var n;e.nodeType===gn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&ks(n)}function Ax(e,t,n){e.insertBefore(t,n)}function jx(e,t,n){e.nodeType===gn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function Ux(e,t){e.nodeType===gn?e.parentNode.removeChild(t):e.removeChild(t)}function Pd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===gn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),jl(t);return}else a--;else(i===As||i===Kl||i===Zl)&&a++}n=r}while(n);jl(t)}function Hx(e,t){e.nodeType===gn?Pd(e.parentNode,t):e.nodeType===ca&&Pd(e,t),jl(e)}function zx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Px(e){e.nodeValue=""}function Vx(e,t){e=e;var n=t[px],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Fx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===ca?e.textContent="":e.nodeType===br&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==ca||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Yx(e,t){return t===""||e.nodeType!==gr?null:e}function Ix(e){return e.nodeType!==gn?null:e}function My(e){return e.data===Kl}function Vd(e){return e.data===Zl}function Wx(e){var t=e.nextSibling&&e.nextSibling.dataset,n,a,r;return t&&(n=t.dgst,a=t.msg,r=t.stck),{message:a,digest:n,stack:r}}function qx(e,t){e._reactRetry=t}function Ns(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ca||t===gr)break;if(t===gn){var n=e.data;if(n===As||n===Zl||n===Kl)break;if(n===js)return null}}return e}function Jl(e){return Ns(e.nextSibling)}function Gx(e){return Ns(e.firstChild)}function Xx(e){return Ns(e.firstChild)}function Qx(e){return Ns(e.nextSibling)}function Kx(e,t,n,a,r,i,o){tu(i,e),$d(e,n);var l;{var u=r;l=u.namespace}var c=(i.mode&dt)!==je;return ox(e,t,n,l,a,c,o)}function Zx(e,t,n,a){return tu(n,e),n.mode&dt,lx(e,t)}function Jx(e,t){tu(t,e)}function e1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===gn){var a=t.data;if(a===js){if(n===0)return Jl(t);n--}else(a===As||a===Zl||a===Kl)&&n++}t=t.nextSibling}return null}function Ly(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===gn){var a=t.data;if(a===As||a===Zl||a===Kl){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function t1(e){jl(e)}function n1(e){jl(e)}function a1(e){return e!=="head"&&e!=="body"}function r1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function i1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function o1(e,t){t.nodeType===ca?Ld(e,t):t.nodeType===gn||kd(e,t)}function l1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ca?Ld(n,t):t.nodeType===gn||kd(n,t))}}function u1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===ca?Ld(n,a):a.nodeType===gn||kd(n,a))}function s1(e,t,n){Od(e,t)}function c1(e,t){Ad(e,t)}function f1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function d1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function v1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function p1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function m1(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function h1(e){Il(e)}var wo=Math.random().toString(36).slice(2),Ro="__reactFiber$"+wo,Fd="__reactProps$"+wo,eu="__reactContainer$"+wo,Bd="__reactEvents$"+wo,y1="__reactListeners$"+wo,g1="__reactHandles$"+wo;function b1(e){delete e[Ro],delete e[Fd],delete e[Bd],delete e[y1],delete e[g1]}function tu(e,t){t[Ro]=e}function Us(e,t){t[eu]=e}function ky(e){e[eu]=null}function nu(e){return!!e[eu]}function Ai(e){var t=e[Ro];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eu]||n[Ro],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=Ly(e);r!==null;){var i=r[Ro];if(i)return i;r=Ly(r)}return t}e=n,n=e.parentNode}return null}function Xr(e){var t=e[Ro]||e[eu];return t&&(t.tag===oe||t.tag===Be||t.tag===_e||t.tag===W)?t:null}function Do(e){if(e.tag===oe||e.tag===Be)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Fd]||null}function $d(e,t){e[Fd]=t}function S1(e){var t=e[Bd];return t===void 0&&(t=e[Bd]=new Set),t}var Oy={},Ay=he.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=il(e.type,e._source,t?t.type:null);Ay.setExtraStackFrame(n)}else Ay.setExtraStackFrame(null)}function Fa(e,t,n,a,r){{var i=Function.call.bind(te);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){l=c}l&&!(l instanceof Error)&&(zs(r),f("%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).",a||"React class",n,o,typeof l),zs(null)),l instanceof Error&&!(l.message in Oy)&&(Oy[l.message]=!0,zs(r),f("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Ps;Ps=[];var xr=-1;function Qr(e){return{current:e}}function qn(e,t){if(xr<0){f("Unexpected pop.");return}t!==Ps[xr]&&f("Unexpected Fiber popped."),e.current=Yd[xr],Yd[xr]=null,Ps[xr]=null,xr--}function Gn(e,t,n){xr++,Yd[xr]=e.current,Ps[xr]=n,e.current=t}var Id;Id={};var Ca={};Object.freeze(Ca);var wr=Qr(Ca),ar=Qr(!1),Wd=Ca;function _o(e,t,n){return n&&rr(t)?Wd:wr.current}function jy(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function Mo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in a)i[o]=t[o];{var l=Ge(e)||"Unknown";Fa(a,i,"context",l)}return r&&jy(e,t,i),i}}function Vs(){return ar.current}function rr(e){{var t=e.childContextTypes;return t!=null}}function Fs(e){qn(ar,e),qn(wr,e)}function qd(e){qn(ar,e),qn(wr,e)}function Ny(e,t,n){{if(wr.current!==Ca)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Gn(wr,t,e),Gn(ar,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ge(e)||"Unknown";Id[i]||(Id[i]=!0,f("%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.",i,i))}return n}var o=a.getChildContext();for(var l in o)if(!(l in r))throw new Error((Ge(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ge(e)||"Unknown";Fa(r,o,"child context",u)}return Xe({},n,o)}}function Bs(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ca;return Wd=wr.current,Gn(wr,n,e),Gn(ar,ar.current,e),!0}}function Hy(e,t,n){{var a=e.stateNode;if(!a)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(n){var r=Uy(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,qn(ar,e),qn(wr,e),Gn(wr,r,e),Gn(ar,n,e)}else qn(ar,e),Gn(ar,n,e)}}function T1(e){{if(!aT(e)||e.tag!==se)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 t=e;do{switch(t.tag){case W:return t.stateNode.context;case se:{var n=t.type;if(rr(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Kr=0,$s=1,Rr=null,Gd=!1,Xd=!1;function zy(e){Rr===null?Rr=[e]:Rr.push(e)}function E1(e){Gd=!0,zy(e)}function Py(){Gd&&Zr()}function Zr(){if(!Xd&&Rr!==null){Xd=!0;var e=0,t=Va();try{var n=!0,a=Rr;for(jn(Sa);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Rr=null,Gd=!1}catch(i){throw Rr!==null&&(Rr=Rr.slice(e+1)),sh(is,Zr),i}finally{jn(t),Xd=!1}}return null}var Lo=[],ko=0,Ys=null,Is=0,_a=[],Ma=0,ji=null,Dr=1,_r="";function C1(e){return Ui(),(e.flags&th)!==Ue}function x1(e){return Ui(),Is}function w1(){var e=_r,t=Dr,n=t&~R1(t);return n.toString(32)+e}function Ni(e,t){Ui(),Lo[ko++]=Is,Lo[ko++]=Ys,Ys=e,Is=t}function Vy(e,t,n){Ui(),_a[Ma++]=Dr,_a[Ma++]=_r,_a[Ma++]=ji,ji=e;var a=Dr,r=_r,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var c=i-i%5,d=(1<<c)-1,y=(o&d).toString(32),h=o>>c,_=i-c,k=Ws(t)+_,j=l<<_,ue=j|h,ke=y+r;Dr=1<<k|ue,_r=ke}else{var Ce=l<<i,pt=Ce|o,rt=r;Dr=1<<u|pt,_r=rt}}function Qd(e){Ui();var t=e.return;if(t!==null){var n=1,a=0;Ni(e,n),Vy(e,n,a)}}function Ws(e){return 32-mh(e)}function R1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=Lo[--ko],Lo[ko]=null,Is=Lo[--ko],Lo[ko]=null;for(;e===ji;)ji=_a[--Ma],_a[Ma]=null,_r=_a[--Ma],_a[Ma]=null,Dr=_a[--Ma],_a[Ma]=null}function D1(){return Ui(),ji!==null?{id:Dr,overflow:_r}:null}function _1(e,t){Ui(),_a[Ma++]=Dr,_a[Ma++]=_r,_a[Ma++]=ji,Dr=t.id,_r=t.overflow,ji=e}function Ui(){Un()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Nn=null,La=null,Ba=!1,Hi=!1,Jr=null;function M1(){Ba&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Fy(){Hi=!0}function L1(){return Hi}function k1(e){var t=e.stateNode.containerInfo;return La=Xx(t),Nn=e,Ba=!0,Jr=null,Hi=!1,!0}function O1(e,t,n){return La=Qx(t),Nn=e,Ba=!0,Jr=null,Hi=!1,n!==null&&_1(e,n),!0}function By(e,t){switch(e.tag){case W:{o1(e.stateNode.containerInfo,t);break}case oe:{var n=(e.mode&dt)!==je;u1(e.type,e.memoizedProps,e.stateNode,t,n);break}case _e:{var a=e.memoizedState;a.dehydrated!==null&&l1(a.dehydrated,t);break}}}function $y(e,t){By(e,t);var n=UD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=bi):a.push(n)}function Zd(e,t){{if(Hi)return;switch(e.tag){case W:{var n=e.stateNode.containerInfo;switch(t.tag){case oe:var a=t.type;t.pendingProps,s1(n,a);break;case Be:var r=t.pendingProps;c1(n,r);break}break}case oe:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case oe:{var u=t.type,c=t.pendingProps,d=(e.mode&dt)!==je;v1(i,o,l,u,c,d);break}case Be:{var y=t.pendingProps,h=(e.mode&dt)!==je;p1(i,o,l,y,h);break}}break}case _e:{var _=e.memoizedState,k=_.dehydrated;if(k!==null)switch(t.tag){case oe:var j=t.type;t.pendingProps,f1(k,j);break;case Be:var ue=t.pendingProps;d1(k,ue);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|Ln,Zd(e,t)}function Iy(e,t){switch(e.tag){case oe:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,Nn=e,La=Gx(a),!0):!1}case Be:{var r=e.pendingProps,i=Yx(t,r);return i!==null?(e.stateNode=i,Nn=e,La=null,!0):!1}case _e:{var o=Ix(t);if(o!==null){var l={dehydrated:o,treeContext:D1(),retryLane:Da};e.memoizedState=l;var u=HD(o);return u.return=e,e.child=u,Nn=e,La=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&dt)!==je&&(e.flags&Mt)===Ue}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Ba){var t=La;if(!t){Jd(e)&&(Zd(Nn,e),ev()),Yy(Nn,e),Ba=!1,Nn=e;return}var n=t;if(!Iy(e,t)){Jd(e)&&(Zd(Nn,e),ev()),t=Jl(n);var a=Nn;if(!t||!Iy(e,t)){Yy(Nn,e),Ba=!1,Nn=e;return}$y(a,n)}}}function A1(e,t,n){var a=e.stateNode,r=!Hi,i=Kx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function j1(e){var t=e.stateNode,n=e.memoizedProps,a=Zx(t,n,e);if(a){var r=Nn;if(r!==null)switch(r.tag){case W:{var i=r.stateNode.containerInfo,o=(r.mode&dt)!==je;r1(i,t,n,o);break}case oe:{var l=r.type,u=r.memoizedProps,c=r.stateNode,d=(r.mode&dt)!==je;i1(l,u,c,t,n,d);break}}}return a}function N1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Jx(n,e)}function U1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)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 e1(n)}function Wy(e){for(var t=e.return;t!==null&&t.tag!==oe&&t.tag!==W&&t.tag!==_e;)t=t.return;Nn=t}function qs(e){if(e!==Nn)return!1;if(!Ba)return Wy(e),Ba=!0,!1;if(e.tag!==W&&(e.tag!==oe||a1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=La;if(t)if(Jd(e))qy(e),ev();else for(;t;)$y(e,t),t=Jl(t)}return Wy(e),e.tag===_e?La=U1(e):La=Nn?Jl(e.stateNode):null,!0}function H1(){return Ba&&La!==null}function qy(e){for(var t=La;t;)By(e,t),t=Jl(t)}function Oo(){Nn=null,La=null,Ba=!1,Hi=!1}function Gy(){Jr!==null&&(Fb(Jr),Jr=null)}function Un(){return Ba}function nv(e){Jr===null?Jr=[e]:Jr.push(e)}var z1=he.ReactCurrentBatchConfig,P1=null;function V1(){return z1.transition}var $a={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var F1=function(e){for(var t=null,n=e;n!==null;)n.mode&sn&&(t=n),n=n.return;return t},zi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},au=[],ru=[],iu=[],ou=[],lu=[],uu=[],Pi=new Set;$a.recordUnsafeLifecycleWarnings=function(e,t){Pi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&au.push(e),e.mode&sn&&typeof t.UNSAFE_componentWillMount=="function"&&ru.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&iu.push(e),e.mode&sn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&ou.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&sn&&typeof t.UNSAFE_componentWillUpdate=="function"&&uu.push(e))},$a.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;au.length>0&&(au.forEach(function(h){e.add(Ge(h)||"Component"),Pi.add(h.type)}),au=[]);var t=new Set;ru.length>0&&(ru.forEach(function(h){t.add(Ge(h)||"Component"),Pi.add(h.type)}),ru=[]);var n=new Set;iu.length>0&&(iu.forEach(function(h){n.add(Ge(h)||"Component"),Pi.add(h.type)}),iu=[]);var a=new Set;ou.length>0&&(ou.forEach(function(h){a.add(Ge(h)||"Component"),Pi.add(h.type)}),ou=[]);var r=new Set;lu.length>0&&(lu.forEach(function(h){r.add(Ge(h)||"Component"),Pi.add(h.type)}),lu=[]);var i=new Set;if(uu.length>0&&(uu.forEach(function(h){i.add(Ge(h)||"Component"),Pi.add(h.type)}),uu=[]),t.size>0){var o=zi(t);f(`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`,o)}if(a.size>0){var l=zi(a);f(`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`,l)}if(i.size>0){var u=zi(i);f(`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`,u)}if(e.size>0){var c=zi(e);Oe(`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`,c)}if(n.size>0){var d=zi(n);Oe(`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`,d)}if(r.size>0){var y=zi(r);Oe(`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`,y)}};var Gs=new Map,Xy=new Set;$a.recordLegacyContextWarning=function(e,t){var n=F1(e);if(n===null){f("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(!Xy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},$a.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ge(i)||"Component"),Xy.add(i.type)});var r=zi(a);try{nn(n),f(`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`,r)}finally{Mn()}}})},$a.discardPendingWarnings=function(){au=[],ru=[],iu=[],ou=[],lu=[],uu=[],Gs=new Map}}var av,rv,iv,ov,lv,Qy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Qy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._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.");e._store.validated=!0;var n=Ge(t)||"Component";ov[n]||(ov[n]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function B1(e){return e.prototype&&e.prototype.isReactComponent}function su(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&sn||Qt)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==se)&&!(typeof n.type=="function"&&!B1(n.type))&&n._owner){var r=Ge(e)||"Component";iv[r]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==se)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;Je(a,"ref");var c=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var d=function(y){var h=u.refs;y===null?delete h[c]:h[c]=y};return d._stringRef=c,d}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) 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 a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Ge(e)||"Component";if(lv[t])return;lv[t]=!0,f("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 Ky(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(w,N){if(e){var R=w.deletions;R===null?(w.deletions=[N],w.flags|=bi):R.push(N)}}function n(w,N){if(!e)return null;for(var R=N;R!==null;)t(w,R),R=R.sibling;return null}function a(w,N){for(var R=new Map,$=N;$!==null;)$.key!==null?R.set($.key,$):R.set($.index,$),$=$.sibling;return R}function r(w,N){var R=Gi(w,N);return R.index=0,R.sibling=null,R}function i(w,N,R){if(w.index=R,!e)return w.flags|=th,N;var $=w.alternate;if($!==null){var me=$.index;return me<N?(w.flags|=Ln,N):me}else return w.flags|=Ln,N}function o(w){return e&&w.alternate===null&&(w.flags|=Ln),w}function l(w,N,R,$){if(N===null||N.tag!==Be){var me=nm(R,w.mode,$);return me.return=w,me}else{var fe=r(N,R);return fe.return=w,fe}}function u(w,N,R,$){var me=R.type;if(me===x)return d(w,N,R.props.children,$,R.key);if(N!==null&&(N.elementType===me||a0(N,R)||typeof me=="object"&&me!==null&&me.$$typeof===Ee&&Ky(me)===N.type)){var fe=r(N,R.props);return fe.ref=su(w,N,R),fe.return=w,fe._debugSource=R._source,fe._debugOwner=R._owner,fe}var Pe=tm(R,w.mode,$);return Pe.ref=su(w,N,R),Pe.return=w,Pe}function c(w,N,R,$){if(N===null||N.tag!==D||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation){var me=am(R,w.mode,$);return me.return=w,me}else{var fe=r(N,R.children||[]);return fe.return=w,fe}}function d(w,N,R,$,me){if(N===null||N.tag!==zt){var fe=ci(R,w.mode,$,me);return fe.return=w,fe}else{var Pe=r(N,R);return Pe.return=w,Pe}}function y(w,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"){var $=nm(""+N,w.mode,R);return $.return=w,$}if(typeof N=="object"&&N!==null){switch(N.$$typeof){case b:{var me=tm(N,w.mode,R);return me.ref=su(w,null,N),me.return=w,me}case O:{var fe=am(N,w.mode,R);return fe.return=w,fe}case Ee:{var Pe=N._payload,Ie=N._init;return y(w,Ie(Pe),R)}}if(at(N)||bt(N)){var Ht=ci(N,w.mode,R,null);return Ht.return=w,Ht}Xs(w,N)}return typeof N=="function"&&Qs(w),null}function h(w,N,R,$){var me=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return me!==null?null:l(w,N,""+R,$);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case b:return R.key===me?u(w,N,R,$):null;case O:return R.key===me?c(w,N,R,$):null;case Ee:{var fe=R._payload,Pe=R._init;return h(w,N,Pe(fe),$)}}if(at(R)||bt(R))return me!==null?null:d(w,N,R,$,null);Xs(w,R)}return typeof R=="function"&&Qs(w),null}function _(w,N,R,$,me){if(typeof $=="string"&&$!==""||typeof $=="number"){var fe=w.get(R)||null;return l(N,fe,""+$,me)}if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:{var Pe=w.get($.key===null?R:$.key)||null;return u(N,Pe,$,me)}case O:{var Ie=w.get($.key===null?R:$.key)||null;return c(N,Ie,$,me)}case Ee:var Ht=$._payload,St=$._init;return _(w,N,R,St(Ht),me)}if(at($)||bt($)){var pn=w.get(R)||null;return d(N,pn,$,me,null)}Xs(N,$)}return typeof $=="function"&&Qs(N),null}function k(w,N,R){{if(typeof w!="object"||w===null)return N;switch(w.$$typeof){case b:case O:Qy(w,R);var $=w.key;if(typeof $!="string")break;if(N===null){N=new Set,N.add($);break}if(!N.has($)){N.add($);break}f("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 — the behavior is unsupported and could change in a future version.",$);break;case Ee:var me=w._payload,fe=w._init;k(fe(me),N,R);break}}return N}function j(w,N,R,$){for(var me=null,fe=0;fe<R.length;fe++){var Pe=R[fe];me=k(Pe,me,w)}for(var Ie=null,Ht=null,St=N,pn=0,Tt=0,cn=null;St!==null&&Tt<R.length;Tt++){St.index>Tt?(cn=St,St=null):cn=St.sibling;var Qn=h(w,St,R[Tt],$);if(Qn===null){St===null&&(St=cn);break}e&&St&&Qn.alternate===null&&t(w,St),pn=i(Qn,pn,Tt),Ht===null?Ie=Qn:Ht.sibling=Qn,Ht=Qn,St=cn}if(Tt===R.length){if(n(w,St),Un()){var $n=Tt;Ni(w,$n)}return Ie}if(St===null){for(;Tt<R.length;Tt++){var wa=y(w,R[Tt],$);wa!==null&&(pn=i(wa,pn,Tt),Ht===null?Ie=wa:Ht.sibling=wa,Ht=wa)}if(Un()){var oa=Tt;Ni(w,oa)}return Ie}for(var la=a(w,St);Tt<R.length;Tt++){var Kn=_(la,w,Tt,R[Tt],$);Kn!==null&&(e&&Kn.alternate!==null&&la.delete(Kn.key===null?Tt:Kn.key),pn=i(Kn,pn,Tt),Ht===null?Ie=Kn:Ht.sibling=Kn,Ht=Kn)}if(e&&la.forEach(function(Ko){return t(w,Ko)}),Un()){var Nr=Tt;Ni(w,Nr)}return Ie}function ue(w,N,R,$){var me=bt(R);if(typeof me!="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"&&R[Symbol.toStringTag]==="Generator"&&(rv||f("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."),rv=!0),R.entries===me&&(av||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var fe=me.call(R);if(fe)for(var Pe=null,Ie=fe.next();!Ie.done;Ie=fe.next()){var Ht=Ie.value;Pe=k(Ht,Pe,w)}}var St=me.call(R);if(St==null)throw new Error("An iterable object provided no iterator.");for(var pn=null,Tt=null,cn=N,Qn=0,$n=0,wa=null,oa=St.next();cn!==null&&!oa.done;$n++,oa=St.next()){cn.index>$n?(wa=cn,cn=null):wa=cn.sibling;var la=h(w,cn,oa.value,$);if(la===null){cn===null&&(cn=wa);break}e&&cn&&la.alternate===null&&t(w,cn),Qn=i(la,Qn,$n),Tt===null?pn=la:Tt.sibling=la,Tt=la,cn=wa}if(oa.done){if(n(w,cn),Un()){var Kn=$n;Ni(w,Kn)}return pn}if(cn===null){for(;!oa.done;$n++,oa=St.next()){var Nr=y(w,oa.value,$);Nr!==null&&(Qn=i(Nr,Qn,$n),Tt===null?pn=Nr:Tt.sibling=Nr,Tt=Nr)}if(Un()){var Ko=$n;Ni(w,Ko)}return pn}for(var Fu=a(w,cn);!oa.done;$n++,oa=St.next()){var dr=_(Fu,w,$n,oa.value,$);dr!==null&&(e&&dr.alternate!==null&&Fu.delete(dr.key===null?$n:dr.key),Qn=i(dr,Qn,$n),Tt===null?pn=dr:Tt.sibling=dr,Tt=dr)}if(e&&Fu.forEach(function(p_){return t(w,p_)}),Un()){var v_=$n;Ni(w,v_)}return pn}function ke(w,N,R,$){if(N!==null&&N.tag===Be){n(w,N.sibling);var me=r(N,R);return me.return=w,me}n(w,N);var fe=nm(R,w.mode,$);return fe.return=w,fe}function Ce(w,N,R,$){for(var me=R.key,fe=N;fe!==null;){if(fe.key===me){var Pe=R.type;if(Pe===x){if(fe.tag===zt){n(w,fe.sibling);var Ie=r(fe,R.props.children);return Ie.return=w,Ie._debugSource=R._source,Ie._debugOwner=R._owner,Ie}}else if(fe.elementType===Pe||a0(fe,R)||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===Ee&&Ky(Pe)===fe.type){n(w,fe.sibling);var Ht=r(fe,R.props);return Ht.ref=su(w,fe,R),Ht.return=w,Ht._debugSource=R._source,Ht._debugOwner=R._owner,Ht}n(w,fe);break}else t(w,fe);fe=fe.sibling}if(R.type===x){var St=ci(R.props.children,w.mode,$,R.key);return St.return=w,St}else{var pn=tm(R,w.mode,$);return pn.ref=su(w,N,R),pn.return=w,pn}}function pt(w,N,R,$){for(var me=R.key,fe=N;fe!==null;){if(fe.key===me)if(fe.tag===D&&fe.stateNode.containerInfo===R.containerInfo&&fe.stateNode.implementation===R.implementation){n(w,fe.sibling);var Pe=r(fe,R.children||[]);return Pe.return=w,Pe}else{n(w,fe);break}else t(w,fe);fe=fe.sibling}var Ie=am(R,w.mode,$);return Ie.return=w,Ie}function rt(w,N,R,$){var me=typeof R=="object"&&R!==null&&R.type===x&&R.key===null;if(me&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case b:return o(Ce(w,N,R,$));case O:return o(pt(w,N,R,$));case Ee:var fe=R._payload,Pe=R._init;return rt(w,N,Pe(fe),$)}if(at(R))return j(w,N,R,$);if(bt(R))return ue(w,N,R,$);Xs(w,R)}return typeof R=="string"&&R!==""||typeof R=="number"?o(ke(w,N,""+R,$)):(typeof R=="function"&&Qs(w),n(w,N))}return rt}var Ao=Zy(!0),Jy=Zy(!1);function $1(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,a=Gi(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=Gi(n,n.pendingProps),a.return=t;a.sibling=null}}function Y1(e,t){for(var n=e.child;n!==null;)kD(n,t),n=n.sibling}var uv=Qr(null),sv;sv={};var Ks=null,jo=null,cv=null,Zs=!1;function Js(){Ks=null,jo=null,cv=null,Zs=!1}function eg(){Zs=!0}function tg(){Zs=!1}function ng(e,t,n){Gn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;qn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(go(a.childLanes,t)?r!==null&&!go(r.childLanes,t)&&(r.childLanes=tt(r.childLanes,t)):(a.childLanes=tt(a.childLanes,t),r!==null&&(r.childLanes=tt(r.childLanes,t))),a===n)break;a=a.return}a!==n&&f("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 I1(e,t,n){W1(e,t,n)}function W1(e,t,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=void 0,i=a.dependencies;if(i!==null){r=a.child;for(var o=i.firstContext;o!==null;){if(o.context===t){if(a.tag===se){var l=Dl(n),u=Mr(Xt,l);u.tag=tc;var c=a.updateQueue;if(c!==null){var d=c.shared,y=d.pending;y===null?u.next=u:(u.next=y.next,y.next=u),d.pending=u}}a.lanes=tt(a.lanes,n);var h=a.alternate;h!==null&&(h.lanes=tt(h.lanes,n)),dv(a.return,n,e),i.lanes=tt(i.lanes,n);break}o=o.next}}else if(a.tag===We)r=a.type===e.type?null:a.child;else if(a.tag===Bt){var _=a.return;if(_===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");_.lanes=tt(_.lanes,n);var k=_.alternate;k!==null&&(k.lanes=tt(k.lanes,n)),dv(_,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var j=r.sibling;if(j!==null){j.return=r.return,r=j;break}r=r.return}a=r}}function No(e,t){Ks=e,jo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(ba(n.lanes,t)&&xu(),n.firstContext=null)}}function bn(e){Zs&&f("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 t=e._currentValue;if(cv!==e){var n={context:e,memoizedValue:t,next:null};if(jo===null){if(Ks===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().");jo=n,Ks.dependencies={lanes:B,firstContext:n}}else jo=jo.next=n}return t}var Vi=null;function vv(e){Vi===null?Vi=[e]:Vi.push(e)}function q1(){if(Vi!==null){for(var e=0;e<Vi.length;e++){var t=Vi[e],n=t.interleaved;if(n!==null){t.interleaved=null;var a=n.next,r=t.pending;if(r!==null){var i=r.next;r.next=a,n.next=i}t.pending=n}}Vi=null}}function ag(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function G1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function X1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function da(e,t){return ec(e,t)}var Q1=ec;function ec(e,t){e.lanes=tt(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=tt(n.lanes,t)),n===null&&(e.flags&(Ln|Ei))!==Ue&&Jb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=tt(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=tt(n.childLanes,t):(r.flags&(Ln|Ei))!==Ue&&Jb(e),a=r,r=r.return;if(a.tag===W){var i=a.stateNode;return i}else return null}var rg=0,ig=1,tc=2,pv=3,nc=!1,mv,ac;mv=!1,ac=null;function hv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:B},effects:null};e.updateQueue=t}function og(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function Mr(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function ei(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(f("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."),mv=!0),GR()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Q1(e,n)}else return X1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(bh(n)){var i=r.lanes;i=Th(i,e.pendingLanes);var o=tt(i,n);r.lanes=o,ud(e,o)}}}function yv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var c={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=c:(o.next=c,o=c),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var d=n.lastBaseUpdate;d===null?n.firstBaseUpdate=t:d.next=t,n.lastBaseUpdate=t}function K1(e,t,n,a,r,i){switch(n.tag){case ig:{var o=n.payload;if(typeof o=="function"){eg();var l=o.call(i,a,r);{if(e.mode&sn){On(!0);try{o.call(i,a,r)}finally{On(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|Mt;case rg:{var u=n.payload,c;if(typeof u=="function"){eg(),c=u.call(i,a,r);{if(e.mode&sn){On(!0);try{u.call(i,a,r)}finally{On(!1)}}tg()}}else c=u;return c==null?a:Xe({},a,c)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;if(d!==null){var y=d.updateQueue,h=y.lastBaseUpdate;h!==o&&(h===null?y.firstBaseUpdate=c:h.next=c,y.lastBaseUpdate=u)}}if(i!==null){var _=r.baseState,k=B,j=null,ue=null,ke=null,Ce=i;do{var pt=Ce.lane,rt=Ce.eventTime;if(go(a,pt)){if(ke!==null){var N={eventTime:rt,lane:An,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null};ke=ke.next=N}_=K1(e,r,Ce,_,t,n);var R=Ce.callback;if(R!==null&&Ce.lane!==An){e.flags|=eh;var $=r.effects;$===null?r.effects=[Ce]:$.push(Ce)}}else{var w={eventTime:rt,lane:pt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null};ke===null?(ue=ke=w,j=_):ke=ke.next=w,k=tt(k,pt)}if(Ce=Ce.next,Ce===null){if(l=r.shared.pending,l===null)break;var me=l,fe=me.next;me.next=null,Ce=fe,r.lastBaseUpdate=me,r.shared.pending=null}}while(!0);ke===null&&(j=_),r.baseState=j,r.firstBaseUpdate=ue,r.lastBaseUpdate=ke;var Pe=r.shared.interleaved;if(Pe!==null){var Ie=Pe;do k=tt(k,Ie.lane),Ie=Ie.next;while(Ie!==Pe)}else i===null&&(r.shared.lanes=B);Uu(k),e.lanes=k,e.memoizedState=_}ac=null}function Z1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function lg(){nc=!1}function oc(){return nc}function ug(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,Z1(o,n))}}var cu={},ti=Qr(cu),fu=Qr(cu),lc=Qr(cu);function uc(e){if(e===cu)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function sg(){var e=uc(lc.current);return e}function gv(e,t){Gn(lc,t,e),Gn(fu,e,e),Gn(ti,cu,e);var n=mx(t);qn(ti,e),Gn(ti,n,e)}function Uo(e){qn(ti,e),qn(fu,e),qn(lc,e)}function bv(){var e=uc(ti.current);return e}function cg(e){uc(lc.current);var t=uc(ti.current),n=hx(t,e.type);t!==n&&(Gn(fu,e,e),Gn(ti,n,e))}function Sv(e){fu.current===e&&(qn(ti,e),qn(fu,e))}var J1=0,fg=1,dg=1,du=2,Ya=Qr(J1);function Tv(e,t){return(e&t)!==0}function Ho(e){return e&fg}function Ev(e,t){return e&fg|t}function ew(e,t){return e|t}function ni(e,t){Gn(Ya,t,e)}function zo(e){qn(Ya,e)}function tw(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function sc(e){for(var t=e;t!==null;){if(t.tag===_e){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||My(a)||Vd(a))return t}}else if(t.tag===He&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Mt)!==Ue;if(r)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=0,Sn=1,ir=2,Tn=4,Hn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function nw(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ve=he.ReactCurrentDispatcher,vu=he.ReactCurrentBatchConfig,wv,Po;wv=new Set;var Fi=B,Ut=null,En=null,Cn=null,cc=!1,pu=!1,mu=0,aw=0,rw=25,z=null,ka=null,ai=-1,Rv=!1;function Lt(){{var e=z;ka===null?ka=[e]:ka.push(e)}}function re(){{var e=z;ka!==null&&(ai++,ka[ai]!==e&&iw(e))}}function Vo(e){e!=null&&!at(e)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",z,typeof e)}function iw(e){{var t=Ge(Ut);if(!wv.has(t)&&(wv.add(t),ka!==null)){for(var n="",a=30,r=0;r<=ai;r++){for(var i=ka[r],o=r===ai?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}f(`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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,n)}}}function Xn(){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 Dv(e,t){if(Rv)return!1;if(t===null)return f("%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.",z),!1;e.length!==t.length&&f(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,z,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ea(e[n],t[n]))return!1;return!0}function Fo(e,t,n,a,r,i){Fi=i,Ut=t,ka=e!==null?e._debugHookTypes:null,ai=-1,Rv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=B,e!==null&&e.memoizedState!==null?ve.current=jg:ka!==null?ve.current=Ag:ve.current=Og;var o=n(a,r);if(pu){var l=0;do{if(pu=!1,mu=0,l>=rw)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Rv=!1,En=null,Cn=null,t.updateQueue=null,ai=-1,ve.current=Ng,o=n(a,r)}while(pu)}ve.current=Cc,t._debugHookTypes=ka;var u=En!==null&&En.next!==null;if(Fi=B,Ut=null,En=null,Cn=null,z=null,ka=null,ai=-1,e!==null&&(e.flags&Sr)!==(t.flags&Sr)&&(e.mode&dt)!==je&&f("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Bo(){var e=mu!==0;return mu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&tr)!==je?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(ve.current=Cc,cc){for(var e=Ut.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Fi=B,Ut=null,En=null,Cn=null,ka=null,ai=-1,z=null,Dg=!1,pu=!1,mu=0}function or(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Ut.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function Oa(){var e;if(En===null){var t=Ut.alternate;t!==null?e=t.memoizedState:e=null}else e=En.next;var n;if(Cn===null?n=Ut.memoizedState:n=Cn.next,n!==null)Cn=n,n=Cn.next,En=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");En=e;var a={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null};Cn===null?Ut.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function mg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function Mv(e,t,n){var a=or(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:B,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=sw.bind(null,Ut,i);return[a.memoizedState,o]}function Lv(e,t,n){var a=Oa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=En,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,c=l.next;o.next=c,l.next=u}i.baseQueue!==o&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var d=o.next,y=i.baseState,h=null,_=null,k=null,j=d;do{var ue=j.lane;if(go(Fi,ue)){if(k!==null){var Ce={lane:An,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};k=k.next=Ce}if(j.hasEagerState)y=j.eagerState;else{var pt=j.action;y=e(y,pt)}}else{var ke={lane:ue,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};k===null?(_=k=ke,h=y):k=k.next=ke,Ut.lanes=tt(Ut.lanes,ue),Uu(ue)}j=j.next}while(j!==null&&j!==d);k===null?h=y:k.next=_,Ea(y,a.memoizedState)||xu(),a.memoizedState=y,a.baseState=h,a.baseQueue=k,r.lastRenderedState=y}var rt=r.interleaved;if(rt!==null){var w=rt;do{var N=w.lane;Ut.lanes=tt(Ut.lanes,N),Uu(N),w=w.next}while(w!==rt)}else o===null&&(r.lanes=B);var R=r.dispatch;return[a.memoizedState,R]}function kv(e,t,n){var a=Oa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,c=u;do{var d=c.action;l=e(l,d),c=c.next}while(c!==u);Ea(l,a.memoizedState)||xu(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function y_(e,t,n){}function g_(e,t,n){}function Ov(e,t,n){var a=Ut,r=or(),i,o=Un();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=n(),Po||i!==n()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),Po=!0)}else{if(i=t(),!Po){var l=t();Ea(i,l)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Po=!0)}var u=Bc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,Fi)||hg(a,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,mc(gg.bind(null,a,c,e),[e]),a.flags|=Fr,hu(Sn|Hn,yg.bind(null,a,c,i,t),void 0,null),i}function fc(e,t,n){var a=Ut,r=Oa(),i=t();if(!Po){var o=t();Ea(i,o)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Po=!0)}var l=r.memoizedState,u=!Ea(l,i);u&&(r.memoizedState=i,xu());var c=r.queue;if(gu(gg.bind(null,a,c,e),[e]),c.getSnapshot!==t||u||Cn!==null&&Cn.memoizedState.tag&Sn){a.flags|=Fr,hu(Sn|Hn,yg.bind(null,a,c,i,t),void 0,null);var d=Bc();if(d===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(d,Fi)||hg(a,t,i)}return i}function hg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=Ut.updateQueue;if(r===null)r=mg(),Ut.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function yg(e,t,n,a){t.value=n,t.getSnapshot=a,bg(t)&&Sg(e)}function gg(e,t,n){var a=function(){bg(t)&&Sg(e)};return n(a)}function bg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ea(n,a)}catch{return!0}}function Sg(e){var t=da(e,Ve);t!==null&&Dn(t,e,Ve,Xt)}function dc(e){var t=or();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:B,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=cw.bind(null,Ut,n);return[t.memoizedState,a]}function Av(e){return Lv(_v)}function jv(e){return kv(_v)}function hu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Ut.updateQueue;if(i===null)i=mg(),Ut.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function Nv(e){var t=or();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=Oa();return t.memoizedState}function yu(e,t,n,a){var r=or(),i=a===void 0?null:a;Ut.flags|=e,r.memoizedState=hu(Sn|t,n,void 0,i)}function pc(e,t,n,a){var r=Oa(),i=a===void 0?null:a,o=void 0;if(En!==null){var l=En.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=hu(t,n,o,i);return}}}Ut.flags|=e,r.memoizedState=hu(Sn|t,n,o,i)}function mc(e,t){return(Ut.mode&tr)!==je?yu(Of|Fr|kf,Hn,e,t):yu(Fr|kf,Hn,e,t)}function gu(e,t){return pc(Fr,Hn,e,t)}function Uv(e,t){return yu(wt,ir,e,t)}function hc(e,t){return pc(wt,ir,e,t)}function Hv(e,t){var n=wt;return n|=xi,(Ut.mode&tr)!==je&&(n|=Br),yu(n,Tn,e,t)}function yc(e,t){return pc(wt,Tn,e,t)}function Tg(e,t){if(typeof t=="function"){var n=t,a=e();return n(a),function(){n(null)}}else if(t!=null){var r=t;r.hasOwnProperty("current")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function zv(e,t,n){typeof t!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=wt;return r|=xi,(Ut.mode&tr)!==je&&(r|=Br),yu(r,Tn,Tg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&f("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null;return pc(wt,Tn,Tg.bind(null,t,e),a)}function ow(e,t){}var bc=ow;function Pv(e,t){var n=or(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=Oa(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=or(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=Oa(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Fv(e){var t=or();return t.memoizedState=e,e}function Eg(e){var t=Oa(),n=En,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=Oa();if(En===null)return t.memoizedState=e,e;var n=En.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!IT(Fi);if(a){if(!Ea(n,t)){var r=Sh();Ut.lanes=tt(Ut.lanes,r),Uu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,xu()),e.memoizedState=n,n}function lw(e,t,n){var a=Va();jn(eE(a,Er)),e(!0);var r=vu.transition;vu.transition={};var i=vu.transition;vu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(jn(a),vu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Oe("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."),i._updatedFibers.clear()}}}function Bv(){var e=dc(!1),t=e[0],n=e[1],a=lw.bind(null,n),r=or();return r.memoizedState=a,[t,a]}function wg(){var e=Av(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}function Rg(){var e=jv(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}var Dg=!1;function uw(){return Dg}function $v(){var e=or(),t=Bc(),n=t.identifierPrefix,a;if(Un()){var r=w1();a=":"+n+"R"+r;var i=mu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=aw++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=Oa(),t=e.memoizedState;return t}function sw(e,t,n){typeof arguments[3]=="function"&&f("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 a=ui(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=ag(e,t,r,a);if(i!==null){var o=ia();Dn(i,e,a,o),Lg(i,t,a)}}kg(e,a)}function cw(e,t,n){typeof arguments[3]=="function"&&f("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 a=ui(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=e.alternate;if(e.lanes===B&&(i===null||i.lanes===B)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ve.current,ve.current=Ia;try{var u=t.lastRenderedState,c=o(u,n);if(r.hasEagerState=!0,r.eagerState=c,Ea(c,u)){G1(e,t,r,a);return}}catch{}finally{ve.current=l}}}var d=ag(e,t,r,a);if(d!==null){var y=ia();Dn(d,e,a,y),Lg(d,t,a)}}kg(e,a)}function _g(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function Mg(e,t){pu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lg(e,t,n){if(bh(n)){var a=t.lanes;a=Th(a,e.pendingLanes);var r=tt(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){Hf(e,t)}var Cc={readContext:bn,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:Ae},Og=null,Ag=null,jg=null,Ng=null,lr=null,Ia=null,xc=null;{var Yv=function(){f("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().")},Fe=function(){f("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")};Og={readContext:function(e){return bn(e)},useCallback:function(e,t){return z="useCallback",Lt(),Vo(t),Pv(e,t)},useContext:function(e){return z="useContext",Lt(),bn(e)},useEffect:function(e,t){return z="useEffect",Lt(),Vo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Lt(),Vo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Lt(),Vo(t),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Lt(),Vo(t),Hv(e,t)},useMemo:function(e,t){z="useMemo",Lt(),Vo(t);var n=ve.current;ve.current=lr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",Lt();var a=ve.current;ve.current=lr;try{return Mv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",Lt(),Nv(e)},useState:function(e){z="useState",Lt();var t=ve.current;ve.current=lr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Lt(),void 0},useDeferredValue:function(e){return z="useDeferredValue",Lt(),Fv(e)},useTransition:function(){return z="useTransition",Lt(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",Lt(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Lt(),Ov(e,t,n)},useId:function(){return z="useId",Lt(),$v()},unstable_isNewReconciler:Ae},Ag={readContext:function(e){return bn(e)},useCallback:function(e,t){return z="useCallback",re(),Pv(e,t)},useContext:function(e){return z="useContext",re(),bn(e)},useEffect:function(e,t){return z="useEffect",re(),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",re(),zv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",re(),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",re(),Hv(e,t)},useMemo:function(e,t){z="useMemo",re();var n=ve.current;ve.current=lr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",re();var a=ve.current;ve.current=lr;try{return Mv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",re(),Nv(e)},useState:function(e){z="useState",re();var t=ve.current;ve.current=lr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",re(),void 0},useDeferredValue:function(e){return z="useDeferredValue",re(),Fv(e)},useTransition:function(){return z="useTransition",re(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",re(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",re(),Ov(e,t,n)},useId:function(){return z="useId",re(),$v()},unstable_isNewReconciler:Ae},jg={readContext:function(e){return bn(e)},useCallback:function(e,t){return z="useCallback",re(),Sc(e,t)},useContext:function(e){return z="useContext",re(),bn(e)},useEffect:function(e,t){return z="useEffect",re(),gu(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",re(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",re(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",re(),yc(e,t)},useMemo:function(e,t){z="useMemo",re();var n=ve.current;ve.current=Ia;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",re();var a=ve.current;ve.current=Ia;try{return Lv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",re(),vc()},useState:function(e){z="useState",re();var t=ve.current;ve.current=Ia;try{return Av(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",re(),bc()},useDeferredValue:function(e){return z="useDeferredValue",re(),Eg(e)},useTransition:function(){return z="useTransition",re(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",re(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",re(),fc(e,t)},useId:function(){return z="useId",re(),Ec()},unstable_isNewReconciler:Ae},Ng={readContext:function(e){return bn(e)},useCallback:function(e,t){return z="useCallback",re(),Sc(e,t)},useContext:function(e){return z="useContext",re(),bn(e)},useEffect:function(e,t){return z="useEffect",re(),gu(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",re(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",re(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",re(),yc(e,t)},useMemo:function(e,t){z="useMemo",re();var n=ve.current;ve.current=xc;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",re();var a=ve.current;ve.current=xc;try{return kv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",re(),vc()},useState:function(e){z="useState",re();var t=ve.current;ve.current=xc;try{return jv(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",re(),bc()},useDeferredValue:function(e){return z="useDeferredValue",re(),Cg(e)},useTransition:function(){return z="useTransition",re(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",re(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",re(),fc(e,t)},useId:function(){return z="useId",re(),Ec()},unstable_isNewReconciler:Ae},lr={readContext:function(e){return Yv(),bn(e)},useCallback:function(e,t){return z="useCallback",Fe(),Lt(),Pv(e,t)},useContext:function(e){return z="useContext",Fe(),Lt(),bn(e)},useEffect:function(e,t){return z="useEffect",Fe(),Lt(),mc(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Fe(),Lt(),zv(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Fe(),Lt(),Uv(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Fe(),Lt(),Hv(e,t)},useMemo:function(e,t){z="useMemo",Fe(),Lt();var n=ve.current;ve.current=lr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",Fe(),Lt();var a=ve.current;ve.current=lr;try{return Mv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",Fe(),Lt(),Nv(e)},useState:function(e){z="useState",Fe(),Lt();var t=ve.current;ve.current=lr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Fe(),Lt(),void 0},useDeferredValue:function(e){return z="useDeferredValue",Fe(),Lt(),Fv(e)},useTransition:function(){return z="useTransition",Fe(),Lt(),Bv()},useMutableSource:function(e,t,n){return z="useMutableSource",Fe(),Lt(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Fe(),Lt(),Ov(e,t,n)},useId:function(){return z="useId",Fe(),Lt(),$v()},unstable_isNewReconciler:Ae},Ia={readContext:function(e){return Yv(),bn(e)},useCallback:function(e,t){return z="useCallback",Fe(),re(),Sc(e,t)},useContext:function(e){return z="useContext",Fe(),re(),bn(e)},useEffect:function(e,t){return z="useEffect",Fe(),re(),gu(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Fe(),re(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Fe(),re(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Fe(),re(),yc(e,t)},useMemo:function(e,t){z="useMemo",Fe(),re();var n=ve.current;ve.current=Ia;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",Fe(),re();var a=ve.current;ve.current=Ia;try{return Lv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",Fe(),re(),vc()},useState:function(e){z="useState",Fe(),re();var t=ve.current;ve.current=Ia;try{return Av(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Fe(),re(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Fe(),re(),Eg(e)},useTransition:function(){return z="useTransition",Fe(),re(),wg()},useMutableSource:function(e,t,n){return z="useMutableSource",Fe(),re(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Fe(),re(),fc(e,t)},useId:function(){return z="useId",Fe(),re(),Ec()},unstable_isNewReconciler:Ae},xc={readContext:function(e){return Yv(),bn(e)},useCallback:function(e,t){return z="useCallback",Fe(),re(),Sc(e,t)},useContext:function(e){return z="useContext",Fe(),re(),bn(e)},useEffect:function(e,t){return z="useEffect",Fe(),re(),gu(e,t)},useImperativeHandle:function(e,t,n){return z="useImperativeHandle",Fe(),re(),gc(e,t,n)},useInsertionEffect:function(e,t){return z="useInsertionEffect",Fe(),re(),hc(e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",Fe(),re(),yc(e,t)},useMemo:function(e,t){z="useMemo",Fe(),re();var n=ve.current;ve.current=Ia;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){z="useReducer",Fe(),re();var a=ve.current;ve.current=Ia;try{return kv(e,t,n)}finally{ve.current=a}},useRef:function(e){return z="useRef",Fe(),re(),vc()},useState:function(e){z="useState",Fe(),re();var t=ve.current;ve.current=Ia;try{return jv(e)}finally{ve.current=t}},useDebugValue:function(e,t){return z="useDebugValue",Fe(),re(),bc()},useDeferredValue:function(e){return z="useDeferredValue",Fe(),re(),Cg(e)},useTransition:function(){return z="useTransition",Fe(),re(),Rg()},useMutableSource:function(e,t,n){return z="useMutableSource",Fe(),re(),void 0},useSyncExternalStore:function(e,t,n){return z="useSyncExternalStore",Fe(),re(),fc(e,t)},useId:function(){return z="useId",Fe(),re(),Ec()},unstable_isNewReconciler:Ae}}var ri=M.unstable_now,Ug=0,wc=-1,bu=-1,Rc=-1,Iv=!1,Dc=!1;function Hg(){return Iv}function fw(){Dc=!0}function dw(){Iv=!1,Dc=!1}function vw(){Iv=Dc,Dc=!1}function zg(){return Ug}function Pg(){Ug=ri()}function Wv(e){bu=ri(),e.actualStartTime<0&&(e.actualStartTime=ri())}function Vg(e){bu=-1}function _c(e,t){if(bu>=0){var n=ri()-bu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),bu=-1}}function ur(e){if(wc>=0){var t=ri()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case W:var a=n.stateNode;a.effectDuration+=t;return;case mt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(Rc>=0){var t=ri()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case W:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case mt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function sr(){wc=ri()}function Gv(){Rc=ri()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Wa(e,t){if(e&&e.defaultProps){var n=Xe({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Zv,Jv,ep,tp,Fg,Mc,np,ap,rp,Su;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Su=new Set;var Bg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Bg.has(n)||(Bg.add(n),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Fg=function(e,t){if(t===void 0){var n=xt(e)||"Component";tp.has(n)||(tp.add(n),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_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(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&sn){On(!0);try{i=n(a,r)}finally{On(!1)}}Fg(t,i)}var o=i==null?r:Xe({},r,i);if(e.memoizedState=o,e.lanes===B){var l=e.updateQueue;l.baseState=o}}var op={isMounted:rT,enqueueSetState:function(e,t,n){var a=uo(e),r=ia(),i=ui(a),o=Mr(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=ei(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=uo(e),r=ia(),i=ui(a),o=Mr(r,i);o.tag=ig,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=ei(a,o,i);l!==null&&(Dn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=uo(e),a=ia(),r=ui(n),i=Mr(a,r);i.tag=tc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=ei(n,i,r);o!==null&&(Dn(o,n,r,a),rc(o,n,r)),NT(n,r)}};function $g(e,t,n,a,r,i,o){var l=e.stateNode;if(typeof l.shouldComponentUpdate=="function"){var u=l.shouldComponentUpdate(a,i,o);{if(e.mode&sn){On(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{On(!1)}}u===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Bl(n,a)||!Bl(r,i):!0}function pw(e,t,n){var a=e.stateNode;{var r=xt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):f("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&f("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?",r),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&f("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.",r),a.propTypes&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Su.has(t)&&(e.mode&sn)===je&&(Su.add(t),f(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Su.has(t)&&(e.mode&sn)===je&&(Su.add(t),f(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&f("%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.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&f("%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().",r),typeof a.componentWillRecieveProps=="function"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&f("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&f("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Jv.has(t)&&(Jv.add(t),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xt(t))),typeof a.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&f("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||at(l))&&f("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,eT(t,e),t._reactInternalInstance=Qv}function Ig(e,t,n){var a=!1,r=Ca,i=Ca,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===p&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" 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 o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===I?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=bn(o);else{r=_o(e,t,!0);var c=t.contextTypes;a=c!=null,i=a?Mo(e,r):Ca}var d=new t(n,i);if(e.mode&sn){On(!0);try{d=new t(n,i)}finally{On(!1)}}var y=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Yg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&y===null){var h=xt(t)||"Component";Zv.has(h)||(Zv.add(h),f("`%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.",h,d.state===null?"null":"undefined",h))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var _=null,k=null,j=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?_="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(_="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(k="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?j="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(j="UNSAFE_componentWillUpdate"),_!==null||k!==null||j!==null){var ue=xt(t)||"Component",ke=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(ue)||(ep.add(ue),f(`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`,ue,ke,_!==null?`
`+_:"",k!==null?`
`+k:"",j!==null?`
`+j:""))}}}return a&&jy(e,r,i),d}function mw(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ge(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Wg(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Ge(e)||"Component";Kv.has(i)||(Kv.add(i),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){pw(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=bn(i);else{var o=_o(e,t,!0);r.context=Mo(e,o)}{if(r.state===n){var l=xt(t)||"Component";np.has(l)||(np.add(l),f("%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.",l))}e.mode&sn&&$a.recordLegacyContextWarning(e,r),$a.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(mw(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var c=wt;c|=xi,(e.mode&tr)!==je&&(c|=Br),e.flags|=c}}function hw(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Ca;if(typeof l=="object"&&l!==null)u=bn(l);else{var c=_o(e,t,!0);u=Mo(e,c)}var d=t.getDerivedStateFromProps,y=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!y&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Wg(e,r,n,u),lg();var h=e.memoizedState,_=r.state=h;if(ic(e,n,r,a),_=e.memoizedState,i===n&&h===_&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var k=wt;k|=xi,(e.mode&tr)!==je&&(k|=Br),e.flags|=k}return!1}typeof d=="function"&&(ip(e,t,d,n),_=e.memoizedState);var j=oc()||$g(e,t,i,n,h,_,u);if(j){if(!y&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var ue=wt;ue|=xi,(e.mode&tr)!==je&&(ue|=Br),e.flags|=ue}}else{if(typeof r.componentDidMount=="function"){var ke=wt;ke|=xi,(e.mode&tr)!==je&&(ke|=Br),e.flags|=ke}e.memoizedProps=n,e.memoizedState=_}return r.props=n,r.state=_,r.context=u,j}function yw(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Wa(t.type,o);i.props=l;var u=t.pendingProps,c=i.context,d=n.contextType,y=Ca;if(typeof d=="object"&&d!==null)y=bn(d);else{var h=_o(t,n,!0);y=Mo(t,h)}var _=n.getDerivedStateFromProps,k=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function";!k&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||c!==y)&&Wg(t,i,a,y),lg();var j=t.memoizedState,ue=i.state=j;if(ic(t,a,i,r),ue=t.memoizedState,o===u&&j===ue&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=co),!1;typeof _=="function"&&(ip(t,n,_,a),ue=t.memoizedState);var ke=oc()||$g(t,n,l,a,j,ue,y)||we;return ke?(!k&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ue,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ue,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=co)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=co),t.memoizedProps=a,t.memoizedState=ue),i.props=a,i.state=ue,i.context=y,ke}function Bi(e,t){return{value:e,source:t,stack:pi(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gw(e,t){return!0}function sp(e,t){try{var n=gw(e,t);if(n===!1)return;var a=t.value,r=t.source,i=t.stack,o=i!==null?i:"";if(a!=null&&a._suppressLogging){if(e.tag===se)return;console.error(a)}var l=r?Ge(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",c;if(e.tag===W)c=`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 d=Ge(e)||"Anonymous";c="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var y=u+`
`+o+`
`+(""+c);console.error(y)}catch(h){setTimeout(function(){throw h})}}var bw=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Mr(Xt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){fD(r),sp(e,t)},a}function cp(e,t,n){var a=Mr(Xt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){r0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){r0(e),sp(e,t),typeof r!="function"&&sD(this);var u=t.value,c=t.stack;this.componentDidCatch(u,{componentStack:c!==null?c:""}),typeof r!="function"&&(ba(e.lanes,Ve)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ge(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new bw,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=dD.bind(null,e,t,n);Pa&&Hu(e,n),t.then(i,i)}}function Sw(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function Tw(e,t){var n=e.tag;if((e.mode&dt)===je&&(n===Se||n===J||n===V)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Xg(e){var t=e;do{if(t.tag===_e&&tw(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&dt)===je){if(e===t)e.flags|=za;else{if(e.flags|=Mt,n.flags|=Mf,n.flags&=-52805,n.tag===se){var i=n.alternate;if(i===null)n.tag=K;else{var o=Mr(Xt,Ve);o.tag=tc,ei(n,o,Ve)}}n.lanes=tt(n.lanes,Ve)}return e}return e.flags|=za,e.lanes=r,e}function Ew(e,t,n,a,r){if(n.flags|=rs,Pa&&Hu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;Tw(n),Un()&&n.mode&dt&&Fy();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&dt&&Gg(e,i,r),Sw(o,e,i);return}else{if(!YT(r)){Gg(e,i,r),$p();return}var l=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.");a=l}}else if(Un()&&n.mode&dt){Fy();var u=Xg(t);if(u!==null){(u.flags&za)===Ue&&(u.flags|=Si),Qg(u,t,n,e,r),nv(Bi(a,n));return}}a=Bi(a,n),tD(a);var c=t;do{switch(c.tag){case W:{var d=a;c.flags|=za;var y=Dl(r);c.lanes=tt(c.lanes,y);var h=qg(c,d,y);yv(c,h);return}case se:var _=a,k=c.type,j=c.stateNode;if((c.flags&Mt)===Ue&&(typeof k.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&!Xb(j))){c.flags|=za;var ue=Dl(r);c.lanes=tt(c.lanes,ue);var ke=cp(c,_,ue);yv(c,ke);return}break}c=c.return}while(c!==null)}function Cw(){return null}var Tu=he.ReactCurrentOwner,qa=!1,fp,Eu,dp,vp,pp,$i,mp,Lc,Cu;fp={},Eu={},dp={},vp={},pp={},$i=!1,mp={},Lc={},Cu={};function aa(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=Ao(t,e.child,n,a)}function xw(e,t,n,a){t.child=Ao(t,e.child,null,a),t.child=Ao(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Fa(i,a,"prop",xt(n))}var o=n.render,l=t.ref,u,c;No(t,r),Tl(t);{if(Tu.current=t,Ra(!0),u=Fo(e,t,o,a,l,r),c=Bo(),t.mode&sn){On(!0);try{u=Fo(e,t,o,a,l,r),c=Bo()}finally{On(!1)}}Ra(!1)}return po(),e!==null&&!qa?(vg(e,t,r),Lr(e,t,r)):(Un()&&c&&Qd(t),t.flags|=so,aa(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(MD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=Qo(i),t.tag=V,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Fa(l,a,"prop",xt(i)),n.defaultProps!==void 0){var u=xt(i)||"Unknown";Cu[u]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Cu[u]=!0)}}var c=em(n.type,null,a,t,t.mode,r);return c.ref=t.ref,c.return=t,t.child=c,c}{var d=n.type,y=d.propTypes;y&&Fa(y,a,"prop",xt(d))}var h=e.child,_=xp(e,r);if(!_){var k=h.memoizedProps,j=n.compare;if(j=j!==null?j:Bl,j(k,a)&&e.ref===t.ref)return Lr(e,t,r)}t.flags|=so;var ue=Gi(h,a);return ue.ref=t.ref,ue.return=t,t.child=ue,ue}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===Ee){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var c=i&&i.propTypes;c&&Fa(c,a,"prop",xt(i))}}if(e!==null){var d=e.memoizedProps;if(Bl(d,a)&&e.ref===t.ref&&t.type===e.type)if(qa=!1,t.pendingProps=a=d,xp(e,r))(e.flags&Mf)!==Ue&&(qa=!0);else return t.lanes=e.lanes,Lr(e,t,r)}return hp(e,t,n,a,r)}function eb(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||Le)if((t.mode&dt)===je){var o={baseLanes:B,cachePool:null,transitions:null};t.memoizedState=o,$c(t,n)}else if(ba(n,Da)){var y={baseLanes:B,cachePool:null,transitions:null};t.memoizedState=y;var h=i!==null?i.baseLanes:n;$c(t,h)}else{var l=null,u;if(i!==null){var c=i.baseLanes;u=tt(c,n)}else u=n;t.lanes=t.childLanes=Da;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,$c(t,u),null}else{var _;i!==null?(_=tt(i.baseLanes,n),t.memoizedState=null):_=n,$c(t,_)}return aa(e,t,r,n),t.child}function ww(e,t,n){var a=t.pendingProps;return aa(e,t,a,n),t.child}function Rw(e,t,n){var a=t.pendingProps.children;return aa(e,t,a,n),t.child}function Dw(e,t,n){{t.flags|=wt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return aa(e,t,i,n),t.child}function tb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Ti,t.flags|=Lf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Fa(i,a,"prop",xt(n))}var o;{var l=_o(t,n,!0);o=Mo(t,l)}var u,c;No(t,r),Tl(t);{if(Tu.current=t,Ra(!0),u=Fo(e,t,n,a,o,r),c=Bo(),t.mode&sn){On(!0);try{u=Fo(e,t,n,a,o,r),c=Bo()}finally{On(!1)}}Ra(!1)}return po(),e!==null&&!qa?(vg(e,t,r),Lr(e,t,r)):(Un()&&c&&Qd(t),t.flags|=so,aa(e,t,u,r),t.child)}function nb(e,t,n,a,r){{switch(YD(t)){case!1:{var i=t.stateNode,o=t.type,l=new o(t.memoizedProps,i.context),u=l.state;i.updater.enqueueSetState(i,u,null);break}case!0:{t.flags|=Mt,t.flags|=za;var c=new Error("Simulated error coming from DevTools"),d=Dl(r);t.lanes=tt(t.lanes,d);var y=cp(t,Bi(c,t),d);yv(t,y);break}}if(t.type!==t.elementType){var h=n.propTypes;h&&Fa(h,a,"prop",xt(n))}}var _;rr(n)?(_=!0,Bs(t)):_=!1,No(t,r);var k=t.stateNode,j;k===null?(Oc(e,t),Ig(t,n,a),lp(t,n,a,r),j=!0):e===null?j=hw(t,n,a,r):j=yw(e,t,n,a,r);var ue=yp(e,t,n,j,_,r);{var ke=t.stateNode;j&&ke.props!==a&&($i||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ge(t)||"a component"),$i=!0)}return ue}function yp(e,t,n,a,r,i){tb(e,t);var o=(t.flags&Mt)!==Ue;if(!a&&!o)return r&&Hy(t,n,!1),Lr(e,t,i);var l=t.stateNode;Tu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Vg();else{Tl(t);{if(Ra(!0),u=l.render(),t.mode&sn){On(!0);try{l.render()}finally{On(!1)}}Ra(!1)}po()}return t.flags|=so,e!==null&&o?xw(e,t,u,i):aa(e,t,u,i),t.memoizedState=l.state,r&&Hy(t,n,!0),t.child}function ab(e){var t=e.stateNode;t.pendingContext?Ny(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ny(e,t.context,!1),gv(e,t.containerInfo)}function _w(e,t,n){if(ab(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var a=t.pendingProps,r=t.memoizedState,i=r.element;og(e,t),ic(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},c=t.updateQueue;if(c.baseState=u,t.memoizedState=u,t.flags&Si){var d=Bi(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."),t);return rb(e,t,l,n,d)}else if(l!==i){var y=Bi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return rb(e,t,l,n,y)}else{k1(t);var h=Jy(t,null,l,n);t.child=h;for(var _=h;_;)_.flags=_.flags&-3|Ei,_=_.sibling}}else{if(Oo(),l===i)return Lr(e,t,n);aa(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return Oo(),nv(r),t.flags|=Si,aa(e,t,n,a),t.child}function Mw(e,t,n){cg(t),e===null&&tv(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Ud(a,r);return l?o=null:i!==null&&Ud(a,i)&&(t.flags|=as),tb(e,t),aa(e,t,o,n),t.child}function Lw(e,t){return e===null&&tv(t),null}function kw(e,t,n,a){Oc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var c=t.tag=LD(u),d=Wa(u,r),y;switch(c){case Se:return gp(t,u),t.type=u=Qo(u),y=hp(null,t,u,d,a),y;case se:return t.type=u=Gp(u),y=nb(null,t,u,d,a),y;case J:return t.type=u=Xp(u),y=Kg(null,t,u,d,a),y;case Me:{if(t.type!==t.elementType){var h=u.propTypes;h&&Fa(h,d,"prop",xt(u))}return y=Zg(null,t,u,Wa(u.type,d),a),y}}var _="";throw u!==null&&typeof u=="object"&&u.$$typeof===Ee&&(_=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+_))}function Ow(e,t,n,a,r){Oc(e,t),t.tag=se;var i;return rr(n)?(i=!0,Bs(t)):i=!1,No(t,r),Ig(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function Aw(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=_o(t,n,!1);i=Mo(t,o)}No(t,a);var l,u;Tl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var c=xt(n)||"Unknown";fp[c]||(f("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.",c,c),fp[c]=!0)}t.mode&sn&&$a.recordLegacyContextWarning(t,null),Ra(!0),Tu.current=t,l=Fo(null,t,n,r,i,a),u=Bo(),Ra(!1)}if(po(),t.flags|=so,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=xt(n)||"Unknown";Eu[d]||(f("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.",d,d,d),Eu[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var y=xt(n)||"Unknown";Eu[y]||(f("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.",y,y,y),Eu[y]=!0)}t.tag=se,t.memoizedState=null,t.updateQueue=null;var h=!1;return rr(n)?(h=!0,Bs(t)):h=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),Yg(t,l),lp(t,n,r,a),yp(null,t,n,!0,h,a)}else{if(t.tag=Se,t.mode&sn){On(!0);try{l=Fo(null,t,n,r,i,a),u=Bo()}finally{On(!1)}}return Un()&&u&&Qd(t),aa(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Pr();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,f("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=xt(t)||"Unknown";Cu[o]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Cu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=xt(t)||"Unknown";vp[l]||(f("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=xt(t)||"Unknown";dp[u]||(f("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:An};function Sp(e){return{baseLanes:e,cachePool:Cw(),transitions:null}}function jw(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function Nw(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,du)}function Uw(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;ID(t)&&(t.flags|=Mt);var r=Ya.current,i=!1,o=(t.flags&Mt)!==Ue;if(o||Nw(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=ew(r,dg)),r=Ho(r),ni(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return Fw(t,u)}var c=a.children,d=a.fallback;if(i){var y=Hw(t,c,d,n),h=t.child;return h.memoizedState=Sp(n),t.memoizedState=bp,y}else return Tp(t,c)}else{var _=e.memoizedState;if(_!==null){var k=_.dehydrated;if(k!==null)return Bw(e,t,o,a,k,_,n)}if(i){var j=a.fallback,ue=a.children,ke=Pw(e,t,ue,j,n),Ce=t.child,pt=e.child.memoizedState;return Ce.memoizedState=pt===null?Sp(n):jw(pt,n),Ce.childLanes=Uw(e,n),t.memoizedState=bp,ke}else{var rt=a.children,w=zw(e,t,rt,n);return t.memoizedState=null,w}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function Hw(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&dt)===je&&i!==null?(l=i,l.childLanes=B,l.pendingProps=o,e.mode&Nt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=ci(n,r,a,null)):(l=Ep(o,r),u=ci(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return o0(e,t,B,null)}function ob(e,t){return Gi(e,t)}function zw(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&dt)===je&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=bi):l.push(i)}return t.child=o,o}function Pw(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},c;if((i&dt)===je&&t.child!==o){var d=t.child;c=d,c.childLanes=B,c.pendingProps=u,t.mode&Nt&&(c.actualDuration=0,c.actualStartTime=-1,c.selfBaseDuration=o.selfBaseDuration,c.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else c=ob(o,u),c.subtreeFlags=o.subtreeFlags&Sr;var y;return l!==null?y=Gi(l,a):(y=ci(a,i,r,null),y.flags|=Ln),y.return=t,c.return=t,c.sibling=y,t.child=c,y}function kc(e,t,n,a){a!==null&&nv(a),Ao(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=Ln,t.memoizedState=null,o}function Vw(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=ci(a,i,r,null);return u.flags|=Ln,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&dt)!==je&&Ao(t,e.child,null,r),u}function Fw(e,t,n){return(e.mode&dt)===je?(f("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."),e.lanes=Ve):Vd(t)?e.lanes=Di:e.lanes=Da,null}function Bw(e,t,n,a,r,i,o){if(n)if(t.flags&Si){t.flags&=-257;var w=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return kc(e,t,o,w)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Mt,null;var N=a.children,R=a.fallback,$=Vw(e,t,N,R,o),me=t.child;return me.memoizedState=Sp(o),t.memoizedState=bp,$}else{if(M1(),(t.mode&dt)===je)return kc(e,t,o,null);if(Vd(r)){var l,u,c;{var d=Wx(r);l=d.digest,u=d.message,c=d.stack}var y;u?y=new Error(u):y=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var h=up(y,l,c);return kc(e,t,o,h)}var _=ba(o,e.childLanes);if(qa||_){var k=Bc();if(k!==null){var j=ZT(k,o);if(j!==An&&j!==i.retryLane){i.retryLane=j;var ue=Xt;da(e,j),Dn(k,e,j,ue)}}$p();var ke=up(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 kc(e,t,o,ke)}else if(My(r)){t.flags|=Mt,t.child=e.child;var Ce=vD.bind(null,e);return qx(r,Ce),null}else{O1(t,r,i.treeContext);var pt=a.children,rt=Tp(t,pt);return rt.flags|=Ei,rt}}}function lb(e,t,n){e.lanes=tt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=tt(a.lanes,t)),dv(e.return,t,n)}function $w(e,t,n){for(var a=t;a!==null;){if(a.tag===_e){var r=a.memoizedState;r!==null&&lb(a,n,e)}else if(a.tag===He)lb(a,n,e);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function Yw(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&sc(a)===null&&(n=t),t=t.sibling}return n}function Iw(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function Ww(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ub(e,t){{var n=at(e),a=!n&&typeof bt(e)=="function";if(n||a){var r=n?"array":"iterable";return f("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>",r,t,r),!1}}return!0}function qw(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(at(e)){for(var n=0;n<e.length;n++)if(!ub(e[n],n))return}else{var a=bt(e);if(typeof a=="function"){var r=a.call(e);if(r)for(var i=r.next(),o=0;!i.done;i=r.next()){if(!ub(i.value,o))return;o++}}else f('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?',t)}}function Cp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function sb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;Iw(r),Ww(i,r),qw(o,r),aa(e,t,o,n);var l=Ya.current,u=Tv(l,du);if(u)l=Ev(l,du),t.flags|=Mt;else{var c=e!==null&&(e.flags&Mt)!==Ue;c&&$w(t,t.child,n),l=Ho(l)}if(ni(t,l),(t.mode&dt)===je)t.memoizedState=null;else switch(r){case"forwards":{var d=Yw(t.child),y;d===null?(y=t.child,t.child=null):(y=d.sibling,d.sibling=null),Cp(t,!1,y,d,i);break}case"backwards":{var h=null,_=t.child;for(t.child=null;_!==null;){var k=_.alternate;if(k!==null&&sc(k)===null){t.child=_;break}var j=_.sibling;_.sibling=h,h=_,_=j}Cp(t,!0,h,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function Gw(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Ao(t,null,a,n):aa(e,t,a,n),t.child}var cb=!1;function Xw(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||cb||(cb=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Fa(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var c=o.value;if(Ea(c,l)){if(o.children===i.children&&!Vs())return Lr(e,t,n)}else I1(t,r,n)}var d=i.children;return aa(e,t,d,n),t.child}var fb=!1;function Qw(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(fb||(fb=!0,f("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):a=a._context;var r=t.pendingProps,i=r.children;typeof i!="function"&&f("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."),No(t,n);var o=bn(a);Tl(t);var l;return Tu.current=t,Ra(!0),l=i(o),Ra(!1),po(),t.flags|=so,aa(e,t,l,n),t.child}function xu(){qa=!0}function Oc(e,t){(t.mode&dt)===je&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Ln)}function Lr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Vg(),Uu(t.lanes),ba(n,t.childLanes)?($1(e,t),t.child):null}function Kw(e,t,n){{var a=t.return;if(a===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===a.child)a.child=n;else{var r=a.child;if(r===null)throw new Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw new Error("Expected to find the previous sibling.");r.sibling=n}var i=a.deletions;return i===null?(a.deletions=[e],a.flags|=bi):i.push(e),n.flags|=Ln,n}}function xp(e,t){var n=e.lanes;return!!ba(n,t)}function Zw(e,t,n){switch(t.tag){case W:ab(t),t.stateNode,Oo();break;case oe:cg(t);break;case se:{var a=t.type;rr(a)&&Bs(t);break}case D:gv(t,t.stateNode.containerInfo);break;case We:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case mt:{var o=ba(n,t.childLanes);o&&(t.flags|=wt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case _e:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return ni(t,Ho(Ya.current)),t.flags|=Mt,null;var c=t.child,d=c.childLanes;if(ba(n,d))return ib(e,t,n);ni(t,Ho(Ya.current));var y=Lr(e,t,n);return y!==null?y.sibling:null}else ni(t,Ho(Ya.current));break}case He:{var h=(e.flags&Mt)!==Ue,_=ba(n,t.childLanes);if(h){if(_)return sb(e,t,n);t.flags|=Mt}var k=t.memoizedState;if(k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),ni(t,Ya.current),_)break;return null}case le:case ht:return t.lanes=B,eb(e,t,n)}return Lr(e,t,n)}function db(e,t,n){if(t._debugNeedsRemount&&e!==null)return Kw(e,t,em(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Vs()||t.type!==e.type)qa=!0;else{var i=xp(e,n);if(!i&&(t.flags&Mt)===Ue)return qa=!1,Zw(e,t,n);(e.flags&Mf)!==Ue?qa=!0:qa=!1}}else if(qa=!1,Un()&&C1(t)){var o=t.index,l=x1();Vy(t,l,o)}switch(t.lanes=B,t.tag){case it:return Aw(e,t,t.type,n);case nt:{var u=t.elementType;return kw(e,t,u,n)}case Se:{var c=t.type,d=t.pendingProps,y=t.elementType===c?d:Wa(c,d);return hp(e,t,c,y,n)}case se:{var h=t.type,_=t.pendingProps,k=t.elementType===h?_:Wa(h,_);return nb(e,t,h,k,n)}case W:return _w(e,t,n);case oe:return Mw(e,t,n);case Be:return Lw(e,t);case _e:return ib(e,t,n);case D:return Gw(e,t,n);case J:{var j=t.type,ue=t.pendingProps,ke=t.elementType===j?ue:Wa(j,ue);return Kg(e,t,j,ke,n)}case zt:return ww(e,t,n);case Et:return Rw(e,t,n);case mt:return Dw(e,t,n);case We:return Xw(e,t,n);case kt:return Qw(e,t,n);case Me:{var Ce=t.type,pt=t.pendingProps,rt=Wa(Ce,pt);if(t.type!==t.elementType){var w=Ce.propTypes;w&&Fa(w,rt,"prop",xt(Ce))}return rt=Wa(Ce.type,rt),Zg(e,t,Ce,rt,n)}case V:return Jg(e,t,t.type,t.pendingProps,n);case K:{var N=t.type,R=t.pendingProps,$=t.elementType===N?R:Wa(N,R);return Ow(e,t,N,$,n)}case He:return sb(e,t,n);case ce:break;case le:return eb(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $o(e){e.flags|=wt}function vb(e){e.flags|=Ti,e.flags|=Lf}var pb,wp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===oe||r.tag===Be)Sx(e,r.stateNode);else if(r.tag!==D){if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===t)return;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},wp=function(e,t){},mb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Ex(o,n,i,a,r,l);t.updateQueue=u,u&&$o(t)}},hb=function(e,t,n,a){n!==a&&$o(t)};function wu(e,t){if(!Un())switch(e.tailMode){case"hidden":{for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break}case"collapsed":{for(var r=e.tail,i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function zn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=B,a=Ue;if(t){if((e.mode&Nt)!==je){for(var u=e.selfBaseDuration,c=e.child;c!==null;)n=tt(n,tt(c.lanes,c.childLanes)),a|=c.subtreeFlags&Sr,a|=c.flags&Sr,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=tt(n,tt(d.lanes,d.childLanes)),a|=d.subtreeFlags&Sr,a|=d.flags&Sr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&Nt)!==je){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=tt(n,tt(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=tt(n,tt(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function Jw(e,t,n){if(H1()&&(t.mode&dt)!==je&&(t.flags&Mt)===Ue)return qy(t),Oo(),t.flags|=Si|rs|za,!1;var a=qs(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!a)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(N1(t),zn(t),(t.mode&Nt)!==je){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Oo(),(t.flags&Mt)===Ue&&(t.memoizedState=null),t.flags|=wt,zn(t),(t.mode&Nt)!==je){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Gy(),!0}function yb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case it:case nt:case V:case Se:case J:case zt:case Et:case mt:case kt:case Me:return zn(t),null;case se:{var r=t.type;return rr(r)&&Fs(t),zn(t),null}case W:{var i=t.stateNode;if(Uo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)$o(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Si)!==Ue)&&(t.flags|=co,Gy())}}return wp(e,t),zn(t),null}case oe:{Sv(t);var u=sg(),c=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,c,a,u),e.ref!==t.ref&&vb(t);else{if(!a){if(t.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 zn(t),null}var d=bv(),y=qs(t);if(y)A1(t,u,d)&&$o(t);else{var h=bx(c,a,u,d,t);pb(h,t,!1,!1),t.stateNode=h,Tx(h,c,a,u)&&$o(t)}t.ref!==null&&vb(t)}return zn(t),null}case Be:{var _=a;if(e&&t.stateNode!=null){var k=e.memoizedProps;hb(e,t,k,_)}else{if(typeof _!="string"&&t.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 j=sg(),ue=bv(),ke=qs(t);ke?j1(t)&&$o(t):t.stateNode=Cx(_,j,ue,t)}return zn(t),null}case _e:{zo(t);var Ce=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var pt=Jw(e,t,Ce);if(!pt)return t.flags&za?t:null}if((t.flags&Mt)!==Ue)return t.lanes=n,(t.mode&Nt)!==je&&Xv(t),t;var rt=Ce!==null,w=e!==null&&e.memoizedState!==null;if(rt!==w&&rt){var N=t.child;if(N.flags|=Ci,(t.mode&dt)!==je){var R=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);R||Tv(Ya.current,dg)?eD():$p()}}var $=t.updateQueue;if($!==null&&(t.flags|=wt),zn(t),(t.mode&Nt)!==je&&rt){var me=t.child;me!==null&&(t.treeBaseDuration-=me.treeBaseDuration)}return null}case D:return Uo(t),wp(e,t),e===null&&h1(t.stateNode.containerInfo),zn(t),null;case We:var fe=t.type._context;return fv(fe,t),zn(t),null;case K:{var Pe=t.type;return rr(Pe)&&Fs(t),zn(t),null}case He:{zo(t);var Ie=t.memoizedState;if(Ie===null)return zn(t),null;var Ht=(t.flags&Mt)!==Ue,St=Ie.rendering;if(St===null)if(Ht)wu(Ie,!1);else{var pn=nD()&&(e===null||(e.flags&Mt)===Ue);if(!pn)for(var Tt=t.child;Tt!==null;){var cn=sc(Tt);if(cn!==null){Ht=!0,t.flags|=Mt,wu(Ie,!1);var Qn=cn.updateQueue;return Qn!==null&&(t.updateQueue=Qn,t.flags|=wt),t.subtreeFlags=Ue,Y1(t,n),ni(t,Ev(Ya.current,du)),t.child}Tt=Tt.sibling}Ie.tail!==null&&kn()>zb()&&(t.flags|=Mt,Ht=!0,wu(Ie,!1),t.lanes=hh)}else{if(!Ht){var $n=sc(St);if($n!==null){t.flags|=Mt,Ht=!0;var wa=$n.updateQueue;if(wa!==null&&(t.updateQueue=wa,t.flags|=wt),wu(Ie,!0),Ie.tail===null&&Ie.tailMode==="hidden"&&!St.alternate&&!Un())return zn(t),null}else kn()*2-Ie.renderingStartTime>zb()&&n!==Da&&(t.flags|=Mt,Ht=!0,wu(Ie,!1),t.lanes=hh)}if(Ie.isBackwards)St.sibling=t.child,t.child=St;else{var oa=Ie.last;oa!==null?oa.sibling=St:t.child=St,Ie.last=St}}if(Ie.tail!==null){var la=Ie.tail;Ie.rendering=la,Ie.tail=la.sibling,Ie.renderingStartTime=kn(),la.sibling=null;var Kn=Ya.current;return Ht?Kn=Ev(Kn,du):Kn=Ho(Kn),ni(t,Kn),la}return zn(t),null}case ce:break;case le:case ht:{Bp(t);var Nr=t.memoizedState,Ko=Nr!==null;if(e!==null){var Fu=e.memoizedState,dr=Fu!==null;dr!==Ko&&(t.flags|=Ci)}return!Ko||(t.mode&dt)===je?zn(t):ba(fr,Da)&&(zn(t),t.subtreeFlags&(Ln|wt)&&(t.flags|=Ci)),null}case yt:return null;case ze:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eR(e,t,n){switch(Kd(t),t.tag){case se:{var a=t.type;rr(a)&&Fs(t);var r=t.flags;return r&za?(t.flags=r&-65537|Mt,(t.mode&Nt)!==je&&Xv(t),t):null}case W:{t.stateNode,Uo(t),qd(t),xv();var i=t.flags;return(i&za)!==Ue&&(i&Mt)===Ue?(t.flags=i&-65537|Mt,t):null}case oe:return Sv(t),null;case _e:{zo(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Oo()}var l=t.flags;return l&za?(t.flags=l&-65537|Mt,(t.mode&Nt)!==je&&Xv(t),t):null}case He:return zo(t),null;case D:return Uo(t),null;case We:var u=t.type._context;return fv(u,t),null;case le:case ht:return Bp(t),null;case yt:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case se:{var a=t.type.childContextTypes;a!=null&&Fs(t);break}case W:{t.stateNode,Uo(t),qd(t),xv();break}case oe:{Sv(t);break}case D:Uo(t);break;case _e:zo(t);break;case He:zo(t);break;case We:var r=t.type._context;fv(r,t);break;case le:case ht:Bp(t);break}}var bb=null;bb=new Set;var Ac=!1,Pn=!1,tR=typeof WeakSet=="function"?WeakSet:Set,be=null,Yo=null,Io=null;function nR(e){Rf(null,function(){throw e}),Df()}var aR=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Nt)try{sr(),t.componentWillUnmount()}finally{ur(e)}else t.componentWillUnmount()};function Sb(e,t){try{ii(Tn,e)}catch(n){It(e,t,n)}}function Rp(e,t,n){try{aR(e,n)}catch(a){It(e,t,a)}}function rR(e,t,n){try{n.componentDidMount()}catch(a){It(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){It(e,t,n)}}function Wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Kt&&Ot&&e.mode&Nt)try{sr(),a=n(null)}finally{ur(e)}else a=n(null)}catch(r){It(e,t,r)}typeof a=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){It(e,t,a)}}var Eb=!1;function iR(e,t){yx(e.containerInfo),be=t,oR();var n=Eb;return Eb=!1,n}function oR(){for(;be!==null;){var e=be,t=e.child;(e.subtreeFlags&Af)!==Ue&&t!==null?(t.return=e,be=t):lR()}}function lR(){for(;be!==null;){var e=be;nn(e);try{uR(e)}catch(n){It(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function uR(e){var t=e.alternate,n=e.flags;if((n&co)!==Ue){switch(nn(e),e.tag){case Se:case J:case V:break;case se:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!$i&&(i.props!==e.memoizedProps&&f("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.",Ge(e)||"instance"),i.state!==e.memoizedState&&f("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.",Ge(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Wa(e.type,a),r);{var l=bb;o===void 0&&!l.has(e.type)&&(l.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ge(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case W:{{var u=e.stateNode;Bx(u.containerInfo)}break}case oe:case Be:case D:case K: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.")}Mn()}}function Ga(e,t,n){var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next,o=i;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&((e&Hn)!==va?CT(t):(e&Tn)!==va&&fh(t),(e&ir)!==va&&zu(!0),jc(t,n,l),(e&ir)!==va&&zu(!1),(e&Hn)!==va?xT():(e&Tn)!==va&&dh())}o=o.next}while(o!==i)}}function ii(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&Hn)!==va?TT(t):(e&Tn)!==va&&wT(t);var o=i.create;(e&ir)!==va&&zu(!0),i.destroy=o(),(e&ir)!==va&&zu(!1),(e&Hn)!==va?ET():(e&Tn)!==va&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Tn)!==Ue?u="useLayoutEffect":(i.tag&ir)!==Ue?u="useInsertionEffect":u="useEffect";var c=void 0;l===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?c=`
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
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`:c=" You returned: "+l,f("%s must not return anything besides a function, which is used for clean-up.%s",u,c)}}}i=i.next}while(i!==r)}}function sR(e,t){if((t.flags&wt)!==Ue)switch(t.tag){case mt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=zg(),l=t.alternate===null?"mount":"update";Hg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case W:var c=u.stateNode;c.passiveEffectDuration+=n;break e;case mt:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function cR(e,t,n,a){if((n.flags&Sl)!==Ue)switch(n.tag){case Se:case J:case V:{if(!Pn)if(n.mode&Nt)try{sr(),ii(Tn|Sn,n)}finally{ur(n)}else ii(Tn|Sn,n);break}case se:{var r=n.stateNode;if(n.flags&wt&&!Pn)if(t===null)if(n.type===n.elementType&&!$i&&(r.props!==n.memoizedProps&&f("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ge(n)||"instance")),n.mode&Nt)try{sr(),r.componentDidMount()}finally{ur(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Wa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!$i&&(r.props!==n.memoizedProps&&f("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ge(n)||"instance")),n.mode&Nt)try{sr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{ur(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!$i&&(r.props!==n.memoizedProps&&f("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ge(n)||"instance")),ug(n,l,r));break}case W:{var u=n.updateQueue;if(u!==null){var c=null;if(n.child!==null)switch(n.child.tag){case oe:c=n.child.stateNode;break;case se:c=n.child.stateNode;break}ug(n,u,c)}break}case oe:{var d=n.stateNode;if(t===null&&n.flags&wt){var y=n.type,h=n.memoizedProps;_x(d,y,h)}break}case Be:break;case D:break;case mt:{{var _=n.memoizedProps,k=_.onCommit,j=_.onRender,ue=n.stateNode.effectDuration,ke=zg(),Ce=t===null?"mount":"update";Hg()&&(Ce="nested-update"),typeof j=="function"&&j(n.memoizedProps.id,Ce,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof k=="function"&&k(n.memoizedProps.id,Ce,ue,ke),lD(n);var pt=n.return;e:for(;pt!==null;){switch(pt.tag){case W:var rt=pt.stateNode;rt.effectDuration+=ue;break e;case mt:var w=pt.stateNode;w.effectDuration+=ue;break e}pt=pt.return}}}break}case _e:{gR(e,n);break}case He:case K:case ce:case le:case ht:case ze: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.")}Pn||n.flags&Ti&&Cb(n)}function fR(e){switch(e.tag){case Se:case J:case V:{if(e.mode&Nt)try{sr(),Sb(e,e.return)}finally{ur(e)}else Sb(e,e.return);break}case se:{var t=e.stateNode;typeof t.componentDidMount=="function"&&rR(e,e.return,t),Tb(e,e.return);break}case oe:{Tb(e,e.return);break}}}function dR(e,t){for(var n=null,a=e;;){if(a.tag===oe){if(n===null){n=a;try{var r=a.stateNode;t?zx(r):Vx(a.stateNode,a.memoizedProps)}catch(o){It(e,e.return,o)}}}else if(a.tag===Be){if(n===null)try{var i=a.stateNode;t?Px(i):Fx(i,a.memoizedProps)}catch(o){It(e,e.return,o)}}else if(!((a.tag===le||a.tag===ht)&&a.memoizedState!==null&&a!==e)){if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;n===a&&(n=null),a=a.return}n===a&&(n=null),a.sibling.return=a.return,a=a.sibling}}function Cb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case oe:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Nt)try{sr(),r=t(a)}finally{ur(e)}else r=t(a);typeof r=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else t.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ge(e)),t.current=a}}function vR(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function xb(e){var t=e.alternate;t!==null&&(e.alternate=null,xb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===oe){var n=e.stateNode;n!==null&&b1(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function pR(e){for(var t=e.return;t!==null;){if(wb(t))return t;t=t.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 wb(e){return e.tag===oe||e.tag===W||e.tag===D}function Rb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||wb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==oe&&t.tag!==Be&&t.tag!==Bt;){if(t.flags&Ln||t.child===null||t.tag===D)continue e;t.child.return=t,t=t.child}if(!(t.flags&Ln))return t.stateNode}}function mR(e){var t=pR(e);switch(t.tag){case oe:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=Rb(e);_p(e,a,n);break}case W:case D:{var r=t.stateNode.containerInfo,i=Rb(e);Dp(e,i,r);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Dp(e,t,n){var a=e.tag,r=a===oe||a===Be;if(r){var i=e.stateNode;t?jx(n,i,t):Ox(n,i)}else if(a!==D){var o=e.child;if(o!==null){Dp(o,t,n);for(var l=o.sibling;l!==null;)Dp(l,t,n),l=l.sibling}}}function _p(e,t,n){var a=e.tag,r=a===oe||a===Be;if(r){var i=e.stateNode;t?Ax(n,i,t):kx(n,i)}else if(a!==D){var o=e.child;if(o!==null){_p(o,t,n);for(var l=o.sibling;l!==null;)_p(l,t,n),l=l.sibling}}}var Vn=null,Xa=!1;function hR(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case oe:{Vn=a.stateNode,Xa=!1;break e}case W:{Vn=a.stateNode.containerInfo,Xa=!0;break e}case D:{Vn=a.stateNode.containerInfo,Xa=!0;break e}}a=a.return}if(Vn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Db(e,t,n),Vn=null,Xa=!1}vR(n)}function oi(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(yT(n),n.tag){case oe:Pn||Wo(n,t);case Be:{{var a=Vn,r=Xa;Vn=null,oi(e,t,n),Vn=a,Xa=r,Vn!==null&&(Xa?Ux(Vn,n.stateNode):Nx(Vn,n.stateNode))}return}case Bt:{Vn!==null&&(Xa?Hx(Vn,n.stateNode):Pd(Vn,n.stateNode));return}case D:{{var i=Vn,o=Xa;Vn=n.stateNode.containerInfo,Xa=!0,oi(e,t,n),Vn=i,Xa=o}return}case Se:case J:case Me:case V:{if(!Pn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var c=u.next,d=c;do{var y=d,h=y.destroy,_=y.tag;h!==void 0&&((_&ir)!==va?jc(n,t,h):(_&Tn)!==va&&(fh(n),n.mode&Nt?(sr(),jc(n,t,h),ur(n)):jc(n,t,h),dh())),d=d.next}while(d!==c)}}}oi(e,t,n);return}case se:{if(!Pn){Wo(n,t);var k=n.stateNode;typeof k.componentWillUnmount=="function"&&Rp(n,t,k)}oi(e,t,n);return}case ce:{oi(e,t,n);return}case le:{if(n.mode&dt){var j=Pn;Pn=j||n.memoizedState!==null,oi(e,t,n),Pn=j}else oi(e,t,n);break}default:{oi(e,t,n);return}}}function yR(e){e.memoizedState}function gR(e,t){var n=t.memoizedState;if(n===null){var a=t.alternate;if(a!==null){var r=a.memoizedState;if(r!==null){var i=r.dehydrated;i!==null&&n1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tR),t.forEach(function(a){var r=pD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Pa)if(Yo!==null&&Io!==null)Hu(Io,Yo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function bR(e,t,n){Yo=n,Io=e,nn(t),Mb(t,e),nn(t),Yo=null,Io=null}function Qa(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{hR(e,t,i)}catch(u){It(i,t,u)}}var o=Wu();if(t.subtreeFlags&jf)for(var l=t.child;l!==null;)nn(l),Mb(l,e),l=l.sibling;nn(o)}function Mb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case Se:case J:case Me:case V:{if(Qa(t,e),cr(e),r&wt){try{Ga(ir|Sn,e,e.return),ii(ir|Sn,e)}catch(Pe){It(e,e.return,Pe)}if(e.mode&Nt){try{sr(),Ga(Tn|Sn,e,e.return)}catch(Pe){It(e,e.return,Pe)}ur(e)}else try{Ga(Tn|Sn,e,e.return)}catch(Pe){It(e,e.return,Pe)}}return}case se:{Qa(t,e),cr(e),r&Ti&&a!==null&&Wo(a,a.return);return}case oe:{Qa(t,e),cr(e),r&Ti&&a!==null&&Wo(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(Pe){It(e,e.return,Pe)}}if(r&wt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{Mx(o,d,c,u,l,e)}catch(Pe){It(e,e.return,Pe)}}}}return}case Be:{if(Qa(t,e),cr(e),r&wt){if(e.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 y=e.stateNode,h=e.memoizedProps,_=a!==null?a.memoizedProps:h;try{Lx(y,_,h)}catch(Pe){It(e,e.return,Pe)}}return}case W:{if(Qa(t,e),cr(e),r&wt&&a!==null){var k=a.memoizedState;if(k.isDehydrated)try{t1(t.containerInfo)}catch(Pe){It(e,e.return,Pe)}}return}case D:{Qa(t,e),cr(e);return}case _e:{Qa(t,e),cr(e);var j=e.child;if(j.flags&Ci){var ue=j.stateNode,ke=j.memoizedState,Ce=ke!==null;if(ue.isHidden=Ce,Ce){var pt=j.alternate!==null&&j.alternate.memoizedState!==null;pt||JR()}}if(r&wt){try{yR(e)}catch(Pe){It(e,e.return,Pe)}_b(e)}return}case le:{var rt=a!==null&&a.memoizedState!==null;if(e.mode&dt){var w=Pn;Pn=w||rt,Qa(t,e),Pn=w}else Qa(t,e);if(cr(e),r&Ci){var N=e.stateNode,R=e.memoizedState,$=R!==null,me=e;if(N.isHidden=$,$&&!rt&&(me.mode&dt)!==je){be=me;for(var fe=me.child;fe!==null;)be=fe,TR(fe),fe=fe.sibling}dR(me,$)}return}case He:{Qa(t,e),cr(e),r&wt&&_b(e);return}case ce:return;default:{Qa(t,e),cr(e);return}}}function cr(e){var t=e.flags;if(t&Ln){try{mR(e)}catch(n){It(e,e.return,n)}e.flags&=-3}t&Ei&&(e.flags&=-4097)}function SR(e,t,n){Yo=n,Io=t,be=e,Lb(e,t,n),Yo=null,Io=null}function Lb(e,t,n){for(var a=(e.mode&dt)!==je;be!==null;){var r=be,i=r.child;if(r.tag===le&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){Mp(e,t,n);continue}else{var u=r.alternate,c=u!==null&&u.memoizedState!==null,d=c||Pn,y=Ac,h=Pn;Ac=l,Pn=d,Pn&&!h&&(be=r,ER(r));for(var _=i;_!==null;)be=_,Lb(_,t,n),_=_.sibling;be=r,Ac=y,Pn=h,Mp(e,t,n);continue}}(r.subtreeFlags&Sl)!==Ue&&i!==null?(i.return=r,be=i):Mp(e,t,n)}}function Mp(e,t,n){for(;be!==null;){var a=be;if((a.flags&Sl)!==Ue){var r=a.alternate;nn(a);try{cR(t,r,a,n)}catch(o){It(a,a.return,o)}Mn()}if(a===e){be=null;return}var i=a.sibling;if(i!==null){i.return=a.return,be=i;return}be=a.return}}function TR(e){for(;be!==null;){var t=be,n=t.child;switch(t.tag){case Se:case J:case Me:case V:{if(t.mode&Nt)try{sr(),Ga(Tn,t,t.return)}finally{ur(t)}else Ga(Tn,t,t.return);break}case se:{Wo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Rp(t,t.return,a);break}case oe:{Wo(t,t.return);break}case le:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,be=n):kb(e)}}function kb(e){for(;be!==null;){var t=be;if(t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function ER(e){for(;be!==null;){var t=be,n=t.child;if(t.tag===le){var a=t.memoizedState!==null;if(a){Ob(e);continue}}n!==null?(n.return=t,be=n):Ob(e)}}function Ob(e){for(;be!==null;){var t=be;nn(t);try{fR(t)}catch(a){It(t,t.return,a)}if(Mn(),t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function CR(e,t,n,a){be=t,xR(t,e,n,a)}function xR(e,t,n,a){for(;be!==null;){var r=be,i=r.child;(r.subtreeFlags&fo)!==Ue&&i!==null?(i.return=r,be=i):wR(e,t,n,a)}}function wR(e,t,n,a){for(;be!==null;){var r=be;if((r.flags&Fr)!==Ue){nn(r);try{RR(t,r,n,a)}catch(o){It(r,r.return,o)}Mn()}if(r===e){be=null;return}var i=r.sibling;if(i!==null){i.return=r.return,be=i;return}be=r.return}}function RR(e,t,n,a){switch(t.tag){case Se:case J:case V:{if(t.mode&Nt){Gv();try{ii(Hn|Sn,t)}finally{qv(t)}}else ii(Hn|Sn,t);break}}}function DR(e){be=e,_R()}function _R(){for(;be!==null;){var e=be,t=e.child;if((be.flags&bi)!==Ue){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];be=r,kR(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}be=e}}(e.subtreeFlags&fo)!==Ue&&t!==null?(t.return=e,be=t):MR()}}function MR(){for(;be!==null;){var e=be;(e.flags&Fr)!==Ue&&(nn(e),LR(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function LR(e){switch(e.tag){case Se:case J:case V:{e.mode&Nt?(Gv(),Ga(Hn|Sn,e,e.return),qv(e)):Ga(Hn|Sn,e,e.return);break}}}function kR(e,t){for(;be!==null;){var n=be;nn(n),AR(n,t),Mn();var a=n.child;a!==null?(a.return=n,be=a):OR(e)}}function OR(e){for(;be!==null;){var t=be,n=t.sibling,a=t.return;if(xb(t),t===e){be=null;return}if(n!==null){n.return=a,be=n;return}be=a}}function AR(e,t){switch(e.tag){case Se:case J:case V:{e.mode&Nt?(Gv(),Ga(Hn,e,t),qv(e)):Ga(Hn,e,t);break}}}function jR(e){switch(e.tag){case Se:case J:case V:{try{ii(Tn|Sn,e)}catch(n){It(e,e.return,n)}break}case se:{var t=e.stateNode;try{t.componentDidMount()}catch(n){It(e,e.return,n)}break}}}function NR(e){switch(e.tag){case Se:case J:case V:{try{ii(Hn|Sn,e)}catch(t){It(e,e.return,t)}break}}}function UR(e){switch(e.tag){case Se:case J:case V:{try{Ga(Tn|Sn,e,e.return)}catch(n){It(e,e.return,n)}break}case se:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Rp(e,e.return,t);break}}}function HR(e){switch(e.tag){case Se:case J:case V:try{Ga(Hn|Sn,e,e.return)}catch(t){It(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Ru=Symbol.for;Ru("selector.component"),Ru("selector.has_pseudo_class"),Ru("selector.role"),Ru("selector.test_id"),Ru("selector.text")}var zR=[];function PR(){zR.forEach(function(e){return e()})}var VR=he.ReactCurrentActQueue;function FR(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Ab(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&VR.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var BR=Math.ceil,Lp=he.ReactCurrentDispatcher,kp=he.ReactCurrentOwner,Fn=he.ReactCurrentBatchConfig,Ka=he.ReactCurrentActQueue,xn=0,jb=1,Bn=2,Aa=4,kr=0,Du=1,Yi=2,Nc=3,_u=4,Nb=5,Op=6,vt=xn,ra=null,ln=null,wn=B,fr=B,Ap=Qr(B),Rn=kr,Mu=null,Uc=B,Lu=B,Hc=B,ku=null,pa=null,jp=0,Ub=500,Hb=1/0,$R=500,Or=null;function Ou(){Hb=kn()+$R}function zb(){return Hb}var zc=!1,Np=null,qo=null,Ii=!1,li=null,Au=B,Up=[],Hp=null,YR=50,ju=0,zp=null,Pp=!1,Pc=!1,IR=50,Go=0,Vc=null,Nu=Xt,Fc=B,Pb=!1;function Bc(){return ra}function ia(){return(vt&(Bn|Aa))!==xn?kn():(Nu!==Xt||(Nu=kn()),Nu)}function ui(e){var t=e.mode;if((t&dt)===je)return Ve;if((vt&Bn)!==xn&&wn!==B)return Dl(wn);var n=V1()!==P1;if(n){if(Fn.transition!==null){var a=Fn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Fc===An&&(Fc=Sh()),Fc}var r=Va();if(r!==An)return r;var i=xx();return i}function WR(e){var t=e.mode;return(t&dt)===je?Ve:GT()}function Dn(e,t,n,a){hD(),Pb&&f("useInsertionEffect must not schedule updates."),Pp&&(Pc=!0),_l(e,n,a),(vt&Bn)!==B&&e===ra?bD(t):(Pa&&Ch(e,t,n),SD(t),e===ra&&((vt&Bn)===xn&&(Lu=tt(Lu,n)),Rn===_u&&si(e,wn)),ma(e,a),n===Ve&&vt===xn&&(t.mode&dt)===je&&!Ka.isBatchingLegacy&&(Ou(),Py()))}function qR(e,t,n){var a=e.current;a.lanes=t,_l(e,t,n),ma(e,n)}function GR(e){return(vt&Bn)!==xn}function ma(e,t){var n=e.callbackNode;BT(e,t);var a=ss(e,e===ra?wn:B);if(a===B){n!==null&&t0(n),e.callbackNode=null,e.callbackPriority=An;return}var r=Mi(a),i=e.callbackPriority;if(i===r&&!(Ka.current!==null&&n!==Wp)){n==null&&i!==Ve&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&t0(n);var o;if(r===Ve)e.tag===Kr?(Ka.isBatchingLegacy!==null&&(Ka.didScheduleLegacyUpdate=!0),E1(Bb.bind(null,e))):zy(Bb.bind(null,e)),Ka.current!==null?Ka.current.push(Zr):Rx(function(){(vt&(Bn|Aa))===xn&&Zr()}),o=null;else{var l;switch(Rh(a)){case Sa:l=is;break;case Er:l=Nf;break;case Cr:l=Ri;break;case ds:l=Uf;break;default:l=Ri;break}o=qp(l,Vb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Vb(e,t){if(dw(),Nu=Xt,Fc=B,(vt&(Bn|Aa))!==xn)throw new Error("Should not already be working.");var n=e.callbackNode,a=jr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===ra?wn:B);if(r===B)return null;var i=!cs(e,r)&&!qT(e,r)&&!t,o=i?rD(e,r):Yc(e,r);if(o!==kr){if(o===Yi){var l=rd(e);l!==B&&(r=l,o=Vp(e,l))}if(o===Du){var u=Mu;throw Wi(e,B),si(e,r),ma(e,kn()),u}if(o===Op)si(e,r);else{var c=!cs(e,r),d=e.current.alternate;if(c&&!QR(d)){if(o=Yc(e,r),o===Yi){var y=rd(e);y!==B&&(r=y,o=Vp(e,y))}if(o===Du){var h=Mu;throw Wi(e,B),si(e,r),ma(e,kn()),h}}e.finishedWork=d,e.finishedLanes=r,XR(e,o,r)}}return ma(e,kn()),e.callbackNode===n?Vb.bind(null,e):null}function Vp(e,t){var n=ku;if(vs(e)){var a=Wi(e,t);a.flags|=Si,m1(e.containerInfo)}var r=Yc(e,t);if(r!==Yi){var i=pa;pa=n,i!==null&&Fb(i)}return r}function Fb(e){pa===null?pa=e:pa.push.apply(pa,e)}function XR(e,t,n){switch(t){case kr:case Du:throw new Error("Root did not complete. This is a bug in React.");case Yi:{qi(e,pa,Or);break}case Nc:{if(si(e,n),gh(n)&&!n0()){var a=jp+Ub-kn();if(a>10){var r=ss(e,B);if(r!==B)break;var i=e.suspendedLanes;if(!go(i,n)){ia(),Eh(e,i);break}e.timeoutHandle=Hd(qi.bind(null,e,pa,Or),a);break}}qi(e,pa,Or);break}case _u:{if(si(e,n),WT(n))break;if(!n0()){var o=VT(e,n),l=o,u=kn()-l,c=mD(u)-u;if(c>10){e.timeoutHandle=Hd(qi.bind(null,e,pa,Or),c);break}}qi(e,pa,Or);break}case Nb:{qi(e,pa,Or);break}default:throw new Error("Unknown root exit status.")}}function QR(e){for(var t=e;;){if(t.flags&_f){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!Ea(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&_f&&u!==null){u.return=t,t=u;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function si(e,t){t=fs(t,Hc),t=fs(t,Lu),QT(e,t)}function Bb(e){if(vw(),(vt&(Bn|Aa))!==xn)throw new Error("Should not already be working.");jr();var t=ss(e,B);if(!ba(t,Ve))return ma(e,kn()),null;var n=Yc(e,t);if(e.tag!==Kr&&n===Yi){var a=rd(e);a!==B&&(t=a,n=Vp(e,a))}if(n===Du){var r=Mu;throw Wi(e,B),si(e,t),ma(e,kn()),r}if(n===Op)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,qi(e,pa,Or),ma(e,kn()),null}function KR(e,t){t!==B&&(ud(e,tt(t,Ve)),ma(e,kn()),(vt&(Bn|Aa))===xn&&(Ou(),Zr()))}function Fp(e,t){var n=vt;vt|=jb;try{return e(t)}finally{vt=n,vt===xn&&!Ka.isBatchingLegacy&&(Ou(),Py())}}function ZR(e,t,n,a,r){var i=Va(),o=Fn.transition;try{return Fn.transition=null,jn(Sa),e(t,n,a,r)}finally{jn(i),Fn.transition=o,vt===xn&&Ou()}}function Ar(e){li!==null&&li.tag===Kr&&(vt&(Bn|Aa))===xn&&jr();var t=vt;vt|=jb;var n=Fn.transition,a=Va();try{return Fn.transition=null,jn(Sa),e?e():void 0}finally{jn(a),Fn.transition=n,vt=t,(vt&(Bn|Aa))===xn&&Zr()}}function $b(){return(vt&(Bn|Aa))!==xn}function $c(e,t){Gn(Ap,fr,e),fr=tt(fr,t)}function Bp(e){fr=Ap.current,qn(Ap,e)}function Wi(e,t){e.finishedWork=null,e.finishedLanes=B;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,wx(n)),ln!==null)for(var a=ln.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}ra=e;var i=Gi(e.current,null);return ln=i,wn=fr=t,Rn=kr,Mu=null,Uc=B,Lu=B,Hc=B,ku=null,pa=null,q1(),$a.discardPendingWarnings(),i}function Yb(e,t){do{var n=ln;try{if(Js(),pg(),Mn(),kp.current=null,n===null||n.return===null){Rn=Du,Mu=t,ln=null;return}if(Kt&&n.mode&Nt&&_c(n,!0),ot)if(po(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;_T(n,a,wn)}else DT(n,t,wn);Ew(e,n.return,n,t,wn),Gb(n)}catch(r){t=r,ln===n&&n!==null?(n=n.return,ln=n):n=ln;continue}return}while(!0)}function Ib(){var e=Lp.current;return Lp.current=Cc,e===null?Cc:e}function Wb(e){Lp.current=e}function JR(){jp=kn()}function Uu(e){Uc=tt(e,Uc)}function eD(){Rn===kr&&(Rn=Nc)}function $p(){(Rn===kr||Rn===Nc||Rn===Yi)&&(Rn=_u),ra!==null&&(id(Uc)||id(Lu))&&si(ra,wn)}function tD(e){Rn!==_u&&(Rn=Yi),ku===null?ku=[e]:ku.push(e)}function nD(){return Rn===kr}function Yc(e,t){var n=vt;vt|=Bn;var a=Ib();if(ra!==e||wn!==t){if(Pa){var r=e.memoizedUpdaters;r.size>0&&(Hu(e,wn),r.clear()),xh(e,t)}Or=wh(),Wi(e,t)}vh(t);do try{aD();break}catch(i){Yb(e,i)}while(!0);if(Js(),vt=n,Wb(a),ln!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ph(),ra=null,wn=B,Rn}function aD(){for(;ln!==null;)qb(ln)}function rD(e,t){var n=vt;vt|=Bn;var a=Ib();if(ra!==e||wn!==t){if(Pa){var r=e.memoizedUpdaters;r.size>0&&(Hu(e,wn),r.clear()),xh(e,t)}Or=wh(),Ou(),Wi(e,t)}vh(t);do try{iD();break}catch(i){Yb(e,i)}while(!0);return Js(),Wb(a),vt=n,ln!==null?(AT(),kr):(ph(),ra=null,wn=B,Rn)}function iD(){for(;ln!==null&&!lT();)qb(ln)}function qb(e){var t=e.alternate;nn(e);var n;(e.mode&Nt)!==je?(Wv(e),n=Yp(t,e,fr),_c(e,!0)):n=Yp(t,e,fr),Mn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):ln=n,kp.current=null}function Gb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===Ue){nn(t);var r=void 0;if((t.mode&Nt)===je?r=yb(n,t,fr):(Wv(t),r=yb(n,t,fr),_c(t,!1)),Mn(),r!==null){ln=r;return}}else{var i=eR(n,t);if(i!==null){i.flags&=tT,ln=i;return}if((t.mode&Nt)!==je){_c(t,!1);for(var o=t.actualDuration,l=t.child;l!==null;)o+=l.actualDuration,l=l.sibling;t.actualDuration=o}if(a!==null)a.flags|=rs,a.subtreeFlags=Ue,a.deletions=null;else{Rn=Op,ln=null;return}}var u=t.sibling;if(u!==null){ln=u;return}t=a,ln=t}while(t!==null);Rn===kr&&(Rn=Nb)}function qi(e,t,n){var a=Va(),r=Fn.transition;try{Fn.transition=null,jn(Sa),oD(e,t,n,a)}finally{Fn.transition=r,jn(a)}return null}function oD(e,t,n,a){do jr();while(li!==null);if(yD(),(vt&(Bn|Aa))!==xn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(ST(i),r===null)return ch(),null;if(i===B&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=B,r===e.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.");e.callbackNode=null,e.callbackPriority=An;var o=tt(r.lanes,r.childLanes);KT(e,o),e===ra&&(ra=null,ln=null,wn=B),((r.subtreeFlags&fo)!==Ue||(r.flags&fo)!==Ue)&&(Ii||(Ii=!0,Hp=n,qp(Ri,function(){return jr(),null})));var l=(r.subtreeFlags&(Af|jf|Sl|fo))!==Ue,u=(r.flags&(Af|jf|Sl|fo))!==Ue;if(l||u){var c=Fn.transition;Fn.transition=null;var d=Va();jn(Sa);var y=vt;vt|=Aa,kp.current=null,iR(e,r),Pg(),bR(e,r,i),gx(e.containerInfo),e.current=r,MT(i),SR(r,e,i),LT(),uT(),vt=y,jn(d),Fn.transition=c}else e.current=r,Pg();var h=Ii;if(Ii?(Ii=!1,li=e,Au=i):(Go=0,Vc=null),o=e.pendingLanes,o===B&&(qo=null),h||Zb(e.current,!1),mT(r.stateNode,a),Pa&&e.memoizedUpdaters.clear(),PR(),ma(e,kn()),t!==null)for(var _=e.onRecoverableError,k=0;k<t.length;k++){var j=t[k],ue=j.stack,ke=j.digest;_(j.value,{componentStack:ue,digest:ke})}if(zc){zc=!1;var Ce=Np;throw Np=null,Ce}return ba(Au,Ve)&&e.tag!==Kr&&jr(),o=e.pendingLanes,ba(o,Ve)?(fw(),e===zp?ju++:(ju=0,zp=e)):ju=0,Zr(),ch(),null}function jr(){if(li!==null){var e=Rh(Au),t=tE(Cr,e),n=Fn.transition,a=Va();try{return Fn.transition=null,jn(t),uD()}finally{jn(a),Fn.transition=n}}return!1}function lD(e){Up.push(e),Ii||(Ii=!0,qp(Ri,function(){return jr(),null}))}function uD(){if(li===null)return!1;var e=Hp;Hp=null;var t=li,n=Au;if(li=null,Au=B,(vt&(Bn|Aa))!==xn)throw new Error("Cannot flush passive effects while already rendering.");Pp=!0,Pc=!1,kT(n);var a=vt;vt|=Aa,DR(t.current),CR(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];sR(t,o)}}OT(),Zb(t.current,!0),vt=a,Zr(),Pc?t===Vc?Go++:(Go=0,Vc=t):Go=0,Pp=!1,Pc=!1,hT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return qo!==null&&qo.has(e)}function sD(e){qo===null?qo=new Set([e]):qo.add(e)}function cD(e){zc||(zc=!0,Np=e)}var fD=cD;function Qb(e,t,n){var a=Bi(n,t),r=qg(e,a,Ve),i=ei(e,r,Ve),o=ia();i!==null&&(_l(i,Ve,o),ma(i,o))}function It(e,t,n){if(nR(n),zu(!1),e.tag===W){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===W){Qb(a,e,n);return}else if(a.tag===se){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Bi(n,e),l=cp(a,o,Ve),u=ei(a,l,Ve),c=ia();u!==null&&(_l(u,Ve,c),ma(u,c));return}}a=a.return}f(`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`,n)}function dD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ia();Eh(e,n),TD(e),ra===e&&go(wn,n)&&(Rn===_u||Rn===Nc&&gh(wn)&&kn()-jp<Ub?Wi(e,B):Hc=tt(Hc,n)),ma(e,r)}function Kb(e,t){t===An&&(t=WR(e));var n=ia(),a=da(e,t);a!==null&&(_l(a,t,n),ma(a,n))}function vD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),Kb(e,n)}function pD(e,t){var n=An,a;switch(e.tag){case _e:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case He:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),Kb(e,n)}function mD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:BR(e/1960)*1960}function hD(){if(ju>YR)throw ju=0,zp=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.");Go>IR&&(Go=0,Vc=null,f("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 yD(){$a.flushLegacyContextWarning(),$a.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){nn(e),Ic(e,Br,UR),t&&Ic(e,Of,HR),Ic(e,Br,jR),t&&Ic(e,Of,NR),Mn()}function Ic(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ue?a=a.child:((a.flags&t)!==Ue&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Wc=null;function Jb(e){{if((vt&Bn)!==xn||!(e.mode&dt))return;var t=e.tag;if(t!==it&&t!==W&&t!==se&&t!==Se&&t!==J&&t!==Me&&t!==V)return;var n=Ge(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=ea;try{nn(e),f("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{a?nn(e):Mn()}}}var Yp;{var gD=null;Yp=function(e,t,n){var a=l0(gD,t);try{return db(e,t,n)}catch(i){if(L1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),pg(),gb(e,t),l0(t,a),t.mode&Nt&&Wv(t),Rf(null,db,null,e,t,n),ZS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var e0=!1,Ip;Ip=new Set;function bD(e){if(mi&&!uw())switch(e.tag){case Se:case J:case V:{var t=ln&&Ge(ln)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Ge(e)||"Unknown";f("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",a,t,t)}break}case se:{e0||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),e0=!0);break}}}function Hu(e,t){if(Pa){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Wp={};function qp(e,t){{var n=Ka.current;return n!==null?(n.push(t),Wp):sh(e,t)}}function t0(e){if(e!==Wp)return oT(e)}function n0(){return Ka.current!==null}function SD(e){{if(e.mode&dt){if(!Ab())return}else if(!FR()||vt!==xn||e.tag!==Se&&e.tag!==J&&e.tag!==V)return;if(Ka.current===null){var t=ea;try{nn(e),f(`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`,Ge(e))}finally{t?nn(e):Mn()}}}}function TD(e){e.tag!==Kr&&Ab()&&Ka.current===null&&f(`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 zu(e){Pb=e}var ja=null,Xo=null,ED=function(e){ja=e};function Qo(e){{if(ja===null)return e;var t=ja(e);return t===void 0?e:t.current}}function Gp(e){return Qo(e)}function Xp(e){{if(ja===null)return e;var t=ja(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=Qo(e.render);if(e.render!==n){var a={$$typeof:g,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function a0(e,t){{if(ja===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case se:{typeof a=="function"&&(r=!0);break}case Se:{(typeof a=="function"||i===Ee)&&(r=!0);break}case J:{(i===g||i===Ee)&&(r=!0);break}case Me:case V:{(i===ee||i===Ee)&&(r=!0);break}default:return!1}if(r){var o=ja(n);if(o!==void 0&&o===ja(a))return!0}return!1}}function r0(e){{if(ja===null||typeof WeakSet!="function")return;Xo===null&&(Xo=new WeakSet),Xo.add(e)}}var CD=function(e,t){{if(ja===null)return;var n=t.staleFamilies,a=t.updatedFamilies;jr(),Ar(function(){Qp(e.current,a,n)})}},xD=function(e,t){{if(e.context!==Ca)return;jr(),Ar(function(){Pu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case Se:case V:case se:u=l;break;case J:u=l.render;break}if(ja===null)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(u!==null){var y=ja(u);y!==void 0&&(n.has(y)?d=!0:t.has(y)&&(o===se?d=!0:c=!0))}if(Xo!==null&&(Xo.has(e)||a!==null&&Xo.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var h=da(e,Ve);h!==null&&Dn(h,e,Ve,Xt)}r!==null&&!d&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var wD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case Se:case V:case se:l=o;break;case J:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function RD(e,t){{var n=DD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case oe:t.add(a.stateNode);return;case D:t.add(a.stateNode.containerInfo);return;case W:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function DD(e,t){for(var n=e,a=!1;;){if(n.tag===oe)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Zp;{Zp=!1;try{var i0=Object.preventExtensions({})}catch{Zp=!0}}function _D(e,t,n,a){this.tag=e,this.key=n,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=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=Ue,this.subtreeFlags=Ue,this.deletions=null,this.lanes=B,this.childLanes=B,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,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var xa=function(e,t,n,a){return new _D(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function MD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function LD(e){if(typeof e=="function")return Jp(e)?se:Se;if(e!=null){var t=e.$$typeof;if(t===g)return J;if(t===ee)return Me}return it}function Gi(e,t){var n=e.alternate;n===null?(n=xa(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=Ue,n.subtreeFlags=Ue,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Sr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var a=e.dependencies;switch(n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case it:case Se:case V:n.type=Qo(e.type);break;case se:n.type=Gp(e.type);break;case J:n.type=Xp(e.type);break}return n}function kD(e,t){e.flags&=Sr|Ln;var n=e.alternate;if(n===null)e.childLanes=B,e.lanes=t,e.child=null,e.subtreeFlags=Ue,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=Ue,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function OD(e,t,n){var a;return e===$s?(a=dt,t===!0&&(a|=sn,a|=tr)):a=je,Pa&&(a|=Nt),xa(W,null,null,a)}function em(e,t,n,a,r,i){var o=it,l=e;if(typeof e=="function")Jp(e)?(o=se,l=Gp(l)):l=Qo(l);else if(typeof e=="string")o=oe;else e:switch(e){case x:return ci(n.children,r,i,t);case X:o=Et,r|=sn,(r&dt)!==je&&(r|=tr);break;case F:return AD(n,r,i,t);case P:return jD(n,r,i,t);case G:return ND(n,r,i,t);case Ct:return o0(n,r,i,t);case At:case et:case st:case ct:case $e:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:o=We;break e;case p:o=kt;break e;case g:o=J,l=Xp(l);break e;case ee:o=Me;break e;case Ee:o=nt,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 c=a?Ge(a):null;c&&(u+=`
Check the render method of \``+c+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var d=xa(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function ci(e,t,n,a){var r=xa(zt,e,a,t);return r.lanes=n,r}function AD(e,t,n,a){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=xa(mt,e,a,t|Nt);return r.elementType=F,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function jD(e,t,n,a){var r=xa(_e,e,a,t);return r.elementType=P,r.lanes=n,r}function ND(e,t,n,a){var r=xa(He,e,a,t);return r.elementType=G,r.lanes=n,r}function o0(e,t,n,a){var r=xa(le,e,a,t);r.elementType=Ct,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=xa(Be,e,null,t);return a.lanes=n,a}function UD(){var e=xa(oe,null,null,je);return e.elementType="DELETED",e}function HD(e){var t=xa(Bt,null,null,je);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=xa(D,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function l0(e,t){return e===null&&(e=xa(it,null,null,je)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function zD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=ld(B),this.expirationTimes=ld(Xt),this.pendingLanes=B,this.suspendedLanes=B,this.pingedLanes=B,this.expiredLanes=B,this.mutableReadLanes=B,this.finishedLanes=B,this.entangledLanes=B,this.entanglements=ld(B),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<zf;o++)i.push(new Set)}switch(t){case $s:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case Kr:this._debugRootType=n?"hydrate()":"render()";break}}function u0(e,t,n,a,r,i,o,l,u,c){var d=new zD(e,t,n,l,u),y=OD(t,i);d.current=y,y.stateNode=d;{var h={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};y.memoizedState=h}return hv(y),d}var rm="18.3.1";function PD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return ut(a),{$$typeof:O,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function s0(e){if(!e)return Ca;var t=uo(e),n=T1(t);if(t.tag===se){var a=t.type;if(rr(a))return Uy(t,a,n)}return n}function VD(e,t){{var n=uo(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=oh(n);if(r===null)return null;if(r.mode&sn){var i=Ge(n)||"Component";if(!om[i]){om[i]=!0;var o=ea;try{nn(r),n.mode&sn?f("%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",t,t,i):f("%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",t,t,i)}finally{o?nn(o):Mn()}}}return r.stateNode}}function c0(e,t,n,a,r,i,o,l){var u=!1,c=null;return u0(e,t,u,c,n,a,r,i,o)}function f0(e,t,n,a,r,i,o,l,u,c){var d=!0,y=u0(n,a,d,e,r,i,o,l,u);y.context=s0(null);var h=y.current,_=ia(),k=ui(h),j=Mr(_,k);return j.callback=t??null,ei(h,j,k),qR(y,k,_),y}function Pu(e,t,n,a){pT(t,e);var r=t.current,i=ia(),o=ui(r);jT(o);var l=s0(n);t.context===null?t.context=l:t.pendingContext=l,mi&&ea!==null&&!im&&(im=!0,f(`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.`,Ge(ea)||"Unknown"));var u=Mr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var c=ei(r,u,o);return c!==null&&(Dn(c,r,o,i),rc(c,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case oe:return t.child.stateNode;default:return t.child.stateNode}}function FD(e){switch(e.tag){case W:{var t=e.stateNode;if(vs(t)){var n=$T(t);KR(t,n)}break}case _e:{Ar(function(){var r=da(e,Ve);if(r!==null){var i=ia();Dn(r,e,Ve,i)}});var a=Ve;lm(e,a);break}}}function d0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=XT(n.retryLane,t))}function lm(e,t){d0(e,t);var n=e.alternate;n&&d0(n,t)}function BD(e){if(e.tag===_e){var t=xl,n=da(e,t);if(n!==null){var a=ia();Dn(n,e,t,a)}lm(e,t)}}function $D(e){if(e.tag===_e){var t=ui(e),n=da(e,t);if(n!==null){var a=ia();Dn(n,e,t,a)}lm(e,t)}}function v0(e){var t=iT(e);return t===null?null:t.stateNode}var p0=function(e){return null};function YD(e){return p0(e)}var m0=function(e){return!1};function ID(e){return m0(e)}var h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null,C0=null,x0=null;{var w0=function(e,t,n){var a=t[n],r=at(e)?e.slice():Xe({},e);return n+1===t.length?(at(r)?r.splice(a,1):delete r[a],r):(r[a]=w0(e[a],t,n+1),r)},R0=function(e,t){return w0(e,t,0)},D0=function(e,t,n,a){var r=t[a],i=at(e)?e.slice():Xe({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],at(i)?i.splice(r,1):delete i[r]}else i[r]=D0(e[r],t,n,a+1);return i},_0=function(e,t,n){if(t.length!==n.length){Oe("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Oe("copyWithRename() expects paths to be the same except for the deepest key");return}return D0(e,t,n,0)},M0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=at(e)?e.slice():Xe({},e);return i[r]=M0(e[r],t,n+1,a),i},L0=function(e,t,n){return M0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=L0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Xe({},e.memoizedProps);var o=da(e,Ve);o!==null&&Dn(o,e,Ve,Xt)}},y0=function(e,t,n){var a=um(e,t);if(a!==null){var r=R0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Xe({},e.memoizedProps);var i=da(e,Ve);i!==null&&Dn(i,e,Ve,Xt)}},g0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Xe({},e.memoizedProps);var o=da(e,Ve);o!==null&&Dn(o,e,Ve,Xt)}},b0=function(e,t,n){e.pendingProps=L0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Ve);a!==null&&Dn(a,e,Ve,Xt)},S0=function(e,t){e.pendingProps=R0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=da(e,Ve);n!==null&&Dn(n,e,Ve,Xt)},T0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Ve);a!==null&&Dn(a,e,Ve,Xt)},E0=function(e){var t=da(e,Ve);t!==null&&Dn(t,e,Ve,Xt)},C0=function(e){p0=e},x0=function(e){m0=e}}function WD(e){var t=oh(e);return t===null?null:t.stateNode}function qD(e){return null}function GD(){return ea}function XD(e){var t=e.findFiberByHostInstance,n=he.ReactCurrentDispatcher;return vT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:h0,overrideHookStateDeletePath:y0,overrideHookStateRenamePath:g0,overrideProps:b0,overridePropsDeletePath:S0,overridePropsRenamePath:T0,setErrorHandler:C0,setSuspenseHandler:x0,scheduleUpdate:E0,currentDispatcherRef:n,findHostInstanceByFiber:WD,findFiberByHostInstance:t||qD,findHostInstancesForRefresh:wD,scheduleRefresh:CD,scheduleRoot:xD,setRefreshHandler:ED,getCurrentFiber:GD,reconcilerVersion:rm})}var k0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xc(arguments[1])?f("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"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==gn){var a=v0(t.current);a&&a.parentNode!==n&&f("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.")}}Pu(e,t,null,null)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&f("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$b()&&f("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."),Ar(function(){Pu(null,e,null,null)}),ky(t)}};function QD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");O0(e);var n=!1,a=!1,r="",i=k0;t!=null&&(t.hydrate?Oe("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===b&&f(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=c0(e,$s,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===gn?e.parentNode:e;return Il(l),new sm(o)}function Gc(e){this._internalRoot=e}function KD(e){e&&dE(e)}Gc.prototype.unstable_scheduleHydration=KD;function ZD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");O0(e),t===void 0&&f("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=k0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var c=f0(t,null,e,$s,a,i,o,l,u);if(Us(c.current,e),Il(e),r)for(var d=0;d<r.length;d++){var y=r[d];nw(c,y)}return new Gc(c)}function Xc(e){return!!(e&&(e.nodeType===ca||e.nodeType===br||e.nodeType===mf))}function Vu(e){return!!(e&&(e.nodeType===ca||e.nodeType===br||e.nodeType===mf||e.nodeType===gn&&e.nodeValue===" react-mount-point-unstable "))}function O0(e){e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("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."),nu(e)&&(e._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("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 JD=he.ReactCurrentOwner,A0;A0=function(e){if(e._reactRootContainer&&e.nodeType!==gn){var t=v0(e._reactRootContainer.current);t&&t.parentNode!==e&&f("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 n=!!e._reactRootContainer,a=cm(e),r=!!(a&&Xr(a));r&&!n&&f("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."),e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("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 cm(e){return e?e.nodeType===br?e.documentElement:e.firstChild:null}function j0(){}function e_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var h=qc(o);i.call(h)}}var o=f0(t,a,e,Kr,null,!1,!1,"",j0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===gn?e.parentNode:e;return Il(l),Ar(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var c=a;a=function(){var h=qc(d);c.call(h)}}var d=c0(e,Kr,null,!1,!1,"",j0);e._reactRootContainer=d,Us(d.current,e);var y=e.nodeType===gn?e.parentNode:e;return Il(y),Ar(function(){Pu(t,d,n,a)}),d}}function t_(e,t){e!==null&&typeof e!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){A0(n),t_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=e_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Pu(t,o,e,r)}return qc(o)}var N0=!1;function n_(e){{N0||(N0=!0,f("findDOMNode is deprecated and will be removed in the next major release. 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"));var t=JD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||f("%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.",xt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ca?e:VD(e,"findDOMNode")}function a_(e,t,n){if(f("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"),!Vu(t))throw new Error("Target container is not a DOM element.");{var a=nu(t)&&t._reactRootContainer===void 0;a&&f("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 Qc(null,e,t,!0,n)}function r_(e,t,n){if(f("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"),!Vu(t))throw new Error("Target container is not a DOM element.");{var a=nu(t)&&t._reactRootContainer===void 0;a&&f("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 Qc(null,e,t,!1,n)}function i_(e,t,n,a){if(f("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"),!Vu(n))throw new Error("Target container is not a DOM element.");if(e==null||!JS(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var U0=!1;function o_(e){if(U0||(U0=!0,f("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Vu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=nu(e)&&e._reactRootContainer===void 0;t&&f("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(e._reactRootContainer){{var n=cm(e),a=n&&!Xr(n);a&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ar(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&Xr(r)),o=e.nodeType===ca&&Vu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"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}}nE(FD),rE(BD),iE($D),oE(Va),lE(JT),(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")&&f("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"),BS(ux),IS(Fp,ZR,Ar);function l_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(t))throw new Error("Target container is not a DOM element.");return PD(e,t,null,n)}function u_(e,t,n,a){return i_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[Xr,Do,Hs,qm,Gm,Fp]};function s_(e,t){return fm.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),QD(e,t)}function c_(e,t,n){return fm.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),ZD(e,t,n)}function f_(e){return $b()&&f("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."),Ar(e)}var d_=XD({findFiberByHostInstance:Ai,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!d_&&H&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var H0=window.location.protocol;/^(https?|file):$/.test(H0)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(H0==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ua.createPortal=l_,ua.createRoot=s_,ua.findDOMNode=n_,ua.flushSync=f_,ua.hydrate=a_,ua.hydrateRoot=c_,ua.render=r_,ua.unmountComponentAtNode=o_,ua.unstable_batchedUpdates=Fp,ua.unstable_renderSubtreeIntoContainer=u_,ua.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ua}hm.exports=B0();var $0=hm.exports,Sm,Tm=$0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(T,M){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(T,M)}finally{Em.usingClientEntryPoint=!1}}}var ae=Zc();const Y=T=>{if(isNaN(T))return"00:00:00.000";const M=Math.floor(T/3600),he=Math.floor(T%3600/60),xe=Math.floor(T%60),pe=Math.round(T%1*1e3),Oe=String(M).padStart(2,"0"),f=String(he).padStart(2,"0"),Z=String(xe).padStart(2,"0"),Se=String(pe).padStart(3,"0");return`${Oe}:${f}:${Z}.${Se}`},fi=T=>Y(T),Y0=T=>Y(T),I0=({videoRef:T,currentTime:M,duration:he,isPlaying:xe,isMuted:pe=!1,onPlayPause:Oe,onSeek:f,onToggleMute:Z})=>{var yt;const Se=ae.useRef(null),[se,it]=ae.useState(!1),[W,D]=ae.useState(!1),[oe,Be]=ae.useState(null),[zt,Et]=ae.useState(!1),kt=ae.useRef(!1),[We,J]=ae.useState({x:0}),[mt,_e]=ae.useState(0),Me=typeof window<"u"&&((yt=window.MEDIA_DATA)==null?void 0:yt.videoUrl)||"https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";ae.useEffect(()=>{if(it((()=>{const q=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(q)&&!window.MSStream})()),typeof window<"u"){const q=localStorage.getItem("video_initialized")==="true";D(q)}},[]),ae.useEffect(()=>{xe&&!W&&(D(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[xe,W]),ae.useEffect(()=>{T.current&&(T.current.setAttribute("playsinline","true"),T.current.setAttribute("webkit-playsinline","true"),T.current.setAttribute("x-webkit-airplay","allow"))},[T]),ae.useEffect(()=>{Be(M)},[M]);const V=he>0?M/he*100:0,nt=ze=>{ze.preventDefault(),Et(!0),kt.current=!0,K(ze);const q=we=>{kt.current&&K(we)},Ae=()=>{Et(!1),kt.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",Ae)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",Ae)},K=ze=>{if(!Se.current)return;const q=Se.current.getBoundingClientRect(),Ae=Math.max(0,Math.min(1,(ze.clientX-q.left)/q.width)),we=he*Ae;J({x:ze.clientX}),_e(we),Be(we),typeof window<"u"&&(window.lastSeekedPosition=we),f(we)},Bt=ze=>{if(!Se.current||!ze.touches[0])return;ze.preventDefault(),Et(!0),kt.current=!0,He(ze);const q=we=>{kt.current&&He(we)},Ae=()=>{Et(!1),kt.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",Ae),document.removeEventListener("touchcancel",Ae)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",Ae),document.addEventListener("touchcancel",Ae)},He=ze=>{if(!Se.current)return;const q="touches"in ze?ze.touches[0]:null;if(!q)return;ze.preventDefault();const Ae=Se.current.getBoundingClientRect(),we=Math.max(0,Math.min(1,(q.clientX-Ae.left)/Ae.width)),Le=he*we;J({x:q.clientX}),_e(Le),Be(Le),typeof window<"u"&&(window.lastSeekedPosition=Le),f(Le)},ce=ze=>{if(!zt&&Se.current){const q=Se.current.getBoundingClientRect(),Ae=(ze.clientX-q.left)/q.width,we=he*Ae;Be(we),typeof window<"u"&&(window.lastSeekedPosition=we),f(we)}},le=()=>{T.current&&(document.fullscreenElement?document.exitFullscreen():T.current.requestFullscreen())},ht=()=>{const ze=T.current;ze&&(ze.paused?se&&oe!==null&&oe>0?(console.log("iOS: Explicitly setting position before play:",oe),ze.currentTime=oe,setTimeout(()=>{T.current&&T.current.play().then(()=>{var q;console.log("iOS: Play started successfully at position:",(q=T.current)==null?void 0:q.currentTime),D(!0),localStorage.setItem("video_initialized","true")}).catch(q=>{console.error("iOS: Error playing video:",q)})},50)):ze.play().then(()=>{console.log("Normal: Play started successfully")}).catch(q=>{console.error("Error playing video:",q)}):ze.pause(),Oe())};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:T,preload:"auto",crossOrigin:"anonymous",onClick:ht,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:pe,children:[v.jsx("source",{src:Me,type:"video/mp4"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),se&&!W&&!xe&&v.jsx("div",{className:"ios-first-play-indicator",children:v.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),v.jsx("div",{className:`play-pause-indicator ${xe?"pause-icon":"play-icon"}`}),v.jsxs("div",{className:"video-controls",children:[v.jsxs("div",{className:"video-time-display",children:[v.jsx("span",{className:"video-current-time",children:fi(M)}),v.jsxs("span",{className:"video-duration",children:["/ ",fi(he)]})]}),v.jsxs("div",{ref:Se,className:`video-progress ${zt?"dragging":""}`,onClick:ce,onMouseDown:nt,onTouchStart:Bt,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${V}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${V}%`}}),zt&&v.jsx("div",{className:"video-time-tooltip",style:{left:`${We.x}px`,transform:"translateX(-50%)"},children:Y(mt)})]}),v.jsxs("div",{className:"video-controls-buttons",children:[Z&&v.jsx("button",{className:"mute-button","aria-label":pe?"Unmute":"Mute",onClick:Z,"data-tooltip":pe?"Unmute":"Mute",children:pe?v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),v.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),v.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),v.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),v.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:le,"data-tooltip":"Toggle fullscreen",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 010-2h4a1 1 0 011 1v4a1 1 0 01-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 012 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 010 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 010-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"})})})]})]})]})},tf=(T,M)=>{const he=Math.min(Math.max(T/(M||1),0),1),xe=210,pe=40+Math.floor(he*20),Oe=85+Math.floor(he*8);return`hsl(${xe}, ${pe}%, ${Oe}%)`},Cm=async(T,M)=>new Promise(he=>{const xe=document.createElement("canvas");xe.width=10,xe.height=10;const pe=xe.getContext("2d");if(pe){const f=tf(M,T.duration);pe.fillStyle=f,pe.fillRect(0,0,xe.width,xe.height)}const Oe=xe.toDataURL("image/png",.5);he(Oe)}),Xi=({isOpen:T,onClose:M,title:he,children:xe,actions:pe})=>{if(ae.useEffect(()=>{const f=Z=>{Z.key==="Escape"&&T&&M()};return document.addEventListener("keydown",f),T&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f),document.body.style.overflow=""}},[T,M]),!T)return null;const Oe=f=>{f.target===f.currentTarget&&M()};return v.jsx("div",{className:"modal-overlay",onClick:Oe,children:v.jsxs("div",{className:"modal-container",onClick:f=>f.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("h2",{className:"modal-title",children:he}),v.jsx("button",{className:"modal-close-button",onClick:M,"aria-label":"Close modal",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v.jsx("div",{className:"modal-content",children:xe}),pe&&v.jsx("div",{className:"modal-actions",children:pe})]})})},xm=T=>new Promise(M=>setTimeout(M,T)),nf=async(T,M)=>{try{const he=await fetch(`/api/v1/media/${T}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)});if(!he.ok)if(he.status===400)try{return{status:400,error:(await he.json()).error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:400,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else if(he.status!==404)try{const pe=await he.json();return{status:he.status,error:pe.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:he.status,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${T}`};const xe=await he.json();return{status:200,msg:"Video Processed Successfully",url_redirect:xe.url_redirect||`./view?m=${T}`,...xe}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${T}`}}},ne={debug:(...T)=>{},error:(...T)=>console.error(...T),warn:(...T)=>console.warn(...T),info:(...T)=>console.info(...T)},wm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23333333;}%20.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%20%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cpath%20class='st0'%20d='M350.45,277.5l-164.08,94.73c-16.55,9.56-37.24-2.39-37.24-21.5V161.27c0-19.11,20.69-31.06,37.24-21.5%20l164.08,94.73C367,244.06,367,267.94,350.45,277.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M208.15,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C218.47,375.57,213.85,380.19,208.15,380.19z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M395.04,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C405.36,375.57,400.74,380.19,395.04,380.19z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M85.26,277.5l164.08,94.73c16.55,9.56,37.24-2.39,37.24-21.5V161.27c0-19.11-20.69-31.06-37.24-21.5%20L85.26,234.5C68.71,244.06,68.71,267.94,85.26,277.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M377.47,375.59h41.42c11.19,0,20.26-9.07,20.26-20.26V156.67c0-11.19-9.07-20.26-20.26-20.26h-41.42%20c-11.19,0-20.26,9.07-20.26,20.26v198.67C357.21,366.52,366.28,375.59,377.47,375.59z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W0="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",q0="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(28,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G0="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(30,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",X0="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_m=T=>{let M=`${T}%`,he="translateX(-50%)";return T<17?(M="0%",he="none"):T>83&&(M="100%",he="translateX(-100%)"),{left:M,transform:he}},Q0=({currentTime:T,duration:M,thumbnails:he,trimStart:xe,trimEnd:pe,splitPoints:Oe,zoomLevel:f,clipSegments:Z,onTrimStartChange:Se,onTrimEndChange:se,onZoomChange:it,onSeek:W,videoRef:D,onSave:oe,onSaveACopy:Be,onSaveSegments:zt,isPreviewMode:Et,hasUnsavedChanges:kt=!1,isIOSUninitialized:We=!1})=>{const J=ae.useRef(null),mt=ae.useRef(null),_e=ae.useRef(null),[Me,V]=ae.useState(null),[nt,K]=ae.useState(!1),[Bt,He]=ae.useState({x:0,y:0}),[ce,le]=ae.useState(0),[ht,yt]=ae.useState(!1),[ze,q]=ae.useState(30),[Ae,we]=ae.useState(!1),[Le,Qe]=ae.useState(null),[Qt,ot]=ae.useState(0),[Kt,Ot]=ae.useState(!1),lt=ae.useRef(null),rn=S=>{const U=S;let C=null,E=ce;const b=()=>{const O=E,x=U<0?Math.max(0,O+U):Math.min(M,O+U);E=x;const X=Ae;W(x),le(x),ot(x),X&&D.current&&(D.current.play(),we(!0))};return{onMouseDown:O=>{O.stopPropagation(),O.preventDefault(),E=ce,b(),C=window.setTimeout(()=>{C=window.setInterval(b,125)},250);const x=()=>{C&&(clearInterval(C),C=null),document.removeEventListener("mouseup",x),document.removeEventListener("mouseleave",x)};document.addEventListener("mouseup",x),document.addEventListener("mouseleave",x)},onClick:O=>{O.stopPropagation()}}},[Yn,on]=ae.useState(!1),[mn,H]=ae.useState(!1),[te,ye]=ae.useState(!1),[Re,ge]=ae.useState(!1),[qe,ut]=ae.useState(!1),[Je,Ke]=ae.useState(!1),[Wt,$t]=ae.useState(""),[tn,gt]=ae.useState(""),[fn,Zt]=ae.useState(""),[dn,Zn]=ae.useState("save"),sa=M>0?T/M*100:0,Na=M>0?xe/M*100:0,ie=M>0?pe/M*100:0,De=async()=>{var S,U;on(!1),ge(!0),Zn("save");try{const C=Z.map(x=>({startTime:Y(x.startTime),endTime:Y(x.endTime)})),E=typeof window<"u"&&((S=window.MEDIA_DATA)==null?void 0:S.mediaId)||null,b=typeof window<"u"&&((U=window.MEDIA_DATA)==null?void 0:U.redirectURL)||null;ne.debug("Save request:",{mediaId:E,segments:C,saveAsCopy:!1,redirectURL:b});const O=await nf(E,{segments:C,saveAsCopy:!1});if(ne.debug("Save response:",O),ge(!1),O.status===200){const x=b||O.url_redirect;ne.debug("Using redirect URL:",x),Zt(x),$t("Video saved successfully!"),ut(!0)}else if(O.status===400){const x=O.error||"An error occurred during processing";ne.debug("Save error (400):",x),gt(x),Ke(!0)}else ne.debug("Save error (unknown status):",O),gt("An unexpected error occurred"),Ke(!0)}catch(C){ne.error("Error processing video:",C),ge(!1);const E=C instanceof Error?C.message:"An error occurred during processing";gt(E),Ke(!0)}},Ze=async()=>{var S,U;H(!1),ge(!0),Zn("copy");try{const C=Z.map(x=>({startTime:Y(x.startTime),endTime:Y(x.endTime)})),E=typeof window<"u"&&((S=window.MEDIA_DATA)==null?void 0:S.mediaId)||null,b=typeof window<"u"&&((U=window.MEDIA_DATA)==null?void 0:U.redirectUserMediaURL)||null;ne.debug("Save as copy request:",{mediaId:E,segments:C,saveAsCopy:!0,redirectUserMediaURL:b});const O=await nf(E,{segments:C,saveAsCopy:!0});if(ne.debug("Save as copy response:",O),ge(!1),O.status===200){const x=b||O.url_redirect;ne.debug("Using redirect user media URL:",x),Zt(x),$t("Video saved as a new copy!"),ut(!0)}else if(O.status===400){const x=O.error||"An error occurred during processing";ne.debug("Save as copy error (400):",x),gt(x),Ke(!0)}else ne.debug("Save as copy error (unknown status):",O),gt("An unexpected error occurred"),Ke(!0)}catch(C){ne.error("Error processing video:",C),ge(!1);const E=C instanceof Error?C.message:"An error occurred during processing";gt(E),Ke(!0)}},Rt=async()=>{var S,U;ye(!1),ge(!0),Zn("segments");try{const C=Z.map(x=>({startTime:Y(x.startTime),endTime:Y(x.endTime),name:x.name})),E=typeof window<"u"&&((S=window.MEDIA_DATA)==null?void 0:S.mediaId)||null,b=typeof window<"u"&&((U=window.MEDIA_DATA)==null?void 0:U.redirectUserMediaURL)||null;ne.debug("Save segments request:",{mediaId:E,segments:C,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:b});const O=await nf(E,{segments:C,saveAsCopy:!0,saveIndividualSegments:!0});if(ne.debug("Save segments response:",O),ge(!1),O.status===200){const x=b||O.url_redirect;ne.debug("Using redirect user media URL for segments:",x),Zt(x),$t(`${C.length} segments saved successfully!`),ut(!0)}else if(O.status===400){const x=O.error||"An error occurred during processing";ne.debug("Save segments error (400):",x),gt(x),Ke(!0)}else ne.debug("Save segments error (unknown status):",O),gt("An unexpected error occurred"),Ke(!0)}catch(C){ne.error("Error processing video segments:",C),ge(!1);const E=C instanceof Error?C.message:"An error occurred during processing";gt(E),Ke(!0)}};ae.useEffect(()=>{if(lt.current&&J.current&&f>1){const S=lt.current.clientWidth,U=J.current.clientWidth,C=T/M*U,E=Math.max(0,C-S/2);lt.current.scrollTo({left:E,behavior:"smooth"});const b=J.current.getBoundingClientRect();lt.current.getBoundingClientRect();const x=b.left-lt.current.scrollLeft+sa/100*b.width;(Me!==null||nt)&&(He({x,y:b.top-10}),le(T))}},[T,f,M,Me,nt,sa]),ae.useEffect(()=>{const S=D.current;if(!S||!Le||!Ae||Et)return;ne.debug("Segment boundary check ACTIVATED for segment:",Le.id,"Start:",Y(Le.startTime),"End:",Y(Le.endTime));const U=()=>{const C=Le.endTime-S.currentTime;if(Math.round(C*10)%10===0&&ne.debug("Segment playback - time remaining:",Y(C),"Current:",Y(S.currentTime),"End:",Y(Le.endTime),"ContinuePastBoundary:",Kt),S.currentTime>Le.endTime){S.pause(),S.currentTime=Le.endTime,we(!1),Ot(!1),ne.debug("Passed segment end - setting back to exact boundary:",Y(Le.endTime));return}if(Le.endTime-S.currentTime<.05)if(Kt)ne.debug("Continuing past segment boundary:",Y(Le.endTime)),S.currentTime>Le.endTime&&(Ot(!1),Qe(null),sessionStorage.removeItem("continuingPastSegment"));else{S.pause(),S.currentTime=Le.endTime,we(!1),ne.debug("Paused at segment end boundary:",Y(Le.endTime));const b=[...Z].sort((O,x)=>O.startTime-x.startTime).find(O=>O.startTime>Le.endTime);b&&Math.abs(b.startTime-Le.endTime)<.1&&(ne.debug("Found adjacent next segment:",b.id),V(b.id),Qe(b),ot(b.startTime),le(b.startTime),S.currentTime=b.startTime)}};return S.addEventListener("timeupdate",U),()=>{S.removeEventListener("timeupdate",U)}},[Le,Ae,Et,Kt,Z]),ae.useEffect(()=>{if(D.current)if(D.current.paused)D.current.paused&&Ae&&(ot(T),le(T),we(!1),ne.debug("Video paused at:",Y(T)));else{ot(T),le(T),Me!==null&&we(!0);const S=Z.find(E=>T>=E.startTime&&T<=E.endTime),U=T/M*100;if(J.current){const E=J.current.offsetWidth,b=U/100*E;He({x:b,y:J.current.getBoundingClientRect().top-10})}const C=sessionStorage.getItem("continuingPastSegment")==="true";if(S){const E=D.current,b=Le&&Le.id<0&&Ae;if((Le==null?void 0:Le.id)!==S.id&&!b&&!C&&!Kt&&(ne.debug(`Entered a new segment during playback: ${S.id}, setting as active`),Qe(S),V(S.id),K(!1),Ot(!1),sessionStorage.removeItem("continuingPastSegment")),b&&E&&S){ne.debug(`CUTAWAY BOUNDARY REACHED: Current position ${Y(E.currentTime)} at segment ${S.id} - STOPPING at boundary ${Y(S.startTime)}`),E.pause(),setTimeout(()=>{if(D.current){D.current.currentTime=S.startTime,W(S.startTime),ot(S.startTime),le(S.startTime),Ot(!1),V(S.id),K(!1);const x=()=>{D.current&&(D.current.currentTime=S.startTime,W(S.startTime),ot(S.startTime),le(S.startTime),ne.debug(`Position corrected to exact segment boundary: ${Y(D.current.currentTime)} (target: ${Y(S.startTime)})`))};setTimeout(x,10),setTimeout(x,20),setTimeout(x,50),setTimeout(x,100),setTimeout(x,200),D.current.addEventListener("seeked",x),D.current.addEventListener("canplay",x),D.current.addEventListener("waiting",x),setTimeout(()=>{D.current&&(D.current.removeEventListener("seeked",x),D.current.removeEventListener("canplay",x),D.current.removeEventListener("waiting",x))},300)}},10),we(!1),Qe(null);return}Le===null&&Ae===!0||C||b?(Me!==S.id||nt)&&(ne.debug("Tooltip updated for segment during continued playback:",S.id,b?"(cutaway playback - keeping virtual segment)":""),V(S.id),K(!1),!b&&sessionStorage.getItem("lastSegmentId")!==S.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Le==null?void 0:Le.id)!==S.id||nt)&&(ne.debug("Playback moved into segment:",S.id),V(S.id),Qe(S),K(!1),sessionStorage.setItem("lastSegmentId",S.id.toString()))}else if(Le!==null||!nt){V(null),Qe(null);const E=Dt(T);q(E),E>=.5?K(!0):K(!1)}}},[T,Ae,Le,Me,Z]),ae.useEffect(()=>{const S=U=>{const C=U.target;ht&&!C.closest(".zoom-dropdown-container")&&yt(!1)};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[ht]),ae.useEffect(()=>{const S=U=>{const C=U.target;(Me!==null||nt)&&!C.closest(".empty-space-tooltip")&&!C.closest(".segment-tooltip")&&!C.closest(".timeline-marker-head")&&!C.closest(".clip-segment")&&!C.closest(".timeline-container")&&(Ae&&(we(!1),Qe(null)),Ot(!1),V(null),K(!1))};return document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[Me,nt,Ae]),ae.useEffect(()=>{const S=mt.current,U=_e.current,C=J.current;if(!S||!U||!C)return;const E=b=>O=>{O.preventDefault();const x=C.getBoundingClientRect();let X=!0,F=b?xe:pe;const I=P=>new CustomEvent("trim-handle-event",{detail:{type:P,isStart:b}});document.dispatchEvent(I("drag-start"));const p=P=>{if(!X)return;const G=x.width,Ee=Math.max(0,Math.min(1,(P.clientX-x.left)/G))*M;typeof window<"u"&&(window.lastSeekedPosition=Ee),b?Ee<pe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Ee,isStart:!0,recordHistory:!1}})),F=Ee):Ee>xe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Ee,isStart:!1,recordHistory:!1}})),F=Ee)},g=()=>{X=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g),b?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:F,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:F,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(I("drag-end"))};document.addEventListener("mousemove",p),document.addEventListener("mouseup",g)};return S.addEventListener("mousedown",E(!0)),U.addEventListener("mousedown",E(!1)),()=>{S.removeEventListener("mousedown",E(!0)),U.removeEventListener("mousedown",E(!1))}},[M,xe,pe,Se,se]);const Yt=()=>{const S=he.length||10;return Array.from({length:S}).map((U,C)=>{const E=M/S,b=C*E,O=b+E,x=(b+O)/2,X=tf(x,M);return v.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/S}%`,backgroundColor:X}},C)})},Jt=()=>Oe.map((S,U)=>{const C=S/M*100;return v.jsx("div",{className:"split-point",style:{left:`${C}%`}},U)}),Dt=S=>{const U=Math.max(0,M-S);if(M-S<.3)return ne.debug("Very close to end of video, ensuring tooltip can show:",Y(S),"video end:",Y(M)),.5;const C=[...Z].sort((O,x)=>O.startTime-x.startTime);if(C.some(O=>Math.abs(S-O.startTime)<.01||Math.abs(S-O.endTime)<.01))return .5;const b=C.find(O=>O.startTime>S);if(b){const O=Math.max(0,b.startTime-S);return Math.min(30,O)}else return Math.min(30,U)},_n=S=>{if(!J.current||!lt.current||We)return;const U=D.current&&!D.current.paused;Ot(!1);const C=J.current.getBoundingClientRect();let E;if(f>1){const X=lt.current.scrollLeft,F=J.current.clientWidth;E=(S.clientX-C.left+X)/F}else E=(S.clientX-C.left)/C.width;const b=E*M;ne.debug("Timeline clicked at:",Y(b),"distance from end:",Y(M-b)),typeof window<"u"&&(window.lastSeekedPosition=b),W(b),le(b),ot(b);const O=M-b<.3,x=Z.find(X=>{const F=b>=X.startTime&&b<=X.endTime,I=Math.abs(b-X.startTime)<.01,p=Math.abs(b-X.endTime)<.01;return F||I||p});if(x&&Qe(x),(U||Et)&&D.current&&D.current.play().then(()=>{we(!0)}).catch(X=>{console.error("Error resuming playback:",X),we(!1)}),S.target===J.current||S.target.classList.contains("timeline-thumbnail")){if(O){V(null),K(!0),q(.5);let F;if(f>1){const I=C.left-lt.current.scrollLeft,p=b/M;F=I+p*C.width}else F=S.clientX;He({x:F,y:C.top-10});return}if(Z.some(F=>Math.abs(b-F.startTime)<.01||Math.abs(b-F.endTime)<.01)){ne.debug("Clicked exactly at segment boundary:",Y(b));const F=Z.find(I=>Math.abs(b-I.startTime)<.01||Math.abs(b-I.endTime)<.01);if(F&&Math.abs(b-F.endTime)<.01){V(F.id),K(!1);let I;if(f>1){const p=C.left-lt.current.scrollLeft,g=b/M;I=p+g*C.width}else I=S.clientX;He({x:I,y:C.top-10});return}}if(x)V(x.id),K(!1);else{V(null);const F=Dt(b);if(q(F),F<.5){K(!1);return}let I;if(f>1){const g=C.left-lt.current.scrollLeft,P=b/M;I=g+P*C.width}else I=S.clientX;He({x:I,y:C.top-10}),K(!0);const p=g=>{g.target,document.removeEventListener("mousedown",p)};document.addEventListener("mousedown",p)}}},Pt=(S,U)=>C=>{if(C.preventDefault(),C.stopPropagation(),!J.current)return;J.current.getBoundingClientRect().width;const b=Z.find(Ct=>Ct.id===S);if(!b)return;const O=b.startTime,x=b.endTime,X={...b};document.body.style.cursor="ew-resize";const F=document.createElement("div");F.style.position="fixed",F.style.top="0",F.style.left="0",F.style.width="100vw",F.style.height="100vh",F.style.zIndex="1000",F.style.cursor="ew-resize",document.body.appendChild(F);let I=!0,p=O,g=x;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:S}})),V(null),K(!1);const P=Ct=>{if(!I||!J.current)return;const At=J.current.getBoundingClientRect(),ct=Math.max(0,Math.min(1,(Ct-At.left)/At.width))*M,vn=Z.filter(hn=>hn.id!==S);let un=O,bt=x;if(U){un=Math.min(ct,x-.5);const _t=vn.filter(ga=>ga.endTime<=O).sort((ga,vr)=>vr.endTime-ga.endTime)[0];_t&&un<_t.endTime&&(un=_t.endTime),_t&&Math.abs(un-_t.endTime)<.3&&(un=_t.endTime),p=un}else{bt=Math.max(ct,O+.5);const _t=vn.filter(ga=>ga.startTime>=x).sort((ga,vr)=>ga.startTime-vr.startTime)[0];_t&&bt>_t.startTime&&(bt=_t.startTime),_t&&Math.abs(bt-_t.startTime)<.3&&(bt=_t.startTime),g=bt}const Xe=Z.map(hn=>hn.id===S?{...hn,startTime:un,endTime:bt}:hn),Ua=new CustomEvent("update-segments",{detail:{segments:Xe,recordHistory:!1}});if(document.dispatchEvent(Ua),Me===S&&D.current){const hn=D.current.currentTime,_t=Xe.find(Jn=>Jn.id===S);if(_t){const Jn=hn>=_t.startTime&&hn<=_t.endTime;ne.debug(`During drag - playhead at ${Y(hn)} is ${Jn?"inside":"outside"} segment (${Y(_t.startTime)} - ${Y(_t.endTime)})`),!Jn&&Ae&&(D.current.pause(),we(!1),Qe(null)),hn<_t.startTime?(ne.debug(`Adjusting display time to segment start: ${Y(_t.startTime)}`),ot(_t.startTime),le(_t.startTime)):hn>_t.endTime&&(ne.debug(`Adjusting display time to segment end: ${Y(_t.endTime)}`),ot(_t.endTime),le(_t.endTime))}}},G=()=>{if(!I)return;I=!1,document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Ee),document.removeEventListener("touchmove",et),document.removeEventListener("touchend",$e),document.removeEventListener("touchcancel",$e),document.body.style.cursor="",document.body.contains(F)&&document.body.removeChild(F),V(null),K(!1);const Ct=Z.map(st=>st.id===S?{...st,startTime:p,endTime:g}:st),At=U?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:Ct,recordHistory:!0,action:At}})),Me===S&&D.current){const st=D.current.currentTime,ct=Ct.find(vn=>vn.id===S);if(ct){const vn=st>=ct.startTime&&st<=ct.endTime;ne.debug(`Drag complete - playhead at ${Y(st)} is ${vn?"inside":"outside"} segment (${Y(ct.startTime)} - ${Y(ct.endTime)})`);const un=st>=X.startTime&&st<=X.endTime;vn?!un&&vn?(Qe(ct),Et&&D.current.play().then(()=>{we(!0)}).catch(bt=>{console.error("Error starting playback:",bt)})):un&&vn&&(ct.startTime!==X.startTime||ct.endTime!==X.endTime)&&Qe(ct):(Ae&&(D.current.pause(),we(!1),Qe(null),Ot(!1)),st<ct.startTime?(ne.debug(`Final adjustment - setting display time to segment start: ${Y(ct.startTime)}`),ot(ct.startTime),le(ct.startTime)):st>ct.endTime&&(ne.debug(`Final adjustment - setting display time to segment end: ${Y(ct.endTime)}`),ot(ct.endTime),le(ct.endTime)))}}},ee=Ct=>{P(Ct.clientX)},Ee=()=>{G()},et=Ct=>{Ct.touches.length>0&&(Ct.preventDefault(),P(Ct.touches[0].clientX))},$e=()=>{G()};document.addEventListener("mousemove",ee,{passive:!1}),document.addEventListener("mouseup",Ee),document.addEventListener("touchmove",et,{passive:!1}),document.addEventListener("touchend",$e),document.addEventListener("touchcancel",$e)},Vt=S=>U=>{if(U.target.classList.contains("clip-segment-handle"))return;U.preventDefault(),U.stopPropagation(),Ot(!1);const C=D.current&&!D.current.paused;V(S);const E=Z.find(g=>g.id===S);if(!E)return;const O=U.currentTarget.getBoundingClientRect(),x=(U.clientX-O.left)/O.width,X=E.startTime+x*(E.endTime-E.startTime),F=Math.max(E.startTime,Math.min(E.endTime,X));if(le(F),ot(F),D.current){const g=D.current.currentTime,P=g>=E.startTime&&g<=E.endTime;ne.debug(`Segment click - playhead at ${Y(g)} is ${P?"inside":"outside"} segment (${Y(E.startTime)} - ${Y(E.endTime)})`),P||(Math.abs(g-E.startTime)<Math.abs(g-E.endTime)?(ne.debug(`Playhead outside segment - adjusting to segment start: ${Y(E.startTime)}`),ot(E.startTime)):(ne.debug(`Playhead outside segment - adjusting to segment end: ${Y(E.endTime)}`),ot(E.endTime)))}W(F),(C||Et)&&D.current&&(Qe(E),Ot(!1),D.current.play().then(()=>{we(!0)}).catch(g=>{console.error("Error resuming playback after segment click:",g)})),Et&&D.current&&(Qe(E),D.current.play().then(()=>{we(!0)}).catch(g=>{console.error("Error continuing preview playback:",g)}));const I=U.clientX,p=O.top-10;if(He({x:I,y:p}),f>1&&J.current&&lt.current){J.current.getBoundingClientRect();const g=J.current.clientWidth,P=lt.current.clientWidth,G=F/M*g,ee=Math.max(0,G-P/2);lt.current.scrollTo({left:ee,behavior:"smooth"}),setTimeout(()=>{if(J.current&&lt.current){const Ee=J.current.getBoundingClientRect(),$e=F/M*g-lt.current.scrollLeft+Ee.left;He({x:$e,y:p})}},300)}},Ft=()=>Z.map((S,U)=>{const C=S.startTime/M*100,E=(S.endTime-S.startTime)/M*100,b=tf((S.startTime+S.endTime)/2,M);return v.jsxs("div",{className:`clip-segment ${Me===S.id?"selected":""}`,style:{left:`${C}%`,width:`${E}%`,backgroundColor:b,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Vt(S.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Segment ",U+1]}),v.jsxs("div",{className:"clip-segment-time",children:[fi(S.startTime)," - ",fi(S.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",fi(S.endTime-S.startTime)]})]}),v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:O=>{O.stopPropagation(),Pt(S.id,!0)(O)},onTouchStart:O=>{O.stopPropagation(),Pt(S.id,!0)(O)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:O=>{O.stopPropagation(),Pt(S.id,!1)(O)},onTouchStart:O=>{O.stopPropagation(),Pt(S.id,!1)(O)}})]},S.id)});ae.useEffect(()=>{const S=U=>{const{segmentId:C}=U.detail;if(Me===C){const E=Z.findIndex(b=>b.id===C);if(E!==-1){const b=Z[E],O=T,x=O>=b.startTime&&O<=b.endTime,X=(b.startTime+b.endTime)/2,F=x?O:X,I=Dt(F);if(V(null),I>=.5){if(le(F),ot(F),J.current){const p=J.current.getBoundingClientRect(),g=F/M*100,P=p.left+p.width*(g/100);He({x:P,y:p.top-10}),q(I),K(!0),ne.debug("Segment deleted, showing cutaway tooltip with available space:",Y(I),"at position:",Y(F))}}else K(!1)}}};return document.addEventListener("delete-segment",S),()=>{document.removeEventListener("delete-segment",S)}},[Me,Z,T,M]),ae.useEffect(()=>{const S=D.current;if(!S)return;const U=()=>{we(!0)},C=()=>{we(!1)};return S.addEventListener("play",U),S.addEventListener("pause",C),()=>{S.removeEventListener("play",U),S.removeEventListener("pause",C)}},[]);const Za=S=>{if(!J.current)return;const U=J.current.getBoundingClientRect(),E=(S.clientX-U.left)/U.width*M,b=Math.max(0,Math.min(M,E));typeof window<"u"&&(window.lastSeekedPosition=b)},[ha,In]=ae.useState(!1),ya=ae.useRef(!1),Ur=S=>{if(We)return;S.stopPropagation(),S.preventDefault(),In(!0),ya.current=!0;const U=Z.find(b=>{const O=T>=b.startTime&&T<=b.endTime,x=Math.abs(T-b.startTime)<.001,X=Math.abs(T-b.endTime)<.001;return O||x||X});if(U)V(U.id),K(!1);else{const b=Dt(T);q(b),b>=.5&&(V(null),K(!0))}const C=b=>{if(!J.current||!lt.current)return;const O=J.current.getBoundingClientRect();let x;if(f>1){const p=lt.current.scrollLeft,g=J.current.clientWidth;x=(b.clientX-O.left+p)/g}else x=(b.clientX-O.left)/O.width;x=Math.max(0,Math.min(1,x));const X=x*M;le(X),ot(X);const F=Z.find(p=>X>=p.startTime&&X<=p.endTime),I=F?0:Dt(X);if(F?(V(F.id),K(!1)):I>=.5?(V(null),K(!0),q(I)):(V(null),K(!1)),(F||I>=.5)&&J.current){const p=J.current.getBoundingClientRect();let g=b.clientX;if(f>1&&lt.current){const P=p.left-lt.current.scrollLeft,G=X/M;g=P+p.width*G}He({x:g,y:p.top-10})}typeof window<"u"&&(window.lastSeekedPosition=X),W(X)},E=()=>{In(!1),ya.current=!1,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},Hr=S=>{if(We)return;S.stopPropagation(),In(!0),ya.current=!0;const U=Z.find(b=>{const O=T>=b.startTime&&T<=b.endTime,x=Math.abs(T-b.startTime)<.001,X=Math.abs(T-b.endTime)<.001;return O||x||X});if(U)V(U.id),K(!1);else{const b=Dt(T);q(b),b>=.5&&(V(null),K(!0))}const C=b=>{if(!J.current||!lt.current||!b.touches[0])return;const O=J.current.getBoundingClientRect();let x;if(f>1){const F=lt.current.scrollLeft,I=J.current.clientWidth;x=(b.touches[0].clientX-O.left+F)/I}else x=(b.touches[0].clientX-O.left)/O.width;x=Math.max(0,Math.min(1,x));const X=x*M;le(X),ot(X),typeof window<"u"&&(window.lastSeekedPosition=X),W(X)},E=()=>{In(!1),ya.current=!1,document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E)};document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E)};return ae.useEffect(()=>{},[fn,dn,qe]),ae.useEffect(()=>{let S,U;if(qe&&fn){let C=10;S=setInterval(()=>{C--;const E=document.querySelector(".countdown");E&&(E.textContent=C.toString()),C<=0&&clearInterval(S)},1e3),U=setTimeout(()=>{oe&&oe(),window.location.href=fn},1e4)}return()=>{S&&clearInterval(S),U&&clearTimeout(U)}},[qe,fn,oe]),v.jsxs("div",{className:"timeline-container-card",children:[v.jsxs("div",{className:"timeline-header",children:[v.jsx("div",{className:"timeline-title",children:v.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),v.jsxs("div",{className:"duration-time",children:["Total Segments: ",v.jsx("span",{children:Y(Z.reduce((S,U)=>S+(U.endTime-U.startTime),0))})]})]}),v.jsx("div",{ref:lt,className:"timeline-scroll-container",style:{overflow:f>1?"auto":"hidden"},children:v.jsxs("div",{ref:J,className:"timeline-container",onClick:_n,onMouseMove:Za,style:{width:`${f*100}%`,cursor:"pointer"},children:[v.jsx("div",{className:"timeline-marker",style:{left:`${sa}%`},children:v.jsx("div",{className:`timeline-marker-head ${ha?"dragging":""}`,onClick:S=>{if(S.stopPropagation(),Z.find(U=>T>=U.startTime&&T<=U.endTime),Me||nt){V(null),K(!1);return}else{const U=Z.find(C=>{const E=T>=C.startTime&&T<=C.endTime,b=Math.abs(T-C.startTime)<.001,O=Math.abs(T-C.endTime)<.001;return E||b||O});if(ne.debug("Checking for segment at marker:",U?`Found segment ${U.id}`:"No segment found"),U)V(U.id);else{const C=Dt(T);q(C),C>=.5&&(V(null),K(!0))}}},onMouseDown:Ur,onTouchStart:Hr,children:v.jsx("span",{className:"timeline-marker-head-icon",children:Me||nt?"-":"+"})})}),Z.length===0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"trim-line-marker",style:{left:`${Na}%`},children:v.jsx("div",{ref:mt,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${ie}%`},children:v.jsx("div",{ref:_e,className:"trim-handle right"})})]}),Ft(),Jt(),Yt(),Me!==null&&v.jsxs("div",{className:"segment-tooltip two-row-tooltip",style:{position:"absolute",..._m(sa)},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...rn(-.05),children:"-50ms"}),v.jsx("div",{className:"tooltip-time-display",children:Y(Qt)}),v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...rn(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsx("button",{className:"tooltip-action-btn delete","data-tooltip":"Delete segment",onClick:S=>{S.stopPropagation();const U=new CustomEvent("delete-segment",{detail:{segmentId:Me}});document.dispatchEvent(U)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M3 6h18"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),v.jsx("button",{className:"tooltip-action-btn scissors","data-tooltip":"Split segment at current position",onClick:S=>{S.stopPropagation();const U=new CustomEvent("split-segment",{detail:{segmentId:Me,time:ce}});document.dispatchEvent(U)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"6",cy:"6",r:"3"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),v.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),v.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),v.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play segment from beginning",onClick:S=>{S.stopPropagation();const U=Z.find(C=>C.id===Me);if(U&&D.current){if(Ot(!0),Math.abs(D.current.currentTime-U.endTime)<.05){ne.debug(`Already at end boundary (${Y(D.current.currentTime)}), nudging position back slightly`);const C=Math.max(U.startTime,U.endTime-.1);D.current.currentTime=C,W(C),le(C),ne.debug(`Position adjusted to ${Y(C)}`)}else W(U.startTime),le(U.startTime);Qe(U),D.current.play().then(()=>{we(!0)}).catch(C=>{console.error("Error playing from beginning:",C)})}},children:v.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Ae?"pause":"play"}`,"data-tooltip":Ae?"Pause playback":"Play from current position",onClick:S=>{S.stopPropagation();const U=Z.find(C=>C.id===Me);if(U&&D.current)if(Ae)D.current.pause(),we(!1),Ot(!1);else{Ot(!0),ne.debug("Play from current position - initial time:",Y(D.current.currentTime));const C=Math.abs(D.current.currentTime-U.endTime)<.001,E=Math.abs(D.current.currentTime-U.endTime)<.05;if(C||E){const b=[...Z].sort((F,I)=>F.startTime-I.startTime),O=b.findIndex(F=>F.id===U.id)+1,x=O<b.length?b[O]:null;if(x&&Math.abs(x.startTime-U.endTime)<.1){ne.debug(`At segment boundary: Moving to adjacent segment ${x.id}`),D.current.currentTime=x.startTime,V(x.id),Qe(x),ot(x.startTime),le(x.startTime),D.current.play().then(()=>{we(!0)}).catch(F=>{console.error("Error playing from adjacent segment:",F)});return}const X=U.endTime+.5;ne.debug("At segment end - repositioning to continue beyond segment boundary:",Y(D.current.currentTime),"->",Y(X)),D.current.currentTime=X,Qe(null),sessionStorage.setItem("continuingPastSegment","true"),sessionStorage.setItem("lastSegmentId",U.id.toString())}else{const b=D.current.currentTime>=U.startTime&&D.current.currentTime<=U.endTime;if(ne.debug("Current position check:",{currentTime:Y(D.current.currentTime),segmentStart:Y(U.startTime),segmentEnd:Y(U.endTime),isWithinSegment:b}),!b){const O=Math.max(U.startTime,Math.min(U.endTime,T));ne.debug("Adjusting position to be within segment:",Y(O)),D.current.currentTime=O}Qe(U),ne.debug("Set active segment for boundary checking:",U.id)}D.current.play().then(()=>{var b;we(!0),ne.debug("Play clicked - continuing from current position:",Y(((b=D.current)==null?void 0:b.currentTime)||0))}).catch(b=>{console.error("Error starting playback:",b)})}},children:Ae?v.jsx("img",{src:Rm,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:wm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn set-in","data-tooltip":"Set start point at current position",onClick:S=>{if(S.stopPropagation(),Z.find(C=>C.id===Me)){const C=Z.map(b=>b.id===Me?{...b,startTime:ce<b.endTime-.5?ce:b.endTime-.5}:b),E=new CustomEvent("update-segments",{detail:{segments:C,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(E)}},children:v.jsx("img",{src:q0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn set-out","data-tooltip":"Set end point at current position",onClick:S=>{if(S.stopPropagation(),Z.find(C=>C.id===Me)){const C=Z.map(b=>b.id===Me?{...b,endTime:ce>b.startTime+.5?ce:b.startTime+.5}:b),E=new CustomEvent("update-segments",{detail:{segments:C,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(E)}},children:v.jsx("img",{src:W0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),nt&&Me===null&&v.jsxs("div",{className:"empty-space-tooltip two-row-tooltip",style:{position:"absolute",..._m(sa)},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...rn(-.05),children:"-50ms"}),v.jsx("div",{className:"tooltip-time-display",children:Y(ce)}),v.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...rn(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[ze>=.5&&v.jsxs("button",{className:"tooltip-action-btn new-segment","data-tooltip":"Create new segment",onClick:async S=>{S.stopPropagation();const U=ce,C=U+ze;if(ze<.5){K(!1);return}const E={id:Date.now(),name:"segment",startTime:U,endTime:C,thumbnail:""},b=[...Z,E],O=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(O),K(!1),setTimeout(()=>{const x=b[b.length-1];x&&(V(x.id),ne.debug("Created and selected new segment:",x.id))},100)},children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),v.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),v.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),v.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play from beginning of cutaway",onClick:S=>{if(S.stopPropagation(),D.current){const U=ce;Ot(!0);const C=[...Z].sort((I,p)=>I.startTime-p.startTime),E=[...C].reverse().find(I=>I.endTime<U),b=E?E.endTime+.025:0,O=C.find(I=>I.startTime>U),x=O?O.startTime:M,X={id:-999,name:"Cutaway",startTime:b,endTime:x,thumbnail:""};W(b),le(b),we(!1),setTimeout(()=>{Qe(X)},0);const F=()=>{if(!D.current)return;const I=D.current.currentTime,p=[...Z].sort((ee,Ee)=>ee.startTime-Ee.startTime),g=p.find(ee=>ee.startTime>I-.3),P=g&&I>=g.startTime-.25&&I<=g.startTime+.1&&!Kt;g&&I>=g.startTime-.25&&I<=g.startTime+.1&&ne.debug(`Approaching boundary at ${Y(g.startTime)}, continuePastBoundary=${Kt}, willStop=${P}`);const G=p.find(ee=>I>=ee.startTime&&I<=ee.endTime);if(G&&(Le==null?void 0:Le.id)!==G.id){ne.debug(`Entered segment ${G.id} during cutaway playback`),Qe(G),V(G.id),K(!1),D.current.removeEventListener("timeupdate",F),Ot(!1),sessionStorage.removeItem("continuingPastSegment");return}if(P&&g){ne.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${Y(I)} approaching segment at ${Y(g.startTime)} (distance: ${Math.abs(I-g.startTime).toFixed(3)}s) - STOPPING`),D.current.pause(),setTimeout(()=>{if(D.current){D.current.currentTime=g.startTime,W(g.startTime),ot(g.startTime),le(g.startTime),Ot(!1),V(g.id),K(!1),Qe(g);const ee=()=>{D.current&&(D.current.currentTime=g.startTime,W(g.startTime),ot(g.startTime),le(g.startTime),ne.debug(`Position corrected to exact segment boundary: ${Y(D.current.currentTime)} (target: ${Y(g.startTime)})`))};setTimeout(ee,10),setTimeout(ee,20),setTimeout(ee,50),setTimeout(ee,100),setTimeout(ee,200),D.current.addEventListener("seeked",ee),D.current.addEventListener("canplay",ee),D.current.addEventListener("waiting",ee),setTimeout(()=>{D.current&&(D.current.removeEventListener("seeked",ee),D.current.removeEventListener("canplay",ee),D.current.removeEventListener("waiting",ee))},300)}},10),we(!1),Qe(null),D.current.removeEventListener("timeupdate",F);return}};D.current.addEventListener("timeupdate",F),setTimeout(()=>{D.current&&D.current.play().then(()=>{we(!0),ne.debug("CUTAWAY PLAYBACK STARTED:",Y(b),"to",Y(x),E?`(after segment ${E.id}, offset +25ms from ${Y(E.endTime)})`:"(from video start)",O?`(will stop at segment ${O.id})`:"(will play to end)")}).catch(I=>{console.error("Error playing cutaway:",I)})},50)}},children:v.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Ae?"pause":"play"}`,"data-tooltip":Ae?"Pause playback":"Play from here until next segment",onClick:S=>{if(S.stopPropagation(),D.current)if(Ae)D.current.pause(),we(!1),Ot(!1);else{Ot(!0);const U=[...Z].sort((I,p)=>I.startTime-p.startTime),C=D.current.currentTime,E=U.find(I=>I.startTime>C);if(E&&Math.abs(C-E.startTime)<.05&&E){ne.debug(`At segment boundary: Moving into segment ${E.id}`),V(E.id),K(!1),Qe(E),D.current.play().then(()=>{we(!0)}).catch(I=>{console.error("Error starting playback:",I)});return}const O=E?E.startTime:M;let x=C;E&&Math.abs(C-E.startTime)<.05&&(ne.debug(`Already at boundary (${Y(C)}), nudging position back slightly`),x=Math.max(0,C-.1),D.current.currentTime=x,W(x),ne.debug(`Position adjusted to ${Y(x)}`));const X={id:-999,name:"Cutaway",startTime:x,endTime:O,thumbnail:""};we(!1),setTimeout(()=>{Qe(X)},0);const F=()=>{if(!D.current)return;const I=D.current.currentTime,p=[...Z].sort((ee,Ee)=>ee.startTime-Ee.startTime),g=p.find(ee=>ee.startTime>I-.3),P=p.find(ee=>I>=ee.startTime&&I<=ee.endTime);if(P&&(Le==null?void 0:Le.id)!==P.id){ne.debug(`Entered segment ${P.id} during cutaway playback`),Qe(P),V(P.id),K(!1),D.current.removeEventListener("timeupdate",F),Ot(!1),sessionStorage.removeItem("continuingPastSegment");return}const G=g&&I>=g.startTime-.25&&I<=g.startTime+.1&&!Kt;if(g&&I>=g.startTime-.25&&I<=g.startTime+.1&&ne.debug(`Approaching boundary at ${Y(g.startTime)}, continuePastBoundary=${Kt}, willStop=${G}`),G&&g){ne.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${Y(I)} approaching segment at ${Y(g.startTime)} (distance: ${Math.abs(I-g.startTime).toFixed(3)}s) - STOPPING`),D.current.pause(),setTimeout(()=>{if(D.current){D.current.currentTime=g.startTime,W(g.startTime),ot(g.startTime),le(g.startTime),Ot(!1),V(g.id),K(!1),Qe(g);const ee=()=>{D.current&&(D.current.currentTime=g.startTime,W(g.startTime),ot(g.startTime),le(g.startTime),ne.debug(`Position corrected to exact segment boundary: ${Y(D.current.currentTime)} (target: ${Y(g.startTime)})`))};setTimeout(ee,10),setTimeout(ee,20),setTimeout(ee,50),setTimeout(ee,100),setTimeout(ee,200),D.current.addEventListener("seeked",ee),D.current.addEventListener("canplay",ee),D.current.addEventListener("waiting",ee),setTimeout(()=>{D.current&&(D.current.removeEventListener("seeked",ee),D.current.removeEventListener("canplay",ee),D.current.removeEventListener("waiting",ee))},300)}},10),we(!1),Qe(null),D.current.removeEventListener("timeupdate",F);return}};D.current.addEventListener("timeupdate",F),setTimeout(()=>{D.current&&D.current.play().then(()=>{we(!0),ne.debug("Play clicked in empty space - position:",Y(C),"will stop at:",Y(O),E?`(start of segment ${E.id})`:"(end of video)")}).catch(I=>{console.error("Error starting playback:",I)})},50)}},children:Ae?v.jsx("img",{src:Rm,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:wm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn segment-end","data-tooltip":"Adjust end of previous segment or create segment from start",onClick:S=>{S.stopPropagation();const C=[...Z].sort((E,b)=>E.startTime-b.startTime).filter(E=>E.endTime<=ce).sort((E,b)=>b.endTime-E.endTime)[0];if(C){const E=Z.map(O=>O.id===C.id?{...O,endTime:ce}:O),b=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(b),ne.debug("Adjusted end of previous segment to:",Y(ce)),V(C.id),K(!1)}else if(Z.length>0){const E=[...Z].sort((x,X)=>x.startTime-X.startTime);let b=!1,O=0;for(let x=0;x<E.length-1;x++){const X=E[x].endTime,F=E[x+1].startTime;if(ce>X&&ce<F){b=!0,O=X;break}}if(b){const x={id:Date.now(),name:"segment",startTime:O,endTime:ce,thumbnail:""},X=[...Z,x],F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(F),ne.debug("Created new segment in gap from",Y(O),"to",Y(ce)),V(x.id),K(!1)}else if(ce<E[0].startTime){const x={id:Date.now(),name:"segment",startTime:0,endTime:ce,thumbnail:""},X=[...Z,x],F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(F),ne.debug("Created new segment from start to:",Y(ce)),V(x.id),K(!1)}else{const x=[...Z].sort((X,F)=>F.endTime-X.endTime)[0];if(x&&x.endTime<M){const X=Z.map(I=>I.id===x.id?{...I,endTime:M}:I),F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(F),V(x.id),K(!1)}}}else if(ce>0){const E={id:Date.now(),name:"segment",startTime:0,endTime:ce,thumbnail:""},b=new CustomEvent("update-segments",{detail:{segments:[E],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(b),ne.debug("Created new segment from start to:",Y(ce)),V(E.id),K(!1)}},children:v.jsx("img",{src:X0,alt:"Set end point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:"tooltip-action-btn segment-start","data-tooltip":"Adjust start of next segment or create segment to end",onClick:S=>{S.stopPropagation();const C=[...Z].sort((E,b)=>E.startTime-b.startTime).filter(E=>E.startTime>=ce).sort((E,b)=>E.startTime-b.startTime)[0];if(C){const E=Z.map(O=>O.id===C.id?{...O,startTime:ce}:O),b=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(b),ne.debug("Adjusted start of next segment to:",Y(ce)),V(C.id),K(!1)}else if(Z.length>0){const E=[...Z].sort((x,X)=>x.startTime-X.startTime);let b=!1,O=0;for(let x=0;x<E.length-1;x++){const X=E[x].endTime,F=E[x+1].startTime;if(ce>X&&ce<F){b=!0,O=F;break}}if(b){const x={id:Date.now(),name:"segment",startTime:ce,endTime:O,thumbnail:""},X=[...Z,x],F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(F),ne.debug("Created new segment in gap from",Y(ce),"to",Y(O)),V(x.id),K(!1)}else if(ce<E[0].startTime){const x={id:Date.now(),name:"segment",startTime:ce,endTime:E[0].startTime,thumbnail:""},X=[...Z,x],F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(F),ne.debug("Created new segment from",Y(ce),"to first segment"),V(x.id),K(!1)}else if(ce>E[E.length-1].endTime){const x={id:Date.now(),name:"segment",startTime:ce,endTime:M,thumbnail:""},X=[...Z,x],F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(F),ne.debug("Created new segment from",Y(ce),"to end"),V(x.id),K(!1)}else{const x=E[0];if(x&&x.startTime>0){const X=Z.map(I=>I.id===x.id?{...I,startTime:0}:I),F=new CustomEvent("update-segments",{detail:{segments:X,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(F),V(x.id),K(!1)}}}else if(ce<M){const E={id:Date.now(),name:"segment",startTime:ce,endTime:M,thumbnail:""},b=new CustomEvent("update-segments",{detail:{segments:[E],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(b),ne.debug("Created new segment from",Y(ce),"to end"),V(E.id),K(!1)}},children:v.jsx("img",{src:G0,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),v.jsxs("div",{className:"timeline-controls",children:[v.jsxs("div",{className:"time-navigation",children:[v.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),v.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:S=>{if(S.key==="Enter"){const U=S.currentTarget.value;try{const C=U.split(":");let E=0,b=0,O=0,x=0;if(C.length===3){E=parseInt(C[0]),b=parseInt(C[1]);const F=C[2].split(".");O=parseInt(F[0]),F.length>1&&(x=parseInt(F[1].padEnd(3,"0").substring(0,3)))}else if(C.length===2){b=parseInt(C[0]);const F=C[1].split(".");O=parseInt(F[0]),F.length>1&&(x=parseInt(F[1].padEnd(3,"0").substring(0,3)))}const X=E*3600+b*60+O+x/1e3;if(!isNaN(X)&&X>=0&&X<=M){W(X);const F=I=>{const p=Z.find(g=>{const P=I>=g.startTime&&I<=g.endTime,G=Math.abs(I-g.startTime)<.001,ee=Math.abs(I-g.endTime)<.001;return P||G||ee});if(J.current&&lt.current){const g=J.current.getBoundingClientRect();let P;if(f>1)P=g.left-lt.current.scrollLeft+I/M*g.width;else{const G=I/M;P=g.left+g.width*G}He({x:P,y:g.top-10}),le(I),p?(V(p.id),K(!1)):(V(null),K(!0))}};setTimeout(()=>F(X),10)}}catch(C){console.error("Invalid time format:",C)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const S=()=>{const U=Z.find(C=>{const E=T>=C.startTime&&T<=C.endTime,b=Math.abs(T-C.startTime)<.001,O=Math.abs(T-C.endTime)<.001;return E||b||O});if(J.current&&lt.current){const C=J.current.getBoundingClientRect();let E;if(f>1)E=C.left-lt.current.scrollLeft+T/M*C.width;else{const b=T/M;E=C.left+C.width*b}if(He({x:E,y:C.top-10}),le(T),U)V(U.id),K(!1);else{const b=Dt(T);q(b),b>=.5?(V(null),K(!0)):(V(null),K(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{W(T-.01),setTimeout(S,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{W(T-.001),setTimeout(S,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{W(T+.001),setTimeout(S,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{W(T+.01),setTimeout(S,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),v.jsxs("div",{className:"controls-right",children:[v.jsxs("div",{className:"zoom-dropdown-container",children:[v.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>yt(!ht),children:["Zoom ",f,"x",v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),ht&&v.jsx("div",{className:"zoom-dropdown",style:{position:"absolute",top:"100%",left:0,zIndex:1e3},children:[1,2,4,8,16,32,64,128,256,512,1024,2048,4096].map(S=>v.jsxs("div",{className:`zoom-option ${f===S?"selected":""}`,onClick:()=>{it(S),yt(!1)},children:[f===S&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",S,"x"]},S))})]}),v.jsxs("div",{className:"save-buttons-row",children:[oe&&v.jsx("button",{onClick:()=>on(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Be&&v.jsx("button",{onClick:()=>H(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),zt&&v.jsx("button",{onClick:()=>ye(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),v.jsxs(Xi,{isOpen:Yn,onClose:()=>on(!1),title:"Save Changes",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>on(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{oe&&oe(),De()},children:"Confirm Save"})]}),children:[v.jsx("p",{className:"modal-message",children:"You're about to save these changes and replace the original video. This action cannot be undone."}),v.jsx("p",{className:"modal-message",children:"The original video will be replaced with this trimmed version."})]}),v.jsxs(Xi,{isOpen:mn,onClose:()=>H(!1),title:"Save As New Copy",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>H(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Be&&Be(),Ze()},children:"Confirm Save As Copy"})]}),children:[v.jsx("p",{className:"modal-message",children:"You're about to save these changes as a new copy. Your original video will remain unchanged."}),v.jsx("p",{className:"modal-message",children:"A new copy of the video will be created with your trimmed segments."})]}),v.jsxs(Xi,{isOpen:Re,onClose:()=>{},title:"Processing Video",children:[v.jsx("div",{className:"modal-spinner",children:v.jsx("div",{className:"spinner"})}),v.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),v.jsxs(Xi,{isOpen:te,onClose:()=>ye(!1),title:"Save Segments",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>ye(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{zt&&zt(),Rt()},children:"Save Segments"})]}),children:[v.jsxs("p",{className:"modal-message",children:["You're about to save each segment as a separate video file. There are ",Z.length," segments to be saved."]}),v.jsx("p",{className:"modal-message",children:"Each segment will be saved with its name as the filename."})]}),v.jsx(Xi,{isOpen:qe,onClose:()=>ut(!1),title:"Video Edited Successfully",children:v.jsx("div",{className:"modal-success-content",children:v.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your media page in ",v.jsx("span",{className:"countdown",children:"10"})," seconds. "," ",dn==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),v.jsxs(Xi,{isOpen:Je,onClose:()=>Ke(!1),title:"Video Processing Error",children:[v.jsxs("div",{className:"modal-error-content",children:[v.jsx("div",{className:"modal-error-icon",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#F44336",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),v.jsx("p",{className:"modal-message text-center error-message",children:tn})]}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>Ke(!1),className:"modal-choice-button centered-choice",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),We&&v.jsx("div",{className:"mobile-timeline-overlay",children:v.jsxs("div",{className:"mobile-timeline-message",children:[v.jsx("p",{children:"Please play the video first to enable timeline controls"}),v.jsx("div",{className:"mobile-play-icon"})]})})]})},K0=({onSplit:T,onReset:M,onUndo:he,onRedo:xe,onPreview:pe,onPlay:Oe,canUndo:f,canRedo:Z,isPreviewMode:Se=!1,isPlaying:se=!1})=>{const it=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),Oe()};return v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsxs("div",{className:"button-group play-buttons-group",children:[v.jsx("button",{className:"button preview-button",onClick:pe,"data-tooltip":Se?"Stop preview playback":"Play only segments (skips gaps between segments)",style:{fontSize:"0.875rem"},children:Se?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Stop Preview"}),v.jsx("span",{className:"short-text",children:"Stop"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play Preview"}),v.jsx("span",{className:"short-text",children:"Preview"})]})}),!Se&&v.jsx("button",{className:"button play-button",onClick:it,"data-tooltip":se?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:se?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Pause"}),v.jsx("span",{className:"short-text",children:"Pause"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play"}),v.jsx("span",{className:"short-text",children:"Play"})]})}),Se&&v.jsxs("div",{className:"preview-mode-message",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]}),"Preview Mode"]})]}),v.jsxs("div",{className:"button-group secondary",children:[v.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!f,onClick:he,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M9 14 4 9l5-5"}),v.jsx("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]}),v.jsx("span",{className:"button-text",children:"Undo"})]}),v.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!Z,onClick:xe,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"m15 14 5-5-5-5"}),v.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),v.jsx("span",{className:"button-text",children:"Redo"})]}),v.jsx("div",{className:"divider"}),v.jsxs("button",{className:"button",onClick:M,"data-tooltip":"Reset to full video",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})}),v.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},Z0=({segments:T})=>{const M=[...T].sort((pe,Oe)=>pe.startTime-Oe.startTime),he=pe=>{const Oe=new CustomEvent("delete-segment",{detail:{segmentId:pe}});document.dispatchEvent(Oe)},xe=pe=>`segment-default-color segment-color-${pe%8+1}`;return v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),M.map((pe,Oe)=>v.jsxs("div",{className:`segment-item ${xe(Oe)}`,children:[v.jsxs("div",{className:"segment-content",children:[v.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${pe.thumbnail})`}}),v.jsxs("div",{className:"segment-info",children:[v.jsxs("div",{className:"segment-title",children:["Segment ",Oe+1]}),v.jsxs("div",{className:"segment-time",children:[fi(pe.startTime)," - ",fi(pe.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",Y0(pe.endTime-pe.startTime)]})]})]}),v.jsx("div",{className:"segment-actions",children:v.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>he(pe.id),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})})]},pe.id)),M.length===0&&v.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},J0=({videoRef:T,onPlay:M})=>{const[he,xe]=ae.useState(!1);ae.useEffect(()=>{const f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);xe(f)},[]),ae.useEffect(()=>{const Oe=T.current;if(!Oe)return;const f=()=>{xe(!1)};return Oe.addEventListener("play",f),()=>{Oe.removeEventListener("play",f)}},[T]);const pe=()=>{M()};return he?v.jsx("div",{className:"mobile-play-prompt-overlay",children:v.jsxs("div",{className:"mobile-play-prompt",children:[v.jsx("h3",{children:"Mobile Device Notice"}),v.jsxs("p",{children:["For the best video editing experience on mobile devices, you need to ",v.jsx("strong",{children:"play the video first"})," before using the timeline controls."]}),v.jsxs("div",{className:"mobile-prompt-instructions",children:[v.jsx("p",{children:"Please follow these steps:"}),v.jsxs("ol",{children:[v.jsx("li",{children:"Tap the button below to start the video"}),v.jsx("li",{children:"After the video starts, you can pause it"}),v.jsx("li",{children:"Then you'll be able to use all timeline controls"})]})]}),v.jsx("button",{className:"mobile-play-button",onClick:pe,children:"Play Video Now"})]})}):null},eS=()=>{const T=ae.useRef(null),[M,he]=ae.useState(0),[xe,pe]=ae.useState(0),[Oe,f]=ae.useState(!1),[Z,Se]=ae.useState(!1),[se,it]=ae.useState(!1),[W,D]=ae.useState(0),[oe,Be]=ae.useState([]),[zt,Et]=ae.useState(0),[kt,We]=ae.useState(0),[J,mt]=ae.useState([]),[_e,Me]=ae.useState(1),[V,nt]=ae.useState([]),[K,Bt]=ae.useState([]),[He,ce]=ae.useState(-1),[le,ht]=ae.useState(!1);ae.useEffect(()=>{var H;if(K.length>0){const te=((H=K[He])==null?void 0:H.action)||"";te!=="save"&&te!=="save_copy"&&te!=="save_segments"&&ht(!0)}},[K,He]),ae.useEffect(()=>{const H=te=>{if(le){const ye="Your edits will get lost if you leave the page. Do you want to continue?";return te.preventDefault(),te.returnValue=ye,ye}};return window.addEventListener("beforeunload",H),()=>{window.removeEventListener("beforeunload",H)}},[le]),ae.useEffect(()=>{const H=T.current;if(!H)return;const te=()=>{pe(H.duration),We(H.duration),(async()=>{const Je=await Cm(H,H.duration/2),Ke={id:1,name:"segment",startTime:0,endTime:H.duration,thumbnail:Je},Wt={trimStart:0,trimEnd:H.duration,splitPoints:[],clipSegments:[Ke]};Bt([Wt]),ce(0),nt([Ke]);const $t=6,tn=H.duration/$t,gt=[];for(let fn=0;fn<$t;fn++){const Zt=tn*fn+tn/2,dn=await Cm(H,Zt);gt.push(dn)}Be(gt)})()},ye=()=>{he(H.currentTime)},Re=()=>{se||f(!0)},ge=()=>{se||f(!1)},qe=()=>{f(!1),H.currentTime=zt};return H.addEventListener("loadedmetadata",te),H.addEventListener("timeupdate",ye),H.addEventListener("play",Re),H.addEventListener("pause",ge),H.addEventListener("ended",qe),()=>{H.removeEventListener("loadedmetadata",te),H.removeEventListener("timeupdate",ye),H.removeEventListener("play",Re),H.removeEventListener("pause",ge),H.removeEventListener("ended",qe)}},[se]);const yt=()=>{const H=T.current;H&&(Oe?H.pause():(!Oe&&typeof window<"u"&&window.lastSeekedPosition>0?Math.abs(H.currentTime-window.lastSeekedPosition)>.1&&(H.currentTime=window.lastSeekedPosition):H.currentTime>=kt&&(H.currentTime=zt),H.play().then(()=>{typeof window<"u"&&(window.lastSeekedPosition=0)}).catch(te=>{console.error("Error starting playback:",te),f(!1)})))},ze=H=>{const te=T.current;if(!te)return;const ye=!te.paused,Re=se;if(te.currentTime=H,he(H),typeof window<"u"&&(window.lastSeekedPosition=H),Re){const ge=V.find(qe=>H>=qe.startTime&&H<=qe.endTime);if(ge){const ut=[...V].sort((Je,Ke)=>Je.startTime-Ke.startTime).findIndex(Je=>Je.id===ge.id);ut!==-1&&D(ut)}}(ye||Re)&&(Re&&it(!0),te.play().then(()=>{f(!0)}).catch(ge=>{console.error("Error resuming playback:",ge),f(!1)}))},q=H=>{const te={trimStart:zt,trimEnd:kt,splitPoints:[...J],clipSegments:JSON.parse(JSON.stringify(V)),action:H||"manual_save"},ye=K[He],Re=()=>{if(!ye||ye.clipSegments.length!==te.clipSegments.length)return!0;for(let ut=0;ut<te.clipSegments.length;ut++){const Je=ye.clipSegments[ut],Ke=te.clipSegments[ut];if(!Je||!Ke||Math.abs(Je.startTime-Ke.startTime)>.001||Math.abs(Je.endTime-Ke.endTime)>.001)return!0}return!1},ge=!ye||ye.trimStart!==te.trimStart||ye.trimEnd!==te.trimEnd||ye.splitPoints.length!==te.splitPoints.length||Re(),qe=te.action!==void 0;if(ge||qe){const ut=He;Bt(Je=>ut<Je.length-1?[...Je.slice(0,ut+1),te]:[...Je,te]),ce(Je=>Je+1)}};return ae.useEffect(()=>{const H=te=>{if(te.detail){const{time:ye,isStart:Re,recordHistory:ge,action:qe}=te.detail;Re?Et(ye):We(ye),ge&&setTimeout(()=>{q(qe||(Re?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",H),()=>{document.removeEventListener("update-trim",H)}},[]),ae.useEffect(()=>{const H=Re=>{if(Re.detail&&Re.detail.segments){const ge=Re.detail.recordHistory!==!1,qe=Re.detail.action||"update_segments";nt(Re.detail.segments),ge&&setTimeout(()=>{const ut=JSON.parse(JSON.stringify(Re.detail.segments)),Je={trimStart:zt,trimEnd:kt,splitPoints:[...J],clipSegments:ut,action:qe},Ke=He;Bt(Wt=>Ke<Wt.length-1?[...Wt.slice(0,Ke+1),Je]:[...Wt,Je]),ce(Wt=>Wt+1)},20)}},te=async Re=>{const ge=Re;if(ge.detail&&typeof ge.detail.time=="number"&&typeof ge.detail.segmentId=="number"){const qe=ge.detail.time,ut=ge.detail.segmentId;ze(qe);const Je=V.find(gt=>gt.id===ut);if(!Je||qe<=Je.startTime||qe>=Je.endTime)return;const Ke=[...V],Wt=Ke.findIndex(gt=>gt.id===ut);if(Wt===-1)return;Ke.splice(Wt,1);const $t={id:Date.now(),name:`${Je.name}-A`,startTime:Je.startTime,endTime:qe,thumbnail:""},tn={id:Date.now()+1,name:`${Je.name}-B`,startTime:qe,endTime:Je.endTime,thumbnail:""};Ke.push($t,tn),Ke.sort((gt,fn)=>gt.startTime-fn.startTime),nt(Ke),q("split_segment")}},ye=async Re=>{const ge=Re;if(ge.detail&&typeof ge.detail.segmentId=="number"){const qe=ge.detail.segmentId,ut=V.filter(Je=>Je.id!==qe);if(ut.length!==V.length){if(ut.length===0&&T.current){const Je={id:Date.now(),name:"segment",startTime:0,endTime:T.current.duration,thumbnail:""};Et(0),We(T.current.duration),mt([]),nt([Je])}else nt(ut);q("delete_segment")}}};return document.addEventListener("update-segments",H),document.addEventListener("split-segment",te),document.addEventListener("delete-segment",ye),()=>{document.removeEventListener("update-segments",H),document.removeEventListener("split-segment",te),document.removeEventListener("delete-segment",ye)}},[V,xe]),ae.useEffect(()=>{if(!se||!T.current)return;const H=[...V].sort((ye,Re)=>ye.startTime-Re.startTime),te=()=>{if(!se||!T.current)return;const ye=H[W];if(!ye)return;const Re=T.current.currentTime;if(Re<ye.startTime){T.current.currentTime=ye.startTime;return}if(Re>=ye.endTime-.05)if(W<H.length-1){const ge=H[W+1];T.current.currentTime=ge.startTime,D(W+1),ne.debug("Moving to next segment in preview:",ge.name,"from",Y(ye.endTime),"to",Y(ge.startTime)),T.current.play().catch(qe=>{console.error("Error continuing preview playback:",qe)})}else T.current.currentTime=H[0].startTime,D(0),T.current.play().catch(ge=>{console.error("Error restarting preview playback:",ge)})};return T.current.addEventListener("timeupdate",te),()=>{T.current&&T.current.removeEventListener("timeupdate",te)}},[se,W,V]),{videoRef:T,currentTime:M,duration:xe,isPlaying:Oe,isPreviewMode:se,thumbnails:oe,trimStart:zt,trimEnd:kt,splitPoints:J,zoomLevel:_e,clipSegments:V,historyPosition:He,history:K,isMuted:Z,hasUnsavedChanges:le,playPauseVideo:yt,seekVideo:ze,handleTrimStartChange:H=>{Et(H),q("adjust_trim_start")},handleTrimEndChange:H=>{We(H),q("adjust_trim_end")},handleSplit:async()=>{if(T.current&&!J.includes(M)){const H=[...J,M].sort((Re,ge)=>Re-ge);mt(H);const te=[];let ye=0;for(let Re=0;Re<=H.length;Re++){const ge=Re<H.length?H[Re]:xe;ye<ge&&(te.push({id:Date.now()+Re,name:`Segment ${Re+1}`,startTime:ye,endTime:ge,thumbnail:""}),ye=ge)}nt(te),q("create_split_points")}},handleReset:async()=>{if(Et(0),We(xe),mt([]),!T.current)return;const H={id:Date.now(),name:"segment",startTime:0,endTime:xe,thumbnail:""};nt([H]),q("reset_all")},handleUndo:()=>{if(He>0){const H=K[He-1];ne.debug(`** UNDO ** to position ${He-1}, action: ${H.action}, segments: ${H.clipSegments.length}`),ne.debug("Segment details after undo:",H.clipSegments.map(te=>`ID: ${te.id}, Time: ${Y(te.startTime)} - ${Y(te.endTime)}`)),Et(H.trimStart),We(H.trimEnd),mt([...H.splitPoints]),nt(JSON.parse(JSON.stringify(H.clipSegments))),ce(He-1)}},handleRedo:()=>{if(He<K.length-1){const H=K[He+1];ne.debug(`** REDO ** to position ${He+1}, action: ${H.action}, segments: ${H.clipSegments.length}`),ne.debug("Segment details after redo:",H.clipSegments.map(te=>`ID: ${te.id}, Time: ${Y(te.startTime)} - ${Y(te.endTime)}`)),Et(H.trimStart),We(H.trimEnd),mt([...H.splitPoints]),nt(JSON.parse(JSON.stringify(H.clipSegments))),ce(He+1)}},handlePreview:()=>{const H=T.current;if(!H||V.length===0)return;if(se){it(!1),H.pause(),f(!1);return}Oe&&H.pause();const ye=[...V].sort((Re,ge)=>Re.startTime-ge.startTime);ye.length!==0&&(it(!0),D(0),H.currentTime=ye[0].startTime,setTimeout(()=>{T.current&&T.current.play().then(()=>{f(!0)}).catch(Re=>{console.error("Error starting preview:",Re),it(!1),f(!1)})},50))},handlePlay:()=>{const H=T.current;if(H){if(se){it(!1),f(!1),H.pause();return}Oe?(H.pause(),f(!1)):(typeof window<"u"&&window.lastSeekedPosition>0&&Math.abs(H.currentTime-window.lastSeekedPosition)>.1&&(console.log("handlePlay: Using lastSeekedPosition",window.lastSeekedPosition),H.currentTime=window.lastSeekedPosition),H.play().then(()=>{f(!0),typeof window<"u"&&(window.lastSeekedPosition=0)}).catch(te=>{console.error("Error playing video:",te),f(!1)}))}},handleZoomChange:H=>{Me(H)},toggleMute:()=>{const H=T.current;H&&(H.muted=!H.muted,Se(!Z))},handleSave:()=>{[...V].sort((te,ye)=>te.startTime-ye.startTime).map(te=>({startTime:Y(te.startTime),endTime:Y(te.endTime)})),ht(!1),q("save")},handleSaveACopy:()=>{[...V].sort((te,ye)=>te.startTime-ye.startTime).map(te=>({startTime:Y(te.startTime),endTime:Y(te.endTime)})),ht(!1),q("save_copy")},handleSaveSegments:()=>{[...V].sort((te,ye)=>te.startTime-ye.startTime).map(te=>({name:te.name,startTime:Y(te.startTime),endTime:Y(te.endTime)})),ht(!1),q("save_segments")}}},tS=()=>{const[T,M]=ae.useState(!1),[he,xe]=ae.useState(!1),{videoRef:pe,currentTime:Oe,duration:f,isPlaying:Z,isPreviewMode:Se,isMuted:se,thumbnails:it,trimStart:W,trimEnd:D,splitPoints:oe,zoomLevel:Be,clipSegments:zt,historyPosition:Et,history:kt,hasUnsavedChanges:We,playPauseVideo:J,seekVideo:mt,handleTrimStartChange:_e,handleTrimEndChange:Me,handleSplit:V,handleReset:nt,handleUndo:K,handleRedo:Bt,handlePreview:He,handlePlay:ce,handleZoomChange:le,toggleMute:ht,handleSave:yt,handleSaveACopy:ze,handleSaveSegments:q}=eS(),Ae=ae.useRef(null),we=ae.useRef(null);ae.useEffect(()=>{M(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent)),xe(!1);const Qt=pe.current;if(Qt){const ot=()=>{xe(!0)};return Qt.addEventListener("play",ot),()=>{Qt.removeEventListener("play",ot)}}},[pe]),ae.useEffect(()=>()=>{Ae.current&&clearInterval(Ae.current),we.current&&clearInterval(we.current)},[]);const Le=Qe=>{(!T||he)&&mt(Qe)};return v.jsxs("div",{className:"bg-background min-h-screen",children:[v.jsx(J0,{videoRef:pe,onPlay:J}),v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(I0,{videoRef:pe,currentTime:Oe,duration:f,isPlaying:Z,isMuted:se,onPlayPause:J,onSeek:Le,onToggleMute:ht}),v.jsx(K0,{onSplit:V,onReset:nt,onUndo:K,onRedo:Bt,onPreview:He,onPlay:ce,isPreviewMode:Se,isPlaying:Z,canUndo:Et>0,canRedo:Et<kt.length-1}),v.jsx(Q0,{currentTime:Oe,duration:f,thumbnails:it,trimStart:W,trimEnd:D,splitPoints:oe,zoomLevel:Be,clipSegments:zt,onTrimStartChange:_e,onTrimEndChange:Me,onZoomChange:le,onSeek:Le,videoRef:pe,onSave:yt,onSaveACopy:ze,onSaveSegments:q,isPreviewMode:Se,hasUnsavedChanges:We,isIOSUninitialized:T&&!he}),v.jsx(Z0,{segments:zt})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Mm=()=>{const T=document.getElementById("video-editor-trim-root");T&&Sm(T).render(v.jsx(tS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm()})();
//# sourceMappingURL=video-editor.js.map